Program instructions
7.16 Table
S7-200 SMART
372
System Manual, V2.3, 07/2017, A5E03822230-AF
7.16.3
Memory fill
LAD / FBD
STL
Description
FILL IN, OUT,
N
The memory fill instruction writes N consecutive words, beginning at address OUT,
with the word value contained in address IN.
N has a range of 1 to 255.
Non-fatal errors with ENO = 0
SM bits affected
•
0006H Indirect address
•
0091H Operand out of range
None
Input / output
Data type
Operand
IN
INT
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, AIW, *VD, *LD, *AC, Constant
N
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
OUT
INT
IW, QW, VW, MW, SMW, SW, T, C, LW, AQW, *VD, *LD, *AC
Example: Memory fill instruction
LAD
STL
Network 1
LD I2.1
FILL +0, VW200, 10