![](/images/new-backgrounds/1175758/17575861x1.webp)
10. Example of Programming
(3)Program |
|
| ||
(1) |
| DR0000 | = | DX0040 |
|
|
|
| |
|
| DR0002 | = | DX0042 |
(2) |
| WM0000 | = | H00000 |
|
| |||
|
| M0000 | = | WR0000 == H7FFF |
|
| M0001 | = | WR0001 == H7FFF |
|
| M0002 | = | WR0002 == H7FFF |
|
| M0003 | = | WR0003 == H7FFF |
|
| M0004 | = | WM0000 <> H0000 |
(3) | SS0 | WR0004 | = | WR0001 - WR0002 |
|
| ABS (WR0004 , WR0004) | ||
|
| R0000 | = | H007C <= WR0004 |
(4) |
| R0001 | = | H0148 <= WR0004 |
(5) | R002 | R0002 | = | H1000 <= WR0003 |
|
| |||
(6) R003 | R004 |
|
| |
|
| R0003 | = | H0800 <= WR0001 |
|
| R0004 | = | H0800 <= WR0001 |
(7) |
|
|
|
|
|
| WR0005 = WR0001 - WR0000 | ||
|
| R0005 | = | WR0001 <= WR0000 |
|
| R0006 | = | WR0005 <= H0198 |
|
| R0007 | = | H01EC <= WR0005 |
| R0000 |
| SS0 | |
(8) |
|
|
|
|
| R0001 |
|
|
|
| SS0 | Y0003 |
| Y0000 |
|
|
| ||
(9) |
|
|
|
|
|
|
|
|
|
The program stores the temperature data for 4 channels in the internal output.
Data check
When an error is found, the program turns M4 on.
The program stores the absolute value of the temperature difference between the upper part and the lower part of the liquid in WR4.
When the temperature difference is 8ºC or higher, the program turns R0 on.
When the motor temperature is 100ºC or higher, the program turns R2. on
When the temperature at the upper part of the liquid is 50ºC or higher, the program turns R3 on. When the temperature at the lower part of the liquid is 50ºC or higher, the program turns R4 on.
The program stores the difference between the temperature at the upper part of the liquid and the air temperature in WR5.
When the air temperature is higher than the temperature at the upper part of the liquid, the program turns R5 on. When the temperature difference is 10ºC or lower, the program turns R6 on. When the temperature difference is 10ºC or higher, the program turns R7 on.
If R0 or R1 turns on, turn the motor for a minute.
However, if Y3 turns on, do not turn the motor.