lucas.abreu

Task control? scan priority

2 posts in this topic

Hello,

How to use task control? I don’t know if it’s the right tool to solve my problem, so I’ll explain maybe there’s another tool,
I made an update to the program adding alarms to a program, using function blocks, after the download I realized that the machine was slow, I realized that the cycle time increased,
how to prioritize scan in my sections, and when possible check this alarm section?

Any suggestion?

PLC CP1L,

I appreciate the attention.

Lucas Abreu.

Share this post


Link to post
Share on other sites

Set the Task Properties as a Cyclic task but with Operation start unchecked.

Then only call the task from your main program with a oneshot [rising edge bit] to trigger a TKON instruction.

At the very last rung of the called task place use LD CF113 [always on] followed by a TKOF.

Task will only run once when called from main program.

Picture shows Cyclic Task 01 with Operation Start unchecked.

 

Task Properties.jpg

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