Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 113

6 - 77
YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions
(c) Control conditions
•
Designation of the input data address (APSH#XXXX)
Designate the address where the data to be compared is stored.
•
Designation of the comparison data address (APSH#XXXX)
Designate the address where the comparison data is stored.
•
Designation of the size of the data (LD#XXXX.XX)
LD = 0:
1 byte
LD = 1:
2 bytes
LD = 2:
4 bytes
•
Execution command (ACT)
ACT = 0: The binary data comparison instruction is not executed.
ACT = 1: The binary data comparison instruction is executed.
•
Result of comparison (APSH#XXXX)
d0 = 1
aaaa = bbbb
d1 = 1
aaaa > bbbb
d2 = 1
aaaa < bbbb
(16)SUBP 034 (Binary Data Search) RR after operation:
Ù
a) Function
The instruction executes search in the table for the data identical to the input data and
stores the address where the identical data are found by the relative address from the
start of the table. If the identical data are not found, an error is output.
The relationship between the numbers in the data table and the designated table is as
indicated below according to the data length.
Double-word
Word
Byte
Table
0
0
0
1
1
2
3
1
.
.
.
n
2
.
.
.
n
4
.
.
.
n