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 n f o r m a t i o n v i s i t :
w w w. e a t o n . c o m
M N 0 5 0 0 3 0 0 3 E
3 - 3 7 0
API Mnemonic
Operands
Function
151
PWD
S, D
Detection of Input Pulse Width
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K
H KnX
KnY
KnM KnS T
C
D
E
F
S
*
D
*
PWD: 5 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
: Source address
D
: Destination address for storing the result
Description:
1. Range
of
S
: X10 ~ X17
2. Range
of
D
: D0 ~ D999, occupying 2 consecutive devices. Can only be used once in the
program.
3.
PWD instruction is used for detecting the time span of input signals from X10 ~ X17; the valid
frequency range is 1 ~1KHz. When M1169 = Off, the instruction will detect the time span from
the rising edge to the falling edge of the input signals (units: 100us). When M1169 = On, the
instruction will detect the time span from one rising edge of the input signal to the next rising
edge of the input signal (units: 1us). It cannot use the same input as is used in the DCNT and
ZRN instructions.
4.
D
occupies two consecutive words. The longest detectable time is 21,474.83647 seconds,
about 357.9139 minutes or 5.9652 hours.
5.
There is no limit on the number of times this instruction can be used in a program. However,
only one instruction can be executed at a time.
Program Example:
When X0 = On, record the time span of X10 = On and store it in D1 and D0.
X0
PWD
X10
D0
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...