課件案例成果nccp1hstop real_第1頁(yè)
課件案例成果nccp1hstop real_第2頁(yè)
課件案例成果nccp1hstop real_第3頁(yè)
課件案例成果nccp1hstop real_第4頁(yè)
課件案例成果nccp1hstop real_第5頁(yè)
全文預(yù)覽已結(jié)束

付費(fèi)下載

下載本文檔

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

文檔簡(jiǎn)介

NDecelerationStop(REAL):_N

Stoppedanoperatingaxiswith

AlwaysON

AxisDecelerationratePulseoutputme

DeceleraionstopcompletedBusyflagErrorflag(MaybeFilenameforusage

U(CP1H)\N 1H061StopREAL11.cxfCPUUnit CP1H-(XA40DT-D/XA40DT1-D/X40DT-D/X40DT1-D/Y20DT-D)ThisFBcannotbeusedwithCP1LPLCs.Usethe Version6.1orhigherExecutesdecelerationstopontheaxisofthespecifiedAxisNo.(Axis)whenStart(Execute)isturnedON(usingtheselectedPulseoutputmethod).TheDecelerationstopcompleted(Done)willbeturnedONwhenadecelerationstopbythisFBiscompleted.IfthedecelerationstopisinterruptedbyaMultistartcausedbyanotherinstanceorerror,theDecelerationstopcompleted(Done)willnotbeturnedON.TheErrorflag(Error)willbeturnedONandErrorcode(ErrorID)willbeoutputwhenanerrorrelatedtothisFBThesestatuseswillberesetwhenStart(Execute)isturnedOFF.IfStart(Execute)wasturnedOFFbeforepositioningiscompleted,thestatuswillbesetforatleastonecyclewhenacorrespondingconditionoccurs.

KindofFB

ConnectAlwaysONConnecttheENinputtotheAlwaysONFlag(P_ON).Thesameinstancecannotbeusedintwoormore methodforthePulseoutput2and3donotneedtobesame.WhenthisFBstartswithlowPulseoutputfrequencyasthereisnoPulseoutputduringonecycle,itisstoppedwithoutdeceleration.Inthiscase,it esthesameastheconditionthatthePulseoutputisstoppedbytheINIinstruction(FunNo.880).IfStart(Execute)isturnedONwithnoorigindefined,thepresentvalueofoutputpulsecountswillbeclearedto0andoutputpulsesfordecelerationwillbecounted.(IfthisFBstartswithlowPulseoutputfrequencyasthereisnoPulseoutputduringonecycle,outputpulsecountswillnotbeclearedto0.)Execute NooriginON ENinputConnecttheENinputtotheAlwaysONFlagIfadifferenttypeofbitisconnectedtoEN,theFBoutputswillbemaintainedwhentheconnectedbitisturnedThisFBdoesnothavethefunctiontoprohibitaxisIfanotherMovecommandiecutedduringexecutionofthisFB,thecommandexecutedlaterwillbegivenWhenthestarttriggerturnsfromOFFtoON,thepulseouputwillbestoppedfromthePulseoutput0ontheCP1HUnit. PulseoutputStart Bit Bit BitBit AlwaysON(P_On) Axis DecelerationstopPulseoutput0 Bit BusyBit BitDecelerationrate Errorflag100Hz/4ms+100.0 BitDPulseoutputmethod ErrorcodeCW/CCWoutput (MaybeSYSMA-seriesCP1HProgrbleControllersOperationManual(W450)5-3-8InstructionsUsedforPulseOutputs5-3-5OriginSearchandOriginReturnFunctions(PulseOutputStopErrorInputVariablesData1(ON):Starts0(OFF):DoesnotstartAxis&0to&0:Pulseoutput0&1:Pulseoutput1&2:Pulseoutput&3:PulseoutputUnit:Hz/4ms(Decrease(Hz)infrequencyperPulsecontrolperiod(4ms))&0to&0:CW/CCW&1:Pulse+directionOutputVariableData1(ON):FBoperatingnormally0(OFF):FBnotoperatingnormally1(ON)indicatesthatadecelerationstophasbeenBusy1(ON)indicatesthattheFBisinError1(ON)indicatesthatanerrorhasoccurredintheError(MaybeTheerrorcodeoftheerroroccurredintheFBwillbeoutput.Fordetailsoftheerrors,refertothesectionsofthemanuallistedintheRelatedmanualsabove.WhenNo.orAxis.No.isoutoftherange,#0000willbeRevisionAdditionofCP1HCPUUnitunitversionOriginalThisexinsthefunctionofthefunctionmakesuretoreadtheoperationmanualsoftheapplicableproducts._N1H061_Stop_REAL(1/1)_N1H061_Stop_REALN1H061停止(REAL):_N1H061_Stop_REAL基本功能以方式停止正在運(yùn)行的軸。符號(hào)_N1H061_Stop_REAL常時(shí)ON(P_On)(BOOL)(BOOL)ENENO(INT)(BOOL)軸號(hào)軸Done停止完成(BOOL)(BOOL)開始執(zhí)行Busy忙標(biāo)志(REAL)(BOOL)率錯(cuò)誤錯(cuò)誤標(biāo)志(INT)(WORD)錯(cuò)誤代碼脈沖輸出方式OutPulseSelectErrorID(可省略)文件名Lib\FBL\omronlib\PositionController\NU(CP1H)\_N1H061_Stop_REAL11.cxf適用型號(hào)CPU單元CP1H-(XA40DT-D/XA40DT1-D/X40DT-D/X40DT1-D/Y20DT-D)FB不能與CP1LPLC一起使用。CP1LPLC使用NU(CJ1MCPU2x)。CX-Programmer版本6.1或更高版本語(yǔ)言梯形圖使用條件無(wú)功能說明當(dāng)啟動(dòng)(執(zhí)行)變?yōu)镺N(使用所選脈沖輸出方式)時(shí),對(duì)指定軸編號(hào)(軸)的軸執(zhí)行停止。當(dāng)本FB的停止完 停止完成(Done)將變?yōu)镺N。如果停止因其他情況或錯(cuò)誤引起的多重啟動(dòng)而中斷 停止完成(Done)將不會(huì)變?yōu)镺N。發(fā)生與本FB相關(guān)的錯(cuò)誤時(shí),錯(cuò)誤標(biāo)志(Error)將變?yōu)镺N,并輸出錯(cuò)誤代碼(ErrorID)。當(dāng)啟動(dòng)(執(zhí)行)關(guān)閉時(shí),這些狀態(tài)將被重置。如果在定位完成之前將啟動(dòng)(執(zhí)行)置為OFF,則當(dāng)相應(yīng)條件發(fā)生時(shí),該狀態(tài)將被設(shè)置至少一個(gè)周期。ENONOFFENOONOFF執(zhí)行ONOFFSpeed速度命令DoneONOFFBusyONOFFErrorONOFFKindofFB定義連接常開類型將EN輸入連接到常開標(biāo)志(P_ON)。同一實(shí)例不能在兩個(gè)或多個(gè)地FB0123FBINI(FunNo.880)點(diǎn)的情況下啟動(dòng)(執(zhí)行)為ON,則輸出脈沖計(jì)數(shù)的當(dāng)前值將被清除為0,并且將計(jì)算用于的輸出脈沖。(如果此FB以低脈沖輸出頻率啟動(dòng),因?yàn)樵谝粋€(gè)周期內(nèi)沒有脈沖輸出,則輸出脈沖計(jì)0。)ONOFFONOFFEN入條件。將EN輸入連接到始終開啟標(biāo)志(P_ON)EN,則當(dāng)連接的位關(guān)閉時(shí),F(xiàn)B輸出將保持。限制事項(xiàng)其他。本FB不具有軸動(dòng)作的功能。.如果在執(zhí)行該FB的過程中執(zhí)行了另一個(gè)移動(dòng)命令,則較晚執(zhí)行令將優(yōu)先。應(yīng)用示例當(dāng)啟動(dòng)觸發(fā)器從OFF變?yōu)镺N時(shí),CP1H單元上的脈沖輸出0脈沖輸出0CP1H單元伺服電機(jī)BitA啟動(dòng)觸發(fā)BitBBitDBitA_N1H061_Stop_REAL始終ON(P_On)(BOOL)(BOOL)ENENO軸編號(hào)(INT)(BOOL) 停止完成脈沖輸出0。&0軸完成BitB啟動(dòng)(BOOL)(BOOL)忙標(biāo)志BitA執(zhí)行忙BitC 度(REAL)(BOOL)錯(cuò)誤標(biāo)志100Hz/4ms。+100.0錯(cuò)誤位D脈沖輸出方式(INT)(WORD)錯(cuò)誤代碼CW/CCW輸出。&0OutPulseSelectErrorID(可以省略)相關(guān)手冊(cè)SYSMA系列CP1H可編程控制器操作手冊(cè)(W450)5-3-8用于脈沖輸出的指令5-3-5原點(diǎn)搜索和原點(diǎn)返回功能(脈沖輸出停止錯(cuò)誤代碼)ENENBOOL1(ON):FB0(OFF):FBINT&0&0~&3&0:0&1:脈沖輸出1&2:脈沖輸出2&3:脈沖輸出3開始執(zhí)行BOOL0(OFF):開始停止率DecelerationREAL+1.0+1.0至 .0指脈沖輸

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(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)論