EthercatDevice_QECRXXHU.getSystemPowerVoltage()

[EthercatDevice_QECRXXHU]

Description

Get the System Power Voltage Value of the Slave device. (Unit: V)

Class Modules

class EthercatDevice_QECR11HU5S;
/* MPG + Keypad + LCM + RS232x2, RJ45 power [1, 1] */
class EthercatDevice_QECR00HU5S;
/* MPG + Keypad + LCM + RS232x2, RJ45 power [0, 0] */
class EthercatDevice_QECR11HU9S;
/* MPG + Keypad + LCM + RS232/485x2, RJ45 power [1, 1] */
class EthercatDevice_QECR00HU9S;
/* MPG + Keypad + LCM + RS232/485x2, RJ45 power [0, 0] */

Format

double getSystemPowerVoltage();

Syntax

EthercatDevice_QECRXXHU slave;
slave.getSystemPowerVoltage();

Returns

Double: The System Power Voltage Value of the Slave device. (Unit: V)

Example

#include "Ethercat.h"

EthercatMaster master;
EthercatDevice_QECR11HU5S slave;

void setup(void) {
    Serial.begin(115200);
    while (!Serial);
    
    master.begin();
    slave.attach(0, master);
    master.start();

    Serial.println(slave.getSystemPowerVoltage());
}

void loop() {}

Libraries Reference Home

The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Leave a Comment

Scroll to Top