iC9200 Series
HB700 | CPU | PMC921xEx | en | 23-06
System variable
EC_MASTER_STATE
EC_MASTER_LINK_CONNECTED
EC_TOPOLOGY_OK
EC_DC_IN_SYNC
EC_CYCLIC_LOST_FRAMES
EC_ACYCLIC_LOST_FRAMES
EC_NUM_CONFIGURED_SLAVES
EC_NUM_AVAILABLE_SLAVES
EC_SLAVES_IN_MASTER_STATE
EC_SLAVE_STATION_ADDRESS
System variables and status information > System variables
Description
BYTE - master state
n
Returns the state of the EtherCAT
master:
–
00h: Unknown - the state is
unknown.
–
01h: INIT
–
02h: PreOp
–
04h: SafeOp
–
08h: OP
BOOL - physical connection
n
Set when an Ethernet cable is con-
nected to the EtherCAT master.
BOOL - topology OK
n
Set when current topology and config-
ured topology match.
BOOL - distributed clocks
n
Set when the distributed clocks are
synchronized.
DWORD - missing frames (cyclic)
n
Returns the number of frames lost
during cyclic communication.
DWORD - missing frames (acyclic)
n
Returns the number of frames lost
during acyclic communication.
WORD - configured number of slaves
n
Returns the number of configured
EtherCAT slaves.
WORD - number of slaves in the network
n
Returns the number of EtherCAT
slaves found when searching the
EtherCAT network.
BOOL - EtherCAT slaves in master state
n
Set when all EtherCAT slaves on the
EtherCAT master have the state of the
EtherCAT master.
ARRAY[0...512] OF WORD
addresses
n
Returns all addresses of the EtherCAT
slaves connected to the EtherCAT
master.
Deployment
1)
- slave
119