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 Wed Nov 13, 2019 8:49 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Pointer to Program
PostPosted: Fri Aug 30, 2019 5:18 pm 
Offline

Joined: Mon Mar 07, 2016 4:16 pm
Posts: 1
Hello,

I'm currently working on a project where I need to use the address of a CFC declared as a program (PRG), according to the API of Pointer, it should be possible to obtain the address of a program, however I have not been able to find the appropriate syntax.

When I try something like:

ptrMyProgram: POINTER TO MyProgram;

I get the following error:

'Myprogram' is of type PROGRAM and cannot be instantiated

Does someone know how can I define a pointer of a program?

Thanks.

BR
Nicolas


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

All times are UTC+01:00


Who is online

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