robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
43339dee40
master
1" ABB Rapid Command syntax file for Vim 2" Language: ABB Rapid Command 3" Maintainer: Patrick Meiser-Knosowski <knosowski@graeffrobotics.de> 4" Version: 2.3.0 5" Last Change: 28. Oct 2025 6" Credits: Thanks for beta testing to Thomas Baginski 7" 8" Suggestions of improvement are very welcome. Please email me! 9" 10" 11" 12" Note to self: 13" for testing perfomance 14" open a 1000 lines file. 15" :syntime on 16" G 17" hold down CTRL-U until reaching top 18" :syntime report 19" 20" 21" TODO: - highlight rapid constants and maybe constants from common 22" technology packages 23" - optimize rapidErrorStringTooLong 24" - error highlight for missing 2nd point in MoveCirc et al 25 26" Init {{{ 27" Remove any old syntax stuff that was loaded (5.x) or quit when a syntax file 28" was already loaded (6.x). 29if version < 600 30syntax clear 31elseif exists ( "b:current_syntax" ) 32finish 33endif 34 35let s: keepcpo = & cpo 36set cpo & vim 37 38" if colorscheme is tortus rapidNoHighLink defaults to 1 39if ( get ( g:, 'colors_name' , " " ) == "tortus" || get ( g:, 'colors_name' , " " ) == "tortusless" ) 40 \&& !exists("g: rapidGroupName") 41let g: rapidGroupName = 1 42endif 43" rapidGroupName defaults to 0 if it's not initialized yet or 0 44if ! get ( g:, "rapidGroupName" , 0 ) 45let g: rapidGroupName = 0 46endif 47 48" Rapid does ignore case 49syn case ignore 50" spell checking 51syn spell notoplevel 52" }}} init 53 54" common highlighting {{{ 55 56" Error {{{ 57if get ( g:, 'rapidShowError' , 1 ) 58" 59" This error must be defined befor rapidCharCode and rapidEscapedBackSlash 60" a string containing a single \ which is not a char code 61syn match rapidErrorSingleBackslash /\\ /contained 62highlight default link rapidErrorSingleBackslash Error 63" 64endif 65" }}} Error 66 67" Constant values {{{ 68" Boolean 69syn keyword rapidBoolean TRUE FALSE Edge High Low 70highlight default link rapidBoolean Boolean 71" Float (num) 72" syn match rapidFloat /\v%(\W|_)@1<=[+-]?\d+\.?\d*%(\s*[eE][+-]?\d+)?/ 73syn match rapidFloat /\v\c%(<\d+\.|\.?<\d)\d * %(E [ +- ] ?\d+)?> /contains = rapidOperator 74highlight default link rapidFloat Float 75" integer in decimal, hexadecimal, octal and binary 76syn match rapidDec /\< [ 0-9 ] \+\> / 77highlight default link rapidDec Number 78syn match rapidHex /\<0x [ 0-9a-fA-F ] \+\> / 79highlight default link rapidHex Number 80syn match rapidOct /\<0o [ 0-7 ] \+\> / 81highlight default link rapidOct Number 82syn match rapidBin /\<0b [ 01 ] \+\> / 83highlight default link rapidBin Number 84" String. Note: Don't rename group rapidString. Indent depend on this 85syn region rapidString matchgroup = rapidString start = /" /skip = /"" /end = /" /oneline contains = rapidStringDoubleQuote , rapidEscapedBackSlash , rapidCharCode , rapidErrorSingleBackslash , rapidErrorStringTooLong , @Spell 86highlight default link rapidString String 87" two adjacent "" in string for one double quote 88syn match rapidStringDoubleQuote /"" /contained 89highlight default link rapidStringDoubleQuote SpecialChar 90" character code in string 91syn match rapidCharCode /\\\x\x /contained 92highlight default link rapidCharCode SpecialChar 93" escaped \ in string 94syn match rapidEscapedBackSlash /\\\\ /contained 95highlight default link rapidEscapedBackSlash SpecialChar 96" }}} Constant values 97 98" }}} common highlighting 99 100if bufname ( "%" ) =~ '\c\.cfg$' 101" {{{ highlighting for *.cfg 102 103" special chars {{{ 104" syn match rapidOperator /:\|[+-]\|\*\|\/\|\\/ 105syn match rapidOperator /[ -+*/:\\ ] / 106syn match rapidOperator /^# / 107highlight default link rapidOperator Operator 108" }}} special chars 109 110" sections {{{ 111syn match rapidException /^\w\+ / 112syn match rapidException /CFG_\d\+ / 113highlight default link rapidException Exception 114" }}} sections 115 116" Error {{{ 117if get ( g:, 'rapidShowError' , 1 ) 118" 119" This error must be defined after rapidString 120" Any Name longer than 32 chars 121syn match rapidErrorNameTooLong /-Name " [ ^" ] \{33,}" / 122highlight default link rapidErrorNameTooLong Error 123" 124endif 125" }}} Error 126 127" }}} highlighting for *.cfg 128else 129" highlighting for *.mod, *.sys and *.prg {{{ 130 131" sync for regions from a line comment or the start of a function 132syn syncmatch rapidSync grouphereNONE /\v\c^\s * %(! |%( task\s+|local\s+)?%(module|proc|func|trap|record)>)/ 133 134" Comment {{{ 135" TODO Comment 136syn match rapidTodoComment contained /\<TODO\>\|\<FIXME\>\|\<XXX\> / 137highlight default link rapidTodoComment Todo 138" Debug comment 139syn match rapidDebugComment contained /\<DEBUG\> / 140highlight default link rapidDebugComment Debug 141" Line comment 142syn match rapidComment /!. * $ /contains = rapidTodoComment , rapidDebugComment , @Spell 143highlight default link rapidComment Comment 144" }}} Comment 145 146" Header {{{ 147syn match rapidHeader /^%%% / 148highlight default link rapidHeader PreProc 149" }}} Header 150 151" Operator {{{ 152" Boolean operator 153syn keyword rapidOperator and or xor not div mod 154" Arithmetic and compare operator 155syn match rapidOperator /[ -+*/<>:= ] / 156" conditional argument 157syn match rapidOperator /? / 158highlight default link rapidOperator Operator 159" }}} Operator 160 161" Type, StorageClass and Typedef {{{ 162" anytype (preceded by 'alias|pers|var|const|func' 163" TODO: still missing are userdefined types which are part of a parameter: 164" PROC message( mystring msMessagePart1{}, 165" \ myvar msMsg4{}) 166" TODO testing. Problem: does not highlight any type if it's part of an argument list 167" syn match rapidAnyType /\v^\s*(global\s+|task\s+|local\s+)?(alias|pers|var|const|func)\s+\w+>/ contains=rapidStorageClass,rapidType,rapidTypeDef 168" highlight default link rapidAnyType Type 169syn keyword rapidType accdata aiotrigg bool btnres busstate buttondata byte 170syn keyword rapidType cfgdomain clock cnvcmd confdata confsupdata corrdescr datapos deflectiondata dionum dir dnum 171syn keyword rapidType egmframetype egmident egm_minmax egmstate egmstopmode errdomain errnum ErrorInfo errstr errtype event_type exec_level extjoint handler_type 172syn keyword rapidType icondata identno inposdata intnum inttypes iodev iounit_state jointtarget 173syn keyword rapidType listitem loaddata loadidnum loadsession mecunit motionprocessmode motsetdata 174" syn keyword rapidType num 175syn keyword rapidType opcalc opnum orient paridnum paridvalidnum pathrecid pnpdata pos pose proc_times progdisp o_jointtarget o_robtarget 176syn keyword rapidType rawbytes restartdata rmqheader rmqmessage rmqslot robjoint robtarget 177syn keyword rapidType searchdata sensor sensorstate sensorvardata shapedata signalai signalao signaldi signaldo signalgi signalgo signalorigin singdata socketdev socketstatus speeddata stopmovestartmove_mem stoppoint stoppointdata string stringdig sup_timeouts supervtype switch symnum syncident 178syn keyword rapidType taskid tasks tasksatstart testsignal tooldata tpnum trapdata triggdata triggflag triggios triggiosdnum triggmode triggstrgo tsp_status tunegtype tunetype 179syn keyword rapidType uishownum veldata visiondata wobjdata wzstationary wztemporary zonedata 180" SoftMove data types 181syn keyword rapidType css_offset_dir css_soft_dir cssframe 182" arc data types 183syn keyword rapidType advSeamData arcdata flystartdata seamdata arctrackdata opttrackdata weavedata welddata 184" conveyor tracking data types 185syn keyword rapidType indcnvdata 186" Integrated Vision data types 187syn keyword rapidType cameradev cameratarget 188" arc Weldguide and MultiPass data types 189syn keyword rapidType adaptdata trackdata multidata 190" GAP 191syn keyword rapidType partdata partadv ee_event menudata 192" dispense data types 193syn keyword rapidType beaddata equipdata 194" Spot data types 195syn keyword rapidType gundata gunnum spotdata forcedata simdata smeqdata smeqtype 196" Tool change data types 197syn keyword rapidType standno ToolInfo toolno 198" Continuous Application Platform data types 199syn keyword rapidType capaptrreferencedata capdata capevent caplatrackdata capmvsttim capspeeddata capspeeddata capstopmode captestno captrackdata capweavedata flypointdata processtimes restartblkdata supervtimeouts weavestartdata 200" Bulls Eye data types 201syn keyword rapidType be_device be_scan be_tooldesign 202" Force Control data types 203syn keyword rapidType fcboxvol fccondstatus fccylindervol fcdamping fcforcevector fcframe fclindir fcprocessdata fcplane fcrotdir fcspeedvector fcspherevol fcspdchgtunetype fcxyznum 204" Discrete application platform data types 205syn keyword rapidType dadescapp dadescprc daintdata 206" VW Konzernstandard VWKS_1.07.02 207syn keyword rapidType merker 208syn keyword rapidType frgnum frgwert robnum 209syn keyword rapidType fmnum applid calibdatavorr stepdata 210syn keyword rapidType tsmethode tsdaten teilspeicherdaten 211syn keyword rapidType greiferdaten greiferposition bauteildaten bauteilkontrolle g_datenident g_sensor g_signal g_teilident g_ventil 212syn keyword rapidType strgnum typnum 213syn keyword rapidType hubnum kopfnum 214syn keyword rapidType applservicetype 215syn keyword rapidType applfraesdaten kwdionum 216syn keyword rapidType butechnum 217syn keyword rapidType toolnum dbnum 218" das folgende sind datentypen aber das kann man doch nicht machen... 219" syn keyword rapidType position wert 220syn keyword rapidType camdata camlimitdata cammode camprotocoldata camstatus camsequence campositionstatus 221syn keyword rapidType saposnum sabereichnum autofocusnum focusposnum lascaledata laleistungnum larobnum laprognum uebwnum dgbanum dgjobnum gasspuelnum davalve gasuebwnum 222syn keyword rapidType lsfigurnum lsstarttype 223syn keyword rapidType lwprognum lwdiodnum lsstarttype 224syn keyword rapidType lztype diskrethubnum lztipnum 225syn keyword rapidType gblmethod 226syn keyword rapidType buatypenum buatechnum buadirnum 227highlight default link rapidType Type 228" Storage class 229syn keyword rapidStorageClass LOCAL TASK VAR PERS CONST ALIAS NOVIEW NOSTEPIN VIEWONLY READONLY SYSMODULE INOUT REF 230highlight default link rapidStorageClass StorageClass 231" Not a typedef but I like to have those highlighted different then types, 232" structures or strorage classes 233syn keyword rapidTypeDef MODULE ENDMODULE PROC ERROR UNDO BACKWARD ENDPROC RECORD ENDRECORD TRAP ENDTRAP FUNC ENDFUNC 234highlight default link rapidTypeDef TypeDef 235" }}} Type, StorageClass and Typedef 236 237" Statements, keywords et al {{{ 238" syn keyword rapidStatement 239" highlight default link rapidStatement Statement 240" Conditional 241syn keyword rapidConditional if then elseif else endif test case default endtest 242highlight default link rapidConditional Conditional 243" Repeat 244syn keyword rapidRepeat do 245syn match rapidRepeat /\c\v^\s * %(<while>|<for>)%( [ ^! ] +<do>)@= / 246syn keyword rapidRepeat from to step endfor endwhile 247highlight default link rapidRepeat Repeat 248" Label 249syn keyword rapidLabel goto 250syn match rapidLabel /\c\v^\s * [ [:upper: ][ :lower: ] ]\k * \:\ze%( [ ^= ] |$) /contains = rapidConditional , rapidOperator 251highlight default link rapidLabel Label 252" Keyword 253syn keyword rapidKeyword AccSet ActEventBuffer ActUnit Add AliasCamera AliasIO AliasIOReset BitClear BitSet BookErrNo BrakeCheck 254syn keyword rapidKeyword CallByVar CancelLoad CheckProgRef CirPathMode Clear ClearIOBuff ClearPath ClearRawBytes ClkReset ClkStart ClkStop Close CloseDir ConfJ ConfL CONNECT CopyFile CopyRawBytes CornerPathWarning CorrClear CorrCon CorrDiscon CorrWrite 255syn keyword rapidKeyword CSSAct CSSDeact CSSForceOffsetAct CSSForceOffsetDeact CSSOffsetTune CyclicBrakeCheck 256syn keyword rapidKeyword DeactEventBuffer DeactUnit Decr DitherAct DitherDeact DropSensor 257syn keyword rapidKeyword EGMActJoint EGMActMove EGMActPose EGMGetId EGMReset EGMSetupAI EGMSetupAO EGMSetupGI EGMSetupLTAPP EGMSetupUC EOffsOff EOffsOn EOffsSet EraseModule ErrLog ErrWrite 258syn keyword rapidKeyword FitCircle FricIdInit FricIdEvaluate FricIdSetFricLevels 259syn keyword rapidKeyword GetDataVal GetGroupSignalInfo GetJointData GetSysData GetTorqueMargin GetTrapData GripLoad HollowWristReset 260syn keyword rapidKeyword IDelete IDisable IEnable IError Incr IndReset InvertDO IOBusStart IOBusState IoCtrlAxis_RefSync IoCtrlAxis_RefSyncOff IoCtrlAxis_RefSyncOn IODisable IOEnable IPers IRMQMessage ISignalAI ISignalAO ISignalDI ISignalDO ISignalGI ISignalGO ISleep ITimer IVarValue IWatch 261syn keyword rapidKeyword Load LoadId MakeDir ManLoadIdProc MatrixSolve MatrixSolveQR MatrixSVD MechUnitLoad MotionProcessModeSet MotionSup MToolRotCalib MToolTCPCalib Open OpenDir 262syn keyword rapidKeyword PackDNHeader PackRawBytes PathAccLim PathLengthReset PathLengthStart PathLengthStop PathRecStart PathRecStop PathResol PDispOff PDispOn PDispSet ProcerrRecovery PrxActivAndStoreRecord PrxActivRecord PrxDbgStoreRecord PrxDeactRecord PrxResetPos PrxResetRecords PrxSetPosOffset PrxSetRecordSampleTime PrxSetSyncalarm PrxStartRecord PrxStopRecord PrxStoreRecord PrxUseFileRecord PulseDO 263syn keyword rapidKeyword ReadAnyBin ReadBlock ReadCfgData ReadErrData ReadRawBytes ReadVarArr RemoveAllCyclicBool RemoveCyclicBool RemoveDir RemoveFile RenameFile Reset ResetAxisDistance ResetAxisMoveTime ResetPPMoved ResetRetryCount ResetTorqueMargin RestoPath Rewind RMQEmptyQueue RMQFindSlot RMQGetMessage RMQGetMsgData RMQGetMsgHeader RMQReadWait RMQSendMessage RMQSendWait 264syn keyword rapidKeyword SafetyControllerSyncRequest Save SaveCfgData SCWrite SenDevice Set SetAllDataVal SetAO SetDataSearch SetDataVal SetDO SetGO SetLeadThrough SetSysData SetupCyclicBool SiConnect SiClose SiGetCyclic SingArea SiSetCyclic SkipWarn SocketAccept SocketBind SocketClose SocketConnect SocketCreate SocketListen SocketReceive SocketReceiveFrom SocketSend SocketSendTo SoftAct SoftDeact SoftElbow SpeedLimAxis SpeedLimCheckPoint SpeedRefresh SpyStart SpyStop StartLoad STCalib STClose STIndGun STIndGunReset SToolRotCalib SToolTCPCalib STOpen StorePath STTune STTuneReset SupSyncSensorOff SupSyncSensorOn SyncMoveOff SyncMoveOn SyncMoveResume SyncMoveSuspend SyncMoveUndo SyncToSensor SystemStopAction 265syn keyword rapidKeyword TestSignDefine TestSignReset TextTabInstall TPErase TPReadDnum TPReadFK TPReadNum TPShow TPWrite TriggCheckIO TriggDataCopy TriggDataReset TriggEquip TriggInt TriggIO TriggRampAO TriggSpeed TriggStopProc TryInt TuneReset TuneServo 266syn keyword rapidKeyword UIMsgBox UIMsgWrite UIMsgWriteAbort UIShow UnLoad UnpackRawBytes VelSet WaitAI WaitAO WaitDI WaitDO WaitGI WaitGO WaitLoad WaitRob WaitSensor WaitSyncTask WaitTestAndSet WaitTime WaitUntil WarmStart WITH WorldAccLim Write WriteAnyBin WriteBin WriteBlock WriteCfgData WriteRawBytes WriteStrBin WriteVar WriteVarArr WZBoxDef WZCylDef WZDisable WZDOSet WZEnable WZFree WZHomeJointDef WZLimJointDef WZLimSup WZSphDef 267" arc instructions 268syn keyword rapidKeyword ArcRefresh RecoveryMenu RecoveryMenuWR RecoveryPosSet RecoveryPosReset SetWRProcName 269" conveyor tracking instructions 270syn keyword rapidKeyword UseACCProfile WaitWObj DropWObj RecordProfile WaitAndRecProf StoreProfile LoadProfile ActivateProfile DeactProfile CnvGenInstr CnvSync CnvGenInstr IndCnvInit IndCnvEnable IndCnvDisable IndCnvReset IndCnvAddObject 271syn keyword rapidKeyword UseReachableTargets GetMaxUsageTime ResetMaxUsageTime CnvPredictReach 272" Integrated Vision instructions 273syn keyword rapidKeyword CamFlush CamGetParameter CamGetResult CamLoadJob CamReqImage CamSetExposure CamSetParameter CamSetProgramMode CamSetRunMode CamStartLoadJob CamWaitLoadJob 274" arc Weldguide and MultiPass instructions 275syn keyword rapidKeyword MPSavePath MPLoadPath MPReadInPath MPOffsEaxOnPath 276" Paint instructions 277syn keyword rapidKeyword ConsoleWrite IpsSetParam PntProdUserLog SetBrush SetBrushFac 278" Spot instructions 279syn keyword rapidKeyword SetForce Calibrate ReCalcTCP IndGunMove IndGunMoveReset OpenHighLift CloseHighLift SwSetIntSpotData SwSetIntForceData SwSetIntGunData SwSetIntSimData SwGetCalibData SwGetFixTipData 280" Tool change instructions 281syn keyword rapidKeyword TcCloseCover TcDropOffTool TcLockTool TcOpenCover TcPickupTool TcUnlockTool 282" dispense instructions 283syn keyword rapidKeyword SetTmSignal SyncWWObj 284" Continuous Application Platform instructions 285syn keyword rapidKeyword CapAPTrSetup CapAPTrSetupAI CapAPTrSetupAO CapAPTrSetupPERS CapCondSetDO CapEquiDist CapNoProcess CapRefresh CAPSetStopMode CapWeaveSync ICap InitSuperv IPathPos RemoveSuperv SetupSuperv 286" Bulls Eye instructions 287syn keyword rapidKeyword BECheckTcp BEDebugState BERefPointer BESetupToolJ BETcpExtend BEUpdateTcp 288" Force Control instructions 289syn keyword rapidKeyword FCAct FCCalib FCCondForce FCCondOrient FCCondPos FCCondReoriSpeed FCCondTCPSpeed FCCondTorque FCCondWaitWhile FCDeact FCPress1LStart FCPressC FCPressEnd FCPressL FCRefCircle FCRefForce FCRefLine FCRefMoveFrame FCRefRot FCRefSpiral FCRefSprForceCart FCRefStart FCRefStop FCRefTorque FCResetDampingTune FCResetLPFilterTune FCSpdChgAct FCSpdChgDeact FCSpdChgTunSet FCSpdChgTunReset FCSetDampingTune FCSetLPFilterTune FCSupvForce FCSupvOrient FCSupvPos FCSupvReoriSpeed FCSupvTCPSpeed FCSupvTorque 290" Discrete application platform instructions 291syn keyword rapidKeyword DaActProc DaDeactAllProc DaDeactProc DaDefExtSig DaDefProcData DaDefProcSig DaDefUserData DaGetCurrData DaSetCurrData DaSetupAppBehav DaStartManAction DaGetAppDescr DaGetAppIndex DaGetNumOfProcs DaGetNumOfRob DaGetPrcDescr 292" Production Manager instructions 293syn keyword rapidKeyword ExecEngine PMgrGetNextPart PMgrSetNextPart PMgrRunMenu 294" Homepos-Running instructions 295syn keyword rapidKeyword HR_Exit HR_ExitCycle HR_SavePos HR_SetMoveToStartPos HR_SetTypeDIndex HR_SetTypeIndex 296highlight default link rapidKeyword Keyword 297" Exception 298syn keyword rapidException Exit ErrRaise ExitCycle Raise RaiseToUser Retry Return TryNext 299syn match rapidException /\s\+Stop\s * [ \\; ] /me= e-1 300highlight default link rapidException Exception 301" }}} Statements, keywords et al 302 303" Special keyword for move command {{{ 304" uncategorized yet 305syn keyword rapidMovement MovePnP 306syn keyword rapidMovement EGMMoveC EGMMoveL EGMRunJoint EGMRunPose EGMStop 307syn keyword rapidMovement IndAMove IndCMove IndDMove IndRMove 308" common instructions 309syn keyword rapidMovement MoveAbsJ MoveC MoveExtJ MoveJ MoveL 310syn keyword rapidMovement MoveCAO MoveCDO MoveCGO MoveCSync MoveJAO MoveJDO MoveJGO MoveJSync MoveLAO MoveLDO MoveLGO MoveLSync 311syn keyword rapidMovement SearchC SearchExtJ SearchL 312syn keyword rapidMovement TriggAbsJ TriggC TriggJ TriggL TriggJIOs TriggLIOs 313" Arc instructions 314syn keyword rapidMovement ArcC ArcC1 ArcC2 ArcCEnd ArcC1End ArcC2End ArcCStart ArcC1Start ArcC2Start 315syn keyword rapidMovement ArcL ArcL1 ArcL2 ArcLEnd ArcL1End ArcL2End ArcLStart ArcL1Start ArcL2Start ArcMoveExtJ 316" Arc Weldguide and MultiPass instructions 317syn keyword rapidMovement ArcRepL ArcAdaptLStart ArcAdaptL ArcAdaptC ArcAdaptLEnd ArcAdaptCEnd ArcCalcLStart ArcCalcL ArcCalcC ArcCalcLEnd ArcCalcCEnd ArcAdaptRepL 318syn keyword rapidMovement Break 319" Continuous Application Platform instructions 320syn keyword rapidMovement CapC CapL CapLATrSetup CSSDeactMoveL ContactL 321" Dispense instructions 322syn keyword rapidMovement DispL DispC 323" Nut instructions" 324syn keyword rapidMovement NutL NutJ 325syn keyword rapidMovement PathRecMoveBwd PathRecMoveFwd 326" Paint instructions" 327syn keyword rapidMovement PaintL PaintLSig PaintLDO PaintC 328syn keyword rapidMovement StartMove StartMoveRetry StepBwdPath StopMove StopMoveReset 329" Spot instructions 330syn keyword rapidMovement SpotL SpotJ SpotML SpotMJ CalibL CalibJ MeasureWearL 331" Homepos-Running instructions 332syn keyword rapidMovement SMoveJ SMoveJDO SMoveJGO SMoveJSync SMoveL SMoveLDO SMoveLGO SMoveLSync SSearchL STriggJ STriggL 333syn keyword rapidMovement HR_ContMove HR_MoveBack HR_MoveRoutine HR_MoveTo HR_MoveToHome SCSSDeactMoveL 334" Discrete application platform instructions 335syn keyword rapidMovement DaProcML DaProcMJ 336" VW Konzernstandard VWKS_1.07.02 337syn keyword rapidMovement MoveABS MoveABS_FB MoveABS_FRG MoveABS_ROB 338syn keyword rapidMovement MoveCIRC MoveCIRC_FB MoveCIRC_FRG MoveCIRC_ROB 339syn keyword rapidMovement MoveLIN MoveLIN_FB MoveLIN_FRG MoveLIN_ROB 340syn keyword rapidMovement MovePTP MovePTP_FB MovePTP_FRG MovePTP_ROB 341syn keyword rapidMovement SearchCIRC SearchCIRC_M 342syn keyword rapidMovement SearchLIN SearchLIN_M 343syn keyword rapidMovement MoveABS_AO MoveABS_DO MoveABS_GO 344syn keyword rapidMovement MoveCIRC_AO MoveCIRC_DO MoveCIRC_GO 345syn keyword rapidMovement MoveLIN_AO MoveLIN_DO MoveLIN_GO 346syn keyword rapidMovement KW_LoesenLIN 347syn keyword rapidMovement SPZ_FraesenLIN SPZ_FraesenPTP SPZ_MessenLIN SPZ_MessenPTP SPZ_LIN SPZ_PTP 348syn keyword rapidMovement BZ_LIN BZ_PTP 349syn keyword rapidMovement KL_LIN KL_CIRC 350syn keyword rapidMovement BP_LIN BP_PTP 351syn keyword rapidMovement BU_CIRC BU_LIN 352syn keyword rapidMovement CZ_LIN CZ_LIN_V CZ_PTP CZ_PTP_V 353syn keyword rapidMovement FD_LIN FD_PTP 354syn keyword rapidMovement KG_LIN KG_PTP 355syn keyword rapidMovement DA_LIN 356syn keyword rapidMovement LK_CIRC LK_LIN 357syn keyword rapidMovement LL_CIRC LL_LIN 358syn keyword rapidMovement LS_CIRC LS_LIN LS_LIN_F LS_PTP_F 359syn keyword rapidMovement LW_CIRC LW_LIN 360syn keyword rapidMovement LZ_LIN LZ_PTP LZ_ReinigenLIN LZ_ReinigenPTP 361syn keyword rapidMovement MS_CIRC MS_LIN MS_ReinigenLIN MS_SearchLIN MS_PTP_CS MS_LIN_CS GBL_LIN GBL_PTP GBL_RefPointLIN 362syn keyword rapidMovement NK_LIN 363syn keyword rapidMovement NZ_LIN NZ_LIN_V NZ_PTP NZ_PTP_V 364syn keyword rapidMovement PR_LIN PR_PTP 365syn keyword rapidMovement RF_CIRC RF_LIN 366syn keyword rapidMovement STP_FraesenLIN STP_FraesenPTP STP_LIN STP_PTP 367syn keyword rapidMovement SM_LIN SM_PTP 368syn keyword rapidMovement BUA_CIRC BUA_LIN BUA_MessenLIN BUA_MessenPTP 369syn keyword rapidMovement KE_LIN 370if g: rapidGroupName 371highlight default link rapidMovement Movement 372else 373highlight default link rapidMovement Special 374endif 375" }}} special keyword for move command 376 377" Any name {{{ 378syn match rapidNames /\v [ [:upper: ][ :lower: ] ](\k|\.) * / 379" }}} Any name 380 381" Attempt to avoid false highlight of num in case of parameter name: 382" TPWrite "goPosNo="\num:=GOutput(goPosNo); 383" Must follow after rapidNames in this file 384syn match rapidType /\c\v<num>\s * \ze [ ^ : ] / 385 386" Structure value {{{ 387" rapid structrure values. added to be able to conceal them 388if getbufvar ( '%' , "&buftype" ) == "quickfix" 389" don't conceal in quickfix window 390setlocal conceallevel = 0 concealcursor = 391endif 392syn region rapidConcealableString matchgroup = rapidConcealableString start = /" /skip = /"" /end = /" /oneline keepend extend contained contains = rapidStringDoubleQuote , rapidEscapedBackSlash , rapidCharCode , rapidErrorSingleBackslash , rapidErrorStringTooLong , @Spell conceal 393highlight default link rapidConcealableString String 394syn region rapidStructVal matchgroup = rapidStructDelimiter start = /\[ /end = /\] /contains = rapidStructVal , rapidBoolean , rapidDec , rapidHex , rapidOct , rapidBin , rapidFloat , rapidConcealableString , rapidDelimiter , rapidConstant , rapidErrNo , rapidIntNo , rapidOperator keepend extend conceal cchar = * 395highlight default link rapidStructDelimiter Delimiter 396" check edge cases like this one: 397" LOCAL CONST listitem lstAuswService{18}:=[["","Service Position"],["","Bremsentest"],["","Referenzfahrt"],["","Manuelles Abfahren"],["","Justagestellung"],["","Transportposition"], 398" ["","Spitze-Spitze Greifer 1, [RT]"],["","Spitze-Spitze Greifer 2, [FT]"],["","Spitze-Spitze Pruefspitze"],["","Werkobjekt Ablage"],["","Werkobjekt Modul 1"], 399" ["","Werkobjekt Modul 2"],["","TCP von Greifer 1 vermessen, [RT]"],["","TCP von Greifer 2 vermessen, [FT]"],["","TCP von Basisdorn vermessen"], 400" ["","Greifer abdocken"],["","Greifer andocken"],["","Kollision Check (Ohne Greifer)"]]; 401" }}} Structure value 402 403" Delimiter {{{ 404syn match rapidDelimiter /[ \\(){},;| ] / 405highlight default link rapidDelimiter Delimiter 406" }}} Delimiter 407 408" BuildInFunction {{{ 409" dispense functions 410syn keyword rapidBuildInFunction contained GetSignal GetSignalDnum 411" Integrated Vision Platform functions 412syn keyword rapidBuildInFunction contained CamGetExposure CamGetLoadedJob CamGetName CamNumberOfResults 413" Continuous Application Platform functions 414syn keyword rapidBuildInFunction contained CapGetFailSigs 415syn keyword rapidBuildInFunction contained Abs AbsDnum ACos ACosDnum AInput AOutput ArgName ASin ASinDnum ATan ATanDnum ATan2 ATan2Dnum 416syn keyword rapidBuildInFunction contained BitAnd BitAndDnum BitCheck BitCheckDnum BitLSh BitLShDnum BitNeg BitNegDnum BitOr BitOrDnum BitRSh BitRShDnum BitXOr BitXOrDnum ByteToStr 417syn keyword rapidBuildInFunction contained CalcJointT CalcRobT CalcRotAxFrameZ CalcRotAxisFrame CDate CJointT ClkRead CorrRead Cos CosDnum CPos CRobT CrossProd CSpeedOverride CTime CTool CWObj 418syn keyword rapidBuildInFunction contained DecToHex DefAccFrame DefDFrame DefFrame Dim DInput Distance DnumToNum DnumToStr DotProd DOutput 419syn keyword rapidBuildInFunction contained EGMGetState EulerZYX EventType ExecHandler ExecLevel Exp 420syn keyword rapidBuildInFunction contained FileSize FileTime FileTimeDnum FSSize 421syn keyword rapidBuildInFunction contained GetAxisDistance GetAxisMoveTime GetMaxNumberOfCyclicBool GetMecUnitName GetModalPayLoadMode GetMotorTorque GetNextCyclicBool GetNextMechUnit GetNextSym GetNumberOfCyclicBool GetServiceInfo GetSignalOrigin GetSysInfo GetTaskName GetTime GetTSPStatus GetUASUserName GInput GInputDnum GOutput GOutputDnum 422syn keyword rapidBuildInFunction contained HexToDec 423syn keyword rapidBuildInFunction contained IndInpos IndSpeed IOUnitState IsBrakeCheckActive IsCyclicBool IsFile IsLeadThrough IsMechUnitActive IsPers IsStopMoveAct IsStopStateEvent IsSyncMoveOn IsSysId IsVar 424syn keyword rapidBuildInFunction contained Max MaxExtLinearSpeed MaxExtReorientSpeed MaxRobReorientSpeed MaxRobSpeed Min MirPos ModExist ModTime ModTimeDnum MotionPlannerNo 425syn keyword rapidBuildInFunction contained NonMotionMode NOrient NumToDnum NumToStr 426syn keyword rapidBuildInFunction contained Offs OpMode OrientZYX ORobT 427syn keyword rapidBuildInFunction contained ParIdPosValid ParIdRobValid PathLengthGet PathLevel PathRecValidBwd PathRecValidFwd PFRestart PoseInv PoseMult PoseVect Pow PowDnum PPMovedInManMode Present ProgMemFree PrxGetMaxRecordpos 428syn keyword rapidBuildInFunction contained RawBytesLen ReadBin ReadDir ReadMotor ReadNum ReadStr ReadStrBin ReadVar RelTool RemainingRetries RMQGetSlotName RobName RobOS Round RoundDnum RunMode 429syn keyword rapidBuildInFunction contained SafetyControllerGetChecksum SafetyControllerGetOpModePinCode SafetyControllerGetSWVersion SafetyControllerGetUserChecksum Sin SinDnum SocketGetStatus SocketPeek Sqrt SqrtDnum STCalcForce STCalcTorque STIsCalib STIsClosed STIsIndGun STIsOpen StrDigCalc StrDigCmp StrFind StrLen StrMap StrMatch StrMemb StrOrder StrPart StrToByte StrToVal 430syn keyword rapidBuildInFunction contained Tan TanDnum TaskRunMec TaskRunRob TasksInSync TaskIsActive TaskIsExecuting TestAndSet TestDI TestSignRead TextGet TextTabFreeToUse TextTabGet TriggDataValid Trunc TruncDnum Type 431syn keyword rapidBuildInFunction contained UIAlphaEntry UIClientExist UIDnumEntry UIDnumTune UIListView UIMessageBox UINumEntry UINumTune 432syn keyword rapidBuildInFunction contained ValidIO ValToStr Vectmagn 433" Bulls Eye functions 434syn keyword rapidBuildInFunction contained OffsToolXYZ OffsToolPolar 435" Force Control functions 436syn keyword rapidBuildInFunction contained FCGetForce FCGetProcessData FCIsForceMode FCLoadID 437" Discrete application platform functions 438syn keyword rapidBuildInFunction contained DaGetFstTimeEvt DaCheckMMSOpt DaGetMP DaGetRobotName DaGetTaskName 439" Production Manager functions 440syn keyword rapidBuildInFunction contained PMgrAtSafe PMgrAtService PMgrAtState PMgrAtStation PMgrNextStation PMgrTaskNumber PMgrTaskName 441" Spot functions 442syn keyword rapidBuildInFunction contained SwGetCurrTargetName SwGetCurrSpotName 443" Homepos-Running functions 444syn keyword rapidBuildInFunction contained HR_RobotInHome HR_GetTypeDIndex HR_GetTypeIndex 445" Paint functions 446syn keyword rapidBuildInFunction contained IndexLookup IpsCommand IpsGetParam PaintCommand PntQueueExtraGet PntQueueExtraSet PntQueuePeek 447if g: rapidGroupName 448highlight default link rapidBuildInFunction BuildInFunction 449else 450highlight default link rapidBuildInFunction Function 451endif 452" }}} 453 454" Function {{{ 455syn matchrapidFunction contains = rapidBuildInFunction /\v\c%(<%(PROC|MODULE)\s+)@10<! <[ [:upper:][ :lower:] ]\k+* \(/me=e-1 456highlight default link rapidFunction Function 457syn match rapidCallByVar /%\ze [ ^% ] / 458highlight default link rapidCallByVar Function 459" }}} Function 460 461" Constants {{{ 462" standard rapid constants 463syn keyword rapidConstant pi stEmpty 464syn keyword rapidConstant STR_DIGIT STR_LOWER STR_UPPER STR_WHITE 465syn keyword rapidConstant flp1 diskhome diskram disktemp usbdisk1 usbdisk2 usbdisk3 usbdisk4 usbdisk5 usbdisk6 usbdisk7 usbdisk8 usbdisk9 usbdisk10 466" stoppoint 467syn keyword rapidConstant inpos stoptime fllwtime 468" stoppointdata 469syn keyword rapidConstant inpos20 inpos50 inpos100 470syn keyword rapidConstant stoptime0_5 stoptime1_0 stoptime1_5 471syn keyword rapidConstant fllwtime0_5 fllwtime1_0 fllwtime1_5 472" default tool/wobj/load 473syn keyword rapidConstant tool0 wobj0 load0 474" zonedata 475syn keyword rapidConstant fine z0 z1 z5 z10 z15 z20 z30 z40 z50 z60 z80 z100 z150 z200 476" speeddata 477syn keyword rapidConstant v5 v10 v20 v30 v40 v50 v60 v80 v100 v150 v200 v300 v400 v500 v600 v800 v1000 v1500 v2000 v2500 v3000 v4000 v5000 v6000 v7000 vmax 478syn keyword rapidConstant vrot1 vrot2 vrot5 vrot10 vrot20 vrot50 vrot100 vlin10 vlin20 vlin50 vlin100 vlin200 vlin500 vlin1000 479" error code starting with ERR_ 480syn keyword rapidConstant ERR_ACC_TOO_LOW ERR_ACTIV_PROF ERR_ADDR_INUSE ERR_ALIASIO_DEF ERR_ALIASIO_TYPE ERR_ALRDYCNT ERR_ALRDY_MOVING ERR_AO_LIM ERR_ARGDUPCND ERR_ARGNAME ERR_ARGNOTPER ERR_ARGNOTVAR ERR_ARGVALERR ERR_ARRAY_SIZE ERR_AXIS_ACT ERR_AXIS_IND ERR_AXIS_MOVING ERR_AXIS_PAR 481syn keyword rapidConstant ERR_BUSSTATE ERR_BWDLIMIT 482syn keyword rapidConstant ERR_CALC_DIVZERO ERR_CALC_NEG ERR_CALC_OVERFLOW ERR_CALLIO_INTER ERR_CALLPROC ERR_CAM_BUSY ERR_CAM_COM_TIMEOUT ERR_CAM_GET_MISMATCH ERR_CAM_MAXTIME ERR_CAM_NO_MORE_DATA ERR_CAM_NO_PROGMODE ERR_CAM_NO_RUNMODE ERR_CAM_SET_MISMATCH 483syn keyword rapidConstant ERR_CFG_ILLTYPE ERR_CFG_ILL_DOMAIN ERR_CFG_INTERNAL ERR_CFG_LIMIT ERR_CFG_NOTFND ERR_CFG_OUTOFBOUNDS ERR_CFG_WRITEFILE 484syn keyword rapidConstant ERR_CNTNOTVAR 485syn keyword rapidConstant ERR_CNV_CONNECT ERR_CNV_DROPPED ERR_CNV_NOT_ACT 486syn keyword rapidConstant ERR_COLL_STOP 487syn keyword rapidConstant ERR_COMM_EXT ERR_COMM_INIT ERR_COMM_INIT_FAILED 488syn keyword rapidConstant ERR_CONC_MAX ERR_CONTACTL ERR_CSV_INDEX 489syn keyword rapidConstant ERR_DA_UNKPROC ERR_DATA_RECV ERR_DEV_MAXTIME ERR_DIPLAG_LIM ERR_DIVZERO ERR_DROP_LOAD ERR_EXCRTYMAX ERR_EXECPHR 490syn keyword rapidConstant ERR_FILEACC ERR_FILEEXIST ERR_FILEOPEN ERR_FILESIZE ERR_FILNOTFND 491syn keyword rapidConstant ERR_FNCNORET ERR_FRAME ERR_FRICTUNE_FATAL ERR_GLUEFLOW ERR_GO_LIM 492syn keyword rapidConstant ERR_HAND_FAILEDGRIPPOS ERR_HAND_FAILEDMOVEPOS ERR_HAND_FAILEDVACUUM ERR_HAND_NOTCALIBRATED 493syn keyword rapidConstant ERR_ILLDIM ERR_ILLQUAT ERR_ILLRAISE 494syn keyword rapidConstant ERR_INDCNV_ORDER ERR_INOISSAFE ERR_INOMAX ERR_INPAR_RDONLY ERR_INT_MAXVAL ERR_INT_NOTVAL ERR_INVDIM 495syn keyword rapidConstant ERR_IODISABLE ERR_IODN_TIMEOUT ERR_IOENABLE ERR_IOERROR ERR_IPSDEVICE_UNKNOWN ERR_IPSILLEGAL_CH_OR_FAC ERR_IPS_PARAM 496syn keyword rapidConstant ERR_ITMSRC_UNDEF ERR_LINKREF ERR_LOADED ERR_LOADID_FATAL ERR_LOADID_RETRY ERR_LOADNO_INUSE ERR_LOADNO_NOUSE 497syn keyword rapidConstant ERR_MSG_PENDING ERR_MAXINTVAL ERR_MOC_CNV_REC_FILE_UNKNOWN ERR_MODULE ERR_MOD_NOT_LOADED ERR_MOD_NOTLOADED 498syn keyword rapidConstant ERR_MT_ABORT ERR_MT_HOME ERR_MT_HOMERUN 499syn keyword rapidConstant ERR_NEGARG ERR_NAME_INVALID ERR_NORUNUNIT ERR_NOTARR ERR_NOTEQDIM ERR_NOTINTVAL ERR_NOTPRES ERR_NOTSAVED ERR_NOT_MOVETASK ERR_NO_ALIASIO_DEF ERR_NO_SGUN ERR_NUM_LIMIT 500syn keyword rapidConstant ERR_OUTOFBND ERR_OUTSIDE_REACH ERR_OVERFLOW ERR_PATH ERR_PATHDIST ERR_PATH_STOP ERR_PERSSUPSEARCH ERR_PID_MOVESTOP ERR_PID_RAISE_PP ERR_PPA_TIMEOUT ERR_PRGMEMFULL ERR_PROCSIGNAL_OFF ERR_PROGSTOP 501syn keyword rapidConstant ERR_RANYBIN_CHK ERR_RANYBIN_EOF ERR_RCVDATA ERR_REFUNKDAT ERR_REFUNKFUN ERR_REFUNKPRC ERR_REFUNKTRP 502syn keyword rapidConstant ERR_RMQ_DIM ERR_RMQ_FULL ERR_RMQ_INVALID ERR_RMQ_INVMSG ERR_RMQ_MSGSIZE ERR_RMQ_NAME ERR_RMQ_NOMSG ERR_RMQ_TIMEOUT ERR_RMQ_VALUE 503syn keyword rapidConstant ERR_ROBLIMIT ERR_SC_WRITE 504syn keyword rapidConstant ERR_SGUN_ESTOP ERR_SGUN_MOTOFF ERR_SGUN_NEGVAL ERR_SGUN_NOTACT ERR_SGUN_NOTINIT ERR_SGUN_NOTOPEN ERR_SGUN_NOTSYNC 505syn keyword rapidConstant ERR_SIG_NAME ERR_SIGSUPSEARCH ERR_SIG_NOT_VALID 506syn keyword rapidConstant ERR_SOCK_ADDR_INVALID ERR_SOCK_ADDR_INUSE ERR_SOCK_CLOSED ERR_SOCK_IS_BOUND ERR_SOCK_IS_CONN ERR_SOCK_NET_UNREACH ERR_SOCK_NOT_BOUND ERR_SOCK_NOT_CONN ERR_SOCK_TIMEOUT ERR_SOCK_UNSPEC 507syn keyword rapidConstant ERR_SPEEDLIM_VALUE ERR_SPEED_REFRESH_LIM 508syn keyword rapidConstant ERR_STARTMOVE ERR_STORE_PROF ERR_STRTOOLNG ERR_SYMBOL_TYPE ERR_SYM_ACCESS ERR_SYNCMOVEOFF ERR_SYNCMOVEON ERR_SYNTAX 509syn keyword rapidConstant ERR_TASKNAME 510syn keyword rapidConstant ERR_TP_DIBREAK ERR_TP_DOBREAK ERR_TP_MAXTIME ERR_TP_NO_CLIENT ERR_TP_PERSBOOLBREAK 511syn keyword rapidConstant ERR_TRUSTLEVEL ERR_TXTNOEXIST ERR_UDPUC_COMM 512syn keyword rapidConstant ERR_UISHOW_FATAL ERR_UISHOW_FULL ERR_UI_INITVALUE ERR_UI_MAXMIN ERR_UI_NOTINT 513syn keyword rapidConstant ERR_UNIT_PAR ERR_UNKINO ERR_UNKPROC ERR_UNLOAD ERR_USE_PROF 514syn keyword rapidConstant ERR_WAITSYNCTASK ERR_WAIT_MAX ERR_WAIT_MAXTIME ERR_WHL_SEARCH ERR_WHLSEARCH ERR_WOBJ_MOVING 515" error codes starting with CORR_ 516syn keyword rapidConstant CORR_NOFREE CORR_NOOBJECT CORR_NOTCONN 517" error codes starting with SEN_ 518syn keyword rapidConstant SEN_BUSY SEN_CAALARM SEN_CAMCHECK SEN_EXALARM SEN_GENERRO SEN_NO_MEAS SEN_NOREADY SEN_TEMP SEN_TIMEOUT SEN_UNKNOWN SEN_VALUE 519" error codes starting with SYS_ 520syn keyword rapidConstant SYS_ERR_ARL_INPAR_RDONLY SYS_ERR_HW_SMB_WARNING_BATTERY_LOW SYS_ERR_MOC_CNV_REC_FILE_UNKNOWN SYS_ERR_MOC_CNV_REC_NOT_READY 521" error codes starting with TC_ 522syn keyword rapidConstant TC_ERR_AIR TC_ERR_CLOSE_COV TC_ERR_DOUNLOCK TC_ERR_IO TC_ERR_IOCFG TC_ERR_LOCK TC_ERR_NOTOOL TC_ERR_OPEN_COV TC_ERR_POWER TC_ERR_PULOCK TC_ERR_ROBPOS TC_ERR_ROBPOS_DROP TC_ERR_ROBPOS_PICK TC_ERR_SERVO_TOOL TC_ERR_STANDNUM TC_ERR_TOOL TC_ERR_TOOLCFG TC_ERR_TOOLNUM TC_ERR_UNLOCK 523" long jump error 524syn keyword rapidConstant LONG_JMP_ALL_ERR 525" Arc and Arc sensor 526syn keyword rapidConstant AW_IGNI_ERR AW_EQIP_ERR AW_START_ERR AW_STOP_ERR AW_TRACK_ERR AW_TRACKCORR_ERR AW_TRACKSTA_ERR AW_USERSIG_ERR AW_WELD_ERR AW_WIRE_ERR 527" EGM egmframetype 528syn keyword rapidConstant EGM_FRAME_BASE EGM_FRAME_TOOL EGM_FRAME_WOBJ EGM_FRAME_WORLD EGM_FRAME_JOINT 529" EGM egmstate 530syn keyword rapidConstant EGM_STATE_DISCONNECTED EGM_STATE_CONNECTED EGM_STATE_RUNNING 531" EGM egmstopmode 532syn keyword rapidConstant EGM_STOP_HOLD EGM_STOP_RAMP_DOWN 533syn keyword rapidConstant EGM_MAX_RAPID_DNUM 534" Events 535syn keyword rapidConstant EE_START EE_CYCLE_START EE_PROC_START EE_PRE_PROD EE_CLOSE_JIG EE_INDEX EE_PRE_PART EE_POST_PART EE_OPEN_JIG EE_SERVICE EE_POST_PROD EE_ABORT EE_WAIT_ORDER EE_POST_PROC 536syn keyword rapidConstant EE_POWERON EE_POWERON_OR_START EE_RESTART EE_START_OR_RESTART EE_STOP EE_QSTOP EE_STOP_OR_QSTOP EE_RESET EE_STEP EE_STEP_FWD EE_STEP_BCK EE_BEFORE_INIT EE_AFTER_INIT EE_BEFORE_PROD EE_AFTER_PROD EE_BEFORE_MENU EE_AFTER_MENU 537syn keyword rapidConstant EE_ERROR EE_HOMERUN EE_PROG_END EE_AFTER_PROG_NUMBER EE_PROGNO_UNKNOWN EE_PROD_UNKNOWN EE_MSG_WRITTEN EE_MSG_ACKNOWLEDGED EE_AFTER_PART EE_BEFORE_HOMERUN EE_AFTER_HOMERUN EE_BLOCKED 538" motion process mode 539syn keyword rapidConstant OPTIMAL_CYCLE_TIME_MODE LOW_SPEED_ACCURACY_MODE LOW_SPEED_STIFF_MODE ACCURACY_MODE MPM_USER_MODE_1 MPM_USER_MODE_2 MPM_USER_MODE_3 MPM_USER_MODE_4 540" inttypes 541syn keyword rapidConstant USINT UINT UDINT ULINT SINT INT DINT LINT 542" opcalc 543syn keyword rapidConstant OpAdd OpSub OpMult OpDiv OpMod 544" triggmode 545syn keyword rapidConstant TRIGG_MODE1 TRIGG_MODE2 TRIGG_MODE3 546" tunetype 547syn keyword rapidConstant TUNE_DF TUNE_KP TUNE_KV TUNE_TI TUNE_FRIC_LEV TUNE_FRIC_RAMP TUNE_DG TUNE_DH TUNE_DI TUNE_DK TUNE_DL 548" cellopmode 549syn keyword rapidConstant OP_NO_ROBOT OP_SERVICE OP_PRODUCTION 550" execution mode 551syn keyword rapidConstant CT_CONTINUOUS CT_COUNT_CYCLES CT_COUNT_CYC_ACTION CT_PERIODICAL 552" Force Control 553syn keyword rapidConstant FC_REFFRAME_TOOL FC_REFFRAME_WOBJ FC_LIN_X FC_LIN_Y FC_LIN_Z FC_ROT_X FC_ROT_Y FC_ROT_Z FC_SPEED_RATIO_MIN FC_NO_OF_SPEED_LEVELS 554" tpnum 555syn keyword rapidConstant TP_LATEST TP_PROGRAM TP_SCREENVIEWER 556" paridvalidnum 557syn keyword rapidConstant ROB_LOAD_VAL ROB_NOT_LOAD_VAL ROB_LM1_LOAD_VAL 558" paridnum 559syn keyword rapidConstant TOOL_LOAD_ID PAY_LOAD_ID IRBP_K IRBP_L IRBP_C IRBP_C_INDEX IRBP_T IRBP_R IRBP_A IRBP_B IRBP_D 560" loadidnum 561syn keyword rapidConstant MASS_KNOWN MASS_WITH_AX3 562" sensorstate 563syn keyword rapidConstant STATE_ERROR STATE_UNDEFINED STATE_CONNECTED STATE_OPERATING STATE_CLOSED 564" signalorigin 565syn keyword rapidConstant SIGORIG_NONE SIGORIG_CFG SIGORIG_ALIAS 566" aiotrigg 567syn keyword rapidConstant AIO_ABOVE_HIGH AIO_BELOW_HIGH AIO_ABOVE_LOW AIO_BELOW_LOW AIO_BETWEEN AIO_OUTSIDE AIO_ALWAYS 568" socketstatus 569syn keyword rapidConstant SOCKET_CREATED SOCKET_CONNECTED SOCKET_BOUND SOCKET_LISTENING SOCKET_CLOSED 570" symnum of OpMode() 571syn keyword rapidConstant OP_UNDEF OP_AUTO OP_MAN_PROG OP_MAN_TEST 572" symnum of RunMode() 573syn keyword rapidConstant RUN_UNDEF RUN_CONT_CYCLE RUN_INSTR_FWD RUN_INSTR_BWD RUN_SIM RUN_STEP_MOVE 574" event_type of EventType() 575syn keyword rapidConstant EVENT_NONE EVENT_POWERON EVENT_START EVENT_STOP EVENT_QSTOP EVENT_RESTART EVENT_RESET EVENT_STEP 576" handler_type of ExecHandler() 577syn keyword rapidConstant HANDLER_NONE HANDLER_BWD HANDLER_ERR HANDLER_UNDO 578" event_level of ExecLevel() 579syn keyword rapidConstant LEVEL_NORMAL LEVEL_TRAP LEVEL_SERVICE 580" signalorigin of GetSignalOrigin() 581syn keyword rapidConstant SIGORIG_NONE SIGORIG_CFG SIGORIG_ALIAS 582" opnum 583syn keyword rapidConstant LT LTEQ EQ NOTEQ GT GTEQ 584" icondata 585syn keyword rapidConstant iconNone iconInfo iconWarning iconError 586" buttondata 587syn keyword rapidConstant btnNone btnOK btnAbrtRtryIgn btnOKCancel btnRetryCancel btnYesNo btnYesNoCancel 588" btnres 589syn keyword rapidConstant resUnkwn resOK resAbort resRetry resIgnore resCancel resYes resNo 590" cfgdomain 591syn keyword rapidConstant ALL_DOMAINS EIO_DOMAIN MMC_DOMAIN MOC_DOMAIN PROC_DOMAIN SIO_DOMAIN SYS_DOMAIN 592" errdomain 593syn keyword rapidConstant COMMON_ERR OP_STATE SYSTEM_ERR HARDWARE_ERR PROGRAM_ERR MOTION_ERR OPERATOR_ERR IO_COM_ERR USER_DEF_ERR SAFETY_ERR PROCESS_ERR CFG_ERR OPTION_PROD_ERR ARCWELD_ERR SPOTWELD_ERR PAINT_ERR PICKWARE_ERR 594" errtype 595syn keyword rapidConstant TYPE_ALL TYPE_ERR TYPE_STATE TYPE_WARN 596" Sensor Interface 597syn keyword rapidConstant LTAPP__AGE LTAPP__ANGLE LTAPP__AREA LTAPP__CAMCHECK LTAPP__GAP LTAPP__JOINT_NO LTAPP__LASER_OFF LTAPP__MISMATCH LTAPP__PING LTAPP__POWER_UP LTAPP__RESET LTAPP__STEPDIR LTAPP__THICKNESS LTAPP__UNIT 598syn keyword rapidConstant LTAPP__X LTAPP__Y LTAPP__Z LTAPP__APM_P1 LTAPP__APM_P2 LTAPP__APM_P3 LTAPP__APM_P4 LTAPP__APM_P5 LTAPP__APM_P6 LTAPP__ROT_Y LTAPP__ROT_Z LTAPP__X0 LTAPP__Y0 LTAPP__Z0 LTAPP__X1 LTAPP__Y1 LTAPP__Z1 LTAPP__X2 LTAPP__Y2 LTAPP__Z2 599" iounit_state 600syn keyword rapidConstant IOUNIT_LOG_STATE_DISABLED IOUNIT_LOG_STATE_ENABLED IOUNIT_PHYS_STATE_DEACTIVATED IOUNIT_PHYS_STATE_RUNNING IOUNIT_PHYS_STATE_ERROR IOUNIT_PHYS_STATE_UNCONNECTED IOUNIT_PHYS_STATE_UNCONFIGURED IOUNIT_PHYS_STATE_STARTUP IOUNIT_PHYS_STATE_INIT IOUNIT_RUNNING IOUNIT_RUNERROR IOUNIT_DISABLE IOUNIT_OTHERERR 601" busstate 602syn keyword rapidConstant IOBUS_LOG_STATE_STARTED IOBUS_LOG_STATE_STOPPED IOBUS_PHYS_STATE_ERROR IOBUS_PHYS_STATE_HALTED IOBUS_PHYS_STATE_INIT IOBUS_PHYS_STATE_RUNNING IOBUS_PHYS_STATE_STARTUP 603syn keyword rapidConstant BUSSTATE_ERROR BUSSTATE_HALTED BUSSTATE_INIT BUSSTATE_RUN BUSSTATE_STARTUP 604" SoftMove 605syn keyword rapidConstant CSS_POSX CSS_NEGX CSS_POSY CSS_NEGY CSS_POSZ CSS_NEGZ CSS_X CSS_Y CSS_Z CSS_XY CSS_XZ CSS_YZ CSS_XYZ CSS_XYRZ CSS_ARM_ANGLE CSS_REFFRAME_TOOL CSS_REFFRAME_WOBJ 606" tsp_status 607syn keyword rapidConstant TSP_STATUS_NOT_NORMAL_TASK TSP_STATUS_DEACT TSP_STATUS_DEACT_SERV_ROUT TSP_STATUS_ACT TSP_UNCHECKED_RUN_SERV_ROUT TSP_NORMAL_UNCHECKED TSP_STATIC_UNCHECKED TSP_SEMISTATIC_UNCHECKED TSP_NORMAL_CHECKED TSP_STATIC_CHECKED TSP_SEMISTATIC_CHECKED 608" IRC5P (paint controller) 609syn keyword rapidConstant PW_EQUIP_ERR 610" Bulls Eye 611syn keyword rapidConstant BESuccess BENoOverwrite BENoNameMatch BENoBEDataMod BEArrayFull BEToolNotFound BEInvalidSignal BEAliasSet BERangeLimFail BERangeSingFail BERangeTiltFail BEScanPlaneErr BEBFrameNotRead BEScanRadZero BEHeightSrchErr BEBeamNotFound BEBeamSpinErr BESrchErrInBeam BESrchErrNoDet BENumOfScansErr BEDiaZeroOrLess BESliceCountErr BEGetNewTcpMax BEBeamOriFail BEGetTcpDelErr BERefPosSetErr BERefToolSetErr BERefBeamSetErr BEBFrameDefErr BESetupAlready BERefResetErr BESetupFailed BEToolNotSet BEStartChanged BEBeamMoveErr BECheckTcp BECheckErr BESkipUpdate BEStrtningErr BEAllNotSet BEQuikRefNotDef BEConvergErr BEInstFwdErr BEGetGantryErr BEUnknownErr 612" Continuous Application Platform constants 613syn keyword rapidConstant CAP_START START_PRE PRE_STARTED START_MAIN MAIN_STARTED STOP_WEAVESTART WEAVESTART_REGAIN MOTION_DELAY STARTSPEED_TIME MAIN_MOTION MOVE_STARTED RESTART NEW_INSTR AT_POINT AT_RESTARTPOINT LAST_SEGMENT PROCESS_END_POINT END_MAIN MAIN_ENDED PATH_END_POINT PROCESS_ENDED END_POST1 POST1_ENDED END_POST2 POST2_ENDED CAP_STOP CAP_PF_RESTART EQUIDIST AT_ERRORPOINT FLY_START FLY_END LAST_INSTR_ENDED END_PRE PRE_ENDED START_POST1 POST1_STARTED START_POST2 POST2_STARTED 614syn keyword rapidConstant CAP_PRE_ERR CAP_PRESTART_ERR CAP_END_PRE_ERR CAP_START_ERR CAP_MAIN_ERR CAP_ENDMAIN_ERR CAP_START_POST1_ERR CAP_POST1_ERR CAP_POST1END_ERR CAP_START_POST2_ERR CAP_POST2_ERR CAP_POST2END_ERR CAP_TRACK_ERR CAP_TRACKSTA_ERR CAP_TRACKCOR_ERR CAP_TRACKCOM_ERR CAP_TRACKPFR_ERR CAP_SEN_NO_MEAS CAP_SEN_NOREADY CAP_SEN_GENERRO CAP_SEN_BUSY CAP_SEN_UNKNOWN CAP_SEN_ILLEGAL CAP_SEN_EXALARM CAP_SEN_CAALARM CAP_SEN_TEMP CAP_SEN_VALUE CAP_SEN_CAMCHECK CAP_SEN_TIMEOUT 615" Machine Tending grppos 616syn keyword rapidConstant gsOpen gsVacuumOff gsBackward gsClose gsVacuumOn gsForward gsReset 617" Machine Tending grpaction 618syn keyword rapidConstant gaSetAndCheck gaSet gaCheck gaCheckClose gaCheckClose 619" Palletizing PowerPac 620syn keyword rapidConstant PM_ERR_AXLIM PM_ERR_CALCCONF PM_ERR_FLOW_NOT_FOUND PM_ERR_INVALID_FLOW_STOP_OPTION PM_ERR_JOB_EMPTY PM_ERR_LIM_VALUE PM_ERR_NO_RUNNING_PROJECT PM_ERR_NO_TASK PM_ERR_NOT_VALID_RECOVER_ACTION PM_ERR_OPERATION_LOST PM_ERR_PALLET_EMPTY PM_ERR_PALLET_REDUCED PM_ERR_PART_VAL PM_ERR_PROJ_NOT_FOUND PM_ERR_REDO_LAST_PICK_REJECTED PM_ERR_TIMEOUT PM_ERR_WA_NOT_FOUND PM_ERR_WOBJ PM_ERR_WORKAREA_EXPECTED PM_ERR_WRONG_FLOW_STATE 621syn keyword rapidConstant PM_ACK PM_NACK PM_LOST PM_RECOVER_CONTINUE_OPERATION PM_RECOVER_REDO_LAYER PM_RECOVER_NEXT_PALLET PM_RECOVER_REDO_LAST_PICK PM_FLOW_ERROR PM_FLOW_FINISH_CYCLE PM_FLOW_FINISH_LAYER PM_FLOW_FINISH_PALLET PM_FLOW_RUNNING PM_FLOW_STOP_IMMEDIATELY PM_FLOW_STOPPED PM_FLOW_STOPPING_AFTER_CYCLE PM_FLOW_STOPPING_AFTER_LAYER PM_FLOW_STOPPING_AFTER_PALLET PM_APPROACH_POS PM_DEPART_POS PM_TARGET_POS PM_EVENT_PROC PM_EVENT_DO PM_EVENT_GO PM_MOVE_JOINT PM_MOVE_LIN PM_SEARCH_X PM_SEARCH_Y PM_SEARCH_Z PM_SING_AREA_OFF PM_SING_AREA_WRI PM_STOP_NOT_USED PM_STOP PM_PSTOP PM_SSTOP PM_PROJECT_STOPPED PM_PROJECT_STOPPING PM_PROJECT_STARTING PM_PROJECT_RUNNING PM_PROJECT_ERROR 622syn keyword rapidConstant MaxToolAngle MinToolAngle 623" other constants 624syn keyword rapidConstant GAP_SERVICE_TYPE GAP_SETUP_TYPE GAP_STATE_IDLE GAP_STATE_PART GAP_STATE_SERV GAP_STATE_SETUP GAP_STATE_UNKN GAP_TASK_NAME GAP_TASK_NO GAP_SHOW_ALWAYS GAP_SHOW_NEVER GAP_SHOW_SAFE GAP_SHOW_SERVICE 625syn keyword rapidConstant EOF EOF_BIN EOF_NUM 626syn keyword rapidConstant END_OF_LIST WAIT_MAX 627syn keyword rapidErrNo ERRNO 628syn keyword rapidIntNo INTNO 629" VW Konzernstandard VWKS_1.07.02 630syn keyword rapidIntNo KG_UNDEFINIERT KG_LETZTEPOS KG_GREIFPOS KG_ZWISCHENPOS KG_TOOLINFO KG_GREIFPOSKORR 631syn keyword rapidIntNo BA1 BA2 632syn keyword rapidIntNo SetupXY SetupZ KorrekturXY KorrekturZ 633if g: rapidGroupName 634highlight default link rapidConstant Sysvars 635highlight default link rapidErrNo Sysvars 636highlight default link rapidIntNo Sysvars 637endif 638" }}} ERRNO Constants 639 640" Error {{{ 641if get ( g:, 'rapidShowError' , 1 ) 642" 643" vars or funcs >32 chars are not possible in rapid. a234567890123456789012345 644syn match rapidErrorIdentifierNameTooLong /\k\{33,} /containedin = rapidFunction , rapidNames , rapidLabel 645highlight default link rapidErrorIdentifierNameTooLong Error 646" 647" a == b + 1 648syn match rapidErrorShouldBeColonEqual /\c\v%(^\s * %(%(TASK\s+|LOCAL\s+)?%(VAR|PERS|CONST)\s+\k+\s+)?\k+%(\k| [ .{},*/+- ] ) * \s * )@<=\= / 649highlight default link rapidErrorShouldBeColonEqual Error 650" 651" WaitUntil a==b 652syn match rapidErrorShouldBeEqual /\c\v%(^\s * %(Return|WaitUntil|while)> [ ^!\\ ] + [ ^!<> ] )@<=%(\=|:)\= / 653syn match rapidErrorShouldBeEqual /\c\v%(^\s * %(if|elseif)> [ ^!\\ ] + [ ^!<> ] )@<=%(\=|:)\=\ze [ ^!\\ ] +<then> / 654highlight default link rapidErrorShouldBeEqual Error 655" 656" WaitUntil a=>b 657syn match rapidErrorShoudBeLessOrGreaterEqual /\c\v%(^\s * %(Return|WaitUntil|if|elseif|while)> [ ^! ] + [ ^!<> ] )@<=\= [ >< ] / 658highlight default link rapidErrorShoudBeLessOrGreaterEqual Error 659" 660" WaitUntil a><b 661syn match rapidErrorShouldBeLessGreater /\c\v%(^\s * %(Return|WaitUntil|if|elseif|while) [ ^! ] +)@<=\>\s * \< / 662highlight default link rapidErrorShouldBeLessGreater Error 663" 664" if (a==5) (b==6) 665syn matchrapidErrorMissingOperator /\c\v%(^\s* %(Return|WaitUntil|if|elseif|while)[ ^!] +[ ^!] )@<= \)\s* \(/ 666highlight default link rapidErrorMissingOperator Error 667" 668" "for" missing "from" 669syn match rapidErrorMissingFrom /\c\v^\s * for\s+%( [ [:upper: ][ :lower: ] ]%(\k| [ .{},*/+- ] ) * \s+from)@!\S+\s+\S+ / 670highlight default link rapidErrorMissingFrom Error 671" 672" 673endif 674" }}} Error 675 676" }}} 677endif 678 679" common Error {{{ 680if get ( g:, 'rapidShowError' , 1 ) 681" 682" This error must be defined after rapidString 683" string too long 684" syn match rapidErrorStringTooLong /\v%("%(""|\\\\|\\\x\x|[^"\\]){80})@240<=%([^"]|"{2})+/ contained contains=rapidStringDoubleQuote,rapidEscapedBackSlash,rapidCharCode,rapidErrorSingleBackslash 685highlight default link rapidErrorStringTooLong Error 686" 687endif 688 689" }}} Error 690 691" Finish {{{ 692let & cpo = s: keepcpo 693unlet s: keepcpo 694 695let b: current_syntax = "rapid" 696" }}} Finish 697 698" vim:sw=2 sts=2 et fdm=marker