GE GFK-0804B Universal Remote User Manual


 
B
B-12 Micro PLC Programmer’s Guide – Aptil 1994
GFK-0804B
IBM Compiler BASIC
Function : Read Register
Call : int BASRreg (port%, memtype%, addr%, count%, buf%(0),
status%);
Inputs : int port; /* 0–COM1, 1–COM2 */
int memtype; /* 0–IR, 1–OR, 2–R */
int addr; /* Adrs. of the 1st register to read */
int count; /* Number of words to read */
Return : int *buf; /* Data read */
int status; /* Error status–0: Normal */
Function : Write Register
Call : int BASWreg (port%, memtype%, addr%, count%, buf%(0),
status%);
Inputs : int port; /* 0–COM1, 1–COM2 */
int memtype; /* 1–OR, 2–R */
int addr; /* Adrs. of the 1st register to write */
int count; /* Number of words to write */
: int *buf; /* Data to write */
Return int status; /* Error status–0: Normal */
Function : Read Bit
Call : int BASRbit (port%, memtype%, addr%, count%, buf$,
status%);
Inputs : int port; /* 0–COM1, 1–COM2 */
int memtype; /* 0–DI, 1–DO, 4–C */
int addr; /* Adrs. of the 1st discrete to read */
int count; /* Number of bits to read */
Return : char *buf; /* Data read */
int status; /* Error status–0: Normal */
Function : Write Bit
Call : int BASWbit) (port%, memtype%, addr%, count%, buf$,
status%);
Inputs : int port; /* 0–COM1, 1–COM2 */
int memtype; /* 1–DO, 4–C */
int addr; /* Adrs. of the 1st discrete to write */
int count; /* Number of bits to write */
char *buf; /* Data to write */
Return int status; /* Error status–0: Normal */