Access the module object, Create the add-on instruction – Rockwell Automation 1756-L6x_L7x ControlLogix System User Manual User Manual

Page 160

Advertising
background image

160

Rockwell Automation Publication 1756-UM001O-EN-P - October 2014

Chapter 10

Develop Applications

Figure 38 - Add-On Instructions

Access the Module Object

The MODULE object provides status information about a module. To select a
particular module object, set the Object Name operand of the GSV/SSV
instruction to the module name. The specified module must be present in the
I/O Configuration section of the controller organizer and must have a device
name.

Create the Add-On Instruction

With Logix Designer application, version 24.00.00 and later, you can access a
MODULE object directly from an Add-On Instruction. Previously, you could
access the MODULE object data but not from within an Add-On Instruction.

You must create a Module Reference parameter when you define the Add-On
Instruction to access the MODULE object data. A Module Reference parameter
is an InOut parameter of the MODULE data type that points to the MODULE
Object of a hardware module. You can use module reference parameters in both
Add-On Instruction logic and program logic.

For more information on the Module Reference parameter, see the Logix5000
Controllers Add-On Instructions Programming Manual, publication

1756-PM010

and the Logix Designer application online help.

The MODULE object uses the following attributes to provide status
information:

EntryStatus

FaultCode

Controller Organizer

Instruction Toolbar

Advertising