User Defined Data Type [UDT] Tutorial - Explanation, Usage, Examples & Custom Definition in RSLogix 5000
Visit https://SolisPLC.com for more Tutorials, Information & connect with the Community
User Defined Datatypes consume space on a controller. Therefore, you need to think strategically before combining your data in this manner. From a practical sense, this means that you don't want to include too much data which will not be used in your program. It is also important to make sure that the application for which you're using this data will actually need all those placeholders.
To illustrate the above principle with an example, let's consider a simple pump system. This system consists of inputs, outputs & operational tags. Critical inputs could be "start", "stop", "fault reset". Outputs we'd like to know about the system are "Status", "Faulted", "Running", "Speed", etc. Internal operation tags could be anything which will be used in programming the structure of the system. Using the bits we've covered above along with a few extra ones for programming the internal operation makes a lot of sense. We can define a UDT which will contain BOOLs, INTs, REALs as well as several arrays of undefined tags to accommodate the operational data.
An improper way to use a UDT would be to utilize it for a system which is extremely large such as an entire plant. Although you may get away with defining it as such, you will never be able to reapply such a UDT as opposed to our pump system above. It can be exported and imported into the next program which will use the UDT. It's also not advised to apply a UDT for an entire machine even if it will be built multiple times. In fact, try to restrict UDT usage to small systems which exist in any field: motors, pumps, conveyors, tanks, boilers, etc.
Full Tutorial: TBD
Check out my Udemy Cognex Class & Save! Click the link below or enter the coupon code “SOLISYTCOGNEXPROMO” to get the class for only 10$!
Find us on social media:
Other Cool Content:
Cognex InSight Vision System - Job Change EtherNet IP CompactLogix Rockwell PLC RSLogix Studio 5000
RSLogix 500, RSLogix 500 Emulate & RSLinx Free Download from Rockwell Automation - PLC Programming
HMI Fundamentals - PanelView Plus Allen Bradley Terminal IP Settings for EtherNet Connectivity PLC
HMI / PLC Fundamentals - Syncing & Sending PLC Time to HMI Terminal Mode Programming RSLogix 5000
HMI / PLC Fundamentals - Linking Studio 5000 Tags to a PanelView Plus 1000 HMI Terminal Tutorial
PLC Programming FOR Instruction - Logical FOR Loop Ladder Logic RSLogix Studio 5000 Example Tutorial
PLC Programming BSR Instruction - Bit Shift Right Register Ladder Logic RSLogix Studio 5000 Example
Relevant Search Terms
rslogix udt, udt rslogix 5000, studio 5000 udt, rslogix 5000 user defined data type, rslogix udt example, user defined data type, user defined type