pszczepan

High speed counter and Output ON

4 posts in this topic

Hi,

I have some code and the PLC scan is quite long 55ms.

I have also  defined CTBL function with HSC 0 and when the value is reached program (Interrupt TASK 04) is executed - just SET output 100.01 (electrovalve for cutting) .

My question is if when I have so long PLC scan, timing for OUTPUT 100.01 is always the same - immediately when Interrupt TASK 04 is executed or is ON after scan is done and then cutting moment is different.

If timing can be different how to force OUTPUT 100.01 from  Interrupt TASK 04 not after PLC scan is done

 

Share this post


Link to post
Share on other sites

You don't specify which PLC you are using, but you can right click on the coil and choose immediate refresh on our newer PLCs.  The coil will then have an exclamation point inside of it to indicate immediate refresh.  Of course you will have to do this in the Online Edit mode or transfer the program to the PLC.  

Share this post


Link to post
Share on other sites

I wrote - it is CP1L-E

Anyway if I make code !SET 100.01 in Interrupt TASK 04,  I get output ON immediately, right?

Share this post


Link to post
Share on other sites
30 minutes ago, pszczepan said:

I wrote - it is CP1L-E

Anyway if I make code !SET 100.01 in Interrupt TASK 04,  I get output ON immediately, right?

Yes.  

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