文稿教案成果real_第1页
文稿教案成果real_第2页
文稿教案成果real_第3页
全文预览已结束

付费下载

下载本文档

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

文档简介

_N

1H030_MoveVelocity_REAL(

PAGE

1

/

PAGE

1

)

N

1H

SpeedControl(REAL):_N1H030_MoveVelocity_REAL

030

BasicfunctionSymbol

Controlsthespeed.

_N 1H030_MoveVelocity_REAL

AlwaysON(P_On)

AxisNo.

StartSpeedcommandAccelerationrate

(BOOL)EN(INT)

Axis(BOOL)

Execute(REAL)

Velocity(REAL)

Acceleration(INT)

(BOOL)ENO(BOOL)

InVelocity(BOOL)

Busy(BOOL)

Error(WORD)

ErrorID

SpeedreachedBusyflag

ErrorflagErrorcode

(Maybeomitted)

Pulseoutputmehod OutPulseSelect

FilenameApplicablemodels

LanguagesConditionsforusageFunctiondescription

Lib\FBL\omronlib\PositionController\N U(CP1H)\_N 1H030_MoveVelocity_REAL11.cxfCPUUnit CP1H-(XA40DT-D/XA40DT1-D/X40DT-D/X40DT1-D/Y20DT-D)

ThisFBcannotbeusedwithCP1LPLCs.UsetheN U(CJ1MCPU2x)forCP1LPLCs.

CX-Programmer Version6.1orhigherLadder

None

ExecutesspeedcontrolfortheoutputspecifiedwiththeAxisNo.(Axis)usingtheSpeedcommand(Velocity)whenStart(Execute)isturnedON.

TheSpeedreached(InVelocity)willbeturnedONoncethespeedreachesthetargetspeedspecifiedinthisFB.Ifthespeedcontrolisinterruptedbyadecelerationstopcausedbyanotherinstanceorerror,theSpeedreached(InVelocity)willbereset.

TheErrorflag(Error)willbeturnedONandErrorcode(ErrorID)willbeoutputwhenanerrorrelatedtothisFBoccurs.

Thesestatuses,Speedreached(InVelocity)/Errorflag(Error)/Errorcode(ErrorID),willberesetwhenStart(Execute)isturnedOFF.IfStart(Execute)wasturnedOFFbeforepositioningiscompleted,thestatuswillbesetforatleastonecyclewhenacorrespondingconditionoccurs.

ENENO

Execute

ONOFF

ONOFF

ON

OFF

Speed

Speedcommand

InVelocitON

y OFF

Busy ON

OFF

Error

ON

OFF

KindofFBdefinition

FB

precautions

ENinputcondition

RestrictionsOther

ConnectAlwaysONtype

ConnecttheENinputtotheAlwaysONFlag(P_ON).Thesameinstancecannotbeusedintwoormoreces.

WhenusingthePulseoutput0and1simultaneously,usethesamePulseoutputmethodforthem.However,themethodforthePulseoutput2and3donotneedtobesame.

Whenspeedischangedbytheothercommandbeforethespeedreaching,thisFBwilloutputanerror.

TurningONtheinputtotheStart(Execute)duringspeedcontrolwillcausemultistart,whichthenleadstospeedcontrolwiththespeedsetinSpeedcommand(Velocity).

Whenalreadyinspeedcontroloperation,directionspecification(signoftheSpeedcommand(Velocity))willbeignoredandonlythespeedwillbechanged.Toreversethedirectionoftheoperation,stoptheoperationonceandexecutethespeedcommandwiththeoppositedirectionspecified.

ConnecttheENinputtotheAlwaysONFlag(P_ON).

IfadifferenttypeofbitisconnectedtoEN,theFBoutputswillbemaintainedwhentheconnectedbitisturnedOFF.

Duringpositioningoperation,thisFBcannotbeexecuted.

DuringoperationsbyACC,discrete,commands,thisFBcannotbeexecutedduringtheOriginSearchoperation.

Applicationexample

WhenthestarttriggerturnsfromOFFtoON,aspeedcontroloperationwillbeperformedtotheServomotorconnectedtothePulseoutput0ontheCP1HUnit.

CP1HUnit Pulseoutput0

Servomotor

Starttrigger BitB BitD BitA

BitA

_N 1H030_MoveVelocity_REAL

AlwaysON(P_On) (BOOL) (BOOL)EN ENO

AxisNo. (INT) (BOOL) Speedreached

Pulseoutput0&0 Axis InVelocity BitB

Start (BOOL) (BOOL) Busyflag

BitA Execute Busy BitC

Speedcommand (REAL) (BOOL) Errorflag

2,000Hz .0 Velocity Error BitD

Accelerationrate (REAL) (WORD) Errorcode50Hz/4msec+50.0 Acceleraion ErrorID (Maybeomitted)Pulseoutputmethod (INT)

CW/CCWoutput&0 OutPulseSelect

Relatedmanuals

SYSMA-seriesCP1HProgrbleControllersOperationManual(W450)5-3-8InstructionsUsedforPulseOutputs

5-3-5OriginSearchandOriginReturnFunctions(PulseOutputStopErrorCodes)

VariableTableInputVariables

Name

Variablename

Datatype

Default

Range

Description

EN

EN

BOOL

1(ON):StartsFB

0(OFF):DoesnotstartFB

AxisNo.

Axis

INT

&0

&0to&3

&0:Pulseoutput0&1:Pulseoutput1&2:Pulseoutput2

&3:Pulseoutput3

Start

Execute

BOOL

0(OFF)

:Startsspeedcontrol

Speedcommand

Velocity

REAL

+0.0

- .0

to

.

0

Specifiesthetargetspeed.Unit:Hz

Pleasereferto"LimitationofFunctionblockby

CombinationofCPUtypeandUnitVersion"fordetails.

Accelerationrate

Acceleration

REAL

+1.0

+1.0

to

.0

Specifiestheaccelerationrate.

Unit:Hz/4ms(Increase(Hz)infrequencyperPulsecontrolperiod(4ms))

Pulseoutput

method

OutPulseSelect

INT

&0

&0to&1

&0:CW/CCWoutput

&1:Pulse+directionoutput

OutputVariables

Name

Variablename

Datatype

Range

Description

ENO

ENO

BOOL

1(ON):FBoperatingnormally

0(OFF):FBnotoperatingnormally

Speedreached

InVelocity

BOOL

1(ON)indicatesthatthespeedhasreachedthetargetspeed.

Busyflag

Busy

BOOL

1(ON)indicatesthattheFBisinpregress.

Errorflag

Error

BOOL

1(ON)indicatesthatanerrorhasoccurredintheFB.

Errorcode

(Maybeomitted)

ErrorID

WORD

TheerrorcodeoftheerroroccurredintheFBwillbeoutput.Fordetailsoftheerrors,refertothesectionsofthe

manuallistedintheRelatedmanualsabove.WhenUnitNo.orAxis.No.isoutoftherange,#0000willbeoutput.

LimitationofFunctionblockbyCombinationofCPUtypeandUnitVersion

CPUType

UnitVersion

AxisNo.

RangeofFrequency

Description

XA/X

1.1

&0to&3

-100000.0to

.0

PleaseuseFunctionBlockVersion1.10orhigherwhenyousetvaluesthatare

温馨提示

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

最新文档

评论

0/150

提交评论