2.1 Composition of Basic Instructions
2-5
Interrupt program
In addition to the normal program, enter an interrupt program (specified with INT or IRET)
if you need a program which will execute immediately when a certain condition is met.
When an interrupt is received, the normal program is interrupted and the interrupt
program is executed.
2.1.4 Data Compare Instructions
This is a group of instructions which compare two data. A contact is turned on or off based
on the result of the comparison. Each comparison instruction is composed of several
steps.
Example:
Example of comparing the value of DT10 to K100.
Y30<=, DT 10, K100
If the value of DT10 is less than K100, Y30 is turned on.
If the value of DT10 is greater than K100, Y30 is turned off.