HomeKnowledgeUplink and downlink byte length calculation and address assignment method for I/O modules under the EtherNet/IP protocol

Uplink and downlink byte length calculation and address assignment method for I/O modules under the EtherNet/IP protocol

2024-04-28
Uplink and downlink byte length calculation and address assignment method for I/O modules under the EtherNet/IP protocol

↑ Solidot EtherNet/IP Coupler KitXB6-EI2002ST


1. digital I/O modules under the EtherNet/IP protocol

Each module is allocated a 4-byte data unit; each channel occupies 1 bit. The actual data length used varies with the number of channels on the module.


2. Analog I/O modules under the EtherNet/IP protocol

Each module is allocated a 16-byte data unit. Each channel occupies 2 bytes. The actual data length used varies with the number of channels on the module.

The data length allocation is shown in the following table:

Module Model

Upstream process data length (bytes)

Downstream process data length (bytes)

Assigned value

Actual value used

Assigned value

Actual value used

XB6-EI0002ST

4

4

-

-

XB6-3200A/B

4

4

-

-

XB6-1600A/B

4

2

-

-

XB6-0800A/B

4

1

-

-

XB6-0032A/B

-

-

4

4

XB6-0016A/B

-

-

4

2

XB6-0008A/B

-

-

4

1

XB6-1616A/B

4

2

4

2

XB6-0012J

-

-

4

2

XB6-VT16

-

-

4

2

XB6-A80V

16

16

-

-

XB6-A40V

16

8

-

-

XB6-A80I

16

16

-

-

XB6-A40I

16

8

-

-

XB6-A08V

-

-

16

16

XB6-A04V

-

-

16

8

XB6-A08I

-

-

16

16

XB6-A04I

-

-

16

8

XB6-A80TM

16

16

16

16

XB6-A40TM

16

8

16

8

XB6-P20D

20

20

16

12

XB6-P20DS

20

20

2

2

XB6-P04A

24

24

36

36

XB6-C01SP

40

40

40

40

note: The upstream and downstream byte lengths are calculated based on the allocated values. If the allocated value for a module is greater than the actual value, the excess byte addresses are reserved and have no practical meaning. For example, the XB6-1600A requires 4 upstream bytes to be allocated, but the actual 16 points occupy 2 upstream bytes, so the excess 2 upstream bytes are reserved.


The coupler is allocated 4 bytes of data, used for coupler status indication and alarms, and for defining the backplane bus status indication and topology comparison prompts. The coupler occupies the first 4 bytes of the upstream (input) addresses. The communication normal status feedback word is 4 and 0.

Backplane bus status indication:

Status value

Status definition

Description

1

Backplane bus initialization

Backplane bus initialization phase

2

Backplane bus ready state

Backplane bus pre-connected; only parameter download is performed

4

Backplane bus enabled state

Backplane bus connection enabled; process data exchange is performed


Topology status comparison indication:

Status value

Explanation

0

Topology comparison OK

1

An I/O module type mismatch exists in the topology

2

No topology configured

3

A missing I/O module exists in the topology

4

An excess I/O module exists in the topology

5

An I/O module type not supported by the coupler exists in the topology


example:

1. Taking a KEYENCE master as an example, configure and calculate the upstream (input) and downstream (output) byte lengths of the modules as follows:

XB6-P2000H (the power supply module does not occupy input/output length)

XB6-EI0002ST(occupies 4 bytes of input)

XB6-3200A(occupies 4 bytes of input)

XB6-1600A(occupies 4 bytes of input)

XB6-0016A(occupies 4 bytes of output)

XB6-0032B(occupies 4 bytes of output)

XB6-A40I(occupies 16 bytes of input)

XB6-A08V(occupies 16 bytes of output)

XB6-A40TM(occupies 16 bytes of input and 16 bytes of output)

XB6-C01SP(occupies 40 bytes of input and 40 bytes of output)

XB6-CVR00(the End cover does not occupy input or output length; it must be fitted and pressed firmly in place during actual use)

In summary, the calculated upstream byte length is 84, and the downstream byte length is 80.

Uplink and downlink byte length calculation and address assignment method for I/O modules under the EtherNet/IP protocol


2. Configure the I/O modules; the model and position must match the actual hardware:

Uplink and downlink byte length calculation and address assignment method for I/O modules under the EtherNet/IP protocol


3. Upstream address assignment:

Uplink and downlink byte length calculation and address assignment method for I/O modules under the EtherNet/IP protocol


4. Downstream address assignment:

Uplink and downlink byte length calculation and address assignment method for I/O modules under the EtherNet/IP protocol

note: The low 8 bits of W036 are the compensation temperature for XB6-A40TM channel 1, and the high 8 bits are the compensation temperature for XB6-A40TM channel 2; the low 8 bits of W037 are the compensation temperature for XB6-A40TM channel 3, and the high 8 bits are the compensation temperature for XB6-A40TM channel 4.

Uplink and downlink byte length calculation and address assignment method for I/O modules under the EtherNet/IP protocol