Skip to content

CIP Library

Jeremy edited this page Jul 26, 2023 · 26 revisions

LLCIP

Overview

This collection of diagnostic instructions align to their corresponding Common Industrial Protocol object.

Common Objects and Functions

  • Identity (0x01)
  • MesageRouter (0x02)
  • DeviceNet (0x03)
  • Assembly (0x04)
  • Connection (0x05)
  • Connection Manager (0x06)
  • Register (0x07
  • Discrete Input Point (0x08)
  • Discrete Output Point (0x09)
  • Analog Input Point (0x0A)
  • Analog Output Point (0x0B)
  • Presence Sensing (0x0E)
  • Parameter (0x0F)
  • Parameter Group (0x10)
  • Group (0x12)
  • Discrete Input Group (0x1D)
  • Discrete Output Group (0x1E)
  • Discrete Group (0x1F)
  • Analog Input Group (0x20)
  • Analog Output Group (0x21)
  • Analog Group (0x22)
  • Position Sensor (0x23)
  • Position Controller Supervisor (0x24)
  • Position Controller (0x25)
  • Block Sequencer (0x26)
  • Command Block (0x27)
  • Motor Data (0x28)
  • Control Supervisor (0x29)
  • ACDC Drive (0x2A)
  • Acknowledge Handler (0x2B)
  • Overload (0x2C)
  • Soft Start (0x2D)
  • Selection (0x2E)
  • S-Device Supervisor (0x30)
  • S-Analog Sensor (0x31)
  • S-Analog Actuator (0x32)
  • S-Single Stage Controller (0x33)
  • S-Gas Calibration (0x34)
  • Trip Point (0x35)
  • File (0x37)
  • S-Partial Pressure (0x38)
  • Safety Supervisor (0x39)
  • Safety Validator (0x3A)
  • Safety Discrete Output Point (0x3B)
  • Safety Discrete Output Group (0x3C)
  • Safety Discrete Input Point (0x3D)
  • Safety Discrete Input Group (0x3E)
  • Safety Dual Channel Output (0x3F)
  • S-Sensor Calibration (0x40)
  • Event Log (0x41)
  • Motion Device Axis (0x42)
  • Time Sync (0x43)
  • Modbus (0x44)
  • Originator Connection List (0x45)
  • Modbus Serial Link (0x46)
  • Device Level Ring (0x47)
  • QoS (0x48)
  • Safety Analog Input Point (0x49)
  • Safety Analog Input Group (0x4A)
  • Safety Dual Channel Analog Input (0x4B)
  • SERCOS III Link (0x4C)
  • Target Connection List (0x4D)
  • Base Energy (0x4E)
  • Electrical Energy (0x4F)
  • Non-Electrical Energy (0x50)
  • Base Switch (0x51)
  • SNMP (0x52)
  • Power Management (0x53)
  • RSTP Bridge (0x54)
  • RSTP Port (0x55)
  • PRP (0x56)
  • PRP Nodes Table (0x57)
  • Safety Feedback (0x58)
  • Safety Dual Channel Feedback (0x59)
  • Safety Stop Functions (0x5A)
  • Safety Limit Functions (0x5B)
  • Power Curtailment (0x5C)
  • CIP Security (0x5D)
  • EtherNet/IP Security (0x5E)
  • Certificate Management (0x5F)
  • Authority (0x60)
  • Password Authenticator (0x61)
  • Certificate Authenticator (0x62)
  • ControlNet (0xF0)
  • ControlNet Scheduling (0xF2)
  • Connection Configuration (0xF3)
  • Port (0xF4)
  • TCPIP Interface (0xF5)
  • Ethernet Link (0xF6)
  • CompoNet Link (0xF7)
  • CompoNet Repeater (0xF8)
  • HART Master Port (0xF9)
  • IO Aggregation (0xFA)
  • Protection Trip (0x100)
  • Protection Alarm (0x101)
  • Circuit Breaker Supervisor (0x102)
  • Circuit Breaker Statistics (0x103)
  • Electrical Demand (0x104)
  • Electrical Statistics (0x105)
  • Machine Base Data (0x106)
  • HART Process Device (0x107)
  • Process Device Diagnostics (0x108)
  • LLDP Management (0x109)
  • LLDP Data Table (0x10A)
  • IO-Link Service Parameter (0x10B)
  • IO-Link Master PHY (0x10C)
  • IO-Link Device PHY (0x10D)
  • Pilot Light Supervisor (0x10E)
  • Select Line Link (0x10F)
  • In-Cabinet Actual Topology (0x110)
  • In-Cabinet Commissioning (0x111)

0x01: Identity

Enumerated by the ST_Sys_Identity UDT (52 bytes):

  • VendorID (UINT, attribute 1)
  • DeviceType (UINT, attribute 2)
  • ProductCode (UINT, attribute 3)
  • MajorRevision (USINT, attribute 4)
  • MinorRevision (USINT, attribute 4)
  • Status (UINT, attribute 5)
  • SerialNumber (UDINT, attribute 6)
  • ProductName (STR_32, attribute 7)

CIP_GetAttrAll_Identity

Unpacks the response bytes of a GET_ATTRIBUTES_ALL service request of the Identity Object into a UDT instance.

image

0xF4: Port

Enumerated by the ST_Sys_Port UDT (240 bytes):

  • Type (UINT, attribute 1)
  • Number (UINT, attribute 2)
  • LinkObjectPath (STR_12, attribute 3)
  • Name (STR_64, attribute 4)
  • TypeName (STR_64, attribute 5)
  • NodeAddress (SINT[82]), attribute 7)

CIP_GetAttrAll_Port

Unpacks the response bytes of a GET_ATTRIBUTES_ALL service request of the Port Object into a UDT instance.

image

0xF5: TCP/IP Interface

Enumerated by the ST_Sys_TCPIPInterface UDT (156 bytes):

  • Status (UDINT, attribute 1)
  • Capability (UDINT, attribute 2)
  • Control (UDINT, attribute 3)
  • IPAddress (UDINT, attribute 5)
  • IPMask (UDINT, attribute 5)
  • IPGateway (UDINT, attribute 5)
  • DNS1 (UDINT, attribute 5)
  • DNS2 (UDINT, attribute 5)
  • DomainName (STR_48, attribute 5)
  • HostName (STR_64, attribute 6)

CIP_GetAttrAll_TCPIPInterface

Unpacks the response bytes of a GET_ATTRIBUTES_ALL service request of the TCPIP Interface Object into a UDT instance.

image

0xF6: Ethernet Link

Enumerated by the ST_Sys_EthernetLink UDT (160 bytes):

  • Speed (UDINT, attribute 1)
  • Flags (UDINT, attribute 2)
  • PhysicalAddress (USINT[6], attribute 3)
  • InOctets (UDINT, attribute 4)
  • InUnicastPackets (UDINT, attribute 4)
  • InNonUnicastPackets (UDINT, attribute 4)
  • InDiscards (UDINT, attribute 4)
  • InErrors (UDINT, attribute 4)
  • InUnknownProtocol (UDINT, attribute 4)
  • OutOctets (UDINT, attribute 4)
  • OutUnicastPackets (UDINT, attribute 4)
  • OutNonUnicastPackets (UDINT, attribute 4)
  • OutDiscards (UDINT, attribute 4)
  • OutErrors (UDINT, attribute 4)
  • AlignmentErrors (UDINT, attribute 5)
  • FCSErrors (UDINT, attribute 5)
  • SingleCollisions (UDINT, attribute 5)
  • MultipleCollisions (UDINT, attribute 5)
  • SQETestErrors (UDINT, attribute 5)
  • DeferredTransmissions (UDINT, attribute 5)
  • LateCollisions (UDINT, attribute 5)
  • ExcessiveCollisions (UDINT, attribute 5)
  • MACTransmitErrors (UDINT, attribute 5)
  • CarrierSenseErrors (UDINT, attribute 5)
  • FrameTooLong (UDINT, attribute 5)
  • MACReceiveErrors (UDINT, attribute 5)
  • ControlBits (UINT, attribute 6)
  • ForcedSpeed (UINT, attribute 6)
  • Type (USINT, attribute 7)
  • State (USINT, attribute 8)
  • AdminState (USINT, attribute 9)
  • Label (STR_32, attribute 10)

CIP_GetAttrAll_EthernetLink

Unpacks the response bytes of a GET_ATTRIBUTES_ALL service request of the Ethernet Link Object into a UDT instance.

image