Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
comfilepi:comfilepinetenvironment:modport_example:index [2026/02/15 06:32] – created - external edit 127.0.0.1comfilepi:comfilepinetenvironment:modport_example:index [2026/02/20 15:34] (current) – external edit 127.0.0.1
Line 2: Line 2:
 MODPORT는 데이터 수집용 필드 I/O 제품입니다. ComfilePi와 결합하여 산업현장의 각종 데이터 수집및 제어를 할 수 있습니다. 또한  모듈형식의 슬롯 보드로 구성되어 있어 사용자가 필요에따라 모듈을 확장하여 사용할 수있습니다. \\ MODPORT는 데이터 수집용 필드 I/O 제품입니다. ComfilePi와 결합하여 산업현장의 각종 데이터 수집및 제어를 할 수 있습니다. 또한  모듈형식의 슬롯 보드로 구성되어 있어 사용자가 필요에따라 모듈을 확장하여 사용할 수있습니다. \\
 본 장에서는 ComfilePi를 이용하여 MODPORT의 모듈 사용법, 제어, 상태값을 표시하는 내용을 다루고 있습니다.  본 장에서는 ComfilePi를 이용하여 MODPORT의 모듈 사용법, 제어, 상태값을 표시하는 내용을 다루고 있습니다. 
-{{ :comfilehmi:hmi_connection_modport:modport.png?nolink&400 |}}+ 
 +{{ :comfilepi:comfilepinetenvironment:modport_example:modport_front.png?nolink |}}
  
 [[:fieldio:modport:index|산업용 필드 I/O MODPORT 사용설명서]]\\ [[:fieldio:modport:index|산업용 필드 I/O MODPORT 사용설명서]]\\
-\\+
 ===== 구성및 인터페이스 ======   ===== 구성및 인터페이스 ======  
  
Line 14: Line 15:
   * 모듈의 로터리 스위치로 Slave ID를 설정할 수 있습니다.   * 모듈의 로터리 스위치로 Slave ID를 설정할 수 있습니다.
  
-{{ :comfilepi:modport_example:modport_wire.png |}}+{{ :comfilepi:comfilepinetenvironment:modport_example:modport_wire.png |}}
  
 ===== 예제1) In/Output 제어 ======   ===== 예제1) In/Output 제어 ======  
Line 22: Line 23:
   * 예제프로그램 다운로드 {{ :comfilepi:modport_example:ex1_modport_io_example.zip |}}   * 예제프로그램 다운로드 {{ :comfilepi:modport_example:ex1_modport_io_example.zip |}}
  
-** 위 소스는 참고용으로 배포합니다. 저희 회사는 이에 대한 전화 기술지원은 제공하고 있지 않은점 양해부탁드립니다. **+** 위 소스는 참고용으로 배포합니다. 저희 회사는 이에 대한 기술지원은 제공하고 있지 않은점 양해부탁드립니다. **
  
-{{ :comfilepi:modport_example:example1.png |}}+{{ :comfilepi:comfilepinetenvironment:modport_example:example1.png |}}
  
 Serial통신 설정은 아래와같이 프로그램합니다. ComfilePi의 COM0은 **/dev/serial0**로 설정합니다.  Serial통신 설정은 아래와같이 프로그램합니다. ComfilePi의 COM0은 **/dev/serial0**로 설정합니다. 
Line 49: Line 50:
   * MD-ADIN4 : SlaveID -> 1, StartAddress -> 40101 ~ 40104   * MD-ADIN4 : SlaveID -> 1, StartAddress -> 40101 ~ 40104
   * MD-THRT4 : SlaveID -> 1, StartAddress -> 40301 ~ 40304   * MD-THRT4 : SlaveID -> 1, StartAddress -> 40301 ~ 40304
-  * 예제프로그램 다운로드. {{ :comfilepi:modport_example:modport_adin_temp_example.zip |}}+  * 예제프로그램 다운로드. {{ :comfilepi:comfilepinetenvironment:modport_example:modport_adin_temp_example.zip |}}
  
-{{ :comfilepi:modport_example:adin_temp.png |}}+{{ :comfilepi:comfilepinetenvironment:modport_example:adin_temp.png |}}
  
  
Line 61: Line 62:
 MD-THRT4 온도값을 소수 1자리와 영하(-)의 값으로 읽어옵니다.. MD-THRT4 온도값을 소수 1자리와 영하(-)의 값으로 읽어옵니다..
 <code xbasic>  <code xbasic> 
- var TEMP_CH = master.ReadHoldingRegisters(1, 300, 4);+var TEMP_CH = master.ReadHoldingRegisters(1, 300, 4);
 double[] Ftemp = new double[4]; double[] Ftemp = new double[4];
       for (int i = 0; i < 4; i++){       for (int i = 0; i < 4; i++){
Line 73: Line 74:
       }       }
  </code>  </code>
-[[..:comfilepinetenvironment:index|.NET (닷넷) 개발환경]]+ 
 +[[..:index|.NET (닷넷) 개발환경]]