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

Zhejiang University Zhongkong ECS-100 프로그램 예제 설계 도움!

2018-05-25View Original

Thread Content

일반적인 기능을 이해하세요. (세부사항은 걱정하지 않으셔도 됩니다.)*):반응 장치에는 5개의 공압 스위치 밸브(위치 번호 1)가 있습니다.:k1 ~ k5), (ST 언어 없음) 구현:5개 밸브 중 "최대 2개 밸브만 동시에 열릴 수 있다"고 나머지 3개 밸브는 압력 방출을 방지하기 위해 닫혀 있다.한 가지 방법으로 구현해봤습니다(첨부된 사진 참조)!더 좋고, 더 좋고, 더 복잡한 디자인이 있나요?또, 덧셈, 뺄셈 펑션블록을 이용해서 구현할 수도 있나요?신들에게 도움을 요청하세요!감사합니다\ud83d\ude4f\ud83d\ude4f.
Reply #22024-05-28
ST 언어를 사용하면 다음과 같이 할 수 있습니다.: 밸브를 여는 횟수로 변수를 만듭니다. A, A=0과 같은; K1이면 A=A+1; 끝_만약에; K2이면 A=A+1; 끝_만약에; K3이면 A=A+1; 끝_만약에; K4이면 A=A+1; 끝_만약에; K5이면 A=A+1; 끝_만약에; K6이면 A=A+1; 끝_만약에; A>=2이면 B=ON; 끝_만약에; 여기서 A는 부호 없는 INT이고 B는 부울 변수입니다. 각 밸브는 두 개의 버튼을 사용합니다. 하나는 열고 다른 하나는 닫습니다.ON 버튼을 누르면 K값이 ON되고, OFF버튼을 누르면 K값이 OFF되며, ON버튼을 누르면 켜지면서 숨겨진 애니메이션이 표시되고, B값이 1이면 ON버튼이 숨겨집니다.

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.