Automationdirect.com DirectLOGIC DL205 Series User Manual page 385

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Table
The following diagram shows the scan-by-scan results of the execution for our example
1
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
2
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.
3
Example of Execution
Scan N
4
5
6
7
Scan N+1
8
9
10
11
Scan N+2
12
13
14
A
Scan N+3
B
C
D
5–168
DL205 User Manual, 4th Edition, Rev. B
Before ATT Execution
Table
Table counter
0
0
0
V1401
0
5
0
0
1
9
9
9
9
2
V1402
Data Source
3
0
7
4
3
V1403
1
2
3
8
9
8
9
4
V1404
1
0
1
0
5
V1405
SP56
V1406
2
0
4
6
6
X
X X
X
V1407
Before ATT Execution
Table counter
Table
1
0
0
0
V1401
1
2
3
4
0
5
0
0
2
V1402
Data Source
3
9
9
9
9
V1403
5
6
7
4
V1404
3
0
7
4
8
9
8
9
5
V1405
SP56
6
1
0
1
0
V1406
X
X
X
X
V1407
Before ATT Execution
Table counter
Table
0
0
0
V1401
5
6
7
8
1
1
2
3
4
2
V1402
Data Source
0
5
0
0
3
V1403
4
3
3
V1404
9
9
9
9
4
3
0
7
4
5
V1405
8
9
8
9
6
SP56
V1406
X
X
X
X
V1407
Before ATT Execution
Table counter
Table
4
3
4
3
1
0
0
0
V1401
5
6
7
8
V1402
2
Data Source
1
2
3
4
V1403
3
7
7
7
V1404
0
5
0
0
4
9
9
9
9
V1405
5
3
0
7
4
SP56
V1406
6
V1407
X
X
X
X
After ATT Execution
Table
2
V1400
V1401
1
2
0
5
V1402
9
9
V1403
4
V1500
3
0
V1404
8
9
V1405
V1406
1
0
SP56 = OFF
X
X
V1407
After ATT Execution
Table
3
V1400
V1401
5
6
1
2
V1402
0
5
V1403
8
V1500
V1404
9
9
3
0
V1405
8
9
V1406
SP56 = OFF
X
X
V1407
After ATT Execution
Table
4
V1400
V1401
4
3
5
6
V1402
1
2
V1403
4
V1500
V1404
0
5
9
9
V1405
3
0
V1406
SP56 = OFF
X
X
V1407
After ATT Execution
Table
5
7
7
V1400
V1401
4
3
V1402
5
6
V1403
7
V1500
1
2
V1404
V1405
0
5
9
9
V1406
SP56 = OFF
X
X
V1407
Table counter
(Automatically Incremented)
0
0
0
3
4
1
1
2
3
0
0
2
4
Data Source
9
9
3
1
2
3
7
4
4
8
9
5
SP56
1
0
6
X
X
Discard Bucket
2046
Table counter
(Automatically Incremented)
0
0
0
7
8
1
5
6
3
4
2
7
8
Data Source
0
0
3
5
6
7
9
9
4
7
4
5
SP56
8
9
6
X
X
Discard Bucket
1010
Table counter
(Automatically Incremented)
0
0
0
4
3
1
4
3
7
8
2
4
3
Data Source
3
4
3
4
3
4
0
0
4
9
9
5
7
4
6
SP56
X
X
Discard Bucket
8989
Table counter
(Automatically Incremented)
7
7
1
7
0
0
0
7
7
4
3
2
7
Data Source
7
8
3
7
7
7
3
4
4
0
0
5
9
9
6
SP56
X
X
Discard Bucket
3074
3
V1400
4
V1500
SP56 = OFF
4
V1400
8
V1500
SP56 = OFF
5
V1400
3
V1500
SP56 =
OFF
6
V1400
7
V1500
SP56 =
ON
until end of scan
or next instruction
that uses SP56

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?

Table of Contents

Save PDF