2. | CR#1: Used to set the working mode of four channels (CH1~CH4). There are 2 modes |
| and |
| CH1~CH4 as following: CH1: mode 0 (b2~b0=000), CH2: mode 1(b5~b3=001), CH3: mode |
| 0(b8~b6=000) and CH4: mode 1(b11~b9=001), you should set CR#1 to H0208. The higher |
| bits (b12~b15) will be reserved and the factory setting is H0000. |
3. | CR#2 ~ CR#5: Used to set the times of input readings for the average temperature calculation. |
| The available range is K1~K4096 and factory setting is K10. (Note: When PLC sets average |
| times via TO/DTO instructions, please use |
| as LDP and LDF) to get correct average times.) |
4. | CR#6 ~ CR#9: The average temperature (°C). The average temperature is calculated from |
| multiple temperature readings. Example: If CR#2 is 10, the temperature in CR#6 will be the |
Temperature mode: (Fahrenheit) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||||||||||||||||
Digital output | Digital output | ||||||||||||||||||||||||||||||||||||||||||||
+12920 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| +18320 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Temperature |
| Temperature |
| input |
| input |
+1292 F | +1832 F |
Command m1: the number for special module. m2: the number of CR (Control Register) of special Explanation module that will be read. D: the location to save reading data. n: the data number of
reading one time.
D: When assigning bit operand, K1~K4 can be used for
Please refer the following footnote for calculationof special module number.
API |
|
| TO |
|
|
|
| Special module CR | Applicable model | |||||
79 |
|
|
|
|
|
|
|
|
| SS | SA/SX/SC | EH | ||
|
|
|
|
|
|
|
| |||||||
|
|
| D |
|
|
| P |
|
| data write in |
|
|
| |
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| average of the last 10 readings in CH1. |
5. | CR#10 ~ CR#13: The average temperature (°F). The average temperature is calculated from |
| multiple temperature readings. Example: If CR#2 is 10, the temperature in CR#12 will be the |
| average of the last 10 readings in CH1. |
6. | CR#14 ~ CR#17: display present temperature (°C) of CH1~CH4 input signal. |
7. | CR#18, CR#23, CR#28, CR#29 are reserved. |
8. | CR#19 ~ CR#22: display present temperature (°F) of CH1~CH4 input signal. |
|
|
|
|
|
| ||
|
|
|
|
| |||
|
|
|
|
|
|
| |
|
|
|
|
|
| ||
6 |
|
|
|
| Initial PLC |
LED display:
1.Upon
2.No errors= POWER LED on and ERROR LED off.
Low Voltage error (lower than 19.5V), ERROR LED will blink continuously till the power supply rises above 19.5V.
| Bit device |
|
|
|
| Word device | ||||||||||
| X | Y | M | S |
| K | H | KnX | KnY | KnM | KnS | T | C | D | E | F |
m1 |
|
|
| ¼ | ¼ |
|
|
|
|
|
|
|
|
| ||
m2 |
|
|
| ¼ | ¼ |
|
|
|
|
|
|
|
|
| ||
S |
|
|
|
| ¼ | ¼ | ¼ | ¼ | ¼ | ¼ | ¼ | ¼ | ¼ | ¼ | ¼ | |
n |
|
|
| ¼ | ¼ |
|
|
|
|
|
|
|
|
|
Note: The usage range of operand m1 is 0~7.
The usage range of operand m2: SS/SA:
The usage range of operand n: SS/SA n=
EH:
For SS series, it doesn’t support pulse execution instruction (TOP, DTOP)
TO Continuous TOP Pulse
execution execution
DTO Continuousexecution DTOP Pulseexecution
Flag: When M1083=On, it allows to insert interrupt during FROM/TO.
Refer to following for detail.
9. CR#24 ~ CR#27: display offset value of channels CH1~CH4. The range is |
unit is 0.1 degrees C. The definition of OFFSET is Actual temperature = temperature |
measured by |
10. CR#30 is a fault code register. Refer to the following chart. |
Fault description | Content | b15~b8 | b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
Power source abnormal | K1(H1) |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
Analog input value error | K2(H2) |
| 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | |
Setting mode error | K4(H4) |
| 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | |
Offset/Gain error | K8(H8) | Reserved | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | |
Hardware malfunction | K16(H10) | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | ||
| |||||||||||
Digital range error | K32(H20) |
| 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | |
Average times setting error | K64(H40) |
| 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | |
Instruction error | K128(H80) |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Note: Each fault code will have corresponding bit (b0~b7). Two or more faults may happen at the same time. 0 means normal and 1 means fault occurs.
11. | CR#31: |
12. | CR#32: |
| b0:4800bps, b1:9600bps (factory setting), b2:19200bps, b3:38400 bps, b4:57600 bps, |
| b5:115200 bps, b6~b13: Reserved, b14: switch between low bit and high bit of CRC code |
| (only for RTU mode), b15: ASCII / RTU mode. For ASCII mode, date format is 7Bits, even, 1 |
| stop bit (7 E 1). For RTU mode, date format is 8Bits, even, 1 stop bit (8 E 1). |
13. | CR#33: Used to reset the settings of CR registers to factory settings. |
14. | CR#34: software version. |
3.
4.After receiving the first
5.If the input or output exceeds the upper or lower bounds, then the ERROR LED will blink.
Example:
M1000
FROM K0
M1002
TO K0
= H8B D0 FROM K0
FROM K0
FROM K0
FROM K0
END
Explanation:
Reading the model type of extension module K0 (should be H8B for
The averaging number for CH1~CH4 will be D10~D13.
Command m1: the number of special module. m2: the number of CR (Control Register) of special
Explanation | module that will be wrote in. S: the data to write in CR. n: the data number to write in |
| |
| one time. |
S: When assigning bit operand, K1~K4 can be used for
The rule of instruction operand:
Footnote
m1: arrangement number of special module. The number of special module that connects to PLC MPU. The numbering order of special module from the near to the distant of MPU is from 0 to 7. The maximum is 8 special modules and won’t occupy I/O point.
m2: the number of CR. Built in
If using FROM/TO instruction, the unit of read/write of CR is one number for one time. If using DFROM/DTO instruction, the unit of read/write of CR is two numbers in one time.
Upper
CR #10 | CR #9 |
| Specified CR number |
|
The number of transmission groups n. The meaning of n=2 of
15. | CR#35~ CR#48: Reserved for internal system use. |
16. | The corresponding parameters address H 4096~H 40C7 of CR#0~CR#48 may provide users |
| to read/write data via |
| a. Communication baud rate: 4800, 9600, 19200, 38400, 57600, 115200 bps. |
| b. Communication format: ASCII mode is 7Bit, even bit, 1 stop bit (7 E 1). Communication |
| format of RTU mode is 8Bit, even bit, 1 stop bit (8 E 1). |
If the model type is
Reading the average temperature (°F) of CH1~CH4 (4 data) from CR#10~CR#13 and save them into D24~D27.
Reading the present temperature (°C) of CH1~CH4 (4 data) from CR#14~CR#17 and save them into D30~D33.
Specified device | Specified CR | |
D0 |
| CR #5 |
| ||
D1 |
| CR #6 |
| ||
D2 |
| CR #7 |
| ||
D3 |
| CR #8 |
| ||
D4 |
| CR #9 |
| ||
D5 |
| CR #10 |
|
Specified device Specified CR
D0 |
|
|
|
|
|
|
| CR #5 |
D1 |
|
|
|
|
|
| CR #6 | |
| ||||||||
|
|
| ||||||
D2 |
|
|
|
|
|
| CR #7 | |
D3 |
|
|
|
|
|
| CR #8 | |
|
|
|
|
|
| |||
D4 |
|
|
|
|
|
| CR #9 | |
D5 |
|
|
|
|
|
| CR #10 | |
|
|
|
|
|
c. Function code: |
5 |
| Temperature/Digital Characteristic Curve | |
Temperature mode: (Centigrade) |
| ||
|
|
Reading the present temperature (°F) of CH1~CH4 (4 data) from CR#19~CR#22 and save them into D34~D37.
7 |
|
|
|
|
|
|
|
|
| Related Instructions Explanation |
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| API |
|
|
| FROM |
|
|
|
| Special module CR | Applicable model | |||||
| 78 |
|
|
| D |
|
| P |
|
| data read out | SS | SA/SX/SC | EH |
| |
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In SS series models, flag M1083 is not provided. When FROM/TO instruction is executed, all interrupts (including external or internal interrupt subroutines) will be disabled. All interrupts will be executed after FROM/TO instruction is completed. Besides, FROM/TO instruction also can be executed in the interrupt subroutine.
The function of the flag M1083 (FROM/TO mode exchange) provided in SA/EH series models:
Digital output |
|
|
|
|
|
|
|
|
|
|
| Digital output | |||
+7000 |
|
|
|
|
|
|
|
|
|
|
|
|
| +10000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Temperature |
| Temperature |
| input |
| input |
+700 C | +1000 C | ||
|
|
| Bit device |
|
|
| Word device |
|
| ||||||||
| X | Y | M | S | K | H | KnX | KnY | KnM | KnS | T | C | D | E | F |
m1 |
|
|
|
| ¼ | ¼ |
|
|
|
|
|
|
|
|
|
m2 |
|
|
|
| ¼ | ¼ |
|
|
|
|
|
|
|
|
|
D |
|
|
|
|
|
|
| ¼ | ¼ | ¼ | ¼ | ¼ | ¼ | ¼ | ¼ |
n |
|
|
|
| ¼ | ¼ |
|
|
|
|
|
|
|
|
|
Note: The usage range of operand m1 is 0~7.
The usage range of operand m2: SS/SA:
The usage range of operand n: SS/SA: n=
EH:
SSseries model doesn’t support pulse execution instruction (FROMP, DFROMP).
FROM | Continuous | FROM |
|
| Pulse |
P | |||||
| execution |
|
|
| execution |
|
|
| Continuous |
|
|
|
| Pulse |
| D | FROM | D | FROM | P |
| ||
| execution |
| execution | |||||
|
|
|
|
Flag: When M1083=On, it allows to insert interrupt during FROM/TO.
Refer to following for detail.
1.When M1083=Off, FROM/TO instruction is executed, all interrupts (including external or internal interrupt subroutines) will be disabled. All interrupts will be executed after FROM/TO instruction is completed. Besides, FROM/TO instruction also can be executed in the interrupt subroutine.
2.When M1083=On, if an interrupt occurs while FROM/TO instruction has been programmed, FROM/TO instruction will be interruptted to execute the interrupt. However, FROM/TO instruction cannot be executed in the interrupt subroutine.