Specifications

SIMATIC Instructions
9-103
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Memory Fill
The Memory Fill instruction fills memory starting at the
output word (OUT), with the word input pattern (IN) for
the number of words specified by N. N has a range of 1
to 255.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address), 0091 (operand out of range)
Inputs/Outputs Operands Data Types
IN VW, IW, QW, MW, SW, SMW, LW, AIW, T, C, AC, Constant, *VD,
*AC, *LD
WORD
N VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *AC, *LD BYTE
OUT VW, IW, QW, MW, SW, SMW, LW, T, C, AQW, *VD, *AC, *LD WORD
Fill Example
VW200
LAD STL
I2.1
0
10
LD I2.1
FILL 0, VW200, 10
Clear VW200 to VW218
0
0
VW200
fill
. . .
0
VW202
0
VW218
Application
FILL_N
EN
IN
N OUT
FBD
ENO
VW2000
10
FILL_N
EN
IN
N
OUT
ENO
I2.1
Figure 9-31 Example of Fill Instructions for LAD, STL, and FBD
L
A
D
S
T
L
FILL IN, OUT, N
FILL_N
EN
IN
N
OUT
F
B
D
ENO
222 224
333
221