Reference Manual
PMAC 2 Software Reference
204 PMAC On-Line Command Specification
CHECKSUM
Function
Report the firmware checksum value.
Scope
Global
Syntax
CHECKSUM
CHKS
Remarks
This command causes PMAC to report the reference checksum value of the firmware
revision that it is using. The value is reported as a hexadecimal ASCII string. This value was
computed during the compilation of the firmware. It is mainly used for troubleshooting
purposes.
The comparative checksum value that PMAC is continually computing by scanning the
firmware in active memory is stored in X:$0794. As long as there is no checksum error, this
comparative value is continually changing as PMAC continues its calculations. However, if
during any pass of the checksum calculations, if the final comparative checksum value does
not agree with the reference value, the calculations stop, and the final erroneous value is held
in X:$0794.
Example
CHECKSUM ; Request firmware reference checksum value
9FA263 ; PMAC returns hex value
See Also
On-line commands DATE, VERSION
CLEAR
Function
Erase currently opened buffer.
Scope
Global (Coordinate-system specific for rotary motion program buffers)
Syntax
CLEAR
CLR
Remarks
This command empties the currently opened program, PLC, rotary, etc. buffer Typically, as
you create a buffer file in your host computer, you will start with the OPEN {buffer} and
CLEAR commands (even though these lines are technically not part of the buffer), and follow
with your actual contents. This will allow you to easily edit buffers from your host and
repeatedly download the buffers, erasing the old buffer’s contents in the process.
Example
OPEN PROG 1. ; Open motion program buffer 1
CLEAR ............... ; Clear out this buffer
F1000 ............... ; Program really starts here!
X2500 ............... ;...and ends on this line!
CLOSE ............... ; This closes the program buffer
OPEN PLC 3 CLEAR CLOSE ; This erases PLC 3
See Also
Program Buffers (Talking to PMAC)
On-line commands OPEN, CLOSE, DELETE.