Please enable JavaScript to view this site.

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:

Value

Description

1

INIT

2

PREOPERATIONAL

4

SAFEOPERATIONAL

8

OPERATIONAL

-1

Illegal EtherCAT Line Index

-2

Ethernet port not configured EtherCAT

Validity

Rule, Task

Note


hmtoggle_plus0Examples

Example of use:

NOTE: This example can only be used in the task, as the mt_wait() instruction is used.

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC