Hi Folks,
I need a suggestion from the PLC gurus out there. I am not a full time programmer and it is a part of my duty.
I have written a code using RSLogix500 for SLC5/04 for a welding line.
This program is for controlling the height of the electrode as the welding goes on. The electrodes are moved using a small stepper drive. I have the voltage feedback from the electrode to know how far the electrodes are. But this voltage fluctuates constantantly and the range of fluctuation is as much as 0.1 to 0.4volts.
To deal with the fluctuation I have written the program to read the voltage feedback every 5 sec and calculate the average every half a min. and the compare the set level to the calculated average feedback value to determine if the electrodes need to be moved down.
The program works but I have noticed a problem. The electrodes are eanbled to move till the feedback is equal to the set point since the feedback is varying the amount of movement is not the same every time ie every half a min even though the error is same.
This is not causing an problem as far as the working of the machine is concerned but I am sure there is a better way of doing this.
Please suggest if any body has a better idea of doing this.
Thanx,
Kiran
I need a suggestion from the PLC gurus out there. I am not a full time programmer and it is a part of my duty.
I have written a code using RSLogix500 for SLC5/04 for a welding line.
This program is for controlling the height of the electrode as the welding goes on. The electrodes are moved using a small stepper drive. I have the voltage feedback from the electrode to know how far the electrodes are. But this voltage fluctuates constantantly and the range of fluctuation is as much as 0.1 to 0.4volts.
To deal with the fluctuation I have written the program to read the voltage feedback every 5 sec and calculate the average every half a min. and the compare the set level to the calculated average feedback value to determine if the electrodes need to be moved down.
The program works but I have noticed a problem. The electrodes are eanbled to move till the feedback is equal to the set point since the feedback is varying the amount of movement is not the same every time ie every half a min even though the error is same.
This is not causing an problem as far as the working of the machine is concerned but I am sure there is a better way of doing this.
Please suggest if any body has a better idea of doing this.
Thanx,
Kiran