Logix Add-on Instruction advice

Join Date
Aug 2007
Location
Saint Augustine, FL
Posts
178
Having only just gotten into add-on instructions, with no current projects using it, I'm in the early experimentation phase, so I thought I'd come around here to solicit some good advice.

So, in the example I'm working out, I have a physical device that I'd like to wrap in it's on instruction. The device (a big circuit breaker) will always have it's own modbus address, and will be fairly consistent in function, but often differing in modbus addresses based on brands, and so on. So, with this brief overview, here are some questions I have come up with, which I couldn't find answers to:

1. These breakers already have their own user-defined type, but the Add-on seems to only allow for the primitive data types (INT, etc..) to be used, so I can't simply pass in my "breaker" udt, rather I have to wire up each of it's inputs directly. That makes the instruction quite "tall", and rather unwieldy, so I feel i'm on the wrong track.

2. As mentioned before, we have similar equipment, but often not the same equipment. Is it possible to do "inheritence", to use a C word? I recall hearing bits and pieces about this at Automation Fair in Nashville, but haven't seen much about it since then. Was i dreaming? Could I make a "basic" object, and then a bunch of child objects which I can tweak to meet the specific needs?

- thanks!!

(v16)
 
Good, now we got that cleared.

Now on to #2:
UDTs can be a sub element of a larger UDT.
I can have a UDT called drive with:

On (datatype bool)
Off (datatype bool)
FWD (datatype bool)
REV (datatype bool)

& we create a UDT called DriveAxis with:

Position (datatype real)
Velocity (datatype real)
VFD (datatype drive)

Now we declare an element named MyDriveAxis
Now whe have:

MyDriveAxis.Position (datatype real)
MyDriveAxis. Velocity (datatype real)
MyDriveAxis.VFD.On (datatype bool)
MyDriveAxis.VFD.Off (datatype bool)
MyDriveAxis.VFD.FWD (datatype bool)
MyDriveAxis.VFD.REV (datatype bool)
 
Yeah, nested instructions. I've been headed that way all afternoon, since it worked so well in user-defined types.

I may make, for example, a nice big functional instruction, but inside have various "network layer" instructions that hook up a particular point to a particular modbus address.

It's not actual inheritance, but I definitely think it will accomplish the need.

I appreciate the insight!
 

Similar Topics

I just imported four add-on instructions (which I believe are Rockwell AOIs), and they appeared to import OK, and I see them in the "tree"...
Replies
8
Views
3,152
So I have timers in an add-on instruction that work perfect, however I want to change the preset values in all of the instances at once (about 45...
Replies
2
Views
2,907
Hi there, I am trying to create an Add=On Instruction to help me manage some alarm conditions in my application. My AOI has one Boolean output...
Replies
7
Views
2,644
Hi everyone I am using an add on instruction for the first time and it seems to work ok except a timer does not seem to work properly and I cant...
Replies
12
Views
3,082
With AOIs in Logix5000, I'm noticing that if I create an AOI and populate all the parameters, I'm still getting an error that says "missing output...
Replies
4
Views
6,896
Back
Top Bottom