Delta CFP2000 Series User Manual page 649

Ip55 fan and pump drive
Table of Contents

Advertisement

Chapter 16 PLC Function Applications│CFP2000
API
ENCO
42
D
Bit device
X
Y
M
S
D
n
Notes on operand usage: none
When S is the bit device, the valid range of n is 0< n ≦8. If n = 0 or n > 8, a fault
will occur.
When n = 8, the maximum decoding will be 2
When X0 switches from Off to On, the content of 2
saved in the lower 3 digits (b2–b0). The unused digits (b15–b3) in D0 become 0.
When the command is executed, X0 turns to Off. The data in D is unchanged.
When S is word device, the valid range of n is 0< n ≦4. If n = 0 or n > 4, the fault
occurs.
When n = 4, the maximum decoding will be 2
When X0 switches from Off to On, 2
saved in the lower 3 digits (b2–b0) of D20. The unused digits (b15–b3) of D20
become 0. (b8–b15 in D10 are invalid data)
When the command is executed, X0 turns to Off. The data in D is unchanged.
n
S
D
P
Word device
K
H
KnX KnY KnM
S
: Encoding source device.
n
: Length of encoding bit.
Encodes the data of lower "2
saves the encoding result in D.
If multiple digits of encoding source device are 1, the command will process the
first digit starting from high digit.
This command usually uses pulse execution type command (ENCOP).
When S is the bit device, n = 1–8, when S is the word device, n = 1–4.
X0
M200
Encoder
16-bit command (7 STEP)
ENCO
T
C
D
32-bit command (13 STEP)
DENCO
execution type
Flag signal: none
D
: Device that saves the encoding result.
" bit length from encoding source device S, and
n
= 256 points.
8
ENCOP
M0
= 16 points.
4
digit data of D10 (b0–b7) is encoded and
3
DE COP
D10
D20
16-76
Continuous
ENCOP
execution type
execution type
Continuous
DENCOP
execution type
digit (M0–M7) is encoded and
3
D0
K3
K3
Pulse
Pulse

Advertisement

Table of Contents
loading

Table of Contents