Repeat operation questions (robot, conveyor belt, conveyor sensor, feeder)

Hello, I’m a beginner learning the VC program by myself.
I am using version 4.9.
I made a simple program, but I wrote on the forum because I had a question.

If you play the “P01.vcmx” program that I uploaded with you,
The robot moves things only once, and does not move again.

Almost all of what I used was the function inside the ‘PROGRAM’ tab.

I would like to create a program in which ‘Yellow box’ continues to come out at a constant speed in ‘Feeder’ and stops when it touches ‘Conveyor Sensor’, and the entire process continues to “repeat”.
P01.vcmx (267.1 KB)
P01.vcmx (267.1 KB)
Can anyone help me?

  • I would appreciate it if you could also let me know the ‘VC Academy Link’ or ‘VC YouTube Link’ that covers related content.
  • If you change the name of the program ‘P01.vcmx’ that I uploaded together and upload the revised file again, I will refer to it for learning.
    (Example: P01_R.vcmx)

Hi,

Maybe something like this?

Generally speaking the robot runs from top to bottom only once and then exits, you can “trap” it by forcing it to run inside an infinite while loop (while (true)) so the program will never exit.

Then in order for the system to “stop” you can add in a conveyor sensor and then connect some signals along with robot, conveyor sensor and the conveyor itself to make it stop.

br,
Lefa

1 Like

Thank you for your help.


From the first video, it’s understood that you’re using Python code,
The level has not risen yet for me to use the movement of the robot using Python.

Is there currently no way to run iterations on the ‘PROGRAM tab’ or ‘MODELING tab’ in the file I uploaded (P01.vcmx)?


In the second video, it is understood that it is repeated using the ‘While Statement’ in the ‘PROGRAM tab’.

If you gave me the link to the second video in a way that I can “repeat” without using Python,
Let’s try the method of the second video.

Hi,

I edited my previous message, copy pasted a wrong video.

br,
lefa