MC_BR_EventMoveVelocity

<< 点击显示目录 >>

主页  轴控开发使用手册 > ACP10/ARNC0帮助信息 > ACP10_MC运动库 > 分类的功能块 > 基础运动 >

MC_BR_EventMoveVelocity

这个功能块在驱动器上发生事件后,以指定的速度和指定的方向执行一个受控的运动。与从控制器启动一个运动相比,这可以导致非常快的反应。

使用要求

SG3/SGC目标系统的功能块名称 MC_036BR_EventMoveVelocity

允许启用该功能块的PLCopen轴状态

静止状态

离散运动

连续运动

同步运动 (V2.151及以上版本)

功能块

mc_br_eventmovevelocity

Parameter

I/O

Parameter

Data type

Description

IN

Axis

UDINT

轴对象引用

IN

Execute

BOOL

Execution of the function block begins on a rising edge of this input.

IN

EventInput

MC_BR_EVINPUT_REF

Input used as the event source.

IN

Velocity

REAL

Maximum velocity [PLCopen units/s]

IN

Acceleration

REAL

Maximum acceleration [PLCopen units/s²]

IN

Deceleration

REAL

Maximum deceleration [PLCopen units/s²]

IN

Direction

USINT

Direction of movement:

mcPOSITIVE_DIR ... 0

mcNEGATIVE_DIR ... 1

mcCURRENT_DIR ... 2

IN

Mode

UINT

Function block operation:

mcONCE ... 1

mcCYCLIC_ALL_EVENTS ... 3

IN

VelocityParID

UINT

ParID from which the velocity is read (axis units!)

OUT

InVelocity

BOOL

Specified velocity reached

OUT

Busy

BOOL

The function block is active and must continue to be called.

OUT

CommandAborted

BOOL

Function block aborted by another function block

OUT

Error

BOOL

Error during execution

OUT

ErrorID

UINT

错误代码

OUT

WaitingForEvent

BOOL

Waiting for the event.

Table: Parameter MC_BR_EventMoveVelocity

MC_BR_EVINPUT_REF data type

Parameter

Data type

Description

EventSourceParID

USINT

ACOPOS ParID as the event source (ACP10PAR_LOGIC_VALUE+0, ACP10PAR_STAT_TRIGGER1, etc.)

Edge

USINT

Edge selection for the trigger event:

ncP_EDGE: Changes the value of the ACOPOS ParID from 0 to 0

ncN_EDGE: Changes the value of the ACOPOS ParID from 0 to 0

Topics in this section:

Description of function

Function block modes

Required resources

Additional information

Error numbers