273
Example This example shows a PID control program using PID(––).
Amplifier (See note below.)
Fan (Output word IR 111)
Heater (Output word IR110)
Temperature sensing element
(Output word IR 100)
Amplifier (See note below.)
#0 #1
AD001 DA001
CPU
Unit
Note Motors and heaters cannot be directly connected from a Analog Output Unit. An
amplifier (i.e., a current amplification circuit) is required.
Creating the Program Follow the procedure outlined below in creating the program.
1, 2, 3... 1. Set the target value (binary 0000 to 0FFF) in DM 0000.
2. Input the PV of the temperature sensing element (binary 000 to 0FFF) in bits
0 to 11 of word 101.
3. Output the operation amount of the heater to bits 0 to 11 of word 110 by
means of the first PID(––) instruction in the following program.
4. Output the operation amount of the fan to bits 0 to 11 of word 111 by means of
the second PID(––) instruction in the following program.
5. Convert the PV of the temperature sensing element (binary 000 to FFF) to
temperature data (0000°C to 0200°C) by means of SCL(––), and output it to
DM 0200.
Special Math Instructions Section 5-21