Switch User Manual

E6581741
- 36 -
4.10. Port Object (0xF4)
Class code 0xF4.
The Port Object enumerates the CIP ports present on the device.
One instance exists for each CIP port.
Class Attributes
Instance Attribute ID Access Name Data type Details Value
1 Get Revision UINT Revision of this object
1
2 Get Max Instances UINT Maximum instance number of an
object currently created in this class
level of the device.
1
3 Get Number of Instances UINT Number of object instances currently
created at this class level of the
device.
1
6 Get Max ID of class
attributes
UINT The attribute ID number of the last
class attribute of the class definition
implemented in the device.
9
7 Get Max ID of instance
attribute
UINT The attribute ID number of the last
instance attribute of the class
definition implemented in the device.
7
8 Get Entry Port UINT Returns the instance of the Port
Object that describes the port
through which this request entered
the device.
1
0
9 Get All Ports STRUCT
of
Port Type
Port
Number
Array of structures containing
instance attributes 1 and 2 from
each instance.
0000
0000
0000
0200
Note: Attribute 9
00 00 00 00 -> port type = 0 (Connection terminated) / instance number = 0 (class)
00 00 02 00 -> port type = 2 (TCP/IP Port) / port number = 2
Class Services
Service Code Service Name Description of Service
0x01 Get_Attribute_All Read all attributes
0x0E Get_Attribute_Single Read one attribute
Instance 1 Attribute
Instance Attribute ID Access Name Data type Details Value
1 Get Port Type UINT Enumerate the type of port.
(0 = TCP/IP)
0
2 Get Port Number UINT CIP port associated with this port
(identify each communication port).
Value ‘1’ is reserved.
2
3 Get Link Object STRUCT
of
UINT
Padded
EPATH
Identify Object attached to this port.
For EtherNet/IP, this path
corresponds to TCP/IP Interface
object.
02 00
20 F5
24 01
4 Get Port Name SHORT_
STRING
String which names the port.
11, EtherNet/IP
0B 45
74 68
65 72
4E 65
74 2F
49 50
1
7 Get Node address Padded
EPATH
Node number of this device on port.
The range within this data type is
restricted to a Port Segment.
-
Instance Services
Service Code Service Name Description of Service
0x01 Get_Attribute_All Read all attributes
0x0E Get_Attribute_Single Read one attribute