XMC4800 Relax Ethernet 키트 ④ Ethernet 샘플 프로그램 시작(주종조합)
USB 케이블과 LAN 케이블을 연결합니다.

구축 및 소프트웨어 쓰기
다시 세우다

디버그 버튼을 눌러 소프트웨어 쓰기

실행 단추를 누르면 프로그램 동작을 시작합니다.

마스터 스테이션에서 읽기/명령 마스터 스테이션 상태
TwinCAT3를 시작합니다.

새 프로젝트 작성


이더넷 장치 검색





스캔이 끝난 후, 해결 방안 자원 관리자에 이더넷 CAT 장치 (주 장치) 와 이더넷 CAT 상자 (장치에서) 가 추가되었습니다.

읽기 종속 상태
IN_GEN_Bit1을 시계에 추가합니다.

장치의 Buttton1 상태는 마스터 사이트에서 IN 으로 시작GEN_Bit1로 읽을 수 있습니다.종속 Buttton1 키를 누르면 온라인 물결이 변경됩니다.
마찬가지로 장치의 Buttton2 상태는 마스터 장치의 IN입니다.GEN_Bit2 에 해당합니다.


주인에게서 지령을 내리다
OUT_GEN_Bit1에서 1 온라인 및 보조 LED 1을 켜십시오.같은 아웃이에요.GEN_비트 2~8을 통해 종관의 LED 2~8을 제어할 수 있다.



OUT_GEN_INT1에 50000을 켜면 종속 LED2의 점등광량이 작아진다.


Reference
이 문제에 관하여(XMC4800 Relax Ethernet 키트 ④ Ethernet 샘플 프로그램 시작(주종조합)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/galaxy2galaxy/items/e865847d54008491d1d8텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)