User Tools

Site Tools

한국어

modularfaduino:cfdi16b

CFDI-16B

This is a 16-point bi-directional Digital input module.

Electrical specifications

  • Input Ports: 16
  • Allowable input voltage: 18~26VDC
  • Input current: about 5mA @24VDC
  • Input impedance: 8.2K ohm
  • Input response speed: about 350uS
  • ON recognition level: > 18VDC
  • OFF recognition level: < 13VDC
  • Floating section: 13VDC < input < 18VDC
  • Status LED OFF: < 7VDC

Wiring method

Address Setting

* Up to 8 CFDI-16Bs can be used in one system with different address settings of 0~7.

How to use commands

1. #include “CFMEGA.h” library registration

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

3. Use command: Object name.digitalRead();cfnet.digitalRead(0);

-u16 digitalRead(u8 address);

The input status of the entire specified address module is read as a 16-bit value.

  • address: module dip switch value (0~7)

-bool digitalRead(u8 address, u16 pin);

The port status of one pin of the specified address module is read as a 1-bit value. (1 bit read)

  • address: module dip switch value (0~7)
  • pin: Port number (0 ~ 15)
#include "CFMEGA.h"
 
CFNET cfnet;
 
void setup() {
 Serial.begin(9600);
}
 
void loop() {
 
 u16 blockK0 = cfnet.digitalRead(0);
 bool portIn0 = cfnet.digitalRead(0, 0);
 
 Serial.print("Block0 : "); Serial.print(blockK0, HEX);
 Serial.print(" PortIn0 : "); Serial.print(portIn0,HEX);
 Serial.print("\n"); delay(200);
}

Modular FADUINO

modularfaduino/cfdi16b.txt · Last modified: 2024/07/31 09:57 by COMFILE Technology