Parameter data transfer

–
The acyclic/non-cyclic data access (service access) provides a procedure for the PLC (scanner) to access any drive or device parameter.
 
–
This type of parameter access is typically used for ...
 
–
monitoring or the not time-controlled parameter access with low priority;
 
–
writing parameter data of the inverter (adapter).
 
 
–
For this purpose, the inverter supports several methods.
 
 
Explicit Messaging
An explicit message is a logic instruction in the PLC program for the message transfer. It can be used to read or write a parameter setting or the data of an EtherNet/IP node (assembly data).
If the Allen-Bradley control systems»CompactLogix™«, »ControlLogix®« and »SoftLogix™« are used, the "Explicit Message" instruction provides the functionalities described in the following sections. Further PLC types can be found in the programming documentation of the PLC.
General drive variables (parameters and subindices) are contained in class "0x6E". The instance is the index number of the parameter and the attribute is the subindex number. If no subindex is available, the attribute must be set to "0". The attribute value "1" is only supported for those clients that do not support the attribute value "0".
All these variables have the data type SINT (8 bit, 1-byte objects), INT (16 bit, 2-byte objects) or DINT (32 bit, 4-byte objects).
The device parameters and the PLC program variables must have the same data lengths!
 
Read parameter value
Definitions to read a parameter value (Adapter 
à
 Scanner):
–
Message Type = CIP Generic
 
–
Service Code = 0x0E (read parameter, Get_Attribute_Single)
 
–
Class= 0x6E (hex)
 
–
Instance= index number of the parameter
 
–
Attribute= parameter subindex number (or 0x01 in case of no subindex)
 
–
Destination Element= target variable in the PLC (scanner) for the parameter data to be read.
The variable must have the same format and data length as the parameter!
 
 
Write parameter value
Definitions to write a parameter value (Scanner 
à
 Adapter):
–
Message Type = CIP Generic
 
–
Service Code = 0x10 (write parameter, Set_Attribute_Single)
 
–
Class= 0x6E
 
–
Instance= index number of the parameter
 
–
Attribute= parameter subindex number (or 0x01 in case of no subindex)
 
–
Source Element = variable in the PLC (scanner) which is used as source of the parameter data to be written.
 
–
Source Length= data length (bytes) of the data to be written
 
 
Write variables "TorqueScale" and "Drive_Mode"
The variables "TorqueScale" and "Drive_Mode" are AC drive profile objects
They are defined in the CIP library:
Variable
Class
Instance
Attribute
Data type
Size
Drive_Mode
2a
1
6
SINT
1 byte
TorqueScale
2a
1
18
SINT
1 byte
–
Drive_Mode
The variable "Drive_Mode" has two valid settings:
 
–
1: Velocity Mode
 
–
3: Torque Mode
 
 
–
TorqueScale
The variable "TorqueScale" refers to the real torque command by the following equation:
Torque reference in TorqueScale = Nm * 2TorqueScale
Due to the setting of TorqueScale = 0, the torque reference (assembly output object 23, bytes 4/5) is the real torque (= Nm * 20 = Nm * 1  = Nm).
Loading the value "2" as torque reference determines a torque limit of the drive of 2 Nm.
 
 
CIP Generic Master(read/write assembly data)
For "CIP Generic Master" that do not support the Implicit Messaging (class 1), the assembly data can be read or written via Explicit Messaging (class 3).
Definitions to read assembly data (Adapter 
à
 Scanner):
–
Message Type = CIP Generic
 
–
Service Code = 0x0E (read assembly data, Get_Attribute_Single)
 
–
Class= 0x04
 
–
Instance= assembly number in the desired device (e. g. 73 for assembly "73")
 
–
Attribute= 0x03
 
–
Destination Element= target array in the PLC (scanner) for the assembly data to be read.
The array must have the INT format and the same data length as the desired assembly!
 
Definitions to write assembly data (Scanner 
à
 Adapter):
–
Message Type = CIP Generic
 
–
Service Code = 0x10 (write assembly data, Set_Attribute_Single)
 
–
Class= 0x04 (hex)
 
–
Instance= assembly number in the desired device (e. g. 23 for assembly "23")
 
–
Attribute= 0x03
 
–
Source Element = INT array in the PLC (scanner), that is used as source of the assembly data to be written.
 
–
Source Length= data length (bytes) of the INT array to be written (the assembly "23" contains e. g. 3 words which corresponds to 6 bytes.)
 
 
Explicit Message Path
For each explicit message, the path must be specified in order to forward the message from the Ethernet port of the PLC (scanner) to the IP address of the inverter (adapter). This path depends on the used PLC. If required, contact the PLC manufacturer to find out how the path is specified.
 
Explicit Messaging Timeout
In order to prevent that the inverter runs continuously, a time-out error state can be set.
For this purpose, set these parameters:
–
 
–
0x2859:007 (P515.07): Timeout communication