![Trinamic TMCM-170 Скачать руководство пользователя страница 23](http://html1.mh-extra.com/html/trinamic/tmcm-170/tmcm-170_programming-and-reference-manual_1163072023.webp)
TMCM-170 and TMCM-171 MODULE – Reference and Programming Manual
23
Copyright © 2005, TRINAMIC Motion Control GmbH & Co. KG
3.3 Global Parameters
3.3.1 SGP - Set Global Parameter
Description:
Global parameters are related to the host interface, peripherals or application specific
variables. The different groups of these parameters are organized in "banks" to allow a larger total
number for future products. Currently, only bank 0 and 1 are used for global parameters.
Do not set parameters out of the specified range. This may lead to undetermined behavior of the
module and may not be compatible with future firmware revisions!
Mnemonic:
SGP <parameter number>, <bank number>, <value>
Binary representation:
INSTRUCTION NO.
TYPE MOT/BANK VALUE
9
<parameter number>
<motor number>
<value>
Example:
Calibrate the temperature measurement to actually 25°C
Mnemonic:
SGP 255, 0, 25
Binary:
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 $09 $ff
$00
$00 $00 $00 $19 $22
List of Global Parameter Commands:
List of Set Global Parameter Commands:
Type Axis Parameter
Value Range
Description
64
Reset EEPROM
-
Resets EEPROM parameters, becomes active after next
power on
65
RS232 and
RS485 baud rate
Byte
0…8
Change of RS232 and RS485 Baud Rate, reset
afterwards, refer 3.3.1.1, Table 8
66
Serial address
8 bit unsigned
0…255
Set address of module (default=1)
69
CAN bit rate
Byte
1…8
Change of CAN bit rate, reset afterwards,
refer 3.3.1.1, Table 8
70
CAN reply ID
16 bit unsigned
1…2047
The CAN ID for replies from the board (default: 2)
71
CAN module ID
16 bit unsigned
1…2047
The module (target) address for CAN (default: 1)
Set different from the reply address!
75
Telegram pause
time
Byte
0…255
Telegram pause time for RS485 / RS232 interface
(default=0). Sets delay after telegram receipt, until data
becomes sent out (time in ms, 0=immediately).
Important for RS485 interface - set this value to zero for
RS232!
A Windows RS232 to RS485 converter requires a
setting of about 20.
76
Serial host
address
Byte
Set host address for replies to host (default=2) for RS
232 and RS 485