[EthercatDevice_QECRXXUN01]
説明
Get the Peripheral Power Current Value of Slave device. (unit: A)
Class Modules
class EthercatDevice_QECR11UN01; /* RJ45 power [1, 1]. */ class EthercatDevice_QECR00UN01; /* RJ45 power [0, 0]. */
Format
double getPeripheralPowerCurrent();
構文
EthercatDevice_QECR11UN01 slave;
slave.getPeripheralPowerCurrent();
戻り値
Double: The Peripheral Power Current Value of Slave device. (unit: A)
例
#include "Ethercat.h"
EthercatMaster master;
EthercatDevice_QECR11UN01 slave;
void setup(void) {
Serial.begin(115200);
while (!Serial);
master.begin();
slave.attach(0, master);
master.start();
Serial.println(slave.getPeripheralPowerCurrent());
}
void loop() {}ライブラリリファレンスホーム
86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。