ST_Vehicle

 

ST_Vehicle - General Information

Overview

 Type:

Data structure

Available as of:

V1.0.4.0

Inherits from:

-

Description

The structure contains the data for a vehicle on the transport system.

Structure Elements

Variable

Data type

Description

i_xExecute

BOOL

A positive edge orders the function block to send the command specified in the input i_etCommand to the vehicle which is controlled by this function block.

If the inputi_xExecute (FB itself, iq_aST_Path and iq_aST_Vehicle) is set = TRUE before the FB is enabled and the FB will be turned on, the FB is detecting this as a rising edge. This is the criteria to execute a command (status requests or movements).

Note: the setting i_xExecute = TRUE before enabling the function block is also considered a rising edge

i_etCommand

ET_VehicleCommand

The command which is send to the vehicle on a positive flank of i_xExecute.

i_iPidSet

INT

Number relating to predefined parameter sets for the PID-Controllers when moving a vehicle.

iq_stDestination

ST_VehicleDestination

Structure that contains the information to send a vehicle to a new destination.

iq_stCurrentPosition

ST_VehiclePosition

Structure that contains the information relating to the present position of the vehicle.

q_xValid

BOOL

TRUE: The vehicle is present on the transport system.

FALSE: The vehicle is not present on the linear transport system.

q_uiVehicleId

UINT

The ID of the vehicle as it was defined by the transport system on startup/ reset.

q_xBusy

BOOL

TRUE: The POU is executing the command.

FALSE: The POU is waiting for further commands.

q_xDone

BOOL

TRUE: The command has been executed.

FALSE: The command is being executed, or none has been issued yet.

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> diagnostic message

q_sMsg

STRING[80]

Event-triggered message which gives more detailed information on the diagnostic state.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

CommandExecution

42

The transport system controller reports that the command is being executed.

OK

CommandSuccessfullyCompleted

45

The transport system controller reports that the command has been successfully completed.

OK

WaitForCommand

36

Wait for a new command.

ExecutionAborted

EmergencyStopActive

46

The transport system controller reports that the vehicle is in state "Emergency Stop Active".

ExecutionAborted

InterlockActive

43

The transport system controller reports that the vehicle is in state "Interlock Active".

ExecutionAborted

MovementSuspended

44

The transport system controller reports that the vehicle is in state "Movement Suspended".

ExecutionAborted

ResetActive

40

Usage in ST_Path: The transport system controller reports that the path is in state "Reset Active". Usage in ST_Vehicle: The transport system controller reports that the vehicle is in state "Reset Active".

InputParameterInvalid

ParameterInvalid

51

The parameter is invalid.

InputParameterInvalid

PathIdInvalid

49

The ID of the path is invalid.

InputParameterInvalid

PositionOffPath

50

The position of the vehicle is off the path.

InputParameterInvalid

StationIdInvalid

48

The ID of the station is invalid.

UnexpectedProgramBehavior

PositionOffPath

50

The position of the vehicle is off the path.

UnexpectedProgramBehavior

StartupNotInitiatedOrCompleted

52

The transport system controller reports that the vehicle is in state "Startup Not Initiated Or Completed".

UnexpectedProgramBehavior

VehicleIdInvalid

47

The ID of the vehicle is invalid.

CommandExecution

Enumeration name:

CommandExecution

Enumeration value:

42

Description:

The transport system controller reports that the command is being executed.

The command is being executed.

CommandSuccessfullyCompleted

Enumeration name:

CommandSuccessfullyCompleted

Enumeration value:

45

Description:

The transport system controller reports that the command has been successfully completed.

The command has been successfully completed.

EmergencyStopActive

Enumeration name:

EmergencyStopActive

Enumeration value:

46

Description:

The transport system controller reports that the vehicle is in state "Emergency Stop Active".

Issue

Cause

Solution

-

Status message from the transport system controller.

For further information on this status, refer to the MagneMotion documentation.

InterlockActive

Enumeration name:

InterlockActive

Enumeration value:

43

Description:

The transport system controller reports that the vehicle is in state "Interlock Active".

Issue

Cause

Solution

-

Status message from the transport system controller.

For further information on this status, refer to the MagneMotion documentation.

MovementSuspended

Enumeration name:

MovementSuspended

Enumeration value:

44

Description:

The transport system controller reports that the vehicle is in state "Movement Suspended".

Issue

Cause

Solution

-

Status message from the transport system controller.

For further information on this status, refer to the MagneMotion documentation.

ParameterInvalid

Enumeration name:

ParameterInvalid

Enumeration value:

51

Description:

The parameter is invalid.

One or more of the following parameters are invalid:

Acceleration, velocity, movement direction or path.

PathIdInvalid

Enumeration name:

PathIdInvalid

Enumeration value:

49

Description:

The ID of the path is invalid.

Verify whether the destination path ID is valid.

PositionOffPath

Enumeration name:

PositionOffPath

Enumeration value:

50

Description:

The position of the vehicle is off the path.

Verify whether the destination for moving the vehicle exists on the destination path.

ResetActive

Enumeration name:

ResetActive

Enumeration value:

40

Description:

Usage in ST_Path: The transport system controller reports that the path is in state "Reset Active". Usage in ST_Vehicle: The transport system controller reports that the vehicle is in state "Reset Active".

Issue

Cause

Solution

-

Status message from the transport system controller.

For further information on this status, refer to the MagneMotion documentation.

StartupNotInitiatedOrCompleted

Enumeration name:

StartupNotInitiatedOrCompleted

Enumeration value:

52

Description:

The transport system controller reports that the vehicle is in state "Startup Not Initiated Or Completed".

Issue

Cause

Solution

-

Status message from the transport system controller.

For further information on this status, refer to the MagneMotion documentation.

StationIdInvalid

Enumeration name:

StationIdInvalid

Enumeration value:

48

Description:

The ID of the station is invalid.

Verify whether the ID of the destination station is valid.

VehicleIdInvalid

Enumeration name:

VehicleIdInvalid

Enumeration value:

47

Description:

The ID of the vehicle is invalid.

Issue

Cause

Solution

-

There is no vehicle with a corresponding ID.

Verify whether a vehicle with a related ID exists.

WaitForCommand

Enumeration name:

WaitForCommand

Enumeration value:

36

Description:

Wait for a new command.

Wait for a new command.