10.4.3.13. INTDEF
10.4.3.13. INTDEF
When the interrupt function is used, this function defines new interrupt state or deletes previously defined interrupt. Refer to the『Hi5 Controller Interrupt Function Manual』for details.
Explanation | This function defines new interrupt or deletes defined interrupt. | ||
Grammar | INTDEF <Define/Dele>, NO=<Interrupt number>, <Interrupt condition>, PN= <call program>, [1times Permitted] | ||
Parameter | Define/Dele | Interrupt is newly defined or defined interrupt is deleted. When interrupted is deleted, third and the rest of parameters are ignored. | ON/OFF |
Interrupt number | Interrupt to be defined or deleted | 1~2 | |
Interrupt condition | Condition for interrupt occurrence (EX. DI1=1,AI4=3.5,P*.X=P1.X) |
| |
call program | Program to be called, when interrupt condition is satisfied. | 1 ~9999 | |
1times Permitted | Only the first interrupt is handled, even though interrupts occur many times within the interrupt watch section. | Single | |
Example | INTDEF ON,NO=1,DI5=1,PN=991,SINGLE INTDEF OFF,NO=1 |