DMC-1400 Series Command Reference REM 171
REM
FUNCTION: Remark
DESCRIPTION:
REM is used for comments. The REM statement is NOT a controller command. Rather, it is
recognized by Galil PC software, which strips away the REM lines before downloading
the DMC file to the controller. REM differs from NO (or ‘) in the following ways:
(1) NO comments are downloaded to the controller and REM comments aren’t
(2) NO comments take up execution time and REM comments don’t; therefore, REM should
be used for code that needs to run fast.
(3) REM comments cannot be recovered when uploading a program but NO comments are
recovered. Thus the uploaded program is less readable with REM.
(4) NO comments take up program line space and REM lines don’t.
(5) REM comments must be the first and only thing on a line, whereas NO can be used to
place comments to the right of code on the same line.
NO (or ‘) should be used instead of REM unless speed or program space is an issue.
ARGUMENTS: REM n where

n is a text string comment

USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line No
Controller Usage ALL
RELATED COMMANDS:
NO (or ‘) No operation (comment)
EXAMPLES:
REM This comment will be stripped when downloaded to the controller
'This comment will be downloaded and takes some execution time
PRX=1000 ;'this comment is to the right of the code