Control Unit

Enforcing a button press in manual mode

Description

Control unit to manage data to enforce a button press in manual mode, including flow control of user data.

Data type

ARRAY[0..HLI_KEY_MAXIDX] OF MC_CONTROL_HB_KEY_UNIT, see description of Control unit usage check

Special features

A button press can be signalled at any time but it remains without any effect if the assigned axis is not in continuous/incremental jog mode.

ST path

gpCh[channel_idx]^.hb_mc_control.key[key_idx]

Access

PLC reads request_r and writes command_w + enable_w

Commanded, requested data

ST element

.command_w

.request_r

Data type

HLI_HB_KEY, for description see the section User data

Flow control commanded data

ST element

.command_semaphor_rw

Data type

BOOL

Special features

Consumption data item

Access

CNC accepts the commanded data if this element has the value TRUE and sets this element to the value FALSE after complete acceptance of the data.

PLC can write data for commanding if this element has the value FALSE. The PLC sets this element to the value TRUE if all data to be commanded is written.

Flow control of requested data

ST element

.request_semaphor_rw

Data type

BOOL

Special features

Consumption data item

Access

CNC writes the data requested by the GUI if this element is FALSE and then sets this element to TRUE.

PLC reads the data requested by the GUI if this value is TRUE. After the PLC fully accepts the data, the PLC sets this element to FALSE.

Redirection

ST element

.enable_w