EDH0162En1040 – 06/99 3.30
MM4005 CP — Compile program
Usage IMM PGM MIP
Syntax xxCP
Parameters
Description xx
[int] — Program number.
Range xx — 1 to 127.
Units xx
— None.
Defaults xx Missing: Error F.
Out of range: Error F.
Floating point: Error A.
Description This command compiles a motion program loaded in the controller’s mem-
ory. It verifies the syntax of the program, the validity of commands in the
program context and the correctness of the jump and while loops.
If an error is found, the compilation is interrupted and the error type is
reported. In this case, correct the problem and recompile to verify the rest
of the program. Repeat this operation until the controller reports back a
full compilation without error.
If the program editing is done on a remote computer, do not forget to erase
the old version of the program with XX command. Otherwise, the new ver-
sion of the program will be appended to the old one.
A program can be executed without being first compiled with CP. This com-
mand is helpful only in catching typing or structural program errors, but it
does not guarantee that the program is fail-safe.
Returns xxCPaa
xx
— Program number.
aa — ASCII code of the error type. If no error is detected, aa is charac-
ter @.
Errors A — Unknown message code.
F — Program number incorrect.
G — Program does not exist.
See Appendix A for additional list of programming errors.
Rel. Commands EP — Edition of program.
QP — Quit program mode.
Example 3XX | Clear program 3 from memory, if any.
3EP | Activate program mode and enter following commands as program 3.
… |
… |
… |
QP |
End entering program number 3 and quit program mode.
3CP | Compile program number 3.
3CP@
| Controller confirms compilation of program number 3 without any
error.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com