CODESYS - the IEC 61131-3 automation software

How to Hide Action or Method of FB
Page 1 of 1

Author:  jzhvymetal [ Tue Dec 04, 2012 1:15 am ]
Post subject:  How to Hide Action or Method of FB

Is there a Pragma Instruction to make an Action/Method private in a function block?

Author:  Jay [ Tue Dec 04, 2012 9:59 am ]
Post subject:  Re: How to Hide Action or Method of FB

You can assign visibility for Methods in their declaration, e.g.:

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).

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited