Table of Contents

CFDO-8R

Relay output 8-point module, A contact output, the contacts are shorted when turned on, and open when turned off.

View at our online store.

Electrical specifications

Wiring method

Setting the module's address

CFDO-8R shares an address with CFDO-16N module. In other words, addresses already in use by CFDO-16N cannot be used.

How to use the API

1. <html>

#include "CFMEGA.h"

</html> library registration

2. CFNET object creation: CFNET object name CFNET cfnet;

3. Call the function(s): Object name.digitalWrite();cfnet.digitalWrite(0, 0xff);

-void digitalWrite(u8 address, u16 data)

Turns all 8 output ports of the specified address module into On and Off states with 8bit data values. (8bit write)

-void digitalWrite(u8 address, u8 pin, u8 on_off)

Turns one port of the specified address module’s pin on or off. (1 bit write)

#include "CFMEGA.h"
CFNET cfnet;
 
void setup() {
 cfnet.digitalWrite(0, 0XFF); delay(1000);
 cfnet.digitalWrite(0, 0X00); delay(1000);
}
 
void loop() {
 for(int i=0; i<16; i++){
 cfnet.digitalWrite(0, i, 1 );delay(100);
 }
 cfnet.digitalWrite(0, 0X00); delay(1000);
}

Modular FADUINO