Chapter 3 Creating and Editing Screens
FILL (Fill the Memory)
Equation
FILL (Var1, Var2, Var3)
Explanation
FILL (Var1, Var2, Var3) means to fill address Var1 with data in address Var2 for a
sequential V3 number of registers.
Remark
The calculation result can be stored as unsigned or signed WORD.
If the block length is more than internal memory or max number of PLC register,
there will be an error when compiling.
Var1 can be internal memory only. Var2 and Var3 can be internal memory or
constant.
Example
Executing FILL command to fill $0, $1, $2, $3, $4 with constant 0 (this is an
operation of unsigned 16-bit data).
FILLASC (Convert Text to ASCII code)
Equation
FILLASC (Var1, “Var2”)
Explanation
FILLASC (Var1, “Var2”) means to convert text in address V2 to ASCII code and store in
V1.
Remark
The calculation result can be stored as unsigned WORD.
The max length is 128 words.
3-330 Revision May, 2010