Basic instructions
7.6 Move operations
S7-1200 Programmable controller
242 System Manual, 03/2014, A5E02486680-AG
SCL has no FieldRead or FieldWrite instructions, but supports indirect addressing of an
array with a variable:
#Tag_1 := "Data_block_1".Bool_Array[#Index];
FILL_BLK (Fill block) and UFILL_BLK (Fill block uninterruptible) instructions
Table 7- 68 FILL_BLK and UFILL_BLK instructions
in:=_variant_in,
count:=int,
out=>_variant_out);
Interruptible fill instruction: Fills an address range with copies of a
specified data element
in:=_variant_in,
count:=int
out=>_variant_out);
Uninterruptible fill instruction: Fills an address range with copies of a
specified data element
Table 7- 69 Data types for parameters
IN SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
Data source address
Number of data elements to copy
OUT SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
Data destination address
Note
Rules for data fill operations
•
To fill with the BOOL data type, use SET_BF, RESET_BF, R, S, or output coil (LAD)
To fill with a single elementary data type, use MOVE
To fill an array with an elementary data type, use FILL_BLK or UFILL_BLK
To fill a single character in a string, use MOVE
The FILL_BLK and UFILL_BLK instructions cannot be used to fill arrays in the I, Q, or M
memory areas.