Function that returns the NMT operating mode of the indicated ws.
|
i32 co_rnmt (i32 nWs)
|
|
ID stazione Robox (workstation logica 1-:-64)
|
|
Returns the NMT state (first 8 bits):
|
|
|
-
|
0x00000000
|
BOOT
|
2
|
0x00000004
|
STOP
|
0, 2
|
0x00000005
|
OPERATIONAL
|
0, 1, 2, 3, 4, 5, 6
|
0x0000007f
|
PREOPERATIONAL
|
In addition, the following other information are mapped:
|
|
|
8
|
0x00000100
|
=1 if station absent (always 0 if presence forced by cfg)
|
9
|
0x00000200
|
=1 if station really absent (even if it has forced presence)
|
10
|
0x00000400
|
=1 if the last request for a PDO via Remote Transmission Request (RTR) failed
|
11
|
0x00000800
|
=1 if station present because forced by configurator
|
12
|
0x00001000
|
=1 if station is being configured
|
13
|
0x00002000
|
=1 if the station aborted the configuration phase due to various causes
|
14
|
0x00004000
|
=1 if the station sent a shorter RPDO than the configured one
|
15
|
0x00008000
|
=1 if the station sent more than one synchronous PDO between two sync messages
|
|
|
Rule, Task
|
|
Returns the same information as the D_NMT command from RDE shell
|