PLC_W: Controller Read / Write System Variables

Variable Structure

The following table describes the parameters of the PLC_W System Variable (PLC_W_STRUCT type):

Var Name

Type

Comment

q_uiOpenPLCControl

UINT

You are able to trigger either a STOP, RUN, Reset Cold, or Reset Warm command by using this variable.

q_wPLCControl

PLC_W_COMMAND

This variable contains the value representing a command for a state change desired by the user. Controller STOP, RUN, Reset Cold, and Reset Warm are enumerated in the Data Type PLC_W_COMMAND.

This desired state change is triggered by changing the value of PLC_W.q_uiOpenPLCControl from 0 to 6699.