<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Hi Truc,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">The mailbox gateway server allows direct access to slave device mailboxes for external utilities (e.g. TwinSAFE loader).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Note: it has no security so be careful when its active and what has access to it. In my case I use the Windows based TwinSAFE loader from a separate Windows PC so I expose the server
sockets to the outside world (which in this case is a local machine network).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">The patch file you attached is for the Gavin Lambert patchset which includes the multiple mailbox protocol patches as you note below. If it didn’t have the parallel communication
path it would need to block the master mailbox access which may affect your applications performance while it is in use. We still use the Gavin Lambert patchset (20190904) against the HG repo (revision 2679 (33b922ec1871), from 18/18/2017) so I can’t comment
on the current state of the EtherLab master.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">As I mentioned, the MBG server provides direct access the slave mailboxes, so you can manually send and receive mailbox communications to test the MBG server functionality. The
patch includes a readme file that has a Testing section. This describes how you can use the commandline to send/receive mailbox data (see line 1545 in the patch).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">From memory, it is only the merge into master.c that directly affects the master code, the rest should be largely independent.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Graeme.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Truc Vuong <truc.vuong@framecad.com>
<br>
<b>Sent:</b> Thursday, 12 June 2025 14:30<br>
<b>To:</b> Graeme Foot <Graeme.Foot@touchcut.com><br>
<b>Subject:</b> EtherCAT Mailbox Gateway<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="color:black">Hi Graeme, <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">In my project, I had been using etherlab mainstream code on gitlab (<a href="https://gitlab.com/etherlab.org/ethercat">https://gitlab.com/etherlab.org/ethercat</a>) , which didn't contain mailbox gateway server
which is what I needed to use for twinsafe loader script provided by beckhoff. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">I don't have lots of experience/ understanding with etherlab code, could you please give me some insights of how mailbox gateway patch reply on? Your advices would be so valuable to us since you are actively working
on the project. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">My goal is able to run the etherlab latest version with a mailbox gateway patch. I found your mailbox gateway server patch (attached above) online. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">From what I can see there is refactory version of ethercat code at somepoint that your patch is working based on , completely different from the mainstream etherlab.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">I believed that the refactory commit happen around commit below : where how coe/soe/eoe mailbox received/ and some sii image scan and dict request introduce (attached above)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">commit c361da20b0d1bf2cd768f2888093308667fb5b9d<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Author: Knud Baastrup <<a href="mailto:kba@deif.com">kba@deif.com</a>><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Date: Sun Aug 10 23:52:44 2014 +0200<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Support for multiple mailbox protocols. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div id="Signature">
<div>
<p class="MsoNormal"><span style="color:black">My question is that EtherCAT mailbox gateway patch depends on that refactory? <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">What would mailbox gateway mainly reply on inside master/ for mailbox gateway intepreter to work with twinsafe loader.bin?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Cheers<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="530" style="width:397.5pt;border-collapse:collapse;box-sizing: border-box;border-spacing: 0px">
<tbody>
<tr style="height:100.0pt">
<td width="180" valign="top" style="width:135.0pt;padding:0cm 0cm 0cm 0cm;height:100.0pt">
<p><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black"><img border="0" width="150" height="26" style="width:1.5625in;height:.2708in" id="x_0.zhbzs6pz2xn" src="cid:image001.png@01DBDC6A.E35DA1D0" alt="FRAMECAD logo.png"></span><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black"><o:p></o:p></span></p>
<p style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black"><br>
<br>
<br>
<br>
<o:p></o:p></span></p>
</td>
<td width="350" valign="top" style="width:262.5pt;padding:0cm 0cm 0cm 0cm;height:100.0pt">
<p><span style="font-family:"Segoe UI",sans-serif;color:#4F7068">Truc Vuong<o:p></o:p></span></p>
<p><span style="font-family:"Segoe UI",sans-serif;color:#006A33">Senior Control Systems Engineer<o:p></o:p></span></p>
<p><b><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black">P:</span></b><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black"> +64 22 0957098<o:p></o:p></span></p>
<p><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black"><a href="https://www.framecad.com/"><span style="color:black">framecad.com</span></a> <o:p></o:p></span></p>
<p><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black"><o:p> </o:p></span></p>
<p><a href="https://www.linkedin.com/company/framecad-limited"><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black;text-decoration:none"><img border="0" width="22" height="22" style="width:.2291in;height:.2291in" id="x_0.86syie5i3rg" src="cid:image002.png@01DBDC6A.E35DA1D0" alt="Insta.png"></span></a><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black">
</span><a href="https://www.facebook.com/FRAMECAD"><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black;text-decoration:none"><img border="0" width="22" height="22" style="width:.2291in;height:.2291in" id="x_0.0mnz0td233z" src="cid:image003.png@01DBDC6A.E35DA1D0" alt="facebook.png"></span></a><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black">
</span><a href="https://www.instagram.com/framecad_systems/"><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black;text-decoration:none"><img border="0" width="22" height="22" style="width:.2291in;height:.2291in" id="x_0.luoaw7bqx1" src="cid:image004.png@01DBDC6A.E35DA1D0" alt="insta2.png"></span></a><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black">
</span><a href="https://www.youtube.com/@framecadsolutions"><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black;text-decoration:none"><img border="0" width="22" height="22" style="width:.2291in;height:.2291in" id="x_0.vkv3sydm4nn" src="cid:image005.png@01DBDC6A.E35DA1D0" alt="YouTube.png"></span></a><span style="font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:black"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p><o:p> </o:p></p>
</div>
</div>
</body>
</html>