MC_BR_Simulation

<< 点击显示目录 >>

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

MC_BR_Simulation

This function block can be used to enable or disable simulation mode for a drive.

V2.410及以上版本: This function block also offers the possibility to initialize and read the simulation mode.

If simulation mode is turned on, complete drive functionality is available without using the hardware interfaces. This mode makes it possible to test the parts of the application program that are hardware-independent with a drive without requiring that the hardware components (e.g. motor or encoder) be connected.

Information:

The functionality of digital inputs is enabled in simulation mode!

This affects the homing procedure (reference switches, hardware limit switches) and various movements (hardware limit switches, trigger inputs). The active levels of the inputs may have to be changed or the status of the digital inputs set to the necessary value with the force function.

Information:

This functionality is not available for virtual axes. If it is called for a virtual axis, the function block will return error 29235: The functionality is not available for the current axis type.

Requirements for use

Function block name for SG3/SGC target systems MC_042BR_Simulation

PLCopen axis states in which the function block is permitted to be enabled

"Command"

Function block can be used in axis state

mcSIMULATION_ON

Disabled

mcSIMULATION_OFF

Disabled

mcSIMULATION_INIT

Disabled

mcSIMULATION_INIT + mcSIMULATION_ON

Disabled

mcSIMULATION_ON + mcSET_GEN_ONLY

Disabled

mcSIMULATION_READ

All states, no effect on the axis state

Function block

mc_br_simulation

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

SimulationCommand

UINT

mcSIMULATION_ON ... Switch on simulation mode (prior to V2.410: mcMOTOR)

mcSIMULATION_ON + mcSET_GEN_ONLY ... Enable simulation mode with variant "Setpoint generation only" (V5.050及以上版本)

mcSIMULATION_OFF ... Disable simulation mode

mcSIMULATION_READ ... Read parameters of simulation mode from the drive (V2.410及以上版本)

mcSIMULATION_INIT ... Initialize parameters of simulation mode on the drive (V2.410及以上版本)

mcSIMULATION_INIT + mcSIMULATION_ON ... Initialize the parameters of simulation mode and then enable simulation mode (V2.410及以上版本)

OUT

Done

BOOL

Command executed

OUT

Busy

BOOL

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

OUT

Error

BOOL

Error during execution

OUT

ErrorID

UINT

Error numbers

Table: Parameter MC_BR_Simulation

Topics in this section:

"SimulationCommand" input

Error numbers