三菱机器人程序
第7章三菱机器人操作基础图文模板
第七章 三菱机器人操作基础
(16) [RESET]键:机器人处于错误状态时,解除错误(也 有些错误无法解除)。此外,通过在按压该键的同时按压[EXE] 键,进行程序复位。
(17) [↑][↓][←][→]键:表示将光标向各个方向移动。 (18) [CLEAR]键:可进行数字输入或字符输入时,按压该 键即可将光标所在位置字符删除1个字符。此外,通过长按该 键可将光标所在输入区域全部清除。
第七章 三菱机器人操作基础
(4) [END]按钮:如果按压此按钮,将执行程序的结束 (END)命令,停止程序运行。在使机器人的动作在1个循环结束 后停止时使用此按钮。(结束重复运行。)
(5) [UP/DON]按钮:此按钮用于在[STATUS NUMBER]中进 行程序编号选择及速度的上下调节设置。
1. 数字的输入 按下[CHARACTER] 键,在界面右下角显示“123”的状态 下,按下数字键进行输入。例如:输入程序名为“51”时,如 图7-19所示。
第七章 三菱机器人操作基础 图7-19 程序新建界面
第七章 三菱机器人操作基础
2. 文字的输入 按下[CHARACTER] 键,在界面右下角显示“ABC”的状态 下,按下文字键进行输入。每次按下有多个文字显示的键,输 入的文字会变换。例如:每次按下[ABC]键时,输入的文字会 重复“A”“B”“C”“a”“b”……,如图7-20所示。
第七章 三菱机器人操作基础
第七章 三菱机器人操作基础
第七章 三菱机器人操作基础 2. 示教器 三菱机器人示教器如图7-2所示。
图7-2 三菱示教器
第七章 三菱机器人操作基础
各功能键的名称及作用介绍如下。 (1) [EMG.STOP]开关:紧急停止用的带锁定功能的按钮开 关。按压该开关,则无论示教单元处于有效还是无效状态,机 器人均会进行伺服关闭,并立即停止。解除紧急停止状态时, 请将开关向右旋转,或将开关向外拉。(按压紧急停止开关, 则机器人进入错误状态。)
三菱机器人程序
'〃〃〃〃〃〃〃定义输入〃〃〃〃〃〃Def Io in0=Bit,0 Def Io in1=Bit,1 Def Io in3=Bit,3 Def Io in4=Bit,4 Def Io in5=Bit,5 Def Io in6=Bit,6 Def Io in7=Bit,7 Def Io in8=Bit,8 Def Io in9=Bit,9 Def Io in10=Bit,10 Def Io in11=Bit,11 Def Io in12=Bit,12 Def Io in13=Bit,13 Def Ioin14=Bit,14 Def Io in15=Bit,15'/////////////// 定义/输出〃〃〃〃〃Def Io out0=Bit,0 Def Io out1=Bit,1 Def Io out3=Bit,3 Def Io out4=Bit,4 Def Io out5=Bit,5 Def Io out6=Bit,6 Def Io out7=Bit,7 Def Io out8=Bit,8 Def Io out9=Bit,9 Def Io out10=Bit,10 Def Io out11=Bit,11 Def Io out12=Bit,12 Def Io out13=Bit,13 Def Io out14=Bit,14 Def Io out15=Bit,15 7/////////////定义变量//////////////Def Jnt jyd '定义安全点Def Plt 1,p11,p17,p71,p77,4,4,1 '定义托盘点j1=(+1.11,-60.00,+145.00,+0.00,+0.00,+86.61) jyd=(+0.00,-60.00,+ 145.00,+0.00,+0.00,-90.00) p0=(+0.00,+0.00,+20.00,+0.00,+0.00,+0.00)(0,0)p200=(+0.00,+0.00,+5.00,+0.00,+0.00,+0.00)(0,0)p201=(+0.00,+0.00,+150.00,+0.00,+0.00,+0.00)(0,0)p202=(+0.00,+135.00 ,+0.00,+0.00,+0.00,+0.00)(0,0)p203=(+0.00,+0.00,+60.00,+0.00,+0.00,+0.00)(0,0)p204=(+0.00,+20.00,+0.00,+0.00,+0.00,+0.00)(0,0) '////////////托盘点////////////// p12=p11 p21=p11p22=pllpl2.Y=pll.Y+12 p21,X=pll.X+12 p22.X=pll.X+12 p22.Y=pll.Y+12 pl5=(Plt 1,3) pl6=pl5 p25=pl5 p26=pl5pl6.Y=pl5.Y+12 p25,X=pl5.X+12 p26,X=pl5.X+12 p26,Y=pl5.Y+12 p31=(Plt 1,8) p32=p31 p41=p31 p42=p31p32,Y=p31.Y+12 p41,X=p31.X+12 p42,X=p31.X+12 p42,Y=p31.Y+12 p35=(Plt 1,6) p36=p35 p45=p35 p46=p35p36,Y=p35.Y+12 p45,X=p35.X+12 p46,X=p35.X+12 p46,Y=p35.Y+12 p51=(Plt 1,9) p52=p51 p61=p51 p62=p51p52,Y=p51.Y+12 p61,X=p51.X+12 p62,X=p51.X+12 p62,Y=p51.Y+12 p55=(Plt 1,U) p56=p55 p65=p55 p66=p55p56,Y=p55.Y+12 p65,X=p55.X+12 p66,X=p55.X+12 p66,Y=p55.Y+12 p75=(Plt 1,74)p76=p75p85=p75p86=p75p76.Y=p75.Y+12p85.X=p75.X+12p86,X=p75,X+12p86.Y=p75.Y+12p72=p71p81=p71p82=p71p72,Y=p71,Y+12p81,X=p71,X+12p82,X=p71,X+12p81,Y=p71,Y+12'〃〃〃〃〃〃〃/判断〃〃〃〃〃〃/ If M_In(9)=1 And M_In(10)=0 ThenIf M_In(11)=0 And M_In(13)=0 Then GoSub *fwEndIfEndIfIf M_In(9)=1 And M_In(10)=1 Then If M_In(11)=0 And M_In(13)=0 Then GoSub *fw1EndIfEndIfIf M_In(9)=1 And M_In(10)=0 Then If M_In(11)=1 And M_In(13)=0 Then GoSub *fw2EndIfEndIfIf M_In(9)=1 And M_In(10)=0 Then If M_In(11)=0 And M_In(13)=1 Then GoSub *fw3EndIfEndIfIf M_05#>3 Thenout14=1M_05#=0EndIfIf M_In(6)=1 And M_05#=0 Then GoSub *ks1EndIfIf M_In(6)=1 And M_05#=1Then GoSub *ks2EndIfIf M_In(6)=1 And M_05#=2 Then'判断3个夹具是否在原位'程序fw'判断1夹具是否在原位'夹具1复位'判断夹具2是否在原位'夹具2复位'判断夹具3是否在原位'夹具3复位'一次装机'二次装机GoSub *ks3EndIfIf M_In(6)=1 And M_05#=3 ThenGoSub *ks4EndIfEnd'//////////////// 复位程序〃〃〃〃〃〃*fwOvrd 80j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout5=1m_outb(6)=0位关闭M_00#=0M_05#=0M_01#=0Return '///////////////////////////////////// '////////////////// 复位1///////////////////// *fW1Ovrd 70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout12=0out13=0Mov p1Mov p23ovrd 50Spd 400Mvs p20-p204Mvs p20Dly 0.2out11=1Dly 0.2Mvs p20+p203out11=0GoSub *fw4'三次装机'四次装机'程序复位'将输出信号6-13的8Return '/////////////////////////// '/////////////////////// 复位2//////////// *fw2Ovrd 70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jyd out12=0 out13=0 ovrd 50 Mov p40+p201Spd 400Mvs p40Dly 0.2out11=1Dly 0.2Mvs p40+p203out11=0GoSub *fw4Return '///////////////////////////'///////////////// 复位3////////////////*fw3Ovrd 70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jyd out12=1 out13=0Mov p5 out12=0 ovrd 51 Mov p2 Spd 600 Mvs p33 Mvs p30+p200Mvs p30Dly 0.2out11=1Dly 0.2Mvs p30+p203out11=0M_05#=M_05#+1If M_In(6)=0 Then GoTo *fw4Return '//////////////////////////////'/////////////////// 正常复位//////////*fW4Ovrd 50j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5out11=0out12=0out13=0out15=0out7=0out6=0out14=0Return'/////////////////// 取夹具1/////////// *jj1Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Ovrd 50Mov p20+p201Spd 700Mov p20+p203Spd 300out11=1Mvs p20Dly 0.2out11=0Dly 0.2Mvs p20+p200p23=P_CurrMvs p23-p204p23=P_CurrMvs p23+p201p23=P_CurrReturn'/////////////////// 取夹具2〃〃〃〃〃*jj2Spd 400Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Mvs p40+p203out11=1Mvs p40Dly 0.2out11=0Dly 0.2Spd 600Mvs p40+p201Mvs p210+p203Spd 400Mvs p221Mvr p221,p220,p219Mvs p218Mvr p218,p217,p216Mvs p215Mvr p215,p214,p213Mvs p212Mvr p212,p211,p210out13=0out6=1Spd 600Mvs p210+p201out6=0Mvs p40+p201Spd 400Mvs p40Dly 0.2out11=1Dly 0.2Mvs p40+p203out6=1Dly 0.2out6=0Return'///////////////////取夹具3////////////////// *jj3Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Spd 400Mvs p30+p203out11=1Spd 300Mvs p30Dly 0.2out11=0Dly 0.2Spd 400Mvs p30+p200p33=P_CurrMvs p33-p202p33=P_CurrMvs p33+p201Return'/////////////////// 去取盖〃〃〃〃〃〃〃〃〃*qgMov p5Mov p7Wait M_In(7)=1out12=1out13=0Mov p8+p0out12=0Spd 200Mvs p8Dly 0.2out13=1Dly 0.2out15=1Dly 0.5'///////////////// 入仓库///////////////////If M_In(8)=1 Then GoTo *ck2 Else GoTo *ck1 '判断颜色Return*ck2 '////////////////////////////////////////////// 白色盖GoSub *jgOvrd 40Mov p231+p201Spd 200If M_In(15)=1 And M_00#>3 Thenout10=1Wait M_Out(10)=0M_00#=0EndIfIf M_00#=0 Then '第一层If M_In(15)=1 ThenMov p6EndIfWait M_In(15)=0Mov p231+p201Spd 200Mvs p231EndIfIf M_In(15)=1 And M_00#=1 Then '第二层Mvs p231+p0EndIfIf M_In(15)=1 And M_00#=2 Then '第三层Mvs p231+p203EndIfIf M_In(15)=1 And M_00#=3 Then '第四层Mvs p231+p203+p0EndIfout12=1Mvs p231+p201out8=1 '入库完成GoSub *fw3out8=0M_00# = M_00#+1Return*ck1 '/////////////////////////////////////////////// 黑色盖GoSub *jgOvrd 40Mov p240+p201Spd 200If M_In(14)=1 And M_01#>3 Thenout9=1Wait M_Out(9)=0M_01#=0EndIfIf M_01#=0 Then '第一层If M_In(14)=1 ThenMov p6EndIfWait M_In(14)=0Mov p240+p201Spd 200Mvs p240+p203+p0 EndIf Dly 0.2 out13=0 out12=1 Mvs p240+p201 out8=1 '入库完成GoSub *fw3 out8=0M_01# = M_01#+1 Return'//////////////////// 去加盖〃〃〃〃〃〃〃〃〃〃〃*jgMvs p8+p203 Ovrd 50 Mov p7 Mov p6 Mov p9 Mov p10+p0 Spd 200 Mvs p10 Dly 0.2 out7=1 Dly 0.2 out7=0 Mvs p10+p0 Ovrd 50 Mov p9 Mov p6 Return'////////////////////////// 一次装机//////////////////////////*ks1 out5=0 out6=0 out7=0 out8=0 out14=0 out15=0 GoSub *jj1Mvs p240 EndIfIf M_In (14)=1 And M_01#=1 Then Mvs p240+p0 EndIfIf M_In (14)=1 And M_01#=2 Then Mvs p240+p203 EndIfIf M_In (14)=1 And M_01#=3 Then'第二层'第三层'第四层'///////////////////// 装1和2键〃〃〃〃〃〃〃〃〃〃〃〃〃〃Ovrd 50Mov p3Ovrd 70Mov p11+p0Spd 200Mvs p11out12=1out13=1Dly 0.2Ovrd 70Mvs p11+p0Mov p3Mov p104+p0Spd 200Mvs p104Dly 0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly 0.2out12=0Ovrd 70Mvs p103+p0Mov p3'/////////////////////// 装3 和*键///////////////////// Mov p15+p0Spd 200Mvs p15out12=1out13=1Dly 0.2Ovrd 70Mvs p15+p0Mov p3Mov p105+p0Spd 200Mvs p105Dly 0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly 0.2out13=0Ovrd 70Mvs p106+p0Mov p3'/////////////////////////// 装4 和5 键〃〃〃〃〃〃〃/Mov p31+p0Spd 200Mvs p31out12=1out13=1Dly 0.2Ovrd 70Mvs p31+p0Mov p3Mov p108+p0Spd 200Mvs p108Dly 0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly 0.2out12=0Ovrd 70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p35+p0Spd 200Mvs p35out12=1out13=1Dly 0.2Ovrd 70Mvs p35+p0Mov p3Mov p109+p0Spd 200Mvs p109Dly 0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly 0.2out13=0Ovrd 70Mvs p110+p0Mov p3'/////////////////////////// 装7和8 键〃〃〃〃〃〃〃/Mov p51+p0Spd 200Mvs p51out12=1out13=1Dly 0.2Ovrd 70Mvs p51+p0Mov p3Mov p112+p0Spd 200Mvs p112Dly 0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly 0.2out12=0Ovrd 70Mvs p111+p0Mov p3'///////////////////////////// 装9 键////////////////// Mov p55+p0Spd 200Mvs p55out12=1Dly 0.2Ovrd 70Mvs p55+p0Mov p3Mov p113+p0Spd 200Mvs p113Dly 0.2out12=0Ovrd 70Mvs p113+p0Mov p3'//////////////////# 和接听键////////////////Mov p71+p0Spd 200Mvs p71out12=1out13=1Dly 0.2Ovrd 70Mvs p71+p0Mov p3Mov p114+p0Spd 200Mvs p114Dly 0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly 0.2out13=0Ovrd 70Mvs p100+p0Mov p3'////////////////////// 装挂机键〃〃〃〃〃〃〃〃〃Mov p75+p0Spd 200Mvs p75out12=1Dly 0.2Ovrd 70Mvs p75+p0Mov p3Mov p102+p0Spd 200Mvs p102Dly 0.2out12=0Ovrd 70Mvs p102+p0Mov p3'///////////////////////// 装方向键///////////////// Mov p50+p0Spd 200Mvs p50out12=1Dly 0.2Ovrd 70Mvs p50+p0Mov p3Mov p101+p0Spd 200Mvs p101Dly 0.2out12=0Ovrd 70Mvs p101+p203out6=1'///////////////////////// 放回夹具1〃〃〃〃〃〃Ovrd 50Mov p23Spd 450Mvs p20-p204out6=0Spd 400Mvs p20Dly 0.2out11=1Dly 0.2Mvs p20+p203out6=1Dly 0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'////////////////////////// 二次装机////////////////////////// *ks2out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'///////////////////// 装1和2键//////////////////////////// Ovrd 50Mov p3Ovrd 70Mov p12+p0Spd 200Mvs p12out12=1out13=1Dly 0.2Ovrd 70Mvs p12+p0Mov p3Mov p104+p0Spd 200Mvs p104Dly 0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly 0.2out12=0Ovrd 70Mvs p103+p0Mov p3'/////////////////////// 装3 和*键〃〃〃〃〃〃〃〃〃〃/ Mov p16+p0Spd 200Mvs p16out12=1out13=1Dly 0.2Ovrd 70Mvs p16+p0Mov p3Mov p105+p0Spd 200Mvs p105Dly 0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly 0.2out13=0Ovrd 70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p32+p0Spd 200Mvs p32out12=1out13=1Dly 0.2Ovrd 70Mvs p32+p0Mov p3Mov p108+p0Spd 200Mvs p108Dly 0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107out12=0Ovrd 70Mvs p107+p0Mov p3'/////////////////////// 装6和0键〃〃〃〃〃〃〃〃〃〃/ Mov p36+p0Spd 200Mvs p36out12=1out13=1Dly 0.2Ovrd 70Mvs p36+p0Mov p3Mov p109+p0Spd 200Mvs p109Dly 0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly 0.2out13=0Ovrd 70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p52+p0Spd 200Mvs p52out12=1out13=1Dly 0.2Ovrd 70Mvs p52+p0Mov p3Mov p112+p0Spd 200Mvs p112Dly 0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly 0.2out12=0Mvs p111+p0Mov p3'///////////////////////////// 装9 键〃〃〃〃〃〃〃〃〃Mov p56+p0Spd 200Mvs p56out12=1Dly 0.2Ovrd 70Mvs p56+p0Mov p3Mov p113+p0Spd 200Mvs p113Dly 0.2out12=0Ovrd 70Mvs p113+p0Mov p3'//////////////////# 和接听键////////////////Mov p72+p0Spd 200Mvs p72out12=1out13=1Dly 0.2Ovrd 70Mvs p72+p0Mov p3Mov p114+p0Spd 200Mvs p114Dly 0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly 0.2out13=0Ovrd 70Mvs p100+p0Mov p3'////////////////////// 装挂机键〃〃〃〃〃〃〃〃〃Mov p76+p0Spd 200Mvs p76out12=1Ovrd 70Mvs p76+p0Mov p3Mov p102+p0Spd 200Mvs p102Dly 0.2out12=0Ovrd 70Mvs p102+p0Mov p3'///////////////////////// 装方向键///////////////// Mov p60+p0Spd 200Mvs p60out12=1Dly 0.2Ovrd 70Mvs p60+p0Mov p3Mov p101+p0Spd 200Mvs p101Dly 0.2out12=0Ovrd 70Mvs p101+p203out6=1'///////////////////////// 放回夹具1〃〃〃〃〃〃Ovrd 50Mov p23Spd 450Mvs p20-p204out6=0Spd 400Mvs p20Dly 0.2out11=1Dly 0.2Mvs p20+p203out6=1Dly 0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'////////////////////////// 三次装机////////////////////////// *ks3out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'///////////////////// 装1和2键//////////////////////////// Ovrd 50Mov p3Ovrd 70Mov p21+p0Spd 200Mvs p21out12=1out13=1Dly 0.2Ovrd 70Mvs p21+p0Mov p3Mov p104+p0Spd 200Mvs p104Dly 0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly 0.2out12=0Ovrd 70Mvs p103+p0Mov p3'/////////////////////// 装3 和*键〃〃〃〃〃〃〃〃〃〃/Mov p25+p0Spd 200Mvs p25out12=1out13=1Dly 0.2Ovrd 70Mvs p25+p0Mov p3Mov p105+p0Spd 200Mvs p105Dly 0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly 0.2out13=0Ovrd 70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p41+p0Spd 200Mvs p41out12=1out13=1Dly 0.2Ovrd 70Mvs p41+p0Mov p3Mov p108+p0Spd 200Mvs p108Dly 0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly 0.2out12=0Ovrd 70Mvs p107+p0Mov p3'/////////////////////// 装6和0键〃〃〃〃〃〃〃〃〃〃/ Mov p45+p0Spd 200Mvs p45out12=1out13=1Dly 0.2Ovrd 70Mvs p45+p0Mov p3Mov p109+p0Spd 200Mvs p109Dly 0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly 0.2out13=0Ovrd 70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p61+p0Spd 200Mvs p61out12=1out13=1Dly 0.2Ovrd 70Mvs p61+p0Mov p3Mov p112+p0Spd 200Mvs p112Dly 0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly 0.2out12=0Ovrd 70Mvs p111+p0Mov p3'///////////////////////////// 装9 键〃〃〃〃〃〃〃〃〃Mov p65+p0Spd 200Mvs p65out12=1Dly 0.2Ovrd 70Mvs p65+p0Mov p3Mov p113+p0Spd 200Mvs p113Dly 0.2out12=0Ovrd 70Mvs p113+p0Mov p3'//////////////////# 和接听键////////////////Mov p81+p0Spd 200Mvs p81out12=1out13=1Dly 0.2Ovrd 70Mvs p81+p0Mov p3Mov p114+p0Spd 200Mvs p114Dly 0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly 0.2out13=0Ovrd 70Mvs p100+p0Mov p3'////////////////////// 装挂机键〃〃〃〃〃〃〃〃〃Mov p85+p0Spd 200Mvs p85out12=1Dly 0.2Ovrd 70Mvs p85+p0Mov p3Mov p102+p0Spd 200Mvs p102Dly 0.2out12=0Ovrd 70Mvs p102+p0Mov p3'///////////////////////// 装方向键///////////////// Mov p70+p0Spd 200Mvs p70out12=1Dly 0.2Ovrd 70Mvs p70+p0Mov p3Mov p101+p0Spd 200Mvs p101Dly 0.2out12=0Ovrd 70Mvs p101+p203out6=1'///////////////////////// 放回夹具1////////////Ovrd 50Mov p23Spd 450Mvs p20-p204out6=0Spd 400Mvs p20Dly 0.2out11=1Dly 0.2Mvs p20+p203out6=1Dly 0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'////////////////////////// 四次装机〃〃〃〃〃〃〃〃〃〃〃〃〃*ks4out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'///////////////////// 装1和2键//////////////////////////// Ovrd 50Mov p3Ovrd 70Mov p22+p0Spd 200Mvs p22out12=1out13=1Dly 0.2Ovrd 70Mov p104+p0Spd 200Mvs p104Dly 0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly 0.2out12=0Ovrd 70Mvs p103+p0Mov p3'/////////////////////// 装3 和*键///////////////////// Mov p26+p0Spd 200Mvs p26out12=1out13=1Dly 0.2Ovrd 70Mvs p26+p0Mov p3Mov p105+p0Spd 200Mvs p105Dly 0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly 0.2out13=0Ovrd 70Mvs p106+p0Mov p3'/////////////////////////// 装4 和5 键〃〃〃〃〃〃〃/ Mov p42+p0Spd 200Mvs p42out12=1out13=1Dly 0.2Ovrd 70Mvs p42+p0Mov p3Mvs p108Dly 0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly 0.2out12=0Ovrd 70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p46+p0Spd 200Mvs p46out12=1out13=1Dly 0.2Ovrd 70Mvs p46+p0Mov p3Mov p109+p0Spd 200Mvs p109Dly 0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly 0.2out13=0Ovrd 70Mvs p110+p0Mov p3'/////////////////////////// 装7和8 键〃〃〃〃〃〃〃/ Mov p62+p0Spd 200Mvs p62out12=1out13=1Dly 0.2Ovrd 70Mvs p62+p0Mov p3Mov p112+p0Spd 200out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly 0.2out12=0Ovrd 70Mvs p111+p0Mov p3'///////////////////////////// 装9 键////////////////// Mov p66+p0Spd 200Mvs p66out12=1Dly 0.2Ovrd 70Mvs p66+p0Mov p3Mov p113+p0Spd 200Mvs p113Dly 0.2out12=0Ovrd 70Mvs p113+p0Mov p3'//////////////////# 和接听键〃〃〃〃〃〃〃〃Mov p82+p0Spd 200Mvs p82out12=1out13=1Dly 0.2Ovrd 70Mvs p82+p0Mov p3Mov p114+p0Spd 200Mvs p114Dly 0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly 0.2out13=0Mvs p100+p0Mov p3'////////////////////// 装挂机键////////////////// Mov p86+p0Spd 200Mvs p86out12=1Dly 0.2Ovrd 70Mvs p86+p0Mov p3Mov p102+p0Spd 200Mvs p102Dly 0.2out12=0Ovrd 70Mvs p102+p0Mov p3'//////////////////////// 装方向键〃〃〃〃〃〃〃〃/ Mov p80+p0Spd 200Mvs p80out12=1Dly 0.2Ovrd 70Mvs p80+p0Mov p3Mov p101+p0Spd 200Mvs p101Dly 0.2out12=0Ovrd 70Mvs p101+p203out14=1out6=1'///////////////////////// 放回夹具1//////////// Ovrd 50Mov p23Spd 450Mvs p20-p204out14=0out6=0Spd 400Mvs p20out11=1Dly 0.2Mvs p20+p203out6=1Dly 0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturnp0=(0.000,0.000,20.000,0.000,0.000,0.000)(0,0)p2=(-154.670,138.600,418.830,177.240,-2.220,93.990)(7,0)p5=(113.400,122.320,483.400,179.140,-0.790,-30.240)(7,0) p6=(91.280,-217.830,438.810,179.750,-0.930,-178.790)(7,0) p7=(-153.020,-262.020,392.510,179.750,-0.940,-179.930)(7,0) p8=(-162.480,-443.610,267.820,178.830,0.490,-178.740)(7,0)p9=(233.070,55.460,418.420,179.750,-0.930,2.420)(7,0)p10=(265.110,215.710,271.730,-179.910,0.310,0.970)(7,0) p30=(-168.010,276.940,192.890,179.680,0.290,92.220)(7,0) p33=(-163.270,151.470,194.950,179.480,-0.120,91.250,0.000,0.000)(7,0) p40=(-47.200,277.180,194.360,179.960,0.340,92.160)(7,0)p200=(0.000,0.000,5.000,0.000,0.000,0.000)(0,0)p201=(0.000,0.000,150.000,0.000,0.000,0.000)(0,0)p202=(0.000,135.000,0.000,0.000,0.000,0.000)(0,0)p203=(0.000,0.000,60.000,0.000,0.000,0.000)(0,0)p204=(0.000,20.000,0.000,0.000,0.000,0.000)(0,0) p231=(144.270,-417.110,248.130,179.740,-0.910,-178.230)(7,0) p240=(5.860,-417.110,248.800,179.740,-0.910,-178.230)(7,0) j1=(0.000,-60.000,145.000,0.000,0.000,-90.000)jyd=(0.000,-60.000,145.000,0.000,0.000,-90.000)。
三菱机器人操作指南
三菱操作指南三菱操作指南
章节一:简介
1.1 概述
1.2 的分类和应用领域
1.3 的基本构造
1.4 的工作原理
章节二:的安装与调试
2.1 安装准备
2.2 的安装步骤及注意事项
2.3 的调试步骤
2.4 调试过程中常见问题及解决方法章节三:的编程与操作
3.1 编程环境介绍
3.2 编程语言及常用指令
3.3 程序的编写与调试
3.4 操作步骤及注意事项
章节四:的日常维护与保养
4.1 的日常维护工作
4.2 的保养周期与方法
4.3 故障排除与维修
章节五:的安全注意事项
5.1 的安全操作规范
5.2 操作过程中的常见安全问题及处理方法
5.3 的应急停机与紧急情况处理
章节六:附件
附件1:安装图纸
附件2:调试记录表
附件3:操作示例程序
法律名词及注释:
1.:根据《法》所定义,指能够自行或程序控制地完成任务、替代人类劳动的自动化机械装置。
2.编程环境:指操作系统提供的开发环境,用于编写、调试程序的软件工具。
3.操作规范:基于《法》和相关法律法规,制定的操作行为准则,旨在保障操作人员的人身安全和财产安全。
4.应急停机:指在工作过程中,出现紧急情况时,通过紧急停机装置或按下紧急停机按钮,立即使停止工作。
附:本文档涉及附件请查阅相关文件。
三菱机器人简单指令用法介绍
三菱机器人简单指令用法介绍
三菱机器人简单指令用法介绍
一、三菱机器人Dly等待指令的使用方式
1.Dly单独使用时为等待时间,单位为秒
如:等待3s为:Dly 3
2.当Dly搭配输出信号使用时,则为信号输出多少秒后复位,单位为秒
如:M_out(8)=1 Dly 1
意思为:输出信号8,1秒后复位输出信号8,不会影响程序执行,程序不会再这里等待1s
二、位移指令加偏移用法
1.直接再目标点后加数值,灰默认为高度即Z方向的偏移值
如:mov pend ,3
意思为:移动到目标点pend上方3mm处
2.如何再X、Y、Z、角度上作偏移
三菱机器人的附加偏移距离格式为:
Mov Pend +(+X,+Y,+Z,+Rx,+Ry,+Rz)
Rx、Ry、Rz分别为X\Y\Z方向的旋转角度,即欧拉角,单位为度再不需要用到Rx、Ry、Rz时可以省略写成:
Mov Pend +(+X,+Y,+Z)。
三菱机器人跳舞程序
1 '-----------------------输入点-------------------------------------------2 Def Io in0=Bit,0 '程序停止3 Def Io in1=Bit,1 '伺服OFF4 Def Io in2=Bit,2 '异常复位5 Def Io in3=Bit,3 '程序开始运行6 Def Io in4=Bit,4 '操作权申请7 Def Io in5=Bit,5 '程序复位8 Def Io in6=Bit,6 '有料信号9 Def Io in7=Bit,7 '有盖信号10 Def Io in8=Bit,8 '盖颜色信号11 Def Io in9=Bit,9 'plc复位信号12 Def Io in10=Bit,10 '夹具1到位信号13 Def Io in11=Bit,11 '夹具2到位信号14 Def Io in12=Bit,12 '伺服ON15 Def Io in13=Bit,13 '夹具3到位信号16 Def Io in14=Bit,14 '仓库1清空信号17 Def Io in15=Bit,15 '仓库2清空信号18 '-------------------------输出点------------------------------------------19 Def Io out0=Bit,0 '程序RUN20 Def Io out1=Bit,1 '伺服ON21 Def Io out2=Bit,2 '异常报警22 Def Io out3=Bit,3 '操作权有效23 Def Io out4=Bit,4 '程序STOP24 Def Io out5=Bit,5 '到原点位25 Def Io out6=Bit,6 '装配完成信号26 Def Io out7=Bit,7 '加盖完成信号27 Def Io out8=Bit,8 '入库完成信号28 Def Io out9=Bit,9 '仓库1满29 Def Io out10=Bit,10 '仓库2满30 Def Io out11=Bit,11 '抓手电磁阀(夹具电磁阀)(夹具电磁阀)(夹具电磁阀)31 Def Io out12=Bit,12 '吸盘A电磁阀(吸盘A电磁阀)(胶枪)(抓手电磁阀)32 Def Io out13=Bit,13 '吸盘B电磁阀(吸盘B电磁阀)(抓手电磁阀)33 Def Io out14=Bit,14 '换料34 Def Io out15=Bit,15 '取盖到位35 While 136 Servo On37 Dly 0.538 Mov p139 Mov p240 Mov p341 Mov p442 Ovrd 9043 Mov p544 Mov p646 Mov p647 Mov p548 Ovrd 10049 Mov p450 Mov p351 Mov p252 Mov p153 '-----------------------------------------------54 Mov p855 Mov p956 Mov p1057 Mov p1158 Mov p1259 Mov p1360 Mov p1461 Ovrd 9062 Mov p1563 Mov p1664 Mov p1765 Mov p1866 Mov p1767 Mov p1668 Mov p1569 Ovrd 10070 Mov p1471 Mov p1372 Mov p1273 Mov p1174 Mov p1075 Mov p876 Mov p177 '-------------------------------------------------------78 Mov p1979 Mov p2080 Mov p2181 Mov p2282 Mov p2383 Mov p2484 Mov p2585 Mov p2686 Mov p2787 Mov p2888 Mov p2990 Mov p2991 Mov p2892 Mov p2793 Mov p2694 Mov p2595 Mov p2496 Mov p2397 Mov p2298 Mov p2199 Mov p20100 Mov p19101 Mov p1102 WEndp1=(+270.07,+0.00,+504.65,-179.93,+0.00,+87.84)(7,0)p2=(+270.19,+65.14,+600.27,-5.68,-68.42,-83.93)(7,0)p3=(+270.19,+65.14,+600.27,-5.68,-68.42,-83.93)(7,0)p4=(+118.13,-23.33,+717.55,+24.16,+17.08,-80.28)(7,4096) p5=(-4.21,-71.16,+629.38,+115.88,-1.94,+175.67)(3,0)p6=(-3.19,-92.48,+667.49,+43.27,-0.12,-0.54)(3,4096)p7=(+246.92,-11.06,+732.63,+12.18,-0.35,-84.21)(3,15)p8=(+62.14,+0.87,+863.89,-11.92,+0.45,-87.09)(0,0)p9=(+32.08,-0.04,+863.64,-12.87,+0.50,+94.77)(0,4096)p10=(+36.63,-10.14,+863.68,-12.72,+0.81,+137.97)(0,0)p11=(+62.14,+0.87,+863.89,-11.92,+0.45,-87.09)(0,0)p12=(+459.49,+7.49,+636.05,-58.97,+4.84,-85.27)(0,0)p13=(-126.86,-0.69,+617.19,+58.71,-5.74,-86.75)(6,0)p14=(-18.82,+4.29,+631.60,-43.68,-2.40,-86.31)(6,0)p15=(-95.30,-13.41,+643.78,-26.27,-0.62,+112.49)(6,0)p16=(-38.20,+4.46,+644.63,-24.51,-3.00,-85.91)(6,0)p17=(-58.46,-5.34,+511.68,-173.05,-3.63,-90.03)(7,0)p18=(-135.39,-2.49,+595.54,+77.97,-6.01,-87.42)(7,0)p19=(+144.42,-46.70,+733.36,+79.77,-2.13,+72.46)(7,0)p20=(-40.38,+19.68,+793.78,+49.75,-1.65,+65.41)(3,0)p21=(-37.44,+60.48,+735.73,+53.78,-1.74,+33.04)(3,0)p22=(+5.11,+204.56,+682.63,+36.11,-1.27,+0.31)(3,0)p23=(-24.15,-70.36,+608.33,+87.58,-2.16,-18.85)(7,0)p24=(-62.32,-76.88,+556.58,+97.00,-2.15,-39.29)(7,0)p25=(-186.40,+23.45,+711.13,+37.35,-1.31,+84.55)(3,0)p26=(+23.54,-118.37,+795.97,+38.55,-1.35,-167.06)(3,0)p27=(+33.15,-134.85,+842.46,+23.42,+0.40,+23.23)(3,4096) p28=(-6.28,+207.96,+819.15,+39.05,+26.38,+119.37)(5,0) p29=(-46.56,+347.78,+537.87,+2.33,+18.71,+7.01)(7,0)p30=(-5.95,+143.54,+595.24,+25.93,-4.72,+66.41)(7,0)。
PLC应用与实践(三菱) 配套教学延伸阅读:机器人程序分析
机器人程序分析(1)在编写机器人程序之前,需要对使用的IO板和输入输出信号进行配置。
按照14.2(三)中的方法对DSQC653进行配置。
按照14.2(三)中的方法对di1和do1进行配置,然后用相同的方法完成di2、di3和do2的配置。
(2)进行程序的编写以下就是全部的源程序。
MODULE MainModuleCONST robtarget phome:=[[561.90,-360.76,336.21],[6.98293E-05,-0.00872662,-0.999962,5.24537E-06],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]]; !初始位置坐标数据CONSTrobtarget pPick:=[[746.37,-235.27,92.28],[2.04731E-07,-0.00872845,-0.999962,-8.47187E-07],[0,-1,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]]; !取棋子位置坐标数据 CONST robtarget pPlace:=[[222.70,14.36,60.61],[1.33808E-07,0.00872842,0.999962,1.41987E-06],[1,-1,1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]]; !第一个棋子的放置位置坐标数据 CONST robtarget pFlyby:=[[645.35,-126.53,171.85],[2.98244E-07,-0.0087286,-0.999962,-1.20834E-06],[0,-1,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]]; !过渡点坐标数据PERS speeddata vMinSpeed:=[300,50,5000,1000]; !机器人慢速运行速度数据PERS speeddata vMAXSpeed:=[1000,300,5000,1000]; !机器人快速运行速度数据VAR num n:=0; !棋子计数,初始值为0VAR num hang:=0; !放置位置的行数,初始值为0VAR num lie:=0; !放置位置的列数,初始值为0VAR num HJJ:=70; !放置位置行间距,初始值为70VAR num LJJ:=70; !放置位置列间距,初始值为70VAR bool flag; !码垛运行标志PROC rMaduo() !码垛子程序n:=0; !棋子个数清零flag:=true; !将码垛标志设定为”真“WHILE flag=TRUE DO !当码垛标志为真时进入循环WaitDI di3,1; !等待棋子到位信号(来自PLC的Y3)MoveJ offs(pPick,0,0,50), vMAXSpeed, z10, tool0; !高速移动到取棋子位置的上方50mm处MoveL offs(pPick,0,0,0), vMinSpeed, fine, tool0; !低速移动到取棋子位置Set do2; !将吸盘控制信号置位(送到PLC的X4)WaitTime 1; !等待1sMoveJ offs(pPick,0,0,50), vMinSpeed, z10, tool0; !低速移动到取棋子位置的上方50mm处MoveJ pFlyby, vMAXSpeed, z50, tool0; !高速移动到过渡点MoveJ offs(pPlace,HJJ* hang,LJJ* lie,50), vMAXSpeed, z10, tool0;!高速移动到棋子放置位置的上方50mm处MoveL offs(pPlace,HJJ* hang,LJJ* lie,0),vMinSpeed, fine, tool0;!低速移动到棋子放置位置Reset do2; !将吸盘控制信号复位(送到PLC的X4)WaitTime 1; !等待1sMoveJ offs(pPlace,HJJ* hang,LJJ* lie,50), vMinSpeed, z10, tool0;!低速移动到棋子放置位置的上方50mm处MoveJ pFlyby, vMAXSpeed, fine, tool0; !高速移动到过渡点n:=n+1; !完成一次棋子的码垛后,棋子计数值加一IF n=9 THEN !判断棋子数量是否达到设定值flag:=false; !将码垛标志设定为“假”Set do1; !码垛完成信号置位(送到PLC的X3)ENDIF !结束判断hang:=n DIV 3; !将棋子计数除以3,取商,获得放置行数lie:=n MOD 3; !将棋子计数除以3,取余,获得放置列数ENDWHILE !结束循环ENDPROC !结束子程序PROC teach() !示教位置子程序MoveJ phome, v200, fine, tool0; !示教初始位置MoveJ pPick, v200, fine, tool0; !示教取棋子位置MoveJ pPlace, v200, fine, tool0; !示教第一个放置位置MoveJ pFlyby, v200, fine, tool0; !示教过渡点位置ENDPROCPROC main() !主程序(程序从这里开始运行)Reset do1; !复位码垛完成信号(送到PLC的X3)Reset do2; !复位吸盘控制信号(送到PLC的X4)HJJ:=70; !放置位置行间距赋值为70LJJ:=70; !放置位置列间距赋值为70WaitDI di1,1; !等待起动信号(来自PLC的Y3)MoveJ phome, vMAXSpeed, fine, tool0; !机器人回到初始位置rMaduo; !调用码垛子程序MoveJ phome, vMAXSpeed, fine, tool0; !码垛完成后回到初始位置 ENDPROC !程序结束ENDMODULE(3)程序分析程序的开头是对机器人码垛任务的四个关键位置点进行声明。
三菱机器人RV-M1使用说明
目录第一章硬件介绍1、RV-M1基本组成2、机器人本体3、机器人驱动装置4、机器人示教盒5、机器人与外部PLC通信第二章软件介绍1、编程软件2、基本编程指令3、机器人装配程序4、程序调试第一章硬件介绍1、RV-M1基本组成RV-M1基本组成一览图2、机器人本体2.1机器人的安装安装机器人时通过M8x3安装螺栓、M8安装弹簧垫圈和用于安装螺栓的M8平垫圈固定在安装版上,然后再将安装版与移动小车香固定。
机器人底座的安装示意图机器人安装尺寸2.2机器人的移动搬运(1)机器人移动时需如图展示的标准搬运。
(2)在移动机器人前,需把膀臂一向正方向移动,膀臂二向负方向移动,直到都移动到限位。
(3)当提升机器人时,保持机器人在两膀之间和小腹之上。
(4)不能搬运机器人的后盖。
(5)机器人在移动过程中需如图所示状态。
警告:机器人必须和安装版一起移动。
2.3机器人本体的结构组成(1)外部视图外部结构组成示意图RV-M1机器人为五轴机器人,分别为:J1轴1<――>XJ2轴2<――>YJ3 轴3<――>ZJ4轴4<――>PJ5轴5<――>R结构组成:底座支撑、身体、上膀臂(大臂)、前膀臂(小臂)、卷腕器(手腕)、肩上下盖、电机信号线、电动机电源线。
(2)内部视图内部结构组成示意图结构组成:Relay card、各轴的驱动电机、各轴的限位开关、各轴的同步齿型皮带、轴2和3的制动器(3)外观尺寸外观尺寸示意图2.4 机器人的工作(1)回原点机器人每次在上电后,都必须要进行回原点,这样才能让机器人知道具体的机械远点。
在编程的时候,同样需要给程序的开头写入回原点指令nt。
机器人回原点状态位置图(2)工作空间范围工作范围:腰关节(X轴),最大转动范围为300°,最大速度为120°/s。
肩关节(Y轴),最大转动范围为130°,最大速度为72°/s。
肘关节(Z轴),最大转动范围为110°,最大速度为109°/s。
三菱机器人基本操作手册[1]
三菱机器人基本操作手册一、型号介绍Ⅰ.本体(机械臂):1.RV-E2(M) 6 Axies --- W、S、E、T、P、R2.RV-E3J(M) 5 Axies --- W、S、E、T(×)、P、RⅡ.控制器及示教器型号1.控制器为 CR-E1162.示教器为 P6TB-T二、基本操作首先,把示教器连接到控制器上。
再弹出[T/B EMG.CANCEL]按钮。
最后,把T/B(示教器)打到ENABLE状态。
1.单轴运动(关节运动)A.按[STEP/MOVE]+[JOINT]键,选择关节运动模式.B.按[STEP/MOVE]+(想要移动轴的键),单个轴将会被移动.2. 直线运动A.按[STEP/MOVE]+[XYZ]键,选择直线(XYZ)运动模式.B.按[STEP/MOVE]+(想要移动轴的键),单个轴将会沿着XYZ方向移动.3.改变手动速度按[STEP/MOVE]+[SPD],改变机器人手动速度(LOW<->HIGH).4. 修改点位1.将示教合上方使能开关拨至ENBL.2.选择1. TEACH. 按INP/EXE].3.输入程序号 如:1 按INP/EXE].4.按住[POS/CHAR]不放,再按[ADD],进入点编辑界面.5.MO POSI ( ). 注:在括号内输入要修改的点的序号.如:输入80 按INP/EXE]确认。
6.按住STEP/MOVE不放,再按住INP/EXE]不放,则机器人运行至80点位处. 7.手动调整至所需位置后,按住STEP/MOVE不放,按ADD一次,出现如下界面: MO POSI 80*ADDITION ? *****注:此时若松开[STEP/MOVE]则放弃修改80点,若再按[ADD]则80点被修改至新位置(即机器人当前位置)。
在编辑时删除文字或数字:按住[POS/CHAR]不放,再按[DEL],按一次删一个字符。
5. 程序修改1. ROBOT 控制面板按 [STOP]----------(ROBOT 停机)2. ROBOT 教导盒切换至 [ENBL]3. 在 MENU,选“1”TEACH4. 选择程序号,按“1”5. 按 [COND] + [ADD],进入示教器编程窗口6. 按 [RPL] 2 次,到输入区7. 选到要修改的 LN 后按 [EXE]8. 按 [RPL]9. 修改该行程序后10. 按 [EXE] 更新程序。
三菱机器人离线软件与示教器
三菱机器人离线软件与示教器Document number:NOCG-YUNOO-BUYTT-UU986-1986UT第一节三菱机器人离线编程系统的应用工程区管理1)新建工作区(1)点击菜单栏中的[工作区]-[新建]或者(Ctrl+N)。
工作区显示如下界面。
输入工作区名、标题后,点击[OK]按钮。
(2)工程编辑画面显示后,可设定工程名、通讯设定和离线机器人的设定,然后点击[OK]按钮。
(3)工程创建完毕。
工作区中会显示工程树,走位初始值,制成的[RC1]工程。
2)打开工作区打开已经完成的工作区时,选择菜单栏中的[工作区]-[打开],或者点击工作栏中的(Ctrl+O),选择要打开的工作区后,点击[OK]按钮。
3)关闭工作区与删除工作区关闭当前编辑中的工作区时,请点击菜单栏中的[工作区]-[关闭]。
删除工作区的情况下,如果不关闭作为对象的工作区,就不能删除。
4)工作区名/工作区标题的变更在以打开工作区的基础上,鼠标右击工作区名[工作区的编辑],工作区编辑画面显示后,输入新的工作区名和标题后,点击[OK]。
如下图。
5)工程的编辑6)工程树(1)离线部分(2)在线部分(2)备份部分(4)工具部分(1)离线部分离线部分显示电脑中的信息,即当前设定的机器人的机型和机器人的程序。
(2)在线部分在和控制器连接后,切换成在线状态时,或者模拟启动时显示,显示连接中的机器人型号和控制器等相关信息。
(3)备份显示从控制器备份过来的信息。
(4)Tool功能显示其它功能。
7)离线/在线/模拟在机器人离线编程软件中,工程的状态可分为离线、在线和模拟三种。
各个状态的含义和工程树的显示内容不尽相同。
状态说明工程树的显示离线状态以电脑中保存的文件作为对象。
工程树的工程名左面显示的图标为绿色,工程树中,显示离线和备份。
在线状态连接机器人的控制器,进行控制器中信息的确认和变更。
在线时,工程树的工程名显示图表为蓝色,工程树中显示离线、在线和备份。
T-01-O-M-三菱机器人编程概要.
三菱工业机器人培训——机器人编程一、MELFA-BASIC V说明1.1 程序名控制器面板显示1.2 指令构成常用指令表1.3 数据类型1)常量数值常量字符常量位置常量角度常量变量数值变量数值类型数值范围位置变量关节变量输入输出变量2.1)外部变量二、指令说明2.1 主要指令一览动作控制指令程序控制指令运算指令外部输出入信号2.2 常用指令说明(1)插补命令MOV 指令(例mov p1)MVS指令(mov p1)Mvr 起点,通过点,终点(例:Mvr P1,P2,P3)接近语法(RV型)速度命令OVRD命令实际速度:系统设置速度×Ovrd命令设置速度抓手开闭延时、等待延时指令说明:抓手1关闭后,延时0.5S,执行下一指令。
等待指令说明:等待M_In(10)信号为1 ,执行下一语句。
子程序Gosub指令执行顺序:主程序14步》副程序50步》副程序57步》主程序15步分支命令Goto无条件跳转指令说明:goto 无条件跳转至星号*开头的标签处。
如果从if语句跳出,可能会导致无法endif而报错。
If 语句说明:IF条件成立,执行then部分,不成立,执行else部分。
end命令End指令说明:定义主程序,与后面子程序内容界限区分。
三、共享内存(SQ)3.1 地址分配说明:注意输出地址U3E0打头;输入地址U3En (n为1、2、3)打头,Plc地址为16位,机器人地址为1位,即机器人输入地址10000对应PLC输出地址为U3E0\G10000.0,机器人输入地址10015对应PLC输出地址为U3E0\G10000.A。
3.2 内存使用1)机器人中编程1号机器人与PLC内存作对应分配(随机分配)共享内存机器人间通讯使用:2号机器人程序1号机器人程序通讯变量的初始化2)PLC中编程PLC中输出输入赋值通讯整形变量的赋值通讯最新文件仅供参考已改成word文本。
方便更改。
三菱机器人离线软件与示教器
精心整理第一节 三菱机器人离线编程系统的应用1.1工程区管理 1) 新建工作区(1)点击菜单栏中的[工作区]-[新建]或者(Ctrl+N )。
工作区显示如下界面。
输入工作区名、标题后,点击[OK]按钮。
(2)工程编辑画面显示后,可设定工程名、通讯设定和离线机器人的设定,然后点击[OK]按钮。
(3)工程创建完毕。
工作区中会显示工程树,走位初始值,制成的[RC1]工程。
2)(3) 4) 5) 6)(1)离线部分离线部分显示电脑中的信息,即当前设定的机器人的机型和机器人的程序。
(2)在线部分在和控制器连接后,切换成在线状态时,或者模拟启动时显示,显示连接中的机器人型号和控制器等相关信息。
(3)备份显示从控制器备份过来的信息。
(4)Tool功能显示其它功能。
7)离线/在线/模拟在机器人离线编程软件中,工程的状态可分为离线、在线和模拟三种。
各个状态的含义和工程切换成在线模式,切换成模拟在线模式。
是在CR750-D/CRnD-700系列机器人控制器和GOT1000系列被在Ethernet连接的时候GOT通信]。
程序名②输入机器人程序名后,点击[OK]按钮,显示程序编辑画面。
③程序新建完成。
2)打开现有程序展开作为工程树的对象的工程的[离线]→[程序]。
所保存的程序会被显示在工程树中,然后双击需要进行编辑的程序。
3)打开控制器中的程序展开作为工程树的对象的项目的[在线]→[程序]。
所保存的程序会被显示在工程树中,然后双击需要编辑的程序。
画面显示,确认读出项目后,点击[OK]按钮。
4)程序指令的编辑使用MELFA-BASICV制作程序时,没有类似MELFA-BASICIV和MOVEMASTER指令的行号,左边显示STEP位置。
该STEP编号,可以通过键盘的[Enter]键自动显示。
根据相应指令的格式将程序指令编辑到步号后面的程序编辑区。
指令编辑区STEP编号直角型位置变量关节型位置变量5按钮。
6③[列表中选择传送源的程序名,并在右侧指定传送目标。
三菱机器人程序
三菱程序章节一、引言本文档是关于三菱程序的详细说明和操作指南。
它包含了三菱程序的创建、编辑、和运行等方面的详细步骤和注意事项。
章节二、程序概述本章节介绍三菱程序的基本概念和结构,包括程序的组成部分、程序的作用以及程序的执行流程等内容。
2.1 程序的组成部分2.1.1 程序头2.1.2 程序体2.2 程序的作用2.2.1 程序的功能一2.2.2 程序的功能二2.3 程序的执行流程2.3.1 步骤一2.3.2 步骤二章节三、创建程序本章节介绍如何创建一个新的三菱程序,包括程序的命名规则、编辑环境的说明以及创建程序的具体步骤等。
3.1 程序命名规则3.2 编辑环境说明3.2.1 编辑器3.2.2 菜单栏3.2.3 工具栏3.2.4 配置文件3.3 创建程序的具体步骤3.3.1 步骤一3.3.2 步骤二章节四、编辑程序本章节介绍如何编辑三菱程序中的各个部分,包括添加指令、修改参数以及删除指令等操作。
4.1 添加指令4.2 修改参数4.3 删除指令章节五、和运行程序本章节介绍如何将编辑好的程序到实际的三菱控制器中,并进行程序的运行和调试。
5.1 程序到控制器5.2 程序运行和调试章节六、附件本文档涉及的附件包括示例程序、程序演示视频等。
附件一、示例程序文件夹附件二、程序演示视频文件章节七、法律名词及注释本章节本文档中涉及的法律名词,并提供相应的解释和注释。
7.1 法律名词一、X注释:7.2 法律名词二、X注释:章节八、总结本文档提供了三菱程序的详细说明和操作指南,包括程序的创建、编辑、和运行等方面的内容。
1三菱工业机器人指令系统
4. 机器人程序控制
③在Then或 Else里,并且记述fI…Then…Else…EndIf的联结情 况下
30 If M1>10 Then
31
If M2>20 Then
32
M1=10
33
M2=10
34
Else
35
M1=0
36
M2=0
37
EndIf
38 Else
1 MELFA-BASIC V概述 1.1机器人的动作控制
1 MELFA-BASIC V概述 ❖1.2 程序控制
1 MELFA-BASIC V概述
1.3 Pallet 运算
❖Def Plt、Plt 1.4 通信
5 Cnt 1,100,200 ‘指定在开始侧100mm、结束侧200mm连续动作
6 Mvs P3
‘用指定距离在插补的前后连续动作
7 Cnt 1,300
‘ 指定在开始侧300mm、
‘结束侧300mm做连续动作
8 Mov P4
‘在开始侧以300mm连续动作
9 Cnt 0
‘将Cnt(连续动作)设定为无效
10 Mov P5
'有加减速的执行动作
2.机器人的动作控制
❖ 连续轨迹动作的例子
2.机器人的动作控制
❖ 加减速时间和速度控制:对加减速最高速度的比 例及动作速度
2.机器人的动作控制
On <式> GoTo[<分支处>][,[<分支处>]]... 10 On M1 GoTo *ABC1,*LJMP,*LM1_345,*LM1_345,
*LM1_345,*L67,*L67 11
‘M1为1~7以外(0或8~)的时候,移动到此行
三菱机器人说明书
三菱机器人说明书篇一:机器人操作指南第七章工业机器人应用一机器人示教单元使用1. 示教单元的认识2. 使用示教单元调整机器人姿势2.1在机器人控制器上电后使用钥匙将MODE开关打到“MANUAL”位置,双手拿起,先将示教单元背部的“TB ENABLE”按键按下。
再用手将“enable”开关扳向一侧,直到听到一声“卡嗒”为止。
然后按下面板上的“SERVO”键使机器人伺服电机开启,此时“F3”按键上方对应的指示灯点亮。
2.2按下面板上的“JOG”键,进入关节调整界面,此时按动J1--J6关节对应的按键可使机器人以关节为运行。
按动“OVRD↑”和“OVRD↓”能分别升高和降低运行机器人速度。
各轴对应动作方向好下图所示。
当运行超出各轴活动范围时发出持续的“嘀嘀”报警声。
2.3按“F1”、“F2”、“F3”、“F4”键可分别进行“直交调整”、“TOOL调整”、“三轴直交调整”和“圆桶调整”模式,对应活动关系如下各图所示:直交调整模式TOOL调整模式三轴直交调整模式圆桶调整模式2.4 在手动运行模式下按“HAND”进入手爪控制界面。
在机器人本体内部设计有四组双作用电磁阀控制电路,由八路输出信号OUT-900――OUT-907进行控制,与之相应的还有八路输入信号IN-900――IN-907,以上各I/O信号可在程序中进行调用。
按键“+C”和“-C”对应“OUT-900”和“OUT-901”按键“+B”和“-B”对应“OUT-902”和“OUT-903”按键“+A”和“-A”对应“OUT-904”和“OUT-905”按键“+Z”和“-Z”对应“OUT-906”和“OUT-907”在气源接通后按下“-C”键,对应“OUT-901”输出信号,控制电磁阀动作使手爪夹紧,对应的手爪夹紧磁性传感器点亮,输入信号到“IN-900”;按下“+C”键,对应“OUT-900”输出信号,控制电磁阀动作使手爪张开。
对应的手爪张开磁性传感器点亮,输入信号到“IN-901”。
三菱机器人程序 (2)
'//////////////定义输入////////////Def Io in0=Bit,0Def Io in1=Bit,1Def Io in3=Bit,3Def Io in4=Bit,4Def Io in5=Bit,5Def Io in6=Bit,6Def Io in7=Bit,7Def Io in8=Bit,8Def Io in9=Bit,9Def Io in10=Bit,10Def Io in11=Bit,11Def Io in12=Bit,12Def Io in13=Bit,13Def Io in14=Bit,14Def Io in15=Bit,15'///////////////定义/输出//////////Def Io out0=Bit,0Def Io out1=Bit,1Def Io out3=Bit,3Def Io out4=Bit,4Def Io out5=Bit,5Def Io out6=Bit,6Def Io out7=Bit,7Def Io out8=Bit,8Def Io out9=Bit,9Def Io out10=Bit,10Def Io out11=Bit,11Def Io out12=Bit,12Def Io out13=Bit,13Def Io out14=Bit,14Def Io out15=Bit,15'//////////////定义变量//////////////Def Jnt jyd '定义安全点Def Plt1,p11,p17,p71,p77,4,4,1'定义托盘点j1=(+1.11,-60.00,+145.00,+0.00,+0.00,+86.61)jyd=(+0.00,-60.00,+145.00,+0.00,+0.00,-90.00)p0=(+0.00,+0.00,+20.00,+0.00,+0.00,+0.00)(0,0)p200=(+0.00,+0.00,+5.00,+0.00,+0.00,+0.00)(0,0)p201=(+0.00,+0.00,+150.00,+0.00,+0.00,+0.00)(0,0)p202=(+0.00,+135.00 ,+0.00,+0.00,+0.00,+0.00)(0,0)p203=(+0.00,+0.00,+60.00,+0.00,+0.00,+0.00)(0,0)p204=(+0.00,+20.00,+0.00,+0.00,+0.00,+0.00)(0,0)'////////////托盘点//////////////p12=p11p21=p11p12.Y=p11.Y+12 p21.X=p11.X+12 p22.X=p11.X+12 p22.Y=p11.Y+12 p15=(Plt1,3)p16=p15p25=p15p26=p15p16.Y=p15.Y+12 p25.X=p15.X+12 p26.X=p15.X+12 p26.Y=p15.Y+12 p31=(Plt1,8)p32=p31p41=p31p42=p31p32.Y=p31.Y+12 p41.X=p31.X+12 p42.X=p31.X+12 p42.Y=p31.Y+12 p35=(Plt1,6)p36=p35p45=p35p46=p35p36.Y=p35.Y+12 p45.X=p35.X+12 p46.X=p35.X+12 p46.Y=p35.Y+12 p51=(Plt1,9)p52=p51p61=p51p62=p51p52.Y=p51.Y+12 p61.X=p51.X+12 p62.X=p51.X+12 p62.Y=p51.Y+12 p55=(Plt1,11) p56=p55p65=p55p66=p55p56.Y=p55.Y+12 p65.X=p55.X+12 p66.X=p55.X+12 p66.Y=p55.Y+12 p75=(Plt1,14)p85=p75p86=p75p76.Y=p75.Y+12p85.X=p75.X+12p86.X=p75.X+12p86.Y=p75.Y+12p72=p71p81=p71p82=p71p72.Y=p71.Y+12p81.X=p71.X+12p82.X=p71.X+12p81.Y=p71.Y+12'///////////////判断/////////////If M_In(9)=1 And M_In(10)=0Then'判断3个夹具是否在原位If M_In(11)=0 And M_In(13)=0ThenGoSub *fw '程序fw EndIfEndIfIf M_In(9)=1 And M_In(10)=1Then'判断1夹具是否在原位If M_In(11)=0 And M_In(13)=0ThenGoSub *fw1 '夹具1复位EndIfEndIfIf M_In(9)=1 And M_In(10)=0Then'判断夹具2是否在原位If M_In(11)=1 And M_In(13)=0ThenGoSub *fw2 '夹具2复位EndIfEndIfIf M_In(9)=1 And M_In(10)=0Then'判断夹具3是否在原位If M_In(11)=0 And M_In(13)=1ThenGoSub *fw3 '夹具3复位EndIfEndIfIf M_05#>3Thenout14=1M_05#=0EndIfIf M_In(6)=1 And M_05#=0ThenGoSub *ks1 '一次装机EndIfIf M_In(6)=1 And M_05#=1ThenGoSub *ks2 '二次装机EndIfIf M_In(6)=1 And M_05#=2ThenGoSub *ks3 '三次装机EndIfIf M_In(6)=1 And M_05#=3ThenGoSub *ks4 '四次装机EndIfEnd'////////////////复位程序////////////*fw '程序复位Ovrd80j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout5=1m_outb(6)=0'将输出信号6-13的8个位关闭M_00#=0M_05#=0M_01#=0Return'/////////////////////////////////////'//////////////////复位1/////////////////////*fw1Ovrd70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout12=0out13=0Mov p1Mov p23ovrd50Spd400Mvs p20-p204Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out11=0GoSub *fw4Return'/////////////////////////// '/////////////////////// 复位2//////////// *fw2Ovrd70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout12=0out13=0ovrd50Mov p40+p201Spd400Mvs p40Dly0.2out11=1Dly0.2Mvs p40+p203out11=0GoSub *fw4Return'///////////////////////////'/////////////////复位3////////////////*fw3Ovrd70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout12=1out13=0Mov p5out12=0ovrd51Mov p2Spd600Mvs p33Mvs p30+p200Mvs p30Dly0.2Dly0.2Mvs p30+p203out11=0M_05#=M_05#+1If M_In(6)=0Then GoTo *fw4 Return'////////////////////////////// '///////////////////正常复位//////////*fw4Ovrd50j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout11=0out12=0out13=0out15=0out7=0out6=0out14=0Return'///////////////////取夹具1///////////*jj1Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Ovrd50Mov p20+p201Spd700Mov p20+p203Spd300out11=1Mvs p20Dly0.2out11=0Dly0.2Mvs p20+p200p23=P_CurrMvs p23-p204p23=P_CurrMvs p23+p201p23=P_Curr'///////////////////取夹具2//////////*jj2Spd400Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Mvs p40+p203out11=1Mvs p40Dly0.2out11=0Dly0.2Spd600Mvs p40+p201Mvs p210+p203Spd400Mvs p210out13=1Mvs p221Mvr p221,p220,p219Mvs p218Mvr p218,p217,p216Mvs p215Mvr p215,p214,p213Mvs p212Mvr p212,p211,p210out13=0out6=1Spd600Mvs p210+p201out6=0Mvs p40+p201Spd400Mvs p40Dly0.2out11=1Dly0.2Mvs p40+p203out6=1Dly0.2out6=0Return'///////////////////取夹具3////////////////// *jj3Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Spd400Mvs p30+p203out11=1Spd300Mvs p30Dly0.2out11=0Dly0.2Spd400Mvs p30+p200p33=P_CurrMvs p33-p202p33=P_CurrMvs p33+p201Return'///////////////////去取盖//////////////////*qgOvrd50Mov p5Mov p5Mov p7Wait M_In(7)=1out12=1out13=0Mov p8+p0out12=0Spd200Mvs p8Dly0.2out13=1Dly0.2out15=1Dly0.5'/////////////////入仓库///////////////////If M_In(8)=1Then GoTo *ck2 Else GoTo *ck1 '判断颜色Return*ck2 '//////////////////////////////////////////////白色盖GoSub *jgOvrd40Mov p231+p201Spd200If M_In(15)=1 And M_00#>3Thenout10=1Wait M_Out(10)=0EndIfIf M_00#=0Then'第一层If M_In(15)=1ThenMov p6EndIfWait M_In(15)=0Mov p231+p201Spd200Mvs p231EndIfIf M_In(15)=1 And M_00#=1Then'第二层Mvs p231+p0EndIfIf M_In(15)=1 And M_00#=2Then'第三层Mvs p231+p203EndIfIf M_In(15)=1 And M_00#=3Then'第四层Mvs p231+p203+p0EndIfDly0.2out13=0out12=1Mvs p231+p201out8=1'入库完成GoSub *fw3out8=0M_00#=M_00#+1Return*ck1 '///////////////////////////////////////////////黑色盖GoSub *jgOvrd40Mov p240+p201Spd200If M_In(14)=1 And M_01#>3Thenout9=1Wait M_Out(9)=0M_01#=0EndIfIf M_01#=0Then'第一层If M_In(14)=1ThenMov p6EndIfWait M_In(14)=0Mov p240+p201Spd200EndIfIf M_In(14)=1 And M_01#=1Then'第二层Mvs p240+p0EndIfIf M_In(14)=1 And M_01#=2Then'第三层Mvs p240+p203EndIfIf M_In(14)=1 And M_01#=3Then'第四层Mvs p240+p203+p0EndIfDly0.2out13=0out12=1Mvs p240+p201out8=1'入库完成GoSub *fw3out8=0M_01#=M_01#+1Return'////////////////////去加盖//////////////////////*jgMvs p8+p203Ovrd50Mov p7Mov p6Mov p9Mov p10+p0Spd200Mvs p10Dly0.2out7=1Dly0.2out7=0Mvs p10+p0Ovrd50Mov p9Mov p6Return'//////////////////////////一次装机//////////////////////////*ks1out5=0out6=0out7=0out8=0out14=0GoSub *jj1'/////////////////////装1和2键//////////////////////////// Ovrd50Mov p3Ovrd70Mov p11+p0Spd200Mvs p11out12=1out13=1Dly0.2Ovrd70Mvs p11+p0Mov p3Mov p104+p0Spd200Mvs p104Dly0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly0.2out12=0Ovrd70Mvs p103+p0Mov p3'/////////////////////// 装3和*键///////////////////// Mov p15+p0Spd200Mvs p15out12=1out13=1Dly0.2Ovrd70Mvs p15+p0Mov p3Mov p105+p0Spd200Mvs p105Dly0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106out13=0Ovrd70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p31+p0Spd200Mvs p31out12=1out13=1Dly0.2Ovrd70Mvs p31+p0Mov p3Mov p108+p0Spd200Mvs p108Dly0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly0.2out12=0Ovrd70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p35+p0Spd200Mvs p35out12=1out13=1Dly0.2Ovrd70Mvs p35+p0Mov p3Mov p109+p0Spd200Mvs p109Dly0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110out13=0Ovrd70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p51+p0Spd200Mvs p51out12=1out13=1Dly0.2Ovrd70Mvs p51+p0Mov p3Mov p112+p0Spd200Mvs p112Dly0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly0.2out12=0Ovrd70Mvs p111+p0Mov p3'/////////////////////////////装9键////////////////// Mov p55+p0Spd200Mvs p55out12=1Dly0.2Ovrd70Mvs p55+p0Mov p3Mov p113+p0Spd200Mvs p113Dly0.2out12=0Ovrd70Mvs p113+p0Mov p3'//////////////////#和接听键////////////////Spd200Mvs p71out12=1out13=1Dly0.2Ovrd70Mvs p71+p0Mov p3Mov p114+p0Spd200Mvs p114Dly0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly0.2out13=0Ovrd70Mvs p100+p0Mov p3'//////////////////////装挂机键////////////////// Mov p75+p0Spd200Mvs p75out12=1Dly0.2Ovrd70Mvs p75+p0Mov p3Mov p102+p0Spd200Mvs p102Dly0.2out12=0Ovrd70Mvs p102+p0Mov p3'/////////////////////////装方向键///////////////// Mov p50+p0Spd200Mvs p50out12=1Dly0.2Ovrd70Mov p3Mov p101+p0Spd200Mvs p101Dly0.2out12=0Ovrd70Mvs p101+p203out6=1'/////////////////////////放回夹具1////////////Ovrd50Mov p23Spd450Mvs p20-p204out6=0Spd400Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out6=1Dly0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'//////////////////////////二次装机////////////////////////// *ks2out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'/////////////////////装1和2键//////////////////////////// Ovrd50Mov p3Ovrd70Mov p12+p0Spd200Mvs p12out12=1Dly0.2Ovrd70Mvs p12+p0Mov p3Mov p104+p0Spd200Mvs p104Dly0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly0.2out12=0Ovrd70Mvs p103+p0Mov p3'/////////////////////// 装3和*键///////////////////// Mov p16+p0Spd200Mvs p16out12=1out13=1Dly0.2Ovrd70Mvs p16+p0Mov p3Mov p105+p0Spd200Mvs p105Dly0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly0.2out13=0Ovrd70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p32+p0Spd200Mvs p32out12=1Dly0.2Ovrd70Mvs p32+p0Mov p3Mov p108+p0Spd200Mvs p108Dly0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly0.2out12=0Ovrd70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p36+p0Spd200Mvs p36out12=1out13=1Dly0.2Ovrd70Mvs p36+p0Mov p3Mov p109+p0Spd200Mvs p109Dly0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly0.2out13=0Ovrd70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p52+p0Spd200Mvs p52out12=1Dly0.2Ovrd70Mvs p52+p0Mov p3Mov p112+p0Spd200Mvs p112Dly0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly0.2out12=0Ovrd70Mvs p111+p0Mov p3'/////////////////////////////装9键////////////////// Mov p56+p0Spd200Mvs p56out12=1Dly0.2Ovrd70Mvs p56+p0Mov p3Mov p113+p0Spd200Mvs p113Dly0.2out12=0Ovrd70Mvs p113+p0Mov p3'//////////////////#和接听键////////////////Mov p72+p0Spd200Mvs p72out12=1out13=1Dly0.2Ovrd70Mvs p72+p0Mov p3Mov p114+p0Mvs p114Dly0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly0.2out13=0Ovrd70Mvs p100+p0Mov p3'//////////////////////装挂机键////////////////// Mov p76+p0Spd200Mvs p76out12=1Dly0.2Ovrd70Mvs p76+p0Mov p3Mov p102+p0Spd200Mvs p102Dly0.2out12=0Ovrd70Mvs p102+p0Mov p3'/////////////////////////装方向键///////////////// Mov p60+p0Spd200Mvs p60out12=1Dly0.2Ovrd70Mvs p60+p0Mov p3Mov p101+p0Spd200Mvs p101Dly0.2out12=0Ovrd70Mvs p101+p203out6=1'/////////////////////////放回夹具1////////////Ovrd50Mov p23Spd450Mvs p20-p204out6=0Spd400Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out6=1Dly0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'//////////////////////////三次装机////////////////////////// *ks3out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'/////////////////////装1和2键//////////////////////////// Ovrd50Mov p3Ovrd70Mov p21+p0Spd200Mvs p21out12=1out13=1Dly0.2Ovrd70Mvs p21+p0Mov p3Mov p104+p0Spd200Mvs p104Dly0.2out13=0Mvs p103+p0Mvs p103Dly0.2out12=0Ovrd70Mvs p103+p0Mov p3'/////////////////////// 装3和*键///////////////////// Mov p25+p0Spd200Mvs p25out12=1out13=1Dly0.2Ovrd70Mvs p25+p0Mov p3Mov p105+p0Spd200Mvs p105Dly0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly0.2out13=0Ovrd70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p41+p0Spd200Mvs p41out12=1out13=1Dly0.2Ovrd70Mvs p41+p0Mov p3Mov p108+p0Spd200Mvs p108Dly0.2out13=0Mvs p107+p0Mvs p107Dly0.2out12=0Ovrd70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p45+p0Spd200Mvs p45out12=1out13=1Dly0.2Ovrd70Mvs p45+p0Mov p3Mov p109+p0Spd200Mvs p109Dly0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly0.2out13=0Ovrd70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p61+p0Spd200Mvs p61out12=1out13=1Dly0.2Ovrd70Mvs p61+p0Mov p3Mov p112+p0Spd200Mvs p112Dly0.2out13=0Mvs p111+p0Mvs p111Dly0.2out12=0Ovrd70Mvs p111+p0Mov p3'/////////////////////////////装9键////////////////// Mov p65+p0Spd200Mvs p65out12=1Dly0.2Ovrd70Mvs p65+p0Mov p3Mov p113+p0Spd200Mvs p113Dly0.2out12=0Ovrd70Mvs p113+p0Mov p3'//////////////////#和接听键////////////////Mov p81+p0Spd200Mvs p81out12=1out13=1Dly0.2Ovrd70Mvs p81+p0Mov p3Mov p114+p0Spd200Mvs p114Dly0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly0.2out13=0Ovrd70Mov p3'//////////////////////装挂机键////////////////// Mov p85+p0Spd200Mvs p85out12=1Dly0.2Ovrd70Mvs p85+p0Mov p3Mov p102+p0Spd200Mvs p102Dly0.2out12=0Ovrd70Mvs p102+p0Mov p3'/////////////////////////装方向键///////////////// Mov p70+p0Spd200Mvs p70out12=1Dly0.2Ovrd70Mvs p70+p0Mov p3Mov p101+p0Spd200Mvs p101Dly0.2out12=0Ovrd70Mvs p101+p203out6=1'/////////////////////////放回夹具1//////////// Ovrd50Mov p23Spd450Mvs p20-p204out6=0Spd400Mvs p20Dly0.2out11=1Mvs p20+p203out6=1Dly0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'//////////////////////////四次装机////////////////////////// *ks4out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'/////////////////////装1和2键//////////////////////////// Ovrd50Mov p3Ovrd70Mov p22+p0Spd200Mvs p22out12=1out13=1Dly0.2Ovrd70Mvs p22+p0Mov p3Mov p104+p0Spd200Mvs p104Dly0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly0.2out12=0Ovrd70Mvs p103+p0Mov p3'/////////////////////// 装3和*键///////////////////// Mov p26+p0Mvs p26out12=1out13=1Dly0.2Ovrd70Mvs p26+p0Mov p3Mov p105+p0Spd200Mvs p105Dly0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly0.2out13=0Ovrd70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p42+p0Spd200Mvs p42out12=1out13=1Dly0.2Ovrd70Mvs p42+p0Mov p3Mov p108+p0Spd200Mvs p108Dly0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly0.2out12=0Ovrd70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p46+p0Mvs p46out12=1out13=1Dly0.2Ovrd70Mvs p46+p0Mov p3Mov p109+p0Spd200Mvs p109Dly0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly0.2out13=0Ovrd70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p62+p0Spd200Mvs p62out12=1out13=1Dly0.2Ovrd70Mvs p62+p0Mov p3Mov p112+p0Spd200Mvs p112Dly0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly0.2out12=0Ovrd70Mvs p111+p0Mov p3'/////////////////////////////装9键////////////////// Mov p66+p0Mvs p66out12=1Dly0.2Ovrd70Mvs p66+p0Mov p3Mov p113+p0Spd200Mvs p113Dly0.2out12=0Ovrd70Mvs p113+p0Mov p3'//////////////////#和接听键//////////////// Mov p82+p0Spd200Mvs p82out12=1out13=1Dly0.2Ovrd70Mvs p82+p0Mov p3Mov p114+p0Spd200Mvs p114Dly0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly0.2out13=0Ovrd70Mvs p100+p0Mov p3'//////////////////////装挂机键////////////////// Mov p86+p0Spd200Mvs p86out12=1Dly0.2Ovrd70Mvs p86+p0Mov p102+p0Spd200Mvs p102Dly0.2out12=0Ovrd70Mvs p102+p0Mov p3'////////////////////////装方向键///////////////// Mov p80+p0Spd200Mvs p80out12=1Dly0.2Ovrd70Mvs p80+p0Mov p3Mov p101+p0Spd200Mvs p101Dly0.2out12=0Ovrd70Mvs p101+p203out14=1out6=1'/////////////////////////放回夹具1//////////// Ovrd50Mov p23Spd450Mvs p20-p204out14=0out6=0Spd400Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out6=1Dly0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgp0=(0.000,0.000,20.000,0.000,0.000,0.000)(0,0)p2=(-154.670,138.600,418.830,177.240,-2.220,93.990)(7,0)p5=(113.400,122.320,483.400,179.140,-0.790,-30.240)(7,0)p6=(91.280,-217.830,438.810,179.750,-0.930,-178.790)(7,0)p7=(-153.020,-262.020,392.510,179.750,-0.940,-179.930)(7,0)p8=(-162.480,-443.610,267.820,178.830,0.490,-178.740)(7,0)p9=(233.070,55.460,418.420,179.750,-0.930,2.420)(7,0)p10=(265.110,215.710,271.730,-179.910,0.310,0.970)(7,0)p30=(-168.010,276.940,192.890,179.680,0.290,92.220)(7,0)p33=(-163.270,151.470,194.950,179.480,-0.120,91.250,0.000,0.000)(7,0) p40=(-47.200,277.180,194.360,179.960,0.340,92.160)(7,0)p200=(0.000,0.000,5.000,0.000,0.000,0.000)(0,0)p201=(0.000,0.000,150.000,0.000,0.000,0.000)(0,0)p202=(0.000,135.000,0.000,0.000,0.000,0.000)(0,0)p203=(0.000,0.000,60.000,0.000,0.000,0.000)(0,0)p204=(0.000,20.000,0.000,0.000,0.000,0.000)(0,0)p231=(144.270,-417.110,248.130,179.740,-0.910,-178.230)(7,0)p240=(5.860,-417.110,248.800,179.740,-0.910,-178.230)(7,0)j1=(0.000,-60.000,145.000,0.000,0.000,-90.000)jyd=(0.000,-60.000,145.000,0.000,0.000,-90.000)。
三菱机器人简单指令用法介绍
三菱机器人简单指令用法介绍
一、三菱机器人Dly等待指令的使用方式
1.Dly单独使用时为等待时间,单位为秒
如:等待3s为:Dly 3
2.当Dly搭配输出信号使用时,则为信号输出多少秒后复位,单位为秒
如:M_out(8)=1 Dly 1
意思为:输出信号8,1秒后复位输出信号8,不会影响程序执行,程序不会再这里等待1s
二、位移指令加偏移用法
1.直接再目标点后加数值,灰默认为高度即Z方向的偏移值
如:mov pend ,3
意思为:移动到目标点pend上方3mm处
2.如何再X、Y、Z、角度上作偏移
三菱机器人的附加偏移距离格式为:
Mov Pend +(+X,+Y,+Z,+Rx,+Ry,+Rz)
Rx、Ry、Rz分别为X\Y\Z方向的旋转角度,即欧拉角,单位为度
再不需要用到Rx、Ry、Rz时可以省略写成:
Mov Pend +(+X,+Y,+Z)。
2三菱工业机器人指令系统
1 程序存储器 在机器人程序处理领域,分为储存、编辑、执 行3种:
1 程序存储器 (1)程序储存领域为储存程序的领域。
标准可以储存合计940K位的程序。
(2)程序编辑领域在程序的编辑、单步执行动作确认 时使用的领域。
程序编辑领域为179K位,相当于1个程序的最大值。
2 程序的构成要素 (3)行:
行是由行号码和1个指令所构成的。但是,使用附随句 的情况下,指令会变成2个。 一行的长度最多240个文字。(不包含行末文字。) (4)行号码: 行号码从1开始到32767为止的整数。在MELFABASIC V,无法指定GoTo、GoSub等的跳转步号(行号 码)。请使用卷标取代行号码。
2 程序的构成要素
(1)文:文是构成程序的最小单位,由指令和那个所给予的 数据所构成。 例) Mov P1 指令 数据 指令 (2)附随文:只限定在移动指令,依据附随句,可以串连 指令。依据此点,可以执行和移动指令并列的部份指令。 例) Mov P1 指令 Wth 附随句 M_Out(17) = 1 指令
2 程序的构成要素
构造标志数据的形式和意义 【形式】 FL1, FL2 【意义】 FL1: 姿势标志。表示在直交坐标的机器人手臂的姿势。
FL2: 多旋转数据。 在直交坐标表示位置(XYZ)和姿势(ABC),有相关各关节轴 的旋转角度的情报。初始值范围从0开始 至轴个位元表示共有8个轴。每1 轴= 0( + 4294967295・・1个 4(-8~7)有在计算机以 10进制显示画面及每轴的旋转数以16进制显示画面。)
2 程序的构成要素 (9)常数: 分为6种:数值常数、字符串常数、位置常数、关节 常数、角度值。
2 程序的构成要素 (10)数值常数数值常数的结构如下所示。 (a) 10进制
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
'//////////////定义输入////////////Def Io in0=Bit,0Def Io in1=Bit,1Def Io in3=Bit,3Def Io in4=Bit,4Def Io in5=Bit,5Def Io in6=Bit,6Def Io in7=Bit,7Def Io in8=Bit,8Def Io in9=Bit,9Def Io in10=Bit,10Def Io in11=Bit,11Def Io in12=Bit,12Def Io in13=Bit,13Def Io in14=Bit,14Def Io in15=Bit,15'///////////////定义/输出//////////Def Io out0=Bit,0Def Io out1=Bit,1Def Io out3=Bit,3Def Io out4=Bit,4Def Io out5=Bit,5Def Io out6=Bit,6Def Io out7=Bit,7Def Io out8=Bit,8Def Io out9=Bit,9Def Io out10=Bit,10Def Io out11=Bit,11Def Io out12=Bit,12Def Io out13=Bit,13Def Io out14=Bit,14Def Io out15=Bit,15'//////////////定义变量//////////////Def Jnt jyd '定义安全点Def Plt1,p11,p17,p71,p77,4,4,1'定义托盘点j1=(+1.11,-60.00,+145.00,+0.00,+0.00,+86.61)jyd=(+0.00,-60.00,+145.00,+0.00,+0.00,-90.00)p0=(+0.00,+0.00,+20.00,+0.00,+0.00,+0.00)(0,0)p200=(+0.00,+0.00,+5.00,+0.00,+0.00,+0.00)(0,0)p201=(+0.00,+0.00,+150.00,+0.00,+0.00,+0.00)(0,0) p202=(+0.00,+135.00 ,+0.00,+0.00,+0.00,+0.00)(0,0) p203=(+0.00,+0.00,+60.00,+0.00,+0.00,+0.00)(0,0)p204=(+0.00,+20.00,+0.00,+0.00,+0.00,+0.00)(0,0)'////////////托盘点//////////////p12=p11p21=p11p12.Y=p11.Y+12 p21.X=p11.X+12 p22.X=p11.X+12 p22.Y=p11.Y+12 p15=(Plt1,3)p16=p15p25=p15p26=p15p16.Y=p15.Y+12 p25.X=p15.X+12 p26.X=p15.X+12 p26.Y=p15.Y+12 p31=(Plt1,8)p32=p31p41=p31p42=p31p32.Y=p31.Y+12 p41.X=p31.X+12 p42.X=p31.X+12 p42.Y=p31.Y+12 p35=(Plt1,6)p36=p35p45=p35p46=p35p36.Y=p35.Y+12 p45.X=p35.X+12 p46.X=p35.X+12 p46.Y=p35.Y+12 p51=(Plt1,9)p52=p51p61=p51p62=p51p52.Y=p51.Y+12 p61.X=p51.X+12 p62.X=p51.X+12 p62.Y=p51.Y+12 p55=(Plt1,11) p56=p55p65=p55p66=p55p56.Y=p55.Y+12 p65.X=p55.X+12 p66.X=p55.X+12 p66.Y=p55.Y+12 p75=(Plt1,14)p85=p75p86=p75p76.Y=p75.Y+12p85.X=p75.X+12p86.X=p75.X+12p86.Y=p75.Y+12p72=p71p81=p71p82=p71p72.Y=p71.Y+12p81.X=p71.X+12p82.X=p71.X+12p81.Y=p71.Y+12'///////////////判断/////////////If M_In(9)=1 And M_In(10)=0Then'判断3个夹具是否在原位If M_In(11)=0 And M_In(13)=0ThenGoSub *fw '程序fwEndIfEndIfIf M_In(9)=1 And M_In(10)=1Then'判断1夹具是否在原位If M_In(11)=0 And M_In(13)=0ThenGoSub *fw1 '夹具1复位EndIfEndIfIf M_In(9)=1 And M_In(10)=0Then'判断夹具2是否在原位If M_In(11)=1 And M_In(13)=0ThenGoSub *fw2 '夹具2复位EndIfEndIfIf M_In(9)=1 And M_In(10)=0Then'判断夹具3是否在原位If M_In(11)=0 And M_In(13)=1ThenGoSub *fw3 '夹具3复位EndIfEndIfIf M_05#>3Thenout14=1M_05#=0EndIfIf M_In(6)=1 And M_05#=0ThenGoSub *ks1 '一次装机EndIfIf M_In(6)=1 And M_05#=1ThenGoSub *ks2 '二次装机EndIfIf M_In(6)=1 And M_05#=2ThenGoSub *ks3 '三次装机EndIfIf M_In(6)=1 And M_05#=3ThenGoSub *ks4 '四次装机EndIfEnd'////////////////复位程序////////////*fw '程序复位Ovrd80j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout5=1m_outb(6)=0'将输出信号6-13的8个位关闭M_00#=0M_05#=0M_01#=0Return'/////////////////////////////////////'//////////////////复位1/////////////////////*fw1Ovrd70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout12=0out13=0Mov p1Mov p23ovrd50Spd400Mvs p20-p204Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out11=0GoSub *fw4Return'/////////////////////////// '/////////////////////// 复位2//////////// *fw2Ovrd70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout12=0out13=0ovrd50Mov p40+p201Spd400Mvs p40Dly0.2out11=1Dly0.2Mvs p40+p203out11=0GoSub *fw4Return'///////////////////////////'/////////////////复位3//////////////// *fw3Ovrd70j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout12=1out13=0Mov p5out12=0ovrd51Mov p2Spd600Mvs p33Mvs p30+p200Mvs p30Dly0.2out11=1Dly0.2Mvs p30+p203out11=0M_05#=M_05#+1If M_In(6)=0Then GoTo *fw4 Return'////////////////////////////// '///////////////////正常复位////////// *fw4Ovrd50j1=J_Currj1.J2=jyd.J2j1.J3=jyd.J3j1.J4=jyd.J4j1.J5=jyd.J5Mov j1Mov jydout11=0out12=0out13=0out15=0out7=0out6=0out14=0Return'///////////////////取夹具1/////////// *jj1Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Ovrd50Mov p20+p201Spd700Mov p20+p203Spd300out11=1Mvs p20Dly0.2out11=0Dly0.2Mvs p20+p200p23=P_CurrMvs p23-p204p23=P_CurrMvs p23+p201p23=P_CurrReturn'///////////////////取夹具2//////////*jj2Spd400Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Mvs p40+p203out11=1Mvs p40Dly0.2out11=0Dly0.2Spd600Mvs p40+p201Mvs p210+p203Spd400Mvs p210out13=1Mvs p221Mvr p221,p220,p219Mvs p218Mvr p218,p217,p216Mvs p215Mvr p215,p214,p213Mvs p212Mvr p212,p211,p210out13=0out6=1Spd600Mvs p210+p201out6=0Mvs p40+p201Spd400Mvs p40Dly0.2out11=1Dly0.2Mvs p40+p203out6=1Dly0.2out6=0Return'///////////////////取夹具3////////////////// *jj3Wait M_In(10)=0Wait M_In(11)=0Wait M_In(13)=0Spd400Mvs p30+p203out11=1Spd300Mvs p30Dly0.2out11=0Dly0.2Spd400Mvs p30+p200p33=P_CurrMvs p33-p202p33=P_CurrMvs p33+p201Return'///////////////////去取盖//////////////////*qgOvrd50Mov p5Mov p5Mov p7Wait M_In(7)=1out12=1out13=0Mov p8+p0out12=0Spd200Mvs p8Dly0.2out13=1Dly0.2out15=1Dly0.5'/////////////////入仓库///////////////////If M_In(8)=1Then GoTo *ck2 Else GoTo *ck1 '判断颜色Return*ck2 '//////////////////////////////////////////////白色盖GoSub *jgOvrd40Mov p231+p201Spd200If M_In(15)=1 And M_00#>3Thenout10=1Wait M_Out(10)=0M_00#=0If M_00#=0Then'第一层If M_In(15)=1ThenMov p6EndIfWait M_In(15)=0Mov p231+p201Spd200Mvs p231EndIfIf M_In(15)=1 And M_00#=1Then'第二层Mvs p231+p0EndIfIf M_In(15)=1 And M_00#=2Then'第三层Mvs p231+p203EndIfIf M_In(15)=1 And M_00#=3Then'第四层Mvs p231+p203+p0EndIfDly0.2out13=0out12=1Mvs p231+p201out8=1'入库完成GoSub *fw3out8=0M_00#=M_00#+1Return*ck1 '///////////////////////////////////////////////黑色盖GoSub *jgOvrd40Mov p240+p201Spd200If M_In(14)=1 And M_01#>3Thenout9=1Wait M_Out(9)=0M_01#=0EndIfIf M_01#=0Then'第一层If M_In(14)=1ThenMov p6EndIfWait M_In(14)=0Mov p240+p201Spd200Mvs p240If M_In(14)=1 And M_01#=1Then'第二层Mvs p240+p0EndIfIf M_In(14)=1 And M_01#=2Then'第三层Mvs p240+p203EndIfIf M_In(14)=1 And M_01#=3Then'第四层Mvs p240+p203+p0EndIfDly0.2out13=0out12=1Mvs p240+p201out8=1'入库完成GoSub *fw3out8=0M_01#=M_01#+1Return'////////////////////去加盖//////////////////////*jgMvs p8+p203Ovrd50Mov p7Mov p6Mov p9Mov p10+p0Spd200Mvs p10Dly0.2out7=1Dly0.2out7=0Mvs p10+p0Ovrd50Mov p9Mov p6Return'//////////////////////////一次装机////////////////////////// *ks1out5=0out6=0out7=0out8=0out14=0out15=0'/////////////////////装1和2键//////////////////////////// Ovrd50Mov p3Ovrd70Mov p11+p0Spd200Mvs p11out12=1out13=1Dly0.2Ovrd70Mvs p11+p0Mov p3Mov p104+p0Spd200Mvs p104Dly0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly0.2out12=0Ovrd70Mvs p103+p0Mov p3'/////////////////////// 装3和*键///////////////////// Mov p15+p0Spd200Mvs p15out12=1out13=1Dly0.2Ovrd70Mvs p15+p0Mov p3Mov p105+p0Spd200Mvs p105Dly0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly0.2Ovrd70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p31+p0Spd200Mvs p31out12=1out13=1Dly0.2Ovrd70Mvs p31+p0Mov p3Mov p108+p0Spd200Mvs p108Dly0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly0.2out12=0Ovrd70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p35+p0Spd200Mvs p35out12=1out13=1Dly0.2Ovrd70Mvs p35+p0Mov p3Mov p109+p0Spd200Mvs p109Dly0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly0.2Ovrd70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p51+p0Spd200Mvs p51out12=1out13=1Dly0.2Ovrd70Mvs p51+p0Mov p3Mov p112+p0Spd200Mvs p112Dly0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly0.2out12=0Ovrd70Mvs p111+p0Mov p3'/////////////////////////////装9键////////////////// Mov p55+p0Spd200Mvs p55out12=1Dly0.2Ovrd70Mvs p55+p0Mov p3Mov p113+p0Spd200Mvs p113Dly0.2out12=0Ovrd70Mvs p113+p0Mov p3'//////////////////#和接听键////////////////Mov p71+p0Mvs p71out12=1out13=1Dly0.2Ovrd70Mvs p71+p0Mov p3Mov p114+p0Spd200Mvs p114Dly0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly0.2out13=0Ovrd70Mvs p100+p0Mov p3'//////////////////////装挂机键////////////////// Mov p75+p0Spd200Mvs p75out12=1Dly0.2Ovrd70Mvs p75+p0Mov p3Mov p102+p0Spd200Mvs p102Dly0.2out12=0Ovrd70Mvs p102+p0Mov p3'/////////////////////////装方向键///////////////// Mov p50+p0Spd200Mvs p50out12=1Dly0.2Ovrd70Mvs p50+p0Mov p101+p0Spd200Mvs p101Dly0.2out12=0Ovrd70Mvs p101+p203out6=1'/////////////////////////放回夹具1////////////Ovrd50Mov p23Spd450Mvs p20-p204out6=0Spd400Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out6=1Dly0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'//////////////////////////二次装机////////////////////////// *ks2out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'/////////////////////装1和2键//////////////////////////// Ovrd50Mov p3Ovrd70Mov p12+p0Spd200Mvs p12out12=1out13=1Ovrd70Mvs p12+p0Mov p3Mov p104+p0Spd200Mvs p104Dly0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly0.2out12=0Ovrd70Mvs p103+p0Mov p3'/////////////////////// 装3和*键///////////////////// Mov p16+p0Spd200Mvs p16out12=1out13=1Dly0.2Ovrd70Mvs p16+p0Mov p3Mov p105+p0Spd200Mvs p105Dly0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly0.2out13=0Ovrd70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p32+p0Spd200Mvs p32out12=1out13=1Ovrd70Mvs p32+p0Mov p3Mov p108+p0Spd200Mvs p108Dly0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly0.2out12=0Ovrd70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p36+p0Spd200Mvs p36out12=1out13=1Dly0.2Ovrd70Mvs p36+p0Mov p3Mov p109+p0Spd200Mvs p109Dly0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly0.2out13=0Ovrd70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p52+p0Spd200Mvs p52out12=1out13=1Ovrd70Mvs p52+p0Mov p3Mov p112+p0Spd200Mvs p112Dly0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly0.2out12=0Ovrd70Mvs p111+p0Mov p3'/////////////////////////////装9键////////////////// Mov p56+p0Spd200Mvs p56out12=1Dly0.2Ovrd70Mvs p56+p0Mov p3Mov p113+p0Spd200Mvs p113Dly0.2out12=0Ovrd70Mvs p113+p0Mov p3'//////////////////#和接听键////////////////Mov p72+p0Spd200Mvs p72out12=1out13=1Dly0.2Ovrd70Mvs p72+p0Mov p3Mov p114+p0Spd200Dly0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly0.2out13=0Ovrd70Mvs p100+p0Mov p3'//////////////////////装挂机键////////////////// Mov p76+p0Spd200Mvs p76out12=1Dly0.2Ovrd70Mvs p76+p0Mov p3Mov p102+p0Spd200Mvs p102Dly0.2out12=0Ovrd70Mvs p102+p0Mov p3'/////////////////////////装方向键///////////////// Mov p60+p0Spd200Mvs p60out12=1Dly0.2Ovrd70Mvs p60+p0Mov p3Mov p101+p0Spd200Mvs p101Dly0.2out12=0Ovrd70Mvs p101+p203out6=1'/////////////////////////放回夹具1////////////Mov p23Spd450Mvs p20-p204out6=0Spd400Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out6=1Dly0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'//////////////////////////三次装机////////////////////////// *ks3out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'/////////////////////装1和2键//////////////////////////// Ovrd50Mov p3Ovrd70Mov p21+p0Spd200Mvs p21out12=1out13=1Dly0.2Ovrd70Mvs p21+p0Mov p3Mov p104+p0Spd200Mvs p104Dly0.2out13=0Mvs p104+p0Mvs p103Dly0.2out12=0Ovrd70Mvs p103+p0Mov p3'/////////////////////// 装3和*键///////////////////// Mov p25+p0Spd200Mvs p25out12=1out13=1Dly0.2Ovrd70Mvs p25+p0Mov p3Mov p105+p0Spd200Mvs p105Dly0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly0.2out13=0Ovrd70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p41+p0Spd200Mvs p41out12=1out13=1Dly0.2Ovrd70Mvs p41+p0Mov p3Mov p108+p0Spd200Mvs p108Dly0.2out13=0Mvs p108+p0Mvs p107Dly0.2out12=0Ovrd70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p45+p0Spd200Mvs p45out12=1out13=1Dly0.2Ovrd70Mvs p45+p0Mov p3Mov p109+p0Spd200Mvs p109Dly0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly0.2out13=0Ovrd70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p61+p0Spd200Mvs p61out12=1out13=1Dly0.2Ovrd70Mvs p61+p0Mov p3Mov p112+p0Spd200Mvs p112Dly0.2out13=0Mvs p112+p0Mvs p111Dly0.2out12=0Ovrd70Mvs p111+p0Mov p3'/////////////////////////////装9键////////////////// Mov p65+p0Spd200Mvs p65out12=1Dly0.2Ovrd70Mvs p65+p0Mov p3Mov p113+p0Spd200Mvs p113Dly0.2out12=0Ovrd70Mvs p113+p0Mov p3'//////////////////#和接听键////////////////Mov p81+p0Spd200Mvs p81out12=1out13=1Dly0.2Ovrd70Mvs p81+p0Mov p3Mov p114+p0Spd200Mvs p114Dly0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly0.2out13=0Ovrd70Mvs p100+p0Mov p3'//////////////////////装挂机键////////////////// Mov p85+p0Spd200Mvs p85out12=1Dly0.2Ovrd70Mvs p85+p0Mov p3Mov p102+p0Spd200Mvs p102Dly0.2out12=0Ovrd70Mvs p102+p0Mov p3'/////////////////////////装方向键///////////////// Mov p70+p0Spd200Mvs p70out12=1Dly0.2Ovrd70Mvs p70+p0Mov p3Mov p101+p0Spd200Mvs p101Dly0.2out12=0Ovrd70Mvs p101+p203out6=1'/////////////////////////放回夹具1//////////// Ovrd50Mov p23Spd450Mvs p20-p204out6=0Spd400Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out6=1Dly0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturn'//////////////////////////四次装机////////////////////////// *ks4out5=0out6=0out7=0out8=0out14=0out15=0GoSub *jj1'/////////////////////装1和2键//////////////////////////// Ovrd50Mov p3Ovrd70Mov p22+p0Spd200Mvs p22out12=1out13=1Dly0.2Ovrd70Mvs p22+p0Mov p3Mov p104+p0Spd200Mvs p104Dly0.2out13=0Mvs p104+p0Mvs p103+p0Mvs p103Dly0.2out12=0Ovrd70Mvs p103+p0Mov p3'/////////////////////// 装3和*键/////////////////////Mov p26+p0Spd200out12=1out13=1Dly0.2Ovrd70Mvs p26+p0Mov p3Mov p105+p0Spd200Mvs p105Dly0.2out12=0Mvs p105+p0Mvs p106+p0Mvs p106Dly0.2out13=0Ovrd70Mvs p106+p0Mov p3'/////////////////////////// 装4和5键/////////////// Mov p42+p0Spd200Mvs p42out12=1out13=1Dly0.2Ovrd70Mvs p42+p0Mov p3Mov p108+p0Spd200Mvs p108Dly0.2out13=0Mvs p108+p0Mvs p107+p0Mvs p107Dly0.2out12=0Ovrd70Mvs p107+p0Mov p3'/////////////////////// 装6和0键///////////////////// Mov p46+p0Spd200out12=1out13=1Dly0.2Ovrd70Mvs p46+p0Mov p3Mov p109+p0Spd200Mvs p109Dly0.2out12=0Mvs p109+p0Mvs p110+p0Mvs p110Dly0.2out13=0Ovrd70Mvs p110+p0Mov p3'/////////////////////////// 装7和8键/////////////// Mov p62+p0Spd200Mvs p62out12=1out13=1Dly0.2Ovrd70Mvs p62+p0Mov p3Mov p112+p0Spd200Mvs p112Dly0.2out13=0Mvs p112+p0Mvs p111+p0Mvs p111Dly0.2out12=0Ovrd70Mvs p111+p0Mov p3'/////////////////////////////装9键////////////////// Mov p66+p0Spd200out12=1Dly0.2Ovrd70Mvs p66+p0Mov p3Mov p113+p0Spd200Mvs p113Dly0.2out12=0Ovrd70Mvs p113+p0Mov p3'//////////////////#和接听键//////////////// Mov p82+p0Spd200Mvs p82out12=1out13=1Dly0.2Ovrd70Mvs p82+p0Mov p3Mov p114+p0Spd200Mvs p114Dly0.2out12=0Mvs p114+p0Mvs p100+p0Mvs p100Dly0.2out13=0Ovrd70Mvs p100+p0Mov p3'//////////////////////装挂机键////////////////// Mov p86+p0Spd200Mvs p86out12=1Dly0.2Ovrd70Mvs p86+p0Mov p3Mov p102+p0Spd200Mvs p102Dly0.2out12=0Ovrd70Mvs p102+p0Mov p3'////////////////////////装方向键///////////////// Mov p80+p0Spd200Mvs p80out12=1Dly0.2Ovrd70Mvs p80+p0Mov p3Mov p101+p0Spd200Mvs p101Dly0.2out12=0Ovrd70Mvs p101+p203out14=1out6=1'/////////////////////////放回夹具1//////////// Ovrd50Mov p23Spd450Mvs p20-p204out14=0out6=0Spd400Mvs p20Dly0.2out11=1Dly0.2Mvs p20+p203out6=1Dly0.2out6=0GoSub *jj2GoSub *jj3GoSub *qgReturnp0=(0.000,0.000,20.000,0.000,0.000,0.000)(0,0)p1=(88.400,177.780,361.570,-179.190,0.050,91.490)(7,15728640)p2=(-154.670,138.600,418.830,177.240,-2.220,93.990)(7,0)p3=(224.200,54.510,338.440,-179.710,-0.010,36.290)(7,15728640)p5=(113.400,122.320,483.400,179.140,-0.790,-30.240)(7,0)p6=(91.280,-217.830,438.810,179.750,-0.930,-178.790)(7,0)p7=(-153.020,-262.020,392.510,179.750,-0.940,-179.930)(7,0)p8=(-162.480,-443.610,267.820,178.830,0.490,-178.740)(7,0)p9=(233.070,55.460,418.420,179.750,-0.930,2.420)(7,0)p10=(265.110,215.710,271.730,-179.910,0.310,0.970)(7,0)p11=(299.600,-155.680,300.410,-179.310,-0.150,2.470)(7,15728640)p12=(299.600,-143.680,300.410,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p15=(298.660,-96.580,301.140,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p16=(298.660,-84.580,301.140,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p17=(298.190,-67.030,301.510,-179.310,-0.150,2.470)(7,15728640)p20=(72.790,278.520,194.610,179.680,0.290,92.950)(7,15728640)p21=(311.600,-155.680,300.410,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p22=(311.600,-143.680,300.410,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p23=(72.790,264.970,339.750,179.680,0.290,92.950,0.000,0.000)(7,15728640) p25=(310.660,-96.580,301.140,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p26=(310.660,-84.580,301.140,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p30=(-168.010,276.940,192.890,179.680,0.290,92.220)(7,0)p31=(329.340,-155.200,300.470,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p32=(329.340,-143.200,300.470,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p33=(-163.270,151.470,194.950,179.480,-0.120,91.250,0.000,0.000)(7,0)p35=(328.960,-97.220,300.980,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p36=(328.960,-85.220,300.980,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p40=(-47.200,277.180,194.360,179.960,0.340,92.160)(7,0)p41=(341.340,-155.200,300.470,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p42=(341.340,-143.200,300.470,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p45=(340.960,-97.220,300.980,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p46=(340.960,-85.220,300.980,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p50=(374.600,-64.000,301.810,-179.310,-0.150,2.470)(7,15728640)p51=(359.090,-154.730,300.520,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p52=(359.090,-142.730,300.520,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p55=(359.250,-97.850,300.820,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p56=(359.250,-85.850,300.820,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p60=(374.600,-45.930,301.880,-179.310,-0.150,2.470)(7,15728640)p61=(371.090,-154.730,300.520,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p62=(371.090,-142.730,300.520,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p65=(371.250,-97.850,300.820,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p66=(371.250,-85.850,300.820,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p70=(392.740,-64.010,301.540,-179.310,-0.150,2.470)(7,15728640)p71=(388.830,-154.250,300.580,-179.310,-0.150,2.470)(7,15728640)p72=(388.830,-142.250,300.580,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p75=(389.000,-97.380,300.880,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p76=(389.000,-85.380,300.880,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p77=(389.080,-68.940,301.030,-179.310,-0.150,2.470)(7,15728640)p80=(392.810,-46.080,301.350,-179.310,-0.150,2.470)(7,15728640)p81=(400.830,-142.250,300.580,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p82=(400.830,-154.250,300.580,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p85=(401.000,-97.380,300.880,-179.310,-0.150,2.470,0.000,0.000)(7,15728640) p86=(401.000,-85.380,300.880,-179.310,-0.150,2.470,0.000,0.000)(7,15728640)p100=(301.780,174.250,313.390,179.910,-1.150,91.010)(7,15728640)p101=(254.290,174.850,313.240,179.910,-1.150,91.010)(7,15728640)p102=(236.370,174.700,312.870,179.910,-1.150,91.010)(7,15728640)p103=(271.990,188.730,313.020,179.910,-1.150,91.010)(7,15728640)p104=(289.760,188.210,313.250,179.910,-1.150,91.010)(7,15728640)p105=(248.170,188.730,313.250,179.910,-1.150,91.010)(7,15728640)p106=(266.090,188.510,312.790,179.910,-1.150,91.010)(7,15728640)p107=(271.990,200.760,313.250,179.910,-1.150,91.010)(7,15728640)p108=(289.760,200.380,313.770,179.910,-1.150,91.010)(7,15728640)p109=(248.170,200.080,313.170,179.910,-1.150,91.010)(7,15728640)p110=(266.090,199.930,313.020,179.910,-1.150,91.010)(7,15728640)p111=(271.840,212.630,313.400,179.910,-1.150,91.010)(7,15728640)p112=(290.060,212.250,314.150,179.910,-1.150,91.010)(7,15728640)p113=(248.170,212.930,313.390,179.910,-1.150,91.010)(7,15728640)p114=(236.590,212.930,313.020,179.910,-1.150,91.010)(7,15728640)p200=(0.000,0.000,5.000,0.000,0.000,0.000)(0,0)p201=(0.000,0.000,150.000,0.000,0.000,0.000)(0,0)p202=(0.000,135.000,0.000,0.000,0.000,0.000)(0,0)p203=(0.000,0.000,60.000,0.000,0.000,0.000)(0,0)p204=(0.000,20.000,0.000,0.000,0.000,0.000)(0,0)p210=(172.330,258.490,320.180,-179.620,15.190,-178.120)(7,15728640) p211=(174.920,266.690,320.180,-179.620,15.190,-178.120)(7,15728640) p212=(181.640,269.080,320.180,-179.620,15.190,-178.120)(7,15728640) p213=(224.350,269.080,320.180,-179.620,15.190,-178.120)(7,15728640) p214=(231.490,266.690,320.180,-179.620,15.190,-178.120)(7,15728640) p215=(232.230,260.170,319.270,-179.620,15.210,-178.150)(7,15728640) p216=(233.930,257.800,320.180,-179.620,15.190,-178.120)(7,15728640) p217=(233.930,153.070,320.180,-179.620,15.190,-178.120)(7,15728640) p218=(224.890,142.240,320.180,-179.620,15.190,-178.120)(7,15728640) p219=(181.520,142.240,320.180,-179.620,15.190,-178.120)(7,15728640) p220=(174.120,145.160,320.180,-179.620,15.190,-178.120)(7,15728640) p221=(171.880,152.320,320.180,-179.620,15.190,-178.120)(7,15728640) p231=(144.270,-417.110,248.130,179.740,-0.910,-178.230)(7,0)p240=(5.860,-417.110,248.800,179.740,-0.910,-178.230)(7,0)j1=(0.000,-60.000,145.000,0.000,0.000,-90.000)jyd=(0.000,-60.000,145.000,0.000,0.000,-90.000)31 / 31。