ADVANCED MICRO SYSTEMS, INC.SERIAL INTERFACE
Edit Program
Example: It is desired to change instruction number 21 from 500 steps to 5,000 steps:
Enter | Remark |
P21<CR> | Edit instruction 21. |
R5000 | Move 5,000 steps in the “+” direction, relative to Origin. |
“ESCape” | Terminates Edit mode. |
Note: Caution should be exercised when making Program Edits in dumb terminal mode due to variations in command byte length that may effect subsequent command address locations and possible corruption of
Party Line and Daisy Chain Line Commands
Note: If a
The SMC series controllers incorporate a buffered UART input, capable of receiving and holding ONE character at a time. The controller must read this character before another one is received; otherwise the UART will be
The handshake method used is a simple “echo” of the received character. The host computer MUST ALWAYS wait for the echo.
Fixes such as insertion of delays between characters may seem to work but will ultimately fail. Beware that many PLC manufacturers do not provide the serial software flexibility required for your application to make the proper communication.
(The
Some Rules
1.The first character of a command MUST be the “name” character assigned to the axis.
2.The command line terminator MUST be a Line Feed character.
3.The name must be preceded by an LF (presumably the terminator for the previous command), i.e., <LF>“n” xxxxxxx <LF>.
Note: An LF can be generated using a
The first Line Feed “resets” the command buffer for all axes. The controller then tests the character immediately following a Line Feed. If this character matches the assigned “name,” the axis will interpret the following characters (up to 12) as an input command. If the axis does NOT detect a proper name and command, then the data is simply echoed back to the terminal. The designated controller re
If the command is of the type that results in a data output (such as “Z”), then the data (result) will be inserted before the Line Feed. The Line Feed does NOT indicate that a move or other time consuming command is finished but only initiated. The terminal can interrogate the motion status using the appropriate command to determine if a function is complete. Editing features are NOT supported in daisy chain or party line operation.
Note: the commands “Control C” and “ESCape” do NOT require the use of, and will NOT be qualified by, a “name” prefix. All devices will respond.
2 5