ADVANCED MICRO SYSTEMS, INC. | ||||||
|
|
|
|
|
| |
Command | Function |
| Type |
| NV Bytes | |
O | Set Origin |
| Immediate, Program | 4 | ||
|
|
|
|
| ||
Mnemonic | Data 1 | Data 2 | Result | |||
| ||||||
| (Name) O | Position (±8,388,607) | None | None |
O (Set Origin)
This command sets the internal
This command may be implemented within a program. It is very useful when used in conjunction with the
Find Home and Relative Positioning commands. Following, is an example: |
| ||||||
P 0 |
| Enter program mode. |
|
|
|
| |
F 1000 1 Find the Home switch in the “1” direction at a step rate of 1000 SPS. |
| ||||||
O |
| Set origin and counter to 0. |
|
| |||
R 1000 | Move to position 1000 relative to 0. |
|
| ||||
P |
| Exit program mode. |
|
|
|
| |
|
|
|
|
|
|
| |
Command | Function |
| Type |
| NV Bytes | ||
P | Program Mode On/Off |
| Immediate |
| N/A | ||
|
|
|
|
|
|
| |
Mnemonic |
| Data 1 | Data 2 | Result | |||
|
| ||||||
| (Name) P (a) |
| Address | None | None, # |
P (Program Mode)
The P command is always used in pairs. The first “P” initiates the program mode at the specified address. Once in this mode all commands and data are directed into the NV memory for future execution. Entering the second “P” command will terminate the PROGRAM mode, and then insert an end of program marker (0FFh) in the stored program. The controller will then return to the COMMAND mode.
The program mode may also be terminated with the ESCape character, causing immediate return to the COMMAND mode without inserting the end of program marker. This is useful for editing sections of the program, without requiring that all commands be re
More than one program may exist at different addresses. These commands can than be executed via the “G (address)” command. There are special address ranges that are assigned to various functions:
Address | Function |
|
|
Fast “shadow” RAM | |
“G 2048” command | |
1600 |
4 7