2.CR#1, CR#10, CR#11, CR#16, CR#17, CR#22, CR#23, CR#28 and CR#29 are reserved.
3.CR#2 ~ CR#5: The times to average the temperatures measured at CH1 ~ CH4. Range: K1 ~ K20. Default = K10. Please note that the average times set in CR#2 ~ CR#5 need to be written in only once.
4.CR#6 ~ CR#9: The average Celsius temperature measured at CH1 ~ CH4 obtained from the average time settings in CR#2 ~ CR#5. For example, if the average time is set as 10, the content in CR#6 ~ CR#9 will be the average of the most recent 10 temperature signals in Celsius at CH1 ~ CH4.
5.CR#12 ~ CR#15: The average Fahrenheit temperature measured at CH1 ~ CH4 obtained from the average time settings in CR#2 ~ CR#5. For example, if the average time is set as 10, the content in CR#12 ~ CR#15 will be the average of the most recent 10 temperature signals in Fahrenheit at CH1 ~ CH4.
6.CR #18 ~ CR #21: Displaying the present temperature in Celsius at CH1 ~ CH4
7.CR #24 ~ CR #27: Displaying the present temperature in Fahrenheit at CH1 ~ CH4
8. CR #30: Error status (see the table below):
Fahrenheit temperature measurement mode
Digital output
+11,120
+5,560
Measured temperature input
+1,112 F |
Trial Operation & Troubleshooting
LED Display |
1. When the module is powered for the first time, POWER LED will be on and ERROR LED will be on for |
API |
|
|
|
|
| T O |
|
|
|
|
|
|
|
|
|
| Write CR data into special module | ||
| 79 |
|
| D |
|
|
|
|
|
| P |
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
Instruction |
|
|
|
| : No. of special module (m1 = 0 ~ 7) | : CR# in special module to be written | |||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
Explanation |
|
|
|
| : Data to be written into CR |
| : Number of data to be written at a time | ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
| Use | ||||||||||||
Program | module No. 0. Only 1 group of data is written in at a time (n = 1). | ||||||||||||||||||
Example |
|
| X0 |
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| DTO | K0 | K6 | D10 | K1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Operand rules
1. | : The No. of special modules connected to PLC MPU. No. 0 is the module closest to te |
| MPU. Maximum 8 modules are allowed to connected to a PLC MPU and they will not occupy |
| any I/O points. |
2. | : CR#. CR (control register) is the 49 |
| numbered in decimal as #0 ~ #48. All operation status and settings of the special module are |
| contained in the CR. |
Error status Abnormal power supply
Scale exceeds the range or wiring to empty external contact
Incorrect mode setting OFFSET/GAIN error Hardware malfunction Abnormal digital range Incorrect average times setting
Instruction error
Content | b15 ~ b8 | |
K1(H’1) |
| |
K2(H’2) |
| |
K4(H’4) |
| |
K8(H’8) | reserved | |
K16(H’10) | ||
| ||
K32(H’20) |
| |
K64(H’40) |
| |
K128(H’80) |
|
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0.5 second. After this, A/D LED will start to flash. |
2. | When the power supply is normal, POWER LED will be on and ERROR LED should be off. When the |
| power supply is less than 19.5V, ERROR LED will keep being on until the power supply goes higher |
| than 19.5V. |
3. | When series connected with PLC MPU, the RUN LED on the MPU will be on and A/D LED will flash. |
4. | When controlled by RS485, |
5. | When the input or output value exceeds the upper bound or falls below the lower bound after conversion, |
| ERROR LED will flash. |
3. FROM/TO instruction is for reading/writing 1 CR at a time. DFROM/DTO instruction is for |
reading/writing 2 CRs at a time. |
Higher 16 | Lower 16- bit |
|
|
CR #10 | CR #9 |
| Designated CR number |
|
4.Number of groups “n” to be transmitted: n = 2 in
Designated device Designated CR |
|
|
| Designated device Designated CR |
|
|
|
|
D0 |
| CR #5 |
|
|
| D0 |
|
|
| CR #5 |
|
|
| ||||||||
|
Note: Each error status is determined by the corresponding bit (b0 ~ b7) and there may be more than 2 errors occurring at the same time. 0 = normal; 1 = error
9.CR#31: The setting of
10.CR#32: The setting of
38,400bps; b4: 57,600bps; b5: 115,200bps; b6 ~ b13: reserved; b14: high/low bit exchange of CRC checksum
(only valid in RTU mode); b15: switching between ASCII mode and RTU mode.
11.CR#33: b0 ~ b11: For returning the CR settings to default settings.
b12 ~ b15: ERR LED definition. Default: b12 ~ b15 = 1111.
12.CR#34: Firmware version of the model.
13.CR#35 ~ CR#48: Parameters for system use.
14.CR#0 ~ CR#34: The corresponding parameter address H’4064 ~ H’4086 are for users to read/write data by
a.Communication baud rate: 4,800/9,600/19,200/38,400/57,600/115,200 bps.
b.Modbus ASCII/RTU communication protocol: ASCII data format
c.Function: H’03 (read register data); H’06 (write 1 word datum into register); H’10 (write many word data into register).
d.Latched CR should be written by
Temperature/Digital Curve
Celsius temperature measurement mode
Digital output
+6000
+3000
Measured temperature input
+600 C |
Program Example |
M1000 | FROM | K0 | K0 | D0 | K1 | ||||
|
|
|
|
| |||||
|
|
|
|
| |||||
M1002 |
|
|
|
|
| ||||
|
|
|
|
| TO | K0 | K2 | D10 | K4 |
|
|
|
|
| |||||
| = H' 6402 D0 |
|
| FROM | K0 | K6 | D20 | K4 | |
|
|
| |||||||
|
|
| |||||||
|
|
|
|
| FROM | K0 | K12 | D24 | K4 |
|
|
|
|
| |||||
|
|
|
|
| FROM | K0 | K18 | D30 | K4 |
|
|
|
|
| |||||
|
|
|
|
| FROM | K0 | K24 | D34 | K4 |
|
|
|
|
| |||||
|
|
|
|
| END |
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
Read the model name from K0 and see if it is
Set the average times in CH1 ~ CH4 as D10 ~ D13.
If D0 = H’6402, read the average temperature (°C) measured in CH1 ~ CH4 from CR#6 ~ CR#9 and store the 4 data in D20 ~ D23.
Read the average temperature (°F) measured in CH1 ~ CH4 from CR#12 ~ CR#15 and store the 4 data in D24~ D27.
Read the average temperature (°C) measured in CH1 ~ CH4 from CR#18 ~ CR#21and store the 4 data in D30~ D33.
Read the average temperature (°F) measured in CH1 ~ CH4 from CR#24 ~ CR#27 and store the 4 data in D34~ D37.
Relevant Instructions
API |
|
|
| F R O M |
|
|
|
|
| Read CR data in special modules | |||
78 |
|
|
| D |
|
|
|
| P |
|
| ||
|
|
|
|
|
|
|
|
|
|
| |||
Instruction |
| : No. of special module (m1 = 0 ~ 7) | : CR# in special module to be read | ||||||||||
|
|
|
|
|
|
| |||||||
Explanation |
| : Device for storing read data | : Number of data to be read at a time | ||||||||||
|
|
|
|
|
|
|
|
Read CR#24 of special module No. 0 into D0 and CR#25 into D1. Only 2 groups of data are read at a time (n = 2).
Program | X0 |
|
|
| |||
Example |
|
|
| ||||
|
|
|
| FROM K0 | K24 | D0 | K2 |
|
|
| |||||
|
|
|
|
|
|
|
|
Remarks | D1 |
| CR #6 | D1 |
|
|
|
|
|
| CR #6 | |
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
| |||||
|
|
|
|
| ||||||||
| D2 |
| CR #7 | D2 |
|
|
|
|
|
| CR #7 | |
|
| |||||||||||
| D3 |
| CR #8 | D3 |
|
|
|
|
|
| CR #8 | |
|
| |||||||||||
|
|
|
|
|
| |||||||
| D4 |
| CR #9 | D4 |
|
|
|
|
|
| CR #9 | |
|
| |||||||||||
| D5 |
| CR #10 | D5 |
|
|
|
|
|
| CR #10 | |
|
| |||||||||||
|
|
|
|
|
|
| ||||||
| ||||||||||||
| M1083 for switching instruction modes in EH2 series models |
|
|
|
|
|
1.When M1083 = Off, during the execution of FROM/TO instruction, all external or internal interruption subroutines will be forbidden. The interruptions are allowed only after FROM/TO instruction finishes its execution. FROM/TO instruction can also be used in an interruption subroutine.
2.When M1083 = On and an interruption signal occurs during the execution of FROM/TO instruction, the interruption will be processed first (with a 100us delay) and the execution of FROM/TO will be stopped. After the interruption subroutine finishes its execution, the program will jump to the next instructio of FROM/TO. FROM/TO cannot be used in an interruption subroutine.
The content of this instruction sheet may be revised without prior notice. Please consult our distributors or download the most updated version at http://www.delta.com.tw/industrialautomation