2 Instruction Descriptions
2-718
NJ-series Instructions Reference Manual (W502)
* A hop is routing between the sending node and receiving node. For example, if the route path is
02\192.168.250.2\01\#00, the message is first routed to the node with an IP address of 192.168.250.2 to send
the message to unit address 00. This involves one hop.
Refer to the following manuals for details on CIP communications.
• NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (Cat. No. W506)
Path information size • If there are no hops, the path information size is 0 bytes.*
• If there are hops, the path information size is the route path size plus 12
bytes.
• The route path size is the bytes size of the ASCII characters in the route
path.
• However, the following precautions apply.
• If the address portion starts with “#”, calculate the network and address
portions as a total of 2 bytes.
• If the address portion does not start with “#”, calculate the network portion
as 2 bytes.
• If the address portion does not start with “#” and the number of bytes in
the ASCII characters for the address portion is an odd number, add 1
byte.
• Do not include the level separator, “\”, between levels of the route path in
the route path size.
• Do not include the first hop in the route path size.
Example 1: When the Route Path Is 01\#11\02\192.168.250.2\01\#01
• The first hop in the route path size is not included, so ignore ‘01\#11’ at
the start of the path.
• The network type is ‘02’, so use 2 bytes in the calculation.
• The address portion is ‘192.168.250.2’, so use 13 bytes in the calculation.
It is an odd number, so 1 is added to make 14 bytes.
• For the following ‘01\#01’, the address portion starts with “#”, so the net-
work and address portions are calculated as a total of 2 bytes.
• If you add all of the above sizes, the size of the route path is 18 bytes.
• If we then add 12 bytes to the route path size, the path information size is
30 bytes.
Example 2: When the Route Path Is 02\192.168.250.2\01\#00
• The first hop in the route path size is not included, so ignore
‘02\192.168.250.2’ at the start of the path.
• For the following ‘01#01’, the address portion starts with “#”, so the net-
work and address portions are calculated as a total of 2 bytes.
• Therefore, the size of the route path is 2 bytes.
• If we then add 12 bytes to the route path size, the path information size is
14 bytes.
Example 3: When the Route Path Is 02\192.168.250.2
• If there are no hops, the path information size is 0 bytes.
Related System-defined Variables
Name Meaning
Data
type
Description
_EIP_EtnOnlineSta Online BOOL Status of built-in EtherNet/IP port communications
TRUE: Can be used.
FALSE: Cannot be used.
Additional Information
Item in above formula Meaning