<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problems setting bDriveStart and bRegulator On</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b4a074d12a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b4a074d12a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b4a074d12a/</id><updated>2020-02-27T21:49:04.442000Z</updated><subtitle>Recent posts to Problems setting bDriveStart and bRegulator On</subtitle><entry><title>Problems setting bDriveStart and bRegulator On</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b4a074d12a/?limit=25#6b13" rel="alternate"/><published>2020-02-27T21:49:04.442000Z</published><updated>2020-02-27T21:49:04.442000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comd61a34a94595b32a4683a8ecc6b5503576246833</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;a code snippet would be great...&lt;br/&gt;
Propose to do it like that:&lt;/p&gt;
&lt;p&gt;mcp: MC_Power;&lt;/p&gt;
&lt;p&gt;(&lt;em&gt;Set the inputs&lt;/em&gt;)&lt;br/&gt;
mcp.Enable:=TRUE;&lt;br/&gt;
mcp.bDriveStart:=TRUE;&lt;br/&gt;
mcp.bRegulatorOn:=TRUE;&lt;br/&gt;
(&lt;em&gt;call the instance&lt;/em&gt;)&lt;br/&gt;
mcp( Axis:=Drive );&lt;/p&gt;
&lt;p&gt;or the same approach would be:&lt;br/&gt;
mcp( Enable:=TRUE , bRegulatorOn:=TRUE , bDriveStart:= TRUE, Axis:=Drive);&lt;/p&gt;
&lt;p&gt;cu&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problems setting bDriveStart and bRegulator On</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b4a074d12a/?limit=25#011d" rel="alternate"/><published>2020-02-27T21:49:00.103000Z</published><updated>2020-02-27T21:49:00.103000Z</updated><author><name>penkomitev</name><uri>https://forge.codesys.com/u/penkomitev/</uri></author><id>https://forge.codesys.com00dd51e8b0eb4a2bd1779fa79f41bd55a69eb99b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello guys!&lt;/p&gt;
&lt;p&gt;It's my first topic here and please excuse me if I have not chosen the right place to post.&lt;/p&gt;
&lt;p&gt;I am relatively new to CodeSys  I have a Schneider Electric LMC20 motion controller and two servo axes (Lexium32A).&lt;/p&gt;
&lt;p&gt;I have configured everything and it runs without major troubles. There is one, actually. Whatever I do, I am unable to set bDriveStart and bRegulatorOn to TRUE via code. I tried all possible ways, but they just don't get to TRUE. This way, I am forced to connect my computer every time, switch them ON manually via the build-in visualisations and then run the rest of the problem.&lt;/p&gt;
&lt;p&gt;I have tried the following:&lt;br/&gt;
via ST --&amp;gt; bRegulatorOn := TRUE;&lt;/p&gt;
&lt;p&gt;It doesn't work that way, unfortunately.&lt;/p&gt;
&lt;p&gt;Do you have any ideas what could be causing this?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>