说明分析案例dint_第1页
说明分析案例dint_第2页
说明分析案例dint_第3页
全文预览已结束

付费下载

下载本文档

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

文档简介

_N

U011_MoveAbsolute_DINT(

PAGE

1

/3)

N

U

MoveAbsolute(DINT):_NU011_MoveAbsolute_DINT

011

Basic

function

Executespositioningusingabsolutemovement.

Symbol

AlwaysON(P_On) _N U011_MoveAbsolute_DINT(BOOL) (BOOL)

EN ENO

AxisNo. (INT) (BOOL) PositioningcompletedAxis Done

Start (BOOL) (BOOL) Errorflag

Execute Error Errorcode

Posiioncommand (DINT) (WORD) (Maybeomitted)

Position ErrorID

Speedcommand (DINT)

VelocityAcceleraionrate (INT)

AcceleraionDecelerationrate (INT)

DecelerationPulseoutputmethod (INT)

OutPulseSelect

Filename

Lib\FBL\omronlib\PositionController\NU(CJ1MCPU2x)\_NU011_MoveAbsolute_DINT10.cxf

Applicable

models

CPUUnit

CJ1M-CPU21/22/23Unitversion3.0orhigherCP1L-***DT-*

CP1L-***DT1-*

CX-Programmer

Version5.0orhigher

Conditionsforusage

None

Functiondescription

ExecutespositioningontheaxisofthespecifiedAxisNo.(Axis)withthespecifiedPositioncommand(Position),Speedcommand(Velocity),Accelerationrate(Acceleration),andDecelerationrate(Deceleration)whenStart(Execute)isturnedON(usingtheselectedPulseoutputmethod).

ThePositioningcompleted(Done)isturnedONwhenpositioningbythisFBiscompleted(i.e.,targetpositionreached).

TheErrorflag(Error)willbeturnedONandErrorcode(ErrorID)willbeoutputwhenanerrorrelatedtothisFBoccurs.

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

EN ON

OFF

ENO ONOFF

Execute ONOFF

Speed

Commandspeed

Done ONOFF

Error ONOFF

KindofFBdefinition

ConnectAlwaysONtype

ConnecttheENinputtotheAlwaysONFlag(P_ON).Thesameinstancecannotbeusedintwoormoreces.

FB

precautions

WhenusingthePulseoutput0and1simultaneously,usethesamePulseoutputmethodforthem.

ENinputcondition

ConnecttheENinputtotheAlwaysONFlag(P_ON).

IfadifferenttypeofbitisconnectedtoEN,theFBoutputswillbemaintainedwhentheconnectedbitisturnedOFF.

Applicationexample

TurningthestarttriggerfromOFFtoONwillstartoperatingtheServomotorconnectedtothePulseoutput0ontheCJ1M-CPUUnitwithabsolutemovement.

CJ1M-

CPU2x Pulseoutput0

Servomotor

Starttrigger BitB BitC BitA

BitA

AlwaysON(P_On) _N U011_MoveAbsolute_DINT(BOOL) (BOOL)

EN ENO

AxisNo. Positioningcompleted

Pulseoutput0&0 (INT) (BOOL) BitB

Start Axis Done Errorflag

BitA (BOOL) (BOOL) BitC

Positioncommand Execute Error Errorcode

200000pulses (DINT) (WORD) (Maybeomitted)

Speedcommand Position ErrorID

50000Hz&50000 (DINT)

Accelerationrate Velocity100Hz/4ms&100 (INT)

Decelerationrate Acceleration

100Hz/4ms&100 (INT)

Pulseoutputmethod DecelerationCW/CCWoutput&0 (INT)

OutPulseSelect

Relatedmanuals

CJ1MCPUUnitsOperationManual(W395)5-7PULSEOUTPUT:PLS2(887)

6-3-3OriginSearchErrorProcessing(PulseOutputStopErrorCodes)SYSMASeriesCP1LCPUUnitOperationManual(W462)

VariableTableInputVariables

Name

Variablename

Datatype

Default

Range

Description

EN

EN

BOOL

1(ON):StartsFB

0(OFF):DoesnotstartFB

AxisNo.

Axis

INT

&0

&0to&1

&0:Pulseoutput0&1:Pulseoutput1

Start

Execute

BOOL

0(OFF)

:Startsabsolutemovement

Positioncommand

Position

DINT

+0

-2,147,483,648

to

+2,147,483,647

Specifiesthetargetposition.Unit:Pulses

Speedcommand

Velocity

DINT

&1

&1to&100000

Specifiesthetargetspeed.Unit:Hz

Accelerationrate

Acceleration

INT

&1

&1to&65535

Specifiestheaccelerationrate.

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

Decelerationrate

Deceleration

INT

&1

&1to&65535

Specifiesthedecelerationrate.

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

Pulse outputmethod

OutPulseSelect

INT

&0

&0to&1

&0:CW/CCWoutput

&1:Pulse+directionoutput

OutputVariables

Name

Variablename

Datatype

Range

Description

ENO

ENO

BOOL

1(ON):FBoperatingnormally0(OFF):FBnotoperatingnormally

Positioningcompleted

Done

BOOL

1(ON)indicatesthatpositioninghasbeencompleted.

Errorflag

Error

BOOL

1(ON)indicatesthatanerrorhasoccurredintheFB.

Errorcode

(Maybeomitted)

ErrorID

WORD

TheerrorcodeoftheerroroccurredintheFBwillbeoutput.Fordetailsoftheerrors,refertothesectionsofthemanuallistedintheRelatedmanualsabove.WhenUnitNo.orAxis.No.isoutoftherange,#0000willbe

output.

RevisionHistory

Version

Date

Contents

1.00

2005.2.

Originalproduction

Note

Thismanualisareferencethatexinst

温馨提示

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

评论

0/150

提交评论