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.

Exercise: Connecting to

...

an ATIVA PLC through Ethernet

(1) I/O Device Configuration

a)  Select  Select [Tools] – [I/O Devices] and press the [New Device] button. Enter the device’s name and select “Ethernet Device” ‘Ethernet Device’ as shown below.

...

b)      In the [Communication Port] tab, select the device type. For this example, select ‘CIMON‘ATIVA-PLC’. Then go to the [Station] tab and press the [Add Station] button.

...

c)     In  In the [Station] window, enter the station name, type, and IP address. In this example, we use a PLC-S device. Press the [OK] button to finish the configuration.

...

(2) Page Configuration

a)     To  To receive data from the PLC, register a real tag to the database. Go to the database editor and create an analog tag as shown below.

...

b)      To display the tag value in the Xpanel runtime, select [Draw] – [Dynamic Tag] and click on the page. Configure the object as shown below and press [OK]. Download the project to the Xpanel device and run it. Because the PLC is not turned on yet, the dynamic tag object will be transparent.

...

(3) Checking the Operation

a)     In  In CICON, create the program shown below. The program saves a random number at D0 while M00 is on.

...

b) In the CICON project tree, go to [Parameter] – [PLC Parameter] and double-click it. In the ethernet tab, set the IP address for the PLC. 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  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.

...