<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to MCMoveVelocity_SML problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/3463cb4308/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/3463cb4308/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/3463cb4308/</id><updated>2020-09-02T15:13:01.825000Z</updated><subtitle>Recent posts to MCMoveVelocity_SML problem</subtitle><entry><title>MCMoveVelocity_SML problem</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/3463cb4308/?limit=25#df37" rel="alternate"/><published>2020-09-02T15:13:01.825000Z</published><updated>2020-09-02T15:13:01.825000Z</updated><author><name>pcimatti78</name><uri>https://forge.codesys.com/u/pcimatti78/</uri></author><id>https://forge.codesys.com34c7063f40203b9c3e3d0457270586d3ca90a595</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi , I'm trying to use the softmotion light function but i found a problem in the MC_MoveVelocity_SML&lt;/p&gt;
&lt;p&gt;The MC_MoveVelocity_SML function pass to the objects TargetVel 60FFh, ProfAcc 6083h, ProfDec 6084h the value passed in the FB in units scaled by (Axis.dwRatioTechUnitsDenom) / Axis.iRatioTechUnitsNum)&lt;/p&gt;
&lt;p&gt;this is incorrect because by the CIA DS402 these values should be expressed in 1/10 of RPM for the 60FFh and in msec from 0 to 3000RPM for the 6083h and 6084h and not in pulses/second and pulses/second^2&lt;/p&gt;
&lt;p&gt;I have encapsulated the correct scaling of these factor in an outer FB, &lt;/p&gt;
&lt;p&gt;Acceleration := Velocity / Acceleration;&lt;br/&gt;
Deceleration := Velocity / Deceleration;&lt;/p&gt;
&lt;p&gt;Velocity := (Velocity * 600.0) / IncPerTurns;&lt;/p&gt;
&lt;p&gt;Acceleration := (Acceleration * 3000000.0) / (Velocity * EXPT(DWORD_TO_LREAL (Axis.dwRatioTechUnitsDenom) / DWORD_TO_LREAL (Axis.iRatioTechUnitsNum), 2));&lt;br/&gt;
Deceleration := (Deceleration * 3000000.0) / (Velocity * EXPT(DWORD_TO_LREAL (Axis.dwRatioTechUnitsDenom) / DWORD_TO_LREAL (Axis.iRatioTechUnitsNum), 2));&lt;/p&gt;
&lt;p&gt;anyway there is the necessity also to pass the number of Incrementsper turns because the &lt;/p&gt;
&lt;p&gt;SML_Drive_ETC.Axis_REF_ETC_DSP402_SML&lt;/p&gt;
&lt;p&gt;doesn't contains this value&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>