Codepark

Loop in plc by sysmac studio

3 posts in this topic

Hello from korea :)

i got some problem writing loop code in sysmac studio

what i wanna do is simple, running process together with loop

if u see the picture that i attached there is IF condition,

i want my machine run loop in "if" condition

but if i use while loop maybe other process dead right lol?

in words... running process, i want my machine check the "if" condition....

 

What can i do in this case?

 

Do i have to run whole process in loop? 
 

is there any way to run loop with Other process keep going....

 

Thanks for reading!

 

B1ABCC33-10B8-4BCF-B6BB-19EBEE621DFD.jpeg

Edited by Codepark

Share this post


Link to post
Share on other sites

You should leave this in the Sysmac forum where you started it instead of posting the same question in multiple forums.  Get more answers from the Omron forum than general.

I don't know why you are trying to write the motion function block in a loop.  You only need to pulse the Execute input to make it run.  Why would you loop so it triggers it every single program cycle?  Remember PLC runs in cycles, so you are doing this same code every 1ms.

1 person likes this

Share this post


Link to post
Share on other sites

@Crossbow That would be my fault not the original poster.  I moved his original question to the Omron Sysmac forum in hopes of getting him a better answer, but left the original as a 30 day link so he could find it.  @Codepark .I am doing the same with this quesiton.

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now