下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
_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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(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ǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年高中浙江英語試卷及答案
- 易考技術(shù)崗考試題及答案
- 短期租賃合同范本
- 飾品代理產(chǎn)品合同范本
- 專利委托服務(wù)合同范本
- 承包種植煙草合同范本
- 酒店包月房合同范本
- 德州勞動(dòng)合同范本
- 市場用地出租合同范本
- 單包勞務(wù)合同范本
- 切爾諾貝利核電站事故工程倫理分析
- 初中地理七年級上冊第七章第四節(jié)俄羅斯
- 法院起訴收款賬戶確認(rèn)書范本
- 課堂觀察與評價(jià)的基本方法課件
- 私募基金內(nèi)部人員交易管理制度模版
- 針對低層次學(xué)生的高考英語復(fù)習(xí)提分有效策略 高三英語復(fù)習(xí)備考講座
- (完整)《走遍德國》配套練習(xí)答案
- 考研準(zhǔn)考證模板word
- 周練習(xí)15- 牛津譯林版八年級英語上冊
- 電力電纜基礎(chǔ)知識(shí)課件
- 代理記賬申請表
評論
0/150
提交評論