<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How i can use the GEN fuction?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7af8c88790/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7af8c88790/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7af8c88790/</id><updated>2020-02-27T21:38:44.537000Z</updated><subtitle>Recent posts to How i can use the GEN fuction?</subtitle><entry><title>How i can use the GEN fuction?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7af8c88790/?limit=25#63cd" rel="alternate"/><published>2020-02-27T21:38:44.537000Z</published><updated>2020-02-27T21:38:44.537000Z</updated><author><name>Bobbypointe</name><uri>https://forge.codesys.com/u/bobbypointe/</uri></author><id>https://forge.codesys.com2ac9cf1906685704b6db03661b8d936a4c9d1445</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;C3 has defined libraries and you can't do all with it.&lt;/p&gt;
&lt;p&gt;In order to perform a Sinus movement, you need to create a task_500 POU which will create a task that turn at 500us.&lt;/p&gt;
&lt;p&gt;Then in the C3manager create a source signal for a gearing movement.&lt;/p&gt;
&lt;p&gt;This movement should be started in the normal codesys function.&lt;/p&gt;
&lt;p&gt;In the 500us task you need to calculate your Sin movement and send it in the C3Plus.HEDA_SignalProcessing_Input.&lt;/p&gt;
&lt;p&gt;Be carefull, precision of real in the c3 are in ^2 decimal factor.&lt;/p&gt;
&lt;p&gt;AND codesys 3 is not possible, only 2.3.9.9&lt;/p&gt;
&lt;p&gt;That's it&lt;/p&gt;
&lt;p&gt;good luck&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How i can use the GEN fuction?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7af8c88790/?limit=25#05a4" rel="alternate"/><published>2020-02-27T21:38:43.049000Z</published><updated>2020-02-27T21:38:43.049000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com85c8186659617fdb244f7468b7fbca9b4c1a12a8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;btw better to use a special hardware as maxspeed in software will be 50 Hz. (cycle time of 10 ms.)&lt;/p&gt;
&lt;p&gt;there are special blocks like beckhoff and wago and lenze and siemens etc.&lt;/p&gt;
&lt;p&gt;you will need 3 pwm outputs and a table with positions.&lt;/p&gt;
&lt;p&gt;if hardware used you only give a speed and hardware does rest.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How i can use the GEN fuction?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7af8c88790/?limit=25#44f9" rel="alternate"/><published>2020-02-27T21:38:41.554000Z</published><updated>2020-02-27T21:38:41.554000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comfa9b4e32b79b3e6ae209226081cd41d4cd25ba18</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;is your compacx able to run this version 3?&lt;/p&gt;
&lt;p&gt;probably you will need version 2.3 and that should be no problem as you can use gen from the util.lib.&lt;/p&gt;
&lt;p&gt;however you could have a look at the oscat.lib&lt;/p&gt;
&lt;p&gt;they have al sorts of generators and are all is written in ST so you do not need to load a full library.&lt;/p&gt;
&lt;p&gt;download both the lib version and the TXT version&lt;/p&gt;
&lt;p&gt;if you use one function on compiling it will miss several functions, you will have to copy and paste them from the txt version .&lt;/p&gt;
&lt;p&gt;this way you can keep the program very small.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How i can use the GEN fuction?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7af8c88790/?limit=25#7d33" rel="alternate"/><published>2020-02-27T21:38:37.428000Z</published><updated>2020-02-27T21:38:37.428000Z</updated><author><name>Lukuikilo</name><uri>https://forge.codesys.com/u/lukuikilo/</uri></author><id>https://forge.codesys.comacb455a46eeaa7f004b06252415707a159b762bc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi....&lt;/p&gt;
&lt;p&gt;I´'m working in one project, so i need to put one force like sine wave in linear motor. Please help me to do it in FBD. I already tried to use GEN fuction but  the library of c3 dont let me use the library util.lib. i dint know why. &lt;/p&gt;
&lt;p&gt;I'm working with compacx3 and one linear motor of parker...&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>