Is there a way to use the clock time to call a job? Or a way to link the clock time to a register or output to turn on when it hits a certain time?
Using clock on Fanuc robot
-
Beavissp82 -
April 7, 2018 at 3:06 AM -
Thread is marked as Resolved.
-
-
I attached a snippet of code. I am running this job in BG logic. This job clears out the shift count registers when a certain time condition is met.
Thanks
JRV
Code3: !7:300 ; 4: IF $SYS_TIME.$HOUR>=7 AND $SYS_TIME.$HOUR<0,JMP LBL[100] ; 5: IF $SYS_TIME.$HOUR=15 AND $SYS_TIME.$MINUTE<0,JMP LBL[100] ; 6: !300:1100 ; 7: IF $SYS_TIME.$HOUR=15 AND $SYS_TIME.$MINUTE>=0,JMP LBL[200] ; 8: IF $SYS_TIME.$HOUR>15 AND $SYS_TIME.$HOUR<23,JMP LBL[200] ; 9: IF $SYS_TIME.$HOUR=23 AND $SYS_TIME.$MINUTE<0,JMP LBL[200] ; 10: !1100:7 ; 11: JMP LBL[300] ;
-
Thanks for the information. I will try it out.
-
Thanks. That worked great. Exactly what I needed.
-
no problem
-
Thanks for sharing such informations but still I have one doubt how should I write the variable as such from teach pendant, is it possible to write $SYS_TIME.$MINUTE from pendant.
-
yes, its possible
-
It is possible only on older robots. These hour/minute variables are not accessible on the newer controllers.
There is a timer that you can use that gives you minutes since the controller was powered on. It would be accessed by using parameter name.
R[x] =$SYSTEM_TIME.$PWR_TOT