2-747
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
EC_DisconnectSlave
Refer to the NJ-series CPU Unit Built-in EtherCAT Port User’s Manual (Cat. No. W505) for details on
EtherCAT communications.
• Execution of this instruction is continued until processing is completed even if the value of Execute
changes to FALSE or the execution time exceeds the task period. The value of Done changes to
TRUE when processing is completed. Use this to confirm normal completion of processing.
• Refer to Using this Section on page 2-2 for a timing chart for Execute, Done, Busy, and Error.
• This instruction can be used only for the NJ-series EtherCAT ports.
• If there are slaves with daisy-chain connections (i.e., connected to the output port) after the discon-
nected slave, they are disconnected from the EtherCAT network also.
• An error occurs in the following case. Error will change to TRUE.
• The slave specified with NodeAdr is not part of the EtherCAT network. That is, the value of
_EC_EntrySlavTbl[i] (Network Connected Slave Table) is FALSE.
• The slave specified with NodeAdr is disabled.
This sample disconnects slave 1 from the EtherCAT network and then connects it again. When Trigger
1 changes to TRUE, the EC_DisconnectSlave instruction is executed to disconnect slave 1. When Trig-
ger 2 changes to TRUE, the EC_ConnectSlave instruction is executed to connect slave 1 again.
Additional Information
Precautions for Correct Use
Sample Programming