CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Dec 09, 2019 10:25 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Sfc methods or actions
PostPosted: Thu Feb 16, 2017 3:37 pm 
Offline
Frequent User
Frequent User

Joined: Wed May 04, 2016 6:00 pm
Posts: 283
Dears.

I supose that this question is for codesys people.

Testing sfc we have attached methods to steps and it seems that works.

Will This feature be in future versions?

Can we use methods with inputs?

Enviat des del meu Aquaris M5.5 usant Tapatalk


Top
   
PostPosted: Fri Feb 17, 2017 2:46 pm 
Offline

Joined: Thu Aug 13, 2015 9:42 am
Posts: 50
Hi Josep,

did you mean, your steps calls methods instead of actions?
That is somewhat unusual, but legal. There is no reason to block this. Also it is possible to call instances of function blocks (even if that is not explicitely specified in the documentation). That a step does - it just tries to call that expression. If that pattern works as desired, you're free to use it.

Hovewer passing arguments is not currently supported.

Regards
Roman


Top
   
PostPosted: Fri Feb 17, 2017 3:37 pm 
Offline
Frequent User
Frequent User

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

Thanks a lot.

Another question.

My objective is to concentrate, as i can, the code of a step inside the step.

As the transition af a step is normally decided inside a step (f ex. If i made a mc_moveabsolute inside a step, is normal to finish the step with the mc_move... Done)

For block transition, now i am blocking step._x inside step and enabling it outside grafcet on grafcet finishing. Could be posible that you change the sfc algorithm and that dont work in future?


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

All times are UTC+01:00


Who is online

Users browsing this forum: Andreas Kehrer and 3 guests


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