
FRB-200U/200/100 User Manual (Ver.1.3, Jun.2008, fmh-001-12) ---- 22
6.4
I/O FUNCTIONS
6.4.1 FRB_SendSA
•
Description :
This subroutine will write the 16 bits of data into the FRB-200U/200/100
SAn, then SAn will send the data to the remote RAn.
•
Syntax :
WORD FRB_SendSA(WORD wPort, WORD wSAn,
WORD wOutputData);
•
Parameter :
wPort : [
Input
] Port number (0
Æ
Port 0, 1
Æ
Port 1)
wSAn : [
Input
] SA0 ~ SA7 (0
Æ
SA0,……,7
Æ
SA7)
wOutputData : [
Input
] 16 bits data send to remote RAn from
FRB-100/200 SAn.
•
Return:
Please refer to "Section 6.1 Error Code".
6.4.2
FRB_ ReceiveRA
•
Description :
This subroutine will receive the 16 bits of data sent from remote SAn to
the FRB-200U/200/100 RAn.
•
Syntax :
WORD FRB_ReceiveRA(WORD wPort, WORD wRAn,
WORD *wInputData)
•
Parameter :
wPort :[
Input
] Port number. (0
Æ
Port 0, 1
Æ
Port 1)
wRAn :[
Input
] RA8 ~ RA15. (8
Æ
RA8,……,15
Æ
RA15)
wInputData :[
Output
] 16 bits data sent from remote SAn to
FRB-100/200 RAn.
•
Return:
Please refer to "Section 6.1 Error Code".
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru