Jump to content

2.5ms interrupt subroutine to control the output


Recommended Posts

Hi everyone,

I have a question about the 2.5ms interrupt subroutine, the PLC I have right now is SM35-J-T20 which only has 10ms as the minimum resolution. However, I want to reach the 1ms, so I found a 2.5ms interrupt subroutine to control the output which can control the output with the immediate elements, But I cannot find the example, or how to combine the 2.5ms interrupt subroutine with the main routine. 

Can anyone give some advice? Thanks.

Link to comment
Share on other sites

  • MVP 2023

Open the Help and search for "Interrupt".

If you name a subroutine "_Interrupt 1.25 mS" it will automatically be called every 1.25 ms.

Use Immediate instructions to read inputs and write outputs outside of the normal scan.

Post your code if you have more questions.

Joe T.

Link to comment
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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.