Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
Item in above formula
Path information size
*1 With a CPU Unit with unit version 1.10 or earlier or Sysmac Studio version 1.14 or lower, the values are as fol-
lows:
Attribute ID used: 12 bytes
Attribute ID not used: 8 bytes
*2 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.
2-1038
• 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.
Meaning
*2

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents