説明
Check if the EtherCAT SubDevice is a stepper motor drive.
構文
int isStepper();
媒介変数
なし
戻り値
Return whether the EtherCAT SubDevice is a stepper motor drive. If the return value is less than 0, it indicates an error codeを示します。.
備考
この関数は、 . This function is non-blocking and can be called in callback functions.
例
#include "Ethercat.h"
EthercatMaster master;
EthercatDevice_CiA402 motor;
void setup()
{ Serial.begin(115200);
while (!Serial);
master.begin();
motor.attach(0, master);
Serial.print("Stepper Motor Drive: ");
Serial.println(motor.isStepper());
}
void loop() {
// put your main code here, to run repeatedly:
}
詳細は EtherCAT CiA 402 User Manual QEC EtherCAT命令とAPI使用法参照