ControlLogix Subroutines

dash

Lifetime Supporting Member
Join Date
Jun 2003
Location
Birmingham, AL
Posts
589
I have allways been frustrated that the CLX subroutines do not give you a way to develop a true function block routine (like in Wago & Siemens) where you can declare each use of the function block and it keeps each instance separate. I also miss true pointer based addressing which makes a lot of that possible.

Any how this is my closest approximation of how to uses some of the more common features of timers and counters with UDTs & create truly reusable subroutines. I have not seen a Rockwell example like this, but I may have not searched on quite the right terms.

Does anyone have a better solution, comments, etc?

udt_testing.jpg
 
Last edited:
What I typically do is pass in the UDT as well as any specific parameters I know will change as separate inputs. It's similar to a classical Siemens S7-300 muli-instance FB call where the instance data block goes on top and the input parameters get stuck in the side. In the CLX case the UDT gets passed in AND out. That way you don't need to do the single bit mapping like you show in your example. You just use the BOOLs as inputs. The real downfall for the AB implementation IMHO is the lack of descriptions in the input and output fields. You need to know what each input and output position mean. This is a real nice thing from the Siemens Step7 method that I would really like to see in the AB method.

Keith
 
Thanks for commenting. That example was probably to basic & without any comments. I was just trying to see if counter/timers would retain state by passing the UDT as an input & output. I am creating a more detailed example to hopefully create more comments/interest.

What I miss from the Wago is the ability to use pointers to address directly to the IO without all the intermediate logic.

Darren
 

Similar Topics

Hi everybody, It should be simple because I think I have seen few posts with this issue but my search came up with non relevant information. I...
Replies
11
Views
5,074
Hello everyone, has anyone managed to communicate Twido with Controllogix using the Ethernet connection?
Replies
0
Views
25
I'm trying to integrate a Beckhoff IPC with a Controllogix PLC. There is some documentation, on the Beckhoff website, on how to do a PLC-PLC comms...
Replies
0
Views
121
Why does the controllogix redundancy modules use a single mode fiber vs multimode fiber?
Replies
1
Views
113
Hello, I have two 16 point input cards and 1 16 point output card showing module faulted on my IO tree in Logix Designer. The fault code is...
Replies
7
Views
241
Back
Top Bottom