Read All Module IDs
[cmdchars] = !B
Description
The Read All Module IDs command reads the number of modules in the bank and the IDs of the network module and all I/O modules. Use the Read Module ID (!A) command to read the ID of a single module.
Syntax
!B
Success Response
A[number][mod array]
[number] | Two ASCII-hex characters represent the number of modules in the bank, including the network module. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[modID] | Four ASCII-hex characters represent the ID of each module in the bank. The first four characters represent the ID of the network module, and each subsequent set of four characters corresponds to the module at the next higher address in the bank. The following table lists the module IDs and corresponding module types:
|
Error Responses
E_NO_MODULE | There is no module at the specified address. |
E_BAD_ADDRESS | The addressed module does not support the command. |
E_INV_LIMS_GOT | Specified limits invalid for the command. |
Example
>00!B[checksum][cr]
This command requests that the FieldPoint network module at address 0x00 return the IDs of all the modules in the bank. The response is as follows:
A03000101020103[checksum][cr]
There are three modules in the bank: an FP-1000 network module (ID 0001), an FP-AO-200 (ID 0102), and an FP-DI-330 (ID 0103).