DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-164
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The following diagram shows the scan-by-scan results of the execution for our example
program. The table counter is set to 2 initially, and it will automatically increment from 2 to 6
as the instruction is executed. Notice how SP56 comes on when the table counter is 6, which
is equal to the table length. Plus, although our example does not show it, we are assuming that
there is another part of the program that changes the value in V1500 (data source) prior to the
execution of the ATT instruction.
V1401
7777
V1402
4343
V1403
5678
V1404
1234
V1405 0500
V1406
9999
V1407
XXXX
1
2
3
4
5
6
7
7
7
7
V1401
4343
V1402
5678
V1403
1234
V1404 0500
V1405
9999
V1406
3074
V1407 XXXX
V1401 4343
V1402
5678
V1403
1234
V1404 0500
V1405
9999
V1406
3074
V1407
XXXX
1
2
3
4
5
6
V1401 5678
V1402
1234
V1403
0500
V1404 9999
V1405
3074
V1406
8989
V1407
XXXX
V1401
5678
V1402
1234
V1403
0500
V1404 9999
V1405
3074
V1406
8989
V1407
XXXX
V1401 1234
V1402
0500
V1403
9999
V1404 3074
V1405
8989
V1406
1010
V1407
XXXX
1
2
3
4
5
6
V1401 0500
V1402
9999
V1403
3074
V1404
8989
V1405
1010
V1406 2046
V1407
XXXX
V1500
1234
1
2
3
4
5
6
V1400
0002
V1401 1234
V1402
0500
V1403
9999
V1404
3074
V1405
8989
V1406 1010
V1407
XXXX
V1500
1234
V1400
0003
Table
V15005678
Data Sour ce
V14000004
V1500
4343
V1400
0005
V15005678
1
2
3
4
5
6
V14000003
V1500
4334
1
2
3
4
5
6
V1400
0004
SP56= OFF
SP56
SP56= OFF
SP56
SP56=
SP56
V1500
7777
V1400
0006
V1500
7777
1
2
3
4
5
6
V1400
0005
SP56=
SP56
SP56= OFF
SP56
SP56= OFF
SP56
SP56= OFF
SP56
SP56= OFF
SP56
1
2
3
4
1
2
3
4
5
6
5
6
7
8
3074
8989
2046
1010
Discard Bucket
Discard Bucket
3
4
3
4
Table
After ATT Execution
Table counter
(Automatically Incremented)
Data Source
Discard Bucket
OFF
Discard Bucket
Data Source
ON
until end of scan
or next instruction
that uses SP56
Table counter
(Automatically Incremented)
Table counter
(Automatically Incremented)
Table counter
(Automatically Incremented)
Data Source
After ATT Execution
After ATT Execution
Table
After ATT Execution
Table
Before ATT Execution
Table
Before ATT Execution
Table
Before ATT Execution
Table
Before ATT Execution
Table
Table counter
Data Source
Table counter
Data Source
Table counter
Data Source
Data Source
Table counter