Omron SYSMAC C200H-ASC02 Operation Manual page 41

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

BASIC Language
SAVE Command
TRON and TROFF Commands
VERIFY Command
Format:
RUN [<line>]
<line> is any line number less than 63999.
Remarks:
If a line number is specified, execution begins from that line. If the line num-
ber is omitted, execution starts from the first line of the program.
The RUN command clears all variables and closes all open files before ex-
ecuting the designated program.
Program execution can be aborted with CTRL+X, or the START/STOP
switch. Program execution can also be aborted from within the program by
an END or STOP statement.
Purpose:
To write the program area to the EEPROM
Format:
SAVE
Remarks:
The contents of the BASIC program area and the assembly language pro-
gram area reserved with the MSET command are written to the EEPROM.
If the START/STOP switch is pressed during execution of the SAVE com-
mand, the process will be aborted.
Purpose:
To write a program in the current program area to a storage de-
vice connected to one of the ports.
Format:
SAVE #<port>,"COMU:[(<valid signal line>)]"
<port> is one of the two ports (1,2).
<valid signal line>: refer to the OPEN statement tables.
Example:
SAVE #1,"COMU:(43)"
Remarks:
When this command is executed, the BASIC LED indicator on the ASCII Unit
will blink rapidly warning the user to prepare the peripheral device for data
transfer. When the device is set, press the START/STOP switch.
During execution of this command the START/STOP switch and key input
through port 1 are inhibited.
For further details on COMU refer to the OPEN command.
Purpose:
To trace execution of a program
Format:
TRON
Remarks:
The TRON command is a debugging tool that enables the programmer to
follow the execution of a program line by line. Execution of the TRON com-
mand will cause the line numbers of subsequent program statements to be
displayed on the screen as they are executed.
The trace can be canceled with the TROFF command, the NEW command,
by turning off the power or with the RESET switch.
Purpose:
To verify the contents of the EEPROM by comparing them to the
contents of the program area
Section 4-2
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents