Difference between revisions of "AFE-R761 DI/DO"
Xingxing.li (talk | contribs) |
Xingxing.li (talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | |||
=== '''Hardware pin definition:''' === | === '''Hardware pin definition:''' === | ||
| Line 49: | Line 48: | ||
| 508 | | 508 | ||
|} | |} | ||
| + | |||
| + | ==== Note: The DI GPIO port can only be used for input, and the DO GPIO port can only be used for output. Do not echo "out" on the DI port or echo "out" on the DI port. ==== | ||
| + | |||
| + | Export GPIO then you can use control GPIO from user space through sysfs. | ||
| + | |||
| + | === '''Export GPIO''' === | ||
| + | <pre># #</pre> | ||
| + | |||
| + | | ||
==== '''Digital Input''' ==== | ==== '''Digital Input''' ==== | ||
| Line 75: | Line 83: | ||
1</pre> | 1</pre> | ||
| − | + | '''Set and Get DO Status''' | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Take DO1 for example:(The DO interface of UIO-4033 is of sink type,Default state: No output) | Take DO1 for example:(The DO interface of UIO-4033 is of sink type,Default state: No output) | ||
| Line 99: | Line 102: | ||
'''The wiring and measurement methods can be referred to as shown in the following diagram.''' | '''The wiring and measurement methods can be referred to as shown in the following diagram.''' | ||
| − | [[File:AFE-R761 DIDO 1.jpg|800x400px]] | + | [[File:AFE-R761 DIDO 1.jpg|800x400px|AFE-R761 DIDO 1.jpg]] |
'''Note:''' | '''Note:''' | ||
| Line 108: | Line 111: | ||
3、When echo is "1", the DO on the UIO is closed mode and the level is low. | 3、When echo is "1", the DO on the UIO is closed mode and the level is low. | ||
| − | |||
| − | |||
Revision as of 03:02, 14 January 2026
Contents
Hardware pin definition:
AFE-R761 supports 4x digital inputs and 4x digital outputs.
| DI,DO Ports | ||
| GPIO Number | GPIO formed | Numeric Representation |
| DI1 | Ext-GPIO0 P00 | 501 |
| DI2 | Ext-GPIO0 P01 | 502 |
| DI3 | Ext-GPIO0 P02 | 503 |
| DI4 | Ext-GPIO0 P03 | 504 |
| DO1 | Ext-GPIO0 P04 | 505 |
| DO2 | Ext-GPIO0 P05 | 506 |
| DO3 | Ext-GPIO0 P06 | 507 |
| DO4 | Ext-GPIO0 P07 | 508 |
Note: The DI GPIO port can only be used for input, and the DO GPIO port can only be used for output. Do not echo "out" on the DI port or echo "out" on the DI port.
Export GPIO then you can use control GPIO from user space through sysfs.
Export GPIO
# #
Digital Input
4 x DI w 2500VDC isolation protection (terminal block)
- Wet contact: Logic: 0~3VDC(max);Logic 1: 10~30VDC
- Dry contact: Logic 0: Shorted to GND; Logic 1: Open (Default)
Digital Output
4 x DO w 2500VDC isolation protection (terminal block)
- Output voltage: 5-30VDC
- Output capability Sink(NPN): 500mA per channel
SW Function
Show DI/DO ports
# #---- Show DI ports ----# # # cd /dev/ # ls DI* DI1 DI2 DI3 DI4 # #---- Show DO ports ----# # # cd /dev/ # ls DO* DO1 DO2 DO3 DO4
Get DI Status
Take DI1 for example
# cat /dev/DI1 1
Set and Get DO Status
Take DO1 for example:(The DO interface of UIO-4033 is of sink type,Default state: No output)
# #---- Set 0 to DO1 ----# # # echo 0 > /dev/DO1 # #---- Set 1 to DO1 ----# # # echo 1 > /dev/DO1 # #---- Get DO1 status ----# # # cat /dev/DO1 1
Note:
Setting 0 to make the external circuit NOT conductive.
Setting 1 to make the external circuit conductive.
The wiring and measurement methods can be referred to as shown in the following diagram.
Note:
1、There are no specific requirements for the power supply. Just make sure it is within the product POR specification of 5 to 30V DC (and ensure that the overshoot at the moment of power-on does not exceed 30V of the POR). Please be sure to confirm the overshoot at power-on of the POWER Supply being used.
2、When echo is "0", the DO on the UIO is open mode and the level state is high.
3、When echo is "1", the DO on the UIO is closed mode and the level is low.

