<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hi Dave,</div>
<div><br>
</div>
<div>I do use the bit_position argument. The first slice (16 channel DI) uses offsets 2 & 3, bit positions 0-7 of each. The second slice is a 4 channel DO and uses Domain offset 3, bits 0-3. Also,, the third slice (2 channel AO) has an entry at offset 6,
16 bits while the next slice (2 channel AI) also uses offset 6 with an 8-bit entry.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Steven</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Dave Page <<a href="mailto:dave.page@gleeble.com">dave.page@gleeble.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, April 9, 2014 5:07 PM<br>
<span style="font-weight:bold">To: </span>Steven Hartmann <<a href="mailto:shartmann@militho.com">shartmann@militho.com</a>>, Etherlab Users <<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [etherlab-users] Domain offset overlap<br>
</div>
<div><br>
</div>
<div>
<div bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
Sorry, I misinterpreted your message. <br>
<br>
ecrt_slave_config_reg_pdo_entry can produce apparently overlapping offsets when the PDO data is not on even bit boundaries (not divisible by 8).
<br>
<br>
You may wish to use the unsigned int *bit_position argument to discover the bit offsets of your data.<br>
<br>
Best regards - Dave<br>
<br>
On 09-Apr-14 15:49, Steve Hartmann wrote:<br>
</div>
<blockquote cite="mid:CF6B0DD6.F830%25shartmann@militho.com" type="cite">
<div>Hi Dave,</div>
<div><br>
</div>
<div>Thanks for the reply. I am not using TwinCAT at all. Also, please forgive my ignorance, but what is the "LRW command".</div>
<div><br>
</div>
<div>I'm not sure how to deal with this with the etherlab stack. If it give me a domain offset of 3 for two different slices (one input and one output), how do I deal with this overlapped data?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Steven</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt;
text-align:left; color:black; BORDER-BOTTOM: medium none;
BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Dave Page <<a moz-do-not-send="true" href="mailto:dave.page@gleeble.com">dave.page@gleeble.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, April 9, 2014 2:45 PM<br>
<span style="font-weight:bold">To: </span>Etherlab Users <<a moz-do-not-send="true" href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [etherlab-users] Domain offset overlap<br>
</div>
<div><br>
</div>
<div>
<div bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
In order to reduce process data size, TwinCAT overlaps the RxPDO and TxPDO for each module, then uses the LRW command to effect the transfer. So, I believe what you're seeing is normal.<br>
<br>
Best regards - Dave Page<br>
<br>
On 09-Apr-14 15:41, <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:etherlab-users-request@etherlab.org">
etherlab-users-request@etherlab.org</a> wrote:<br>
</div>
<blockquote cite="mid:mailman.591.1397072497.1145.etherlab-users@etherlab.org" type="cite">
<pre wrap="">Message: 1
Date: Wed, 9 Apr 2014 19:41:29 +0000
From: Steve Hartmann <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:shartmann@militho.com"><shartmann@militho.com></a>
To: Etherlab Users <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:etherlab-users@etherlab.org"><etherlab-users@etherlab.org></a>
Subject: [etherlab-users] Domain offset overlap
Message-ID: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:CF6B0C97.F827%shartmann@militho.com"><CF6B0C97.F827%shartmann@militho.com></a>
Content-Type: text/plain; charset="us-ascii"
Hi all,
I have written some code to parse the generated XML file from "ethercat xml" and use that to configure the ethercat stack. The problem I am having is the output from ecrt_slave_config_ret_pdo_entry produces overlapped offsets. I also tried using ecrt_slave_config_reg_pdo_entry_pos with the same results. This is a very simple test rig that has one each of DO, DI, AO, and AI slices - all beckhoff. I have attached a file which includes the generated XML file, the code in question, and the log output. Does anyone know what I am doing wrong?
Best regards,
Steven Hartmann</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<hr>
David Page, Chief Embedded Architect<br>
Dynamic Systems Inc.<br>
PO Box 1234<br>
Poestenkill, NY 12140<br>
Telephone: +1 (518) 283-5350 | Fax: +1 (518) 283-3160 | </div>
</div>
</div>
</span></blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<hr>
David Page, Chief Embedded Architect<br>
Dynamic Systems Inc.<br>
PO Box 1234<br>
Poestenkill, NY 12140<br>
Telephone: +1 (518) 283-5350 | Fax: +1 (518) 283-3160 | </div>
</div>
</div>
</span>
</body>
</html>