Trinamic 11-0011 TMCM-171 BLDC Output For 3-phase BLDC Motors 11-0011 Data Sheet

Product codes
11-0011
Page of 134
 
TMCL Reference Manual 
10 
 
 
 
Trinamic Motion Control GmbH & Co KG 
Sternstraße 67 
D – 20357 Hamburg, Germany 
http://www.trinamic.com 
 
So, after sending AGAP 0, 1 the reply would be BA 100 –5000 if the actual position of axis 1 is –5000, the 
host address is set to 2 and the module address is 1. The value “100” is the status code 100 that means “command 
successfully executed”. 
2.5.3  Commands that can be used in ASCII mode 
The following commands can be used in ASCII mode: ROL, ROR, MST, MVP, SAP, GAP, STAP, RSAP, SGP, GGP, STGP, 
RSGP, RFS, SIO, GIO, SAC, SCO, GCO, CCO, UF0, UF1, UF2, UF3, UF4, UF5, UF6, UF7. 
 
There are also special commands that are only available in ASCII mode: 
 
BIN: This command quits ASCII mode and returns to binary TMCL mode. 
 
RUN: This command can be used to start a TMCL program in memory. 
 
STOP: Stops a running TMCL application. 
2.5.4  Configuring the ASCII interface 
The module can be configured so that it starts up either in binary mode or in ASCII mode. Global parameter 67 is 
used for this purpose (please see also chapter 5.1). Bit 0 determines the startup mode: if this bit is set, the module 
starts up in ASCII mode, else it will start up in binary mode (default). Bit 4 and Bit 5 determine how the characters 
that are entered are echoed back. Normally, both bits are set to zero. In this case every character that is entered is 
echoed back when the module is addressed. Character can also be erased using the backspace character (press the 
backspace key in a terminal program). When bit 4 is set and bit 5 is clear the characters that are entered are not 
echoed back immediately but the entire line will be echoed back after the <CR> character has been sent. When bit 
5 is set and bit 4 is clear there will be no echo, only the reply will be sent. This may be useful in RS485 systems.