BM_VelocityInit

 

 

Description

Das BM_VelocityInit reads the mode (parameter 110.2) of the controller in order to forward a setting information of this controller parameter to BM_Velocity, so that this parameter setting does not drop away during the activation of BM-Velocity.

Parameter input

Data type

Description

Execute

BOOL

Edge-sensitive execution

 

Parameter output

Data type

Description

Done

BOOL

Successfully

Busy

BOOL

Parameter read/write active

CommandAborted

BOOL

Without function

Error

BOOL

Parameter read/write error; error ID valid

ErrorID

DWORD

Communication Error ID Siemens error list

 

 

Parameter input and output

Data type

Description

Axis

UDT

BM Motion Control axis variable

 

Description

The command BM_Velocity carries out a speed selection, the parameter 110.2 by BM_Velocity bit 5 to 1 and bit 4 to 0. If there is no information of BM_Velocity Init then the other bits of this parameter are set to 0.

Edge-sensitive version:

In order to execute the command the input Execute can be TRUE for one cycle. Then the command is executed, the result Done is signaled for one cycle, only. If the input Execute = 1 the command is executed, the result DONE = 1. Done is reset if the input Execute = 0.

 

Diagram of the edge-sensitive execution:

 

Status control:

Command is not supposed to be activated at all "BM".AXIS[x].DRIVE.BM_AXIS_STATUS.ParmRW_Active =1, Reset error by BM_Reset.

Recommended task:  OB1.

Note:


A command from "BM_VelocityInit” must not be activated before a command from another function block has been not successfully executed.

If an error occurs during the command execution, the error must be reset with “BM_Reset”. Function block command will be executed successfully at

"BM" .AXIS [x] .DRIVE.BM_AXIS_STATUS.ParmRW_Active = 0.

 

Input Execute:

TRUE: Edge-sensitive execution.

 

Output Done:

TRUE: The command was successfully executed.

FALSE: Not activated.

Output Busy:

TRUE:  The service communication for the Read/write parameter is activated.

FALSE: Not activated.

Output CommandAborted: is not activated.

Output Error:

TRUE: There is an error at service communication for the Read/write parameter. Information to ErrorID is valid and Error information refer to S7 description.

FALSE: There is no error.

Output ErrorID:

The information of service communication error (for detailed information refer to S7 description)

 

In and output Axis:

Symbolic BM Motion control axis variable of the UDT type.

During the programming with the data component DB5 (symbolic BM“) it must be written with the following symbol text: "BM".AXIS[x] (x is the drive axis number).