EL C Pro g rammi ng Manu al
F O R MORE INFORM AT ION VISIT: WWW.E ATON.COM MN05003003E
2-80
In ELCM-PH/PA , when input signal of input terminal X0~X7 is triggered on rising-edge or falling-
edge, it will interrupt current program execution and jump to the designated interrupt subroutine
pointer I000/I001(X0), I100/I101(X1), I200/I201(X2), I300/I301(X3), I400/I401(X4), I500/I501(X5),
I600/I601(X6), I700/I701(X7). When IRET instruction is executed, program execution returns to the
address before interrupt occurs.
In ELCM-PH/PA, when X0 (C243) works with I100/I101 (X1), X0/X1 (C246, C248, C252) works
with I400/I401, the value of C243, C246, C248, C252 will be stored in (D1240, D1241)
In ELCM-PH/PA, when X2 (C244) works with I300/I301 (X3), X2/X3 (C250, C254) works with
I500/I501, the value of C244, C250, C254 will be stored in (D1242, D1243).
2. Timer
interrupt
ELC will stop the present program and jump to the designated interrupt subroutine. Then ELC will
execute automatically for every time period set by 1ms~99ms (0.1ms~9.9ms)
3. Pulse
interruption
The pulse output instruction API 57 PLSY can be set up so the interrupt signal is sent out
synchronously when the first pulse is sent out by enabling flags M1342 and M1343. The
corresponding interrupts are I130 and I140. You can also set up so the interrupt signal is sent out
after the last pulse is sent out, by enabling flags M1340 and M1341. The corresponding interrupts
are I110 and I120.
4.
Counter attained interrupt
The comparison instruction DHSCS of the high-speed counter can be used to interrupt the present
program and jump to the designated interrupt insert subroutine to execute the interrupt pointer I010,
I020, I030, I040, I050, I060, I070, I080 when the comparison is attained.
5. Communication
interrupt
ELC-PB/PC/PA/PH/PV, ELCB-PB:
I150:
When using the communication instruction RS, it can be set to have an interrupt request when
receiving specific characters. Interrupt I150 and specific characters are set to the low byte of D1168
(ELC-PC/PA/PH), D1127 (ELC-PB, ELCB-PB).
When the ELC connects to a communication device and the received data length is not the
expected length, the end character in D1168 (D1127) and the interrupt subroutine I150 is set. When
the ELC receives this end character, it will execute interrupt subroutine I150.
I160:
The RS instruction sends out an interrupt request when receiving a specific length of data. When
the data received equals the low byte of D1169, I160 will be triggered. When D1169 = 0, I160 will
not be triggered.
I170:
In Slave mode, interrupt I170 will be generated when the received data message is complete.
Normally when the communication terminal of the ELC is in Slave mode, the ELC will not
immediately process the communication data entered, but process it after the END is executed.
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...