VFSM: Intersection
VFSM type: Intersection(user vfsm)
The state machine Intersection realizes a standard traffic light algorithmus changing periodically green - yellow - red lights for crossing roads. This standard algorithm is in force if the sensor detects a vehicle on the Farm road, otherwise the Highway has the green light all the time.
The names of the states correspond to the light state, for instance: HGreen_FRed means the Highway has a green light and the Farm road has a red light.
Prefix: INT
IOid name: MyCmd
(type: CMD-IN)
IOid name: Ti_BothRed
(type: TI)
-->Virtual Input: Ti_BothRed_OVER
(OVER)
-->Virtual Output: Ti_BothRed_ResetStart
(ResetStart)
-->Virtual Output: Ti_BothRed_Stop
(Stop)
IOid name: Ti_Green
(type: TI)
-->Virtual Input: Ti_Green_OVER
(OVER)
-->Virtual Output: Ti_Green_ResetStart
(ResetStart)
-->Virtual Output: Ti_Green_Stop
(Stop)
IOid name: Ti_Init
(type: TI)
-->Virtual Input: Ti_Init_OVER
(OVER)
-->Virtual Output: Ti_Init_ResetStart
(ResetStart)
-->Virtual Output: Ti_Init_Stop
(Stop)
IOid name: Ti_Yellow
(type: TI)
-->Virtual Input: Ti_Yellow_OVER
(OVER)
-->Virtual Output: Ti_Yellow_ResetStart
(ResetStart)
-->Virtual Output: Ti_Yellow_Stop
(Stop)
IOid name: Di_Detector
(type: DI)
-->Virtual Input: Vehicle_DETECTED
(HIGH)
IOid name: Do_FarmroadGreen
(type: DO)
-->Virtual Output: FarmroadGreen_Off
(Low)
-->Virtual Output: FarmroadGreen_On
(High)
IOid name: Do_FarmroadRed
(type: DO)
-->Virtual Output: FarmroadRed_Off
(Low)
-->Virtual Output: FarmroadRed_On
(High)
IOid name: Do_FarmroadYellow
(type: DO)
-->Virtual Output: FarmroadYellow_Off
(Low)
-->Virtual Output: FarmroadYellow_On
(High)
IOid name: Do_HighwayGreen
(type: DO)
-->Virtual Output: HighwayGreen_Off
(Low)
-->Virtual Output: HighwayGreen_On
(High)
IOid name: Do_HighwayRed
(type: DO)
-->Virtual Output: HighwayRed_Off
(Low)
-->Virtual Output: HighwayRed_On
(High)
IOid name: Do_HighwayYellow
(type: DO)
-->Virtual Output: HighwayYellow_Off
(Low)
-->Virtual Output: HighwayYellow_On
(High)
State transition table, state '
Init
':
State transition table, state '
HYellow_FRed_Init
':
State transition table, state '
HGreen_FRed
':
State transition table, state '
HYellow_FRed
':
State transition table, state '
HRed_FRed1
':
State transition table, state '
HRed_FYellow1
':
State transition table, state '
HRed_FGreen
':
State transition table, state '
HRed_FYellow2
':
State transition table, state '
HRed_FRed2
':
State transition table, state '
HYellow_FRed2
':
Total number of states: 10
|