2 Instruction Descriptions
2-746
NJ-series Instructions Reference Manual (W502)
EC_DisconnectSlave
The EC_DisconnectSlave instruction disconnects the specified slave from the network.
The EC_DisconnectSlave instruction disconnects the slave specified with slave node address NodeAdr
from the EtherCAT network.
Here, disconnection from the network means that the slave is placed in a state in which it does not
operate even though it still exists on the network.
Instruction Name
FB/
FUN
Graphic expression ST expression
EC_Disconnect
Slave
Disconnect
EtherCAT
Slave
FB EC_DisconnectSlave_instance(Execute,
NodeAdr, Done, Busy, Error, ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
NodeAdr Slave node
address
Input Node address of the slave to
disconnect
1 to 192 --- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
NodeAdr OK
Function
Related System-defined Variables
Name Meaning Data type Description
_EC_EntrySlavTbl[i]
“i” is the node address.
Network Connected
Slave Table
BOOL[] This variable shows if slaves are part of (i.e., exist
on) the network.
TRUE: Part of the network.
FALSE: Not part of the network.
_EC_DisconnSlavTbl[i]
“i” is the node address.
Disconnected Slave
Tab le
BOOL[] This variable shows the slaves for which there are
currently disconnect commands in effect.
TRUE: Disconnect command is in effect.
FALSE: Disconnect command is not in effect.
_EC_DisableSlavTbl[i]
“i” is the node address.
Disabled Slave Table BOOL[] This variable shows if slaves are disabled on the
network.
TRUE: Disabled.
FALSE: Not disabled.
EC_DisconnectSlave
Execute Done
NodeAdr Busy
Error
ErrorID
EC_DisconnectSlave_instance