Hi ppl,
I am trying to make counter that would count what program/case was done per day.
Controller:Kuka KRC4
Thank you.
Hi ppl,
I am trying to make counter that would count what program/case was done per day.
Controller:Kuka KRC4
Thank you.
all right... go ahead.
hehehehe... I accidently deleted line from post....
-- Does anyone have an exapmle of this kind of counter? --
I[1]=I[1]+1 ; increment counter
18/06/2020
Hi People
This is, what I did to use the counter.
For set Counter in KRC4 ( Not necesary declared counter en data.file)
DEF My_Program
INI
i[5]=0 (select your number)
HOME
PTP
;****Set Counter 5*********
WAIT Time=1,5 sec
if $IN[15]==true THEN
i[5]=i[5]+1
endif
In the DISPLAY/VARIABLE/COUNTER
you can see Counter N° 5 (in my program) go increment
1 to 1 .
;*************For Reset Counter 5**********
WAIT FOR (IN 10 ´´ )
if (i[5]==16) and ($IN[10]==true) THEN
i[5]=0
In the DISPLAY/VARIABLE/COUNTER
You can see Counter N° 5 (in my program) go to 0
Note: if you change the program select for other program,
the Counter used keeps the last number reached.
Remember; the program cursor is always ahead and reads first (in my program) $IN[15]==true;
while Time is moving forward to 1,5 sec
For my Program IN 10 and i[5]==16 are particulary choice.-
Thanks for allow me read the comments, and to be part of the group.
Wait your comments and corrections
Good job for everybody.
Balerio Armella