Size:
19.68 Mb
Download

Setting Tag Data Links

Section 6-2

21.To register the newly added tags in a tag set, either double-clickthe desired tag set, or select the tag set and click theEdit Button.

The Tag List on the left side of the dialog box shows the tags that are already registered, and theCandidate Tag List on the right side of the dialog box shows the other tags that have not been registered yet.

22.Select the tags that you want to add from the Candidate Tag List and click theButton.

Up to 8 tags can be registered in a tag set, or up to 7 tags can be registered and two byes will be added to the size if the PLC status is included in the tag set.

23.To confirm the changes, click the OK Button at the bottom of the Edit Tag Set Dialog Box.

24.Click the OK Button at the bottom of the Edit Device Parameters Dialog Box.

135

Setting Tag Data Links

Section 6-2

2. Importing Network Symbols Created with the CX-Programmerto the Network Configurator

If the CJ2H-CPU6@-EIPorCJ2M-CPU3@is used, you can create network symbols using theCX-Programmer,import them into the Network Configurator, and then create tags and tag sets. Use the following procedure.

Creating Global Symbols Create global symbol with the Global Symbol Editor of theCX-Programmerand selectInput orOutput for the network variable properties. Safe the project when you are finished.

Any global symbols with Input orOutput set for the network variable property will be imported when the import procedure is performed from the Edit Device Parameters Dialog Box.

Importing Symbols to the

Network Configurator

1,2,3... 1. Start theCX-Programmerand open the project that was saved.

Note When multiple copies of theCX-Programmerare running at the same time, it is possible to import only from theCX-Programmerproject that was started first. If the global symbols that are to be imported are stored in multiple CXProgrammer project files, the projects must be started one by one to import the symbols.

2.From the devices registered in the Network Configurator, double-clickthe icon of the device for which to import the network symbols. The Edit Device Parameter Dialog Box will be displayed. You can alsoright-clickthe icon and selectDevice - Parameters - Edit from thepop-upmenu.

3.Click the Import Button on the Tag Sets Tab Page of the Edit Device Parameter Dialog Box.

136

Setting Tag Data Links

Section 6-2

A confirmation message will be displayed. Click the Yes Button.

The symbols will be imported as shown below on the Tag Sets Tab Page. Each symbol will be imported into a different tag set and the device parameters will be automatically edited. (The symbol name will be used for the tag set name.)

137

Setting Tag Data Links

Section 6-2

To place more than one input symbol (input tag) imported from the CXProgrammer into one tag set, you must delete the input tags that were registered to separate input tag sets.

Select the tag sets for the symbols that are included in the one tag set and click the Delete Button. A confirmation message will be displayed. Click theNo Button to delete only the tag sets.

To create a new tag set for more than one tag, click the New Button. To place more than one tag in an existing tag set,double-clickthe tab set, or select it and click theEdit Button.

The Edit Tag Set Dialog Box will be displayed. Imported tags that are not registered in another tag set will be displayed in the Candidate Tag List Area on the right. Click the Right Arrow Button to add tags individually.

138

Setting Tag Data Links

Section 6-2

4.You can change tag set names in this dialog box. To confirm a change, click the OK Button in the dialog box.

5.Perform steps 1 to 3 for all the devices that will perform tag data links.

3. Importing Network Symbols That Were Registered to Tags with the Network Configurator to the CX-Programmer

If the CJ2H-CPU6@-EIPorCJ2M-CPU3@is used, you can specify network symbols for tags using the Network Configurator. The procedure to import network symbols that were created using the Network Configurator into the CXProgrammer is described below.

Exporting Tags and Tag Sets with the Network Configurator

1,2,3... 1. SelectTo/From File - Export to file on the Tag Sets Tab Page in the Edit Device Parameters Dialog Box to export the tag and tag set information to a CSV file.

139

Setting Tag Data Links

Section 6-2

Importing the Tag and Tag Set CSV File with the CX-Programmer

1,2,3... 1. In the project global symbol table for theCJ2H-CPU6@-EIPor CJ2MCPU3@,right-clickand selectImport Network Variable from thepop-upmenu.

2.You can add a tag as a network symbol by selecting and executing the CSV file exported using the Network Configurator.

Note The following precautions apply when importing.

Tags that have a specified I/O memory address cannot be imported.

Tags are imported as network symbols in a one-dimensionalWORD array. To change the data type, use the Symbol Editor of theCX-Program-mer.

140

Setting Tag Data Links

Section 6-2

6-2-5Connection Settings

After creating the tag sets, click the Connections Tab at the top of the Edit

Device Parameters Dialog Box, and set the following connection information.

The target devices with which connections will be opened

Whether the tag sets are input or output tag sets

The length of the packet intervals (RPI)

Make the Connections settings in the originator only. The Connections settings are not necessary in the target device.

Note Make the Connections settings after creating tag sets for all of the devices involved in tag data links.

Connection Settings (Connections Tab)

Registering Devices in the Register Device List

1,2,3... 1. Display the originator device’s Edit Device Parameters Dialog Box by dou-ble-clickingthe device’s icon in the Network Configuration Window, orright-clickingthe device’s icon and selectingParameter - Edit from thepop-upmenu.

2.Click the Connections Tab at the top of the Edit Device Parameters Dialog Box. All of the devices registered in the network (except the local node) will be displayed.

141

Setting Tag Data Links

Section 6-2

3.In the Unregister Device List, select the target device that requires connection settings by clicking the device so its color changes to gray, and click

the Button. The selected target device will be displayed in the Register Device List, as shown in the following diagram.

4.Target node IDs are assigned to devices registered in the Register Device List. This target node ID determines the location in the originator node PLC of the Target Node PLC Operating Flag, Target Node PLC Error Flag, Registered Target Node Flag, and Normal Target Node Flag. By default, the target ID is automatically set to the rightmost 8 bits of the IP address. In the example above, the target device’s IP address is 192.168.250.2, so the device number is #002. If a target node ID is duplicated and you want to change the device number, click the Change Target Node ID Button and change the target ID.

Editing Settings for

You can edit each connection separately.

Individual Connections

 

Note

Refer to the following page for information on how to perform batch editing in

 

a table format.

142

Setting Tag Data Links

Section 6-2

1,2,3...

1. Select the Connection Tab and then click theNew Button.

 

The following Edit Connection Dialog Box will be displayed according to the

 

type of device that is selected.

 

Using an OMRON EtherNet/IP Unit or Built-inEtherNet/IP Port as the

 

Target

Using Other EtherNet/IP Devices as the Target

143

Setting Tag Data Links

Section 6-2

Connections Settings

(Editing All Connections)

1,2,3...

The settings are as follows:

Item

Description

 

 

Connection I/O Type

When creating tag data links for a CS1W-EIP21,CJ1W-EIP21,

 

CJ2B-EIP21,orCJ2M-EIP21,selectInput Only (Tag Type).

 

When creating tag data links for other target devices, select

 

the connection I/O type specified in that device’s EDS file.

 

Use the Input Only (ID type) setting when another company's

 

node is the originator and does not support connection set-

 

tings with a Tag type setting.

 

 

Connection Type

Selects whether the data is sent in multicast or unicast (point-

 

to-point).The default setting is multicast.

 

• Multicast connection

 

Select this type when the same data is shared by multiple

 

nodes. This setting is usually used.

 

Point-to-Pointconnection

 

Select this type when the same data is not shared by multiple

 

nodes. In a unicast connection, other nodes are not bur-

 

dened with an unnecessary load.

 

Note Refer to 6-1-2 Overview of Operation for details on

 

using multicast and unicast connection as well as count-

 

ing the number of connections.

 

 

The Connection Structure Field and the following items will not be displayed if theHide Detail Button is pressed.

Packet Interval (RPI)

Sets the data update cycle (i.e., the packet interval) of each

 

connection between the originator and target. The interval can

 

be set to between 1 and 10,000 ms for the CJ2M and 0.5 and

 

10,000 ms for other CPU Units in 0.5-msincrements. The

 

default setting is 50 ms (i.e., data updated once every 50 ms).

 

 

Timeout Value

Sets the time until a connection times out. The timeout value is

 

set as a multiple of the packet interval (RPI) and can be set to

 

4, 8, 16, 32, 64, 128, 256, or 512 times the packet interval. The

 

default setting is 4 times the packet interval (RPI).

 

 

Connection Name

Sets a name for the connection. (32 characters max.)

 

 

2. When the settings have been completed, press the Regist Button.

The connection settings between the originator and all of the target devices selected in the Register Device List can be edited together in a table.

1.Select the Connections Tab, and click theEdit All Button. The following Edit All Connections Dialog Box will be displayed.

144

Setting Tag Data Links

Section 6-2

The following table describes the various settings in the dialog box.

Setting

Function

 

 

Target Device

Selects the target device.

 

 

Connection

Any name can be given to the connection (up to 32 charac-

Name

ters).

 

If this field is left blank, a default name will be assigned.

 

This Connection Name can be used for comments.

 

 

Connection I/O

When making tag data links in a CS1W-EIP21,CJ1W-EIP21,

Type

CJ2B-EIP21,orCJ2M-EIP21,selectInput Only (Tag type).

 

When making tag data links in other devices, select the con-

 

nection I/O type specified in that device’s EDS file.

 

Use the Input Only (ID type) setting when another company’s

 

node is the originator and does not support connection set-

 

tings with the Tag type setting.

 

 

In/Out

The connections I/O is automatically displayed based on the

 

selected connection.

 

• Input Only: Just In is displayed.

 

 

Target Variable

Selects and allocates the target node’s tag set.

 

• In: Selects the target’s output (produce) tag set.

 

• Out: Selects the target’s input (consume) tag set.

 

 

Originator Vari-

Selects and allocates the originator node’s tag set.

able

• In: Selects the originator’s output (produce) tag set.

 

 

• Out: Selects the originator’s input (consume) tag set.

 

 

Connection

Selects whether the data is sent in a multicast or unicast. The

Type

default setting is multicast.

 

• Multicast connection:

 

Select when the same data is shared by multiple nodes. This

 

setting is usually selected.

 

Point-to-Pointconnection:

 

Select when the same data is not being shared by multiple

 

nodes. In a unicast transmission, other nodes are not bur-

 

dened with an unnecessary load.

 

Note Refer to 6-1-2 Overview of Operation for details on

 

using multicast and unicast transmissions, and counting

 

the number of connections.

 

 

RPI

Sets the packet interval (RPI) of each connection between the

 

originator and target. The interval can be set between 1 and

 

10,000 ms for the CJ2M and 0.5 and 10,000 ms for other CPU

 

Units in 0.5-msunits. The default setting is 50 ms (data

 

refreshed once every 50 ms).

 

 

Timeout Value

Sets the time until a connection timeout is detected. The time

 

out value is set as a multiple of the packet interval (RPI) and

 

can be set to a 4, 8, 16, 32, 64, 128, 256, or 512 multiple. The

 

default setting is 4× the packet interval (RPI).

2. When the settings are completed, click the OK Button.

145

Setting Tag Data Links

Section 6-2

Confirming the

Connections Settings

1,2,3... 1. An overview of the connections set in the Register Device List is displayed in the Connections Tab Page.

2. Click the OK Button. The following kind of diagram will be displayed.

Indicates the IP address of the originator where the connection was set.

3.Repeat the Connections setting procedure until all of the connections have been set.

Note After completing the settings, always click theOK Button before closing the Edit Device Parameters Dialog Box and performing another operation. If theCancel Button is clicked and the dialog box is closed, the new settings will be discarded.

146

Setting Tag Data Links

Section 6-2

Automatically Setting

Connections

4.If the tag set’s size is changed in either the originator or target after the connection was set, the size will not match the other node and a parameter data mismatch will occur. In this case, if the connection settings have been changed, be sure to check the connections. (Refer to 6-2-17 Checking Connections.)

Tag set names set for devices can be automatically detected to automatically set connections between input and output tag sets with the same name (or the same names excluding specified ellipses). Connections are automatically set under the following conditions.

Output tag set names

Except for specified ellipses, the output tag set name

 

must be the same as the input tag set name.

 

Ellipses can be set for the beginning or end of tag set

 

names.

 

 

Input tag set names

Except for specified ellipses, the input tag set name

 

must be the same as the output tag set name.

 

Ellipses can be set for the beginning or end of tag set

 

names.

 

 

Connection types

The connection type must be Input Only.

 

Multicast and single cast connection types can be

 

specified when executing a connection.

 

 

RPI

The default setting is used.

 

 

Timeouts

The default setting is used.

 

 

Example 1: Automatic Connections with the Same Tag Set Names

The following connections would automatically be set if there is an output tag set named A_Signal at node A and input tag sets named A_Signal at nodes B and C.

Node A

Excluded characters: None

Node B

 

Node C

Output tag set: A_Signal

 

 

 

 

 

Connection

Input tag set: A_Signal

 

Input tag set: A_Signal

Connection

EtherNet/IP

147

Setting Tag Data Links

Section 6-2

Example 2: Automatic Connections with the Ellipses

The following connections would automatically be set if there is an output tag set named O_Signal at node A and input tag sets named I_Signal at nodes B and C, and “O_” and “I_” were set as ellipses.

Node A

Excluded characters: O_ and I_

Node B

 

Node C

 

 

 

 

 

Output tag set: O_Signal

Connection

Input tag set: I_Signal

 

Input tag set: I_Signal

 

 

 

 

Connection

EtherNet/IP

1,2,3... 1. Set the same tag set names for the output and input tag sets for the connection. The tag set names can also include forward and backward ellipses.

2.Select Auto Connection from the Network Menu. The connections will be set automatically.

A dialog box will appear to set forward and backward ellipses for both output (product) and input (consume) tag sets as soon as automatic connection setting processing has begun.

Input the ellipses and click the OK Button. Automatic setting will be processed.

3.If there are tag sets that meet the conditions for automatic connection setting, they will be displayed.

148

Setting Tag Data Links

Section 6-2

Device Connection

Structure Tree

Click the OK Button to start processing.

4.A device connection structure tree will be displayed when processing has been completed.

5.Use the device connection structure tree as required to change the RPI and timeout settings.

Connection settings can be displayed on the network configuration. Select

View Device’s Connection Structure Tree from the Network Menu.

149

Setting Tag Data Links

Section 6-2

The Display the detail of Connection Check Box can be used to switch betweendevice-levelandconnection-leveldisplays of tag data link communications.

An asterisk will be displayed after the device name of the originator set for the connection.

The Edit Device Parameters Dialog Box can be displayed by selecting a connection and clicking the Edit Button. The connections can be edited in this dialog box.

6-2-6Setting Tags Using Data Link Tool

Using the EtherNet/IP Datalink Tool enables easily setting data links similar to those for the Controller Link by using only I/O memory addresses. This method has the following restrictions.

Settings can be made only for tag data links between OMRON EtherNet/ IP Units and built-inEtherNet/IP ports.

Tags must be set using I/O memory addresses.

A maximum of two tags (area 1 and area 2) can be set in one tag set.

Select Network - EtherNet/IP Datalink Tool from the menus in the Network

Configurator after you have registered all the devices to start the EtherNet/IP

Datalink Tool.

150

Setting Tag Data Links

Section 6-2

Node List

The following items will be displayed in the Node Area on the left side of the

 

window.

 

• IP Address: The IP address of the node.

 

• Device: The name (model number) of the device at the node.

Note

The node list will display the node registered in the Network Configurator.

 

Nodes cannot be added or deleted from this window.

Data Link Table

Information

The data link table of the node selected on the left will be displayed on the right. Each row specifies word that are allocated for data links for that node. Each row specifies the node settings for the words (area) where a data link has been created. You can set only area 1 or both area 1 and area 2.

IN/OUT: Specifies whether the link inputs data to the node or outputs data from the node. OUT can be selected only once. OnceOUT has been selected for one row,IN will automatically be selected for other rows. A asterisk will be displayed if the Over Load function is disabled. (See note.)

Note The Over Load function is used to clear output data when all outputs are turned OFF from the CPU Unit of the PLC. This setting is not necessary for inputs.

(a)Over Load function enabled: Output data will be cleared to all zeros when all outputs from the PLC are turned OFF from the CPU Unit.

(b)Over Load function disabled: Output data will be maintained even when all outputs from the PLC are turned OFF from the CPU Unit.

Area 1, Link CH: The I/O memory address of the first word in link area 1

Area 1, Size: The number of words in link area 1. (See note.)

Area 2, Link CH: The I/O memory address of the first word in link area 2

Area 2, Size: The number of words in link area 2. (See note.)

Note With the Network Configurator, the PLC status will be shown at the beginning of each area. The PLC status includes the CPU Unit operating status (operating information and error information).

151

Setting Tag Data Links

Section 6-2

Setting Procedure

Tag Set Name: If the Wizard is used, the names will be automatically assigned using consecutive IP addresses in the following form for both input and output tags: TagSet1_192168.250.1. There is no reason to be concerned with these names. If the Wizard is not used, then names will not be automatically assigned and they must be entered directly into the data link table.

Total Size: The total number of words in areas 1 and 2. This value is automatically displayed after the sizes of areas 1 and 2 are entered.

Node: For an input tag, this is the IP address of the node that provides the output. For an output tag, “-”will be entered automatically.

Target Variable: The target tag set name. For an input tag, this is the name of the target set that provides the output. For an output tag, “-”will be entered automatically.

RPI (ms): The requested packet interval for an input tag. For an output tag, “-”will be entered automatically.

The setting procedure is described here along with setting examples.

Setting Example A

Area 1 memory area = Work Area (W)

Area 1 start address = 0

Area 1 size = 50 words

Area 2 memory area = DM Area (D)

Area 2 start address = 50

Area 2 size = 100 words

Allocations

 

Node 1

Node 2

 

Node 3

 

(IP address: 192.168.250.1)

(IP address: 192.168.250.2)

(IP address: 192.168.250.3)

 

 

EtherNet/IP

 

 

Area 1

 

 

 

 

W0

#1

W0

W0

#1

50 words

#1

 

W50

#2

#2

 

#2

50 words

 

W100

#3

#3

 

#3

50 words

 

Area 2

 

 

 

 

D50

#1

D50

D50

#1

100 words

#1

 

D150

#2

#2

 

#2

100 words

 

D250

#3

#3

 

#3

100 words

 

1,2,3... 1. SelectWizard from the Data Link Menu. The Datalink Wizard Dialog Box will be displayed.

152

Setting Tag Data Links

Section 6-2

2.Select the memory area (here, W) in the Memory Field and enter the starting address (here, 0) and number of words (here, 50) in theStart Address andSize Fields for Area 1.

3.Select the memory area (here, D) in the Memory Field and enter the starting address (here, 50) and number of words (here, 100) in theStart Address andSize Fields for Area 2.

4.Select the Enable Over Load Check Box if the Over Load function is necessary.

5.Click the OK Button. The following dialog box will be displayed.

Click the Yes Button to continue creating the data link table, or click theNo Button to cancel the operation.

153

Setting Tag Data Links

Section 6-2

If the creating the data link table is continued, the data link table will be created with the same size of data link for all registered nodes. Examples are shown below.

Automatic Allocation Results for Node 1 (IP Address: 192.168.250.1)

Automatic Allocation Results for Node 2 (IP Address: 192.168.250.2)

154