欧姆龙全系列编程软件cx one4 27 real_第1页
欧姆龙全系列编程软件cx one4 27 real_第2页
欧姆龙全系列编程软件cx one4 27 real_第3页
欧姆龙全系列编程软件cx one4 27 real_第4页
全文预览已结束

下载本文档

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

文档简介

_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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论