May 22, 2019, 01:49:13 PM
Robotforum | Industrial Robots Community

 TIMER not start

normal_post Author Topic:  TIMER not start  (Read 1020 times)

0 Members and 1 Guest are viewing this topic.

June 14, 2018, 07:20:33 PM
Read 1020 times
Offline

MUNIACO


Hi guys,

I have a Little problem.

A timer inside a program stop, reset but not start.

Dome idea?

Today at 01:49:13 PM
Reply #1

Advertisement

Guest

June 14, 2018, 08:24:26 PM
Reply #1
Online

scotty


Are you sure that your command TIMER_START executed after TIMER_STOP?

June 14, 2018, 09:48:53 PM
Reply #2
Offline

MUNIACO


Yes.

Stop
Reset
Start.

June 15, 2018, 11:08:46 AM
Reply #3
Offline

MUNIACO



June 15, 2018, 01:27:49 PM
Reply #4
Online

scotty


Share part of code. It's difficult to say. Most likely something wrong with code.

Did you try to make dummy program and start/stop/reset timer?

June 15, 2018, 06:50:25 PM
Reply #5
Offline

MUNIACO


TIMER[3]=STOP ;
TIMER[3]=RESET ;
TIMER[3]=START ;
 R[2]=TIMER[3]    ;
if TIMER[3]>10, jmp lbl[100];

June 15, 2018, 08:39:02 PM
Reply #6
Online

scotty


=STOP ; <- N time
TIMER[3]=RESET ; <- 0 time
TIMER[3]=START ; <- 0 time
 R[2]=TIMER[3]    ; <- take 0 time and copy to R[2]
if TIMER[3]>10, jmp lbl[100]; <- never happen

Cool. Look explanation of your time value above. Timer start, as I see you are expecting to get data into R[2]. But as you can see you are doing next:
start timer#3
immediately receive time count into R[2]
and expect to jump by link. What you have in your R[2]? Most likely value between 0 and 8. Based on processor load.
FIY: you are not linking your timer count into register, you just taking current count and copy to register. if you are getting 0 in R[2] all the time, then try to add WAIT 1 sec before R[2] = TIMER[3]. Then you will see result and feel how timer works.

Today at 01:49:13 PM
Reply #7

Advertisement

Guest

June 15, 2018, 09:09:38 PM
Reply #7
Offline

MUNIACO


TIMER[3]=STOP ; <- N time
TIMER[3]=RESET ; <- 0 time
TIMER[3]=START ; <- 0 time
 R[2]=TIMER[3]    ; <- take 0 time and copy to R[2]
if TIMER[3]>10, jmp lbl[100]; <- never happen

Cool. Look explanation of your time value above. Timer start, as I see you are expecting to get data into R[2]. But as you can see you are doing next:
start timer#3
immediately receive time count into R[2]
and expect to jump by link. What you have in your R[2]? Most likely value between 0 and 8. Based on processor load.
FIY: you are not linking your timer count into register, you just taking current count and copy to register. if you are getting 0 in R[2] all the time, then try to add WAIT 1 sec before R[2] = TIMER[3]. Then you will see result and feel how timer works.
[/quote]

Thanks thanks and so thanks.

In fact now works. Show 1. But if I need to show milliseconds? I use this timer to check tool open and close to check if is closed or opened right.

June 16, 2018, 01:22:38 AM
Reply #8
Online

scotty


In case if you are using some sensor to detect tool opened and toil closed position,  the. You can fo next:
Start timer
Open tool
Reset timer
Wait for sensor triggering
Save timer value into register
Stop timer


Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

xx
Start timer if WAIT FOR

Started by MetsaToll on KUKA Robot Forum

2 Replies
1123 Views
Last post April 29, 2017, 02:39:17 PM
by SkyeFire
xx
Timer delay a timer in SPS

Started by 9566317 on KUKA Robot Forum

5 Replies
5127 Views
Last post June 26, 2015, 05:19:43 PM
by panic mode
xx
Background Timer

Started by CallenAutomation on Fanuc Robot Forum

1 Replies
194 Views
Last post March 25, 2019, 04:12:50 PM
by stare284
clip
First Timer Guidance

Started by 54warrior on Fanuc Robot Forum

1 Replies
1062 Views
Last post November 14, 2017, 05:24:48 PM
by HawkME