EthercatDevice_QECRXXD.digitalWriteAll()

[EthercatDevice_QECRXXD]

説明

Write HIGH or LOW value to all digital output pins on the EtherCAT Slave device.

Class Modules

class EthercatDevice_QECR00DC4D;    /* 12 Inputs,  4 Outputs. RJ45 power [0, 0]. With broken wire detector. */
class EthercatDevice_QECR00D4CD;    /*  4 Inputs, 12 Outputs. RJ45 power [0, 0]. With broken wire detector. */
class EthercatDevice_QECR11D0FS;    /*  0 Inputs, 16 Outputs. RJ45 power [1, 1]. */
class EthercatDevice_QECR00D0FS;    /*  0 Inputs, 16 Outputs. RJ45 power [0, 0]. */
class EthercatDevice_QECR11D88S;    /*  8 Inputs,  8 Outputs. RJ45 power [1, 1]. */
class EthercatDevice_QECR00D88D;    /*  8 Inputs,  8 Outputs. RJ45 power [0, 0]. With broken wire detector. */
class EthercatDevice_QECR11D88D;    /*  8 Inputs,  8 Outputs. RJ45 power [1, 1]. With broken wire detector. */
class EthercatDevice_QECR11D88H;    /*  8 Inputs,  8 Outputs. RJ45 power [1, 1]. With broken wire detector. High Speed. */
class EthercatDevice_QECR11D0FH;    /*  0 Inputs, 16 Outputs. RJ45 power [1, 1]. High speed digital I/O. High Speed. */

Format

int digitalWriteAll(uint32_t value);

Syntax

EthercatDevice_QECR11D0FS slave;
slave.digitalWriteAll(High);

Parameters

value: HIGH or LOW

Returns

Int: 0 for successful; if the return value is smaller than 0 means an error.

Example

#include "Ethercat.h"

EthercatMaster master;
EthercatDevice_QECR11D0FS slave;

void setup(void) {
    master.begin();
    slave.attach(0, master);
    master.start();
}

void loop() {
    slave.digitalWriteAll(HIGH);
    delay(4000);
    slave.digitalWriteAll(LOW);
    delay(1000);
}

Libraries Reference Home

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

コメントする

上部へスクロール