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 Sat Aug 17, 2019 3:41 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Mar 07, 2018 1:01 pm 

Joined: Mon Mar 20, 2017 9:27 am
Posts: 4
Hi there,

does anyone know how to read the value of a globel constant while being offline?
I know how to read values while being online using something like "myOnlineApp.read_value(...)".
But in my case, I can't get online. I just want to open a project and get the values of some constants
defined in the source code of the project.


Last edited by cf2017 on Wed May 02, 2018 2:51 pm, edited 1 time in total.

PostPosted: Tue Mar 20, 2018 10:46 am 

Joined: Tue Oct 14, 2014 1:38 pm
Posts: 8
1) Get the text of object declaration part using textual_declaration property
(like described here viewtopic.php?f=18&t=8558)
2) Parse strings and find your constant initial value.

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