![EVOC PCI-16P16R Manual Download Page 22](http://html.mh-extra.com/html/evoc/pci-16p16r/pci-16p16r_manual_2446412022.webp)
-16-
Low-level Programming
In normal power-up and reset, the relay is in
low
status.
3.5 Programming
The PCI-16P16R’s registers can be accessed through direct
I/O instructions, such as
inport
or
outport
instructions in
Borland C/C++ language. You can write (outport) control word
to relay output register to turn the relay ON/OFF; Also, you
can read (inport) back the signal of relay status or isolated
input signals.
1. Read operation
A read operation on BASE+00 will read in the value (status)
of 16 corresponding digital input channels.
For example:
To get the status of these channels using the BASIC
language,
Value = INP (BASE+00)
In C Language
Value = inp (BASE+00)
2. Write operation
A write operation on BASE+00 will set the desired status on