Parking Access System State machine

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.