1、本文讲解
倍福PLC–EtherCAT伺服断网络之后一直无法OP,通过PLC程序方式让从站伺服进入OP状态。
在现场,出现一种情况,伺服驱动器断了网络之后,PLC就一直连不上,需要断电重启,本文介绍通过程序方式让从站启动:
伺服状态如下所示:
1、 参考功能块:
https://infosys.beckhoff.com/content/1033/tcplclib_tc2_ethercat/57034251.html
FUNCTION_BLOCK FB_EcSetSlaveState
The functionblock FB_EcSetSlaveState is used to set the EtherCAT slave in the state that is stated by the parameter reqState. The functionblock waits the maximum tTimeout time until the new state is set.
VAR_INPUT