The text of a manual · part 40 of 61
DL205 PLC User Manual, Volume 1 of 2: Chapter 5: RLL and Intelligent Box Instructions, pages 373 to 382
Pages 373 to 382 of 592, from DL205 PLC User Manual, Volume 1 of 2
The original document is the PDF (13 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the PLC Direct D2-08ND3 and Koyo D2-08ND3
Page 373
Chapter 5: Standard RLL Instructions - Table
Find (FIND)
1 A aaa 2 the Find function. 3 Step 1: Load the length of the table (number of V-memory locations) into the second level of the accumulator stack. This parameter must be a HEX value, 0 to FFFF. 4 Step 2: Load the starting V-memory location for the table into the first level of the accumulator stack. This parameter must be a HEX value. 5 Step 3: Load the offset from the starting location to begin the search. This parameter must be a HEX value. 6 Step 4: Insert the Find instruction which specifies the first value to be found in the table. Results: The offset from the starting address to the first V-memory location which contains the search value is returned to the accumulator as a HEX value. SP53 will be set on if an address outside 7 the table is specified in the offset or the value is not found. If the value is not found 0 will be returned in the accumulator. 8 Helpful hint:, For parameters that require HEX values when referencing memory locations, the LDA instruction can be used to convert an octal address to the HEX equivalent and load 9 the value into the accumulator. 10 Operand Data Type DL260 Range A aaa 11 Discrete Bit Flag Description 12 13 NOTE: Status flags are only valid until another instruction that uses the same flags is executed. The pointer for this instruction starts at 0 and resides in the accumulator. 14 In the example on the following page, when X1 is on, the constant value (K6) is loaded into the accumulator using the Load instruction. This value specifies the length of the table and is A placed in the second stack location when the following Load Address and Load instruction is executed. The octal address 1400 (V1400) is the starting location for the table and is loaded B into the accumulator. This value is placed in the first level of the accumulator stack when the following Load instruction is executed. The offset (K2) is loaded into the lower 16 bits of the C accumulator using the Load instruction. The value to be found in the table is specified in the Find instruction. If a value is found equal to the search value, the offset (from the starting location of the table) where the value is located will reside in the accumulator. D
Find instruction is used to search for a specified value in a 230 The V-memory table of up to 255 locations. The function 240 parameters are loaded into the first and second levels of the 250-1 accumulator stack and the accumulator by three additional 260 instructions. Listed below are the steps necessary to program DS Used HPP Used
V-memory Constant
SP53
V K
FIND
All (See page 3 - 56) 0-FFFF
On if there is no value in the table that is equal to the search value.
DL205 User Manual, 4th Edition, Rev. A
5–151
Page 374
Chapter 5: Standard RLL Instructions - Table DirectSOFT
1 2 3 4 5 6 7 8 Find Greater Than (FDGT) 9 The Find Greater Than instruction is used to search for the first FDGT occurrence of a value in a V-memory table that is greater than A aaa 10 the specified value (Aaaa), which can be either a V-memory location or a 4-digit constant. The function parameters are
11 loaded into the first level of the accumulator stack and the accumulator by two additional instructions. Listed below are the steps necessary to program the Find Greater Than function. 12 NOTE: This instruction does not have an offset, such as the one required for the FIND instruction. 13 Step 1: Load the length of the table (up to 255 locations) into the first level of the accumulator stack. This parameter must be a HEX value, 0 to FFFF. 14 Step 2: Load the starting V-memory location for the table into the accumulator. This parameter must be a HEX value. Step 3: Insert the FDGT instruction which specifies the greater than search value. A Results: The offset from the starting address to the first Vmemory location which contains the greater than search value is returned to the accumulator as a HEX value. SP53 will be set on if the B value is not found and 0 will be returned in the accumulator. Helpful hint:, For parameters that require HEX values when referencing memory locations, C the LDA instruction can be used to convert an octal address to the HEX equivalent and load the value into the accumulator. D X1
LD
K6
Load the constant value 6 (HEX) into the lower 16 bits of the accumulator
Offset
Begin here
LDA
O 1400
Convert octal 1400 to HEX 300 and load the value into the accumulator
0
1
2
3
V1400
0
0
5
0
0
V1401
1
9
9
9
9
V1402
2
3
0
7
4
V1403
3
8
9
8
9
V1404
4
1
0
1
0
V1405
5
X
X X
X V1406
X
X X
X V1407
Table length
Accumulator
0
0
0
0
0
0
0
4
V1404 contains the location where the match was found. The value 8989 was the 4th location after the start of the specified table.
LD
K2
Handheld Programmer Keystrokes
Load the constant value 2 into the lower 16 bits of the accumulator
FIND
K8989
Find the location in the table where the value 8989 resides
$
B
STR
1
SHFT
L ANDST
D
SHFT
L ANDST
D
SHFT
L ANDST
D
SHFT
F
I
PREV
3
A
3
3
5
230 240
250-1 260
DS Used HPP Used
5–152
ENT
DL205 User Manual, 4th Edition, Rev. A
8
G
6
B
E
1
0
PREV
C
N TMR
D
2
3
ENT
A
4
A
0
0
ENT
ENT
NEXT
I
J
8
I
9
J
8
9
ENT
Page 375
Chapter 5: Standard RLL Instructions - Table Operand Data Type
DL260 Range
1 2 Discrete Bit Flags Description 3 NOTE: Status flags are only valid until another instruction that uses the same flags is executed. The pointer 4 for this instruction starts at 0 and resides in the accumulator. In the following example, when X1 is on, the constant value (K6) is loaded into the 5 accumulator using the Load instruction. This value specifies the length of the table and is placed in the first stack location after the Load Address instruction is executed. The octal address 1400 (V1400) is the starting location for the table and is loaded into the accumulator. 6 The greater than search value is specified in the Find Greater Than instruction. If a value is found greater than the search value, the offset (from the starting location of the table) where 7 the value is located will reside in the accumulator. If there is no value in the table that is greater than the search value, a zero is stored in the accumulator and SP53 will come ON. 8 9 10 11 12 13 14 A B C D A
V-memory Constant
SP53 aaa
V All (See page 3 - 56) K 0-FFFF
On if there is no value in the table that is equal to the search value.
DirectSOFT X1
LD
Begin here
K6
Load the constant value 6 (HEX) into the lower 16 bits of the accumulator
LDA
O1400
Convert octal 1400 to HEX 300 and load the value into the accumulator
Table length
0
1
2
3
V1400
0
0
5
0
0
V1401
1
9
9
9
9
V1402
2
0
3
0
7
4
V1403
3
8
9
8
9
V1404
4
1
0
1
0
V1405
5
X
X X
X V1406
V1402 contains the location where the first value greater than the search value was found. 9999 was the 2nd location after the start of the specified table.
X
X X
X V1407
Accumulator
0
0
0
0
0
0
2
FDGT
K8989
Find the value in the table greater than the specified value
Handheld Programmer Keystrokes $
B
STR
1
SHFT
L ANDST
D
SHFT
L ANDST
D
SHFT
F
D
5
ENT
PREV
3
A
3
6
B
0
G
3
G
6
E
1
T
MLR
ENT
A
4
NEXT
A
0
I
ENT
0
J
8
I
9
J
8
9
ENT
DL205 User Manual, 4th Edition, Rev. A
5–153
Page 376
Chapter 5: Standard RLL Instructions - Table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Table to Destination (TTD) Table To Destination instruction moves a value from a 230 The V-memory table to a V-memory location and increments the 240 table pointer by 1. The first V-memory location in the table 250-1 contains the table pointer which indicates the next location in 260 the table to be moved. The instruction will be executed once DS Used HPP Used
TTD Vaaa per scan provided the input remains on. The table pointer will reset to 1 when the value equals the last location in the table. The function parameters are loaded into the first level of the accumulator stack and the accumulator by two additional instructions. Listed below are the steps necessary to program the Table To Destination function. Step 1: Load the length of the data table (number of V-memory locations) into the first level of the accumulator stack. This parameter must be a HEX value, 0 to FF. Step 2: Load the starting V-memory location for the table into the accumulator. (Remember, the starting location of the table is used as the table pointer.) This parameter must be a HEX value. Step 3: Insert the TTD instruction which specifies destination V-memory location (Vaaa).
Helpful hint:, For parameters that require HEX values when referencing memory locations, the LDA instruction can be used to convert an octal address to the HEX equivalent and load the value into the accumulator. Helpful hint:, The instruction will be executed every scan if the input logic is on. If you do not want the instruction to execute for more than one scan, a one shot (PD) should be used in the input logic. Helpful hint:, The pointer location should be set to the value where the table operation will begin. The special relay SP0 or a one shot (PD) should be used so the value will only be set in one scan and will not affect the instruction operation. Operand Data Type
DL260 Range
V-memory
All (See page 3 - 56)
aaa
Discrete Bit Flags SP53
5–154
V
Description On if there is no value in the table that is equal to the search value.
NOTE: Status flags (SPs) are only valid until:, another instruction that uses the same flag is executed, or, the end of the scan. The pointer for this instruction starts at 0 and resets when the table length is reached. At first glance it may appear that the pointer should reset to 0. However, it resets to 1, not 0.
DL205 User Manual, 4th Edition, Rev. A
Page 377
Chapter 5: Standard RLL Instructions - Table In the following example, when X1 is on, the constant value (K6) is loaded into the accumulator using the Load instruction. This value specifies the length of the table and is placed in the first stack location after the Load Address instruction is executed. The octal address 1400 (V1400) is the starting location for the source table and is loaded into the accumulator. Remember, V1400 is used as the pointer location, and is not actually part of the table data source. The destination location (V1500) is specified in the Table to Destination instruction. The table pointer (V1400 in this case) will be increased by “1” after each execution of the TTD instruction. DirectSOFT X1
Load the constant value 6 (HEX) into the lower 16 bits of the accumulator
LD K6
Convert octal 1400 to HEX 300 and load the value into the accumulator. This is the table pointer location
LDA 0 1400
Copy the specified value from the table to the specified destination (V1500)
TTD V1500
Handheld Programmer Keystrokes $
B 1
STR SHFT
L ANDST
D
SHFT
L ANDST
D
SHFT
T MLR
T MLR
ENT PREV
3 A 3
G 6 B
0 D
A 4
1 B
3
ENT E F
1
A
A 5
ENT
0
0 A
It is important to understand how the table locations V1401 are numbered. If you examine the example table, V1402 you’ll notice that the first data location, V1401, will V1403 be used when the pointer is equal to zero, and again V1404 when the pointer is equal to six. Why? Because the V1405 pointer is only equal to zero before the very first V1406 execution. From then on, it increments from one to V1407 six, and then resets to one. Also, our example uses a normal input contact (X1) to control the execution. Since the CPU scan is extremely fast, and the pointer increments automatically, the table would cycle through the locations very quickly. If this is a problem, you have an option of using SP56 in conjunction with a one-shot (PD) and a latch (C1 for example) to allow the table to cycle through all locations one time and then stop. The logic shown here is not required, it’s just an optional method.
ENT
0
0
Table Pointer
Table 0
5
0
0
06
9
9
9
9
1
3
0
7
4
2
8
9
8
9
3
1
0
1
0
4
2
0
4
6
5
X
X X
X
0
0
0
0 V1400
Destination X
X X
X V1500
. . DirectSOFT
Display (optional latch example using SP56)
X1
C1
C0 PD LD K6 Load the constant value 6 (HEX) into the lower 16 bits of the accumulator
C0
C1 SET
SP56
C1 RST
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Since Special Relays are reset at the end of the scan, this latch must follow the TTD instruction in the program.
DL205 User Manual, 4th Edition, Rev. A
5–155
Page 378
Chapter 5: Standard RLL Instructions - Table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5–156
The following diagram shows the scan-by-scan results of the execution for our example program. Notice how the pointer automatically cycles from 0 to 6, and then starts over at 1 instead of 0. Also, notice how SP56 is only on until the end of the scan.
Scan N
Before TTD Execution
After TTD Execution
Table
Table Pointer
V1401
0
5
0
0
0 6
V1402
9
9
9
9
1
V1403
3
0
7
4
2
V1404
8
9
8
9
3
V1405
1
0
1
0
4
V1406
2
0
4
6
5
V1407
X
X X
X
0
0
0
Table
0 V1400
Destination X
X X
X V1500
SP56 SP56 = OFF
0
5
0
0
0 6
V1402
9
9
9
9
1
V1403
3
0
7
4
2
V1404
8
9
8
9
3
V1405
1
0
1
0
4
V1406
2
0
4
6
5
V1407
X
X
X
X
. .
Scan N+1
Table Pointer (Automatically Incremented)
V1401
0
0
0
1 V1400
Destination 0
5
0
0
V1500
SP56 SP56 = OFF
. . After TTD Execution
Before TTD Execution Table
Table Pointer
V1401
0
5
0
0
0 6
V1402
9
9
9
9
1
V1403
3
0
7
4
2
V1404
8
9
8
9
3
V1405
1
0
1
0
4
V1406
2
0
4
6
5
V1407
X
X X
X
0
0
0
Table
1 V1400
Destination 0
5
0
0 V1500
SP56 SP56 = OFF
Table Pointer (Automatically Incremented)
V1401
0
5
0
0
0 6
V1402
9
9
9
9
1
V1403
3
0
7
4
2
V1404
8
9
8
9
3
V1405
1
0
1
0
4
V1406
2
0
4
6
5
V1407
X
X
X
X
0
0
0
2 V1400
Destination 9
9
9
9 V1500
SP56 SP56 = OFF
. .
. . . . .
Scan N+5
After TTD Execution
Before TTD Execution Table
Table Pointer
V1401
0
5
0
0
0 6
V1402
9
9
9
9
1
V1403
3
0
7
4
2
V1404
8
9
8
9
3
V1405
1
0
1
0
4
V1406
2
0
4
6
5
V1407
X
X X
X
0
0
0
Destination 1
0
1
0 V1500
SP56 SP56 = OFF
V1401
0
5
0
0
0 6
V1402
9
9
9
9
1
V1403
3
0
7
4
2
V1404
8
9
8
9
3
V1405
1
0
1
0
4
V1406
2
0
4
6
5
V1407
X
X
X
X
. .
Scan N+6
Table Pointer (Automatically Incremented)
Table
5 V1400
0
0
0
6 V1400
Destination 2
0
4
6 V1500
SP56 SP56 = ON until end of scan or next instruction that uses SP56
. . After TTD Execution
Before TTD Execution Table
Table Pointer
V1401
0
5
0
0
0 6
V1402
9
9
9
9
1
V1403
3
0
7
4
2
V1404
8
9
8
9
3
V1405
1
0
1
0
4
V1406
2
0
4
6
5
V1407
X
X X
X
0
0
0
Table
6 V1400
Destination 2
0
4
6 V1500
SP56 SP56 = OFF
. .
DL205 User Manual, 4th Edition, Rev. A
Table Pointer (Resets to 1, not 0)
V1401
0
5
0
0
0 6
V1402
9
9
9
9
1
V1403
3
0
7
4
2
V1404
8
9
8
9
3
V1405
1
0
1
0
4
V1406
2
0
4
6
5
V1407
X
X
X
X
. .
0
0
0
1 V1400
Destination 0
5
0
0 V1500
SP56 SP56 = OFF
Page 379
Chapter 5: Standard RLL Instructions - Table
Remove from Bottom (RFB)
240 250-1 260 230
1 Vaaa 2 3 4 5 Step 1: Load the length of the table (number of V-memory locations) into the first level of the accumulator stack. This parameter must be a HEX value, 0 to FF. 6 Step 2: Load the starting V-memory location for the table into the accumulator. (Remember, the starting location of the table blank is used as the table pointer.) This parameter must be a 7 HEX value. Step 3: Insert the RFB instructions which specifies destination V-memory location (Vaaa). 8 Helpful hint:, For parameters that require HEX values when referencing memory locations, the LDA instruction can be used to convert an octal address to the HEX equivalent and load the value into the accumulator. 9 Helpful hint:, The instruction will be executed every scan if the input logic is on. If you do not want the instruction to execute for more than one scan, a one shot (PD) should be used 10 in the input logic. Helpful hint:, The pointer location should be set to the value where the table operation 11 will begin. The special relay SP0 or a one shot (PD) should be used so the value will only be set in one scan and will not affect the instruction operation. 12 Operand Data Type DL260 Range aaa 13 Discrete Bit Flags Description 14 NOTE: Status flags (SPs) are only valid until: A, another instruction that uses the same flag is executed, or, the end of the scan. B The pointer for this instruction can be set to start anywhere in the table. It is not set automatically. You have to load a value into the pointer somewhere in your program. C D
DS Used HPP Used
The Remove From Bottom instruction moves a value from the bottom of a V-memory table to a V-memory location and decrements a table pointer by 1. The first V-memory location in the table contains the table pointer which indicates the next location in the table to be moved. The instruction will be executed once per scan provided the input remains on. The instruction will stop operation when the pointer equals 0. The function parameters are loaded into the first level of the accumulator stack and the accumulator by two additional instructions. Listed below are the steps necessary to program the Remove From Bottom function.
V-memory
SP56
V
RFB
All (See page 3 - 56)
On when the table pointer equals 0
DL205 User Manual, 4th Edition, Rev. A
5–157
Page 380
Chapter 5: Standard RLL Instructions - Table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5–158
In the following example, when X1 is on, the constant value (K6) is loaded into the accumulator using the Load instruction. This value specifies the length of the table and is placed in the first stack location after the Load Address instruction is executed. The octal address 1400 (V1400) is the starting location for the source table and is loaded into the accumulator. Remember, V1400 is used as the pointer location, and is not actually part of the table data source. The destination location (V1500) is specified in the Remove From Bottom. The table pointer (V1400 in this case) will be decremented by “1” after each execution of the RFB instruction. DirectSOFT X1
LD K6 Load the constant value 6 (HEX) into the lower 16 bits of the accumulator LDA 0 1400 Convert octal 1400 to HEX 300 and load the value into the accumulator. This is the table pointer location RFB V1500 Copy the specified value from the table to the specified destination (V1500)
Handheld Programmer Keystrokes $
B 1
STR SHFT
L ANDST
D
SHFT
L ANDST
D
SHFT
R ORN
F
ENT PREV
3 A 3
6 B
0 B
5
G
ENT E
B 1
A 4
1 F 1
A
A 5
ENT
0
0 A 0
It is important to understand how the table locations are numbered. If you examine the example table, you’ll notice that the first data location, V1401, will be used when the pointer is equal to one. The second data location, V1402, will be used when the pointer is equal to two, etc.
ENT
0
Table
Table Pointer
V1401
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X
X
X
0
0
0
X
X
X
S S DirectSOFT (optional one-shot method)
Also, our example uses a normal input contact (X1) to control the execution. Since the CPU scan is extremely fast, and the pointer decrements automatically, the table would cycle through the locations very quickly. If this is a problem for your applicaton, you have an option of using a one-shot (PD) to remove one value each time the input contact transitions from low to high.
DL205 User Manual, 4th Edition, Rev. A
X1
C0
0 V1400
Des tination
C0 PD LD K6 Load the constant value 6 (HEX) into the lower 16 bits of the accumulator LDA O 1400 Convert octal 1400 to HEX 300 and load the value into the accumulator. This is the table pointer location.
X V1500
Page 381
Chapter 5: Standard RLL Instructions - Table The following diagram shows the scan-by-scan results of the execution for our example program. Notice how the pointer automatically decrements from 6 to 0. Also, notice how SP56 is only on until the end of the scan. Example of Execution Scan N
Before RFB Execution
After RFB Execution
Table
Table Pointer
V1401
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X X
X
0
0
0
Table
6 V1400
Destination X
X X
X V1500
SP56 SP56 = OFF
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X
X
X
0
0
0
5 V1400
Destination 2
0
4
6
V1500
SP56 SP56 = OFF
. .
. .
Scan N+1
Table Pointer (Automatically Decremented)
V1401
Before RFB Execution
After RFB Execution
Table
Table Pointer
V1401
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X X
X
0
0
0
Table
5 V1400
Destination 2
0
4
6 V1500
SP56 SP56 = OFF
Table Pointer (Automatically Decremented)
V1401
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X
X
X
. .
0
0
0
4 V1400
Destination 1
0
1
0 V1500
SP56 SP56 = OFF
. . . . .
Scan N+4
Before RFB Execution
After RFB Execution
Table
Table Pointer
V1401
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X X
X
0
0
0
Destination 3
0
7
4 V1500
SP56 SP56 = OFF
V1401
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X
X
X
. .
Scan N+5
0
0
0
1 V1400
Destination 9
9
9
9 V1500
SP56 SP56 = OFF
. .
Before RFB Execution
After RFB Execution
Table
Table Pointer
V1401
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X X
X
. .
Table Pointer (Automatically Decremented)
Table
2 V1400
0
0
0
Table
1 V1400
Destination 9
9
9
9 V1500
SP56 SP56 = OFF
Table Pointer
V1401
0
5
0
0
1
V1402
9
9
9
9
2
V1403
3
0
7
4
3
V1404
8
9
8
9
4
V1405
1
0
1
0
5
V1406
2
0
4
6
6
V1407
X
X
X
X
. .
0
0
0
0 V1400
Destination 0
5
0
0 V1500
SP56 SP56 = ON until end of scan or next instruction that uses SP56
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–159
Page 382
Chapter 5: Standard RLL Instructions - Table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Source to Table (STT) Source To Table instruction moves a value from a 230 The V-memory location into a V-memory table and increments a 240 table pointer by 1. When the table pointer reaches the end of 250-1 the table, it resets to 1. The first V-memory location in the 260 table contains the table pointer which indicates the next DS Used HPP Used
ST T V aaa location in the table to store a value. The instruction will be executed once per scan provided the input remains on. The function parameters are loaded into the first level of the accumulator stack and the accumulator with two additional instructions. Listed below are the steps necessary to program the Source To Table function.
Step 1: Load the length of the table (number of V-memory locations) into the firstlevel of the accumulator stack. This parameter must be a HEX value, 0 to FF. Step 2:Load the starting V-memory location for the table into the accumulator. (Remember, the starting location of the table is used as the table pointer.) This parameter must be a HEX value. Step 3:Insert the STT instruction which specifies the source V-memory location (Vaaa). This is where the value will be moved from.
Helpful hint:, For parameters that require HEX values when referencing memory locations, the LDA instruction can be used to convert an octal address to the HEX equivalent and load the value into the accumulator. Helpful hint:, The instruction will be executed every scan if the input logic is on. If you do not want the instruction to execute for more than one scan, a one shot (PD) should be used in the input logic. Helpful hint:, The table counter value should be set to indicate the starting point for the operation. Also, it must be set to a value that is within the length of the table. For example, if the table is 6 words long, then the allowable range of values that could be in the pointer should be between 0 and 6. If the value is outside of this range, the data will not be moved. Also, a one shot (PD) should be used so the value will only be set in one scan and will not affect the instruction operation. Operand Data Type
DL260 Range
V-memory
All (See page 3 - 56)
aaa
Discrete Bit Flags SP56
V
Description On when the table pointer equals the table length.
NOTE: Status flags (SPs) are only valid until:, another instruction that uses the same flag is executed, or, the end of the scan The pointer for this instruction starts at 0 and resets to 1 automatically when the table length is reached.
5–160
DL205 User Manual, 4th Edition, Rev. A