For example, let's assume that there is an external button connected to the terminal of I0.0. When we press the I0.0 terminal, we want to do something at once. Then we first check the interrupt event number, and the event corresponding to the 0 event is I0. .0 pressed event, we use ATCH instruction, write 0 in EVEN, parameter, write INT_0 in INIT parameter,
The implication is that when I0.0 is closed, it immediately enters the INT_0 interrupt routine to execute the program and then opens the total interrupt. The (ENI) instruction is the total interrupt.
So the interrupt using S7-200plc generally has 3 steps:
1 step, interrupt the connection, use the ATCH command
2 steps, open total interruption
3 steps, in the interrupt program to be called, write the program
UK Multifunctional Adapter Plug
Uk Adapter Plug,Power Plug Uk,Uk Charger Plug,Uk Multifunctional Adapter Plug
Wenzhou Niuniu Electric Co., Ltd. , https://www.anmuxisocket.com