Directive (device command) to set the absence/presence of ethercat nodes configured on the line.
The command can only be executed if the ethercat line is in INIT. To change the state of the line use the ECAT_SET_STATE command.
After running this command put the ethercat line back in OPERATIONAL.
Syntax |
ECAT_SLAVE_OFF nEth slaveAddr [desState] |
---|---|
nEt |
Number of ethercat ports whose information is desired. If omitted or 0 means all ethercat lines present |
slaveAddr |
Address of the ethercat node to be enabled/disabled. The node address can be found in the .FBC configuration file or is readable using the FVIEW /PROC/BUS/ECAT/ETHn/MASTER/INFO command. If specified as a hexadecimal use prefix 0X |
desState |
•1 = Removes the node from the network (default value if parameter is omitted) •0 = Reinserts the node into the network |
desState |
•1 = INIT •2 = PRE-OPERATIONAL •4 = SAFE-OPERATIONAL •8 = OPERATIONAL |
Note |
Example
ECAT_SET_STATE 1 1 ; Set the ethercat line to init state ECAT_SLAVE_OFF 1 1001 ; DISABLE DEVICE 1001 ECAT_SET_STATE 1 8 ; Set the line to Operational state |