3 - 10 3 - 10
MELSEC-Q
3 SPECIFICATIONS
3.4 List of Commands and Functions in AD51H-BASIC
The commands in AD51H-BASIC which can be used by the QD51 (-R24) are shown in
the following table.
(For details concerning each command and function, refer to the Programming Manual
(Commands).)
Classification
Command,
Function
Operation
NEW
Deletes programs in the program area and initializes all the variables.
AUTO
Automatically displays line numbers at the beginning of each line.
Program creation
preparations
CLEAR
Initializes all variables and sets up the memory area.
DELETE
Deletes the specified range of a program.
RENUM
Reassigns line numbers of a program.
LIST
Displays all or a part of programs in the program area.
Program
creation,
correction
commands
Program editing
ZBAS
Returns the number of the BASIC task area in which the program currently being
created or executed resides.
Memory
capacity read
function
Reading of the
memory capacity
FRE
Returns the size of the unused program area in bytes.
Starts execution of the program in the program area.
RUN
Reads a program from a memory card, or the FD or HD, and executes it.
Resumes the program execution that was stopped by CTRL + C or BREAK key.
CONT
Resumes the program execution that was stopped by the STOP or END instructions.
Program execution
RESUME
Resumes the program execution after error handling by the ON ERROR GOTO
instruction.
CHAIN
Deletes all or a part of the currently executing program, and reads and executes
the specified program.
FOR to NEXT
Repeatedly executes a series of commands the specified number of times.
In the programming mode, pauses program execution to wait for command input.
STOP
In the run mode, stops program execution and puts the module into an idle state.
In the programming mode, terminates program execution to wait for command
input.
END
In the run mode, terminates program execution and puts the module into an idle
state.
Program control
WHILE to WEND
Repeatedly executes a group of commands between WHILE and WEND while the
specified conditions are met.
GOTO
Changes the program flow to move to the specified line unconditionally.
GOSUB to
RETURN
Branches to a subroutine and returns to the line of the specified line number.
ON GOTO
Branches to one of the lines specified with line numbers according to the value.
ON GOSUB
Branches to one of the lines specified with the line numbers according to the value.
IF GOTO ELSE
Program
execution,
control
commands
Program branching
IF THEN ELSE
Selects the branch destination according to the result of the formula calculation.
TRON
Starts program tracing.
Program
debugging
command
Program
debugging
TROFF
Resets the program tracing set by TRON.
CDBI
Converts a double precision real number to a 2-word (32-bit) integer for
programmable controller CPUs.
Format
conversion
command
Format conversion
CSNI
Converts a single precision real number to a 2-word (32-bit) integer for
programmable controller CPUs.
(Continued from the previous page)
Summary of Contents for QD51
Page 1: ......
Page 2: ......
Page 154: ...App 7 App 7 MELSEC Q APPENDIX MEMO ...
Page 159: ......
Page 160: ......