Getting the cycle time and fluid consumption.
Suitable for
- Service personnel
- Maintenance personnel
- Operators and programmers
Warning - prior to working on any programs ensure to make back-ups
To use this article you will need to edit the IPS.CFG and the EIO.CFG.
Ensure that you feel competent with these systems before you do this
We always advise undergoing an ABB training course before you can handle the robot
So lets begin..........
Whenever you start a program where you intend to paint call the following procedure.
PROC startMeasure()
SetAO A1FluidAccu,0;
ClkStart ckCycleTime;
ENDPROC
At the end of the program when you finish painting call this routine.
PROC stopMeasure()
! Store the result in numerical registers
! PLEASE ensure that you declare nPaintUsed and ckCycleTime in the module
nPaintUsed:=Round(AOutput(A1FluidAccu)\Dec:=0);
TPWrite "Fluid consumption is = "\Num:=nPaintUsed;
ClkStop ckCycleTime;
nCycleTime:=ClkRead(ckCycleTime);
TPWrite "Cycle time is = "\Num:=nCycleTime;
ClkReset ckCycleTime;
SetAO A1FluidAccu,0;
ENDPROC
NOTE: That you have to have the following declared in your module.
VAR clock ckCycleTime;
PERS num nPaintUsed:=0;
Now if you are using S4P+ and PAServices then I advise that you put the routines in the custom.sys module. Otherwise you will have to create a module where the data and routines will live.
Setting up the consumption measurement is trickier.
Set up an analog output in the EIO.CFG.
-Name "A1FluidAccu" -Type "AO" -Unit "AMA" -Phsig 8 -LogMax 32767 -PhMax 1
Set up the IPS.CFG to see the analog output:
-from "Aop8" -to "A1Fluid/Accu"
Obviously you do not have to print out the values, you may choose to save to log file. This short article covers a small aspect of the techniques involved
More to come !
Bye for now.
Any questions then do not hesitate to contact us |