KEYENCE Visual KV Series User Manual
Page 153

2.4 Instruction Details
1
2
3-129
Chapter 2 Instructions
Description
•
On line 1), "TM02" is assigned to the first No. of the source 0000 and "TM03" is
assigned to the first No. of the destination 0100. This is the initial setting.
•
On lines 2) to 4), the contents of DM0000 to DM0099 are transferred to DM0100
to DM0199.
•
The ladder program on line 3) is executed 100 times in one scan.
1st operation: TM02 value: 0000, TM03 value: 0100
2nd operation: TM02 value: 00001, TM03 value: 0101
100th operation: TM02 value: 0099, TM03 value: 0199
When the ladder program on line 3) is repeated 100 times, the contents of the
specified DM block are transferred.
This operation is repeated.
2002
#TM02
LDA
#TM03
STA
TM02
INC
TM03
INC
2002
#TM02
LDA
#TM03
STA
TM02
INC
TM03
INC
2002
#TM02
LDA
#TM03
STA
TM02
INC
TM03
INC
••••
Add "1" to the
current value of
"TM03".
DM0000 is
indirectly
addressed.
DM0100 is
indirectly
addressed.
Add "1" to the
current value of
"TM02".
Add "1" to the
current value of
"TM03".
DM0001 is
indirectly
addressed.
DM0101 is
indirectly
addressed.
Add "1" to the
current value of
"TM02".
Add "1" to the
current value
of "TM03".
DM0099 is
indirectly
addressed.
DM0199 is
indirectly
addressed.
Add "1" to the
current value
of "TM02".
FOR / NEXT
KVNKA Chap 02_4bP.p65
08.3.11, 0:00 PM
129