-151-
(
→
Continuation of program example in Exercise 3-1 Interrupt processing, data latch)
(Continue to the next page
→
)
37 Fsc On,0,0,1
38 *Loop_002
39 M_Timer(2)=0
'Start force sense control
40 PCHK=P_Fbc
41 *Loop_003
42 Dly 0.05
43 PNow=P_Fbc
44 M10=Zone2(PNow,PCHK,PCHK,0.2)
45 If M_Timer(2) >= 15000 Then *XERR
46 If M10=1 Then *Loop_003 Else *Loop_002
47 *Loop_End1
48 Act 1=0
49 Fsc Off
50 M3=P2.Z-P_Fbc.Z
51 MTRGF=5
52 If M3>=5 Then *Finish
'OK
53 '-------------------
54 '-----
55 P_FsMod0 = (+0.00,+0.00,+0.00,+0.00,+0.00,+0.00)(0,0)
'Force control mode (all axes
disabled)
56 Def MoTrg 1 ,P_FsCurD.Z > 30
57 Def Act 1,M_MoTrg=1 GoTo *XERR
58 SetMoTrg 1
59 Act 1=1
60 '-----
61 PNow=P_Fbc
62 PNow.Z=PNow.Z-(5-M3)
63 Cnt 0
64 Fine 0.1
65 Fsc On,0,0,0
66 Spd MSpeed
67 Mvs PNow
68 Dly 0.05
69 Fine 0
70 Fsc Off
71 Spd M_NSpd
72 Act 1=0
73 SetMoTrg 0
74 MTRGF=P_FsCurD.Z
75 *Finish
76 PTRG=P Fbc
Summary of Contents for MELFA BFP-A3614
Page 1: ...Mitsubishi Industrial Robot Robot Seminar Textbook Force Sensor Application BFP A3614 ...
Page 2: ......
Page 34: ... 23 2 F series a CR750 D controller ...
Page 35: ... 24 b CR751 D controller ...
Page 36: ... 25 c CR750 Q CR751 Q controller CPU module ...
Page 75: ... 64 MEMO Please use this page for your memo ...
Page 95: ... 84 MEMO Please use this page for your memo ...
Page 103: ... 92 MEMO Please use this page for your memo ...
Page 111: ... 100 MEMO Please use this page for your memo ...
Page 119: ... 108 MEMO Please use this page for your memo ...
Page 123: ... 112 MEMO Please use this page for your memo ...
Page 129: ... 118 MEMO Please use this page for your memo ...
Page 133: ... 122 MEMO Please use this page for your memo ...
Page 137: ... 126 MEMO Please use this page for your memo ...
Page 143: ... 132 MEMO Please use this page for your memo ...
Page 149: ... 138 MEMO Please use this page for your memo ...
Page 153: ... 142 MEMO Please use this page for your memo ...
Page 159: ... 148 MEMO Please use this page for your memo ...
Page 171: ... 160 MEMO Please use this page for your memo ...
Page 183: ... 172 MEMO Please use this page for your memo ...
Page 191: ... 180 MEMO Please use this page for your memo ...
Page 211: ......