Download Print this page

Delta Electronics High-speed Counter Module DVP-01HC Instruction Manual page 2

Delta electronics high-speed counter module instruction manual

Advertisement

#4
H4162 ╳ R/W
instruction
Instruction, factory setting: K0
1. When b0 is set to 1 and terminal "DIS" is off, count
CR#4
'0'(Off)
'1' (On)
is enabled.
b0
Count is disabled
Count is enabled
2. When b1 is set to 1, YH0 (hardware comparison
YH0 output is
b1
YH0 output is enabled
output) output is enabled.
disabled
3. When b2 is set to 1, YH1 (hardware comparison
YH1 output is
output) output is enabled.
b2
YH1output is enabled
disabled
4. When b3 is set to 1, YH0 and YH1 affect each
YH0 and YH1 affect
other (they cannot be ON/OFF simultaneously). In
YH0 and YH1
each other (they
b3
activate
other words, when YH0=ON, YH1 must be OFF
cannot be ON/OFF
and when YH0=OFF, YH1 must be ON. When
independently
simultaneously)
b3=0, YH0 and YH1 activate independently.
b4
Preset disabled
Preset is enabled
5. When b4=0, terminal "PRE" is disabled.
b5~b7
Reserved
6. When b8=1, all error flags (CR#29) will be cleared.
b8
Not used
Clear error flag
7. When b9=1, YH0 output will be cleared to be OFF.
b9
Not used
Clear YH0 output
8. When b10=1, YH1 output will be cleared to be
b10
Not used
Clear YH1 output
OFF.
b11
Not used
YH0 output setting
9. When b11=1, YH0 output will be ON.
10.When b12=1, YH1 output will be ON.
b12
Not used
YH1 output setting
b13~b15
Reserved
Setting notes:
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
32 bits
2-phase 2 inputs
Normal frequency
K0
Double frequency
K2
Four times frequency
K4
1-phase 2 inputs
K6
Count mode
32 bits
Count Up/Down is controlled
1-phase 1 input
K8
by Hardware (Note 1)
Count Up/Down is controlled
K10
by software (Note 2)
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
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:
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)
External input count up/down control
Internal controlled register count
(K8~K9)
up/down control
K0
K1
CR#1
A input
Off (
count up
)
On (
count down
)
B input
A input
count down
count up
count up
count down
count
count
value
value
2-phase 2 inputs (K0~K5)
Normal frequency (K0, K1)
Double frequency (K2, K3)
A input
A input
B input
B input
count value
0
1
2
3 4
3
2
1
0
count value
0
1
2
2
1
0
#6 ~ #9
Reserved
Factory setting for counter (#10: Lower word / #11: Upper word),
factory setting: K0
#11 #10 H4168 ╳ R/W Factory setting
Setting notes: in 16-bit mode, CR#11 will be cleared to 0 when
writing factory setting.
YH0 output comparison value (#12: Lower word / #13: Upper
YH0 comparison
word), factory setting: K32,767.
#13 #12 H416A ╳ R/W
value
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
YH1 comparison
word), (factory setting: K32,767).
#15 #14 H416C ╳ R/W
value
Setting notes: in 16-bit mode, CR#15 will be cleared to 0 when
writing YH1 comparison value.
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.
#16~ #19
#21 #20 H4172 ╳ R/W
#23 #22 H4174 ╳ R/W Max. count value
#25 #24 H4176 ╳ R/W Min. count value
#26 H4178 ╳
CR#26
Setting value≦
b2
CR#5 settings
Setting value≠
YH0
b1
16 bits
K1
Setting value≧
b0
K3
K5
#27 H4179 ○
K7
CR#27
'0'(Off)
CR#5 settings
b0
-
16 bits
b1
-
K9
b2
A input is off
b3
B input is off
K11
#29 H417B ╳ R/W Error status
CR#29
b0~ b3
count length
b4
CR#3, #2
b5
0
b6
upper limit
+2,147,483,647
b7~ b15
#30 H417C ○
#31 H417D ○ R/W
-2,147,483,648
lower limit
#32 H417E ○ R/W
1-phase 2 inputs (K6~K7)
1-phase 2 inputs counter (K6, K7)
CR#0~CR#34: The corresponding addresses are H 415E-H 4180 for user to read/write by
using RS-485.
pulse of count up
A input
1.
Baud rate could be 4800, 9600, 19200, 38400 and 57600bps.
pulse of count down
B input
count value
1
2
3
3
3
2
1
0
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).
Four times frequency (K4, K5)
3.
Function code: 03H: read register data. 06H: write one WORD data into register. 10H: write
A input
multiple WORDs into register.
B input
5
count value
0 2 4
1 3 5 7
6
7 5 3 1
2
6 4
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.
current value
of counter
Comparison
value
current value
of counter
CR#4
b9, b10 SET
Reserved
Current value of counter (#20: Lower word / #21: Upper word),
factory setting is K0.
Setting notes:
Current value of
it must write with 32-bit.
counter
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.
R
Comparison result Comparison result
'0'(Off)
'1'(On)
CR#26
'0'(Off)
Setting value >
Setting value≦
Setting value > current
b6
current value
current value
current value
Setting value =
Setting value≠
Setting value = current
YH1
b5
current value
current value
current value
Setting value <
Setting value≧
Setting value < current
b4
current value
current value
current value
R
Action status
The indication of count up/down and terminal status
'1'(On)
CR#27 '0'(Off)
'1'(On)
Count up
b4
PRE input is Off
PRE input is On
Count down
b5
DIS input is Off
DIS input is On
A input is on
b6
YH0 output is Off
YH0 output is On
B input is on
b7
YH1 output is Off
YH1 output is On
Data register that is used to save all error status. Refer to
table below.
Error Status
Reserved
CR number that is designated by instruction FROM/TO exceeds the usage range
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)
Reserved
Hexadecimal, display current software version, such as version
R
System version
1.0A will be displayed as H'010A.
Communication
RS-485 communication address, range set: 01~255, factory
address
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,
Baud Rate
even bit , and 1 stop bit ( 8 E 1)
Setting
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
TRIAL RUN & TROUBLESHOOTING
current value
YH0+ YH1+
Load
of counter
Comparison
value
current value
YH0-
YH1-
of counter
CR#4
b9, b10 SET
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
Power supply
85~264VAC
AC/DC
+24V_EXT
L N G
EH MPU
'1'(On)
+24V 24G
value
+24V_INT
Timing analysis
value
When power supply for HC is +24V_INT:
t5>t3, power is ON and the connection of HC
value
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+t4 < t1+t5, otherwise HC
extension module cannot be detected by MPU.
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
API
F R O M
78
D
P
: number of special module (m1=0~7).
Instruction
Explanation
read.
: address for saving reading data.
Writing special module #0 of CR#24 into D0 and special module #0 of CR#25 into D1. only
Program
write two data once (n=2).
Example
X10
FROM
API
T O
79
D
P
: number of special module (m1=0~7).
Instruction
Explanation
wrote in.
: data to write in CR.
Using 32-bit instruction DTO to write D11 and D10 into special module#0 of CR#3 and CR#2.
Program
only write a data once (n=1).
Example
X11
YH0+ YH1+
load
DC 5~24VDC
DC 5~24VDC
YH0-
YH1-
Power supply timing
AC power input
+24V input
+24V
0V
+24V_INT
t1:1~2 seconds
01HC
t1
+24V_EXT
t2:1~3 seconds
t2
complete initialling HC
t3:0.5~1 seconds
(supply from +24_INT)
t3
complete initialling HC
t4:0.5~1 seconds
(supply from +24_EXT)
t4
MPU starts to detect
t5:2 seconds
extension unit
t5
RELATIVE INSTRUCTIONS
Read Special Module CR Data
: CR number of special module that will be
: data number for reading once.
K0
K24
D0
K2
Special Module CR Data Write In
: CR number of special module that will be
: data number to write in once.
DTO
K0
K2
D10
K1

Advertisement

loading