BM_ReadAxisStatus

Description

This function is used for BM Motion Control to read the extended axis status.

 

Parameter Input

Data Type

Description

Execute

BOOL

Increasing edge begins reading the extended status of the axis

 

Parameter Output

Data Type

Description

Done

BOOL

Reading of the extended status without errors is completed

Busy

BOOL

The reading of the extended status still is busy

Error

BOOL

Parameter read/write error; ErrorID is valid

ErrorID

DWORD

Communication ErrorID-Siemens error list

AxisError

BOOL

Axis reports an error

AxisWarning

BOOL

Axis reports a warning

PulseEnabelInputOk

BOOL

Digital input pulse enable is closed

QickStopInputOk

BOOL

Digital input quickstop is closed

SafetyRelayOk

BOOL

Safety relay is without errors

DC_LinkOk

BOOL

DC-link is without errors

ReadyForUse

BOOL

Axis reports Ready for operation

 

Parameter

Input and output

Data Type

Description

Axis

UDT

BM Motion Control Axis Variable

 

Call-up BM_ReadStatus
From status: All states.

Recommended task is: OB1.

Edge-sensitive version:
Rising edge at Execute begins to read the extended status of the drive.
If reading was completed without errors the output Done is set to TRUE and the status information at the outputs are valid.

Note:

A command from "BM_ReadAxisStatus" 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:

If the edge rises at Execute the reading of the status begins.

 

Output Done:

TRUE: Reading status completed without errors. The output values are valid.

FALSE: Not active.

Output Busy:

TRUE: The reading of the status still is active.

FALSE: Not active.

Output Error:

TRUE: An error at Service Communication for the Parameter Read/Write is existent.

Refer to S7 Description for information on the valid ErrorID and the error information.

FALSE: No error active.

Output ErrorID:

The information of Service Communication Error (more details – refer to S7 description)

Output AxisError:

TRUE: The axis reports errors.

FALSE: No error.

Output AxisWarning:

TRUE: The axis reports a warning.

FALSE: No warning.

Output PulseEnabelInputOk:

TRUE: Digital input for pulse enable is closed.

FALSE: Digital input for pulse enable is not closed.

Output QuickStopInputOk:

TRUE: Digital input for quickstop is closed.
FALSE: Digital input for quickstop is not closed

Output SafetyRelayOk:

TRUE: Safety relay is without errors or not existent.
FALSE: Safety relay error.

Output DC_LinkOk:

TRUE: DC-link is loaded.
FALSE: DC-link is not loaded.

Output ReadyForUse:

TRUE: Axis is ready for operation.

FALSE: Axis is not ready for operation.

 

Input and output Axis:

UDT type symbolic BM Motion Control Axis Variable.

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