how to add custom object ?

7 posts / 0 new
Last post
953313493@qq.com
how to add custom object ?

How to set custom object with xml edit?

is there any example ?

953313493@qq.com

if set is like follow

<SetRequest>
<SetRequestNormal>
<!-- Priority: Normal, ServiceClass: UnConfirmed, ID: 12 -->
<InvokeIdAndPriority Value="0C" />
<AttributeDescriptor>
<!-- Data -->
<ClassId Value="0001" />
<!-- 0.0.96.80.2.255 -->
<InstanceId Value="0000605002FF" />
<AttributeId Value="02" />
</AttributeDescriptor>
<Value>
<Array Qty="01" >
<Structure Qty="03" >
<String Value="task_item" />
<Enum Value="01" />
<Array Qty="03" >
<Structure Qty="02" >
<String Value="id" />
<String Value="19" />
</Structure>
<Structure Qty="02" >
<String Value="task_id" />
<String Value="1" />
</Structure>
<Structure Qty="02" >
<String Value="status" />
<String Value="1" />
</Structure>
<Structure Qty="02" >
<String Value="type" />
<String Value="1" />
</Structure>
<Structure Qty="02" >
<String Value="name" />
<String Value="hello word" />
</Structure>
<Structure Qty="02" >
<String Value="corn" />
<String Value="111111" />
</Structure>
</Array>
</Structure>
</Array>
</Value>
</SetRequestNormal>
</SetRequest>

953313493@qq.com

and how to set if i have to read with some args?

Kurumi
Kurumi's picture

Hi,

Is the amount of the structures 5 instead of 3?
<Array Qty="03" >

What kind of arguments do you want to use for reading? Data objects are usually read without parameters.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

953313493@qq.com

I am sorry, <Array Qty =“ 06”>

I want to read like in xml client read , so how should I input in the GXDLMSDirector

953313493@qq.com

or like follow , how shoud i input in GXDLMSDirector
<SetRequest>
<SetRequestNormal>
<InvokeIdAndPriority Value="68" />
<AttributeDescriptor>
<ClassId Value="1" />
<InstanceId Value="0000605001FF" />
<AttributeId Value="2" />
</AttributeDescriptor>
<Value>
<Structure Qty="3">
<String Value="task" />
<Enum Value="1" />
<Array Qty="1">
<Structure Qty="2">
<Array Qty="1">
<Structure Qty="2">
<Enum Value="0" />
<String Value="30" />
</Structure>
</Array>
<Array Qty="1">
<Structure Qty="2">
<Enum Value="1" />
<String Value="1phase_task" />
</Structure>
<Structure Qty="2">
<Enum Value="2" />
<String Value="1" />
</Structure>
</Array>
</Structure>
</Array>
</Structure>
</Value>
</SetRequestNormal>
</SetRequest>

Kurumi
Kurumi's picture

Hi,

You don't need to do anything. If you just read the value from the meter you can see it like the picture below. After the read, you can modify it and write back.

BR,
Mikko

Image: 

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi