EthercatDevice_QECRXXHU.getSystemTemperature()

[EthercatDevice_QECRXXHU]

説明

Get the temperature of the Slave device. (Unit: C)

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 getSystemTemperature();

Syntax

EthercatDevice_QECRXXHU slave;
slave.getSystemTemperature();

Returns

Double: The temperature of the Slave device. (Unit: C)

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.getSystemTemperature());
}

void loop() {}

Libraries Reference Home

86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

コメントする

上部へスクロール