problem with my flowchart for automatic gates

2 views (last 30 days)
Hello everyone. Im writing from Italy. From 2 months I study matlab / simulink . I'm realizing an automatic gate . But I have a problem on the declaration of variables . Enclose the flowchart.
The finite state machine to be developed will take care of the system control logic. Such a system acquiring the logical state of external signals, such as photocells and command button, provides control signals for the low control of enslavement of motion. input signals supplied by sensors: • Fc1 - photocell positioned outside the gate. It is assumed that Fc1 give a logic high signal (1) when an obstacle interrupts the optical flow, conversely provides a low logic state (0). • Fc2 - photocell positioned inside the gate. It is assumed that Fc2 give a logic high signal (1) when an obstacle interrupts the optical flow, conversely provides a low logic state (0). • Ang - Carrier of the angular position of the gate. It is assumed that an encoder is mounted on each electric motor and thus can be traced back to the angular position of each single gate leaf. external control signals (input to the state machine): • P - Push Button. The pressure P causes the gate to open. In particular depending on the state in which there is the P gate can result in the closure of the gate also the block of the same. It is assumed that P gives a logic high signal (1) when it is pressed, conversely provides a low logic state (0) Output signals: • mA - position reference for the motor A. • mB - position reference for the motor A.
They distinguish five states * : • AttesaClose - the gate is closed and waiting for your input ; • Openness - The gate is opening ( moves before the leaf A and then B ) • AttesaOpen - the gate is open and waiting for the next closing • Closing - The gate is closing ( moves before the door B and then A) • Block - The gate is locked in a given position different from the Open or Close
I hope you help me to finish the model simulink :)

Answers (0)

Categories

Find more on Stateflow in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!