![Trinamic PD57-1060 Скачать руководство пользователя страница 79](http://html1.mh-extra.com/html/trinamic/pd57-1060/pd57-1060_firmware-manual_1163104079.webp)
PD57/60-1060 / TMCM-1060 TMCL™ Firmware Manual (V1.04 / 2011-AUG-29)
79
Copyright © 2011, TRINAMIC Motion Control GmbH & Co. KG
Number Axis Parameter
Description
193
ref. search mode
1 search left stop switch only
2 search right stop switch, then search
left stop switch
3 search right stop switch, then search
left stop switch from both sides
4 search left stop switch from both sides
5 search home switch in negative
direction, reverse the direction when
left stop switch reached
6 search home switch in positive
direction, reverse the direction when
right stop switch reached
7 search home switch in positive
direction, ignore end switches
8 search home switch in negative
direction, ignore end switches
Adding 128 to these values reverses the
polarity of the home switch input.
194
ref. search speed Speed for searching the switch roughly
195
ref. switch speed Speed for exact search of the switch
204
freewheeling
Time after which the power to the motor will
be cut when its velocity has reached zero.
209
encoder position The value of an encoder register can be read
out or written.
210
encoder prescaler Prescaler for the encoder.
212
maximum
encoder
deviation
When the actual position (parameter 1) and
the encoder position (parameter 209) differ
more than set here the motor will be
stopped. This function is switched off when
the maximum deviation is set to zero.
214
power down
delay
Standstill period before the current is changed
down to standby current. The standard value
is 200 (value equates 2000msec).
254
step/dir
0 normal mode (move motor using
TMCL™ commands)
1 step/direction mode (move motor via
step/direction inputs)
Example:
Positioning motor by a potentiometer connected to the analogue input #0:
Start: GIO 0,1
// get value of analogue input line 0
CALC MUL, 4
// multiply by 4
AAP 0,0
// transfer result to target position of motor 0
JA Start
// jump back to start
Binary format of the AAP 0,0 command:
Byte Index
0
1
2
3
4
5
6
7
8
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Checksum
Value (hex)
$01
$22
$00
$00
$00
$00
$00
$00
$23