
|
| #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 | |||||||||
|
| b1 | YH0 output is |
| YH0 output is enabled | |||||||
|
|
|
| output) output is enabled. | ||||||||
|
|
| disabled |
|
| |||||||
|
|
|
|
|
|
|
| 3. | When b2 is set to 1, YH1 (hardware comparison | |||
|
|
|
| YH1 output is |
|
|
| |||||
|
| b2 |
| YH1output is enabled |
| output) output is enabled. | ||||||
|
|
| disabled |
|
| |||||||
|
|
|
|
|
|
|
| 4. | When b3 is set to 1, YH0 and YH1 affect each | |||
|
|
|
|
|
|
|
|
| YH0 and YH1 affect | |||
|
|
|
| YH0 and YH1 |
|
| other (they cannot be ON/OFF simultaneously). In | |||||
|
|
|
|
| each other (they |
|
| |||||
|
| b3 |
| activate |
|
|
| other words, when YH0=ON, YH1 must be OFF | ||||
|
|
|
| cannot be ON/OFF |
| |||||||
|
|
|
| independently |
|
| and when YH0=OFF, YH1 must be ON. When | |||||
|
|
|
|
| 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. | |||||
|
| b12 | Not used |
| YH1 output setting | 10.When b12=1, YH1 output will be ON. |
When current value of counter = comparison value, output |
| current value | current value | ||||||||||
YH0/YH1 will be ON and hold. User can clear output point by |
| of counter | of counter | ||||||||||
using b9 and b10 of CR#4. |
|
|
| Comparison |
| Comparison |
|
| |||||
If count value | = comparison value by | using PRESET or |
|
|
|
| |||||||
instruction TO, corresponding output YH0 or YH1 will be OFF. In |
|
| value |
|
| value |
| ||||||
|
|
|
|
|
|
|
|
|
|
| |||
other case that count value = comparison value does not use |
| current value | current value | ||||||||||
PRESET or instruction TO, corresponding output YH0 or YH1 will |
| of counterCR#4 | of counter CR#4 | ||||||||||
be ON. |
|
|
|
|
| b9, b10 SET |
|
| b9, b10 SET | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#16~ #19 | Reserved |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Current value of counter (#20: Lower word / #21: Upper word), | |||||||||||
|
| factory setting is K0. |
|
|
|
|
| ||||||
| Current value of | Setting notes: |
|
|
|
|
|
|
|
|
|
|
|
| it must write with |
|
|
|
|
| |||||||
#21 #20 H4172 | ╳ R/W counter | In | value that is written must be less than ring | ||||||||||
|
| length (CR#2). |
|
|
|
|
|
|
|
|
|
|
|
|
| In | |||||||||||
|
| current value of counter. |
|
|
|
|
|
YH0+ | YH1+ | Load | YH0+ | YH1+ | load |
|
| DC 5~24VDC |
|
| DC 5~24VDC |
YH0- | YH1- |
| YH0- | 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.
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 |
|
| CR#5 settings | |||
|
|
|
|
|
|
|
|
|
| 32 bits |
| 16 bits |
|
|
| Normal frequency |
| K0 |
| K1 | |||||
|
|
|
|
|
|
| Double frequency |
| K2 |
| K3 | |
|
|
|
|
|
|
| Four times frequency |
| K4 |
| K5 | |
|
|
|
| 1 |
| K6 |
| K7 | ||||
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
| Count mode |
|
| CR#5 settings | |||
|
|
|
|
|
|
|
|
|
| 32 bits |
| 16 bits |
|
| Count Up/Down is controlled |
| K8 |
| K9 | ||||||
|
| by Hardware (Note 1) |
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
#23 #22 | H4174 | ╳ R/W | Max. count value | Max. count value (#22: Lower word / #23: Upper word), factory | ||||||||||||||||||||
setting is K0. |
|
|
|
|
|
|
| |||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
#25 #24 | H4176 | ╳ R/W | Min. count value | Min. count value (#24: Lower word / #25: Upper word), factory | ||||||||||||||||||||
setting is K0. |
|
|
|
|
|
|
| |||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
#26 | H4178 | ╳ | R | Comparison result | Comparison result |
|
|
|
|
| ||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
| CR#26 |
|
| ‘0’(Off) |
| ‘1’(On) |
|
|
|
| CR#26 |
| ‘0’(Off) |
| ‘1’(On) | ||||||||
|
|
|
| b2 | Setting value≦ | Setting value > |
|
|
| b6 | Setting value≦ |
| Setting value > current |
|
| |||||||||
|
|
|
|
| current value | current value |
|
|
| current value |
| value |
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
| YH0 |
| b1 | Setting value≠ | Setting value = |
| YH1 |
| b5 | Setting value≠ |
| Setting value = current |
|
| ||||||||||
|
|
| current value | current value |
|
| current value |
| value |
|
| |||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
| b0 | Setting value≧ | Setting value < |
|
|
| b4 | Setting value≧ |
| Setting value < current |
|
| |||||||||
|
|
|
|
| current value | current value |
|
|
| current value |
| 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 |
|
Power wiring
85~264VAC |
|
|
| Power supply |
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| AC/DC |
|
|
| +24V_EXT | ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| +24V input | |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| L | N |
| G |
|
|
|
|
|
|
|
|
| +24V | 0V |
| |||
|
|
|
|
|
|
|
|
| EH MPU |
|
|
|
| 01HC | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| +24V | 24G |
|
|
|
|
|
|
|
|
|
+24V_INT
Timing analysis
When power supply for HC is +24V_INT:
t5>t3, 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+t4 < t1+t5, otherwise HC extension module cannot be detected by MPU.
Power supply timing
AC power input
+24V_INT
|
| t1 |
|
|
|
|
|
|
|
|
|
| |
+24V_EXT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
| t2 | |||||||||
complete initialling HC |
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
| ||
(supply from +24_INT) |
|
|
|
|
|
|
|
| t3 | ||||
|
|
|
|
|
|
|
| ||||||
complete initialling HC |
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
| ||
(supply from +24_EXT) |
|
|
|
|
|
|
|
|
|
|
| t4 | |
|
|
|
|
|
|
|
|
|
|
| |||
MPU starts to detect |
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
| ||
extension unit |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| t5 |
t1:1~2 seconds
t2:1~3 seconds
t3:0.5~1 seconds
t4:0.5~1 seconds
t5:2 seconds
Count Up/Down is controlled | K10 | K11 | |
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).
| |
When it is | count length |
range is 0~65,536. When overflow event is occurred, count value will | CR#3, #2 |
be changed from upper limit to 0 or from 0 to upper limit. The upper | 0 |
limit is set by CR#3 and CR #2. |
|
upper limit | |
+2,147,483,647 | |
When it is |
|
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 |
|
| lower limit |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| External input count up/down control |
| Internal controlled register count | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (K8~K9) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| up/down control |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| K0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
| A input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| CR#1 |
|
|
|
|
|
|
|
|
|
|
| K1 | A input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| pulse of count up | ||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| B input |
|
|
| Off (count up) | On (count down) |
| A input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| B input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| pulse of count down | |||||||||||||||||||||||||||||||||||||||||
|
|
| count up |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| count up |
|
|
| count down |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
| count down |
|
|
|
|
|
| count value 1 | 2 3 3 3 2 1 | 0 |
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| count |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| count |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
| value |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| value |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||
| Normal frequency (K0, K1) |
|
|
|
|
|
|
|
|
|
| Double frequency (K2, K3) | Four times frequency (K4, K5) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| A input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| A input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| B input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| B input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
| B input |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| count value | 0 1 2 3 4 |
|
| 3 2 1 0 |
|
| count value | 01 2 3 4 5 67 |
|
| 7 6 5 4 3 2 1 |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| count value 0 | 1 2 |
|
|
| 2 | 1 | 0 |
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
#6 ~ #9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Reserved |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Factory setting for counter (#10: Lower word / #11: Upper word), | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #11 | #10 |
| H4168 | ╳ | R/W |
|
| Factory setting |
| factory setting: K0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
| Setting notes: in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| writing factory setting. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| YH0 comparison |
| YH0 output comparison value (#12: Lower word / #13: Upper | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #13 | #12 |
| H416A | ╳ | R/W |
|
|
| word), factory setting: K32,767. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| value |
|
|
|
| Setting notes: in | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| writing YH0 comparison value. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| YH1 output comparison value (#14: Lower word / #15: Upper | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #15 | #14 |
| H416C | ╳ | R/W |
|
| YH1 comparison |
| word), (factory setting: K32,767). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| value |
|
|
|
| Setting notes: in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| writing YH1 comparison value. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|
| Overflow indication, When |
| ||||||||||||
|
|
|
|
|
| in |
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
| b6 |
|
| Overflow indication, When |
| ||||||||||||
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
| b7~ b15 |
|
| Reserved |
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
| #30 | H417C | ○ | R |
| System version |
| Hexadecimal, display current software version, such as version | ||||||||||
|
|
|
|
| 1.0A will be displayed as H’010A. |
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
| #31 |
| H417D | ○ | R/W |
| Communication |
| |||||||||||
|
|
|
|
|
|
|
|
|
|
| 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, | |||||||
|
|
| #32 |
| H417E | ○ | R/W |
| 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 |
CR#0~CR#34: The corresponding addresses are H
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+,
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 |
|
|
|
|
|
| FROM |
|
|
|
|
|
|
|
|
|
|
|
|
| Read Special Module CR Data | |||||||
| 78 |
|
|
|
| D |
|
|
|
|
| P |
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
| : number of special module (m1=0~7). | : CR number of special module that will be | ||||||||||||||||||
| Instruction |
|
|
|
|
| |||||||||||||||||||||||
|
|
|
|
|
| ||||||||||||||||||||||||
| Explanation |
|
| read. | : address for saving reading data. | : data number for reading once. | |||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| 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 | K0 | K24 |
| D0 | K2 | ||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| API |
|
|
|
|
|
|
|
| TO |
|
|
|
|
|
|
|
|
|
|
|
|
|
| Special Module CR Data Write In | ||||
| 79 |
|
|
|
| D |
|
|
|
|
|
|
|
| P |
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
| : number of special module (m1=0~7). | : CR number of special module that will be | ||||||||||||||||||
| Instruction |
|
|
|
|
|
| ||||||||||||||||||||||
|
|
|
|
|
| ||||||||||||||||||||||||
| Explanation |
|
| wrote in. |
|
| : data to write in CR. | : data number to write in once. | |||||||||||||||||||||
|
|
|
| ||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| Using | |||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||
|
| Program |
|
|
| ||||||||||||||||||||||||
|
|
|
|
| only write a data once (n=1). |
|
|
|
|
| |||||||||||||||||||
|
| Example |
|
|
|
|
|
|
|
| |||||||||||||||||||
|
|
|
|
|
| X11 |
|
| DTO |
| K0 | K2 | D10 | K1 | |||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|