This structure is used to configure a station.
Also see Stations
Variable |
Data type |
Description |
---|---|---|
etStationType |
This indicates the type of station and thus how a train is moved within the station and which variables apply. See ET_StationType |
|
lrStationPos |
LREAL |
Returns the position of the station. The train stops and waits for a start signal at this position. Offset values are specified relative to this position. |
lrTrainsDistance |
LREAL |
Specifies the distance between two trains that are located in the station. (Value range: > 0.0) |
uiNumOfSteps |
UINT |
Returns the number of steps that a train runs in this station. |
alrSteps |
ARRAY[0..Gc_uiMaxNumberOfSteps] OF LREAL |
Returns the size of the individual steps that a train runs in this station. If alrSteps[0] is used, this size applies to all steps and therefore the other entries in this array are ignored. As an alternative, uiNumOfSteps values have to be set in the array. |
auiProductsPerStep |
ARRAY[0..Gc_uiMaxNumberOfSteps] OF UINT |
Using this array, you can define how many products have to be detected in order to make a step. The value for each step can be set separately. If auiProductsPerStep[0] is used, this value applies for all steps. The numbering is identical to alrSteps.
NOTE: This feature is only available for Indexed Stations (ET_StationType.Indexed) when using Touchprobes for starting the trains.
|
axSkipSteps |
ARRAY[1..Gc_uiMaxNumberOfSteps] OF BOOL |
Individual steps in a station can be skipped using this array. The numbering is identical to alrSteps.
NOTE: This feature is only available for an Indexed Station (ET_StationType.Indexed). Note that the last step cannot be skipped.
|
ifTpStart |
IF_TouchProbe |
At ifTpStart, a Touchprobe input must be transferred from the controller configuration that registers the product. |
xSensorEdge |
BOOL |
Specifies the edge from ifTouchProbe that the POU reacts to. |
xStart |
BOOL |
Start signal for the simulation mode that can be used independently from ifTouchProbe. A reaction is made to the rising edge of the bit. |
etStartLock |
ifTouchProbe and xStart can both be locked via this enumeration. Therefore, only certain types of start signals are permitted. See ET_StartLock |
|
lrStartAcceptOffset |
LREAL |
Specifies from which position a train accepts start signals and executes a step. The value only applies in case the train has not yet positioned itself in the waiting line. The value is relative to the lrStationPos. |
sName |
STRING[20] |
A name for the station can be defined here. The name is used when error messages occur. If a name has not been defined, the number of the station is used. |
lrTrainTimeOut |
LREAL |
The value lrTrainTimeOut specifies the limit distance between the rear edge of a train and lrStationPos at which the bit xTrainTimeOut is set to TRUE. The parameter can be used to help prevent the situation where there are no trains located in a station. See ST_StationFeedBack. |
lrWarningDistance |
LREAL |
The value lrWarningDistance specifies the distance between the front edge of the active train in a station and the rear edge of the train running upfront, from the point where xWarningDistance is set to TRUE. See ST_StationFeedBack. |
lrStopDistance |
LREAL |
The value lrStopDistance specifies the distance between the front edge of the active train in a station and the rear edge of the train running upfront, from the point where xStopDistance is set to TRUE. See ST_StationFeedBack. |
lrAdditionalStep |
LREAL |
The value defines the distance, which a fully loaded train runs with loaded velocity after the last start, before it changes to decelerate velocity. If the rear edge of a train reaches lrStationPos + lrAdditionalStep, the train departs from the station and is transferred to the next station. If -1 is given as value, the train starts directly with the stDepartureMove parameters. In this case, the function ensures that the acceleration part of the movement is done with step parameters, and only after reaching step velocity, departure movement parameters are used to leave the station. |
xStationLock |
BOOL |
Not available. |
lrStationLockOffset |
LREAL |
Not available. |
xLeaveStation |
BOOL |
With a raising edge on this bit, the active train departs from the station immediately and is handed over to the next station. The next train runs to lrStationPos immediately and waits for the next start. |
stIndexed |
The structure contains the parameters for the indexed mode. It is used when etStationType is set to Indexed. See ST_Indexed. |
|
stSynchron |
The structure contains the parameters for the synchronous mode. It is used when etStationType is set to Synchronous mode. See ST_Synchron. |
|
stPassBy |
The structure contains the parameters for the run-through mode. It is used when etStationType is set to PassBy. See ST_PassBy. |