The passing process of a car is:
- The landing lever is in the falling state and the traffic light is red.
- The car enters the access control system and the entry gate sensor value becomes true.
- Control the ascent of the landing bar until the position sensor reaches the rising position.
- The traffic light is green.
- The car leaves the access control and triggers the car gate sensor value to true.
- Control the drop lever down until the landing pole position sensor reaches the falling position.
- The traffic light turns to a red light.
The state machine of the control system described includes:
- All States of the state machine
- External events received by the state machine
- Action generated by the state machine
- All state transitions of a State machine: (original state, new state, trigger condition, generating action)
State machine Status Analysis:
According to the working conditions and form, the state machine has a total of four kinds of forms: the bar stops at the bottom, the rod from bottom to top, the rod stops at the top, the rod from the top down. These four kinds of working states are cycled.
(1=true , 0=false )
State |
On the sensor |
Under sensor |
Entry Gate |
Exit gate |
Stop down there. |
0 |
1 |
0 |
0 |
From bottom to top |
0 |
0 |
1 |
0 |
Stop on top. |
1 |
0 |
0 |
0 |
From bottom to top |
0 |
0 |
0 |
1 |
The external events that are received by the state machine are:
1. Entry Brake Sensor
2. Gate Sensor
3. Sensor on the landing pole
4. Sensor under the landing lever
Action of the state machine:
1. Switching of traffic lights
2. Lifting and landing lever
Relocation of all states:
Parking Access System State machine