- No category
advertisement
TMCM-1110 TMCL™ Firmware V1.03 Manual (Ref. 1.07 / 2012-APR-11) 58
4.5.38 TMCL™ Control Functions
There are several TMCL™ control functions, but for the user are only 136 and 137 interesting. Other control functions can be used with axis parameters.
Instruction number
136
137
Type
0 – string
1 – binary
Command Description
Firmware version Get the module type and firmware revision as a don’t care Reset to factory defaults string or in binary format. (Motor/Bank and Value are ignored.)
Reset all settings stored in the EEPROM to their factory defaults
This command does not send back a reply.
Value must be 1234
Further information about command 136
-
Type set to 0 - reply as a string:
Byte index Contents
1 Host Address
2… 9 Version string (8 characters, e.g. 6110V100)
There is no checksum in this reply format!
-
Type set to 1 - version number in binary format:
Please use the normal reply format. The version number is output in the value field of the reply in the following way:
Byte index in value field Contents
1 Version number, low byte
2
3
4
Version number, high byte
Type number, low byte (currently not used)
Type number, high byte
(currently not used) www.trinamic.com
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 4 Features
- 5 Overview
- 6 Putting the Module into Operation
- 7 Basic Set-up
- 7 Connecting the Module
- 9 Start the TMCL-IDE Software Development Environment
- 10 Using TMCL™ Direct Mode
- 11 Important Motor Settings
- 13 TMCL™ and TMCL-IDE
- 13 Binary Command Format
- 14 Reply Format
- 14 Status Codes
- 14 Standalone Applications
- 15 Testing with a Simple TMCL™ Program
- 15 TMCL™ Command Overview
- 15 TMCL™ Commands
- 16 Commands Listed According to Subject Area
- 20 Commands
- 20 ROR (rotate right)
- 21 ROL (rotate left)
- 22 MST (motor stop)
- 23 MVP (move to position)
- 25 SAP (set axis parameter)
- 26 GAP (get axis parameter)
- 27 STAP (store axis parameter)
- 28 RSAP (restore axis parameter)
- 29 SGP (set global parameter)
- 30 GGP (get global parameter)
- 31 STGP (store global parameter)
- 32 RSGP (restore global parameter)
- 33 RFS (reference search)
- 34 SIO (set output)
- 35 GIO (get input/output)
- 37 CALC (calculate)
- 38 COMP (compare)
- 39 JC (jump conditional)
- 40 JA (jump always)
- 41 CSUB (call subroutine)
- 42 RSUB (return from subroutine)
- 43 WAIT (wait for an event to occur)
- 44 STOP (stop TMCL™ program execution)
- 45 SCO (set coordinate)
- 46 GCO (get coordinate)
- 47 CCO (capture coordinate)
- 48 ACO (accu to coordinate)
- 49 CALCX (calculate using the X register)
- 50 AAP (accumulator to axis parameter)
- 51 AGP (accumulator to global parameter)
- 52 CLE (clear error flags)
- 53 VECT (set interrupt vector)
- 54 EI (enable interrupt)
- 55 DI (disable interrupt)
- 56 RETI (return from interrupt)
- 56 Customer Specific TMCL™ Command Extension (UF0… UF7 - User Function)
- 57 Request Target Position Reached Event
- 58 TMCL™ Control Functions
- 59 Axis Parameters
- 65 stallGuard2™ Related Parameters
- 67 coolStep™ Related Parameters
- 69 Reference Search
- 70 Reference Search Modes (Axis Parameter 193)
- 72 Encoder
- 72 Changing the Prescaler Value of an Encoder
- 73 Calculation: Velocity and Acceleration vs. Microstep- and Fullstep-Frequency
- 74 Microstep Frequency
- 74 Fullstep Frequency
- 76 Global Parameters
- 80 TMCL™ Programming Techniques and Structure
- 80 Initialization
- 80 Main Loop
- 80 Using Symbolic Constants
- 81 Using Variables
- 81 Using Subroutines
- 82 Mixing Direct Mode and Standalone Mode
- 83 Life Support Policy
- 84 Revision History
- 84 Firmware Revision
- 84 Document Revision
- 85 References