GET_3X: Read %IW Words (3x-Register)
Original instructions
Function description
This function writes values from the %IW register area (3x) of the state RAM to the variable that is connected to the output pin.
Offset is an offset in the %IW register memory (3x).
The function copies as many bytes as the size of the output data type which is connected to the output pin.
EN and ENO can be configured as additional parameters.
Example
The output of this function reads the 16-bit value of register %IW120 (register 300120), if Offset = 120 and the output is of data type INT.
The value in Offset may be modified at runtime.
If Offset lies outside the configured number of %IW (3x), an error message is generated and ENO is set to 0.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD Offset
GET_3X
ST Output
Representation in ST
Representation:
Output := GET_3X (Offset);
Parameter description
Description of input parameters:
Parameter
Data type
Description
Offset
Offset in the %IW (3x) register memory.
Description of output parameters:
Parameter
Data type
Description
Output
Output
Runtime error
For a list of all block error codes and values, see Extension/Compatibility.