EasyManua.ls Logo

Siemens S7-1200 - Conversion Operations; CONV (Convert Value) Instruction

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Parameter
Data type
Description
IN
Word, DWord
Ordered data bytes IN
OUT
Word, DWord
Reverse ordered data bytes OUT
Example 1
Parameter IN = MB0
(before execution)
Parameter OUT = MB4,
(after execution)
Address
MW0
MB1
MW4
MB5
W#16#1234
WORD
12
MSB
34
LSB
34
MSB
12
LSB
Example 2
Parameter IN = MB0
(before execution)
Parameter OUT = MB4,
(after execution)
Address
MD0
MB1
MB2
MB3
MD4
MB5
MB6
MB7
DW#16#
12345678
DWORD
12
MSB
34
56
78
LSB
78
MSB
56
34
12
LSB
7.7
Conversion operations
7.7.1
CONV (Convert value) instruction
Table 7- 73 Convert (CONV) instruction
LAD / FBD
SCL
Description
out := <data type in>_TO_<data type out>(in);
Converts a data element from one
data type to another data type.
1
For LAD and FBD: Click the "???" and select the data types from the drop-down menu.
2
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.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals