cesare Posted July 9, 2020 Report Share Posted July 9, 2020 Good morning, I have to put an output "high" then wait for 2 seconds and put another output "high". I was looking at IDLE function between the two operations, but I'm not able to work it out. I create a constant with value 200, because as far as i understand it takes micro seconds, but still once it goes it never waits. I'm pretty sure I'm doing something wrong, my apoligize I'm really newbie in this area. here below the blocks: Thanks a lot for any good advice cesare Quote Link to comment Share on other sites More sharing options...
AlexUT Posted July 9, 2020 Report Share Posted July 9, 2020 Good advice is to use timers. There is a wrong use of IDLE function. Quote Link to comment Share on other sites More sharing options...
Cam Posted July 9, 2020 Report Share Posted July 9, 2020 Idle will stop the whole process for however you set it. This includes I/O updates, as Alex said your probably better off using timers. Quote Link to comment Share on other sites More sharing options...
cesare Posted July 9, 2020 Author Report Share Posted July 9, 2020 31 minutes ago, Cam said: Idle will stop the whole process for however you set it. This includes I/O updates, as Alex said your probably better off using timers. which is fine by me, but it doesn't. I'll see what I can do using timers, thanks! Quote Link to comment Share on other sites More sharing options...
MVP 2021 Ausman Posted July 9, 2020 MVP 2021 Report Share Posted July 9, 2020 Part of your issue is "Micro" vs "Milli". Blink really really quickly....damn you missed it. The other thing is that (and I quote) if this causes a delay greater than 600 milliseconds, the PLC watchdog may be activated. As Cam and Alex have said, use timers or a count. Also, your layout of (S) then another (S) needs separating. cheers, Aus Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted July 9, 2020 MVP 2021 Report Share Posted July 9, 2020 5 hours ago, AlexUT said: There is a wrong use of IDLE function. Totally agree with this. However, that does bring up a question: what would be a correct use of this function? I can't think of any. 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.