EasyManua.ls Logo

Siemens S7-1200 - FILL_BLK (Fill Block) and UFILL_BLK (Fill Block Uninterruptible) Instructions

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.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];
7.6.3
FILL_BLK (Fill block) and UFILL_BLK (Fill block uninterruptible) instructions
Table 7- 68 FILL_BLK and UFILL_BLK instructions
LAD / FBD
SCL
Description
FILL_BLK(
in:=_variant_in,
count:=int,
out=>_variant_out);
Interruptible fill instruction: Fills an address range with copies of a
specified data element
UFILL_BLK(
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
Parameter
Data type
Description
IN SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
DWord
Data source address
COUNT
USInt, UInt
Number of data elements to copy
OUT SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
DWord
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.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals