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 Nov 18, 2019 8:30 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Dec 04, 2012 1:15 am 
Offline
User avatar

Joined: Tue Aug 30, 2011 1:21 am
Posts: 96
Is there a Pragma Instruction to make an Action/Method private in a function block?

_________________
The Original SoMachine Ninja


Top
   
PostPosted: Tue Dec 04, 2012 9:59 am 
Offline

Joined: Tue Jul 05, 2011 8:27 am
Posts: 7
You can assign visibility for Methods in their declaration, e.g.:
METHOD PRIVATE DoSomething: BOOL

I don't remember exactly in which CoDeSys version visibility of methods was implemented, but this works atleast with V3.5 SP1.

You cannot give access specifier for Actions, and therefore you cannot hide them with PRIVATE or INTERNAL ("PUBLIC" inside the Library, otherwise PRIVATE (i.e. hidden for application that includes the library).


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 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