The table below contains some samples links of inputs and outputs in operations, functions and function blocks, as well as word connections of the variables.
||Linking inputs and outputs of the REAL, INT and DINT types|
The following functions are available for linking analog inputs and outputs of the REAL, INT and DINT types in operations, functions and function blocks:
- The load and transfer statements in the STL editor
- The "MOVE" function in the LAD and FBD editor.
The example illustrated below contains a conditional connection of two variables. The marker double-word MD10 only receives the value from the temporary variable "X_Real_1", when the value from "X_Real_1" is greater than or equal to the value from the temporary variable "X_Real_2". This value is then transferred to the input "Input_1" (Type: REAL) of function FC1.
Example of display in the FBD editor with the function "MOVE":
Example of display in the STL editor with the load and transfer statements:
The statements UW, OW, XOW, UD, OD, XOD link the value in Accu 1 with a constant or the contents of Accu 2 bit for bit. The link can be word for word or double-word for double-word.
The following alternatives are available for doing so:
- You can enter the operand in HEX format (for example OW W#16#AAAA).
- The two binary constants are first loaded into ACCU 1 / ACCU 2 with the load command and the linked with the link command without operand (e.g. OW).
Fig. 04 shows the word connection with a constant (Network 1) and with the contents of Accu 2 (Network 2).
In the case of bit-for-bit links of WORD or DWORD constants with the operations UW, OW, XOW, UD, OD and XOD the binary constants (e.g. OW 2#1010101010101010) are not supported as operand.
Interconnection of analog inputs and outputs