AMS DCB-274 Computer Hardware User Manual


 
ADVANCED MICRO SYSTEMS, INC. SMC-27X2 SOFTWARE
57
Function Type NV Bytes
Terminate Program Immediate 2
Command
Mnemonic
(Name)
Data 1
Data 2
Result
Status
Byte
| (Selective Termination)
This command (pipend: vertical dash key-Shift \) can be placed at a point to terminate (equivalent to
ABORT) the program that was started via the "G" command or hardware GO input. The Terminate command
may be used to individually "ABORT" a single axis in multiple axis systems, when the global "ESC"
command is not appropriate.
Program Example
P 0
0 O Set Origin To Zero
1 I 400 Initial SPS
4 T 1000 128 Set a Trip
9 M 5000 Start Motion
12 I 1000 Change Initial SPS
15 V 1000 Slew
18 G 18 Wait
21 P 0 End Program Flag
P 128 Trip Routine Start
128 +2000 Decelerate and Index
133 W 0 Wait
136 Z Show Position
138 (axis name) Abort Program (where “axis name” is the selected axis to
terminate)
140 P 0 End Program Flag
S Save Code at 128
Issue "GO": The sequence will complete and show the position that the number of extra steps is due to
(decelerate) ramp plus a few steps of overhead. The overstep difference is repeatable.
Function Type NV Bytes
Name Controller None N/A
Command
^N
Mnemonic
^N
Data 1
None
Data 2
None
Result
None
^N (Name Axis)
Response to the single character “Ctrl N“ (14 decimal, 0E hex) is immediate.
This command must be executed with one axis attached, otherwise a bus conflict will occur and all axes may
receive the same name. On entry of the “Ctrl N” the controller responds with “name?” Type the desired
name, the character will be stored in NV memory and the DCB-274 is ready to enter party line mode.