Apex Dual Orin Digital Output Usage#

Hardware Connection#

Function Label

Pin Label

Hardware Specification#


Description

Vref

Voltage to be supplied externally at the user side.

Passive Load

E.g. LED, Relay, Solenoid Valve.

Active Sourcing Input

Active Sourcing Input, DI of PLC, e.g.


Specification

Vref

3.3~36V

Function and Device Node#

Function

Device Node

M_DO_0

gpio286

M_DO_1

gpio287

M_DO_2

gpio288

M_DO_3

gpio289

S_DO_4

gpio310

S_DO_5

gpio313

Usage#

The example of using the GPIO interface is as follows.

# Use root
sudo su -

# Set output to high
echo 1 > /sys/class/gpio/<device node>/value
# Example: echo 1 > /sys/class/gpio/gpio339/value

# Set output to low
echo 0 > /sys/class/gpio/<device node>/value
# Example: echo 0 > /sys/class/gpio/gpio339/value