C. Digital I/O Command and Function

Digital I/O Card
Hardware Support:
0. PCI Industrial Card
1. PCI 4 Photo/4 Relay Card
2. PCI 8 Photo/ 8 Relay Card
3. PCI 16 Photo/16 Relay Card

Command and Function:
Select card module and I/O channel and status.
Void set(int card, int port, int line, int state);
Int get(int card, int port, int line);

card -  0: PCI Industrial Card
 1: PCI 4Photo/4Relay Card
 2: PCI 8Photo/8Relay Card
 3: PCI 16Photo/16Relay Card


port �PCI Industrial Card: The port number from 0 up to 3   Total post number 4 port
PCI 4Photo/4Relay Card:  The port number only 0  Total post number 1 port
PCI 8Photo/8Relay Card:  The port number only 0 Total post number 1 port
PCI 16 Photo/8Relay Card:  The port number from 0 to 1  Total post number 2 port

line �PCI Industrial Card: Each port have 16 lines  From 0 up to 15
PCI 4Photo/4Relay Card:  Form 0 to 3, Is Relay Output line.Form 4 to 7, Is Isolator Input line.
PCI 8Photo/8Relay Card:  Form 0 to 7, Is Relay Output line. Form 8 to 15, Is Isolator Input line.
PCI 16 Photo/16 Relay Card: 0 Is Relay Output line. 1 Is Isolator Input line.
Every port has 16 lines.

 
state �0: OFF�: ON

Back to main manual
Prepare JAVA Development Environment
Write your program
Digital I/O Command and Function
RS232/422/485 Serial Communication Command and Function
12 bit Data Acquisition Card Command and Function
Video Image Input Command and Function
Sample Code
Compile your JAVA Class application program
Upload your application program
Start and Stop run your application program
Tranzview System