HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

Seeking help with example problem design for Zhejiang University Zhongkong ECS-100 program!

2018-05-25View Original

Thread Content

Achieve the basic functionality (no need to focus on details; practice with example problems*): On one reaction unit, there are 5 pneumatic on/off valves (tag numbers: k1 to k5). Without using the ST language, ensure that at most \"2 of these valves can be open at the same time\", with the remaining 3 valves staying closed in order to prevent pressure leakage. I have already achieved it using one method (see the attached diagram)! Do anyone have any more better, or more complex, designs? Also, can it be implemented using addition and subtraction blocks? I’m asking for help from all the experts! Thank you\ud83d\ude4f\ud83d\ude4f.
Reply #22024-05-28
If using the ST language, it can be done like this: create a variable to serve as a counter for opening the valve. Like A: A=0; IF K1 THEN A=A+1; END_IF; IF K2 THEN A=A+1; END_IF; IF K3 THEN A=A+1; END_IF; IF K4 THEN A=A+1; END_IF; IF K5 THEN A=A+1; END_IF; IF K6 THEN A=A+1; END_IF; IF A>=2 THEN B=ON; END_IF; Here, A is an unsigned INT, and B is a boolean variable. Each valve is equipped with two buttons, one for opening and one for closing. The on button sets the K value to ON, while the off button sets it to OFF. The on button activates the display/hide animation; if the B value is 1, the on button is hidden.

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.