RoboDK Forum
Operate on a moving part application- Printable Version

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: General questions about RoboDK (//m.sinclairbody.com/forum/Forum-General-questions-about-RoboDK)
+--- Thread: Operate on a moving part application (/Thread-Operate-on-a-moving-part-application)



Operate on a moving part application-Mario69-02-07-2022

Hello ✋


I'm currently working on a simulation where a robot makes quality control by camera over a moving part carried out by an AGV. Each control takes around 2 seconds. ? How can I keep the robot position during 2sec over the moving part ? My program works but when I had a wait instruction, of course the robot stop to synchonise it position with the AGV...

Thank you ?


RE: Operate on a moving part application-Mario69-02-07-2022

I tried to use a WHILE instruction, but I don't understand why it not works.

Example :

WHILE 1 == 1
MoveL (target 1)
END
MoveL (target 2)

Normaly the program pointer should always stay on MoveL (target 1) instruction, but it goes always to the next step !!!
I downloaded some program examples with IF and WHILE instruction ant they work very well... ?


RE: Operate on a moving part application-Mario69-02-07-2022

I found the solution to use WHILE instruction...
Go to : TOOLS > OPTIONS > STATION > Enable flow statement ?


RE: Operate on a moving part application-Jeremy-02-08-2022

If you don't activate the "Enable flow statement", IF and WHILE don't work.

Jeremy