|
|
device | Arcom Io |
<device> examples |
Arcom Io Attributes Elements XML Reference |
<device> example from the adapter.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<device idref="org.eclipse.soda.dk.arcom.io.device/dk/device.xml#ArcomIoDevice"/>
<device> example from the device_test.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<device idref="org.eclipse.soda.dk.arcom.io.device/dk/device.xml#ArcomIoDevice"/>
<device> example from the device.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<device id="ArcomIoDevice" packagebase="org.eclipse.soda.dk">
<description>Arcom IO Relay 8 in 8</description>
<provider>Eclipse.org</provider>
<version>1.2.0</version>
<vendor>IBM</vendor>
<commandreceived>0</commandreceived>
<!-- Output -->
<command id="SetAllOutputs">
<description>Set All Outputs</description>
<message id="SetAllOutputsMessage">
<bytes format="hex">01,00</bytes>
<parameter type="byte">
<offset>8</offset>
<length>8</length>
</parameter>
<filter id="FullFilter">
<bytes format="hex">FF</bytes>
</filter>
</message>
</command>
<command id="SetPin0">
<description>Set Pin 0</description>
<message id="SetPin0Message">
<bytes format="hex">21,00</bytes>
<parameter type="boolean">
<offset>3</offset>
<length>1</length>
</parameter>
<filter id="StandardFilter">
<bytes format="hex">EF,FF</bytes>
</filter>
</message>
</command>
<command id="SetPin1">
<description>Set Pin 1</description>
<message id="SetPin1Message">
<bytes format="hex">21,01</bytes>
<parameter type="boolean">
<offset>3</offset>
<length>1</length>
</parameter>
<filter idref="StandardFilter"/>
</message>
</command>
<command id="SetPin2">
<description>Set Pin 2</description>
<message id="SetPin2Message">
<bytes format="hex">21,02</bytes>
<parameter type="boolean">
<offset>3</offset>
<length>1</length>
</parameter>
<filter idref="StandardFilter"/>
</message>
</command>
<command id="SetPin3">
<description>Set Pin 3</description>
<message id="SetPin3Message">
<bytes format="hex">21,03</bytes>
<parameter type="boolean">
<offset>3</offset>
<length>1</length>
</parameter>
<filter idref="StandardFilter"/>
</message>
</command>
<command id="SetPin4">
<description>Set Pin 4</description>
<message id="SetPin4Message">
<bytes format="hex">21,04</bytes>
<parameter type="boolean">
<offset>3</offset>
<length>1</length>
</parameter>
<filter idref="StandardFilter"/>
</message>
</command>
<command id="SetPin5">
<description>Set Pin 5</description>
<message id="SetPin5Message">
<bytes format="hex">21,05</bytes>
<parameter type="boolean">
<offset>3</offset>
<length>1</length>
</parameter>
<filter idref="StandardFilter"/>
</message>
</command>
<command id="SetPin6">
<description>Set Pin 6</description>
<message id="SetPin6Message">
<bytes format="hex">21,06</bytes>
<parameter type="boolean">
<offset>3</offset>
<length>1</length>
</parameter>
<filter idref="StandardFilter"/>
</message>
</command>
<command id="SetPin7">
<description>Set Pin 7</description>
<message id="SetPin7Message">
<bytes format="hex">21,07</bytes>
<parameter type="boolean">
<offset>3</offset>
<length>1</length>
</parameter>
<filter idref="StandardFilter"/>
</message>
</command>
<command id="GetOutputRequest">
<description>Get the states of all the output pins</description>
<message id="GetOutputRequestMessage">
<bytes format="hex">17</bytes>
</message>
</command>
<signal id="OutputReport">
<message id="OutputReportMessage">
<bytes format="hex">71,00</bytes>
<parameter type="byte">
<offset>8</offset>
<length>8</length>
</parameter>
<filter idref="FullFilter"/>
</message>
</signal>
<measurement id="Output">
<description>Maintain the output pins.</description>
<readcommand idref="GetOutputRequest"/>
<writecommand idref="SetAllOutputs"/>
<signal idref="OutputReport"/>
</measurement>
<!-- Input -->
<command id="GetInputRequest">
<description>Get the states of all the input pins</description>
<message id="GetInputRequestMessage">
<bytes format="hex">18</bytes>
</message>
</command>
<signal id="InputReport">
<message id="InputReportMessage">
<bytes format="hex">81,00</bytes>
<parameter type="byte">
<offset>8</offset>
<length>8</length>
</parameter>
<filter idref="FullFilter"/>
</message>
</signal>
<measurement id="Input">
<description>Maintain the input.</description>
<readcommand idref="GetInputRequest"/>
<signal idref="InputReport"/>
</measurement>
<!-- Define the transport service to be used by this device -->
<transport idref="org.eclipse.soda.dk.arcom.io.transport/dk/transport.xml#ArcomIoTransport"/>
<bundle/>
<managedbundle/>
<managedfactorybundle/>
</device>
<device> example from the profile.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<device idref="org.eclipse.soda.dk.arcom.io.device/dk/device.xml#ArcomIoDevice">
<signalref idref="InputReport"/>
<commandref idref="GetInputRequest"/>
<commandref idref="SetAllOutputs"/>
</device>
| Copyright (c) 2010 IBM. See license in Legal section. | 2010-01-22 | Arcom Io XML Reference 1.2.0 |