Delta Electronics DVP-01HC User Manual

High-speed Counter
DVP-01HC
1
Please carefully read this instruction thoroughly prior to use the DVP-01HC.
Make sure that power is OFF before wiring.
This is an OPEN TYPE PLC. The PLC should be kept in an enclosure away from airborne
dust, humidity, electric shock risk and vibration. Also, it is equipped with protective methods
such as some special tools or keys to open the enclosure, in order to prevent hazard to users
or damage the PLC.
Do NOT connect the AC main circuit power supply to any of the input/output terminals, or it
may damage the PLC. Check all the wiring prior to power up.
2
2.1 Model Name Explanation and Peripherals
Thank you for choosing DELTA’s PLC DVP series. DVP-01HC high-speed counter input
module could accept 200KHz pulse from external counter. It uses instruction FROM/TO to
read/write the data in module via EH MPU. There are 33 Controlled Registers (CR, each
register is 16-bit) in each module. 32 bits data consists of two continuous CRs and allow
executing itself after setting CR.
The different counter modes, such as single-phase mode, two phases mode, 16-bit mode or
32-bit mode, can be designated by CR. The controlled registers are written by instruction TO
via MPU. When wiring, connect 24V, A24+, B24+, P24+, D24+, A12+, B12+, A5+, B5+, P5+
and D5+ to positive potential. In the same way, 0V, A24-, B24-, P24-, D24-, A12-, B12-, A5-,
B5-, P5- and D5- should be connected to negative potential.
Input signal source could be 1-phase or 2-phase encoder and voltage level could be 5V, 12V
and 24V. Besides, it also provides two terminals, PRESET and DISABLE. When terminal
“PRE” is on, the data in CR#10 and CR#11 will be sent to CR#20 and CR#21. That also means
current value of counter will be changed to be factory setting. When terminal “DIS” is on,
“count” operation is disabled.
There are two outputs, YH0 and YH1, in hardware input module of DVP-01HC. When counter
value is equal to the setting, the corresponding output point will activate. The transistors of
output points are independent and isolated.
Nameplate Explanation
Input power supply spe c.
Output module spec.
Barcode, serial number and version
Model and Serial Number Explanation
Model
Product Series
Channel number
Model type
HC: High-speed counte r module
for EH series MPU
INTRODUCTION
Model Name
Input spec.
Serial Number
序號
VX.XX
Module
Instruction Sheet
24VDC 3W MAX.
5VDC 12VDC 24 1~200KHzVDC
0.5 A 5VDC~30VDC 1~10KHz
01HC-H0T4350001
Production series
Production week Production year (2004 )
Production place (Taoyuan)
Serial number of version Production Model
2.2 Product Profile and Outline
7
10
1
4
2
3
8
5
6
7
9
3
Unit: mm
1. DIN rail track (35mm) 2. Mounting wire to connect extension module/extension unit
3. Model name 4. Status Indicator (Power, Run and ERROR)
5. DIN rail clip 6. Terminal
7. Mounting hole 8. Terminal layout
9. Extension port to connect extension module/unit 10. RS-485 communication port
LED Display
1. Power : Power LED. When external +24V power is applied, it will be ON.
2. L.V. : Low voltage LED. When external power supply is lower than 19V, it will be ON.
3. UP : Count up LED
4. DOWN : Count down LED
5. ψA : When input point A is ON, it will light.
6. ψB : When input point B is ON, it will light.
7. PRE : PRESET LED. When external terminal PRE is ON, it will light.
8. DIS : DISABLE LED. When external terminal DIS is ON, it will light.
9. YH0, YH1 : When output points YH0 and YH1 are ON, it will light.
2.3 Wiring
1. Please use O-type or Y-type terminals for I/O wiring terminals. The
Below 6.2
To suit M3.5 screw terminals
Below 6.2
specification for the terminals is as shown on the left. Tighten PLC
terminal screws to a torque of 5 to 8 kg-cm (4.3~6.9 in-lbs).
2. I/O signal wires or power supply should not run through the same
multi-wire cable or conduit.
3. Use copper conductor only, 60.
External Wiring
PNP output encoder
A phase
OUT
B phase
OUT
Z phase
OUT
COME
+24V
0V+24V
External Power
DC 5 V, 12V, 2 4V
OA
OB
PRESET
DISABLE
START
Shielded wire
Shielded wire
Shielded wire
Shielded wire
EH MPU
connecti on wire
01HC High-speed Counter Module
4.7K
A24+
2.2K
A12+
0.68K
A5+
A -
4.7K
B24+
2.2K
B12+
0.68K
B5+
B -
4.7K
4.7K
P+24
0.68K
P+5
PRE-
4.7K
4.7K
D+24
0.68K
D+5
DIS-
+24V
Filter
DC/DC
+5V
YH0+
YH0-
YH1+
YH1-
+24V
0V
0V +24V
External Power
DC 12V to 24V
Make sure the positive/negative pole of 01HC input terminal wiring is correct when using NPN
encoder.
Start-up current for 01HC is I
is +24V).
=0.8A and general working current is I
PEAK
=0.2A(input voltage
MAX
3
FUNCTION SPECIFICATION
3.1 Function Specification
Item
Power Supply
Max. Number of Connecting
Units
Input
Signal
Voltage
Level
Max. Count
Frequency
Waveform
Count Mode
Count
Specification
Range
Comparison
Method
Output
Signal
Output
Form
Output 5V TO 30VDC, 0.5A
Connect to DVP-PLC
MPU in Series
1-phase Input 2-phase (A, B) Input
1 Input 2 Inputs
DC24V(-15% ~ +20%), Current consumption 140±30mA Power is supplied from PLC or external power supply.
Normal
Frequency
Double
Frequency
Four Times
Frequency
8 units; (All I/O points are not occupied. There can be 8 special extension units at most connected to EH series.)
Terminals [A24+], [B24+]: DC24V ±10 % Terminals P24+], [D24+]: DC12V ~24V ±10 % Terminals [A12+], [B12+]: DC12V ±10 % Terminals [A5+], [B5+], [P5+], [D5+]: DC5V ±10 % Choose only one suitable voltage level for positive pole of each signal.
A: A Phase B: B Phase P: Preset D: Disable
200KHz 200KHz 200KHz 100KHz 50KHz
t
1
t
2
t
3
t
1
t
2
t
3
t1: rise/fall time≦0.8us t2: On/Off pulse width≧2.5us t3: phase difference between A phase and B phase 1us PRESET input: input pulse width≧50us DISABLE input: input pulse width≧50us
There is three count modes: count up/down ((2-phase input for AB phase), 1-phase 2 inputs and 1-phase 1 input.)
32-bit mode: -2,147,483648~+2,147,483,647 16-bit mode: 0~65,536 (upper limit can be set by CR#2,3)
Two comparison values are available and correspond to two outputs, YH0 and YH1, respectively. When count value is equal to settings, the output will be ON. It adopts hardware circuit comparison and output settings with real-time handle. YH0+: output point YH0, transistor: Collector YH0-: output point YH0, transistor: Emitter YH1+: output point YH1, transistor: Collector
YH0+
YH1+
YH1-: output point YH1, transistor: Emitter
YH0­YH1-
The module number it connects to MPU from closest to the farthest is from 0 to
7. 8 modules is the max and it won’t occupy any digital I/O.
3.2 Other Specification
Environmental specifications
Operation/Storage
Vibration/Shock
immunity
1. Operation: 0℃~55℃(Temperature), 50~95%(Humidity), pollution degree 2
2. Storage: -25℃~70℃(Temperature), 5~95% (Humidity) Standard: IEC1131-2, IEC 68-2-6 (TEST Fc) / IEC1131-2 & IEC 68-2-27 (TEST Ea)
Antistatic spec. All places between terminals and ground comply with the spec.
4 CONTROLLED REGISTER (CR)
DVP-01HC High-speed Counter Module
CR No.
HW LW
Address
Communication
Latched
Content Setting Range
Attribute
#0 H415E R Model type System used, read only, DVP-01HC model code=H’0120
#1 H 415F R/W
#3 #2 H 4160 R/W Ring length 16-bit: factory setting is K65,536.
Count up/down mode setting
Setting range: 0-1, factory setting K0 1-phase 1 input(Software): count up/down mode setting, count up: K0, count down:K1
Example:
M0
Count up
DTO K0 K2 K200 K1
198 199 10
Count down
01
199 198
Setting notices:
1. It must write with 32-bit.
2. It only can be write-in when writing value is greater or equal to current count value.
3. It only can be set when counter stops counting and count mode is 16-bit.
Write K200 into first extension module CR#2 and CR#3 (i.e. CR#3 = 0, CR #2 = 200). Setting range: K2 to K65,536.
When ring length is set to K200, The count value will be as shown on the left.
Count up: when count value reaches 199, the next count value will be 0.
Count down: when count value reaches 0, the next count value will be 199.
s
s
#4 H4162 ╳ R/W instruction Instruction, factory setting: K0
CR#4 ‘0’(Off) ‘1’ (On)
b0 Count is disabled Count is enabled
b1
b2
b3
YH0 output is
disabled
YH1 output is
disabled
YH0 and YH1
activate
independently
YH0 output is enabled
YH1output is enabled
YH0 and YH1 affect each other (they cannot be ON/OFF simultaneously)
b4 Preset disabled Preset is enabled
b5~b7 Reserved
b8 Not used Clear error flag
b9 Not used Clear YH0 output b10 Not used Clear YH1 output b11 Not used YH0 output setting b12 Not used YH1 output setting
b13~b15 Reserved
Setting notes:
1. When b0 is set to 1 and terminal “DIS” is off, count is enabled.
2. When b1 is set to 1, YH0 (hardware comparison
output) output is enabled.
3. When b2 is set to 1, YH1 (hardware comparison
output) output is enabled.
4. When b3 is set to 1, YH0 and YH1 affect each other (they cannot be ON/OFF simultaneously). In other words, when YH0=ON, YH1 must be OFF and when YH0=OFF, YH1 must be ON. When b3=0, YH0 and YH1 activate independently.
5. When b4=0, terminal “PRE” is disabled.
6. When b8=1, all error flags (CR#29) will be cleared.
7. When b9=1, YH0 output will be cleared to be OFF.
8. When b10=1, YH1 output will be cleared to be
OFF.
9. When b11=1, YH0 output will be ON.
10.When b12=1, YH1 output will be ON.
1. After setting CR#4, b8~b12 will be cleared to 0.
2. It needs to set to disable count(b0=0) before setting count mode (CR#5).
#5 H4163 ╳ R/W Count mode setting Count mode K0~K11, factory setting is K0
Count mode CR#5 settings
32 bits 16 bits
2-phase 2 inputs Normal frequency K0 K1
Double frequency K2 K3 Four times frequency K4 K5
1-phase 2 inputs K6 K7
Count mode CR#5 settings
32 bits 16 bits
1-phase 1 input
Count Up/Down is controlled by Hardware (Note 1) Count Up/Down is controlled by software (Note 2)
K8 K9
K10 K11
Note1: count up/down control is controlled by external input control. Note2: count up/down control is controlled by internal control register(CR#1).
16-bit mode
When it is 16-bit mode, the count values are all positive value and its range is 0~65,536. When overflow event is occurred, count value will be changed from upper limit to 0 or from 0 to upper limit. The upper limit is set by CR#3 and CR #2.
32-bit mode
0
upper limit +2,147,483,647
count lengt h
CR#3, #2
When it is 32-bit mode, the count range is -2,147,483,648 ­2,147,483,647. When overflow event is occurred, count value will be changed from upper limit to lower limit or from lower limit to upper limit. And upper limit is +2,147,483,647 and lower limit is
-2,147,483,648.
Setting notes:
-2,147,483,648 lower limit
1. It only can be written when count is disabled (bit 0 of CR#4 is 0).
2. After writing, it will initial controlled registers as follows: CR#1: 0. CR#2, 3: 65,536. CR#10: 0. CR#12, 13:
32,767. CR#14, 15: 32,767. CR#20, 21: 0. CR#22, 23: 0. CR#24, 25: 0.
1-phase 1 input (K8~K11) 1-phase 2 inputs (K6~K7) External input count up/down control
(K8~K9)
A in pu t
B inp ut
count value
Off ( )count up
count up
On ( )count down
count down
2-phase 2 inputs (K0~K5)
Normal frequency (K0, K1) Double frequency (K2, K3) Four times frequency (K4, K5)
A in pu t
B inp ut
count value
112002
#6 ~ #9 Reserved
#11 #10 H4168 R/W Factory setting
#13 #12 H416A R/W
#15 #14 H416C R/W
Internal controlled register count
up/down control
CR#1
A in pu t
count up
count value
A in pu t
B inp ut
count value
1122034 30
Factory setting for counter (#10: Lower word / #11: Upper word), factory setting: K0 Setting notes: in 16-bit mode, CR#11 will be cleared to 0 when writing factory setting.
YH0 comparison value
YH1 comparison value
YH0 output comparison value (#12: Lower word / #13: Upper word), factory setting: K32,767. Setting notes: in 16-bit mode, CR#13 will be cleared to 0 when writing YH0 comparison value. YH1 output comparison value (#14: Lower word / #15: Upper word), (factory setting: K32,767). Setting notes: in 16-bit mode, CR#15 will be cleared to 0 when writing YH1 comparison value.
1-phase 2 inputs counter (K6, K7)
K0
K1
count down
A in pu t
B inpu t
count value
11220333
pulse of count up
pulse of count down
A in pu t
B inp ut
count value
3570246
1
531642
7
When current value of counter = comparison value, output YH0/YH1 will be ON and hold. User can clear output point by using b9 and b10 of CR#4.
If count value = comparison value by using PRESET or instruction TO, corresponding output YH0 or YH1 will be OFF. In other case that count value = comparison value does not use PRESET or instruction TO, corresponding output YH0 or YH1 will be ON.
current value of counter
Comparison value
current value of counter
CR#4 b9, b10 SET
current value of counter
Comparison value
current value of counter
CR#4 b9, b10 SET
#16~ #19 Reserved
Current value of counter (#20: Lower word / #21: Upper word), factory setting is K0.
#21 #20 H4172 R/W
Current value of counter
#23 #22 H4174 ╳ R/W Max. count value
#25 #24 H4176 R/W Min. count value
#26 H4178 ╳ R Comparison result Comparison result
CR#26 ‘0’(Off) ‘1’(On) CR#26 ‘0’(Off) ‘1’(On)
YH0
b2
b1
b0
Setting value
current value
Setting value
current value
Setting value
current value
Setting value >
current value
Setting value =
current value
Setting value <
current value
Setting notes: it must write with 32-bit. In 16-bit mode, value that is written must be less than ring length (CR#2). In 16-bit mode, CR#21 will be cleared to 0 when writing into current value of counter. Max. count value (#22: Lower word / #23: Upper word), factory setting is K0. Min. count value (#24: Lower word / #25: Upper word), factory setting is K0.
YH1
Setting value
b6
Setting value
b5
Setting value
b4
current value
current value
current value
Setting value > current
value
Setting value = current
value
Setting value < current
value
#27 H4179 ○ R Action status The indication of count up/down and terminal status
CR#27 ‘0’(Off) ‘1’(On) CR#27 ‘0’(Off) ‘1’(On)
b0 - Count up b4 PRE input is Off PRE input is On b1 - Count down b5 DIS input is Off DIS input is On b2 A input is off A input is on b6 YH0 output is Off YH0 output is On b3 B input is off B input is on b7 YH1 output is Off YH1 output is On
#29 H417B ╳ R/W Error status
Data register that is used to save all error status. Refer to table below.
CR#29 Error Status b0~ b3 Reserved
b4 CR number that is designated by instruction FROM/TO exceeds the usage range
b5
b6
b7~ b15 Reserved
#30 H417C ○ R System version
#31 H417D ○ R/W
Overflow indication, When count-up value exceeds upper limit(upper limit is CR#2 and #3 in 16-bit mode and it is K2,147,483,647 in 32-bit mode) Overflow indication, When count-down value is less than lower limit(lower limit is 0 in 16-bit mode and it is K-2,147,483,648 in 32-bit mode)
Hexadecimal, display current software version, such as version
1.0A will be displayed as H’010A. Communication address
RS-485 communication address, range set: 01~255, factory default value: K1 Baud rate setting: 4800,9600,19200bps,38400 bps,57600 bps, 115200 bps. ASCII mode data format is always 7Bit, even bit, and 1 stop bit (7 E 1). RTU mode data format is always 8Bit,
#32 H417E ○ R/W
Baud Rate Setting
even bit , and 1 stop bit ( 8 E 1) b0: 4800 bps(bit/sec.), b1: 9600 bps(bit/sec.) (default value) b2: 19200 bps(bit/sec.), b3: 38400 bps(bit/sec.) b 4: 57600 bps(bit/sec.), b 5: 115200 bps(bit/sec.) b6~b14: reserved, b15: ASCII / RTU mode switch
CR#0~CR#34: The corresponding addresses are H 415E-H 4180 for user to read/write by
using RS-485.
1. Baud rate could be 4800, 9600, 19200, 38400 and 57600bps.
2. Communication protocol can be Modbus ASCII mode and RTU mode. For ASCII mode, data
format is 7Bits, even, 1 stop bit (7 E 1). For RTU mode, data format is 8Bits, even, 1 stop bit
(8 E 1).
3. Function code: 03H: read register data. 06H: write one WORD data into register. 10H: write
multiple WORDs into register.
5 TRIAL RUN & TROUBLESHOOTING
MPU connects to HC extension module
1. Make sure that the power of MPU and extension unit is OFF before wiring.
2. Open extension port of EH MPU and connect to HC extension unit with cable. There is no
connection order for EH MPU to connect extension unit, mix connection is allowed.
3. The power supply of HC extension unit must be external +24VDC power supply.
4. Before power up, check if the load circuit of output points YH0 and YH1 is correct, especially
the circuit between YH0+, YH0- and YH1+, YH1-. There is a Zener Diode that is connected
between YH0+, YH0- and YH1+, YH1- in HC. If the positive/negative pole is wrong, it may
cause unexpected result.
YH0+
YH0-
YH1-
DC 5~24VDC
YH0+
YH0-
YH1+
YH1-
load
DC 5~24VDC
Load
YH1+
5. Before power up, check if A phase or B phase connects to correct voltage level. (there are
three voltage level: +24, +12V and +5V) If +24V signal connects to +5V input terminal, it may
damage internal circuit.
6. After power up MPU, it will start to detect extension module. If no external +24VDC power is
applied to HC at this time or power is applied after EH MPU completing detecting extension
module, the connection will fail. Therefore, power wiring and power supply timing should be
as following.
Power wiring
85~264VAC
LNG
+24V 24G
+24V_INT
Power supply
AC/DC
+24V_EXT
+24V input
+24V
01HCEH MPU
Timing analysis
When power supply for HC is +24V_INT: t5t3, power is ON and the connection of HC extension unit is normal.
When power supply for HC is +24V_EXT: Because start time (t2) of external power supply
for HC extension module is unknown, user must make sure that t2+t4t1+t5, otherwise HC extension module cannot be detected by MPU.
Power supply timing
0V
complete initialling HC (supply from +24_INT)
AC power input
+24V_INT
+24V_EXT
complete initialling HC (supply from +24_EXT)
MPU starts to detect extension unit
t1
t2
t3
t4
t5
t1:1~2 seconds
t2:1~3 seconds
t3:0.5~1 second
t4:0.5~1 second
t5:2 seconds
7. The maximum special extension modules number for EH MPU connects is 8 special
extension modules. After power is ON, EH will save module codes of connected special
modules in D1320~D1327 in order. The module code of 01HC is H’0120. It indicates
communication is OK when H’0120 is displayed in the corresponding special D register by
using HPP02 or other monitor software.
Troubleshooting
Judge the errors by the indicators on the front panel. When errors occurred on DVP PLC,
please check:
“POWER” LED
The “POWER” LED at the front of HC extension module will be lit (in green) if the power
is on. If the indicator is not on when power up, please remove the wiring on terminals
+24V. Once the indicator lights after this, it means that the 24V DC power supply of the
PLC is overloaded. Please do not use the DC power supply from the +24V terminals,
but use a DC24V power supply instead.
L.V. LED
The “L.V.” LED at the front of HC extension module will be lit if input voltage is not
enough. The extension module won’t active at this time.
6 RELATIVE INSTRUCTIONS
API
78 D
Instruction Explanation
Program Example
API
79 D
Instruction Explanation
Program Example
FROM
P
Read Special Module CR Data
: number of special module (m1=0~7). : CR number of special module that will be
read.
Writing special module #0 of CR#24 into D0 and special module #0 of CR#25 into D1. only
write two data once (n=2).
TO
: address for saving reading data. : data number for reading once.
X10
FROM K0 K24 D0 K2
P
Special Module CR Data Write In
: number of special module (m1=0~7). : CR number of special module that will be
wrote in.
Using 32-bit instruction DTO to write D11 and D10 into special module#0 of CR#3 and CR#2.
only write a data once (n=1).
X11
: data to write in CR. : data number to write in once.
DTO K0 K2 D10 K1
Loading...