-
Notifications
You must be signed in to change notification settings - Fork 115
/
RAPID.uew
executable file
·681 lines (646 loc) · 24.1 KB
/
RAPID.uew
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
>>--Rapid WordFile----------------------------------"20/05/2021"-.
| |
| [ Language: Rapid (Irc5) ] |
| [ Version: 1.3 ] |
| |
.----------------------------------------------------------------------.
| Notes: >>---------------------------------.|
.----------------------------------| By: Antoine |
| >>----------------------------------|
| |
! - ## View this module with the ABB Rapid IRC5 highligting enabled! |
| |
! - The Rapid_DATA Language can be used for a extended functionlist |
! that scans for datatypes # NOT completed! |
! *press F8 to open the functionlist |
! Press Ctrl+f and find Rapid_DATA, add your data names there. |
| |
! - Use the User 1, 2 & 3 to include user defined highlighting |
| |
! - I havnt figured out how to predefine a colorgroup so dont forget |
! to modify your theme under: layout->themes->syntax. |
| |
| - NOTE! The Reindent selection is NOT compatible with the |
! compact if function! wich is disabled by default! |
| - Uncomment line 418 & 419 to enable the indent section! |
| |
| - NOTE! This wordfile does not have 100% of the available rapid |
! code included, i have stopped to add new data since end 2019. |
| |
| Feel free to modify or extend this wordfile. ENJOY !
.----------------------------------------------------------------------.
/L2"Rapid_IRC5" /Nocase /Line Comment = !
/File Extensions = SYS MOD PRG
/File Names = Rapid_Pro
!###################################################################################
COLORS GROUPS !##################################################################
!#################################################################################
! You can change the User_x to your own description.
/C1"User_1"
aaa
/C2"User_2"
bbb
/C3"User_3"
Score
Highscore
RandomNumber
Difficulty
Turn
MoveSpeed
level
Deaths
GameTime
Champion
GridData
GameData
Game
GridSize
Pressure
RetractHeight
EntryHeight
Installed
RobotStarts
ErasorPresent
BoardIsClean
Draw_Grid
Tp_Mode
RobotWins
GameOver
Player
Robot
Grid
WinGrid
NOTE
Rapid
IRC5
ENJOY
Antoine
!#######################################################################################################
/C4"Variables"
ALIAS
BACKWARD
CONST
INOUT
PERS
TASK
VAR
By
TGBegin
TGEnd
/C5"Datatypes"
AsInteger
bool btnres byte btnOKCancel
CirTargets clock confdata CallByVar
dionum datapos dnum dir Directory diskhome disktemp
errnum extjoint extax eax_a eax_b eax_c eax_d eax_e eax_f ERRNO
header
intnum iodev interch iconInfo iconnone
jointtarget
loaddata listitem load0
mecunit motsetdata MoveHome
num
orient o_jointtarget o_robtarget opnum OP_AUTO OP_MAN_PROG OP_MAN_TEST OP_UNDEF oframe
partadv partdata pos pose progdisp
robjoint robtarget robax rax_1 rax_2 rax_3 rax_4 rax_5 rax_6 ROB_1 ROB_2 ROB_3 ROB_4 ROB_5 Result
shapedata spotdata spotmdata syncident signalxx seamdata signalai signalao signaldi signaldo signalgi signalgo speeddata string switch symnum
tooldata tpnum triggdata tunetype trans Tool0 taskid tasks task
uframe
volumedata v_leax v_ori v_reax v_tcp
wobjdata welddata weavedata wzstationary wztemporary Wobj0
stn1 stn2
zonedata
x y z
TGFindStr TGFindBStart TGFindBEnd
/C6"Functions"
%
AND
CONNECT
DO
ELSE ELSEIF ENDFOR ENDIF ENDRECORD ENDTEST ENDWHILE EXIT
FOR FROM
GOTO
IF
LOCAL Language
Name NOVIEW NOSTEPIN
OR
RECORD READONLY
SYSMODULE
THEN TO
Version VIEWONLY
WHILE WITH
/C7"Runtime"
Abs Acos AOutput ArgName ASin ATan ATan2 AbsDnum AInput
ByteToStr Buttons
CalcJointT CalcRobT Calc_CirCntr CDate CJointT ClkRead CnvrtRobt Cos CPos CRobT CTime CTool CWobj CJoint
DefDFrame DefFrame Dim Disp_Wobj DefAccFrame DnumToStr Distance DotProd DInput DOutput DefaultIndex DecToHex
EulerZYX Exp
FileTime FileSize
GetNextSym GetTime GInput GOutput GetNextMechUnit etSysInfo GetTaskName
HexToDec
IsPers IsVar IsFile IsStopStateEvent Icon iconwarning
MirPos ModTime Message MinValue ManLoadIdProc MechUnitLoad MsgArray BtnArray MaxRobSpeed MakeDir
NOrient NumToStr NonMotionMode
Offs OpMode OrientZYX OrientZXY ORobT
PoseInv PoseMult PoseVect Pow Present ProgMemFree
ReadBin ReadMotor ReadNum ReadStr ReadStrBin RobOS RoundDnum RelTool Round RunMode RawBytesLen
Sin SingAreaWrist SYS_POWERON SetForce SYS_RESET SocketGetStatus SetAllDataVal Sqrt SqrtDnum StrFind StrLen StrMap StrMatch StrMemb StrOrder StrPart StrToByte StrToVal
SocketAccept SocketBind SocketClose SocketConnect SocketCreate SocketListen SocketReceive SocketSend SpcDump SpcRead SpcStat SpcWrite SpeedPrioDeact
SpotJ SpotL SpotMJ SpotML SpyStart SpyStop
Tan TestAndSet TestDI TextGet TextTabGet Trunc TruncDnum TaskRunMec TaskRunRob
ValToStr VectMagn
\
/C8"Operators"
:
=
&
*
+
-
.
<
>
Add AndAlso As
Not
OrElse
Xor
pi
Incr
decr
/C9"Runtime Instructions"
AccSet ActUnit AliasIO ArcKill ArcRefresh
Break BitClear BitSet BookErrNo
Clear ClkReset ClkStart ClkStop Close ConfJ ConfL CancelLoad CirPathMode CirPathReori ClearIOBuff ClearPath CloseDir ClearRawBytes
CalibJ CalibL Calibrate CopyRawBytes CorrRead CorrWrite
DeactUnit DistCnvStart DitherAct DitherDeact DropSensor DropWObj DataLogReset
EOffsOff EOffsOn EOffsSet ExitCycle
false
GetSysData GetTrapData GlueC GlueJ GlueL GripLoad GetAllItmSrc GetDataVal GetItmTgt GetItmTgts
IDelete IDisable IEnable InvertDO IError IODisable IPers ISignalGO ISignalAI ISignalAO IOEnable ISignalDI ISignalDO ISleep ITimer IVarValue IWatch inpos inpos100 inpos20 inpos50
IndAMove IndCMove IndDMove IndReset IndRMove IsMechUnitActive IsSyncMoveOn IsSysId
Load
MoveCDO MoveJDO MoveLDO MoveCSync MoveJSync MoveLSync
Open OpenDir
CopyFile
RemoveFile
PathResol ProcCall PFIOResto PackDNHeader PackRawBytes PathAccLim PathRecStart PathRecStop PathRecMoveBwd PathRecMoveFwd PDispOff PDispOn PDispSet PulseDO
Reset RenameFile RestoPath Rewind ram1disk reg1 reg2 reg3 reg4 reg5 reg6 reg7 reg8 reg9 resolver_angle RESTORE_IO RaiseToUser ReadAnyBin ReadBlock ReadCfgData ReadErrData ReadRawBytes ReadVar RemoveDir
SearchC SearchL SCWrite Set SetAO SetDO SetDataSearch SetDataVal SetGO SetSysData SingArea SoftAct SoftDeact StartMove Stop StopMove StorePath Srch_Circ_In Srch_Circ_Out
TPErase TPReadFK TPReadNum TPShow TPWrite TriggC TriggEquip TriggInt TriggIO TriggJ TriggL TuneReset Tune_Circ_In Tune_Circ_Out TRUE
UnLoad UINumEntry UIListView UIMessageBox UIAlphaEntry UIClientExist UINumTune
VelSet
WaitDI WaitDO WaitTime WaitUntil Weld_Circ_In Weld_Circ_Out Write WriteBin WriteStrBin WZBoxDef WZHomeJointDef WZLimJointDef WZTempFree WaitSensor WaitSyncTask WaitWObj WarmStart WorldAccLim WZCylDef WZDisable WZDOSet WZEnable WZFree WZLimSup WZSphDef
WriteAnyBin WriteCfgData WriteRawBytes
/C10"Tool\WObj"
tPaintGun
Tool
tPencil
PenTool
tGripper
Binzel
tweldgun
WObj Wobj_s1 Wobj_s2 WobjX
/C11"Movement"
MoveJ MoveL MoveC MoveAbsJ MoveExtJ
/C12"welding"
ArcLEnd ArcLStart ArcL ArcCStart ArcC ArcCEnd
/C13"HighSpeed"
v2000 v5000 v7000 v1000 v1500 v2500 v3000 v3500 v4000 v4500 v5000 v600 v6000 v6500 v5500 v7000 v700 v800 v900 vlin1000
vmax v_max high
iconError
ErrWrite EraseModule ErrLog ErrRaise
ERR_ACC_TOO_LOW 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_AXIS_ACT ERR_AXIS_IND
ERR_AXIS_MOVING ERR_AXIS_PAR ERR_BUSSTATE ERR_BWDLIMIT ERR_CALC_DIVZERO ERR_CALC_NEG ERR_CALC_OVERFLOW
ERR_CALLPROC ERR_CFG_ILLTYPE ERR_CFG_INTERNAL ERR_CFG_LIMIT ERR_CFG_NOTFND ERR_CFG_OUTOFBOUNDS
ERR_CNTNOTVAR ERR_CNV_CONNECT ERR_CNV_DROPPED ERR_CNV_NOT_ACT ERR_COMM_EXT ERR_COMM_INIT_FAILED
ERR_DATA_RECV ERR_DEV_MAXTIME ERR_DIPLAG_LIM ERR_DIVZERO ERR_EXECPHR ERR_FILEACC ERR_FILEEXIST
ERR_FILEOPEN ERR_FILNOTFND ERR_FNCNORET ERR_FRAME ERR_GO_LIM ERR_ILLDIM ERR_ILLQUAT ERR_ILLRAISE
ERR_INDCNV_ORDER ERR_INOISSAFE ERR_INOMAX ERR_INT_MAXVAL ERR_INT_NOTVAL ERR_INVDIM ERR_IODISABLE
ERR_IOENABLE ERR_IOERROR ERR_ITMSRC_UNDEF ERR_LINKREF ERR_LOADED ERR_LOADID_FATAL ERR_LOADID_RETRY
ERR_LOADNO_INUSE ERR_LOADNO_NOUSE ERR_MAXINTVAL ERR_MODULE ERR_MOD_NOTLOADED ERR_NAME_INVALID
ERR_NORUNUNIT ERR_NOTARR ERR_NOTEQDIM ERR_NOTINTVAL ERR_NOTPRES ERR_NOTSAVED ERR_NOT_MOVETASK
ERR_NUM_LIMIT ERR_OUTOFBND ERR_OVERFLOW ERR_PATH ERR_PATHDIST ERR_PATH_STOP ERR_PID_MOVESTOP
ERR_PID_RAISE_PP ERR_PPA_BUFFULL ERR_PPA_NONAME ERR_PRGMEMFULL ERR_PROCSIGNAL_OFF ERR_PROGSTOP
ERR_RANYBIN_CHK ERR_RANYBIN_EOF ERR_RCVDATA ERR_REFUNKDAT ERR_REFUNKFUN ERR_REFUNKPRC ERR_REFUNKTRP
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 ERR_ROBLIMIT ERR_SC_WRITE ERR_SIGSUPSEARCH ERR_SOCK_CLOSED ERR_SOCK_TIMEOUT
ERR_SPEED_REFRESH_LIM ERR_STARTMOVE ERR_STRTOOLNG ERR_SYM_ACCESS ERR_SYNCMOVEOFF ERR_SYNCMOVEON ERR_SYNTAX
ERR_TASKNAME ERR_TP_DIBREAK ERR_TP_DOBREAK ERR_TP_MAXTIME ERR_TP_NO_CLIENT ERR_TRUSTLEVEL ERR_TXTNOEXIST
ERR_UISHOW_FATAL ERR_UISHOW_FULL ERR_UI_INITVALUE ERR_UI_MAXMIN ERR_UI_NOTINT ERR_UNIT_PAR ERR_UNKINO
ERR_UNKPROC ERR_UNLOAD ERR_WAITSYNCTASK ERR_WAIT_MAXTIME ERR_WHLSEARCH ERR_WOBJ_MOVING
ERR_LOADED ERR_FILEACC ERR_MODULE ERR_ACC_TOO_LOW ERR_ALIASIO_DEF ERR_ALIASIO_TYPE ERR_ALRDYCNT ERR_ALRDY_MOVING
ERR_AO_LIM ERR_ARGDUPCND ERR_ARGNAME ERR_ARGNOTPER ERR_ARGNOTVAR
!Errors_Incomplete!
/C14"LowSpeed"
v0 v100 v150 v2 v20 v200 v25 v250 v3 v30 v300 v35 v350 v4 v40 v400 v45 v450 v5 v50 v500 v60 v70 v80 v90 vlin10 vlin100 vlin20 vlin200 vlin50 vlin500 vrot1 vrot10 vrot100 vrot2 vrot20 vrot5 vrot50
v1 v2 v3 v4 v5 v10
low vLow vSlow slow
SafePos
Main
/C15"Zone"
fine
z0 z1 z10 z100 z15 z150 z2 z20 z200 z3 z30 z4 z40 z5 z50 z60 z70 z80 z90
/C16"Switches"
\AORamp \AOp \ASCII \Accuracy \AllMotionTasks \AllMoveTasks \AlreadyActive \Append \Arm \AxisNumber
\BackupFile \Bin \Block \BreakFlag \BreakOff \Bwd \CirPointOri \Clear \ClientAddress \Conc
\ConfAngle \ConfigAngle \ConstSym \Continue \Corr \D \DIBreak \DNeg \DOBreak \DODelay \DOp \DPos
\Data \DeactAll \DefinedFlag \DipLag \DistCnvStart \Dx \Dy \Dynamic \Dz \EioNameSensor \EioNameStop \EioNameTrigVis
\ErrDO \ErrIfChanged \ErrorId \ErrorNumber \ExeP \F1 \F2 \File \FilePath \Float4 \FromIndex \Fwd \GO1 \GO2
\GO3 \GO4 \GOp \GlobalSym \GrpSize \Halt \Hex1 \Image \InMod \InPos \InRout
\InTask \Inhib \InitCmd \Inside \InstanceId \IntX \KeepSync \Level \ListNo \LoadIdType \LocalSym \Logic
\MaxTime \MechUnit \MechUnitName \MsgLine2 \MsgLine3 \MsgLine4 \MsgLine5 \Network \NoCloseBtn \NoConc
\NoEOffs \NoNewLine \NoOfBytes \NoRecBytes \NoRegain \Object \ObjectFrame \ObjectName \Off \Old \On
\Outside \PLength \PStop \ParIdType \PathFrame \PayLoad \PersSym \Phys \PollRate \PredTime \Quick \RL2
\RL3 \RL4 \Ramp \RawData \Read \RefNum \RefPos \RelDist \Retract \Rot \Rx \Ry \Rz \SDelay \Save \Short \Single
\SlowTest \Speed \Start \Stat \Status \Stop \StopBlock \StopMove \Str \Str1 \Str2 \Str3 \Str4 \Str5
\Strict \Sup \SyncLastMoveInst \SyncOrgMoveInst \T \T2 \T3 \T4 \T5 \T6 \T7 \T8 \TaskRef \Teach \Temp \Time
\TimeFlag \TimeOut \ToAbsNum \ToAbsPos \ToRelNum \ToRelPos \ToolOffs \TuneValue \TypeMod \UnloadFile
\UnloadPath \VarSym \WorkAreaWarning \Wrap \Wrist \Write \XPos
/C17"Routines"
Case DEFAULT STEP
ENDPROC ENDMODULE ENDTRAP ENDFUNC ERROR
FUNC
MODULE
PROC
RETURN RETRY RAISE
TRAP TEST TRYNEXT
vHigh vMax
/C18"Placeholders"
< TDN !> -data_type_defenition
< DNN !> -data_declaration
< RDN !> -routine_declaration
< PAR !> -parameter_declaration
< ALT !> -alternative_parameter_declaration
< DIM !> -array_dimension
< SMT !> -statement
< VAR !> -data_object_(var/pers/par)_reference
< EIT !> -else_if_claude_of_if_statement
< CSE !> -case_clause_of_test_statement
< EXP !> -expression
< ARG !> -procedure_call_argument
< ID !> -identidier
/C19"Braces"
[
]
(
)
{
}
/C20"Semicolon"
;
/CEnd
! ## FUNCTIONLIST #######################################################################
/TGBegin "MODULE"
/TGFindStr = "%[ ^t]++MODULE^([ ^t]+[a-z0-9_ ]+^)$"
! /TGFindStr = "%[ ^t]++MODULE^([ ^t]+[a-z0-9_ ]+([a-ö0-9_,]+)^)$"
/TGEnd
/TGBegin "TRAPS [Local]"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]++TRAP[ ^t]+^([~,()]+$^)"
/TGEnd
/TGBegin "TRAPS"
/TGFindStr = "%[ ^t]++TRAP[ ^t]+^([~,()]+$^)"
/TGEnd
/TGBegin "FUNCTIONS [Local]"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]FUNC[ ^t]+^([a-z]+[ ^t]+[~,()]+()$^)"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]FUNC[ ^t]+^([a-z]+[ ^t]+[~,()]+^)[ ^t]++([~)]+)$"
/TGBegin "Arguments"
/TGFindStr = "[~,()]+"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGEnd
/TGBegin "FUNCTIONS"
/TGFindStr = "%[ ^t]++FUNC[ ^t]+^([a-z]+[ ^t]+[~,()]+()$^)"
/TGFindStr = "%[ ^t]++FUNC[ ^t]+^([a-z]+[ ^t]+[~,()]+^)[ ^t^p]++([~)]+)$"
/TGBegin "Arguments"
/TGFindStr = "[~,()]+"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGEnd
/TGBegin "PROCEDURES (Local)"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]PROC[ ^t]+^([~,()]+()$^)"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]PROC[ ^t]+^([~,()]+^)[ ^t]++([~)]+)$"
/TGBegin "Arguments"
/TGFindStr = "[~,()]+"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGEnd
/TGBegin "PROCEDURES"
/TGFindStr = "%[ ^t]++PROC[ ^t]+^([~,()]+()$^)"
/TGFindStr = "%[ ^t]++PROC[ ^t]+^([~,()]+^)[ ^t^p]++([~)]+)$"
/TGBegin "Arguments"
/TGFindStr = "[~,()]+"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGEnd
/TGBegin "RECORDS"
/TGFindStr = "%[ ^t]++RECORD[ ^t]+^([~,()]+$^)"
/TGEnd
/TGBegin "RECORDS [local]"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]++RECORD[ ^t]+^([~,()]+$^)"
/TGEnd
/TGBegin "Syntax Errors"
/TGFindStr = ";[ ^t]+[a-z0-9_]"
!
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]++PROC[ ^t]+^([a-z]+[ ^t]+[~,()]+()$^)"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]++PROC[ ^t]+^([a-z]+[ ^t]+[~,()]+^)[ ^t]++([~)]+)$"
/TGFindStr = "%[ ^t]++PROC[ ^t]+^([a-z]+[ ^t]+[~,()]+()$^)"
/TGFindStr = "%[ ^t]++PROC[ ^t]+^([a-z]+[ ^t]+[~,()]+^)[ ^t]++([~)]+)$"
/TGFindStr = "%[ ^t]++[a-z0-9_]+();$"
/TGFindStr = "THEN[:;]"
/TGFindStr = "ELSE[:;]"
/TGFindStr = "ELSEIF[:;]"
/TGFindStr = "ENDTEST[:;]"
/TGFindStr = "ENDIF[:;]"
/TGFindStr = "ENDFOR[:;]"
/TGFindStr = "ENDWHILE[:;]"
/TGFindStr = "RETURN$"
! /TGFindStr = "DO[:;]"
/TGFindStr = "ENDPROC[:;]"
/TGFindStr = "ENDFUNC[:;]"
/TGFindStr = "%[ ^t]+[a-z0-9_]+=[a-z0-9_]+;$"
/TGFindStr = "%[ ^t]+IF[ ^t]+[a-z0-9_]+:=[a-z0-9_]+[ ^t]+THEN$"
/TGFindStr = "%[ ^t]+TEST[ ^t]+[a-z0-9_]+[:;]$"
/TGFindStr = "%[ ^t]+CASE[ ^t]+[a-z0-9_]+$"
/TGFindStr = "%[ ^t]+VAR[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+$"
/TGFindStr = "%[ ^t]+VAR[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+:=[a-z0-9_^[^],^"]+$"
/TGFindStr = "%[ ^t]+VAR[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+=[a-z0-9_^[^],^"]+;$"
/TGFindStr = "%[ ^t]+PERS[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+$"
/TGFindStr = "%[ ^t]+PERS[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+="
/TGFindStr = "%[ ^t]+PERS[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+:=[a-z0-9_^[^],^"]+$"
/TGEnd
"
/TGBegin "LABELS"
! /TGFindStr = "[ ^t]++[a-z]++[ ^t]++:"
/TGEnd
/Delimiters = ~!@$%^&*()+=|\/{}[]:;"'<> ,.?/
!/Delimiters = { } ( ) [ ] , . = + - * / : ; \ ? := <> >= <= !
Function String = " [P,F,T][R,U][O,N,A][C,P] "
!/Indent Strings = "PROC" "PROC" "ERROR" "FUNC" "TRAP" "TEST" "TEST" "DEFAULT" "THEN" "THEN" "ELSEIF" "ELSE" "WHILE" "MODULE"
!/Unindent Strings = "ERROR" "ENDPROC" "ENDPROC" "ENDFUNC" "ENDTRAP" "DEFAULT" "ENDTEST" "ENDTEST" "ELSE" "ELSEIF" "ELSE" "ENDIF" "ENDWHILE" "ENDMODULE"
/Open Fold Strings = "PROC" "FUNC" "TRAP" "IF" "WHILE" "FOR" "TEST" "MODULE"
/Close Fold Strings = "ENDPROC" "ENDFUNC" "ENDTRAP" "ENDIF" "ENDWHILE" "ENDFOR" "ENDTEST" "PROC"
/Open Brace Strings = "[" "(" "{" "<"
/Close Brace Strings = "]" ")" "}" ">"
!###################################################################################
FUNCTION LIST !##################################################################
!#################################################################################
*in development*
!## WORDFILE DATA ################################################################
/L3"Rapid_DATA" /Nocase /Line Comment = !
!/Delimiters = ~!@$%^&*()+=|\/{}[]:;"'<> ,.?/
/Delimiters = { } ( ) [ ] , . = + - * / : ; \ ? := <> >= <= !
Function String = " [P,F,T][R,U][O,N,A][C,P] "
/Indent Strings = "PROC" "PROC" "ERROR" "FUNC" "TRAP" "TEST" "TEST" "DEFAULT" "THEN" "THEN" "ELSEIF" "ELSE" "WHILE" "MODULE"
/Unindent Strings = "ERROR" "ENDPROC" "ENDPROC" "ENDFUNC" "ENDTRAP" "DEFAULT" "ENDTEST" "ENDTEST" "ELSE" "ELSEIF" "ELSE" "ENDIF" "ENDWHILE" "ENDMODULE"
/Open Fold Strings = "PROC" "FUNC" "TRAP" "IF" "WHILE" "FOR" "TEST" "MODULE"
/Close Fold Strings = "ENDPROC" "ENDFUNC" "ENDTRAP" "ENDIF" "ENDWHILE" "ENDFOR" "ENDTEST" "PROC"
/Open Brace Strings = "[" "(" "{" "<"
/Close Brace Strings = "]" ")" "}" ">" "ELSE" "ELSEIF" "ELSE" "ENDIF" "ENDWHILE" "ENDMODULE"
!/Ignore Strings SOL = "if"
!/Ignore Fold Strings = "next"
!/Escape Char = ;
/Open Brace Strings = "[" "(" "{" "<"
/Close Brace Strings = "]" ")" "}" ">"
!## COLOR GROUP ##################################################################
/C1"Basic rapid"
MODULE
ENDMODULE ENDPROC ENDFUNC ENDTRAP ENDRECORD
func
LOCAL
RECORD
PROC
trap
"!################################################################################"
/TGBegin "MODULE"
/TGFindStr = "%[ ^t]++MODULE^([ ^t]+[a-z0-9_ ]+^)$"
! /TGFindStr = "%[ ^t]++MODULE^([ ^t]+[a-z0-9_ ]+([a-ö0-9_,]+)^)$"
/TGEnd
/TGBegin "TRAPS [Local]"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]++TRAP[ ^t]+^([~,()]+$^)"
/TGEnd
/TGBegin "TRAPS"
/TGFindStr = "%[ ^t]++TRAP[ ^t]+^([~,()]+$^)"
/TGEnd
/TGBegin "FUNCTIONS [Local]"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]FUNC[ ^t]+^([a-z]+[ ^t]+[~,()]+()$^)"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]FUNC[ ^t]+^([a-z]+[ ^t]+[~,()]+^)[ ^t]++([~)]+)$"
/TGBegin "Arguments"
/TGFindStr = "[~,()]+"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGEnd
/TGBegin "FUNCTIONS"
/TGFindStr = "%[ ^t]++FUNC[ ^t]+^([a-z]+[ ^t]+[~,()]+()$^)"
/TGFindStr = "%[ ^t]++FUNC[ ^t]+^([a-z]+[ ^t]+[~,()]+^)[ ^t^p]++([~)]+)$"
/TGBegin "Arguments"
/TGFindStr = "[~,()]+"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGEnd
/TGBegin "PROCEDURES (Local)"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]PROC[ ^t]+^([~,()]+()$^)"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]PROC[ ^t]+^([~,()]+^)[ ^t]++([~)]+)$"
/TGBegin "Arguments"
/TGFindStr = "[~,()]+"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGEnd
/TGBegin "PROCEDURES"
/TGFindStr = "%[ ^t]++PROC[ ^t]+^([~,()]+()$^)"
/TGFindStr = "%[ ^t]++PROC[ ^t]+^([~,()]+^)[ ^t^p]++([~)]+)$"
/TGBegin "Arguments"
/TGFindStr = "[~,()]+"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGEnd
/TGBegin "RECORDS"
/TGFindStr = "%[ ^t]++RECORD[ ^t]+^([~,()]+$^)"
/TGEnd
/TGBegin "RECORDS [local]"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]++RECORD[ ^t]+^([~,()]+$^)"
/TGEnd
/TGBegin "NUM"
/TGFindStr = "[ ^t]++num[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~,()]+"
/TGFindBStart = ":="
/TGFindBEnd = "[a-z0-9_];"
/TGEnd
/TGEnd
/TGBegin "STRING"
/TGFindStr = "[ ^t]++string[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~,\|()]+"
/TGFindBStart = ":="
/TGFindBEnd = "";""
/TGEnd
/TGEnd
/TGBegin "BOOL"
/TGFindStr = "[ ^t]++bool[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~,()]+"
/TGFindBStart = ":="
/TGFindBEnd = "[a-z0-9_];"
/TGEnd
/TGEnd
/TGBegin "TOOL"
/TGFindStr = "[ ^t]++tooldata[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "WOBJ"
/TGFindStr = "[ ^t]++wobjdata[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "CONFDATA"
/TGFindStr = "[ ^t]++confdata[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "ROBJOINT"
/TGFindStr = "[ ^t]++robjoint[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "POS"
/TGFindStr = "[ ^t]++pos[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/TGBegin "BTNRES"
/TGFindStr = "[ ^t]++BTNRES[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "BYTES"
/TGFindStr = "[ ^t]++byte[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "CLOCKS"
/TGFindStr = "[ ^t]++clock[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "DNUM"
/TGFindStr = "[ ^t]++dnum[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "ERRNUM"
/TGFindStr = "[ ^t]++errnum[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "ExtJoint"
/TGFindStr = "[ ^t]++ExtJoint[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "INTNUM"
/TGFindStr = "[ ^t]++INTNUM[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "JOINTTARGET"
/TGFindStr = "[ ^t]++jointtarget[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "LOADDATA"
/TGFindStr = "[ ^t]++loaddata[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "POSE"
/TGFindStr = "[ ^t]++pose[ ^t]+^([~,():]+^)"
/TGBegin "Value"
/TGFindStr = "[~()]+"
/TGFindBStart = ":="
/TGFindBEnd = "];"
/TGEnd
/TGEnd
/TGBegin "Syntax Errors"
/TGFindStr = ";[ ^t]+[a-z0-9_]"
!
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]++PROC[ ^t]+^([a-z]+[ ^t]+[~,()]+()$^)"
/TGFindStr = "%[ ^t]++LOCAL++[ ^t]++PROC[ ^t]+^([a-z]+[ ^t]+[~,()]+^)[ ^t]++([~)]+)$"
/TGFindStr = "%[ ^t]++PROC[ ^t]+^([a-z]+[ ^t]+[~,()]+()$^)"
/TGFindStr = "%[ ^t]++PROC[ ^t]+^([a-z]+[ ^t]+[~,()]+^)[ ^t]++([~)]+)$"
/TGFindStr = "%[ ^t]++[a-z0-9_]+();$"
/TGFindStr = "THEN[:;]"
/TGFindStr = "ELSE[:;]"
/TGFindStr = "ELSEIF[:;]"
/TGFindStr = "ENDTEST[:;]"
/TGFindStr = "ENDIF[:;]"
/TGFindStr = "ENDFOR[:;]"
/TGFindStr = "ENDWHILE[:;]"
/TGFindStr = "RETURN$"
! /TGFindStr = "DO[:;]"
/TGFindStr = "ENDPROC[:;]"
/TGFindStr = "ENDFUNC[:;]"
/TGFindStr = "%[ ^t]+[a-z0-9_]+=[a-z0-9_]+;$"
/TGFindStr = "%[ ^t]+IF[ ^t]+[a-z0-9_]+:=[a-z0-9_]+[ ^t]+THEN$"
/TGFindStr = "%[ ^t]+TEST[ ^t]+[a-z0-9_]+[:;]$"
/TGFindStr = "%[ ^t]+CASE[ ^t]+[a-z0-9_]+$"
/TGFindStr = "%[ ^t]+VAR[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+$"
/TGFindStr = "%[ ^t]+VAR[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+:=[a-z0-9_^[^],^"]+$"
/TGFindStr = "%[ ^t]+VAR[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+=[a-z0-9_^[^],^"]+;$"
/TGFindStr = "%[ ^t]+PERS[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+$"
/TGFindStr = "%[ ^t]+PERS[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+="
/TGFindStr = "%[ ^t]+PERS[ ^t]+[a-z]+[ ^t]+[a-z0-9_]+:=[a-z0-9_^[^],^"]+$"
/TGEnd
"!###################################################################################################
!###################################################################################################