Nancygogogo Posted June 28, 2018 Report Share Posted June 28, 2018 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted June 28, 2018 MVP 2022 Report Share Posted June 28, 2018 Hi Nancy, perhaps it would be helpful to look at all of this topic, but specifically my post here that has an example: But this still isn't going to get you 1ms.....only 1.25ms at best. cheers, Aus Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted June 29, 2018 MVP 2022 Report Share Posted June 29, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.