WRITE_INPUT_AREBOOL_16: Writing Array Inputs of Type EBOOL
Original instructions
Function Description
WRITE_INPUT_AREBOOL_16 is used to simulate (write) values at variables, IODDT variables, or state RAM. The inputs are written directly when WRITE_INPUT_AREBOOL_16 is invoked.
The maximum managed array size is 16
The function block can be used with a real PLC and the PLC simulator.
NOTE: When using the WRITE_INPUT_AREBOOL_16 EF with RIO networks, the behavior in simulation mode could be different from PLC behavior. The inputs are set by the WRITE_INPUT_AREBOOL_16 EF but are overwritten by the value sent by the RIO scanner in the OUT phase of the PLC scan.
The parameters EN and ENO can be configured.
FBD representation
Representation:
LD representation
Representation:
IL representation
Representation:
CAL WRITE_INPUT_AREBOOL_16 (INP:=Value, OUTP=>Simulated_Inputs)
ST representation
Representation:
WRITE_INPUT_AREBOOL_16 (INP:=Value, OUTP=>Simulated_Inputs);
Parameter Description
The following table describes the input parameters:
Parameter
Type
Comment
INP
Value to be assigned to the array elements. Each bit is assigned to one array element according to the bit order.
The following table describes the output parameters:
Parameter
Type
Comment
OUTP
Array of variables to be modified