Function that returns the NMT operating mode of the EtherCAT line indicated.
Syntax |
i32 ecat_get_state (i32 nEth) |
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nEth |
EtherCAT line number |
||||||||||||||
Result |
Returns:
|
||||||||||||||
Validity |
Rule, Task |
||||||||||||||
Note |
Examples |
Example of use:
NOTE: This example can only be used in the task, as the mt_wait() instruction is used. |