<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY LINK="#0000ff">
Here is a setup I tested on the primary side.&nbsp; I was able to see this reflected on the secondary.<BR>
<BR>
/* Master 0, Slave 4, &quot;EL6692&quot;<BR>
 * Vendor ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x00000002<BR>
 * Product code:&nbsp;&nbsp;&nbsp; 0x1a243052<BR>
 * Revision number: 0x00100000<BR>
 */<BR>
<BR>
ec_pdo_entry_info_t slave_4_pdo_entries[] = {<BR>
&nbsp;&nbsp;&nbsp; {0x7000, 0x00, 32},<BR>
&nbsp;&nbsp;&nbsp; {0x7000, 0x01, 32},<BR>
&nbsp;&nbsp;&nbsp; {0x6000, 0x00, 32},<BR>
&nbsp;&nbsp;&nbsp; {0x6000, 0x01, 32},<BR>
};<BR>
<BR>
ec_pdo_info_t slave_4_pdos[] = {<BR>
&nbsp;&nbsp;&nbsp; {0x1600, 2, slave_4_pdo_entries + 0}, /* RxPDO-Map */<BR>
&nbsp;&nbsp;&nbsp; {0x1a00, 2, slave_4_pdo_entries + 2}, /* TxPDO-Map */<BR>
};<BR>
<BR>
ec_sync_info_t slave_4_syncs[] = {<BR>
&nbsp;&nbsp;&nbsp; {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE},<BR>
&nbsp;&nbsp;&nbsp; {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE},<BR>
&nbsp;&nbsp;&nbsp; {2, EC_DIR_OUTPUT, 1, slave_4_pdos + 0, EC_WD_DISABLE},<BR>
&nbsp;&nbsp;&nbsp; {3, EC_DIR_INPUT, 1, slave_4_pdos + 1, EC_WD_DISABLE},<BR>
&nbsp;&nbsp;&nbsp; {0xff}<BR>
};<BR>
<BR>
<BR>
<BR>
On Fri, 2010-12-10 at 14:11 +0100, Anders Bach Madsen wrote:
<BLOCKQUOTE TYPE=CITE>
    Thank you for your answer. We have this setup now (except that our secondary master is a BH Windows Twincat machine). Can anyone show me I can create custom PDO&#8217;s on a bridge that I can set from my primary side, so that the master on the secondary side can read them. I am a little confused on how to create the pdo entries for the bridge slave. The structs returned from ethercat cstruct are like follows:<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    /* Master 0, Slave 1, &quot;EL6692&quot;<BR>
    <BR>
    &nbsp;* Vendor ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x00000002<BR>
    <BR>
    &nbsp;* Product code:&nbsp;&nbsp;&nbsp; 0x1a243052<BR>
    <BR>
    &nbsp;* Revision number: 0x00100000<BR>
    <BR>
    &nbsp;*/<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    ec_pdo_entry_info_t slave_1_pdo_entries[] = {<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x10f4, 0x02, 2}, /* SubIndex 002 */<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x0000, 0x00, 6},<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x0000, 0x00, 3},<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x1800, 0x09, 1}, /* TxPDO toggle */<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x1800, 0x07, 1}, /* TxPDO state */<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x10f4, 0x0e, 1}, /* Control value update toggle */<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x10f4, 0x0f, 1}, /* Time stamp update toggle */<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x10f4, 0x10, 1}, /* External device not connected */<BR>
    <BR>
    };<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    ec_pdo_info_t slave_1_pdos[] = {<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x1600, 0, NULL}, /* RxPDO-Map */<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x1a01, 8, slave_1_pdo_entries + 0}, /* TxPDO-Map External Sync Compact */<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0x1a00, 0, NULL}, /* TxPDO-Map */<BR>
    <BR>
    };<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    ec_sync_info_t slave_1_syncs[] = {<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE},<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE},<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {2, EC_DIR_OUTPUT, 1, slave_1_pdos + 0, EC_WD_DISABLE},<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {3, EC_DIR_INPUT, 2, slave_1_pdos + 1, EC_WD_DISABLE},<BR>
    <BR>
    &nbsp;&nbsp;&nbsp; {0xff}<BR>
    <BR>
    };<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    How do I add my own pdo&#8217;s? <BR>
    <BR>
    How do I tell which are input and which are output pdo&#8217;s?<BR>
    <BR>
    How do I map these so that I can write to them in my cyclic_task?<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    I hope that somebody can help ;-)<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    /Anders<BR>
    <BR>
    &nbsp;<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <B>Fra:</B> Henry Bausley [mailto:hbausley@deltatau.com] <BR>
    <B>Sendt:</B> 8. december 2010 17:04<BR>
    <B>Til:</B> Anders Bach Madsen<BR>
    <B>Cc:</B> etherlab-dev@etherlab.org<BR>
    <B>Emne:</B> Re: [etherlab-dev] EtherCAT bridge<BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &nbsp;<BR>
    <BR>
    <BR>
    I have successfully used the EL6692 to communicate between two different Linux based Etherlab Ethercat masters.<BR>
    <BR>
    The first master is attached via the EBUS and the slave will show up as a&nbsp; EtherCAT Bridge terminal (Primary)<BR>
    <BR>
    The second master you attach to the RJ45 connector and that slave will show up as the secondary.<BR>
    <BR>
    Create PDO mappings at 0x1600 and 0x1a00 and add our own PDOs.<BR>
    <BR>
    <BR>
    On Wed, 2010-12-08 at 15:22 +0100, Anders Bach Madsen wrote: <BR>
    <BR>
    Hey<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    We have a scenario where we have two master nodes (one Windows based BH Twincat and one Linux based Etherlab Ethercat master) with each their set of input/outputs. Now we would like to use a bridge (BH EL6692) to connect the two system so that one system could send information to the other.<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    Has anyone successfully used a bridge (like EL6692) to turn one master into a client for the other network?<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    If so, how should it be connected (both the components and the cables)?<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    And last but not least, are there any configuration specific things that one needs to remember?<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    If somebody has done this including the Etherlab Ethercat master code, we would really like to know.<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    Hope that somebody out there has gotten this to work or knows of a different way to accomplish the same thing.<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    <B>Best regards / Med venlig hilsen</B><BR>
    <BR>
    <B>&nbsp;</B><BR>
    <BR>
    Anders Bach Madsen<BR>
    <BR>
    PhD Computer Science, Software Developer<BR>
    <BR>
    <IMG SRC="cid:image001.png@01CB9874.14BED4B0" WIDTH="83" HEIGHT="51" ALIGN="bottom" ALT="signatur" BORDER="0"><BR>
    <BR>
    Delta 4&nbsp; <BR>
    <BR>
    DK-8382 Hinnerup<BR>
    <BR>
    <A HREF="http://www.rogd.dk/">www.rogd.dk</A><BR>
    <BR>
    &nbsp;<BR>
    <BR>
    Tlf:&nbsp;&nbsp; +45 8764 0884<BR>
    <BR>
    Mobil: +45 2225 1331<BR>
    <BR>
    Fax:&nbsp;&nbsp; +45 8764 0844<BR>
    <BR>
    &nbsp;<BR>
    <BR>
    <BR>
    <BR>
    <BLOCKQUOTE>
<PRE>
&nbsp;
_______________________________________________
etherlab-dev mailing list
<A HREF="mailto:etherlab-dev@etherlab.org">etherlab-dev@etherlab.org</A>
<A HREF="http://lists.etherlab.org/mailman/listinfo/etherlab-dev">http://lists.etherlab.org/mailman/listinfo/etherlab-dev</A>
</PRE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
etherlab-dev mailing list
<A HREF="mailto:etherlab-dev@etherlab.org">etherlab-dev@etherlab.org</A>
<A HREF="http://lists.etherlab.org/mailman/listinfo/etherlab-dev">http://lists.etherlab.org/mailman/listinfo/etherlab-dev</A>
</PRE>
</BLOCKQUOTE>

</BODY>
</HTML>