Fill_Blk (Fill Block) And Ufill_Blk (Fill Block Uninterruptible) Instructions - Siemens S7-1200 System Manual

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

Advertisement

Basic instructions
7.6 Move operations
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
FILL_BLK(
out=>_variant_out);
UFILL_BLK(
out=>_variant_out);
Table 7- 69
Data types for parameters
Parameter
Data type
IN
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
DWord
COUNT
USInt, UInt
OUT
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word,
DWord
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.
242
in:=_variant_in,
count:=int,
in:=_variant_in,
count:=int
Description
Interruptible fill instruction: Fills an address range with copies of a
specified data element
Uninterruptible fill instruction: Fills an address range with copies of a
specified data element
Description
Data source address
Number of data elements to copy
Data destination address
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents