-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathC3_getcube.src
62 lines (47 loc) · 1.22 KB
/
C3_getcube.src
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
&ACCESS RVO
&REL 4
&PARAM DISKPATH = KRC:\R1\Program
DEF C3_getcube (COORD:IN)
DECL FRAME COORD
;FOLD INI;%{PE}
;FOLD BASISTECH INI
GLOBAL INTERRUPT DECL 3 WHEN $STOPMESS==TRUE DO IR_STOPM ( )
INTERRUPT ON 3
BAS (#INITMOV,0 )
;ENDFOLD (BASISTECH INI)
;FOLD USER INI
;Make your modifications here
;ENDFOLD (USER INI)
;ENDFOLD (INI)
;FOLD PTP HOME Vel= 100 % DEFAULT;%{PE}%MKUKATPBASIS,%CMOVE,%VPTP,%P 1:PTP, 2:HOME, 3:, 5:100, 7:DEFAULT
;$BWDSTART = FALSE
;PDAT_ACT=PDEFAULT
;FDAT_ACT=FHOME
;BAS (#PTP_PARAMS,100 )
;$H_POS=XHOME
;PTP XHOME
;ENDFOLD
; Fahre Coord an
$BASE = base_data[6]
$TOOL = tool_data[14]
GRPg_SetStateAndCheck(1, 1, 0.2, 1)
COORD.Z = COORD.Z - 60
;Fahre Pos mit Z + 30 an
SPTP COORD
;Senke auf Plazierpos
COORD.Z = COORD.Z + 60
SLIN COORD
;Platziere
GRPg_SetStateAndCheck(1, 2, 0.2, 0)
;Hebe auf Pos mit Z + 30
COORD.Z = COORD.Z - 60
SLIN COORD
;FOLD PTP HOME Vel= 100 % DEFAULT;%{PE}%MKUKATPBASIS,%CMOVE,%VPTP,%P 1:PTP, 2:HOME, 3:, 5:100, 7:DEFAULT
;$BWDSTART = FALSE
;PDAT_ACT=PDEFAULT
;FDAT_ACT=FHOME
;BAS (#PTP_PARAMS,100 )
;$H_POS=XHOME
;PTP XHOME
;ENDFOLD
END