Dear replyer,
As captioned,I want to get the executed times of a program line which is running in a Fanuc robot (R-30iB).
Is there any system variable stored this figure?
Thanks.
Dear replyer,
As captioned,I want to get the executed times of a program line which is running in a Fanuc robot (R-30iB).
Is there any system variable stored this figure?
Thanks.
What do you mean by "executed times"?
e.g:I have a program running on a robot,it has 100 lines of codes, now it's running.I want to know how many time the 50th line run up to now.The figure will increase if the program keep running.
Line 49 you insert a timer that you start
Line 51 you insert a stop timer
Once your programme is fnished you will see how long it has been running.
don't forget to reset at the start of the program
or you can add a counter, and run your prg for 1 minute and there you go.
Line 49 you insert a timer that you start
Line 51 you insert a stop timer
Once your programme is fnished you will see how long it has been running.
don't forget to reset at the start of the program
I need the frequency of the line executed ,not the time elapsed.
Add a counter in your program.
R[X]=R[X]+1
If you don't want to count in the program itself as suggested above, the system variable $IB_GRP[1].$PROG_LINE indicates the last executed program line.
You can do your count in BG logic, or make BG logic send this variable to GO and let the host controller count.