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-120
Program Example 5:
1.
Set/reset M0 by utilizing the hardware comparator
M1000
DCNT
C251
K100
DHSCS
C251
K100
M0
DHSCR
C251
K100
M0
2.
When the accumulated value in C251 increments from 100 to101, the DHSCS instruction
sets M0 ON.
3.
When the accumulated value in C251 decrements from 100 to 99, DHSCR instruction resets
M0.
4.
Timing diagram for the comparison:
Counting
No.
Time
Count up
Count down
M0
101
100
99
98
101
100
99
98
1
2
Program Example 6:
1.
Executing an interrupt subroutine with a software comparator.
2.
When the accumulative value in C235 increments from 99 to100, the interrupt subroutine
I010 executes immediately to set Y0 ON.
M1000
DCNT
C235
K100
DHSCS
C235
K100
I010
EI
FEND
I010
M1000
OUT
Y10
IRET
END
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...