CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Tue Oct 17, 2017 1:13 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Dec 01, 2016 1:00 pm 
Offline

Joined: Thu Dec 01, 2016 10:39 am
Posts: 2
Hello

I'm new to Codesys software and i have tried to find an answer in the earlier topics.

In my application I'm communicating with a top system via a serial interface, the top system uses the PLC as a database to read and write data, I want to use a 4 byte ASC with the adress value e.g 0100 which i will translate to %R0.100 which is the actual adress to be written or read.

Can I extract the string value and use it as a pointer?


Regards
Svante


Top
   
PostPosted: Mon Dec 05, 2016 10:39 pm 
Offline
Frequent User
Frequent User

Joined: Thu Jun 14, 2007 9:49 am
Posts: 978
no you can not make a variable, however you can use an array like arrayQ[100].

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


Top
   
PostPosted: Mon Dec 05, 2016 10:40 pm 
Offline
Frequent User
Frequent User

Joined: Thu Jun 14, 2007 9:49 am
Posts: 978
have a look at www.oscat.de for a library with lots of functions with pointers etc.

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


Top
   
PostPosted: Tue Dec 06, 2016 12:17 pm 
Offline

Joined: Thu Dec 01, 2016 10:39 am
Posts: 2
Ok thanks for the reply, OSCAT seems to a goldmine to be explored.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 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