ENO status
1
0
Fill instructions
Parameter
IN
COUNT
OUT
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
The FILL_BLK and UFILL_BLK instructions copy the source data element IN to the
destination where the initial address is specified by the parameter OUT. The copy process
repeats and a block of adjacent addresses is filled until the number of copies is equal to the
COUNT parameter.
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02
Condition
No error
Either the source (IN) range or the
destination (OUT) range exceeds the
available memory area
You use the FILL_BLK and UFILL_BLK instructions as follows:
FILL_BLK: The interruptible fill instruction fills an address range with
copies of a specified data element.
UFILL_BLK: The uninterruptible fill instruction fills an address range
with copies of a specified data element.
Data type
SInt, Int, DIntT, USInt, UInt, UDInt, Real, BYTE,
Word, DWord
USInt, UInt
SInt, Int, DIntT, USInt, UInt, UDInt, Real, BYTE,
Word, DWord
memory areas.
Programming instructions
6.1 Basic instructions
Result
All COUNT elements were
successfully copied
Elements that fit are copied. No
partial elements are copied.
Description
Data source address
Number of data elements to copy
Data destination address
121