E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-116
M1000
DCNT
C235
K1000
M0
DHSCS
K100
C235
Y0
On immediately
Program Example 2:
Difference between a Y output for DHSCS instructions and general Y output:
When C249’s value changes from 99
→
100 or 101
→
100, Y0 output of DHSCS immediately
energizes the output Y0 using the interrupt process which is independent of the scan time.
However, there will still be a delay due to the output module: relay output delay: 10ms. Transistor
output delay: 10us.
When the present value of high-speed counter C249 changes from 99 to 100, C249 will be
activated, and Y7 will be ON, but the actual output Y7 will not be energized until after the program
scan is complete. The same output delays for relay and transistor outputs apply as well.
M1000
DCNT
C249
K100
SET
Y7
C249
DHSCS
K100
C249
Y0
ON immediately
Program Example 3:
High-speed counter interrupt:
1.
ELC-PC/PA/PH models support the high-speed counter interrupt
2.
When using the DHSCS instruction to execute an interrupt routine when
S
1
and
S
2
are equal,
the specified high-speed counter can not be use in other DHSCS, DHSCR or DHSZ
instructions. If it is used in any of these instructions, it will result in an error.
3.
The interrupt pointers I010 to I060 can be used as the
D
operand for DHSCS instructions and
this enables the interrupt routine to be executed when the value of the specified high-speed
counter reaches the value in the DHSCS instruction.
4.
For ELC-PC/PA/PH models, there are six high-speed counter interrupts: I010, I020, I030,
I040, I050, I060 (6 points) that can be used. I010 is used with C235, C241, C244, C246,
C247, C249, C251, C252, and C254. I020 is used with C236, C243; I030 is used with C237,
C242; I040 is used with C245, C238; I050 is used with C239 and I060 is used with C240,
C250 and C255.
5.
When the present value of C251 changes from 99
→
100 or 101
→
100, the program will jump
to the interrupt pointer I010 to execute the interrupt routine.
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...