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 61
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 58 DIAL dial number This command will dial a number for you. It is the same as ATD in modem mode, and is provided mainly to make your program easier to read. After the command DIAL, the system variable RESULT can be read to determine the status of the modem (BUSY, NO ANSWER, CONNECT, etc.). When a successful modem connection is made, DCD#3 will be set. This can also be detected with...
Page 62
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 59 DIM reserve space for arrays DIM (short for dimension), is used to reserve space for single dimension arrays of integers or strings. The maximum number of elements allowed in integer arrays is theoretically 32767, but is in practice limited by the amount of memory available for variables after the program has been loaded. The limitation of a maximum string length of 254 bytes still...
Page 63
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 60 DIR list file directory The DIR command is used in its various forms to list and inform you about the contents of the RAM-disk. Because of the need to retain compatibility with earlier versions of Argus BASIC, DIR might be followed by FILE or !. This is optional however, and thus will not normally be used. The DIR command will list files stored in the RAM-disk. The format and level...
Page 64
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 61 There are four possible file types: B : BASIC program T : Text file; created by RECEIVE ...,T X : binary file created by RECEIVE ...,X (X-MODEM or Y-MODEM) The directory command lists files in date order, oldest first, and prints the number of free blocks remaining at the end of the list (not with DIR,N). The command DIR, B is used to list the contents of the information block...
Page 65
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 62 DIR ROM list ROM directory The DIR ROM command is used to access the ROM or RAM disk in socket 2. The command is used in its various forms the same as listed in the DIR command. However, to access a RAM disk in socket 2, the command CLEAR ROM must be entered first. See also: DIR, ROM
Page 66
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 63 DIV integer divide The DIV command is used to carry out integer division operations. As the modem does not support real numbers, DIV is exactly equivalent to division using the / operator. Examples: Result=XDIV5 Q1 = (Q2*4) DIV (Q3+2) Syntax: [num-var] = [integer] DIV [integer] See also: MOD
Page 67
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 64 DSR Data Set Ready DSR is an RS232 signal used by modems to indicate that they are powered-up and ready to transfer data. DSR will be active dependant on the setting with the modem command &S. The signal is an output to the modem. The DSR command is used to set or read the status of the DSR line on the specified port. When used for reading it returns TRUE if DSR is active, and FALSE...
Page 68
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 65 DTMF ON/OFF dial tone multiple frequency DTMF ON turns on the DTMF receiver. Reading the first DTMF value and the command VOICE will also turn it on. Therefore, use of the command, is optional. DTMF OFF turns off the DTMF receiver. In most cases, the modem has 2 DTMF receivers build in. They can be selected with S-register 23 bit6 as follows: SREG23=SREG23 AND &BF: Select External...
Page 69
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 66 [var] = DTMF read DTMF receiver Reading this function will return 0 or an ASCII number. When it is used for the first time, it will also turn on the DTMF receiver. Values: 0 = No DTMF detected 48 = 0 detected 49 = 1 detected 50 = 2 detected 51 = 3 detected 52 = 4 detected 53 = 5 detected 54 = 6 detected 55 = 7 detected 56 = 8 detected 57 = 9...
Page 70
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 67 DTR Data Terminal Ready DTR is the RS232 signal used by data terminals - also (host-) computers - to indicate that they are powered up and ready to transfer data. The modem will automatically control the response to DTR according to the instructions given with the modem command &D. The DTR function is used to read the status of this signal on the specified port. If no port is...