Hello everyone, I have the ABB IRB1400 with M2000 controller. I could not get the cycle time working. On the pick list menu I only see ClkReset, ClkStart and ClkStop . Where do I find and how do I insert the ClkRead command ?
In my routine I have it like this,
ClkReset clock1;
ClkStart clock1;
"My routine"
ClkStop clock1;
nCTime := ClkRead(clock1); <---------How do I insert ClkRead on this line?
TPWrite "Cycle Time"\Num:=nCTime; <-------------To show in TP
Thank you very much.
ClkRead
-
nfmetal -
March 2, 2018 at 2:24 PM -
Thread is marked as Resolved.
-
-
Code
Display MorePROC Title_Screen() Date:=CDate(); TPErase; TPWrite "****************************************"; TPWrite "Automated Systems"; TPWrite "Today's Date is: "+Date; TPWrite "Last cycle times:"; TPWrite "Station 1: "\Num:=ClkRead(clockS1); TPWrite "Station 2: "\Num:=ClkRead(clockS2); TPWrite "****************************************"; TPWrite "STATUS:"; WaitTime 0.1; ENDPROC
This is from a working machine.
I'll go check the machine to see if I can find key sequence.[edit] Is your question where to find the ClkRead() function?
-
Example of how I do it....
PROC STD_SA_NODOOR_Tailgate()
!
RobtoMechCln;
BEQkChk;
!
ClkReset TG_Clock;
ClkStart TG_Clock;
!
Chain_Lug_Check;
STD_SA_NODOOR_Pth1;!Touch inside tubes
STD_SA_NODOOR_Pth2;!Stiffners & Inside Tube Welds
TCHOME2;
STD_SA_NODOOR_Pth3;!Outside Tubes & Top Edge Welds
TCHOME2;
TG_3_Seq_9;!Bottom Edge Weld
TCHOME2;
!STD_TA_NODOOR_Pth6;!Top Tube Caps
!TCHOME2;
IF bPresent THEN
Chain_Lugs;
ELSE
TCHOME2;
Weldtime_display;
ENDIF
TCHOME2;
Weldtime_display;
!
ENDPROCPROC Weldtime_display()
TG_ClockReg := ClkRead(TG_Clock);
ClkStop TG_Clock;
WT := TG_ClockReg / 60;
TPErase;
TPWrite "...................";
TPWrite "PROCESS CYCLE TIME";
TPWrite "";
TPWrite ""\Num:=WT;
TPWrite " Mins";
TG_ClockReg := 0;
WT := 0;
ENDPROC -
You can take a look at a small module I wrote a while ago.
https://github.com/ernell/ABB-RAP…r/lib_timer.sys
Sent from my S41 using Tapatalk
-
Hi Iowan, [edit] Is your question where to find the ClkRead() function?
yes, actually it was. -
-insert an instruction ":="
-change left side to nCTime
- go to the right side onto <EXP>
- change it to Clkread() (select 'Functions', and you can select the searched Clkread()) -
Thank you everyone for the inputs, finally got it working by following hermann's instructions.
Have a wonderful day!