Posted 31 Jan 2017 Hello I'm new at this so please pardon my inexperience. I'm looking to create a few lines of code that will alternate between one of two outputs each time a given input goes active. Basically the function of an alternating relay in the E-M relay world. I have done this with Mitsubishi PLC and there is a simple "ALT" and "ALTP" functions that provide this without creating your own, but I haven't seen in Direct Soft. I'm looking at possibly building this using a counter and then have a comparative that will drive the one output on an odd counter value and the other on an even counter value, and then reset the counter after it hits 2. Would be nice to do this simply without having to get that complicated though. I'm using Direct Soft 5 to program an Automation Direct DL06 PLC. thank you Jeff Share this post Link to post Share on other sites
Posted 31 Jan 2017 Assuming Output - Y0 Rung 1 - Input NO to PD C0 Rung 2 - top parallel branch - NO C0 NC Y0 - bottom parallel branch NC C0 NO Y0 - rest of rung OUT Y0 Let me know if you need a diagram Share this post Link to post Share on other sites
Posted 1 Feb 2017 Thanks, shouldn't need a diag. I'll follow up after I get a chance to run it in trial. Share this post Link to post Share on other sites