When output is 4mA, Analog Input Module converts it into 16bit equivalent hex numbers. Hence when input
at I:3 to Analog module is 4mA, it moves 0000h into register and when 20mA, it moves FFFFh into register. Here
register N7:0.
Here height of the tank is 5m or 500cm. By converting it into equivalent hex, change in value per centimeter
is 132.
Value of N7:0 is then multiplied with 139 because when Level reaches 470cm, output is F0C0h. So when
output at 470cm is multiplied with 139, we get full FFFFh at N7:2 to operate pumps in full speed.
This multiplication is stored into N7:2 register. Digital to Analog conversion of value stored in N7:2 is
performed inside the processor and equivalent mA current is received from terminal O:4 and O:6.
Current to Voltage converter then converts current signals into voltage signal and adjusts motor speed.
Two pumps are used here hence speed of response is very good and smooth operation is achieved.
Reset operation to turn off Pumps when low level is detected
Both tanks have a Low Level switch at the bottom. When there is no material in the tank or very less
material is present, pump should not run in order to prevent it from failure. Limit switch with address I:1/0 is for
tank1 and I:1/1 is for tank2.
Runtime Test Cases
Inputs
Outputs
Physical Elements
I:3 = F258h
O:4 = O:6 = 0000h
Pump1 and Pump2 are off
I:3 = 792Ch
O:4 = O:6 = 8000h
Pump1 and Pump2 = 4000RPM
I:3 = 50C8h
O:4 = O:6 = 5474h
Pump1 and Pump2 = 2640RPM
I:1/0 = 1
O:4 = 0000h Pump1 off
I:1/1 = 1
O:6 = 0000h
Pump2 off
PLC Program to Change Preset Value of Counter According to Various
Products
This is a PLC Program to Change Preset Value of Counter According to Various Products.
Dostları ilə paylaş: