Conversion Instructions - Siemens SIMATIC S7-1200 Manual

Easy book
Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

Programming made easy
6.3 Powerful instructions make programming easy
Table 6- 2
MOVE, MOVE_BLK and UMOVE_BLK instructions
LAD / FBD
6.3.3

Conversion instructions

Table 6- 3
Conversion instructions
LAD / FBD
SCL
out := <data type in>_TO_<data type
out>(in);
For LAD and FBD: Click below the box name and select the data types from the drop-down menu. After you select the
1
(convert from) data type, a list of possible conversions is shown in the (convert to) dropdown list.
For SCL: Construct the conversion instruction by identifying the data type for the input parameter (in) and output
2
parameter (out). For example, DWORD_TO_REAL converts a DWord value to an Real value.
100
SCL
out1 := in;
out := MOVE_BLK(in:=_variant_in,
count:=_uint_in,
out=>_variant_out);
out := UMOVE_BLK(in:=_variant_in,
count:=_uint_in
out=>_variant_out);
Description
Copies a data element stored at a specified
address to a new address or multiple
addresses. To add another output in LAD or
FBD, click the icon by the output parameter.
For SCL, use multiple assignment statements.
You might also use one of the loop
constructions.
Interruptible move that copies a block of data
elements to a new address.
Uninterruptible move that copies a block of
data elements to a new address.
Description
Converts a data element from one data type to
another data type.
Manual, 11/2011, A5E02486774-04
Easy Book

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents