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 231
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 228 SEQUENCE select escape sequence The escape sequence is part of the Hayes compatible aspect of modem operation. It is explained in more detail in the Modem User Guide, and also with the sequence event handler ON SEQUENCE. The possibility of an escape sequence occurring can be enabled with SEQUENCE ON; disabled with SEQUENCE OFF. The escape sequence character can be set with...
Page 232
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 229 SGN get sign of number SGN is used to determine the sign of a number and returns three possible values, depending on whether the test value is negative, zero or positive. The following apply: SGN 56 returns 1 SGN 0 returns 0 SGN -45 returns -1 Examples: Dif=SGN(X1-X2) X=SGN(y) Syntax: [num-var] = SGN [integer] See also: ABS
Page 233
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 230 SOUND (MODEM) make a sound SOUND has two optional parameters frequency and duration, set in hundredths of a second. If the parameters are left out, then 2000 Hz and 250 ms are taken by default. The command SOUND, without MODEM behind, will produce a sound on the speaker only, by toggling the speaker-mute-bit (see VOICE) with the desired frequency. The command SOUND MODEM will...
Page 234
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 231 SPC$ repeat spaces The SPC$ string function produces a string containing the specified number of ASCII Space characters. Examples: Title$=Name=SPC$(10)+Age+SPC$(5)+Sex PRINT Port number+SPC$(20)+VAL$(port) Syntax: [string-var]=SPC$[integer 0..255] See also: RPT$
Page 235
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 232 SPEAKER ON/OFF speaker control The SPEAKER command is used to enable or disable the modems internal loudspeaker. Same as AT M2/0. If a headset is connected to the Argus, the SPEAKER OFF command disables the headset as well and is therefor not suitable to control the speaker while the headset is active. In that case the speaker-mute-bit must be set or cleared with POKE (see VOICE)....
Page 236
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 233 SPEED [number] line speed select This command is used to set S-register 51 within the programming environment. Same as AT S51=x or SREG51=[num]. SPEED is used when connecting as a modem or fax. After connection, S-register 50 (bits0-5) is set to the connected speed as listed below: 1 = 1200 (V22) 38 = 28800 (Vfast) 2 = 2400 (V22bis) 39 = 26400 (Vfast) 3 = 300 (V21) 40 =...
Page 237
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 234 SPEED BUFFER ON/OFF speed buffer on/off The command is another way to set S-register 52 within the programming environment. Same as AT S52=1/0 or SREG52=1/0. When speed buffering is enabled (default), there is no relationship between the modem-speed on the line and the speed at the serial ports of the modem. The ports will only change their speed when AT is entered at a new baud...
Page 238
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 235 SREG set/read S-registers SREG is used as another way to set or read the 80 available S-registers that the modem keeps in memory. These registers are holding various types of parameters which are used by the modem operating system for all sorts of purposes. Most of them are mentioned throughout this manual. For further information, see the Modem User Guide. This way of manipulating...
Page 239
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 236 STOP halt program execution STOP terminates program execution, and is most often used during program debugging to temporarily halt a program so that variables can be examined. Execution may be restarted by entering a GOTO command for the line following the line containing the STOP command. A special command to control the STOP button is: STOP ON/OFF With STOP ON, the button will...
Page 240
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 237 TIME$ read or set time TIME$ is used to read the current time as a string or to set the clock. The string has the format hh:mm:ss (hour, minutes, seconds) for input as well as for output. Examples: TIME$ = 14:20:00 Tstamp$ = TIME$ Syntax: TIME$ = [string] [string-var] = TIME$ See also: DATE$