WRITE_INPUT_REAL: Writing Inputs of Type REAL
Original instructions
Function Description
WRITE_INPUT_REAL is used to simulate (write) a value at a variable, IODDT variable, or state RAM. The input is written directly when WRITE_INPUT_REAL is invoked.
The function block can be used with a real PLC and the PLC simulator.
Restrictions
NOTE: Using the WRITE_INPUT_REAL EFB with RIO networks, the behavior in simulation mode could be different from PLC behavior. The input is set by the WRITE_INPUT_REAL EFB but overwritten by the value sent by the RIO scanner in the OUT phase of the PLC scan.
The additional parameters EN and ENO can be configured.
FBD representation
Representation:
LD representation
Representation:
IL representation
Representation:
WRITE_INPUT_REAL (INP:=Value (*Real*)) 
ST Simulated_Input (*Real*)
ST representation
Representation:
(*Real*) Simulated_Input:=WRITE_INPUT_REAL (INP:=Value (*Real*));
Parameter Description
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
REAL
variable to be modified