- No category
advertisement
TMCM-1110 TMCL™ Firmware V1.03 Manual (Ref. 1.07 / 2012-APR-11) 52
4.5.31 CLE (clear error flags)
This command clears the internal error flags. It is intended for use in standalone mode only and must
not be used in direct mode.
The following error flags can be cleared by this command (determined by the <flag> parameter):
ALL: clear all error flags.
ETO: clear the timeout flag.
EAL: clear the external alarm flag
EDV: clear the deviation flag
EPO: clear the position error flag
Related commands: JC
Mnemonic: CLE <flags>
Binary representation:
INSTRUCTION NO. TYPE <flags> MOT/BANK VALUE
don’t care don’t care 36
Example:
Reset the timeout flag
Mnemonic: CLE ETO
Binary:
0 – (ALL) all flags
1 – (ETO) timeout flag
2 – (EAL) alarm flag
3 – (EDV) deviation flag
4 – (EPO) position flag
5 – (ESD) shutdown flag
Byte Index
Function
0
Target- address
$01
2
Type
$01
Value (hex)
1
Instruction
Number
$24
3
Motor/
Bank
$00
4
Operand
Byte3
$00
5
Operand
Byte2
$00
6
Operand
Byte1
$00
7
Operand
Byte0
$00 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