User guide
11/25/96
➆
6270 Programming Tips
85
Translation
Mode
If you need to determine the memory required for each command, you can use the Translation
Mode.
While in the translation mode (enabled with the TRANS1 command), you simply type in the
command in question and the 6250 responds with a hexadecimal number. The first byte (first
two characters) of the response is the command's memory requirement. The remaining
characters are merely a binary version of the command and can be ignored. To disable the
translation mode, type in the TRANSØ command.
If an invalid 6000 Series command is entered in the translation mode, the 6250 will return the
hexadecimal ASCII representation of each ASCII character entered.
Example
To determine the memory required for the command for entering a distance of 80,000 and 16,000
to axes 1 and 2, respectively, use the following procedure:
➀ Enable the translation mode with the TRANS1 command.
➁ Type in the D8ØØØØ,16ØØØ command.
➂ The terminal displays: ØB Ø4 ØØ ØØ Ø1 38 8Ø ØØ ØØ 3E 8Ø. ØB is the command's
memory requirement of 11 bytes. The rest of the characters can be ignored.
Program Security
Issuing the INFNCi-Q command enables the Program Security feature and assigns the
Program Access function to the specified programmable input.
☞
The INFNCi-Q
command is not saved
in battery-backed RAM,
so you may want to put
it in the start-up
program (STARTP).
The program security feature denies you access to the DEF, DEL, ERASE, MEMORY, and
INFNC commands until you activate the program access input. Being denied access to these
commands effectively restricts altering the user memory allocation. If you try to use these
commands when program security is active (program access input is not activated), you will
receive the error message *ACCESS DENIED.
For example, once you issue the INFNC22-Q command, input #22 is assigned the program
access function and access to the DEF, DEL, ERASE, MEMORY, and INFNC commands will be
denied until you activate input #22.
Automatic Program Execution
A program can be run automatically after the 6250 is powered-up or reset. Any program may
be identified as the power-up start program with the STARTP command. This STARTP
program is commonly the base program for operating the 6250 in a stand-alone fashion.
Example
Command Description
> DEF pwrup Defines program pwrup
- TREV Report software revision
- END End of program pwrup
> STARTP pwrup Defines program pwrup as the power-up program
> RESET Reset the 6250
*NO REMOTE PANEL
*PARKER COMPUMOTOR 6250 - 2 AXIS SERVO CONTROLLER
*TREV92-013471-01-1.0 6250 Result of the pwrup program being run
automatically after reset
>
If the program that is identified as the STARTP program is deleted by the DEL command, the
STARTP is automatically cleared. To prevent the startup program from executing, without
having to delete the program, enter the STARTP CLR command.
Controlling Execution of Programs and the Command Buffer
The 6250 command buffer is capable of storing 2000 characters waiting to be processed. (This
is separate from the memory allocated for program storage—see Stored Programs and Non-
volatile Memory described earlier.) COMEXC affects command execution. Three additional
commands, COMEXL, COMEXR, and COMEXS, affect the execution of programs and the
command buffer.
COMEXC
The COMEXC command enables the continuous command execution mode. This mode allows
the program to continue to the next command before motion has been completed. This is useful
for monitoring other processes while motion is occurring, or for performing calculations in
advance of motion completion.