[Ethercat Master]
描述
Check if the EtherCAT master has Cable Redundancy enabled.
語法
bool isRedundancy();
參數
無
回傳值
Return whether Cable Redundancy is enabled for the EtherCAT master. true indicates it is enabled, while false indicates it is not.
備註
This function must be called after a successful execution of EthercatMaster::begin()
. This function is non-blocking and can be called within the callback functions.
範例
#include "Ethercat.h" EthercatMaster master; void setup() { Serial.begin(115200); master.begin(); Serial.println(master.isRedundancy()); } void loop() { }
Please see the EtherCAT Library User Manual for more QEC EtherCAT instructions and API usage.