Basic instructions
7.7 Conversion operations
S7-1200 Programmable controller
244 System Manual, 03/2014, A5E02486680-AG
Table 7- 72 Data types for the parameters
Reverse ordered data bytes OUT
Parameter IN = MB0
(before execution)
Parameter OUT = MB4,
(after execution)
Parameter IN = MB0
(before execution)
Parameter OUT = MB4,
(after execution)
Conversion operations
7.7.1
CONV (Convert value) instruction
Table 7- 73 Convert (CONV) instruction
out := <data type in>_TO_<data type out>(in);
Converts a data element from one
data type to another data type.
For LAD and FBD: Click the "???" and select the data types from the drop-down menu.
For SCL: Construct the conversion instruction by identifying the data type for the input parameter (in) and output
parameter (out). For example, DWORD_TO_REAL converts a DWord value to a Real value.