SIMATIC Instructions
9-113
S7-200 Programmable Controller System Manual
A5E00066097-02
Memory Fill
The Memory Fill instruction fills N number of words at
address IN to the address OUT. 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
VW200+0
10
FILL_N
EN
IN
N
OUT
ENO
I2.1
Figure 9-36 Example of Fill Instructions for SIMATIC 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
✓✓✓
221 226
✓