Echelon i.LON SmartServer 2.0 Manual de usuario Pagina 290

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 443
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 289
i.LON SmartServer 2.0 Programmer’s Reference
17-7
<UCPTname>Net/Virtual Channel/Virtual Device</UCPTname>
</Item>
</iLonItem
</Set>
Response
<SetResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>Net/Virtual Channel/Virtual Device</UCPTname>
</Item>
</iLonItem>
</SetResponse>
17.2.4
Using the Delete Function on Virtual Devices
You can use the Delete function to delete a Virtual device on the SmartServer. The Delete function
takes an <Item> element with a Virtual_Device_Cfg type as its input. The <Item> element only needs
to include the device’s <UCPTname> property in the Delete Request as demonstrated in the following
code sample:
Request
<Delete xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="Virtual_Device_Cfg">
<UCPTname>Net/Virtual Channel 1/Virtual Device</UCPTname>
</Item>
</iLonItem>
</Delete>
Response
<DeleteResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>Net/Virtual Channel 1/Virtual Device</UCPTname>
</Item>
</iLonItem>
</Delete>
17.3
Virtual Functional Blocks
Before you can add data points to a Virtual device, you need to use the Set function to create a virtual
functional block under the Virtual device. This virtual functional block is used to encapsulate the
virtual data points and enable the Virtual driver to adhere to the network hierarchy naming convention.
The Set function takes an <Item> element with a Virtual_Fb_Cfg type as its input, as shown in the
example below.
Request (add a virtual functional block to a Virtual device)
<Set xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="Virtual_Fb_Cfg">
<UCPTname>Net/Virtual Channel 1/Virtual Device/VirtFb</UCPTname>
</Item>
</iLonItem>
</Set>
Response
<SetResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>Net/Virtual Channel 1/Virtual Device/VirtFb</UCPTname>
</Item>
Vista de pagina 289
1 2 ... 285 286 287 288 289 290 291 292 293 294 295 ... 442 443

Comentarios a estos manuales

Sin comentarios