beautypg.com

User-defined data types (udts) – ProSoft Technology MVI56E-MNET/MNETXT User Manual

Page 78

background image

Ladder Logic

MVI56E-MNET / MNETXT ♦ ControlLogix Platform

User Manual

Modbus TCP/IP Interface Module

Page 78 of 181

ProSoft Technology, Inc.

April 23, 2014

3.2

User-Defined Data Types (UDTs)

User-defined data types (UDTs) allow users to organize collections of data types
into groupings. These groupings, or data type structures, can then be used to
declare the data types for controller tag structures. Another advantage of defining
a UDT is that it may be re-used in other controller tag structures that use the
same data types.

The Add-On Instruction Import Rung ladder logic for the module has pre-defined
UDTs. You can find them in the User-Defined subfolder, located in the Data
Types
folder in the Controller Organizer pane of the main RSLogix window. Like
the controller tags, the UDTs are organized in a multiple-level tree structure.

3.2.1 MVI56(E)-MNET User-Defined Data Types

Twelve different UDTs are defined for the MVI56(E)-MNET Add-On Instruction.

The main UDT, MNETMODULEDEF, contains all the data types for the module
and was used to create the main controller tag structure, MNET. There are four
UDTs one level below MNETMODULEDEF. These lower-level UDTs were used
to create the MNET.DATA, MNET.STATUS, MNET.CONTROL, and MNET.UTIL
controller tag structures.

Click the [+] signs to expand the UDT structures and view lower-level UDTs.