MODULE ModuleforStepperMotors TMCM-1140TMCL FirmwareManual FirmwareVersionV1.42 DocumentRevisionV1.072018-JAN-09 TheTMCM-1140isasingleaxiscontroller/drivermodulefor2-phasebipolarsteppermotors.The TMCM-1140TMCLrmwareallowstocontrolthemoduleusingTMCLcommands, supporting standaloneoperationaswellasdirectmodecontrol,makinguseoftheTrinamicTMC429motion controllerandtheTMC262motordriver.Dynamiccurrentcontrol,andquiet,smoothandecient operationarecombinedwithstallGuardandcoolStepfeatures. Features SingleAxisSteppermotorcontrol Supplyvoltage24VDC TMCL USBinterface RS485interface CANinterface Additionalinputsandoutputs coolStep stallGuard2 sensOstepencoder Applications LaboratoryAutomation Robotics LifeScience Manufacturing FactoryAutomation Biotechnology SemiconductorHandling Test&Measurement LiquidHandling SimpliedBlockDiagram TMCM-1140 TMCL Memory SPI Step USB MOSFET Driver SPI ARM RS485 TMC262 TM Cortex-M3 Stage Energy EfficientPre-Driver microcontroller CAN Motor with Driver TM stallGuard2 5 TMC262 I/Os coolStep +5V SPI S/D Stop OUT 0 switches TMC429 Motion Controller +5V SPI sensOstep 9 28V DC Encoder DC/DC 2018TRINAMICMotionControlGmbH&Co.KG,Hamburg,Germany Termsofdeliveryandrightstotechnicalchangereserved. Downloadnewestversionat:www.trinamic.com Readentiredocumentation. 2/112 TMCM-1140TMCL FirmwareManualFirmwareVersionV1.42 DocumentRevisionV1.072018-JAN-09 Contents 1 Features 5 1.1 stallGuard2 . 6 1.2 coolStep 6 2 FirstStepswithTMCL 7 2.1 BasicSetup . 7 2.2 UsingtheTMCLDirectMode 7 2.3 ChangingAxisParameters 7 2.4 TestingwithasimpleTMCLProgram 8 3 TMCLandtheTMCL-IDEAnIntroduction 10 3.1 BinaryCommandFormat 10 3.1.1 ChecksumCalculation 11 3.2 ReplyFormat . 12 3.2.1 StatusCodes . 12 3.3 StandaloneApplications . 13 3.4 TheASCIIInterface 14 3.4.1 EnteringandleavingtheASCIIMode . 14 3.4.2 FormatoftheCommandLine . 14 3.4.3 FormatofaReply . 15 3.4.4 ConguringtheASCIIInterface . 15 3.5 TMCLCommandOverview . 16 3.5.1 TMCLCommands . 16 3.6 TMCLCommandsbySubject 17 3.6.1 MotionCommands 17 3.6.2 ParameterCommands 18 3.6.3 BranchCommands 18 3.6.4 I/OPortCommands . 19 3.6.5 CalculationCommands . 19 3.6.6 InterruptProcessingCommands 20 3.7 DetailedTMCLCommandDescriptions 23 3.7.1 ROR(RotateRight) 23 3.7.2 ROL(RotateLeft) . 24 3.7.3 MST(MotorStop) . 25 3.7.4 MVP(MovetoPosition) . 26 3.7.5 SAP(SetAxisParameter) 29 3.7.6 GAP(GetAxisParameter) 30 3.7.7 STAP(StoreAxisParameter) . 31 3.7.8 RSAP(RestoreAxisParameter) . 32 3.7.9 SGP(SetGlobalParameter) . 33 3.7.10GGP(GetGlobalParameter) 34 3.7.11STGP(StoreGlobalParameter) . 35 3.7.12RSGP(RestoreGlobalParameter) . 36 3.7.13RFS(ReferenceSearch) 37 3.7.14SIO(SetOutput) 39 3.7.15GIO(GetInput) 41 3.7.16CALC(Calculate) 44 3.7.17COMP(Compare) . 46 3.7.18JC(Jumpconditional) . 47 3.7.19JA(Jumpalways) . 49 3.7.20CSUB(CallSubroutine) 50 3.7.21RSUB(ReturnfromSubroutine) 51 2018TRINAMICMotionControlGmbH&Co.KG,Hamburg,Germany Termsofdeliveryandrightstotechnicalchangereserved. Downloadnewestversionatwww.trinamic.com