Alternating Output for DL06

3 posts in this topic


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


Share this post

Link to post
Share on other sites

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

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

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