CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon Jul 16, 2018 4:52 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Apr 01, 2015 6:07 pm 
Offline

Joined: Sun Feb 24, 2013 10:47 am
Posts: 29
Hello to the experts!
I'm developing a library with a couple of function blocks, each with an associated visu. All things runs well - with one exception: For a diagnostic function block a table should show the diagnostic data. They are located in an ARRAY [1..200] OF <struct>. An output variable of the function block defines this array:
Code:
DiagBuff    : ARRAY [1..200] OF ..._DIAGMESSAGE;

When I insert a table into the related visu, it is not possible, to assign this output variable in the usual form $INST$.DiagBuff. This variable is not shown with F2 and also the table columns are empty. In the CoDeSys Help I found an example with a direct variable connection: PLC_PRG.<Daten>.
Is the indirect variable assignment $INST$<Data> not working with tables? Is there an alternative?
My version: CoDeSys 2.3.9.42 (pbF).


Top
   
PostPosted: Thu Apr 02, 2015 5:27 pm 
Offline

Joined: Sun Feb 24, 2013 10:47 am
Posts: 29
My working work-around: I place the Array as a Global var. And it seems to work.


Top
   
PostPosted: Wed Apr 08, 2015 8:21 pm 
Offline
Frequent User
Frequent User

Joined: Thu Jun 14, 2007 9:49 am
Posts: 985
what about the dot you are using.
and in V2.3 n dynamic variable can be made.

_________________
shooter@home.nl
computer shooter
paul deelen
jacob van wassenaerstraat 29
NL 5224 GG 's-Hertogenbosch
skype shooter paul.deelen
phone +31736139136


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: No registered users and 1 guest


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