Description
BM_MoveAbsoluteInit reads the mode (parameter 110.2) of the controller in order to forward a setting information of this controller parameter to BM_MoveAbsolute, so that this parameter setting does not drop away during the activation of BM_MoveRelative.
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_MoveRelative executes a controlled absolute positioning originating from the positioning actual value, the parameter 118.2 by BM_MoveAbsolute bit 4 (start the positioning of start bit in the control word bit 4) is set to 1. If there is no information of BM_MoveAbsoluteInit the other bits of this parameter are set to 0, as well.
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 (see diagram 1). If the input Execute = 1 the command is executed, the result DONE = 1. Done is reset if the input Execute = 0. (see diagram 2)
Diagram of the edge-sensitive execution:
Diagram 1:
Diagram 2:
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_MoveAbsoluteInit" 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.
FALSE: No execution.
Output Done:
TRUE
= the command was successfully executed.
FALSE = Command is activated or not possible.
Output Busy:
TRUE:
the service communication for the Read/write parameter is activated or the
target positioning was not reached yet during a started positioning.
FALSE: Not activated.
Output
CommandAborted:
No function
Output Error:
TRUE: There is an error at service communication of Read/write parameter. Information to ErrorID is valid and for error information refer to S7 description.
FALSE: 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).