<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SoftMotion Servo Example</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/13fd8d97ca/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/13fd8d97ca/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/13fd8d97ca/</id><updated>2020-02-27T15:28:15.753000Z</updated><subtitle>Recent posts to SoftMotion Servo Example</subtitle><entry><title>SoftMotion Servo Example</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/13fd8d97ca/?limit=25#2db1" rel="alternate"/><published>2020-02-27T15:28:15.753000Z</published><updated>2020-02-27T15:28:15.753000Z</updated><author><name>LukaszBien</name><uri>https://forge.codesys.com/u/lukaszbien/</uri></author><id>https://forge.codesys.comfbb6a52f39f894773eb209b0a5ded533b4bed83c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi, &lt;br/&gt;
Recently I was playing with this and it has worked straight away. I was using Adafruit softmotion example. &lt;br/&gt;
All I needed to do was to set I2C Address of Adafruit PWM device and download the program. &lt;br/&gt;
PS&lt;br/&gt;
The common mistake is to set address in decimal instead of hex (e.g. 16#40)..&lt;br/&gt;
Regards&lt;br/&gt;
Lukasz.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion Servo Example</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/13fd8d97ca/?limit=25#e117" rel="alternate"/><published>2020-02-27T15:28:13.748000Z</published><updated>2020-02-27T15:28:13.748000Z</updated><author><name>rools94</name><uri>https://forge.codesys.com/u/rools94/</uri></author><id>https://forge.codesys.comae4945cb8f0eb24d1d8f336d2bda5f11a0166e50</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everybody,&lt;/p&gt;
&lt;p&gt;I'm actually trying to control several servo motors, using the example provided by Codesys as basis program. &lt;br/&gt;
Even though I've followed all the steps as described in the manual, the motor won't be activated in any case.&lt;br/&gt;
Despite the program marks all the components as connected and the visualization shows a movement , the motors remain completely still and silent.&lt;/p&gt;
&lt;p&gt;The several parameters of the are set as defaultand also the address and frequancy of the Adafruit_PWM_SoftMotion are still respectively 0 and 50 Hz. &lt;/p&gt;
&lt;p&gt;I've left the I2C_master unchanged as the latter.&lt;/p&gt;
&lt;p&gt;It seems like the entire program remains entirely virtual.&lt;br/&gt;
Thus my question would be: what should I modify in the program in orer to  connect the virtual dirve ("SM_Drive_Servo") to the solid drive?&lt;br/&gt;
In other words, I need to find a way to connect the variable SM_Drive_Servo of type AXIS_REF_SERVO to the adress of the real drive.&lt;br/&gt;
Though the only adresses that the RaspberryPi can detect are the ones of the Adafruit_PWM_SoftMotion hats.&lt;br/&gt;
Indeed normally the drives are controlled directly executing the command of the Adafruit_PWM_SoftMotion library (alrPWM&lt;span&gt;[Pin_Nr]&lt;/span&gt;), which feeds the pwm signal directly into the pin.&lt;br/&gt;
Therefore I instinctively tried to do approximatively  the same  with the SM_Drive_Servo, finding in the library the property "connector" of typ POINTER TO IoConfigConnector.&lt;br/&gt;
Am I on the right way to address the motor correctly? If yes, how can I instert the pin number in this particular data type?&lt;/p&gt;
&lt;p&gt;Thanks in advance for your help,&lt;/p&gt;
&lt;p&gt;Francesco Paris&lt;/p&gt;
&lt;p&gt;P.S. I'm working on the program available among the examples, hence I did not attach the complete program.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Servo1.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2937"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ServoParameters.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2938"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: PWMadresses.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2939"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: AdafruitLibrary.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2940"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ServoConnectorProperty.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2941"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>