
Chapter 11 Flow Control Statements
11-23
11.6 Comment
REM (Statement)[Conforms to SLIM]
Function
Describes a comment.
Format
{REM|'}[<Comment>]
Explanation
This statement is added when <Comment> is described in a program.
A character string after REM does not affect program execution.
A single quote (') can be used instead of REM.
Example
REM Executes a plural condition decision.
SELECT CASE Index
'The command is executed when the index value matches the CASE
'statement value.
CASE 0 'When the index is 0.
STOP 'Ends the program.
CASE 1 'When the index is 1.
HALT “STOP” 'Suspends the execution of the program.
CASE 2 'When the index is 2.
HOLD “STOP” 'Suspends the execution of the program.
CASE 3 'When the index is 3.
STOPEND
'Stops a continuous program or stops the program after a cycle.
CASE 4 'When the index is 4.
END 'Declares the end of motion by the program.
END SELECT 'Declares the end of a plural condition decision statemen
Comentários a estes Manuais