教程cx one omron編程軟件4 30 nc2x_第1頁
教程cx one omron編程軟件4 30 nc2x_第2頁
教程cx one omron編程軟件4 30 nc2x_第3頁
教程cx one omron編程軟件4 30 nc2x_第4頁
教程cx one omron編程軟件4 30 nc2x_第5頁
已閱讀5頁,還剩3頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(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)號(hào)定位完成UnitNoDone(INT)(BOOL)軸忙軸忙(BOOL)(BOOL)啟動(dòng)中止執(zhí)行命令中止(DINT)(BOOL)位置指令錯(cuò)誤位置錯(cuò)誤(DINT)(WORD)速度指令錯(cuò)誤代碼VelocityErrorID(DINT)Acceleration(DINT)Deceleration(INT)(INT)方向設(shè)置方向文件名Lib\FBL適用位置控制單元CPUCJ1*CPU**H3.0CJ1MCPU**3.0CP1HCXProgrammer5.0(Done)”O(jiān)N。如果由于從不同實(shí)例開始另一個(gè)操作、減速停止或發(fā)生錯(cuò)誤而取消定位操作,ON(執(zhí)行)”O(jiān)N。當(dāng)“定位完成(DoneCommandAborted)”或“錯(cuò)誤(Error)”中的任何一個(gè)變?yōu)镺N時(shí),“忙(Busy)”將被重置。即使在輸入變量超出范圍等)”O(jiān)N,并且“錯(cuò)誤代碼(ErrorID)FBFB OFF,則當(dāng)相應(yīng)條件發(fā)生時(shí),該狀態(tài)將被設(shè)置至少一個(gè)周期。ON執(zhí)行OFF命令速度ON忙OFFON完成OFF當(dāng)位置控制單元的計(jì)數(shù)模式設(shè)置為“旋轉(zhuǎn)軸”時(shí),移動(dòng)方向在“快捷方式設(shè)置(Shortcut)”和“方向設(shè)置(Direction)”中指定。關(guān)于計(jì)數(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)移動(dòng)方向選擇“無方向指定”時(shí),向?yàn)椤盁o方向指定”以外時(shí),無法進(jìn)行多回轉(zhuǎn)運(yù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)。如果另一個(gè)位連接到EN,則當(dāng)連接的位變?yōu)镺FF時(shí),F(xiàn)BFB不識(shí)別“單元號(hào)(UnitNo)”和“軸(Axis)”線圈輸出(OUT命令)FB使用的位,請參閱“■使用位列表”。AONOFFOFF0的軸(軸1)。單元編號(hào):0CPUNC示例_NC2x011_MoveAbsoluteRing始終開啟(P_On)(BOOL)(BOOL)ENENO單元編號(hào)(INT)(BOOL)定位完成&0單元編號(hào)完成位B軸(INT)(BOOL)忙&1軸忙位C啟動(dòng)(BOOL)(BOOL))中止BitA執(zhí)行命令中止位Dd位置命令(DINT)(BOOL)錯(cuò)誤 位置錯(cuò)誤位E速度命令(DINT)(WORD)錯(cuò)誤代碼 速度

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(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)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論