ICPDAS
I-8092F Software User Manual
177
A.7.8 FRnet Related Functions
Table A-14 FRnet related functions
Function Name
Description
i8092_FRNET_SA
Write data to digital output of FRnet interface.
i8092_FRNET_RA
Read digital input from FRnet interface.
i8092_FRNET_SA
Format:
void
i8092_FRNET_SA(
BYTE
cardNo,
WORD
wSA,
WORD
data)
Function:
This function write data to the FRnet digital output.
SA
means the
S
ending
A
ddress
which can be one of the legal group number of FRnet. One group comprises 16 bits
data. Therefore, total 128 DO can be defined for one FRnet interface.
Parameters:
cardNo
is the board number.
wSA
:
Group number, range 0~7
8~15 are used for digital inputs
data
:
16-bit data
Return:
WORD
16-bit DI data
Example:
WORD IN_Data;
IN_Data =
i8092_
FRNET_RA(1, 8);
//Read the 16-bit DI which is on module 1 and the group number is 8.