Gw XML setup: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 48: | Line 48: | ||
</Address> | </Address> | ||
==== MODBUS ==== | ==== MODBUS ==== | ||
Value: integer | |||
<Address>2</Address> | <Address>2</Address> | ||
==== IEC62056-21 ==== | ==== IEC62056-21 ==== | ||
Value: string | |||
Can be empty if only one device on channel. | |||
<Address>addr123</Address> | <Address>addr123</Address> | ||
== Element: Port == | == Element: Port == | ||
Line 94: | Line 98: | ||
<Gateway>192.168.0.1</Gateway> | <Gateway>192.168.0.1</Gateway> | ||
</Interface> | </Interface> | ||
=== VLAN === | |||
Other child elements required for Interface when using VLAN | |||
<VlanId>10</VlanId> | |||
<VlanIngressQos>4</VlanIngressQos> | |||
<VlanEgressQos>4</VlanEgressQos> | |||
<IpIngressQos>0</IpIngressQos> | |||
<IpEgressQos>0</IpEgressQos> |
Revision as of 16:16, 16 May 2011
Element: Setup
The XML setup starts with the tag Setup. The entire setup is contained in this element.
<Setup />
This element contains:
- Element: Device
- At least one element of this type.
- Attribute: device
- If more than one Device element available. This attribute specifies the id of the Device to use as current setup.
Element: Device
This element contains setup for a specific device. This might be Gw itself or some substation device or SCADA device.
This element contains:
- Element: Channel
- Element: Protocol
- Element: Objects
- Element: Interfaces
- Attribute: id
- Used for element identification
Element: Channel
This element contains:
Element: Protocol
<Protocol comment="protocol8" id="prot_8_0"> <Address /> <CommunicationDelay unit="millisecond">0</CommunicationDelay> <PollingTimeout unit="millisecond">500</PollingTimeout> <TimeSync enabled="false"/> <RemoveCount>5</RemoveCount> <RemoveTime unit="second">20</RemoveTime> <ReplaceTime>false</ReplaceTime> <Type SubVersion="0" isMaster="false">IEC101UnBalanced</Type> </Protocol>
Element: Address
This elements contents depend on the protocol selected
Iec-10x
<Address> <LinkAddress>1</LinkAddress> <LinkAddressLength>1</LinkAddressLength> <AsduAddress>1</AsduAddress> <AsduAddressLength>2</AsduAddressLength> <ObjectAddressLength>2</ObjectAddressLength> </Address>
MODBUS
Value: integer
<Address>2</Address>
IEC62056-21
Value: string
Can be empty if only one device on channel.
<Address>addr123</Address>
Element: Port
Serial port
<Port class="SerialPortSetup"> <BaudRate>9600</BaudRate> <DataBits>8</DataBits> <StopBits>1</StopBits> <Parity>none</Parity> <FlowControl>none</FlowControl> </Port>
TCP/IP server
<Port class="TcpIpServerSetup"> <PortNumber>80</PortNumber> <ClientIpMask>0.0.0.0</ClientIpMask> <Interface>eth0</Interface> </Port>
TCP/IP client
<Port class="TcpIpClientSetup" name="16"> <PortNumber>502</PortNumber> <IpAddress>10.0.0.89</IpAddress> <Interface>eth0</Interface> </Port>
Virtual port
They are ports 3-5 on GW6.
<Port class="VirtualPortSetup"> <Port class="SerialPortSetup"> <BaudRate>9600</BaudRate> <DataBits>8</DataBits> <StopBits>1</StopBits> <Parity>none</Parity> <FlowControl>none</FlowControl> </Port> </Port>
Element: Objects
Element: Interfaces
Network setup
Has at least one Interface element.
<Interface name="eth0"> <IpAddress>192.168.0.111</IpAddress> <Netmask>255.255.255.0</Netmask> <Gateway>192.168.0.1</Gateway> </Interface>
VLAN
Other child elements required for Interface when using VLAN
<VlanId>10</VlanId> <VlanIngressQos>4</VlanIngressQos> <VlanEgressQos>4</VlanEgressQos> <IpIngressQos>0</IpIngressQos> <IpEgressQos>0</IpEgressQos>