Sign in to follow this  
Followers 0
b.sayahfar

Add-on instruction input with optional capability

2 posts in this topic

Hi All, I'm a new AB programmer but I have experience in programming with Siemens. I want to use Add-on instruction in AB same as Function Block in Siemens, so that some inputs is not mandatory to write something and in this case it take their defined values. In AB, I found Add-on same as FB except that if you put it as required, so you should assign something to it and if not put it as required, you couldn't assign anything. Is there any way to have both together? Thanks

Share this post


Link to post
Share on other sites
For inputs, put them as "required". If you don't need that particular input/output, you can just put a "1" or a "0" in the required place: As for outputs, you have two options that i can think of off the top of my head: Leave them as not required. If they are required, then copy the output to the relevant tag on the next rung: Or, leave them as required, and just create a dummy tag that you can assign to the AOI where it's not required: Hope that helps!

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
Sign in to follow this  
Followers 0