3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-137
API Mnemonic
Operands
Function
55
D HSZ
S
1
, S
2
, S, D
HSC Zone Compare
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
S
1
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
S
*
D
*
*
*
DHSZ: 17 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
S
1
: Low-limit value of zone comparison
S
2
: High-limit value of zone comparison
S
: high-speed
counter number
D
: compared result (occupies 3 continuous bit addresses)
Description: (ELC-PC/PA/PH/PV)
1.
S
1
should be equal to or less than
S
2
(
S
1
≦
S
2
).
2. If
D
is specified as Y0~Y7, when
S
1
and
S
2
are equal, the compare result will immediately
energize the external output Y0~Y7. M and S devices are immediately set, not being affected
by the scan cycle.
3.
All outputs with the zone comparison use interrupts.
4. Operand
S
of ELC-PC/PA should be C235~C244, C246~C249, C251~C254. Operand
S
of
ELC-PH should be C235~C255. Operand
S
of ELC-PV should be C235~C254.
5.
Flags: M1059~M1260 (Refer to the DHSCS instruction for more details)
Description: (ELCM-PH/PA)
1. If
D
is specified as Y0~Y3 in this instruction, the compare result will immediately energize the
external outputs Y0~Y3. M and S devices, not affected by the program scan cycle, will be
updated immediately.
2.
High speed counters include software high speed counters and hardware high speed counters.
In addtiion, there are also two types of comparators including software comparators and
hardware comparators.
3.
Explanations on software comparators for DHSZ instruction
a) Corresponding table for software counters and comparators:
Counter
C232 C233 C234 C235 C236 C237 C238 C239 C240 C241 C242
Hi-speed compare
Set/Reset
Share 6 software comparators
b) Block diagram of software counters and comparators:
Содержание 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...