3677 小型模具柔性制造系統(tǒng)設(shè)計
3677 小型模具柔性制造系統(tǒng)設(shè)計,小型,模具,柔性制造系統(tǒng),設(shè)計
1主程序mainTITLE=程序注釋Network 1 LD SM0.0LPSA M5.2= V1038.0LRDMOVD VD2, VD1012LPPA M4.2MOVB VB1000, VB1031Network 2 LD M2.7EULD M4.2EUOLDR M0.2, 46R Q0.0, 16R T44, 1Network 3 LD I2.6O M4.2LPSAN SM0.1AN I2.7= M4.2LRDA SM0.5= Q1.7LPP= V1030.5Network 4 LD SM0.0CALL SBR1CALL SBR5Network 5 LD M4.2EU2S M0.1, 1R S10.0, 20Network 6 LDN M4.2R Q0.0, 15R V1038.1, 1ENDNetwork 7 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋LDN SM0.1A M0.1LPSCALL SBR0TON T44, +5A T44EUS M1.1, 1LPPAW= T44, +1R M5.2, 1R S0.0, 100Network 8 // inputLD V1001.0A M5.2AN M4.1AW VW250, +0EUMOVW VW250, VW2018MOVW +0, VW2020S M4.1, 13Network 10 // 上位機(jī)控制移庫// 上位機(jī)控制移庫LDB= VB1008, 1AB>= VB1006, 1AB= VB1007, 1AB= VB240, 1AB VB241, 0A M5.2EUBTI VB241, VW2018MOVW 0, VW2020S M4.1, 1Network 12 // 上位機(jī)控制移庫// 上位機(jī)控制移庫LDW= VW290, 1AW>= VW292, 1AW= VW294, 1AW LW10, +12OW LW12, +12OW LW10, +0SCRT S2.4Network 11 SCRENetwork 12 LSCR S0.216Network 13 LD SM0.0LPSAW= LW12, +0SCRT S3.1LPPAW LW12, 0A SM66.7A I0.4TON T104, +5R Q0.4, 124S Q0.5, 1Network 90 LD T104SCRT S2.5Network 91 SCRENetwork 92 LSCR S2.5Network 93 // 網(wǎng)絡(luò)標(biāo)題// 到位LD SM0.0LPSCALL SBR2, LW10, VD2000, VD2008-D LD6, VD2008AD VD2000, VD2004CALL SBR30, 0, +4500, 400, +800, VD2000, VD2004Network 2 LD I0.4O I0.5AD<> VD2008, VD2012CALL SBR30, 1, +5000, +1000, +3500, VD2008, VD2012Network 3 LD SM0.0MOVB VB2016, VB2022inspectTITLE=子程序注釋Network 1 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋LD SM0.032LPSMOVB IB1, VB2AENOMOVB IB2, VB3LRDMOVB VB2, MB6AENOMOVB VB3, MB7LPPMOVB VB2, VB1032AENOMOVB VB3, VB1033Z-axisTITLE=子程序注釋Network 1 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋LDB= VB2022, 0R Q1.1, 1Network 2 LDB= VB2022, 1S Q1.1, 1Network 3 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋Pls-chTITLE=Network 1 LD SM0.0MOVD LD1, LD21+D 16#08000000, LD1MOVD LD1, AC3MOVD *AC3, LD17Network 2 LDD= LD13, *AC3CRETNetwork 3 LD SM0.033MOVD LD13, AC0-D *AC3, AC0MOVD LD13, *AC3DTR AC0, AC0DTR LD5, LD29DTR LD9, LD33Network 4 // 鋼量轉(zhuǎn)換把 mm 轉(zhuǎn)換成脈沖數(shù)量LD SM0.1/R 1.0, AC0Network 5 LDR< AC0, 0.0LPSAB= LB0, 0RI Q0.2, 1LRDAB= LB0, 1RI Q0.3, 1LRDMOVR -1.0, AC2*R AC0, AC2LPPNOTLPSMOVR AC0, AC2AB= LB0, 0SI Q0.2, 1LPPAB= LB0, 1SI Q0.3, 1Network 6 LDR<= AC2, 0.0CRETNetwork 7 LD SM0.0MOVD LD1, AC3+D +4, AC3MOVB 3, *AC3Network 8 LD SM0.034MOVD LD1, AC3 //第一端的增量+D +7, AC3MOVW -3, *AC3MOVR 1.0, AC0/R LD29, AC0MOVR 1000000.0, AC3*R AC0, AC3 //第一段的起始周期ROUND AC3, AC3MOVD LD1, AC1+D +5, AC1DTI AC3, *AC1MOVR 1.0, AC1/R LD33, AC1 //第一段的脈沖數(shù)量*R -1.0, AC1+R AC0, AC1/R 3E-006, AC1MOVD LD1, AC3+D +9, AC3ROUND AC1, *AC3Network 9 LD SM0.0MOVD LD1, AC3 //第二端的增量+D +15, AC3MOVW +0, *AC3MOVR 1.0, AC1/R LD33, AC1*R 1000000.0, AC1 //第二段的起始周期ROUND AC1, AC1MOVD LD1, AC3+D +13, AC3DTI AC1, *AC3 //第二段的脈沖數(shù)量ROUND AC2, AC0MOVD LD1, AC3+D +9, AC3-D *AC3, AC0-D *AC3, AC0MOVD LD1, AC3+D +17, AC3MOVD AC0, *AC3Network 10 LDB= LB0, 0AD< *AC3, +035MOVB 16#85, SMB67MOVR 1000000.0, AC1/R LD29, AC1ROUND AC1, AC1DTI AC1, SMW68ROUND AC2, AC1MOVD AC1, SMD72PLS 0CRETNetwork 11 LDB= LB0, 1AD< *AC3, +0MOVB 16#85, SMB77MOVR 1000000.0, AC1/R LD29, AC1ROUND AC1, AC1DTI AC1, SMW78ROUND AC2, AC1MOVD AC1, SMD82PLS 1CRETNetwork 12 LD SM0.0MOVD LD1, AC3 //第三端的增量+D +23, AC3 //第三段的起始周期MOVW +3, *AC3 //第三段的脈沖數(shù)量MOVD LD1, AC3+D +13, AC3MOVD LD1, AC2+D +21, AC2MOVW *AC3, *AC2MOVD LD1, AC3+D +9, AC3MOVD LD1, AC2+D +25, AC2MOVD *AC3, *AC2Network 13 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋LDB= LB0, 0MOVB 16#A0, SMB67DTI LD21, AC036MOVW AC0, SMW168+I +4, SMW168PLS 0CRETNetwork 14 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋LDB= LB0, 1MOVB 16#A0, SMB77DTI LD21, AC0MOVW AC0, SMW178+I +4, SMW178PLS 1CRETStop-chTITLE=Network 1 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋LDB= LB0, 0MOVB 0, SMB67PLS 0MOVD 16#08000000, AC1+D LD1, AC1MOVR 0.0, *AC1Network 2 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋LDB= LB0, 1MOVB 0, SMB77PLS 1MOVD 16#08000000, AC1+D LD1, AC1MOVR 0.0, *AC1Pls-manTITLE=Network 1 LDB= LB0, 0A SM66.7MOVB 16#85, SMB67MOVW +2000, SMW6837MOVD +10000, SMD72PLS 0Network 2 LDB= LB0, 1A SM76.7MOVB 16#85, SMB77MOVW +2000, SMW78MOVD +10000, SMD82PLS 1Network 3 // 網(wǎng)絡(luò)標(biāo)題// 網(wǎng)絡(luò)注釋
收藏