教案详解文件_第1页
教案详解文件_第2页
教案详解文件_第3页
教案详解文件_第4页
教案详解文件_第5页
全文预览已结束

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

FBInstanceFBInstanceEndSpecifyunsedTherequirdsizevariesFunctionIfanareabeingusedspacecannotbefound,FBEndReadParameterBasicReadsaservoparameterofanStartTrigger Busy Unit Busy AxisNo. Servoparameter Error Parametersize FileLib\FBL\omronlib\PositionController\NCF\NCF201CPUCS1*-CPU**HUnitVersion3.0orlaterCJ1*-CPU**HUnitVersion3.0orCJ1M-CPU**UnitVersion3.0orlaterVersion5.0orLanguagesfunctionblockThefollowingconditionsforusageshouldbethePositionControlUnitversion1.2orearlier.(ItwillnotberequiredinthePositionControlUnitversion1.3orlater)ThefunctionblocksrelatedtothePositionControlUnitswillnotoperateiftheareaH512orhigher(defaultsetting)isspecifiedastheNonRetainAreathroughtheFunctionblockmemoryallocation.Makesuretochangethememoryareatounusedarea(DMorEM,forexample)fromtheCX-Programmer.Tochangethisvalue,clickPLC/FunctionBlockMemory/FunctionBlockMemoryAllocationfromthe FunctionBlockMemoryAllocationependingontheusedFBandthenumberofFBs.theladderprogramisspecifiedorsufficienteCX-Programmerwill yacompile areafromD32020toD32767 (748words),specifyaddressesasshownintheWhentheStartTriggerturnsON,thespecifiedparametervaluefortheaxisofthespecified“UnitNo.(UnitNo)”and“AxisNo.(Axis)”isreadfromtheServoDriver.IftheFBexecutionendsinanerror,anerrorcodewillbeoutputtothe“ErrorcodeThisFBexecutestheservoparametertransferfunctionofthePositionControlUnit.RefertotheRelatedsfordetails.ThisFBisprocessedovermultipleThesameinstancecannotbeusedintwoormorecesinordertokeeptheinternal・TheFBisprocessedovermultiplecyclesTheBusyflagBusycanbeusedtocheckwhethertheFBisbeingprocessed.・“ReadcompletedDoneorErrorflag(Error)willbeturnedONforonecycleonlyafterprocessingiscompleted.UsetheseflagstodetectofFBprocessing.StartTriggerBusyDoneError Read ReadENinputoutputfromtheFB.・IftheinputvariablesareoutofrangetheENOFlagwillturnOFFandtheFBwillnotbe・ThisFBusesUnitErrorReset,READDATA,WRITEDATA,andSAVEDATABitsofthePositionControlUnitseeNoteTherefore,donotturnthesebitsONorOFFbetweentheperiodfromtherisingedgeofENtotherisingedgeofENO.Forthesamereason,donotusethesebitsforcoiloutputs(OUTcommands).・TheremaybeacasewheretheoutputvariableofFBwillnotchangeevenifENisturnedONInthatcase,checkifUnitErrorReset,READDATA,WRITEDATA,orSAVEDATABitisleftON.・ThisFBusestheReadServoParameterBitintheAxisOperatingOutputMemoryAreasTherefore,donotturnthesebitsONorOFFuntiltheoperationiscompleted.Forthesamereason,donotusethesebitsforcoiloutputs(OUTcommands).Forcalculationofbitaddresses,thesebitsarereferencedinthisFBwhenexecutingeachinstanceforthefirst・TheBusyflagBusymustbeinsertedtoORofinputconditionstoInputvariableENinordertocompletethisprocessasitshouldbeexecutedovermultiplecycles.(Referto“Symbol”)・DonotturntheBusyflagBusyON/OFFoutsideoftheWhenturningtheBitAONfromOFF,aservoparameter(thespeedloopgain)isreadfromaxis1oftheServomotorconnectedtothePositionControlUnitwithunitnumber0andstoredinD0.Unit Axis1BitA Bit Unit Busy BitAxis Read BitServoparameter Error BitParameter Error s5-3TransferringServoParameters12-4ErrorVariableTablesInputData1(ON):FB0(OFF):FBnotUnit&0toSpecifytheunitAxis&1toSpecifytheaxisSpecifythenumberoftheServoDriverparametertoread.&1toSpecifythenumberofbytesintheparametertoOutputData1(ON):FBoperating0(OFF):FBnotoperating・FBnot・Inputvariableoutofthe・FBendedwith・CommonParameterscouldnotbeBusyAutomaticallyturnsOFFwhenprocessingisReadTurnsONforonecyclewhenprocessingendsErrorTurnsONforonecyclewhenprocessingendsinanErrorReturnstheerrorcodewhenanerrorhasoccurredintheFB.RefertotheRelatedsfordetailsonerrors.Acodeof#0000willbereturnedifanyofthefollowingconditionsissatisfied.・Inputvariableisoutof・ThecommonparametersofthePositionControlUnitsareoutofrange.・TheReadServoParamterBitischangedbytheotherFBduringtheReadServoParamterinoperation.Theparametervaluethatwasread.Iftheparametersizeis2bytes,thedataisstoredintheloweraddress.VersionLimitationaboutthesettingtimingwith"UnitNo."and"AxisNo."wasDetailedInversion1.0x,onlythefirstsettingof"UnitNo.(UnitNo)"or"AxisNo.(Axis)"wasvalid.ThismeantthatasameinstancecouldnotbeusedtowriteServoparametersformorethanoneaxis.Inversion1.10,thislimitationwasThisexinsthefunctionofthefunctionItdoesnotprovideinformationofrestrictionsontheuseofUnitsandComponentsorcombinationofthem.Foractualapplications,makesuretoreadtheoperationsoftheapplicableproducts._NCF201_读取参数(1/3)_NCF201_读取参数NCF201_NCF201_读取参数符号_NCF201_ReadParameterStartTrigger(BOOL)(BOOL)ENENOBusyflag(INT)(BOOL)UnitNoBusyflagUnitNoBusyINT)BOOL)AxisNo(WORD)(BOOL)(INTWORD)ErrorID(DWORD)值值CJ1*CPU**HUnitVersion3.0或更高版本CJ1MCPU**UnitVersion3.0或更高版本功能块定义中的语言梯形图编程使用条件以下使用条件应为位置控制单元版本1.2或更低版本(位置控制单元版本1.3或更高版本中不需要)■CX程序员设置如果通过功能块内存分配将H512或更高区域(默认设置)指定为非保留区域,则与位置控制单元相关的功能块将不运行。a(例如,DM或EM)来自CXProgrammer。要更改此值,请从菜单栏中单击PLC/功能块内存/功能块内存分配。FunctionBlockMemoryAllocation[NewPLC1]FBInstanceAreaStartAddressEndAddressSizeOKNoRetainH512H1407896保留H1408H1535128取消定时器T3072T40951024编辑计数器了梯形图程序中正在使用的区域或找不到足够的可用空间,CXProgrammer将显示编译错误FunctionBlocMemoryAllocation[NewPLC1]FBInstanceArea保留D32020D32767748保留H1408H1535128取消定时器T3072T40951024编辑计数器C3072C40951024D32020D32767(748),指定地(Axis)FB(ErrorID)FBoFB的种类定义为多周期执行类型。此FB是在多个周期上处理的。同一实例不能在两个或多个 FBFB“Busflag(usy)”B“ReacomletedDone)Errorlag(Eror)BONStartTrigerOFFONBsyOFFONOFF错误OFF值#0000000#000000EN输入条件。将EN连接到启动触发的向上微分条件与FB输出的“Busyflag(Busy)ENENOFB将不会被处理。该功能块使用位置控制单元的单位错误复位、READDATA、WRITEDATA和SAVEDATA位(请参见注释)。因此,请勿在EN上升沿到ENO上升沿期间将这些位打开或关闭。出于同样的原因,请勿使用这些位进行线圈输出(OUT命令)。可能存在一种情况,即使E已打开,FBUnitErrorReset、READDATA、、或SAVEDATA位保留为ON..此FB使用轴操作输出内存区域中的读取伺服参数位。因此,在操作完成之前不要打开或关闭这些位。出于同样的原因,请勿将这些位用于线圈输出(OUT命令)。注意:对于位地址的计算,首次执行每个实例时,在此FB中引用这些位。输出变量。必须将“Busyflag(Busy)”插入到输入条件或输入变量EN中才能完成此过程,因为它应该在多个周期内执行。(请参阅“符号”)FB外部打开/关闭“Busyfl

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论