대한상공회의소 반도체전장제어

비전장비 아두이노 헤더파일 작성

성산조 2024. 8. 9. 10:46

미쯔비시는 X00~0F까지 사용한다고 미리 설정되어 있지만, C#으로 구동시키려면 직접 선언해주는 작업을 해야한다. 

#ifndef __IO_H__
#define __IO_H__

//INPUT PIN. 입력 8점 쓴다. 

#define I00 38
#define I01 39
#define I02 40
#define I03 41
#define I04 42
#define I05 43
#define I06 44
#define I07 45

//OUTPUT PIN 출력 8점 쓴다.

#define O00 2
#define O01 3
#define O02 4
#define O03 5
#define O04 6
#define O05 7
#define O06 8
#define O07 9

#endif
 

io.h로 저장하였습니다.

 

2560으로 설정, COM5로 해야 연결가능.