author | Florian Pose <fp@igh.de> |
Thu, 12 Oct 2017 15:01:43 +0200 | |
branch | stable-1.5 |
changeset 2689 | 61c7f0681247 |
parent 2542 | 8dd49f6f6d32 |
permissions | -rw-r--r-- |
1142 | 1 |
/***************************************************************************** |
2 |
* |
|
1363
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
3 |
* $Id$ |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
4 |
* |
2542
8dd49f6f6d32
Fixed hex display of slave position; thanks to Henry Bausley.
Florian Pose <fp@igh-essen.com>
parents:
2421
diff
changeset
|
5 |
* Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH |
1363
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
6 |
* |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
7 |
* This file is part of the IgH EtherCAT Master. |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
8 |
* |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
9 |
* The IgH EtherCAT Master is free software; you can redistribute it and/or |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
10 |
* modify it under the terms of the GNU General Public License version 2, as |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
11 |
* published by the Free Software Foundation. |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
12 |
* |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
13 |
* The IgH EtherCAT Master is distributed in the hope that it will be useful, |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
16 |
* Public License for more details. |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
17 |
* |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
18 |
* You should have received a copy of the GNU General Public License along |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
19 |
* with the IgH EtherCAT Master; if not, write to the Free Software |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
20 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
21 |
* |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
22 |
* --- |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
23 |
* |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
24 |
* The license mentioned above concerns the source code only. Using the |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
25 |
* EtherCAT technology and brand is only permitted in compliance with the |
11c0b2caa253
Improved and added license headers.
Florian Pose <fp@igh-essen.com>
parents:
1327
diff
changeset
|
26 |
* industrial property and similar rights of Beckhoff Automation GmbH. |
1142 | 27 |
* |
28 |
****************************************************************************/ |
|
29 |
||
30 |
#include <iostream> |
|
31 |
#include <iomanip> |
|
1222
7348d6abb6cb
Applied patch by Karsten Schwinne, adding a few header files necessary
Florian Pose <fp@igh-essen.com>
parents:
1157
diff
changeset
|
32 |
#include <string.h> |
1142 | 33 |
using namespace std; |
34 |
||
35 |
#include "CommandXml.h" |
|
1826
ec6223c3b7ec
Multi-master support for command-line tool. The --master option supports
Florian Pose <fp@igh-essen.com>
parents:
1560
diff
changeset
|
36 |
#include "MasterDevice.h" |
1142 | 37 |
|
38 |
/*****************************************************************************/ |
|
39 |
||
40 |
CommandXml::CommandXml(): |
|
41 |
Command("xml", "Generate slave information XML.") |
|
42 |
{ |
|
43 |
} |
|
44 |
||
45 |
/*****************************************************************************/ |
|
46 |
||
1968
4f682084c643
Implemented drive_no for command-line tool; binary base name is now a
Florian Pose <fp@igh-essen.com>
parents:
1890
diff
changeset
|
47 |
string CommandXml::helpString(const string &binaryBaseName) const |
1142 | 48 |
{ |
49 |
stringstream str; |
|
50 |
||
1968
4f682084c643
Implemented drive_no for command-line tool; binary base name is now a
Florian Pose <fp@igh-essen.com>
parents:
1890
diff
changeset
|
51 |
str << binaryBaseName << " " << getName() << " [OPTIONS]" << endl |
1142 | 52 |
<< endl |
53 |
<< getBriefDescription() << endl |
|
54 |
<< endl |
|
1327
4d179b06dd3c
merge -c1604 branches/stable-1.4: Fixed spelling of EtherCAT terms.
Florian Pose <fp@igh-essen.com>
parents:
1222
diff
changeset
|
55 |
<< "Note that the PDO information can either originate" << endl |
1142 | 56 |
<< "from the SII or from the CoE communication area. For" << endl |
1327
4d179b06dd3c
merge -c1604 branches/stable-1.4: Fixed spelling of EtherCAT terms.
Florian Pose <fp@igh-essen.com>
parents:
1222
diff
changeset
|
57 |
<< "slaves, that support configuring PDO assignment and" << endl |
1144
7dbfdd61812c
Bugfixes and improvements.
Florian Pose <fp@igh-essen.com>
parents:
1142
diff
changeset
|
58 |
<< "mapping, the output depends on the last configuration." << endl |
1142 | 59 |
<< endl |
60 |
<< "Command-specific options:" << endl |
|
1157
04d1c950cf9d
Added --help for alias and position parameters.
Florian Pose <fp@igh-essen.com>
parents:
1151
diff
changeset
|
61 |
<< " --alias -a <alias>" << endl |
04d1c950cf9d
Added --help for alias and position parameters.
Florian Pose <fp@igh-essen.com>
parents:
1151
diff
changeset
|
62 |
<< " --position -p <pos> Slave selection. See the help of" << endl |
04d1c950cf9d
Added --help for alias and position parameters.
Florian Pose <fp@igh-essen.com>
parents:
1151
diff
changeset
|
63 |
<< " the 'slaves' command." << endl |
1142 | 64 |
<< endl |
65 |
<< numericInfo(); |
|
66 |
||
67 |
return str.str(); |
|
68 |
} |
|
69 |
||
70 |
/****************************************************************************/ |
|
71 |
||
1826
ec6223c3b7ec
Multi-master support for command-line tool. The --master option supports
Florian Pose <fp@igh-essen.com>
parents:
1560
diff
changeset
|
72 |
void CommandXml::execute(const StringVector &args) |
1142 | 73 |
{ |
1151 | 74 |
SlaveList slaves; |
75 |
SlaveList::const_iterator si; |
|
76 |
||
1373
e651000f1ff1
Complain about given arguments if none are required.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
77 |
if (args.size()) { |
e651000f1ff1
Complain about given arguments if none are required.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
78 |
stringstream err; |
e651000f1ff1
Complain about given arguments if none are required.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
79 |
err << "'" << getName() << "' takes no arguments!"; |
e651000f1ff1
Complain about given arguments if none are required.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
80 |
throwInvalidUsageException(err); |
e651000f1ff1
Complain about given arguments if none are required.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
81 |
} |
e651000f1ff1
Complain about given arguments if none are required.
Florian Pose <fp@igh-essen.com>
parents:
1363
diff
changeset
|
82 |
|
1870
0cee1fb7f0fd
Added getSingleMasterIndex() for command-line tool.
Florian Pose <fp@igh-essen.com>
parents:
1869
diff
changeset
|
83 |
MasterDevice m(getSingleMasterIndex()); |
1142 | 84 |
m.open(MasterDevice::Read); |
1151 | 85 |
slaves = selectedSlaves(m); |
1142 | 86 |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
87 |
cout << "<?xml version=\"1.0\" ?>" << endl; |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
88 |
if (slaves.size() > 1) { |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
89 |
cout << "<EtherCATInfoList>" << endl; |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
90 |
} |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
91 |
|
1151 | 92 |
for (si = slaves.begin(); si != slaves.end(); si++) { |
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
93 |
generateSlaveXml(m, *si, slaves.size() > 1 ? 1 : 0); |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
94 |
} |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
95 |
|
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
96 |
if (slaves.size() > 1) { |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
97 |
cout << "</EtherCATInfoList>" << endl; |
1142 | 98 |
} |
99 |
} |
|
100 |
||
101 |
/****************************************************************************/ |
|
102 |
||
1151 | 103 |
void CommandXml::generateSlaveXml( |
104 |
MasterDevice &m, |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
105 |
const ec_ioctl_slave_t &slave, |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
106 |
unsigned int indent |
1151 | 107 |
) |
1142 | 108 |
{ |
109 |
ec_ioctl_slave_sync_t sync; |
|
110 |
ec_ioctl_slave_sync_pdo_t pdo; |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
111 |
string pdoType, in; |
1142 | 112 |
ec_ioctl_slave_sync_pdo_entry_t entry; |
113 |
unsigned int i, j, k; |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
114 |
|
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
115 |
for (i = 0; i < indent; i++) { |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
116 |
in += " "; |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
117 |
} |
2421 | 118 |
|
1142 | 119 |
cout |
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
120 |
<< in << "<EtherCATInfo>" << endl |
2542
8dd49f6f6d32
Fixed hex display of slave position; thanks to Henry Bausley.
Florian Pose <fp@igh-essen.com>
parents:
2421
diff
changeset
|
121 |
<< in << " <!-- Slave " << dec << slave.position << " -->" << endl |
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
122 |
<< in << " <Vendor>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
123 |
<< in << " <Id>" << slave.vendor_id << "</Id>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
124 |
<< in << " </Vendor>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
125 |
<< in << " <Descriptions>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
126 |
<< in << " <Devices>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
127 |
<< in << " <Device>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
128 |
<< in << " <Type ProductCode=\"#x" |
1142 | 129 |
<< hex << setfill('0') << setw(8) << slave.product_code |
130 |
<< "\" RevisionNo=\"#x" |
|
131 |
<< hex << setfill('0') << setw(8) << slave.revision_number |
|
132 |
<< "\">" << slave.order << "</Type>" << endl; |
|
133 |
||
134 |
if (strlen(slave.name)) { |
|
135 |
cout |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
136 |
<< in << " <Name><![CDATA[" |
1142 | 137 |
<< slave.name |
138 |
<< "]]></Name>" << endl; |
|
139 |
} |
|
140 |
||
141 |
for (i = 0; i < slave.sync_count; i++) { |
|
1151 | 142 |
m.getSync(&sync, slave.position, i); |
1142 | 143 |
|
144 |
cout |
|
2542
8dd49f6f6d32
Fixed hex display of slave position; thanks to Henry Bausley.
Florian Pose <fp@igh-essen.com>
parents:
2421
diff
changeset
|
145 |
<< in << " <Sm Enable=\"" |
8dd49f6f6d32
Fixed hex display of slave position; thanks to Henry Bausley.
Florian Pose <fp@igh-essen.com>
parents:
2421
diff
changeset
|
146 |
<< dec << (unsigned int) sync.enable |
1890
b64e3791075d
Output hex values in ethercat xml.
Florian Pose <fp@igh-essen.com>
parents:
1870
diff
changeset
|
147 |
<< "\" StartAddress=\"#x" << hex << sync.physical_start_address |
2542
8dd49f6f6d32
Fixed hex display of slave position; thanks to Henry Bausley.
Florian Pose <fp@igh-essen.com>
parents:
2421
diff
changeset
|
148 |
<< "\" ControlByte=\"#x" |
8dd49f6f6d32
Fixed hex display of slave position; thanks to Henry Bausley.
Florian Pose <fp@igh-essen.com>
parents:
2421
diff
changeset
|
149 |
<< hex << (unsigned int) sync.control_register |
1890
b64e3791075d
Output hex values in ethercat xml.
Florian Pose <fp@igh-essen.com>
parents:
1870
diff
changeset
|
150 |
<< "\" DefaultSize=\"" << dec << sync.default_size |
1142 | 151 |
<< "\" />" << endl; |
152 |
} |
|
153 |
||
154 |
for (i = 0; i < slave.sync_count; i++) { |
|
1151 | 155 |
m.getSync(&sync, slave.position, i); |
1142 | 156 |
|
157 |
for (j = 0; j < sync.pdo_count; j++) { |
|
1151 | 158 |
m.getPdo(&pdo, slave.position, i, j); |
1142 | 159 |
pdoType = (sync.control_register & 0x04 ? "R" : "T"); |
1327
4d179b06dd3c
merge -c1604 branches/stable-1.4: Fixed spelling of EtherCAT terms.
Florian Pose <fp@igh-essen.com>
parents:
1222
diff
changeset
|
160 |
pdoType += "xPdo"; // last 2 letters lowercase in XML! |
1142 | 161 |
|
162 |
cout |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
163 |
<< in << " <" << pdoType |
1142 | 164 |
<< " Sm=\"" << i << "\" Fixed=\"1\" Mandatory=\"1\">" << endl |
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
165 |
<< in << " <Index>#x" |
1142 | 166 |
<< hex << setfill('0') << setw(4) << pdo.index |
167 |
<< "</Index>" << endl |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
168 |
<< in << " <Name>" << pdo.name << "</Name>" << endl; |
1142 | 169 |
|
170 |
for (k = 0; k < pdo.entry_count; k++) { |
|
1151 | 171 |
m.getPdoEntry(&entry, slave.position, i, j, k); |
1142 | 172 |
|
173 |
cout |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
174 |
<< in << " <Entry>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
175 |
<< in << " <Index>#x" |
1142 | 176 |
<< hex << setfill('0') << setw(4) << entry.index |
177 |
<< "</Index>" << endl; |
|
178 |
if (entry.index) |
|
179 |
cout |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
180 |
<< in << " <SubIndex>" |
1142 | 181 |
<< dec << (unsigned int) entry.subindex |
182 |
<< "</SubIndex>" << endl; |
|
2421 | 183 |
|
1142 | 184 |
cout |
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
185 |
<< in << " <BitLen>" |
1142 | 186 |
<< dec << (unsigned int) entry.bit_length |
187 |
<< "</BitLen>" << endl; |
|
188 |
||
189 |
if (entry.index) { |
|
190 |
cout |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
191 |
<< in << " <Name>" << entry.name |
1142 | 192 |
<< "</Name>" << endl |
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
193 |
<< in << " <DataType>"; |
1142 | 194 |
|
195 |
if (entry.bit_length == 1) { |
|
196 |
cout << "BOOL"; |
|
197 |
} else if (!(entry.bit_length % 8)) { |
|
1560
0ca50da62c52
Allow BITx types in XML output.
Florian Pose <fp@igh-essen.com>
parents:
1474
diff
changeset
|
198 |
if (entry.bit_length <= 64) { |
1142 | 199 |
cout << "UINT" << (unsigned int) entry.bit_length; |
1560
0ca50da62c52
Allow BITx types in XML output.
Florian Pose <fp@igh-essen.com>
parents:
1474
diff
changeset
|
200 |
} else { |
1142 | 201 |
cout << "STRING(" |
202 |
<< (unsigned int) (entry.bit_length / 8) |
|
203 |
<< ")"; |
|
1560
0ca50da62c52
Allow BITx types in XML output.
Florian Pose <fp@igh-essen.com>
parents:
1474
diff
changeset
|
204 |
} |
1142 | 205 |
} else { |
1560
0ca50da62c52
Allow BITx types in XML output.
Florian Pose <fp@igh-essen.com>
parents:
1474
diff
changeset
|
206 |
cout << "BIT" << (unsigned int) entry.bit_length; |
1142 | 207 |
} |
208 |
||
1560
0ca50da62c52
Allow BITx types in XML output.
Florian Pose <fp@igh-essen.com>
parents:
1474
diff
changeset
|
209 |
cout << "</DataType>" << endl; |
1142 | 210 |
} |
211 |
||
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
212 |
cout << in << " </Entry>" << endl; |
1142 | 213 |
} |
214 |
||
215 |
cout |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
216 |
<< in << " </" << pdoType << ">" << endl; |
1142 | 217 |
} |
218 |
} |
|
219 |
||
220 |
cout |
|
1474
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
221 |
<< in << " </Device>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
222 |
<< in << " </Devices>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
223 |
<< in << " </Descriptions>" << endl |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
224 |
<< in << "</EtherCATInfo>" << endl; |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
225 |
} |
758a9bd3e549
'ethercat xml' creates <EtherCATInfoList> for more than one slave.
Florian Pose <fp@igh-essen.com>
parents:
1373
diff
changeset
|
226 |
|
1142 | 227 |
/*****************************************************************************/ |