Topic: DMD0158

 

HWINFO - Get Hardware Information


The Get Hardware information (HWINFO) instruction is used to retrieve hardware-specific information from an I/O module. This instruction allows a Do-more controller to confirm at runtime that an I/O module is present, or missing; or confirm that a module in a particular slot has the required I/O count, etc..

 

This instruction is also useful for determining if an I/O module that is marked as "Optional" in the I/O Configuration is present at runtime.

 

Parameters:

Note: Use the F9 key (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.

 

Information Type - selects which piece of information to retrieve from the module in the specified I/O slot
 

  • Module ID - the Module's factory-assigned ID
     

The possible Module IDs for Discrete Input and Discrete Output modules is available here: Discrete I/O Modules.
 

The possible Module IDs for Analog Input and Analog Output modules is available here: Analog I/O Modules.
 

The possible Module IDs for Ethernet and Serial Communication modules is available here: Communication Modules.
 

The possible Module IDs for CTRIO CTRIO2 modules is available here: CTRIO / CTRIO2 Modules.
 

  • X Count - the number of discrete input points

  • Y Count - the number of discrete output points
     

  • WX Count - the number of signed WORD (16-bit) inputs

  • WY Count - the number of signed WORD (16-bit) outputs
     

  • DX Count - the number of signed DWORD (32-bit) inputs

  • DY Count - the number of signed DWORD (32-bit) outputs

 

Master - selects which of the configured I/O Masters has access to the Base containing the target I/O module. For more information on I/O Masters see the I/O Configuration section of the System Configuration help topic.

 

  • LocalIOMaster - is the I/O Master for module located in the base with the Do-more controller
     

Base - selects which base contains the target I/O module

 

Slot - designates which slot contains the target I/O module. This can only be a constant value between 0 and 15.

 

Output - designates a location to store the resulting data. This can be any writable numeric location.

 


See Also:

 


Rung Example: