MODULE_INFO

The MODULE_INFO instruction reads module information from a plug-in module or an expansion module.
Operation details:
  • Plug-in module information is read during Run time.
  • The 2080-MEMBAK-RTC memory plug-in module is not supported.
  • Expansion module information is read when the module is powered on.
  • When a plug-in or expansion module is not defined with a ModuleID, ProductType, or ProductCode, the MODULE_INFO operation returns 0 for the respective output parameter.
  • The plug-in and expansion module identification information is defined by Allen-Bradley and is provided below as part of the MODULE_INFO description.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers. Expansion modules are only supported on the L50E and L70E controllers.
MODULE_INFO
MODULE_INFO
MODULE_INFO parameters
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Instruction block enable.
  • TRUE: Executes MODULE_INFO read operation.
  • FALSE: Does not execute the read operation. All output data values are reset to 0.
ModuleType
Input
USINT
Identifies the module type:
  • 1: 2085 Expansion Module.
  • 2: 2080 Plug-in Module.
SlotID
Input
USINT
The slot number where the plug-in or expansion module is located.
Slot IDs are: 1, 2, 3, 4, and 5
Slot 1 is on the far left.
Done
Output
BOOL
  • TRUE: Operation completed successfully.
  • FALSE: Operation is not executing or an error condition occurred.
Present
Output
BOOL
Detects the plug-in or expansion module in the controller slot.
  • TRUE: Module is physically present.
  • FALSE: Module is not physically present.
ModID
Output
UINT
The identification for the module in the controller slot.
  • Plug-in modules are defined with a unique module identifier.
  • Expansion modules are not defined with a unique module identifier, ModID returns 0.
VendorID
Output
UINT
The plug-in or expansion module vendor ID.
For Allen-Bradley products, the vendor ID is 1.
ProductType
Output
UINT
The plug-in or expansion module product type.
ProductCode
Output
UINT
The plug-in or expansion module product code.
ModRevision
Output
UINT
The plug-in or expansion module revision information.
Error
Output
BOOL
Indicates the existence of an error condition.
  • TRUE: An error is detected.
  • FALSE: No error.
ErrorID
Output
USINT
A unique numeric that identifies the error. The errors are defined in the MODULE_INFO error codes.
MODULE_INFO error codes
Error Code
Description
1
Invalid module type.
Change to a valid module type.
Valid module types are:
  • 1: 2085 Expansion Module. Only supported on L50E controllers.
  • 2: 2080 Plug-in Module. Supported on L20E and L50E controllers.
2
Invalid slot number.
Change to a valid slot number.
3
Invalid expansion module type.
4
Expansion module fatal error.
5
Plug-in module Read Info is not supported.
6
Plug-in module read error occurred while reading the Module ID.
7
Plug-in module read error occurred while reading the Vendor ID.
8
Plug-in module read error while reading the Product Type.
9
Plug-in module read error occurred while reading the Product Code.
10
Plug-in module read error occurred while reading the Module Revision.

MODULE_INFO examples

MODULE_INFO function block diagram example
MODULE_INFO function block diagram example
MODULE_INFO ladder diagram example
MODULE_INFO ladder diagram example
MODULE_INFO structured text example
MODULE_INFO structured text example
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal