ADVANCED MICRO SYSTEMS, INC. SMC-27X2 SOFTWARE
49
Function Type NV Bytes
Save Parameters to NV Memory Immediate 1
Command
S
Mnemonic
(Name) S
Data 1
None
Data 2
None
Result
None
S (Save)
The following parameters are saved in the NV memory and will be recalled as defaults during power-on reset:
1. NV memory addresses 128 through 191 (shadow RAM)
2. Initial velocity (I)
3. Slew velocity (V)
4. Divide factor (D)
5. Ramp slope (K)
6. Jog speeds (B)
7. Resolution mode (H)
8. Auto power down (E)
9. Limit polarity (l)
10. Name (for party line use)
11. Trip point settings
All of these parameters are saved as a block from the working registers in the SMC-27X2. Frequent use of
this command should be avoided, as memory longevity may be affected.
Function Type NV Bytes
Set and Enable Trip Point Default, Program 4
Command
T
Mnemonic
(Name) T (n)
Data 1
Position (±8,388,607)
Data 2
Address (0-255)
Result
None
T (Trip Point)
During motion operations, the position counter is continuously updated. If the trip point function is
enabled, the position is continuously compared to the programmed trip position. When equality is detected,
a trip event will be triggered. If a program is running, a call or "Go Sub" will be made to the specified address
between 1 and 255.
Programs located at the specified address can perform almost any function, including turning on/off ports
and setting new trip points. A trip point cannot be "reentered" i.e., when executing a trip subroutine and a
new trip is set as part of the routine, the new trip cannot be triggered until the end of the first trip routine.
Routines located between 128 and 192 will execute faster because of the "Shadow RAM" feature. Trip
service routines should not contain index, wait or time consuming instructions.
Disable
To turn off the trip function, use 0 (zero) as the address parameter. The trip is not currently usable in the
encoder mode. The following is an example (all commands are followed by a <CR>):
1. Write program to location 0 (zero).
P0 Enter program mode at address 0.
0 A8 Turn port 4 on.
2 +2000 Rotate motor 2000 steps in the plus direction.
6 P0 Exit program mode.