I_RAWSIM: Simulated raw value analog input
Original instructions
Function description
The procedure provides the option to simulate raw value analog inputs.
NOTE: Specify the processing sequence of functions and function blocks so that I_RAWSIM is processed before all other functions and function blocks that read the simulated raw value. Link the ENOoutput of I_RAWSIM to the EN inputs of all functions and function blocks that read the simulated raw value.
As additional parameters, EN and ENO are projected.
Representation in FBD
Representation:
Representation in LD
Appearance:
Representation in IL
Appearance:
I_RAWSIM (CHANNEL:=SimulatedRowValue, SIM:=RawValue)
Representation in ST
Appearance:
I_RAWSIM (CHANNEL:=SimulatedRowValue, SIM:=RawValue) ;
Parameter description
Description of input parameters:
Parameter
Data type
Description
CHANNEL
Simulated raw value
SIM
Input value
Example
The example shows a configuration with an analog input module (140 ACI 030) with a resolution of 12 bits, which corresponds with a value range (raw value) of 0...4096.
Using the scaling block I_SCALE this value range (raw value) is scaled to a physical value range of -20° C...+80° C.
The procedureI_RAWSIM provides the option to simulate and scale a raw value (e.g. 2048) of the analog input module (30.01221), without actually basing this value on the module.
Example configuration
Runtime error
An error message is returned
NOTE: For a list of all error codes and values of the module, see Analog I/O Scaling .