Direction | Range | Voltage | Description |
---|---|---|---|
Digital Input | Ports 2~9 | 0V or 24VDC (20V ~ 28V) HIGH | 24V is HIGH 0V is LOW |
Digital Output | Ports 10~13 | Output Sink | HIGH creates a path to ground. |
Analog Input | Channels 0~5 | 0~5VDC | VA = analogRead(A0) → Read from channel 0 VA = analogRead(A4) → Read from channel 4 |
Direction | Range | Signal Type | Description |
---|---|---|---|
Digital Input | Ports 22~37 | 0V or 24VDC (20V ~ 28V) HIGH | 24V is HIGH 0V is LOW |
Digital Output | Ports 38~51 | Output Sink | HIGH creates a path to ground |
Analog Input | Channels 0~7 | Channels 0~3 0~20mA Channels 4~7 0~10VDC | VA = analogRead(A0) → Read from channel 0 VA = analogRead(A4) → Read from channel 4 |
Direction | Range | Signal Type | Description |
---|---|---|---|
Digital Input | Ports 4~11 | 0V or 24VDC (20V ~ 28V) HIGH | 24V is HIGH 0V is LOW |
Digital Output | Ports 22~25 | Relay 10A) Output | HIGH turn relay ON LOW turns relay OFF |
Analog Input | Channels 0~7 | Channels 0~3 0~20mA Channels 4~7 0~10VDC | VA = analogRead(A0) → Read from channel 0 VA = analogRead(A4) → Read from channel 4 |
Direction | Range | Signal Type | Description |
---|---|---|---|
Digital Input | Ports 30~45 | 0V or 24VDC (20V ~ 28V) HIGH | 24V is HIGH 0V is LOW |
Digital Output | Ports 22~29 | Relay (10A) Output | HIGH turns relay ON LOW turns relay OFF |
Analog Input | Channels 0~7 | Channels 0~3 0~20mA Channels 4~7 0~10VDC | VA = analogRead(A0) → Read from channel 0 VA = analogRead(A4) → Read from channel 4 |
int val = 0; // Variable for input int AD_val = 0; // Variable for Analog input pinMode(38, OUTPUT); // Configure pin 38 as output val = digitalRead(22); // Read from input pin 22 digitalWrite(38, val); // Write `val` to output pin 38 AD_val = analogRead(A0); // Read analog input A0 and store to variable `AD_val`
All FA-DUINO models have a status LED for displaying simple operating conditions. It is connected to port 13.
digitalWrite(13, HIGH); // Turn the status LED on delay(1000); // Delay for 1 second digitalWrite(13, LOW); // Turn the status LED off delay(1000); // Delay for 1 second