WRITE_INPUT_EBOOL is used to simulate (write) a value at a variable, IODDT variable, or state RAM. The input is written directly when WRITE_INPUT_EBOOL is invoked.
The function block can be used with a real PLC and the PLC simulator.
Restrictions
-
The function block provides access to one variable at a time (elementary data types and not arrays of elementary data types).
-
The simulation block WRITE_INPUT_EBOOL does not work if the I/O module is configured in a RIO drop but works properly if the I/O module is configured in a local rack or DIO device.
NOTE: Using the WRITE_INPUT_EBOOL EFB with RIO networks, the behavior in simulation mode could be different from PLC behavior. The input is set by the WRITE_INPUT_EBOOL EFB but overwritten by the value sent by the RIO scanner in the OUT phase of the PLC scan.
The additional parameters and can be configured.
Representation:
Representation:
Representation:
WRITE_INPUT_EBOOL (INP:=Value (*BOOL*))
ST Simulated_Input (*EBOOL*)
Representation:
(*EBOOL*) Simulated_Input:=WRITE_INPUT_EBOOL (INP:=Value (*BOOL*));
The following table describes the input parameters:
Parameter
|
Type
|
Comment
|
INP
|
|
Value to be assigned to the variable
|
The following table describes the output parameters:
Parameter
|
Type
|
Comment
|
OUTP
|
|
variable to be modified
|