Code: |
AS + 902 |
Symbolic: |
bccFbReadLocalNmt |
This command will read the NMT status from the device Local Interface. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
FLAGS |
Request flags: 0x40000000 Request the ERRTEXT field |
4 |
U32 |
NODE |
Node address |
On success, a bccAck is received with following data:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
FLAGS |
Reply flags: 0x40000000 ERRTEXT field present 0x80000000 ERRCODE field present |
4 |
U32 |
NODE |
Node address (echo) |
8 |
... |
EXDATA |
Extra data |
The EXDATA structure is the following when the 0x80000000 flag is set in FLAGS:
Offset |
Type |
Label |
Description |
---|---|---|---|
+8 |
U32 |
ERRCODE |
Error code |
+12 |
STRZ |
ERRTEXT |
Error text (#1) |
(#1) Present only when 0x40000000 is set in FLAGS.
Otherwise, if the 0x80000000 flags is not set in FLAGS, the EXDATA structure is the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
+8 |
U32 |
STATUS |
Actual NMT status: 0=Init 1=PreOperational 2=Operational |
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackMissingArgs |
Missing arguments |
|
nackIllegalArgs |
Illegal arguments
|
U16 What illegal: 1=Flags 2=Node address |
nackInterfaceNotFound |
Local interface not present |
|
nackInterfaceNotReady |
Local interface not running |
|