mainstreetmark
Member
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)
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)