CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Fri Dec 15, 2017 2:57 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Mc_power with EL7031
PostPosted: Mon May 08, 2017 9:07 am 
Offline

Joined: Tue Apr 25, 2017 8:44 am
Posts: 14
If have el7031 working using the pos control sample and it works perfect.

question
in this example you use plc input in ST:
SM_Drive_PosControl.in.bDriveStartRealState := TRUE;
SM_Drive_PosControl.in.bRegulatorRealState := TRUE;

are this in puts you can also set in i/o mapping of the el 7031 ??

How do I set these inputs if I want to use CFC or FB for programming.
This are not inputs on MC power and you need to set them them to acticate the drive.
it are also not inputs on the visualisation of MC power.


Top
   
 Post subject: Re: Mc_power with EL7031
PostPosted: Mon May 08, 2017 3:21 pm 
Offline
Frequent User
Frequent User

Joined: Wed May 04, 2016 6:00 pm
Posts: 180
Hi.

I never use it, but as I can see, AXIS_REF_POSCONTROL, extends from AXIS_REF_SM3. You can pass it to MC_POWER, and call it from you want.

Now you are working with AXIS_REF directly, it is easy to work with, but when you are working with sequential languages (SFC) could be better work with standard PLC_OPEN (MC_POWER, MC_MoveAbsolute...).

At the end, PLC_OPEN blocks works with AXIS_REF modifying his in_outs to tell motion control to do as you want.

Talking in OOP words is as you would work from outside an instance modifying the instance variables. It is better to access variables via methods.


Top
   
 Post subject: Re: Mc_power with EL7031
PostPosted: Mon May 08, 2017 4:30 pm 
Offline

Joined: Tue Apr 25, 2017 8:44 am
Posts: 14
Thanks for you answer but i think we not talking about the same.
i was talking about :SoftMotion > Example Applications > Position Control on the "SM_Drive_PosControl" Controller

(i can not find info about :AXIS_REF_POSCONTROL).

please correct if i, m wrong or explain in more detail please


Top
   
 Post subject: Re: Mc_power with EL7031
PostPosted: Mon May 08, 2017 9:24 pm 
Offline
Frequent User
Frequent User

Joined: Wed May 04, 2016 6:00 pm
Posts: 180
I have found the help on Codesys Online Help:

It seems that this two inputs are needed by the axis control to work. Normally that signals come from bus comunication, but if you are using analog signals is possible that you cannot access its. (you can redirect that servo states to digital outputs and connect that DO to your PLC DInputs, after that pmap this signals as you have map speed consign). If you cannot access its, put this signals at true where you want (Axis_ref is global). Its tells control that servo is closing speed loop and is not making an quick stop. You don't need its to control your system.

Attachment:
Captura de 2017-05-08 22-18-45.png


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: Mc_power with EL7031
PostPosted: Tue May 09, 2017 4:58 pm 
Offline

Joined: Tue Apr 25, 2017 8:44 am
Posts: 14
thx for your help.
You are right , you can set the inputs true every where, but it would be easier if you could just enable mc_power and the motor works :-)

Maybe sombodey knows if you can set the inputs true in the i/o mapping of the EL 7031.

The el7031 is not (yet) supported by codesys . I think that is a pitty because it is one of the cheapest way to connect a steppermotor to ethercat / codesys and play with it .

I think stepping into softmotion would be a lot more fun for a lot of people if this would be a plug and play drive for the nema 17 stepper motor range .


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited