
TMCM-142 TMCL
TM
Firmware Manual (V1.06 / 2014-JUN-24)
29
Copyright © 2009, TRINAMIC Motion Control GmbH & Co. KG
6.7.5
SAP (set axis parameter)
With this command most of the motion control parameters of the module 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 ignoring leading zeros (or ones for negative values).
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>
0
*
<value>
*motor number is always O as only one motor is involved
Reply in direct mode:
STATUS
VALUE
100 – OK
(don't care)
Axis parameters, which can be used for SAP:
Please note, that for the binary representation <parameter number> has to be filled with the
number
and the <value> has to be filled with a value from
range
.
Number Axis parameter
Description
Range [Unit]
0
Target position
-2147483648 …
+2147483647
[µsteps]
1
Actual position
-2147483648 …
+2147483647
[µsteps]
2
Target speed
-2147483648 …
+2147483647
[µsteps/t]
3
Actual speed
-2147483648 …
+2147483647
[µsteps/t]
4
Max. positioning speed
Speed used for positioning (MVP
commands).
0…2147483647
[µsteps/t]
5
Max. acceleration and
deceleration
Sets acceleration and deceleration
to the same value.
1…16777215
[µsteps/t
2
]
6
Max. current
Current when motor is running. 0
means 0%, 15 means 100% of the
maximum possible current.
0…15
7
Standby current
Current when motor is standing. 0
means 0%, 15 means 100% of the
maximum possible current.
0…15
12
Right limit switch disable
Deactivates the function of the
right limit switch when set to 1.
0/1
13
Left limit switch disable
Deactivates the function of the left
limit switch when set to 1.
0/1