




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
BasicExecutespositioningwiththeabsoluteAlwaysON(P_On) UnitNo. Poson Acceleration Deceleration Shortcut Direction FilePositionControlCPUCJ1*-CPU**HVersion3.0orlaterCJ1M-CPU**Version3.0orlaterVersion5.0orLanguagesinfunctionblockLadderWhen"Start(Execute)"turnsON,thepositioningoperationfortheaxisspecifiedin"UnitNo.(UnitNo)"and"Axis(Axis)"isstartedusingthespecified"Positioncommand(Position)","Speedcommand(Velocity)","Accelerationtime(Acceleration)"and"Decelerationtime(Deceleration)"."Positioningcompleted(Done)"isturnedONwhenthepositioningoperationfortheFBhasbeencompleted.ThisflagwillnotbeturnedONifthepositioningoperationiscanceledbecauseanotheroperationhasbeenstartedfromadifferentinstance,foradecelerationstop,orbecauseanerrorhasoccurred."Busy(Busy)"willbesetwhenthe"Start(Execute)"isturned"Busy(Busy)"willberesetwhenanyof"Positioningcompleted(Done)","Abort(CommandAborted)",or"Error(Error)"isturnedON.Evenifanerroroccurswhentheinputvariableisoutoftherange,etc.,"Busy(Busy)"willbesetforatleastonecycle."Error(Error)"willbeturnedONand"Errorcode(ErrorID)"willbeoutputifanerroroccursfortheFB.ThiswillnotoccurforerrorinotherFBsorotherinstancesoftheFB.Thesestatuses( mandAborted/Error/ErrorID)willberesetwhen"Start(Execute)"turnsOFF.If"Start(Execute)"turnsOFFbeforethepositioningoperationhasbeencompleted,thestatuswillbesetforatleastonecyclewhencorrespondingconditionshaveoccurred.ExecuteBusyONDoneON(Not-Shortest(ReversePositioningisperformedforthetargetpositionviatheshortestExample:Usingtheunlimitedaxiswiththerangeof0to359 S:StartpositionPositioningisperformedbyoperatingintheExample:Usingtheunlimitedaxiswiththerangeof0to359PositioningisperformedbyoperatinginthenegativeExample:Usingtheunlimitedaxiswiththerangeof0to359 PatternofSee S:StartposonT:TargetposonS:StartpositionWhenthecountmodeofthePositionControlUnitissetto“Rotaryaxis”,themovementdirectionisspecifiedin"Shortcutsetting(Shortcut)"and"Directionsetting(Direction)".Asforthecountmode,refertothePositionControlUnitOperation When"Nodirectionspecified"isselectedforthedirectionofmovement,positioningoperationisperformedtowardtheabsolutepositionwiththeorigin(0)ofthepresentcoordinatesystembeingusedasthereferencepoint.Multiple-turnoperationisalsopossible.Whenthemovementdirectionisotherthan"Nodirectionspecified",multiple-turnoperationcannotbeperformed.Example:Usingtheunlimitedaxiswiththerangeof0to Startposition: Startposition: Startposition: Startposition:Targetposition: Targetposition: Targetposition:- Targetposition: Startposition: Startposition:Targetposition: Targetposition:-KindofFBConnecttheENinputtotheAlwaysONFlagThesameinstancecannotbeusedintwoormoreExecutingthisFBduringthepositioningoperationwillcauseaduplicatestart.Thepositioningoperationwillbeperformedtotheabsolutepositionspecifiedin"Positioncommand(Position)"fromthepointatwhichthelastexecutionwasstarted.Referto"Relateds"fordetails.TargetaxescannotbechangedwhenaduplicatestartiecutedbythesameENinputConnecttheENinputtotheAlwaysONFlagIfanotherbitisconnectedtoEN,theFBoutputswillbeheldwhentheconnectedbitturnsThisFBdoesnotrecognizetheexistenceoftheaxisspecifiedin"UnitNo.(UnitNo)"and"Axis(Axis)".Iftheseinputvariableshavenotbeensetcorrectly,theFBmaynotworknormally.AduplicatestartbythesameinstancecannotbeexecuteduntilthePositionControlUnitdetects"Absolutemovementreceived".Intheme,turningON"Start(Execute)"willbeignored.ThisFBusesbitsofthePositionControlUnit.Therefore,donotturnthesebitsONorOFF.Forthesamereason,donotusethesebitsforcoiloutputs(OUTcommands).Refertothe"■Usedbitslist"forthebitsusedbythisTurningthebitAONfromOFFwilloperatetheAxis(Axis1)connectedtothePositionControlUnitwithaunitnumber0usingtheabsolutemovementcommand.UnitNo.: ServoAxisAlwaysON(P_On) Unit Positioning Bit Bit Bit BitPosition BitSpeed Error Acceleration Deceleration Shortcutsetting Noshortcut->+0 Direction Nodirectionspecified-> sCJ-seriesPositionControlUnitOperation(W477)6DirectOperation12-6ErrorCodeInputVariablesData1(ON):FBUnit&0toSpecifytheunit&1toSpecifytheaxis:StartstheabsoluteRefertotheSpecifythetargetposition.Unit:Commandunits.Theeffectiverangevariesdependingonthespecifieddirectionofmovement("ShortcutsettingShortcut"and"DirectionsettingDirection").Shortestroute:+0 Nodirectionspecified: +17Specifythetargetspeed.Unit:Commandunits/s.ChangingthevaluewhilethisFBisinoperationwillchangetheactualoperatingspeed.+0ChangingthevaluewhilethisFBisinoperationwillchangetheactualoperatingaccelerationtime.+0ChangingthevaluewhilethisFBisinoperationwillchangetheactualoperatingdecelerationtime.+0,Specifytheoperationinring+0:Noshortcut(Movementdirectionisspecifiedin“Directionsetting(Direction)”.)+1:Shortcutmovement(Thevalueofsetting(Direction)”is-1,+0,Specifythemovementdirectionwhen“shortcutmovement”isnotselected.+0:Nodirection+1:Positive+2:NegativeData1(ON):FBoperating0(OFF):FBnotstarted/FBendedwithTurnsONwhenthepositioningoperationhasbeenTurnsONwhenFBisintheTurnsONwhenanaborthasoccurredintheFB.Referto"Error(ErrorID)"forTurnsONwhenanerrorhasoccurredintheFB.Referto"Error(ErrorID)"forErrorReturnstheerrorcodewhenanerroroccurredintheFB.Refer"■Errorcodelist"forErrorcodeErrorofThevalueofinputvariableofthisFBisofvalidSetthevalueofinputvariablewithinthememoryareaTheallocationofAxisOperatingMemoryAreaofCommonParameterisoutofallowablesettingrange.CorrecttheallocationofAxisOperatingMemoryAreaofCommonParametersothatitfallswithintheallowablesettingrangeofdata.UnitAnerrorinindividualunithasCheck"Unitcommonerrorcode".IdentifythecausefromtheOperationofthePositionControlUnit.AxisAnerrorinindividualaxishasCheck"Axiserrorcode".IdentifytheerrorcausefromtheOperationofthePositionControlUnitThePositionControlUnitisnotinreadyExecutetheFBafterputtingthePositionUnitinunitreadyInterrupt"Interruptfeedingspecification"oftheDirectOperationCommandMemoryareawasONwhenMoveAbsolute,MoveRelativeorMoveVelocitywasTurnOFF"Interruptfeedingspecification"oftheDirectOperationCommandMemoryarea.Thedecelerationstop(Decelerationstop/SynchronousgroupstopSelection/AllSynchronousUnitstop)ortheErrorcounterresetoutputwaecutedwhiletheFBwasactive.Duetothedecelerationstopcommand,theactiveFBwasinterrupted.Butthisisnormaloperation.Checkthatthedecelerationstopcommandhasstartedcorrectly.ServoTheServounlockwaecutedwhiletheFBwasactive.Duetotheservounlockcommand,theactiveFBwasinterrupted.Butthisisnormaloperation.CheckthattheservounlockcommandhasDuplicatestartofAduplicatestartof"Absolutemovement"interruptedtheactiveFB.(Excludingabsolutemovementbyhigh-speedPTP.)TheoperationcommanddifferentfromtheactiveFBwaecutedandtheactiveFBwasCheckthatotheroperationcommandsstartedDuplicatestartofAduplicatestartof"Relativemovement"interruptedtheactiveFB."SpeedAduplicatestartof"SpeedinterruptedtheactiveFBcommandshavenotbeenExecutetheFBafterputtingtheunitinstatusthatcanacceptcommands."Absolutemovement"oftheOperationCommandMemoryareahasbeenoperatedbytheoutsideoftheDonotoperateeachbitwhichtheactiveFBisoperating,bytheexternalunitoftheFB.DonotuseitonOUTUsedbitsMemoryDataMemoryareaRotationaxisCommandCommandOriginalThisexinsthefunctionofthefunctionItdoesnotprovideinformationofrestrictionsontheuseofUnitsandComponentsorcombinationofthem.Foractualapplications,makesuretoreadtheoperationsoftheapplicableproducts.NC2x011UnlimitedMoveAbsolute_NC2x011_MoveAbsoluteRing_NC2x011_MoveAbsoluteRingONP_On)BOOL)(BOOLENENO(INT)BOOL)號定位完成UnitNoDone(INT)(BOOL)軸忙軸忙(BOOL)(BOOL)啟動中止執(zhí)行命令中止(DINT)(BOOL)位置指令錯誤位置錯誤(DINT)(WORD)速度指令錯誤代碼VelocityErrorID(DINT)Acceleration(DINT)Deceleration(INT)(INT)方向設(shè)置方向文件名Lib\FBL適用位置控制單元CPUCJ1*CPU**H3.0CJ1MCPU**3.0CP1HCXProgrammer5.0(Done)”O(jiān)N。如果由于從不同實例開始另一個操作、減速停止或發(fā)生錯誤而取消定位操作,ON(執(zhí)行)”O(jiān)N。當(dāng)“定位完成(DoneCommandAborted)”或“錯誤(Error)”中的任何一個變?yōu)镺N時,“忙(Busy)”將被重置。即使在輸入變量超出范圍等)”O(jiān)N,并且“錯誤代碼(ErrorID)FBFB OFF,則當(dāng)相應(yīng)條件發(fā)生時,該狀態(tài)將被設(shè)置至少一個周期。ON執(zhí)行OFF命令速度ON忙OFFON完成OFF當(dāng)位置控制單元的計數(shù)模式設(shè)置為“旋轉(zhuǎn)軸”時,移動方向在“快捷方式設(shè)置(Shortcut)”和“方向設(shè)置(Direction)”中指定。關(guān)于計數(shù)模式,請參閱位置控制單元操作1+00+0(未使用。)+11+0(正向)(反向)范圍0到359范圍0到359范圍0到359STS0TS0T0+315+45+315+45+315+45TST0ST0S0+315+45+315+45+31545S:S:S:T:T:T:目標(biāo)位置。當(dāng)移動方向選擇“無方向指定”時,向為“無方向指定”以外時,無法進(jìn)行多回轉(zhuǎn)運行。示例:使用范圍為0359T0SS0TT0SS0T+315+45315454545+315+405(+315)(+45)45置:+315:+45:+315315:+45:45置:+405T0ST0S+675+45(+315)(+315)起始位置:+45起始位置:+45置:+675目標(biāo)位置:405FBFBEN輸入條件。將ENP_On)。如果另一個位連接到EN,則當(dāng)連接的位變?yōu)镺FF時,F(xiàn)BFB不識別“單元號(UnitNo)”和“軸(Axis)”線圈輸出(OUT命令)FB使用的位,請參閱“■使用位列表”。AONOFFOFF0的軸(軸1)。單元編號:0CPUNC示例_NC2x011_MoveAbsoluteRing始終開啟(P_On)(BOOL)(BOOL)ENENO單元編號(INT)(BOOL)定位完成&0單元編號完成位B軸(INT)(BOOL)忙&1軸忙位C啟動(BOOL)(BOOL))中止BitA執(zhí)行命令中止位Dd位置命令(DINT)(BOOL)錯誤 位置錯誤位E速度命令(DINT)(WORD)錯誤代碼 速度
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025濮陽市采購合同范本
- 2025簡易版本公寓買賣合同
- 2025城鎮(zhèn)房產(chǎn)交易合同范本
- 《創(chuàng)業(yè)融資策略》課件
- 2025工程招投標(biāo)與合同管理案例分析:探秘合同風(fēng)險與合規(guī)策略
- 2025年的家畜購銷合同
- 《生物的多樣性:課件中的動物主要類群》
- 《蛇咬傷應(yīng)急處理》課件
- 六年級品德與社會上冊《信息社會面面觀》教學(xué)設(shè)計1 遼師大版
- 人教統(tǒng)編版選擇性必修 中冊11.1 過秦論教案
- 2025年中考數(shù)學(xué)分類復(fù)習(xí):銳角三角函數(shù)及其應(yīng)用(56題)(原卷版)
- 湖北省襄陽襄城區(qū)四校聯(lián)考2025屆中考化學(xué)模擬試卷含解析
- 100以內(nèi)加減法練習(xí)題
- 微訓(xùn)練 一文多考 備考高效之小說《十八歲的李響》蔡楠-教師版
- 課件:《科學(xué)社會主義概論(第二版)》第四章
- 2025年上半年江蘇省蘇州市總工會招錄社會化工會工作者18人易考易錯模擬試題(共500題)試卷后附參考答案
- 工廠廢料運輸清理協(xié)議
- 2025超市出兌合同書模板
- 《基于寧德時代的財務(wù)報表的公司財務(wù)分析》4100字(論文)
- 湖南省長沙市雅禮實驗中學(xué)-主題班會-《陽光心態(tài)美麗青春》【課件】
- 提高單病種上報率
評論
0/150
提交評論