30 • vacon
nx interface
Tel.+358-(0)201-21
Tel. +358 (0)201 2121 • Fax +358 (0)201 212 205
7
7.8
Anyparameter service
SDO protocol can be used to read any parameter or actual value and write any parameter from drive.
These parameters are read from drive with it’s ID number specified in user manual. There are three
index in object dictionary as follow for anyparameter service.
Index Description
Size
Type
Hi 16b
Low 16b
2000
AnyparameterReadID
U16
RW
-
Read ID
2001
AnyparameterReadValu
e
U32
RO
Status
Value
2002
AnyparameterWrite
U32
RW
ID
Write Value
Reading anyparameter
Writing new value to index 2000 will trigger read event, while read is in process index 2001 is zero.
Read event will return value to index 2001. If read is succes status will get value of ID and Value is
value of ID. If read fails Status will get value 0xFFFF (dec 65535).
Writing anyparameter
When new ID and value is written to index 2002 a write event will be triggered. Index 2002 value will
remain as long as writing is processed (normal sdo/pdo operation during this time). If write is succes
index 2002 ID and value will be cleared and new write is possible. If write fails ID will clamp to 0xFFFF
and value zero.
Figure 7-1. Reading Any Parameter
Figure 7-2. Writing Any Parameter
Write ID with SDO protocol
0x0066
Index 2000
Index 2001
Read value with SDO protocol
0xFFFF 0x0000 = Fail
ID Value = OK
0x000 0x0000 = In process
16bit
16bi
16bit
.
. 100ms delay for read event
.
0x0066
0x0032
Status
Value
Write ID and value with SDO
protocol
Index 2002
Index 2002
Read write event status
0x0000 0x0000 = OK,
0xFFFF 0x0000 = Fail
0x0066 0x003c = In Process
16bi
16bit
.
. 100ms delay for write event
.
0x0000
0x0000
Status
16bi
16bit
0x0066
0x003C
ID
Value
Read ID