1 / 3

프로그램 초기화

시작. 프로그램 초기화. 프로그램 종료. Yes. 키보드 입력이 있는가 ?. PC 모니터에 상태 정보 출력. No. DI, AD 값 입력 받기. 문 작동. Task 에 따라. Door. DO, DA 값 출력. 엘리베이터 작동. Elevator. 문 작동. 문 열기 전 딜레이. 문열기 ( 모터 2 정회전 ). 문이 완전히 열렸나 ?. 문 작동 종료. No. 문 닫은 후 딜레이. Yes. 문 정지 ( 모터 2 정지 ). Yes. Yes. 같은 층에서 버튼이 눌려졌나 ?.

helen
Download Presentation

프로그램 초기화

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 시작 프로그램 초기화 프로그램 종료 Yes 키보드 입력이 있는가? PC 모니터에 상태 정보 출력 No DI, AD값 입력 받기 문 작동 Task에 따라 Door DO, DA 값 출력 엘리베이터 작동 Elevator

  2. 문 작동 문 열기 전 딜레이 문열기(모터2 정회전) 문이 완전히 열렸나? 문 작동 종료 No 문 닫은 후 딜레이 Yes 문 정지(모터2 정지) Yes Yes 같은 층에서 버튼이 눌려졌나? 문이 완전히 닫혔나? 사람이 타는 동안의 딜레이 No 문닫기(모터2 역회전) No

  3. 버튼이 눌려졌나? No 엘리베이터 작동 Yes 엘리베이터 상태에 따라 정지 눌려진 층수에 따라 상승 하강 엘리베이터 상태 = 상승 상위층 엘리베이터 상태 = 하강 상승(모터1 정회전) 하강(모터1 역회전) 하위층 Task = Door (문 열었다 닫기) 같은층 적외선 센서 층 감지? 목적층인가? Yes Yes 모터1 정지 No No 엘리베이터 작동 주기 끝

More Related