恭喜,你发布的帖子
发布于 2022-10-10 11:08:17
5楼
花了40多天研究完毕,查阅了多家公司的GSDMX文件,一点一点摸索得到的。我也编写了一个非常复杂的GSDMX文件。
<?xml version="1.0" encoding="iso-8859-1"?>
<ISO15745Profile xmlns="http://www.profibus.com/GSDML/2003/11/DeviceProfile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.profibus.com/GSDML/2003/11/DeviceProfile ..\xsd\GSDML-DeviceProfile-V2.31.xsd">
<!-- ProfileHeader Definition as defined in ISO15745-1. Please do not change the content. -->
<ProfileHeader>
<ProfileIdentification>PROFINET Device Profile</ProfileIdentification>
<ProfileRevision>1.00</ProfileRevision>
<ProfileName>Device Profile for PROFINET Devices</ProfileName>
<ProfileSource>PROFIBUS Nutzerorganisation e. V. (PNO)</ProfileSource>
<ProfileClassID>Device</ProfileClassID>
<ISO15745Reference>
<ISO15745Part>4</ISO15745Part>
<ISO15745Edition>1</ISO15745Edition>
<ProfileTechnology>GSDML</ProfileTechnology>
</ISO15745Reference>
</ProfileHeader>
<ProfileBody>
<DeviceIdentity VendorID="0x0174" DeviceID="0x1234">
<InfoText TextId="TOK_DevIdent_InfoText" />
<VendorName Value="WINELEC" />
</DeviceIdentity>
<DeviceFunction>
<Family MainFamily="Gateway" ProductFamily="DS10 Gateway"/>
</DeviceFunction>
<ApplicationProcess>
<DeviceAccessPointList>
<!-- ============================================ -->
<!-- DAP1: Standard MRP (fits to example device code) -->
<!-- ============================================ -->
<DeviceAccessPointItem ID="DAP 1" PhysicalSlots="0..12" ModuleIdentNumber="0x00000001" MinDeviceInterval="8" ImplementationType="TPS-1" DNS_CompatibleName="TPS-1" FixedInSlots="0" ObjectUUID_LocalIndex="1" MultipleWriteSupported="true" SharedDeviceSupported="true" DeviceAccessSupported="true" NameOfStationNotTransferable = "true" ParameterizationSpeedupSupported="true" LLDP_NoD_Supported="true" ResetToFactoryModes="2" CheckDeviceID_Allowed="true" PowerOnToCommReady="210" RequiredSchemaVersion="V2.31" PNIO_Version="V2.32" >
<ModuleInfo>
<Name TextId="T_ID_DAP" />
<InfoText TextId="T_ID_InfoTextId_DAP" />
<VendorName Value="WINELEC" />
<OrderNumber Value="1234567" />
<HardwareRelease Value="1" />
<SoftwareRelease Value="V13.00.00" />
</ModuleInfo>
<CertificationInfo ApplicationClass="Isochronous" ConformanceClass="C" NetloadClass="III" />
<SubslotList>
<SubslotItem SubslotNumber="32768" TextId="TOK_Subslot_8000" />
<SubslotItem SubslotNumber="32769" TextId="TOK_Subslot_8001" />
<SubslotItem SubslotNumber="32770" TextId="TOK_Subslot_8002" />
</SubslotList>
<IOConfigData MaxInputLength="1440" MaxOutputLength="1440" />
<UseableModules>
<ModuleItemRef ModuleItemTarget="ID_Mod_16" AllowedInSlots="1..12" />
<ModuleItemRef ModuleItemTarget="ID_Mod_17" AllowedInSlots="1..12" />
<ModuleItemRef ModuleItemTarget="ID_Mod_18" AllowedInSlots="1..12" />
<ModuleItemRef ModuleItemTarget="ID_Mod_19" AllowedInSlots="1..12" />
<ModuleItemRef ModuleItemTarget="ID_Mod_20" AllowedInSlots="1..12" />
<ModuleItemRef ModuleItemTarget="ID_Mod_21" AllowedInSlots="1..12" />
<ModuleItemRef ModuleItemTarget="ID_Mod_22" AllowedInSlots="1..12" />
<!--<ModuleItemRef ModuleItemTarget="ID_Mod_23" AllowedInSlots="1..12" />-->
</UseableModules>
<VirtualSubmoduleList>
<VirtualSubmoduleItem ID="DAP 1" SubmoduleIdentNumber="0x00000001" Writeable_IM_Records="1 2 3 4">
<IOData IOPS_Length="1" IOCS_Length="1" />
<RecordDataList>
<ParameterRecordDataItem Index="8192" Length="4">
<Name TextId="TI_OFFSET"/>
<Const Data="0x00,0x00,0x10,0x00"/> <!-- const offset in ns input trigger T3 -->
</ParameterRecordDataItem>
<ParameterRecordDataItem Index="8193" Length="4">
<Name TextId="TO_OFFSET"/>
<Const Data="0x00,0x00,0x20,0x00"/> <!-- const offset in ns output trigger T4 -->
</ParameterRecordDataItem>
</RecordDataList>
<ModuleInfo>
<Name TextId="TOK_TPS1_board" />
<InfoText TextId="TOK_TPS1_board" />
</ModuleInfo>
<IsochroneMode T_DC_Base="4" T_DC_Min="1" T_DC_Max="8" T_IO_Base="1000" T_IO_InputMin="40" T_IO_OutputMin="40" IsochroneModeRequired="false" />
</VirtualSubmoduleItem>
</VirtualSubmoduleList>
<SystemDefinedSubmoduleList>
<InterfaceSubmoduleItem ID="IDS_1I" SubslotNumber="32768" SubmoduleIdentNumber="0x000a" IsochroneModeSupported="true" SupportedRT_Classes="RT_CLASS_1;RT_CLASS_3" IsochroneModeInRT_Classes="RT_CLASS_3" TextId="TOK_DAP_InterfaceModule" SupportedProtocols="LLDP;SNMP" SupportedMibs="MIB2" NetworkComponentDiagnosisSupported="true" DCP_BoundarySupported="true" PTP_BoundarySupported="true" DCP_HelloSupported="true">
<RT_Class3Properties StartupMode="Legacy;Advanced" MaxBridgeDelay="3860" MaxNumberIR_FrameData="128" ForwardingMode="Relative"/>
<SynchronisationMode SupportedRole="SyncSlave" MaxLocalJitter="10" T_PLL_MAX="1000" SupportedSyncProtocols="PTCP" />
<ApplicationRelations StartupMode="Legacy;Advanced" NumberOfAdditionalInputCR="0" NumberOfAdditionalMulticastProviderCR="0" NumberOfAdditionalOutputCR="0" NumberOfMulticastConsumerCR="0" NumberOfAR="2">
<TimingProperties SendClock="8 16 32" ReductionRatio="1 2 4 8 16 32 64 128 256 512" />
<RT_Class3TimingProperties SendClock="8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120 124 128" ReductionRatio="1" ReductionRatioPow2="2 4 8 16 32 64 128" />
</ApplicationRelations>
<MediaRedundancy SupportedRole="Client" />
</InterfaceSubmoduleItem>
<PortSubmoduleItem ID="IDS_1P1" SubslotNumber="32769" SubmoduleIdentNumber="0x000b" MAUTypes="16" TextId="TOK_Port1" MaxPortRxDelay="173" MaxPortTxDelay="74" PortDeactivationSupported="false" LinkStateDiagnosisCapability="Up+Down" SupportsRingportConfig="true" IsDefaultRingport="true" CheckMAUTypeSupported="true"/>
<PortSubmoduleItem ID="IDS_1P2" SubslotNumber="32770" SubmoduleIdentNumber="0x000c" MAUTypes="16" TextId="TOK_Port2" MaxPortRxDelay="173" MaxPortTxDelay="74" PortDeactivationSupported="false" LinkStateDiagnosisCapability="Up+Down" SupportsRingportConfig="true" IsDefaultRingport="true" CheckMAUTypeSupported="true" />
</SystemDefinedSubmoduleList>
<Graphics>
<GraphicItemRef Type="DeviceSymbol" GraphicItemTarget="ID_Graph_V2" />
<GraphicItemRef Type="DeviceIcon" GraphicItemTarget="ID_Graph_V3" />
</Graphics>
</DeviceAccessPointItem>
</DeviceAccessPointList>
</PrimaryLanguage>
</ExternalTextList>
</ApplicationProcess>
</ProfileBody>
</ISO15745Profile>
请填写推广理由:
分享
只看
楼主