840DSL高級(jí)維修課程_第1頁
840DSL高級(jí)維修課程_第2頁
840DSL高級(jí)維修課程_第3頁
840DSL高級(jí)維修課程_第4頁
840DSL高級(jí)維修課程_第5頁
已閱讀5頁,還剩111頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、高級(jí)維修課程內(nèi)容PLC功能接口NC變量選擇器多通道技術(shù)軸的耦合技術(shù)同步動(dòng)作擴(kuò)展操作員界面PLC功能接口PLC讀寫NCK變量FB2/FB3NC變量選擇器PLC啟動(dòng)NCK域中的程序?qū)嵗?wù)FB4PLC啟動(dòng)異步子程序FC9PLC控制定位軸FC15PLC控制索引軸FC16PLC控制主軸/定位軸/索引軸FC18PLC讀寫NCK 的變量FB2/FB3功能描述通過FB2/FB3,PLC可以讀取事先通過NC變量選擇器所選出的NCK 的變量。如R參數(shù),程序相關(guān)的變量,軸的實(shí)時(shí)變量,驅(qū)動(dòng)的實(shí) 時(shí)狀態(tài)等。讀: 上升沿觸發(fā)FB2的請(qǐng)求信號(hào)”Req”,讀工作啟動(dòng)。通常經(jīng)過1.2 個(gè)PLC的循環(huán)周期,基本程序?qū)⑼ㄟ^形參A

2、DDR1-ADDR8給出的 NCK的變量拷貝至PLC通過形參RD1-RD8給出的目的地.寫: 上升沿觸發(fā)FB3的請(qǐng)求信號(hào)”Req”,寫工作啟動(dòng)。通常經(jīng)過1.2 個(gè)PLC的循環(huán)周期,基本程序?qū)⑼ㄟ^形參SD1-SD8中存貯的數(shù)值 賦值給通過形參ADDR1-ADDR8給出的NCK的變量. 工作成功的標(biāo)志為新參”NRD”=1,出錯(cuò)顯示在新參 ”ERROR“和”STATE”中。 注意FB1形參:Nckcomm=1FB2/FB3只能在OB1中調(diào)用不允許正常工作工作出錯(cuò)FB2/FB3形參形參類型類型值范圍注釋Req輸入BOOL上升沿啟動(dòng)任務(wù)NumVar輸入INT1. 8(對(duì)應(yīng)ADDR1-ADDR8)讀寫變量

3、個(gè)數(shù)Addr1-Addr8輸入ANYDB名.變量名NC變量選擇器Unit1-Unit8輸入BYTE變量區(qū)域指示(可選)Column1-8輸入WORD變量列號(hào)指示(可選)Line1-8輸入WORD變量行號(hào)指示(可選)Error輸出BOOL任務(wù)出錯(cuò)Ndr輸出BOOL工作成功完成標(biāo)志State輸出WORD見錯(cuò)誤描述RD1-RD8輸入/輸 出ANYP#Mm.n BYTE x P#DBnr.DBX m.n BYTE X讀NC數(shù)據(jù)存貯的地址SD1-SD8輸入/輸 出ANYP#Mm.n BYTE x P#DBnr.DBX m.n BYTE X要賦值給NC變量的數(shù)據(jù)FB2/FB3出錨代碼描述。StateSig

4、n而臼neeNote WORD HWORD L。1t 8Access errorIn high byte number f Var in which。error ourred2Eor injobIncorrect compilation of Var in a job3Negative ac陽10V陸dgment. job Internal eor, not executabletry:Check job,NC RESET。1.84Data areas or data types d。 Check data to be written in SD1 t。SOB ;。n t match or s

5、tring is emptyin high byte number of the Var in whicherror occurred。6FIFO fullJob must be repeated since queue is full7Option not setBP parameter ”NCKomm” is not set。1.88Incorrect ta。咱e。t area (SD)SD1to SD8 may not be localdata9Transnissi nupiedJob must be repeated。1 .810Error in variable addressing

6、Unit or colum(。n/l ne contains value 0。11 Variable addr. invalid or var. isCheck Addr。ead nlyunitr variable name),aea,12 NumVar = 0Check parameter NurnVar1to 813 (OxOd)ANY da回eference incoectNcVar date requied has not beenparameterized1 t。815 (OxOf)User data to。longRemedy:Pack fewer variables in the

7、 j。b。r use shorter string variablesNCK變量與STEP 7變量數(shù)據(jù)類型E配Cla部而臼.tion of data typesNCK data type57 data typedoubleREALdoubleREAL2floatREAL ngDINTintegerDINTuint 32DWORDint 16INTuint 16WORDunsignedWORDcharCHAR or BYTEstringSTRINGbooIBOOLdatetimeDATE AND TIMEJHSK西門子數(shù)控專業(yè)培B2/FB3配置步驟使用NC變量選擇器選擇

8、所需要的NC或者驅(qū)動(dòng)的數(shù)據(jù)保存所選擇的變量,生成*.VAR文件生成STEP的源文件*.STL格式生成DB塊,符號(hào)地址將生成的DB塊傳入STEP 7項(xiàng)目中調(diào)用FB2/FB3,并賦正確的值JHSK西門子數(shù)控專業(yè)培C變量選擇器Windows Cat e.log Windows Update 設(shè)定程序訪問和默認(rèn)值設(shè)置 ) 搜索也) 幫助和支持 Q!) 運(yùn)行也)llQ Si叫 m 也 SINUMERIK 840Db 附件脅 包 啟動(dòng)lQ SINUMERIK包 Si emens國岳飛:!: 國n吵lld_P2. m db 圄ncv_6112Lin陽m圄ncv_611川U毗m db

9、國ncv_Hydr 叫i cs. mdb圄n文件名也)rNcY* . mdb文件類型電):配 vari 燦 list 創(chuàng)cv.In ntRM 氣 四礎(chǔ)stanpolnt形參注意事項(xiàng)SELECT選擇程序程序已經(jīng)裝載在NCK中程序名和路徑名實(shí)例:形參注意事項(xiàng)CONFIG激活MDMD的新值已經(jīng)在OP上或者通過FB3寫NCK變量寫入激活只允許通道處于復(fù)位狀態(tài)或者程序中斷狀態(tài) 如果條件不滿足,返回錯(cuò)誤值為3NC指令建立密碼權(quán)限/刪除密碼權(quán)限LOGIN/LOGOUT密碼包含8個(gè)字符,空格包含在內(nèi)激活程序段搜索FINDBL搜索指針已經(jīng)存在NCK任何時(shí)候NCK復(fù)位可以中斷程序段搜素一旦搜索完成,正常普通的操作

10、自動(dòng)生效SETUDT激活當(dāng)前用戶數(shù)據(jù)SETUDT/激活當(dāng)前用戶FRAMESETUFR當(dāng)前的用戶數(shù)據(jù)如刀具偏置,基本FRAMES和可設(shè)定的FRAMES在下一個(gè)NCK程序段激活(僅僅在STOP狀態(tài))SETUFR激活用戶的FRAME,前提是用戶的FRAME已經(jīng)通過FB3寫入到NCK 功能描述 PLC控制定位軸FC15通過FC15,PLC可以在任何時(shí)間任何模式下運(yùn)動(dòng)定位軸。FC15內(nèi)部完成軸的從NC軸到PLC軸的整個(gè)切換過程。一旦軸到位 形參“InPos”=1,”Start”變?yōu)?),F(xiàn)C15將軸變?yōu)橹行暂S 注意“Active”在0態(tài)時(shí),軸才能再啟動(dòng),也即至少經(jīng)過一個(gè)PLC的循環(huán)之后 才能再次啟動(dòng)軸定

11、位“Start”形參不能取消軸定位運(yùn)動(dòng),只能通過其他軸的接口信號(hào)(如刪 除剩余距離)。旋轉(zhuǎn)軸如果需要最短路徑定位,可以通過在絕對(duì)編程模式下,給一個(gè)負(fù)的進(jìn)給速度在IC模式下,定位方向可以通過給形參“Pos”賦值帶符號(hào)的值來決定+號(hào)表示往正向定位,-號(hào)表示往負(fù)向定位。PLC監(jiān)制定位軸FC15形參SignalVOTypeValue ra咱eRemarkStartBOOLAxisN。BYTE1- 31N。.of axis to be traversedICBOOL0 = Absolute1= IncrementalInchBOOLO = mm1= InchHWheelOvBOOL1= Handwhee

12、loverridep sREAL手 0 1469368 I-38 t,手 0 1701412 I+39Position of linear axis: mm Ro回可 axis: DegFRateREAL手 0,146936811 -38 to手 0 1701412 +39Feed阻1te of linear axis: mm/Min R 坦叩擬is: deg/minlnPosABOOL1= In positionActiveABOOL1= ActiveStartErrABOOLAxis cannot be started.E rABOOLError during traversing 111

13、)Error evaluation by user in the PLC索引軸3種方式定義索引位置 功能描述 PLC控制索引軸FC16通過FC16,PLC可以在任何時(shí)間任何模式下運(yùn)動(dòng)索引軸。FC16內(nèi)部完成軸的從NC軸到PLC軸的整個(gè)切換過程。一旦軸到位 形參“InPos”=1,”Start”變?yōu)?),F(xiàn)C16將軸變?yōu)橹行暂S 注意“Active”在0態(tài)時(shí),軸才能再啟動(dòng),也即至少經(jīng)過一個(gè)PLC的循環(huán)之后 才能再次啟動(dòng)軸定位“Start”形參不能取消軸定位運(yùn)動(dòng),只能通過其他軸的接口信號(hào)(如刪 除剩余距離)。旋轉(zhuǎn)軸如果需要最短路徑定位,可以通過在絕對(duì)編程模式下,給一個(gè)負(fù)的進(jìn)給速度在IC模式下,定位方

14、向可以通過給形參“Pos”賦值帶符號(hào)的值來決定+號(hào)表示往正向定位,-號(hào)表示往負(fù)向定位。PLC監(jiān)制索引軸FC16形參Sinal1/0TypeValue ra咱eRemarkStartBOOLAxisN。INT1 - 31N。f axis t。be traversedICBOOLDirectionaldata。abs。lute1 = incrementalDCBOOL0 = spoc.ified direction1 由。rtest pathwhen DC = 1 the paramete陌 IC, Minus, Plus must be = 0MinusBOOL0 :Rotay axis mot

15、i。n as for lnearaxis1: Motion in negative din配tion with rota叩axesPlusBOOL0 :Rotary axis motion as for lnear axis1: Motion in p。sitive direction withrota叩axesPosINT0 t。32767No.。f indexing positionFRateREAL主 0 1469368 E -38 ti主 0 1701412 E +39。Feedrate oflinear axis: mm/minRota叩axis deg/minltPosABOOL1

16、= In posit。nActiveABOOL1= ActiveStartErrABOOLAxis 臼nn。t be started.ErrorABOOLErro during traversing 1)En-or evaluation by user in the PLC筒惹數(shù)控SignalIlfO IType startI 1IsooLv.陽e r.1nqePLC控制主軸定位軸索引軸FC18RellMkStart spindle control 衍 m PLCStop FunctSOOLBYTE1to B#1S#OBStop spindle controlfrom PLC 1:P siti

17、on spir回e。2:Rotate spindle。3:Oscillate s國叫l(wèi)e 4:Indexing axis 5:P sAxis me時(shí)C6: PosAxs ind、7: PosAxis metnc with handwhIoverride 8:PosAxs 111d with handwheelO鳴 erride 9:Rotate spindle withau1oma!ic gear stage selectionA: Rotate spindle wrth constant cu世ingrate (m/min)B: Ro恒te spindle with comstant cu吐

18、ingrate (ftJmin)M創(chuàng)eSYT0 to 5。 PosI手 0, 1469368 1 -38 t。:Pos t。absolute pos1: Pos in仨陀m四tally 2: Pos sh倒也宣t path。3: Pos absolu1e,pos tive .approach dir理di由1 4:Pos abso ute,nega:撾ve approach direction 5: RotafionaJ di陪ction a:s for M4No. f axt:s/spindfe io be trav町回dRolary axi:s:0呵陀自l叫ex ng axis:Ir叫ex

19、 ng 四甜m辛 0,1701412 1 39。FRateIREALI+ o川69刷 1 -38t。喜 0,1701412 1-r39lnP sQSOOLLinear ax s:mm or in hesR 但ry axis and sp111d e 陀,v/minsunder ra刨e conraininginfo about FRate t = Position reached.。ErrorQ8。or func悔n execu也d= ErrorS國ti(2)才有 一t StateBYTO to 255Error code lnPosError(StartEzr多通道技術(shù)程序協(xié)調(diào)技術(shù)軸在通道間

20、替換技術(shù)通道 1通道 2軸移動(dòng)X,Z 主 軸 S車削裝載/卸載裝載器通道同步(程序協(xié)調(diào))如果多個(gè)通道參與加工某一個(gè)工件,有時(shí)必須在通道間進(jìn)行程序的協(xié)調(diào)。 程序間的協(xié)調(diào)技術(shù)僅僅通過NC指令即可,這些指令編制一個(gè)單獨(dú)的程序段前提條件:參與的通道必須在同一個(gè)模式組特殊MD程序協(xié)調(diào)指令(SW3)InstructionMeaningINIT (n, ”identifier”, ”q”)Selection of a program for processing in a certain channel Acknowledgement moden (without )or s ( synchronous )

21、Name of the program with indication of the pathName of the channel: value 1 to 4 possibleCLEAR (identifier) START (n, n, n)Deletion of a program indicating the program identifier Start of the programs selected in other channelsEnumeration of the channel numbers: values 1 to 4 possibleWAITM (Mnr,n,n,

22、n,n)Sets the marker “Mnr” in the current channel .terminate previous block with exact stop. Wait for the same mark number Mnr for program synchronization in the specified Channels n. Marker is deleted after Synchronization.10 markers can be set per channel simultaneously.WAITE (n,n,n )Waiting for th

23、e program end of the channels indicated程序協(xié)調(diào)指令(SW4或以上)InstructionMeaningSETM(Mnr1,Mnr2,Mnri )Set wait marks Mnr1,Mnr2,Mnri for conditional wait with WAITMC() for the channelIn which SETM() is issued. The channel thus declare to its partner channels that its wait characteristic is not/no longer fulfil

24、led.The command can be activated in synchronized actions .Up to 10 marks(0-9) can be Set using one command.CLEARM(Mnr1,Mnr2,.Mnri)Delete wait marks Mnr1,Mnr2,Mnri for conditional wait with WAITMC() for the channel in which CLEARM() is issued. The channel thus declares to its partner channels that it

25、s wait characteristic is fulfilled.The command can be activated in synchronized actions .Up to 10 marks(0-9) can be Set using one command.WAITMC (Mnr,n,n,)Conditional wait in continuous-path mode for the specified wait characteristic Mnr from the specified channels n . When processing continues afte

26、r the wait marks from the other channels in the group have arrived. The wait marks of these channels areDeleted.WAITMC()指令減速響應(yīng)A) !ta t maks of aillchannels have already airriv,edcon inued opeafiorn Vl眈h n:odeceleatiornP理霄E 哩缸X主,ty、 、 一 l B) Alm 1.!ait marks arlived dmiingde,oeleation fro町E path velo

27、city down to rexact stop velo oitio,ecelerafio Iii ceasesimmediateCy when fast e:pected warn mak appears_ The axes are acce陽ate,d backvPaeli !但因lyup to patl1l v,elooiti/.I/ W州!IT脅響巳./I /lVE:icsci s1cm 帽 缸民卻vC) Thelast Vait mark does not arriVte until e-xaot 時(shí):op velocity has been reache-0.Brake do14

28、flil to eact stop velocity 飛,!1hen tl1lelast re,quied mark appea阻,ihe axres ae accelerated from exaot sf.op veJocity up t.o pa.th velocity _vPaE vdoclly%100Channel 1程序?qū)嵗?)Channel 2%200N70 WAITM(1,1,2)N270 WAITM(2,1,2)N400 M30N10 INIT(2,”_N_200_MPF”,”n”) N11 START(2)N80 WAITM(1,1,2)N180 WAITM(2,1,2)

29、N200 WAITE(2)N201 M30Channel 1程序?qū)嵗?)Channel 2Channel 3%100N10 INIT(2,”_N_200_MPF”,”n”) N11 INIT(3,”_N_300_MPF”,”n”) N15 START(2,3)N80 WAITMC(7,2,3)N180 WAITMC(8,2)N201 M30%200N210 SETM(7)N250 SETM(8)N400 M30%300N350 WHEN R120 DO SETM(7)N360 M30軸在通道間的替換技術(shù)通常的情況:軸或者主軸通過MD永久的分配給某一通道,只能在此通道中使用 軸的替換技術(shù):通過

30、此技術(shù),軸可在通道間自由切換前提條件:軸需要在哪些通道中使用,并且可以被替換MD20070:$MC_AXCONF_MACHAX_USED上電時(shí)軸在哪個(gè)通道里MD30550:$MA_AXCONF_ASSIGN_MASTER_CHAN配置實(shí)例2po28888288588288581288582288688288681288682,288788288781288782$MC_CHAN_ HAME$MC_AXCOHF_GEOAX_ASSIGH_ TAB$MC_AXCOHF_GEOAX_ASSI GH_TAB$MC_AXCOHF_GEO自X_ASSIGH_ TABj_$MC_AXCOHF_GEOAX_H

31、AME_ TAB$MC_AXCOHF_GEOAX_HAME_TAB$MC_AXCOHF_GEOAX_H自ME_TAB$MC_AXCOHF_MACHAX_USEDCH$MC 自XCOHF_M自CHAX_USED.i.$MC_AXCOHF_MACHAX_USEOM VM 2。.000。.000288783$MC_AXCOHF_MACHAX_USEO288784$MC_AXCOHF_MACHAX_USEO” 。8.888 。H123poxpoypo一po一2348po po po po28888$問C_CHAN_HAMEpo ?CHAH2 復(fù)位288581$MC_ AXCOHF_GEOAX_ASSI

32、GH_TAB8poAX5000288588$問C一AXCOHF_GEOAX_ASSIGH TABpo 三 問cs位置 (mm).M X$問C_ AXCOHF_GEOAX_HAME_TABpo。288582$MC 自XCOHF_GEOAX_ASSI GH_TAB8po288688$MC_ AXCOHF_GEOAX_HAME_TAB, poMS288681$問C_AXCOHF_GEOAX_HAME_ TABpo288682288788$MC_ AXCOHF_MACHAX_ USEDpo288781$MC_AXCOHF_MACH 自X_USEDpo.000 。.000288782$MC_ AXCOH

33、F_MACHAX_ USEO, po 288783$問C_AXCOHF_MACHAX_USEOpo。lX:?jiǎn)?”flXCONF_flSSIGN_MflSTER _CHflN 288784.$MC_ AXCOHF_MACHAX_ USEO.PO IINC指令實(shí)現(xiàn)軸在通道間替換報(bào)警14092,必須先RELEASE(AX),后GET(AX)或者GETD(AX)不報(bào)警,等待另一個(gè)通道的軸提示。必須先RELEASE(AX),系統(tǒng)直接GET(AX)不報(bào)警,也不等待另一個(gè)通道的軸提示。不用先RELEASE(AX),系統(tǒng)直接GETD(AX)軸替換總括Neu甘al axisChannel 1Chanlei2PLC axis曰R且.EASEAX ”.) fl四” NC pn:事田n曰RESET llBy回Relea啤e ln nei.11rai a1atevaa PtC回Re恒ase ID asp國c dlanr回響a PtC曰GET 陽”陽時(shí)間m曰GET 舊時(shí)回回由叫from NC programECEU235旦主軸與軸的耦合技術(shù)切線控制同步主軸耦合運(yùn)動(dòng)(標(biāo)配)龍門軸驅(qū)動(dòng)的主從控制曲線表插補(bǔ)電子齒輪延時(shí)停和快速回退技術(shù) 功能描述 切線控制選件沿著編程輪廓軌跡,定位旋轉(zhuǎn)軸(C)跟隨軌跡的變

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論