<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/</id><updated>2024-05-25T16:21:41.427000Z</updated><subtitle>Recent posts to Configuring an Encoder</subtitle><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#8070" rel="alternate"/><published>2024-05-25T16:21:41.427000Z</published><updated>2024-05-25T16:21:41.427000Z</updated><author><name>yofi</name><uri>https://forge.codesys.com/u/yofi/</uri></author><id>https://forge.codesys.com2919ec2a940b09334780179bb38f72f23a5c51bf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a raspberry pi trying to add encoder to it using that free encoder node.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I simply dont understand where the encoder channel A/B suppoded to be mapped when i got to I/O mapping on encoder I get nothing to &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;where to set the channels for the encoder or is there any blocks from a library or how is it that you use an encoder with Codesys it doesn't seem clear at all &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#c060/1b18" rel="alternate"/><published>2021-08-07T05:39:15.436000Z</published><updated>2021-08-07T05:39:15.436000Z</updated><author><name>genn</name><uri>https://forge.codesys.com/u/genn/</uri></author><id>https://forge.codesys.come578d48eb1dd2d9368b4b24090c39e27bcb20e6d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What is the purpose of free encoder?.Can anyone help me out to solve the below issue? The issue is that the internal encoder overflows even we reset its position(If we continuously run it in the same direction)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forge.codesys.com/forge/talk/Motion/thread/8abf72a7ad/"&gt;https://forge.codesys.com/forge/talk/Motion/thread/8abf72a7ad/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#a704" rel="alternate"/><published>2020-02-27T18:47:09.087000Z</published><updated>2020-02-27T18:47:09.087000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com8ab502d640588bfeebdf12cd7a868cf30d4f1567</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
hm.. maybe I do not understand the problem.&lt;br/&gt;
On an Encoder the ramps are given by the input/speed/ of the encoder signal, right?&lt;br/&gt;
Maybe you want to filter These values?&lt;br/&gt;
See the chapter here:&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://help.codesys.com/webapp/sm-edt-drive-logical-general;product=CODESYS_SoftMotion;version=4.3.0.0" rel="nofollow"&gt;https://help.codesys.com/webapp/sm-edt- ... on=4.3.0.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: LogicalAxis.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3127"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#cb25" rel="alternate"/><published>2020-02-27T18:47:07.938000Z</published><updated>2020-02-27T18:47:07.938000Z</updated><author><name>Vergo77</name><uri>https://forge.codesys.com/u/vergo77/</uri></author><id>https://forge.codesys.comb066c6424b568ce986b4b818650c1e161c14bce6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;br/&gt;
I know thi is an old thread, but I have another issue on this case.&lt;/p&gt;
&lt;p&gt;I've configured whit success one free encoder as a master by a gear function (I also tried awith a cam).&lt;br/&gt;
My problem now are the acceleration and deceleration ramps, how can I fix a ramp values to limit the acceleration and deceleration on a free encoder? &lt;/p&gt;
&lt;p&gt;Thanks&lt;br/&gt;
Roberto.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#3fba" rel="alternate"/><published>2020-02-27T18:47:04.642000Z</published><updated>2020-02-27T18:47:04.642000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc93cea975a9279abacdc41de40374b17a803d3eb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; ph0010421&lt;/p&gt;
&lt;p&gt;Great. Thank you. Excellent support.&lt;br/&gt;
Paul&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#5f2c" rel="alternate"/><published>2020-02-27T18:47:03.463000Z</published><updated>2020-02-27T18:47:03.463000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com5ec826d0737bcac6f3db0bce1d9f06bbf8017c4a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yes this will work use the encoder axis like a regular axis.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#c1b6" rel="alternate"/><published>2020-02-27T18:47:00.194000Z</published><updated>2020-02-27T18:47:00.194000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com9a0ed8c82342176a674b79f238600199edbcf428</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; ph0010421&lt;/p&gt;
&lt;p&gt;Thank you Edwin for the fast response.&lt;br/&gt;
I need to use the free encoder as a master axis (MC_Cam In for example).&lt;br/&gt;
Will this method work?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#5020" rel="alternate"/><published>2020-02-27T18:46:59.034000Z</published><updated>2020-02-27T18:46:59.034000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.come7df0bbfec2a99c5e4622afba33fad2b4a2be593</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Copy the rawdata to the EncoderAxis:&lt;br/&gt;
LineEncoder.diEncoderPosition:= di_yourEncoderRawInput_from_EthercatProcessdata;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: SMC_FreeEncoder.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1711"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#f492" rel="alternate"/><published>2020-02-27T18:46:55.787000Z</published><updated>2020-02-27T18:46:55.787000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comeddaaa5309e0110d39bc561ce35a6b093af1867b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; ph0010421&lt;/p&gt;
&lt;p&gt;Hello&lt;br/&gt;
I'm currently struggling with this.&lt;br/&gt;
I have added an EtherCAT slave (a TR Electronics EtherCAT encoder).&lt;br/&gt;
In the CoE Online Window, I can see the Timestamp and Position change.&lt;/p&gt;
&lt;p&gt;I've mapped the Position to the FreeEncoder's &lt;strong&gt;diActPosition&lt;/strong&gt; but it is always zero.&lt;/p&gt;
&lt;p&gt;Maybe someone has a suggestion?&lt;/p&gt;
&lt;p&gt;Thank you&lt;br/&gt;
Ph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Configuring an Encoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d1fbdcdc91/?limit=25#c060" rel="alternate"/><published>2020-02-27T18:46:54.629000Z</published><updated>2020-02-27T18:46:54.629000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.com6302d2cc37320b564142cc586ec2ef587adcc4dc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No, that's not what I mean.&lt;/p&gt;
&lt;p&gt;I'll try to explain it some more by doing a practical example.&lt;br/&gt;
Let's say you have a simple incremental encoder in your machine.&lt;br/&gt;
You connect this to a Beckhoff EL5152 module which has a EK1100 bus node.&lt;br/&gt;
The encoder value can now be retrieved from that slave.&lt;/p&gt;
&lt;p&gt;But in order for it to be used as a FreeEncoder, you need to somehow copy that encoder value from the Beckhoff slave into the FreeEncoder's .diEncoderPosition input.&lt;br/&gt;
There are two ways of doing this.&lt;br/&gt;
1) Map it directly to the FreeEncoder in the EtherCAT I/O Mapping tab of the EK1100. In my post above, I would map it directly to EncMaster.diEncoderPosition.&lt;br/&gt;
2) Map it to a variable of your own choice, then manually copy that variable into EncMaster.diEncoderPosition every motion cycle by code.&lt;/p&gt;
&lt;p&gt;The 2nd choice might be more useful since you have a chance to alter the value if needed (f ex. byteswap, or you get the value in 3 bytes and need to combine them yourself etc. etc).&lt;/p&gt;
&lt;p&gt;Also, this will only create a proper encoder object.&lt;br/&gt;
If you want to slave against it, then look up the PLCOpen MC_GearIn and MC_GearOut instructions.&lt;/p&gt;
&lt;p&gt;One last thing:&lt;br/&gt;
When selecting the bitwidth of the encoder in the FreeEncoder settings, always choose the same OR LOWER setting, otherwise rollovers won't be handled properly.&lt;br/&gt;
F ex: If you have a 29bit encoder source value, you should set bitwidth to 24, otherwise you will get an error on rollover.&lt;/p&gt;
&lt;p&gt;Kim Hansen&lt;br/&gt;
Beijer Electronics Automation AB&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>