Control units
Control units | The PLC can command options for forward/backward motion via three control units: |
Backward motion | |
Description | Select/deselect backward motion on the path In basic setting, M/H functions are executed without synchronisation (MOS) in this mode. |
Data type | MC_CONTROL_BOOL_UNIT, see description Control unit |
Access | PLC reads requested + feedback values and writes commanded value + redirection. |
ST path | gpCh[channel_idx]^.bahn_mc_control.backward_motion |
Commanded, requested and return values | |
ST element | .command_w .request_r .state_r |
Data type | BOOL |
Value range | [TRUE, FALSE] |
Redirection | |
ST element | .enable_w |
Simulated motion | |
Description | Select/deselect simulated forward motion on the path In basic setting, M/H functions are executed without synchronisation (MOS) in this mode. Sections in the NC program can be skipped during program runtime in combination with the NC command #OPTIONAL EXECUTION. |
Data type | MC_CONTROL_BOOL_UNIT, see description Control unit |
Access | PLC reads requested + feedback values and writes commanded value + redirection. |
ST Path | gpCh[channel_idx]^.bahn_mc_control.simulate_motion |
Commanded, requested and return values | |
ST Element | .command_w .request_r .state_r |
Data type | BOOL |
Value range | [TRUE, FALSE] |
Redirection | |
ST element | .enable_w |
Reset backward motion memory | |
Description | Deselects backward motion memory No further NC block is saved in the memory. The memory is deleted. The backward motion memory can only be cleared if no NC program is active. |
Data type | MC_CONTROL_BOOL_UNIT, see description Control unit |
Access | PLC reads requested + feedback values and writes commanded value + redirection. |
ST Path | gpCh[channel_idx]^.bahn_mc_control.backward_storage_off |
Commanded, requested and return values | |
ST Element | .command_w .request_r .state_r |
Data type | BOOL |
Value range | [TRUE, FALSE] |
Redirection | |
ST element | .enable_w |
External path velocity specified | |
Description | External path velocity specified. The path velocity setting is activated by the control unit ext_command_speed_valid. If the velocity specified in negative, the tool moves backwards along the path.(See FCT-C7// Forward/backward motion on the path) |
Data type | MC_CONTROL_UNS32_UNIT, see description of Control Unit |
Special features | The path velocity transferred by this interface is automatically restricted to the limits defined in the axis parameters. |
Access | PLC reads request_r + state_r and writes command_w + enable_w |
ST Path | gpCh[channel_idx]^.bahn_mc_control.ext_command_speed |
Commanded, requested value | |
ST Element | .command_w .request_r |
Data type | UDINT |
Unit | 1 μm/s |
Return value | |
ST Element | .state_r |
Data type | UDINT |
Unit | 1 μm/s |
Special features | The state_r element indicates the path velocity actually used in the interpolator, including any influence by override. By default the externally specified velocity only affects machin8ing motions (G01, G02, G03). The channel parameter P-CHAN-00102 (plc_command_rapid_feed) can set whether the externally specified velocity also acts on rapid traverse motions (G00). |
Redirection | |
ST Element | .enable_w |
Activation of external path velocity | |
Description | Activate the velocity commanded in the ext_command_speed control unit. To reach the commanded velocity, all axes involved in the motion are accelerated or decelerated. If this value is TRUE, the sign is considered in the current path feed (active_feed_r control unit). |
Data type | MC_CONTROL_BOOL_UNIT, see description Control unit |
Access | PLC reads request_r + state_r and writes command_w + enable_w |
ST Path | gpCh[channel_idx]^.bahn_mc_control.ext_command_speed_valid |
Commanded, requested and return values | |
ST Element | .command_w .request_r .state_r |
Data type | BOOL |
Value range | [TRUE, FALSE] |
Redirection | |
ST Element | .enable_w |
Simulate motion mask | |
Description | This control unit specifies a mask. Sections in the NC program can be skipped during program runtime in combination with the “simulate motion” control unit and the NC command #OPTIONAL EXECUTION. When the “simulate motion” control unit is on a positive edge, all sections flagged by |
Data type | MC_CONTROL_UNS64_UNIT, see description of Control Unit |
Access | PLC reads request_r + state_r and writes command_w + enable_w. |
ST Path | gpCh[channel_idx]^.bahn_mc_control.simulate_motion_mask |
Commanded, requested and return values | |
ST Element | .command_w .request_r .state_r |
Data type | ULINT |
Value range | 0 – MAX(UNS64) |
Redirection | |
ST element | .enable_w |
Special feature | Available as of CNC Build V3.1.3107.12 |