
High
−
level Instructions
3
−
129
Precautions when using two or more comparison instructions
The comparison instruction flags R900A to R900C are updated with each execution of the comparison
instruction.
If you use two or more comparison instructions in your program, be sure to use the flags immediately after
each comparison instruction, by employing output relays or internal relays.
Example:
Compares DT0 with K100, and DT1 with K200.
Y10
Y11
Y12
R0
R0
R0
R0
F60 CMP, DT 0, K 100
R900A
R900B
R900C
Y13
Y14
Y15
R1
R1
R1
R1
F60 CMP, DT 1, K 200
R900A
R900B
R900C
b)
c)
a)
d)
The comparison result for a) is output to the output relays
(Y10, Y11, and Y12) of program b).
The comparison result for c) is output to the output relays
(Y13, Y14, and Y15) of program d).
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-E
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...