P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 669 of 909
RCKS
Report Checksum
APPLICATION:
Program access
DESCRIPTION:
Reports the program checksum
EXECUTION:
Immediate
CONDITIONAL TO:
User program downloaded.
LIMITATIONS:
No CKS or x=CKS form of this command
READ/REPORT:
RCKS
WRITE:
Read only
LANGUAGE ACCESS:
N/A
UNITS:
N/A
RANGE OF VALUES:
ASCII alphanumeric string, see description
TYPICAL VALUES:
N/A
DEFAULT VALUE:
000000 0000E1 P ("END" program)
FIRMWARE VERSION:
5.x and later
COMBITRONIC:
N/A
DETAILED DESCRIPTION:
The RCKS command reports the program checksum. Typically, this is automatically used by
the SMI software to verify the integrity of the program that is being downloaded. For
example, if the download process is interrupted and only part of the program is loaded, then
the RCKS value will not match the value expected by the host.
When the user program is erased with the "Clear EEPROM" feature of SMI (technically, a
simple program with an END command is loaded), then the returned value from RCKS is:
000000 0000E1 P
The first group of six hex digits are related to program labels. For example, C100 is a target
for GOSUB. The second group of six hex digits are the program itself. The last character is
either P or F, representing pass or fail, respectively.
NOTE:
There is no CKS or x=CKS form of the command, as this command is not
meant for use in a user program. Typically, only SMI or other serial hosts would
use this command to verify download of the user program to the motor.
EXAMPLE:
(Commanded from the terminal window)
RCKS
The command reports:
000000 0000E1 P
RELATED COMMANDS:
R
Bit, Program EEPROM Data Status (see page 310)
Part 2: Commands: RCKS