home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxcp290.zip
/
smalltst.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-01-30
|
1KB
|
26 lines
/* Small Rexx Program to Demo RXCP290 */
/* This small program Loads the RXCP290 Functions, opens COM2 for comms to */
/* the CP290, turns on Module D4, receives the acknowledgement from the CP290 */
/* closes the comport, and Drops the RxCP290 Functions. */
call RxFuncAdd 'RxLoadFuncsCP290', 'RxCP290', 'RxLoadFuncsCP290'
call RxLoadFuncsCP290 /* Load RxCP290 Routines */
CP290 = '' /* Initialize Com Port Handle Var */
rc = RxInitCP290('COM2', 'CP290') /* Initialize Com Port */
rc = RxDirCmdCP290(CP290, 8, "ON" ,"D", 4) /* Issue a direct command */
do while rc < 5
rc = RxCmdUploadCP290(CP290, 'result') /* Get the Report upon completion */
end
rc = RxCloseCP290(CP290) /* Close Communications */
call RxDropFuncsCP290 /* Drop RXCP290 Functions */