下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
_NCF040_TorqueControl_REAL(
1/4)
FBInstanceArea
StartAddress
EndAddress
Size
NoRetain
H512
H1407
896
Retain
H1408
H1535
128
Timers
T3072
T4095
1024
Counters
C3072
C4095
1024
Specifyunu
sedarea.
Therequire
dsizevariesd
FBInstancrea
StartAddress
EndAddress
Si
NoRetain
D32020
D32767
748
Retain
H1408
H1535
128
Timers
T3072
T4095
1024
Counters
C3072
C4095
1024
NCF
040
TorqueControl(REAL)_NCF040_TorqueControl_REAL
Basicfunction
Controlsthetorque.
Symbol
AlwaysON(P_On) _NCF040_TorqueControl_REAL(BOOL) (BOOL)
EN ENO
UnitNo. (INT) (BOOL) TorquecommandcompletedflagUnitNo Done
AxisNo. (INT) (BOOL) AbortAxis CommandAborted
Start (BOOL) (BOOL) ErrorflagExecute Error
Torquecommandvalue (REAL) (WORD) Errorcode
Torque ErrorID
Speedlimit (REAL)
Velocity
Filename
Lib\FBL\omronlib\PositionController\NCF\NCF040TorqueControlREAL11.cxf
Applicablemodels
PositionControlUnit
CJ1W-NCF71,CS1W-NCF71
CPUUnit
CS1*-CPU**HUnitVersion3.0orlaterCJ1*-CPU**HUnitVersion3.0orlaterCJ1M-CPU**UnitVersion3.0orlaterCP1H
CX-Programmer
Version5.0orlater
Languagesinfunctionblock
definitions
Ladderprogramming
Conditionsforusage
ThefollowingconditionsforusageshouldbethePositionControlUnitversion1.2orearlier.(ItwillnotberequiredinthePositionControlUnitversion1.3orlater)
CX-ProgrammerSetting
ThefunctionblocksrelatedtothePositionControlUnitswillnotoperateiftheareaH512orhigher(defaultsetting)isspecifiedastheNonRetainAreathroughtheFunctionblockmemoryallocation.Makesuretochangethememoryareatounusedarea(DMorEM,forexample)fromtheCX-Programmer.Tochangethisvalue,clickPLC/FunctionBlockMemory/FunctionBlockMemoryAllocationfromtheBar.
FunctionBlockMemoryAllocation[NewPLC1]
OK
CancelEditDefault
ependingontheusedFBandthenumberofFBs.Ifanareabeingusedintheladderprogramisspecifiedorsufficientspacecannotbefound,theCX-Programmerwilldisyacompileerror.
FunctionBlocMemoryAllocation[NewPLC1]
OK
CancelEdit
Default Forexample,tousethememoryareafromD32020toD32767
Advanced (748words),specifythe
addressesasshownintheleft.
Functiondescription
WhentheStart(Execute)turnsON,theTorqueControlfortheaxisofthespecifiedUnitNo.(UnitNo)andAxisNo.(Axis)isstartedusingthespecifiedTorquecommandvalue(Torque).TheSpeedlimit(Velocity)canbeusedtospecifytheumspeedduringtorquecontrol.
ChangingthevalueofTorquecommandvalue(Torque)duringthetorquecontrolbythisFBwillchangetheactualoperationspeed.
ThevalueofTorquecommandvalue(Torque)canbereflectedwhiletheStart(Execute)isturnedONevenaftertheTorquecommandhasbeencompleted.
TheTorquecommandcompletedflag(Done)isturnedONwhentheTorquecommandvalue(Torque)inthisFBhasbeenacceptednormallybytheServoDrive.
TheErrorflag(Error)willbeturnedONandtheErrorcode(ErrorID)willbeoutputifanerroroccursfortheFB.ThiswillnotoccurforerrorinotherFBsorotherinstancesoftheFB.
Thesestatuses( mandAborted/Error/ErrorID)willberesetwhentheStart(Execute)turnsOFF.IftheStart(Execute)turnsOFFbeforetheoperationhasbeencompleted,thestatuswillbesetforatleastonecyclewhensupportingconditionshaveoccurred.
ENONOFF
ENOONOFF
ExecuteON
OFF
Torque
DoneONOFF
ErrorONOFF
KindofFBdefinition
Alway ecutiontype.
ConnecttheENinputtotheAlwaysONFlag(P_On).
Thesameinstancecannotbeusedintwoormoreces.
FB
precautions
・TurningONtheStart(Execute)againaftertheTorquecommandhasbeencompletedwillcauseamultiplestartandthetorquecontrolwillbeperformedforthetorquesetinTorquecommandvalue(Torque)then.
RefertotheRelatedManualsfordetails.
ENinput
condition
・ConnecttheENinputtotheAlwaysONFlag(P_On).
IfanotherbitisconnectedtoEN,theFBoutputswillbeheldwhentheconnectedbitturnsOFF.
RestrictionsOther
・ChangingtheTorquecommandvalue(Torque)whiletheStart(Execute)isONaftertheTorquecommandhasbeemcompletedwillchangetheactualoperationspeed.However,thespeedwillnotbechangediftheTorquecommandvalue(Torque)islessthan-2.147483e+006orexceeds+2.147483e+006.
Ex.1)WhenchangingtheTorquecommandvalue+100.000(+100%)to+2.147483e+006duringtheoperation:TheTorquecommandvalueforthePositionControlUnitischangedto
+2.147483e+006( %).SomePositionControlUnitsmaycauseanerror.
Ex.2)WhenchangingtheTorquecommandvalue+100.000(+100%)to+2.147484e+006duringtheoperation:TheTorquecommandvalueforthePositionControlUnitremains+100.0(+100%)withoutanychange.
・TheTorquecommandvalue(Torque)canbereflectedwhiletheStart(Execute)isturnedONevenaftertheTorquecommandhasbeencompeted.Atthattime,ifmorethanoneinstancei ecuted,theywillbeoperatedwiththecommandvalueofinstancelocatedinthebottom.
・ThefollowingcannotbespecifiedforthisFB:“Forwardrotationcurrentlimitdesignation”and“Reverserotationcurrentlimitdesignation”.Ifanyofthesefunctionsisrequired,specifytheminadvanceoutsidetheFB.
・ThisFBusesUnitErrorReset,WriteData,ReadDataandSaveDataBitsofthePositionControlUnit(seeNote).Therefore,donotturnthesebitsONorOFFbetweentheperiodfromtherisingedgeofENtotherisingedgeofENO.Forthesamereason,donotusethesebitsforcoiloutputs(OUTcommands).
・TheoutputvariableofFBmaynotchangeevenifENisturnedON.Inthatcase,checkifanyofUnitErrorReset,WriteData,ReadDataandSaveDataBitisleftON.
・ThisFBusestheTorqueControlBitintheAxisOperatingOutputMemoryAreas.Therefore,donotturnthesebitsONorOFFuntiltheoperationiscompleted.Forthesamereason,donotusethesebitsforcoiloutputs(OUTcommands).
Note:
Forcalculationofbitaddresses,thesebitsarereferencedinthisFBinthefirstexecutionofeachinstance,andwhenchanging"UnitNo.(UnitNo)","AxisNo.(Axis)"oftheinputvariableandset"Start(Execute)".
Applicationexample
TurningtheStartTriggerONfromOFFwilloperatetheServomotor(axis1)connectedtothePositionControlUnitwithaunitnumber0usingtheTorqueControlcommand.
UnitNo.:0
CPU NCF
Servomotor
Axis1
StartTrigger BitB BitC BitD BitABitA
Sample
AlwaysON(P_On) _NCF040_TorqueControl_REAL(BOOL) (BOOL)
EN ENO
UnitNo. (INT) (BOOL) Torquecommandcompletedflag
&0 UnitNo Done BitB
AxisNo. (INT) (BOOL) Abort
&1 Axis CommandAborted BitC
Start (BOOL) (BOOL) Errorflag
BitA Execute Error BitD
Torquecommandvalue (REAL) (WORD) Errorcode
+50.000 Torque ErrorID D0
Speedlimit (REAL)
+20.000 Velocity
Relatedmanuals
PositionControlUnitsOPERATIONMANUAL(W426-E1)10-6TorqueControl
12-4ErrorCodes
VariableTablesInputVariables
Name
Variablename
Datatype
Default
Range
Description
EN
EN
BOOL
1(ON):FBstarted
0(OFF):FBnotstarted.
UnitNo.
UnitNo
INT
&0
&0to&15
Specifytheunitnumber.
AxisNo.
Axis
INT
&1
&1to&16
Specifytheaxisnumber.
Start
Execute
BOOL
0(OFF)
:Startsthespeedcontrol.
Torquecommandvalue
Torque
REAL
+0.0
-199.999to
+199.999
Specifythetargettorque.
Theunitis%ofthemomentarymaxtorqueofthemotorbeingused.
ChangingthevaluewhilethisFBisinoperationwillchangetheactualtorquecommandvalue.
Speedlimit
Velocity
REAL
+0.0
+0.0to
+100.000
Specifythespeedlimit.
Theunitis%oftheumspeedofthemotorbeingused.
ThisvaluecanbeusedasSpeedlimitvalueduringtorquecontrolwiththesettingofServoParameter.W-Series:Pn002.1SpeedCommandInput
ChangeinParameterFunctionSelectionApplicationSwitch2
G-Series:Pn05BSpeedlimitselectionRefertothemanualwrittenontheRelatedManualsforthedetails.
OutputVariables
Name
Variablename
Datatype
Range
Description
ENO
ENO
BOOL
1(ON):FBoperatingnormally
0(OFF):FBnotoperatingnormally
・FBnotstarted
・Inputvariableoutoftherange
・FBendedwitherror
・CommonParameterscouldnotberead
Torquecommandcompletedflag
Done
BOOL
TurnsONwhenthetorquecommandhasbeenaccepted.
Abort
CommandAborted
BOOL
1(ON):Aborted
Itwillbeabortedwhenanyofthefollowingconditionsismetduringoperation
・TurnsONwhentheotherMovecommanddone(DuplicateMove).
・StoppedwithDeclerationStoporEmergencyStop.
・ExecutedServoUnlock,DeviationCounterResetonanoperatingaxis.
・AttemptedtoexecuteFBwhileServoUnlock,DecelerationStop,EmergencyStoporDeviationCounterResetBitisON.
・DetectedtheStopExecutionFlagisON.
・TheTorqueControlBitischangedbytheotherFBduringTorqueControlinoperation.
Errorflag
Error
BOOL
TurnsONwhenanerrorhasoccurredintheFB.
Errorcode
ErrorID
WORD
ReturnstheerrorcodewhenanerrorhasoccurredintheFB.RefertotheRelatedManualsfordetailsonerrors.
Acodeof#0000w
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 师德标兵主要事迹(5篇)
- 2025年山东威海乳山卫生健康局事业单位招聘工作人员80人历年管理单位笔试遴选500模拟题附带答案详解
- 2025年山东体育学院招聘工作人员2人管理单位笔试遴选500模拟题附带答案详解
- 2025年宜春市上高县敖山镇农村敬老院院长招考管理单位笔试遴选500模拟题附带答案详解
- 2025年安徽黄山歙县国家税务局招聘工作人员历年管理单位笔试遴选500模拟题附带答案详解
- 2025年安徽黄山市屯溪区教育局机关招聘编外聘用工作人员历年管理单位笔试遴选500模拟题附带答案详解
- 物理秒表的课程设计
- 2025-2030年中国开水炉市场发展展望与投资策略建议报告
- 2025-2030年中国大飞机行业市场发展现状及前景趋势分析报告
- 2025-2030年中国冷光源行业竞争格局及投资发展战略研究报告
- 消防部队干部竞争上岗答辩题1
- 增服叶酸预防神经管缺陷理论知识考核试题及答案
- 施工现场临水施工方案完整
- 单证管理岗工作总结与计划
- 人教版九年级上册数学 21.3 实际问题与一元二次方程(传播问题)专题练习(Word版含答案)
- 安全安全隐患整改通知单及回复
- GB∕T 799-2020 地脚螺栓-行业标准
- “僵尸型”社会组织注销登记表
- 田径活动记录第一学期记录
- CDI-EM60系列变频调速器使用说明书
- 【汇总】高二政治选择性必修三(统编版) 重点知识点汇总
评论
0/150
提交评论