Versions Compared

Key

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

Communication Setup: Xpanel

Create a new device

 

I/O Device Configuration

To create a new device,

go to

select [Tools] → [I/O

Devices] or click on the (blue star) icon in the main toolbar. The ‘I/O Device Configuration’ dialog box will pop up. Click the [New Device] button to open the ‘I/O Device Selection’ dialog box.Image Removed

I/O Device Name: Give a device name. This name will be used in the tag configuration window of the database accompanied by the ‘Station Name’.

Select a device type

After clicking the [Ok] button on the previous step, the ‘Ethernet Communication Configuration’ dialog box will pop up.

Image Removed

Select ‘OMRON CS/CJ Series Enet' as the 'Device Type’ and click 'TCP'.

If UDP is setup at the PLC communication configuration, 'UDP' can be used.

  • Set "Network ID" and "Node ID". Xpanel "Unit ID" is fixed at '0'.

  • Set "Time Out" and "Retry No." according to the network condition.

See the Communication Configuration section for more information.

Create a station

Move to the [Station] tab of the 'Ethernet Communication Configuration' window. In this dialog box, all the connected PLC stations can be configured and registered to the Xpanel.

Image Removed

Station Name: ST1

Give a name to the PLC. This name will be used in the database window accompanied by the ‘Device Name’.

Station Type: HostLink (no other type can be selected).

Network ID: This field has no effect.

Node ID: Set "Node ID" of PLC. Some PLCs use the 4th digit number of the IP address as the "Node ID".

Unit ID: Set the "Unit ID" of the PLC. Generally, it is '0'.

IP Address: Write the IP address of the PLC.

Socket Port Number: The default is 9600. It must match with the PLC.

16Bit Data Swap: This field has no effect.

32Bit Data Swap: This field has no effect.

String Data Swap: Data is obtained by switching between high and low byte in string data.

Comm. Error Message Pop Up: When this item is checked, Xpanel displays a communication error message box for every Rx and Tx error. Otherwise (unchecked), Xpanel does not display a message for communication errors. This message box will close automatically after a few seconds.

Fixed XPANEL Socket Port: N/A

See the Communication Configuration section for more information about the remaining parameters

Device Editor]. Click the (blue star) icon to add a new device, then select an “Ethernet” [Connection Type] and a “Omron FINS” [Device Type].

Image Added

Device Name: Designate a name for the I/O Device.

I/O Device Settings

 

Once the connection type, device name, and device type have been assigned, the [I/O Device Editor] window populates with the default settings for the selected communication protocol.

Image AddedImage Added

After selecting the correct [Connection Type] and [Device Type], match the remaining settings to the target I/O device’s communication settings. For FINS specific settings, refer to the below section.

PLC Mode

  1. CS/CJ Series Communication Setting (Example CJ2M CPU35)

    1. External Rotary Switch Setting

      1. The node number shows hexadecimal on screen.

      2. Set the UNIT number.

      3. Set the NODE number.

    2. Built-in EtherNet/IP Port Setting

      1. Select [IO Table/Unit Setup] as shown below.

      2. Select [1500] CJEIP21 (Built-in EtherNet/IP Port for CJ2M)(Unit:0) at Inner Port/Inner Board. (Select “TCP/IP” and write the IP number of the PLC EtherNet/IP at “IP Address”.

      3. Select the [FINS/TCP] tab and choose the ‘Default’ option of the ‘FINS/TCP Port’.

      4. Click ‘Start with Settings Inherited' as shown below.

      5. Check the Net, Node, and Unit.

      6. Select [Start Routing table] as shown below.

        Image RemovedImage Added
      7. Select “Unit 00 (Ethernet/IP)” and insert CPU SIOU as shown in the picture below.

  2. NJ5xx Series (Built-in EtherNet/IP Port)

    1. Built-in EtherNet/IP Port Setting

      1. Select [Controller Setup] → [Operation Settings].

      2. Refer to the picture below and add a setting to the “Local Network Table”.

      3. Select [Controller Setup] → [Built-in EtherNet/IP Port Settings]. Select “TCP/IP Settings” and set IP address of PLC EtherNet/IP port.

      4. Select [FINS Settings] and set the “Node address of built-in EtherNet/IP port” and the “FINS/UDP port number” as shown below.

    2. FINS Data Block Registration

      1. Select [Data] → [Global Variables].

      2. Right-click and select “Create New”.

      3. For each item, register a Name, Data Type, and an AT (see image below).

      4. After completing the settings, click [Controller] → [Synchronization] to download it to the PLC. Reset the PLC power just in case the download setting does not work properly.

      • Name: It is a variable name that is used in the PLC program.

      • Data Type: Register the data type of the variable. In order to easily configure the communication setting, choose “Array Type”.

      • AT: Register the device format through FINS communication. Refer to the table shown below.

Area

Format

CIO Area

%0 , %10...

Work Area

%W0, %W100...

Holding Area

%H0, %H50...

DM Area

%D0, %D150...

EM Area

%E0_0, %E1_10...

Supported PLC Memories

Area

Symbol

Digital Tag

Analog Tag

CIO Area

CIO

CIO0.0 - CIO6143.15

CIO0 - CIO6143

Work Area

W

W0.0 - W511.15

W0 - W511

Holding Area

H

H0.0 - H511.15

H0 - H511

AR Area

A

A0.0 - A959.15

A0 - A959

T/C Status

TC

TC0 - TC4095

-

T/C PValue

PV

-

PV0 - PV4095

DM Area

D

D0.0 - D9999.15

D0 - D9999

EM Area

EX_

(x:0~F)

E0_0.0 - EF_32767.15

E0_0 - EF_32767

Communication Cable Wiring

...

You can configure the cable and allocation pin number of RJ45 as shown below.

RJ45 Connector

RJ45 Jack

Image ModifiedImage Modified

Direct Cable: Host ↔︎ HUB

Cable

No

Color

Color

No

Cable

Image Modified

1

Orange/White

Orange/White

1

Image Modified

2

Orange

Orange

2

3

Green/White

Green/White

3

4

Blue

Blue

4

5

Blue/White

Blue/White

5

6

Green

Green

6

7

Brown/White

Brown/White

7

8

Brown

Brown

8

Crossover Cable: Host ↔︎ Host

Cable

No

Color

Color

No

Cable

Image Modified

1

Orange/White

Green/White

1

Image Modified

2

Orange

Green

2

3

Green/White

Orange/White

3

4

Blue

Blue

4

5

Blue/White

Blue/White

5

6

Green

Orange

6

7

Brown/White

Brown/White

7

8

Brown

Brown

8