Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
modularpi:cfdi16b:index [2026/02/15 03:14] – [어드레스 설정] adminmodularpi:cfdi16b:index [2026/02/15 03:15] (current) admin
Line 23: Line 23:
  
 {{ :fieldio:cfnet:cfdi16b:dip_sw_0x00.png?nolink |}} {{ :fieldio:cfnet:cfdi16b:dip_sw_0x00.png?nolink |}}
-===== CFHEADER API ===== 
-  * [[..:cfheaderconnecttousb:index|CFHeader API 및 Demo]] 
-  * [[https://api.comfiletech.com/csharp/api/ComfileTech.Cfnet.Cfheader.DigitalInputModule.html|Class DigitalInputModule]] 
-  * [[https://api.comfiletech.com/csharp/api/ComfileTech.Cfnet.Cfheader.DigitalInputModule.Channel.html|Class DigitalInputModule.Channel]] 
- 
- 
-=====C# 예제 프로그램===== 
-* 단일 채널(포트) 입력 또는 16개의 입력을 동시에 확인할 수 있는 프로그램입니다. **[ CFHEADER[0] x CFDI-16B[0,1] ]** 
- 
-<code c> 
-using ComfileTech.Cfnet.Cfheader; 
- 
-var CFHEADER_0 = Cfheader.Instances[0]; 
-var CFDI_0 = CFHEADER_0.DigitalInputModules[0];                 // CDDI모듈 ADDR.0 
-var CFDI_1_0 = CFHEADER_0.DigitalInputModules[1].Channels[0];   // CDDI모듈 ADDR.1 의 0번 포트 
- 
-CFHEADER_0.Open(); // USB 활성화 
- 
-while (true) 
-{ 
-     CFHEADER_0.Sync(); // CFNET 모듈 동기화 
- 
-     ushort  DI_0_16BIT = CFDI_0.State; 
-     bool    DI_1_1BIT  = CFDI_1_0.State; 
- 
-     Console.WriteLine("ADDR0_16_BIT: {0}   ADDR1_1_BIT: {1}", DI_0_16BIT.ToString("X"), DI_1_1BIT); 
-     Thread.Sleep(50);  // 지연 시간(50mS) 
-} 
- 
-</code> 
  
 ===== 기술 지원 정책 ===== ===== 기술 지원 정책 =====