2.2. Interrupt command statement (INTDEF)
2.2. Interrupt command statement (INTDEF)
Description | Defines a new interrupt or deletes the defined interrupts | ||
Grammar | INTDEF <Define/Delete>,NO=<Interrupt No.>,<Interrupt condition>,PN=<Program to call>, [Allowed only one time] | ||
Parameter | Define/Delete | Defines a new interrupt or deletes a defined interrupt. In the case of a deletion, the parameters after the third will be ignored. | ON/OFF |
Interrupt No. | Inputs the number of the interrupt that will be defined or deleted. | 1–8 | |
Interrupt condition | Inputs the condition to generate an interrupt. (EX. DI1=1, AI4=3.5, P*.X=P1.X) |
| |
Program to call | Input the number of the program to call when the interrupt condition is met. | 1–9999 | |
Allowable only one time | To be used when the first interrupt needs to be processed without processing multiple interrupts that could occur within the interrupt monitoring area. | SINGLE | |
Example | INTDEF ON,NO=1,DI5=1,PN=991,SINGLE INTDEF OFF,NO=1 |