10. Example of Programming
10-1
10. Example of Programming
10.1 Example of Programming 1
(1)Control contents
(a) The program keeps the temperature of a liquid in a bath 10 to 12ºC higher than that of ambient
air temperature.
(b) When the temperature difference between the upper part and the lower part of the liquid is 3ºC
or higher, the program turns a stirrer on.
(c) When the temperature of the liquid exceeds 50 ºC or the temperature difference between the
upper part and the lower part of the liquid exceeds 8 ºC, the program turns a temperature error
lamp on to indicate an error and starts a cooler.
(d) When error data is found, the program turns a data error lamp on and starts the cooler.
(e) When error data is found, the program turns a data error lamp on and starts cooler.
(f) When an error occurs, the program stops a heater.
Figure 10.1 External device
(2) Configuration and allocation
Figure 10.2 PLC configuration
Basic base
Install EH-PT4 on the fourth slot.
Use the relay output module installed on
the slot 0 to output to the external device.
Y0: Motor
Y1: Cooler
Y2: Heater
Y3: Motor error lamp
Y4: Temperature error lamp
Y5: Data error lamp
WX40: Air temperature
WX41: Temperature at the upper part of the liquid
WX42: Temperature at the lower part of the liquid
WX43: Motor temperature
Setting of temperature range
Pt100 , -50 to +400 ºC
1
2
3
4
5
6
7
8
ON
OFF
SW1
Temperature at the upper
part of the liquid
Temperature at the lower
part of the liquid
Air temperature
Stirrer
Motor
Cooler
Heater
Motor temperature
Motor
error
Tempera
-ture
error
Data
erro
Lamp indication
- Platinum resistance
temperature detective
PT100
AVR
CPU
Y16
EH-PT4
0 1 2 3 4
DUM16
DUM16
DUM16