Add-on instruction input with optional capability

sayahfar

Member
Join Date
Nov 2013
Location
Toronto
Posts
4
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
 
But in this case I couldn't assign a parameter to it.
I want something like Function Block in Siemens, the assignment of input or output is optional. maybe you use it several times, for first you can assign a tag to parameter but for second one you don't want and it uses the parameter's definition value.

can I have it in AB?
 
I replied to this post over on mrplc, I'll copy and paste below :)

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:
post-47361-0-70529900-1435534677.png


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:
post-47361-0-72867600-1435535053.png


Or, leave them as required, and just create a dummy tag that you can assign to the AOI where it's not required:
post-47361-0-59840800-1435535033.png


Hope that helps!
 

Similar Topics

Hello, I have just started programming RS Logix 5000 for Compact logix. Seems quite neat. I have made my own "Add on instruction" without...
Replies
1
Views
2,968
I am new to AOIs, and do not have a processor handy to test my program. I have a couple of simple questions, which I have not been able to find an...
Replies
10
Views
10,167
hey good afternoon ! I have a simple question, I need to import an Add on instruction to a controller that is in operation and cannot stop. Is it...
Replies
6
Views
301
please can someone help me how do i add status bits to the add on instruction in studio 5000 thank you
Replies
2
Views
1,481
Hello all, Is there a way to trend tags associated with AOI? Currently the selection is grayed out. The tag is a local tag and it resides in a...
Replies
8
Views
2,143
Back
Top Bottom