# User data

Button number
Description | Logical button number from which the command comes.
ST path | Commanded value gpCh[channel_idx]^.hb_mc_control.key[key_idx].command_w.log_key_nr Requested value gpCh[channel_idx]^.hb_mc_control.key[key_idx].request_r.log_key_nr
Data type | UINT
Value range | One of the values which are defined as logical jog button pair numbers in the configuration list hand_mds.lis for the characteristics tasten_data[X].log_tasten_nr.

Start/end of button press
Description | Start/end of button press event and motion direction of buttons in manual mode
ST path | Commanded value gpCh[channel_idx]^.hb_mc_control.key[key_idx].command_w.direction Requested value gpCh[channel_idx]^.hb_mc_control.key[key_idx].request_r.direction
Data type | INT
Value range | Value | Meaning
-1 | Start of button press, negative motion direction
0 | End of button press
1 | Start of button press, positive motion direction
Special features | Consumption data item Since the enforcement of a button press is a message-orientated transfer, both the “start of button press” event and the “end of button press” event must be generated by the PLC.

Lifetime of the button signal
Description | This is a time period defined by number of interpolator cycles. If this element has a value unequal to 0, the CNC independently generates the “End of button press” event after receiving a “Start of button press” event after the time period expires and which was defined by the number of specified interpolator cycles.
ST path | Commanded value gpCh[channel_idx]^.hb_mc_control.key[key_idx].command_w.life_time Requested value gpCh[channel_idx]^.hb_mc_control.key[key_idx].request_r.life_time
Data type | UDINT
Unit | Number of interpolator cycles
Special features | See Note

Retriggering “start of button press” event
Description | Retriggering the “start of button press” event. If the element “Life time of a button signal” has a value unequal to 0, the “start of button press” event is retriggered if the “Lifetime of the button signal” has not yet expired.
ST path | Commanded value gpCh[channel_idx]^.hb_mc_control.key[key_idx].command_w.f_refresh Requested value gpCh[channel_idx]^.hb_mc_control.key[key_idx].request_r.f_refresh
Data type | BOOL
Value range | [TRUE = Retriggering the “start of button press” event, FALSE]
Special features | See Note

Note: The “Lifetime of the button signal“ and “Retriggering the ‘start of button press’ event“ elements represent a sort of watchdog function. Their use is indicated in particular if the time response of the PLC is not ensured (deterministic, e.g. soft PLC as Windows task).