AKD2G Examples of Explicit Messaging

Example 1: Set an axis-specific non-array parameter

Definition:

Message Type CIP Generic
Service Type Set Attribute Single
Service Code 0x10 (write value)
Class 0x64
Instance Number Axis Number (1 or 2)
Attribute Parameter Number (In Hex for Studio 5000 MSG instruction)

Example: AXIS2.GUI.PARAM01

ID Instance Attribute Name Data Type Access User Mappable
70936 2 0x1518 AXIS2.GUI.PARAM01 Signed32 Read/Write Yes

 

Message Type CIP Generic
Service Type Set Attribute Single
Service Code 0x10
Class 0x64
Instance Number Axis Number = 2
Attribute 0x1518 (5400 decimal)

Example 2: Get an axis-specific non-array parameter

Definition:

Message Type CIP Generic
Service Type Get Attribute Single
Service Code 0xE (read value)
Class 0x64
Instance Number Axis Number (1 or 2)
Attribute Parameter Number (In Hex for Studio 5000 MSG instruction)

Example: AXIS2.GUI.PARAM01

ID Instance Attribute Name Data Type Access User Mappable
70936 2 0x1518 AXIS2.GUI.PARAM01 Signed32 Read/Write Yes

 

Message Type CIP Generic
Service Type Get Attribute Single
Service Code 0xE
Class 0x64
Instance Number Axis Number = 2
Attribute 0x1518 (5400 decimal)

Example 3: Set an axis-specific array parameter

Definition:

Message Type CIP Generic
Service Type Set Attribute Single
Service Code 0x10 (write value)
Class 0x64
Instance Number Array Index * 100 + Axis ID
Attribute Parameter Number (In Hex for Studio 5000 MSG instruction)

Example: Axis 1, MT.P Task 3

ID Instance Attribute Name Data Type Access User Mappable
6307 1 0x18a3 AXIS1.MT.P Signed32[32] Read/Write Yes

This is an axis-specific parameter but also an array type (of elements 0 to 31).

Axis ID 1
Array Index Task Number = 3
Instance Number Array Index * 100 + Axis ID
Instance Number 3 * 100 + 1 = 301
Attribute 0x18A3 (6307 decimal)

Example 4: Get an axis-specific array parameter

Definition:

Message Type CIP Generic
Service Type Get Attribute Single
Service Code 0xE (read value)
Class 0x64
Instance Number Array Index * 100 + Axis ID
Attribute Parameter Number (In Hex for Studio 5000 MSG instruction)

Example: Axis 1, MT.P Task 3

ID Instance Attribute Name Data Type Access User Mappable
6307 1 0x18a3 AXIS1.MT.P Signed32[32] Read/Write Yes

This is an axis-specific parameter but also an array type (of elements 0 to 31).

Axis ID 1
Array Index Task Number = 3
Instance Number Array Index * 100 + Axis ID
Instance Number 3 * 100 + 1 = 301
Attribute 0x18A3 (6307 decimal)

Example 5: Set a drive level (axis-independent) parameter

Definition:

Message Type CIP Generic
Service Type Set Attribute Single
Service Code 0x10 (write value)
Class 0x64
Instance Number Ignored (Set to 1)
Attribute 0xc80 (3200 decimal)

Example: USER.INT1

ID Instance Attribute Name Data Type Access User Mappable
3200 1 0xc80 USER.INT1 Signed16 Read/Write Yes
Message Type CIP Generic
Service Type Set Attribute Single
Service Code 0x10 (write value)
Class 0x64
Instance Number Ignored (Set to 1)
Attribute 0xc80 (3200 decimal)

Example 6: Get a drive level (axis-independent) parameter

Definition:

Message Type CIP Generic
Service Type Get Attribute Single
Service Code 0xE (read value)
Class 0x64
Instance Number Ignored (Set to 1)
Attribute Parameter Number (In Hex for Studio 5000 MSG instruction)

Example: VBUS.VALUE

ID Instance Attribute Name Data Type Access User Mappable
2500 1 0x9c4 VBUS.VALUE Signed32 Read Only Yes
Message Type CIP Generic
Service Type Get Attribute Single
Service Code 0xE
Class 0x64
Instance Number Ignored (Set to 1)
Attribute 0x9c4 (2500 decimal)