• SBI-COP/DN-AGy Card
Instruction Manual
Eng
lish
B) Read Drive Parameter
In this example is shown the reading of a Drive parameter; the cases of
positive or wrong reading are distinguished.
B-1) Read Drive Parameter Request
The data frame for the Drive parameter reading is composed as follows:
DATA TYPE
FIELD
VALUE
MEANING
Byte
Service Code
32hex
Get Drive Parameter - Object Specific Service.
See Note
1)
Class ID
66hex
Drive Parameter Access Class Object.
See Note
1)
Instance ID
XXXX
Drive Parameter Index in format Lowbyte-High byte.
dn375
1) Byte or Word depending on the type of allocation executed by the Master.
B-2) Read drive parameter - Reply OK
If the Drive parameter is read correctly, the response is:
DATA TYPE
FIELD
VALUE
MEANING
Byte
Service Code
32hex
Get Drive Parameter Reply code- Object Specific
Service.
Word
Result
0
Result field equal to zero means reading correctly
executed.
Low byte-Low word drive parameter value.
High byte-Low word drive parameter value.
Low byte-High word drive parameter value.
High byte-High word drive parameter value.
dn380
XX
Byte
1)
VALUE
1) The number of bytes of the Value-field depends on the length of the Drive parameter;
i.e. if the Drive parameter type is “Integer” the length of VALUE is 2 bytes.
B-3) Read drive parameter - Reply Error
If Drive parameter reading is rejected, the response is the following:
DATA TYPE
FIELD
VALUE
MEANING
Byte
Service Code
32hex
Get Drive Parameter Reply code- Object Specific
Service.
Word
Result
XXXX
1
Drive specific error code.
dn385
1) For error codes see table 4.4.1 .
Table 4.4.1: Error codes for the parameter access
RESULT
VALUE MEANING
DB_E_ OK
0
No error
DB_E_ NO_IPA
-1
Parameter not exist
DB_E_SYSERR
-2
Generic error
DB_E_READONLY
-4
Attempt to write a read only parameter
DB_E_NOTWRITENOW
-5
Attempt to write a parameter when not allowed
DB_E_MINMAXVAL
-6
Value exceed limit value