<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Webdings;
panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Yes (assuming you meant incrementing the bit offset, not the byte address). Or you can use EC_READ_U8 and then do the bit masking yourself.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For bit-aligned values, don’t forget to provide a non-null pointer to receive the bit offset when registering the PDO.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Or since this is only a sync counter, if you’re certain that you never miss any cycles you can fairly safely just ignore the second bit and simply use the LSB toggle as an indication that an update has occurred.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<span style="FONT-FAMILY: Gotham, Calibri, 'sans-serif'; COLOR: #231f20">
<strong>Gavin Lambert<br></strong>
<br>
Senior Software Developer TOMRA Fresh Food<br>
<br>
</span><br>
<br><img style="HEIGHT: 45px; WIDTH: 350px" src="cid:TOMRAFresh_final_size_times_two_2_99d242b2-ba06-4c25-ab26-020cca7ee6dd.png" width="350" height="45" border="0">
<br> <A href="https://www.facebook.com/TOMRAFreshFood" target=_blank><IMG
alt="tomra facebook" src="cid:TF-FB-icon_b77c57e4-4990-4f9d-b3a2-8e6ab45df7f2.jpg"
height=30></A> <A href="https://www.linkedin.com/company/tomra-fresh-food/"
target=_blank><IMG alt="tomra linkedin"
src="cid:TF-LinkedIn-icon_d54c4829-dcb9-450c-9187-34b26e85ebaa.jpg"
height=30></A> <A href="https://vimeo.com/tomrafreshfood"
target=_blank><IMG alt="tomra vimeo" src="cid:TOMRA-Vimeo_4673038e-313a-491f-b3a4-0b39ace6df88.jpg"
height=30></A> <A href="https://www.instagram.com/tomrafood/"
target=_blank><IMG alt="tomra instragram"
src="cid:TOMRAinstagram_45b30c55-490a-4f32-8fd3-998c152e3494.jpg"
height=30></A><BR>
<span style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: #6e8186"> <b>Compac Technologies Ltd</b>
| 4 Henderson Place | PO Box 13 516 | Onehunga 1061 | New Zealand </span><br>
<p style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"></p>
<span style="FONT-SIZE: 75%; FONT-FAMILY: Calibri, Candara, Segoe, Optima, Arial, sans-serif; COLOR: #6e8186"> Phone: +64 96 34 00 88 | <a href="https://www.compacsort.com">https://www.compacsort.com</a></span><br>
<span style="FONT-SIZE: 60%; FONT-FAMILY: Gotham, Calibri, 'sans-serif'; COLOR: #6e8186">The information contained in this communication and any attachment is confidential and may be legally privileged. It should only be read by the person(s) to whom it is addressed. If you have received this communication in error, please notify the sender and delete the communication. </span><br>
<span style="FONT-SIZE: 60%; FONT-FAMILY: Gotham, Calibri, 'sans-serif'; WIDTH: 75%; COLOR: #6e8186">
</span><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> BUSSIERES Vincent<br>
<b>Sent:</b> Tuesday, 12 October 2021 10:20<br>
<b>To:</b> etherlab-users@etherlab.org<br>
<b>Subject:</b> [Etherlab-users] 2 bits reading<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:FR">Dear etherlab users, I bought a Beckhoff incremental encoder interface EL5102, as you can see below, some datas are written on two bits.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">How can I read these 2 bits ?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">May I read them by calling twice EC_READ_BIT with address increment ?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="FR">Index Name Meaning Data type
Flags Default<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif">60n2:0F Input cycle counter 2-bit counter for synchronization (incremented only if a new value is present) BIT2
RO 0x00 (0</span><span lang="FR" style="font-size:6.0pt;font-family:"Arial",sans-serif">dec</span><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif">)</span><span lang="FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:FR">Vincent BUSSIERES<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:FR">Responsable Technique Logiciel<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="FR" style="color:black;mso-fareast-language:FR"><img width="96" height="72" style="width:1.0in;height:.75in" id="Image_x0020_1" src="cid:image001.png@01D7BF5A.9E615620" alt="1572337113342"></span><span lang="FR" style="color:black;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#00295C;mso-fareast-language:FR">ZE Ma Campagne<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#00295C;mso-fareast-language:FR">36, Impasse Félix Nadar<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#00295C;mso-fareast-language:FR">16000 ANGOULEME<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:FR">Tel: 33 (0)9.72.40.36.52<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#999999;mso-fareast-language:FR"><a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwebmail.nexeya.fr%2Fowa%2Fredir.aspx%3FC%3DGK_BqKCZef7LtPZnqnd_LGYr1NG9sz4Smy3iKIwO-pXqtJC7VgzXCA..%26URL%3Dhttp%253a%252f%252fwww.hemeria-group.com%252f&data=04%7C01%7Cgavin.lambert%40tomra.com%7C12547e247f5e46af71d408d98cfce6ab%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637695840522265846%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=UHk6XPlo%2FQGznYWqyW%2BXwAD7JHincesuHanPvT8CE64%3D&reserved=0" target="_blank">www.hemeria-group.com</a></span></i><span lang="FR" style="color:black;mso-fareast-language:FR"> <br>
</span><span lang="FR" style="font-size:16.0pt;font-family:Webdings;color:green;mso-fareast-language:FR">P</span><span lang="FR" style="color:black;mso-fareast-language:FR"> </span><span lang="FR" style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:#99CC00;mso-fareast-language:FR">Afin
de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de nécessité.</span><span lang="FR" style="color:black;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray;mso-fareast-language:FR">Ce message et les fichiers pouvant être attachés sont confidentiels, réservés à l'usage unique des destinataires et n'engagent HEMERIA sous
aucune forme que ce soit.</span><span lang="FR" style="color:black;mso-fareast-language:FR"><br>
</span><span lang="EN-GB" style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray;mso-fareast-language:FR">This email and any files transmitted with it are confidential, intented solely for the unique use of the recipients and don't commit HEMERIA.</span><span lang="FR" style="color:black;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;color:black;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>