TMCM-1310 TMCL Firmware V1.11 Manual (Rev. 1.16 / 2014-MAR-19)
27
www.trinamic.com
6.8.5
SAP (set axis parameter)
With this command most of the motion control parameters can be specified. The settings will be stored in
SRAM and therefore are volatile. That is, information will be lost after power off.
Please use command
STAP (store axis parameter) in order to store any setting permanently.
Internal function:
the parameter format is converted. The parameter is transferred to the correct position
in the appropriate device.
Related commands:
GAP, STAP, RSAP, AAP
Mnemonic:
SAP <parameter number>, 0, <value>
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
5
<parameter number>
<motor>
0
*
<value>
* Motor number is always O as only one motor is involved
Reply in direct mode:
STATUS
VALUE
100 – OK
don’t care
For a table with parameters and values which can be used together with this command please refer to
chapter 7.
Example:
Set the absolute maximum current of the motor during movements to approx. 78% of max.
module current:
Mnemonic:
SAP 6, 0, 200
Binary:
Byte Index
0
1
2
3
4
5
6
7
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Value (hex)
$01
$05
$06
$00
$00
$00
$00
$c8