[EthercatDevice_QECRXXD]
Description
Write a HIGH or LOW value to a digital output pin 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. */
Format
int digitalWrite(uint8_t pin, uint8_t value);
Syntax
EthercatDevice_QECR11D0FS slave;
slave.digitalWrite(0, High);
Parameters
pin
: the pin numbervalue
: 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.digitalWrite(0, HIGH); delay(4000); slave.digitalWrite(0, LOW); delay(1000); }
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.