Moxa V2406-T-LX [11/41] Digital input output channels

Moxa V2426-T-LX [11/41] Digital input output channels
V2406/2422/2426 Series Introduction
1-7
NOTE: The V2406/2422/2426 embedded computer supplies only 5V DC power for 2.5 inch SATA
hard disks. If you want to use a 3.5 inch hard disk, you will need to use an external power supply for
your SATA hard disk.
Four RS-232/422/485 Serial Ports
The serial ports of the V2406/2422/2426-XPE computer from button to top are named “COM1” to “COM4
COM1 to COM4 are RS-232/422/485 serial ports. Each of these ports supports baudrate settings of up to 921.6
Kbps.
Digital Input/Output Channels
The V2406/2426 provides six digital input and two digital output channels, and the V2422 comes with four
digital input and four digital output channels. You can set the operation mode by programming; the example
“DIO” can be found under \examples\C++\ of the Software DVD.
The code snippet is as follows:
/*
index[n]: 0 ; BIT 0
1 ; BIT 1
2 ; BIT 2
3 ; BIT 3
....
data[n]: 0 ; Digital LOW
1 ; Digital HIGH
*/
unsigned int hDIO;
unsigned int port_no;
int data;
int intDout,intDin;
int nDout=0;
int port=0,mode=0;
int n=0;
WCHAR sin,smode;
printf("UART Mode Test Program\n");
printf("\t (0) Exit Program\n");

Содержание

Похожие устройства

Скачать