ГОСТ Р ИСО 20242-4—2012
number to type Device02 below, which then is an extension of GDI_Module
and type Device02_ will be obsolete. ->
<xsd:complexType name-’Device02_*>
<xsd:complexContent>
<xsd:restriction base="GDI_Mo<fule“>
<xsd:attribute name=’moduleld’* lype^xsdiunstgnedShort" use=*required" fixed="10027>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!- This exemplary Virtual [Device Type only contains one Function Object
type without restricting the number of instances. ->
<xsd:complexType name=“Device02*>
<xsd:complexContenl>
<xsd:extension base=*Device02_">
<xsd:sequence>
<xsd:element name=“myFunction02" type=*MyFunction02Type"
minOccurs="0’ maxOccurs="unbounded7>
</xsd:sequence>
</xsd:exlension>
</xsd:complexContent>
</xsd:complexType>
<!- Function Object Types have fixed numbers for identification in funclD.
This is a restriction of type GDIJnterface. If you want to avoid
restriction, move attribute funcld from type GDIJnterface with a fixed
number to type MyFunction02Type below, which then is an extension of
GDIJnterface and type MyFunction02Type_ will be obsolete. ->
<xsd:complexType name="MyFunction02Type_“>
<xsd:complexContent>
<xsd:restriction base="GDIJnterface">
<xsd:attribute name="funcld" type="xsd:unsignedShort’ use="required" fixed="10087>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!- This Function Object type example contains only the Create Parameter
and one optional Operation. ->
<xsd:complexType name=’MyFunction02Type*>
<xsd:complexContent>
<xsd:extension base="MyFunction02Type_">
<xsd:sequence>
<xsd:element name="myCRPar02" type="’cpType02’/>
<xsd:element name="myOperation02" type=*myOperation02Type* minOocurs=”07>
<yxsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!- The Create Parameter of this Function Object type is a simple structure for a typical poor serial interface with
restricted speed and fixed bits per transmitted character. ->
<xsd:comp!exType name="cpType02’>
<xsd:complexContent>
<xsd:extension base=“CreateParameter">
<xsd:sequence>
<xsd:element name=”Value" type="serialCom7>
<i’xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="serialCom">
<xsd:sequence>
<xsd:element name="speed” type="speedType7>
<xsd:element name="length’ type=“xsd:integer" fixed="87>
</xsd:sequence>
<»’xsd:complexType>
26