Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(blue star)

This section gives an illustrative example of connecting an I/O device to Xpanel. Settings may differ based on your project’s configuration.

...

본 예제는 기능을 설명하기 위해 삽입된 예제입니다. 실제 사용 시 사용자의 환경에 맞게 설정하여 사용해주십시오.

사용 예제: CIMON PLC와 Ethernet으로 연결하기

(1) I/O Device Configuration디바이스 설정하기

a) Select [Tools도구] - [I/O Device Editor] and press the (blue star) icon, then select [Add Ethernet Device]. Enter the device’s name and select the [CIMON CI-net] protocol.

...

b) Once the correct device type has been selected, an additional configuration menu will be displayed. Match the settings in this window to the below configuration.

...

(2) Page Configuration

To ensure that the target PLC is communicating properly, a [Text Box] that displays the value of a real tag can be placed on the main screen. If the PLC is communicating properly, updating the tag’s value in CICON will yield a change in tag value on the XPanel. Create a tag using the [Tag Browser], configure the tag as shown below.

...

Next, place a [Text Box] on the main page of the project. Then in the [Property Editor] window, link the tag created above to the [Text] option.

...

(3) Checking Operation

a) In CICON, create the program shown below. The program sets D50 to a random number on each new scan as long as M00 remains pressed.

...

b) In the CICON project tree, go to [Parameter] - [PLC Parameter] and double-click it. In the ethernet tab, match the [IP Address] to the one used in the [I/O Device Editor] configuration menu. If the PLC and Xpanel are on the same local network, then the subnet mask and gateway should match. When you are finished, press [OK].

...

c) Download the program to the PLC and run it. You can edit the value of M00 in CICON while connected to the PLC. When the M00 contact turns ON, you will find that the value stored in D0 changes on the Xpanel screen디바이스 편집기]를 선택하고 (blue star) 아이콘을 클릭합니다. [새 I/O 디바이스 추가] 창에서 [Ethernet]을 선택하고 디바이스 이름을 입력한 뒤 디바이스 종류를 [CIMON-PLC Ethernet]으로 선택합니다.

...

b) Ethernet 디바이스를 추가하면 [I/O 디바이스 편집기] 우측에 해당 디바이스의 설정 화면이 표시됩니다. 다음 그림과 같이 Ethernet 디바이스를 설정합니다.

...

(2) 화면 구성하기

텍스트 상자 오브젝트에 태그를 연결하여 페이지에 추가하면 PLC로부터 읽어온 값을 표현할 수 있습니다. 통신이 정상적으로 되고 있다면 CICON을 통해 변경한 값이 Xpanel의 화면에 업데이트 됩니다.

[태그 브라우저]에서 새 태그를 만들고 다음 그림과 같이 설정합니다.

...

프로젝트의 작화 페이지에 텍스트 상자 오브젝트를 추가합니다. 해당 오브젝트의 속성 편집기에서 [형태] - [문자] 속성에 태그를 드래그하거나 (blue star) 아이콘을 클릭하여 앞서 생성한 태그를 연결합니다.

...

(3) 동작 확인하기

a) CICON에서 다음과 같이 프로그램을 작성하여 다운로드 합니다. M00이 ON일 때 매 스캔마다 D0에 난수를 저장하는 프로그램입니다.

...

b) 프로젝트를 Xpanel에 다운로드 하고 실행시킵니다. M00 접점이 ON 되면 D0의 값이 변화하는 것을 확인할 수 있습니다.

...