Hi guys
I've fd robot and , I need to kwon the cycle time of the programm that run in automatic mode ,and write this time in real variable....Is it possible?
Thanks
Hi guys
I've fd robot and , I need to kwon the cycle time of the programm that run in automatic mode ,and write this time in real variable....Is it possible?
Thanks
You can view the cycle time in monitor 2 -> Operation time
But operation time is the time of the program run in automatic or time that indicate live of robot?
Can i write this time in the variable?
Under Monitor 2 there is a stopwatch or something.... only setback is that it only time the program lines within a single program. So if your process call a few programs you may have to add them up.
"You need to write down below code:"
TIMER[V1!] - FN650, Initial timer value
NOP - FN600
CALLP[11] - FN80, Your desired program
NOP - FN600
TIMER[V2!] - FN650, Timer value after program ends
SUBVF[V2!,V1!] - FN640, This performs V2! - V1! and store values in V2!
"V2! value can be seen in Real Variable"
"For sending timer values to PLC/HMI, use this code afterwards"
LETVI[V2%, V2!/100] - FN75, Converts V2! to sec and store in V2%
MULTIM[05101,V2%] - FN264, V2% value can be send to PLC/HMI
NOP
You can select any variable no. as per availability
Hope this will work for you
You have 2 choice.
User FN835 MSRTM
■ Example of operation
1 MSRTM 1,1,V1!
2 DELAY 1
3 MSRTM 1,0,V1!
'FN650 TIMER- Returns the time (in milliseconds) which has elapsed since the power was turned on.
'FN310 INH- Inhibit to wait till program to move to this step
TIMER V1! ' Grab time from system when starting process
DELAY 2 'delay time or you can have your motion or process
INH 'make sure system wait till this line before grabbing the information again. Without INH you may grab time too early as pointer and
TIMER V2! 'Grab time from system again
V3!=V![2]-V![1] 'Calculate how much time in ms the difference in timing
delay .5
END
or like what the Roboter did using FN650.