Size:
19.68 Mb
Download

Overview of Tag Data Links

Section 6-1

If multicast connections are used, however, use a switching hub that has multicast filtering, unless the tag set is received by all nodes in the network.

If a switching hub that does not have multicast filtering is used, the multicast packets will be broadcast to the entire network, and so packets will be sent to nodes that do not require them, which will cause the communications load on those nodes to increase.

This applies only if one output tag set is sent to multiple nodes using a multicast connection with one packet, the connection type of the connections that receive the output tag set is multicast, and the connection I/O types, packet intervals (RPI), and timeout values are all the same.

Note The performance of communications devices is limited to some extent by the limitations of each product’s specifications. Consequently, there are limits to the packet interval (RPI) settings. Refer to10-2 Adjusting the Communications Load and set an appropriate packet interval (RPI).

Starting and Stopping Tag Data Links

Tag data links are automatically started when the data link parameters are downloaded from the Network Configurator. Thereafter, tag data links can be stopped and started for the entire network or individual devices from the Network Configurator. Starting and stopping tag data links for individual devices must be performed for the originator.

Software switches in allocated words can also be used to start and stop tag data links for the entire network. Refer to 6-2-13 Starting and Stopping Tag Data Links for details.

6-1-3Tag Data Link Functions and Specifications

Item

Specification

 

 

Communications

Standard EtherNet/IP implicit communications (connection-

type

type cyclic communications)

 

 

Setting method

After setting tags, tag sets, and connections with the Network

 

Configurator, the tag data link parameters must be down-

 

loaded to all devices in the EtherNet/IP network.

 

With a CJ2H-CPU6@-EIPorCJ2M-CPU3@CPU Unit, a sym-

 

bol table can be created with the CXProgrammer and then

 

imported into the Network Configurator to allocate tags.

 

After the parameters are downloaded, the EtherNet/IP Units

 

are restarted to start the tag data links.

 

 

Tags

Applicable CPU Unit data: CIO Area, DM Area, EM Area,

 

Holding Area, Work Area, and symbols. (See note.)

 

Number of words per tag: 20 max. (40 bytes) for CJ2M, 722

 

max. (1,444 bytes) for other CPU Units

 

Number of tags per Unit: 32 max. for CJ2M, 256 max. for other

 

CPU UNits

 

Note With theCJ2H-CPU6@-EIPorCJ2M-CPU3@,network

 

symbols (I/O allocation settings) created using the CX-

 

Programmer can be imported into the Network Configu-

 

rator.

 

 

Tag sets

Number of tags per tag set: 8 max. (7 max. if PLC status is

 

included)

 

Number of words per tag set: 20 max. (40 bytes) for CJ2M,

 

722 max. (1,444 bytes) for other CPU Units

 

Number of tag sets per Unit: 32 max. for CJ2M, 256 max. for

 

other CPU Units

 

 

Connections

Number of connections per Unit: 32 max. for CJ2M, 256 max.

 

for other CPU Units

 

 

115

Overview of Tag Data Links

Section 6-1

 

 

 

 

Item

Specification

 

 

 

 

Connection type

Each connection can be set for 1-to-1(unicast) or1-to-N(mul-

 

 

ticast) communications. (Default: Multicast)

 

 

 

 

Packet interval (RPI)

1 to 10,000 ms for CJ2M and 0.5 to 10,000 ms for other CPU

 

 

Units (in 0.5-msunits)

 

 

The packet interval can be set separately for each connection.

 

 

 

System Configuration Conditions for Setting Tags Using Symbols or I/O Memory Addresses

Local tags for tag data links can be set using I/O memory addresses or network symbols. Support for network symbols, however, depends on the model of CPU Unit, as shown in the following table.

Communications with the remote node are possible regardless of whether the remote node tags are set using I/O memory addresses or network symbols.

Name in hardware list

CPU Unit

EtherNet/IP Unit or

Symbol name

I/O memory

of Network

 

built-inEtherNet/IP port

specification

address

Configurator

 

 

 

specification

 

 

 

 

 

CJ2B-EIP21

CJ2H-CPU6@-EIP

CJ2H-CPU@@-EIP

OK

OK

CJ2M-EIP21

CJ2M-CPU3@

CJ2M-CPU3@

OK

OK

CJ1W-EIP21(CJ2)

CJ2H-CPU6@-EIP

CJ1W-EIP21

OK

OK

 

CJ2H-CPU6@

 

(CJ2H-CPU6@-EIPand

 

 

CJ2M-CPU3@

 

CJ2M-CPU3@only)

 

 

CJ2M-CPU1@

 

(See note.)

 

CJ1W-EIP21

CJ1 CPU Unit

CJ1W-EIP21

---

OK

 

 

 

 

 

CS1W-EIP21

CS1 CPU Unit

CS1W-EIP21

---

OK

 

 

 

 

 

 

Note Symbols cannot be set for tags withCJ2H-CPU6@andCJ2M-CPU1@CPU

 

Units.

 

 

 

6-1-4Data Link Data Areas

 

 

 

Tags

A data link between the local I/O memory and a remote I/O memory is called

 

a tag. A tag can be set using a network symbol name or an I/O memory

 

address.

 

 

 

Tag Sets

When a connection is established, from 1 to 8 tags (including PLC status) is

 

configured as a tag set. Each tag set represents the data that is linked for a

 

tag data link connection. Tag data links are thus created by connecting one

 

tag set to another tag set. A tag set name must be set for each tag set.

 

Note A connection is used to exchange data as a unit within which data concur-

 

rency is maintained. Thus, data concurrency is maintained for all the data

 

exchanged for the tags in one data set.

 

Example

In the following example, input tags a to g at the originator are a tag set

 

named SP1_IN and output tags i and ii are a tag set named SP1_OUT). A

 

connection is set between these two tag sets.

 

116

 

Overview of Tag Data Links

 

 

 

 

 

Section 6-1

 

 

 

Originator device

 

 

 

Target device

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Connection Information

 

 

 

IP address: #

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

· Target IP address: #

 

 

 

 

 

 

 

 

 

 

 

 

· Originator tag set: SP1_IN

 

 

 

 

 

 

 

 

 

 

 

 

· Target tag set: SP1_OUT

 

 

 

 

 

 

 

 

 

 

 

 

· Packet interval (RPI)

 

 

 

 

 

 

 

 

 

 

 

 

 

Tag Set (Input Tags)

 

 

 

Tag Set (Output Tags)

 

 

 

 

 

 

Tag set name: SP1_IN

 

 

 

Tag set name: SP1_OUT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLC status

 

 

 

 

 

 

PLC status

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tag i

 

 

 

 

 

 

Tag a

 

 

Connection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tag ii

 

 

 

 

 

 

Tag b

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tag c

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tag g

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EtherNet/IP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

There are both input and output tag sets. Each tag set can contain only input

 

 

 

tags or only output tags. The same input tag cannot be included in more than

 

 

 

one input tag set.

 

 

 

 

 

 

 

 

 

 

Number of Tags in Tag

 

Each tag set can contain one or more tags.

 

 

 

 

 

 

 

Sets

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tag Sets with Only One Tag

With basic Network Configurator procedures, each tag set contains only one tag.

One tag each

(Each tag is set using a text string of the network symbol or I/O memory address.)

 

CPU Unit

 

 

 

 

 

 

 

CPU Unit

 

 

 

 

 

Tag set SP1_IN

Tag set SP1_OUT

 

 

 

 

I/O memory

 

 

I/O memory

 

 

 

(tag a)

(tag c)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Connection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

a

 

 

 

Tag set SP2_OUT

Tag set SP2_IN

 

c

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(tag b)

(tag d)

 

 

 

 

 

 

 

 

 

 

Connection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b

 

 

 

 

 

 

 

 

d

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EtherNet/IP

Tag Sets with Multiple Tags

As shown below, tags can be created in groups. Each tag set can contain up to 8 tags totaling 20 words for the CJ2M or 722 words for other CPU Units.

117

Overview of Tag Data Links

Section 6-1

One tag each

(Each tag is set using a text string of the network symbol or I/O memory address.)

 

CPU Unit

 

 

 

 

 

 

CPU Unit

 

 

 

 

Tag set SP1_IN

 

 

 

 

 

I/O memory

 

Tag set SP1_OUT

 

I/O memory

 

 

 

 

(group of tags a, b, and c)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

a

 

 

 

 

 

 

f

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b

 

 

 

 

 

 

g

 

 

 

 

 

 

 

 

 

 

 

 

c

 

Tag set SP2_OUT

 

 

 

h

 

 

 

 

Tag set SP2_IN

 

 

 

 

 

 

(group of tags d, e)

 

 

 

 

 

 

 

Connection

 

 

 

 

 

 

d

 

 

 

i

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

e

 

 

 

 

 

 

j

 

 

 

 

 

 

 

 

 

 

 

EtherNet/IP

Note

The I/O memory words used in tags in a tag set do not have continuous

 

 

addresses. The tags can also be from different I/O memory areas. To enable a

 

 

connection, however, each tag set must include only input tags or only output

 

 

tags. (Both input and output tags cannot be included in the same tag set.)

Specifications

 

The following table shows the tag and tag set specifications.

 

 

 

 

 

Tags

 

Tag sets

 

 

 

 

 

CS1W-EIP21

CJ2M-CPU3@

CS1W-EIP21

 

CJ2M-CPU3@

CJ1W-EIP21

 

 

CJ1W-EIP21

 

 

CJ2H-CPU@@-EIP

 

 

CJ2H-CPU@@-EIP

 

 

Total size of all tags

Total size of all tags 640

Maximum size of 1 tag set

 

Maximum size of 1 tag set

184,832 words

words

722 words

 

20 words

 

 

 

(The maximum size is 721

 

(The maximum size is 19

 

 

 

words when the tag set

 

words when the tag set

 

 

 

includes the PLC status.)

 

includes the PLC status.)

 

 

 

 

 

Maximum size of 1 tag 722

Maximum size of 1 tag 20

Number of tags per tag set 8

 

words

words

(7 tags/tag set when the tag set includes the PLC status)

(The maximum size is 721

(The maximum size is 19

Note Input and output variables cannot be combined.

words when the tag set

words when the tag set

 

 

 

includes the PLC status.)

includes the PLC status.)

 

 

 

 

 

 

 

Number of registrable tags

Number of registrable tags

Number of registrable tag

 

Number of registrable tag

256

32

 

sets 256

 

sets 32

PLC Status

A characteristic function of the CS1W-EIP21andCJ1W-EIP21EtherNet/IP Units and CJ2built-inEtherNet/IP ports is the ability to specify the PLC status as a member of the tag set. This function reads the operating status (operating and error status) of the CPU Unit of the PLC in which the EtherNet/IP Unit is mounted, and includes the PLC status as status flags in the data transferred by the tag data links.

When the PLC status is specified as an output (produce) tag, it is actually transferred as the tag set’s leading data in the following format.

15

14

13

12

11

10

9

 

8

7

6

5

4

3

2

1

0

0

0

0

0

0

0

 

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLC Operating Flag

PLC Error Flag

118

Overview of Tag Data Links

Section 6-1

To receive the PLC status, specify the PLC status in an input (consume) tag in the reception tag set as well. When the PLC status is specified in an input tag, the PLC status flags will be reflected in the corresponding location in the tag data link’s Target Node PLC Operating Flags and Target Node PLC Error Flags. The following example shows the relationship between the Target Node PLC Operating Flag location and target ID of the target node with 192.168.250.2.

IP address = 192.168.250.2 → (Last byte = 2) → Target ID = #002

 

 

Target Node PLC Operating Flags:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

10

9

8

7

6

5

4

3

 

2

1

 

 

0

 

 

 

 

 

n+2

 

15

14

13

12

11

10

9

8

7

6

5

4

3

 

2

1

 

 

 

0

 

 

 

n+3

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

 

16

 

 

n+4

 

47

46

45

44

43

42

41

40

39

38

37

36

35

34

33

 

32

 

 

n+5

 

63

62

61

60

59

58

57

56

55

54

53

52

51

50

49

 

48

 

 

 

CPU Unit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CPU Unit

 

 

 

 

 

 

 

PLC status (when included)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLC status

 

 

 

 

 

 

 

 

 

PLC status

 

PLC status (when included)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Output tag set

 

 

 

Input tag set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I/O memory

 

 

 

 

 

 

 

 

I/O memory

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Connection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

a

 

 

 

 

 

 

 

 

 

 

 

 

 

f

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

g

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

c

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

h

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Target data link status

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EtherNet/IP

Note The target ID may be duplicated depending on the IP addresses of the target nodes. In this case, it is necessary to change the target ID with the Network Configurator. For information on how to change the device number, refer to step 4 underRegistering Devices in the Register Device List onpage 141.

119

Overview of Tag Data Links Section 6-1

The following table shows the operation of each the bits when multiple connections are used to communicate with a node, and the PLC status is specified in all of the connections.

Name (allocated area)

Contents

 

 

Target Node PLC Operating Flag

Each flag indicates the operating status of the

Information

corresponding target node PLC of connections

Layout set to default settings:

in which the EtherNet/IP Unit is the originator.

The flag corresponding to the target node’s

Words n+2 to n+5

target ID will be ON when the PLC Operating

Layout set to user settings:

Flags for all connections with that target node

Words n+32 to n+47

indicate that the PLC is operating.

Note Corresponds to the PLC sta-

Each node address’s flag location (i.e., target

tus’s PLC Operating Flag.

ID) can be changed from the Network Configu-

 

 

rator.

 

The PLC status flags are enabled when the

 

PLC status is included in the communications

 

data for both the originator and target.

 

The data in this table is refreshed when neces-

 

sary.

 

 

Target Node PLC Error Flag Infor-

Each flag indicates the error status (logical OR

mation

of non-fataland fatal errors) of the correspond-

Layout set to default settings:

ing target node PLC of connections in which

the EtherNet/IP Unit is the originator. The flag

Words n+6 to n+9

corresponding to the target node’s target ID

Layout set to user settings:

will be ON if even one error is indicated in any

Words n+48 to n+63

of the connections with that target node.

Note Corresponds to the PLC sta-

Each node address’s flag location (i.e., target

tus’s PLC Error Flag.

ID) can be changed from the Network Configu-

 

 

rator.

 

The PLC status flags are enabled when the

 

PLC status is included in the communications

 

data for both the originator and target.

 

The data in this table is refreshed when neces-

 

sary.

 

 

Normal Target Node Flag Table

Each flag indicates the connection status of

Layout set to default settings:

the corresponding target node PLC of connec-

tions in which the EtherNet/IP Unit is the origi-

Words n+20 to n+23

nator. The flag corresponding to the target

Layout set to user settings:

node’s target ID will be ON when connections

Words n+16 to n+31

are established for all connections with that

Note Does not correspond to the

target node indicate that the PLC is operating.

PLC status.

Each node address’s flag location (target ID)

 

 

can be changed from the Network Configura-

 

tor.

 

The data in this table is refreshed when neces-

 

sary.

Note When the PLC status is not selected in the input (consume) tags, the PLC status information(16-bitdata) can be used as reception data.

120

Setting Tag Data Links

Section 6-2

6-2Setting Tag Data Links

6-2-1Starting the Network Configurator

Procedure

Tag data links are set by using the Network Configurator. Use the following

 

procedure to start the Network Configurator.

 

Starting from the Windows Start Menu

 

To start the Network configurator, select OMRON - CX-One - Network Con-

 

figurator for EtherNet/IP - Network Configurator from the Windows Start

 

Menu.

 

Starting from the IO Table Dialog Box in CX-Programmer

 

To start the Network configurator, select the Unit in the PLC IO Table Dialog

 

Box and select either of the options for Start Special Application from the

 

pop-upmenu. Only operation will be started even ifStart with Settings Inher-

 

ited is selected.

121

Setting Tag Data Links

Section 6-2

Main Window

When the Network Configurator starts, the following window will be displayed.

The Main Window consists of a Hardware List and a Network Configuration Window, as shown in the following diagram.

Network Configuration Window: Displays the layout and network configuration of devices that are set

Hardware List: and monitored. Displays the devices that can

be added to the network.

122

Setting Tag Data Links

Section 6-2

When two or more networks are being managed, a new Network Configuration Window can be added by selecting Network - Add.

To change the name displayed in the Network Tab Page, select Network - Property. The name set in theComment Field of the Network Property Window can be changed.

123

Setting Tag Data Links

Section 6-2

6-2-2Tag Data Link Setting Procedure

The section describes the procedure for setting tag data links (i.e., connection information).

For data links between PLCs, the connection information is set only in the originator, i.e., the node that receives data.

1.Creating a Network Configuration

Register all EtherNet/IP Units or built-inEtherNet/IP ports for which connections will be created in the EtherNet/IP Network Configuration Window. (Refer to6-2-3 Registering Devices.)

Note If a system has already been installed, connect online to the EtherNet/IP network and upload the network configuration. (Refer to6-2-11 Uploading Tag Data Link Parameters.)

2. Creating Connections

Set the connections using one of the following methods.

1)Basic Operation

1-1)Create tags and tag sets for all registered devices (EtherNet/IP Unit or builtin port). (Refer to6-2-4 Creating Tags and Tag Sets.)

1-2)Create a connection for the originator device (i.e., registered device that receives data as input data). (Refer to6-2-5 Connection Settings.)

2)Generating a Connection Using the EtherNet/IP Datalink Tool (Refer to 6-2-5 Connection Settings.)

The EtherNet/IP Datalink Tool is used to create data links between PLCs by specifying I/O memory addresses in the same manner as for Controller Link. The following functions can be used with Network Configurator version 3.10 or higher.

3)Creating Connections Using the Wizard (Refer to 6-2-7 Creating Connections Using the Wizard.)

Create connections between OMRON PLCs following the instructions. Tags and tag sets must be set for all devices before starting the Wizard. (Refer to Basic Operation 1-1.)

Note SelectDevice - Parameters - Wizard from the menus to start operation.

4)Creating Connections by Dragging and Dropping Registered Devices (Refer to 6- 2-8 Creating Connections by Device Dragging and Dropping.)

When a target device is dragged and dropped to the originator device, the Edit Connection Dialog Box will be displayed, and a connection can be created. OMRON EtherNet/IP Units or built-inEtherNet/IP ports are the only originator devices for which connections can be created in this way.

Downloading Tag Data Link Parameters (Refer to 6-2-10 Downloading Tag Data Link

Parameters.)

Check that tag data links are operating correctly by using the indicators on the EtherNet/IP Unit (refer to 14-2 Using the LED Indicators and Display for Troubleshooting for Troubleshooting) and the Network Configurator monitor function (refer to14-1 Checking Status with the Network Configurator).

Check that the output tag data is updated in the input tag by using the CX-Program-mer's Watch Window or PLC memory function.

Note Refer to theCX-Programmer Operation Manual (Cat. No. W446) for the operating procedures.

124

Setting Tag Data Links

Section 6-2

6-2-3Registering Devices

Register all of the devices required in the equipment (such as EtherNet/IP

Units performing tag data links) as a network configuration.

1,2,3... 1. Register the devices that will participate in the tag data links by dragging the devices from the Hardware List and dropping them in the Network Configuration Window. (To drag and drop an icon, click and hold the left mouse button over the icon, move the icon to the destination, and release the mouse button.)

The icon will be displayed in the Network Configuration Window, as shown in the following diagram.

Drag and drop icons from the Hardware List.

Hardware List

Name in hardware list

CIP revision

EtherNet/IP Unit

 

 

 

CJ2B-EIP21

Rev. 2

Built-inEtherNet/IP port on CJ2H

 

 

CPU Unit (CJ2H-CPU@@-EIP)

CJ2M-EIP21

Rev. 2

Built-inEtherNet/IP port on CJ2M

 

 

CPU Unit (CJ2M-CPU3@)

CJ1W-EIP21

Rev. 1 or 2

CJ1W-EIP21EtherNet/IP Unit

 

 

connected to CJ1 CPU Unit

 

 

 

CS1W-EIP21

Rev. 1 or 2

CS1W-EIP21EtherNet/IP Unit

 

 

connected to CJ1 CPU Unit

 

 

 

CJ1W-EIP21(CJ2)

Rev. 2

CJ1W-EIP21EtherNet/IP Unit

 

 

connected to CJ2 CPU Unit

 

 

 

Note (1) If the revision is unknown, select the newest revision (i.e., the revision with the highest number). The following table shows the relation between the CIP revision and the unit version.

Unit version

CIP revision

 

 

Ver. 1.0

Revision 1.01

 

 

Ver. 2.0

Revision 2.01 or 2.02

 

 

(2)When mounting the CJ1W-EIP21to a CJ2 CPU Unit, selectCJ1W-EIP21(CJ2) from the Hardware List.

2.Click the right mouse button over the registered device’s icon to display the pop-upmenu, and selectChange Node Address.

125

Setting Tag Data Links

Section 6-2

3.Set the IP address to match the node address (IP address) actually being used in the device.

4.Repeat steps 1 to 3, and register all of the devices participating in the tag data links.

6-2-4Creating Tags and Tag Sets

Specifying I/O

Memory Addresses

The tag sets and set member tags required to create connections for a registered EtherNet/IP Unit must be created. The I/O memory addresses or network symbols that are used in the control programs can be set for the tags. (Using network symbols is supported only by the CJ2H-CPU6@-EIP21andCJ2M-CPU3@.)This section first describes the basic procedure for creating tags and tag sets for using the Network Configurator's device parameter editing function.

1.Creating Tags and Tag Sets Using the Network Configurator's Device Parameter Editing Function

Next, the following two procedures, which can be used to effectively use network symbols in tags, are described.

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

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

1. Creating Tags and Tag Sets Using the Network Configurator's Device Parameter Editing Function

Note The network symbols described in this section can be used only if you are using aCJ2H-CPU6@-EIP21orCJ2M-CPU3@CPU Unit.

Creating a Tag Set

1,2,3... 1.Double-clickthe icon of the device (for which a tag set is being created) to display the Edit Device Parameters Dialog Box.Right-clickthe icon to display thepop-upmenu, and selectParameter - Edit.

126

Setting Tag Data Links

Section 6-2

2.Click the Tag Sets Tab at the top of the Edit Device Parameters Dialog Box. There are two kinds of tag sets: input (consume) and output (produce).

127

Setting Tag Data Links

Section 6-2

Creating and Adding Tags

3. Click the Edit Tags Button. The Edit Tags Dialog Box will be displayed.

 

Register the input (consume) tags and output (produce) tags separately.

4.Click the In - Consume Tab, and click theNew Button. The Edit Tag Dialog Box will be displayed.

5.In the Name Field, enter the character string for the CPU Unit's I/O memory address or a network symbol (e.g., 100, W100, D0, Input_signal). Addresses in the following I/O memory areas can be set.

CPU Unit’s data area

Address (Text to input in Name Field.)

 

 

 

CIO Area

 

0000 to 6143

 

 

 

Holding Area

 

H000 to H511

 

 

 

Work Area

 

W000 to W511

 

 

 

DM Area

 

D00000 to D32767

 

 

 

EM Area

Bank 0 hex

E0_00000 to E0_32767

 

 

 

 

···

···

 

 

 

 

Bank 18

E18_00000 to E18_32767

 

hex

 

 

 

 

Note (a) The H, W, D, and E characters can also be input in lower case as h, w, d, and e.

128

Setting Tag Data Links

Section 6-2

(b)Be sure to directly enter the CPU Unit's I/O memory address (e.g., 100, W100, D0) or a network symbol as a character string.

6.Input the size of the tag in the Size Field, in bytes.

7.Click the Regist Button to register the tag.

If an I/O memory address is specified for a tag name, the Edit Tags Dialog Box will be displayed with the next consecutive address as the tag name for editing the next tag. Once you have registered the tags, click the Cancel Button.

8.Click the Out - Produce Tab, and click theNew Button. The Edit Tag Dialog Box will be displayed, like the dialog box for input tags, except for theOver Load setting. TheOver Load setting determines whether outputs are cleared or continue their previous status when outputs are turned OFF with the PLC’s Output OFF function. Output inhibit settings are not required for input (reception) tag sets.

Follow the output inhibit function: Enabled (default)

Output data is cleared to 0 when a PLC output inhibit occurs.

Do not follow the output inhibit function: Disabled

Output data maintains its previous status even after a PLC output inhibit occurs.

Select Disable or Enable.

Note When any of the following errors occurs in the originator PLC while tag data links are in progress, the connection will be forcibly disconnected.

Fatal CPU Unit error

I/O refreshing error

CPU Unit WDT error

I/O bus error

129

Setting Tag Data Links

Section 6-2

9.When you are finished registering the required tags, click the OK Button at the bottom of the Edit Tags Dialog Box.

10.At this point, a confirmation dialog box will be displayed to check whether the registered tag names will registered without changes as tag sets. A tag set can contain up to 8 tags, but tag sets will be registered with one tag per tag set if the tags are registered as tag sets. In this case, the Yes Button is clicked to register one tag per tag set.

If the No Button is clicked, more tags can be registered at the end of the tag set. Refer to step 18 for details on adding tags to the end of the tag set.

130

Setting Tag Data Links

Section 6-2

Changing and Registering

Tag Sets

11.The following dialog box will be displayed when the tags in the Edit Tags Dialog Box are registered directly as tag sets.

12.If an input tag has already been registered in an input tag set, and you want to change its registration to a different input tag set, it is necessary to delete the tag from the tag set in which it was originally registered.

131

Setting Tag Data Links

Section 6-2

Open the Edit Device Parameters Dialog Box, select the tag set containing the tag that you want to delete, and click the Delete Button in the Edit Tag Dialog Box. (If there are other tags registered in that tag set, it is possible to delete just one tag by selecting the tag that you want to delete in the Edit

Tag Set Dialog Box and clicking the Button.)

At this point, a confirmation dialog box will be displayed to confirm that you want to delete the selected tag set and the tags contained in that tag set.

If the No Button is clicked, only the tag set will be deleted. Click theNo Button.

132

Setting Tag Data Links

Section 6-2

13.In order to edit a registered tag set and add tags, either double-clickthe tag set, or select the tag set and click theEdit Button. The Edit Tag Set Dialog Box will be displayed.

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. To add a tag,

select it in the Candidate Tag List and click theButton.

14.When the PLC status is being included in the tag set, select the Include Option at theupper-rightcorner of the dialog box.

15.If you want to change the tag set’s name, it can be changed in this dialog box.

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

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

133

Setting Tag Data Links

Section 6-2

18.If you want to just add new tags and register the tag set, first register the tags with steps 1 to 9. In this example, input tags D00004 and D00005 have been newly added.

19.When you are finished registering the required tags, click the OK Button at the bottom of the Edit Tags Dialog Box.

20.At this point, a confirmation dialog box will be displayed to check whether the registered tag names will be registered without changes as tag sets. Tags are just being added in this case, so click the No Button. Just the tags will be registered, without registering the tags as tag sets.

134