Vidicode Argus Basic Programmers Reference Manual
Here you can view all the pages of manual Vidicode Argus Basic Programmers Reference Manual. The Vidicode manuals for Communications System are available online for free. You can easily download all the documents as PDF.
Page 91
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 88 GET get byte (with wait) GET is used to obtain the next byte from the specified input buffer, and returns an integer between 0 and 255. Program execution is suspended until data becomes available. If no port is specified, the default input port as defined by IPORT is assumed. Examples: Code=GET Char=GET#1 REPEAT UNTIL GET=13 PRINT GET#2 Syntax: [num-var] = GET ( #[port] ) See also:...
Page 92
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 89 GET$ get character (with wait) GET$ is used to obtain the next character from the specified input buffer, and returns a 1-character string. Program execution is suspended until data becomes available. If no port is specified, the default input port as defined by IPORT is assumed. Examples: Ch$=GET$ A$=GET#2 REPEAT UNTIL GET$#2=Y PRINT GET$#4 Syntax: [string-var] = GET$ ( #[port] )...
Page 93
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 90 GOSUB ... RETURN jump to subroutine The GOSUB command causes program execution to branch to the specified line number or label. Execution proceeds from this line until a RETURN command is encountered, at which point execution resumes at the command immediately following the GOSUB. The section of code executed by the GOSUB is referred to as a subroutine, and may be executed any number...
Page 94
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 91 See also: ON GOSUB
Page 95
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 92 GOTO unconditional jump GOTO causes an unconditional branch to the specified line number or label. Examples: GOTO 70 GOTO %Check_Password Syntax: GOTO [line-num | label] See also: ON ... GOTO, GOSUB
Page 96
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 93 HANDSHAKE select/enable handshaking HANDSHAKE is used to select the action taken when an input buffer is almost overflowing during receipt of data. Correct selection of the type of handshaking to be used is necessary to avoid loss of data. Each port on the modem has a 256-byte input buffer. When characters are received at a higher speed than they can be processed, the input buffer...
Page 97
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 94 The handshake of the input ports has to be set with the HANDSHAKE command. This is normally HANDSHAKE RTS. When the data stream on a linked port is not to be monitored by a program, then the command HANDSHAKE LINK OFF should be used. The HANDSHAKE command may specify one or more port numbers, but if these are omitted, the default port as defined by OPORT will be assumed. After the...
Page 98
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 95 HANGUP disconnect a call HANGUP is used to terminate a call and is identical to the command HOOK ON and the modem command AT H0. The command itself will not cause an ON HANGUP event. HANGUP will also put the modem-chip in sleep-mode, if bit6 in S-register 64 is set (see RESET MODEM 2). Examples: HANGUP MATCH#3 ABC , 10 : IF MATCH HANGUP Syntax: HANGUP See also: ANSWER, CONNECT, ON...
Page 99
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 96 HOOK hook control HOOK is used to control the modem relay that puts your modem on-line. HOOK OFF is the same as the modem command ATH1. HOOK ON is the same as the command HANGUP and the the modem command ATH0. HOOK on its own can be used to toggle between the two states of the relay. Examples: HOOK HOOK OFF HOOK ON Syntax: HOOK (ON|OFF)
Page 100
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 97 HOUR read/set hour of day HOUR is used to read or set the hour of day on the internal clock/calendar. The clock uses the 24 hour system, so that when reading, HOUR will return an integer from 0 to 23. Similarly, when setting, the hour number from 1 to 23 must be specified; an incorrect value will cause the current setting to remain unchanged. Examples: HOUR=14 IF HOUR > 12 THEN...