...
Create a new device
| To create a new device, go to [Tools] → [ I/O Devices] or click on the 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. 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.
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. 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 POWEL Socket Port: N/A See the Communication Configuration section for more information about the remaining parameters. |
PLC Mode
CS/CJ Series Communication Setting (Example CJ2M CPU35)
External Rotary Switch Setting
The node number shows hexadecimal on screen.
Set the UNIT number.
Set the NODE number.
Built-in EtherNet/IP Port Setting
Select [IO Table/Unit Setup] as shown below.
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”.
Select the [FINS/TCP] tab and choose the ‘Default’ option of the ‘FINS/TCP Port’.
Click ‘Start with Settings Inherited' as shown below.
Check the Net, Node, and Unit.
Select [Start Routing table] as shown below.
Select “Unit 00 (Ethernet/IP)” and insert CPU SIOU as shown in the picture below.
NJ5xx Series (Built-in EtherNet/IP Port)
Built-in EtherNet/IP Port Setting
Select [Controller Setup] → [Operation Settings].
Refer to the picture below and add a setting to the “Local Network Table”.
Select [Controller Setup] → [Built-in EtherNet/IP Port Settings]. Select “TCP/IP Settings” and set IP address of PLC EtherNet/IP port.
Select [FINS Settings] and set the “Node address of built-in EtherNet/IP port” and the “FINS/UDP port number” as shown below.
FINS Data Block Registration
Select [Data] → [Global Variables].
Right-click and select “Create New”.
For each item, register a Name, Data Type, and an AT (see image below).
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.
...