Control unit – Insert stop marks (insert command)

Insert stop marks

Description

During runtime, the PLC can use this control unit to set stop points in the future NC program. The control unit must then be enabled by enable_w = TRUE.

The PLC signals a new assignment of command_2 by setting command_semaphor_rw to TRUE.

The CNC sets the command_semaphor_rw to FALSE after the command_w data is read.

Data type

MC_CONTROL_INSERT_CMD_UNIT

ST path

gpCh[channel_idx]^. bahn_mc_control.insert_cmd

Command data

ST element

.command_w

Data type

HLI_INSERT_CMD_COMMAND

Access

PLC writes command_w

Return values

ST element

.state_r

Data type

HLI_INSERT_CMD_STATE

Access

PLC reads

Activation

ST element

.enable_w

Data type

BOOL

Access

PLC writes

Value range

[TRUE/FALSE] ; TRUE: CU enabled in PLC

Flow control of commanded value

ST element

.semaphor_rw

Data type

BOOL

Value range

[TRUE, FALSE]

Special features

Consumption data item

Access

TRUE : PLC triggers on new request

FALSE : CNC has read new request