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 151
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 148 If a reset occurs while no program is running, the program present in memory at the default value of PBOT will be executed. This is similar to typing RUN, except that program variables will not be reset. (c) Program running at moment of reset If a reset occurs while a program is running, program execution will halt and the error message RESET/START at line ... will be given This error...
Page 152
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 149
Page 153
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 150 ON RING RING event handler The RING event lets you know when a call comes in, allowing your program time to do whatever you want it to before answering. Try entering these 3 lines: 10 ON RING SOUND 2000,100 20 REPEAT UNTIL FALSE RUN If you now disconnect your phone from your modem, and dial the number of your line from another location, your modem will RING for you! Detecting an...
Page 154
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 151 ON SEQUENCE Esc. sequence event handler The escape sequence event allows you to interrupt whatever the modem is doing by use of an escape sequence. This event will only occur if the escape sequence is also enabled by SEQUENCE ON. The modem S-registers S2 and S12 also influence the escape sequence. When an escape sequence has occurred, you can read the port number where it happened...
Page 155
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 152 ON SLASH AT scan event handler ON SLASH is used to react to the character string A/ typed at one of the serial ports and works simular to the ON AT event. The ON SLASH event will only happen if A/ is detected on a port which has been previously set to A/-scan using the command AT SLASH. When the ON SLASH event occurs, the port number of the port which received the A/ can be found in...
Page 156
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 153 ON TIMEOUT timeout event handler ON TIMEOUT can be used to execute a particular sequence of commands at regular time intervals, and therefore provides the basis for carrying out background tasks. A single numeric parameter is used to specify the time interval in seconds from 1 to 65535. When executed, the timer will count down until the value is 0, and then reset to the original...
Page 157
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 154 ON TIMEOUT [integer] ... TIMEOUT END ON TIMEOUT OFF TIMEOUT OFF
Page 158
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 155 OPORT default output port OPORT is a system variable that defines the default output port number(s). The following commands will use the port(s) defined by OPORT if no port is specified in the command itself: ACTIVE DSR OUTPUT REPORT BAUD ESCAPE PARITY SBITS CLEAR INPUT HANDSHAKE PRINT SEND CLEAR OUTPUT INPUT PUT XOFF CTS LENGTH PUT$ XON DIR LINK RECEIVE OPORT differs from IPORT in...
Page 159
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 156 PRINT OPORT Syntax: OPORT = [integer 0..255] [num-var] = OPORT See also: IPORT
Page 160
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 157 ORI output ring indicator RI is the RS232 signal used by modems to indicate that an incoming ring has been detected; i.e. that a call has been received. RI is also an output from the modem on the RS232 ports. There is of course only one RI for both serial ports, because a modem can either receive a ring or not receive a ring. The RING output is controlled by the internal...