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 Dec 07, 2019 7:22 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Jun 13, 2018 8:40 pm 
Offline

Joined: Wed Jan 27, 2016 10:51 pm
Posts: 40
Hi,
I need to Read/Write variables from Codesys to runing python script. I tested example OPCUA where is changing iConunter variable in Codesys project and the value of iCounter is printed by means of OPC UA client "simpleclientRaspi.py". It works well. But I don't need print it I need to use this value in my python script. How can I extract value of iCounter variable?

Peter


Top
   
PostPosted: Thu Jun 14, 2018 8:37 pm 
Offline

Joined: Wed Jan 27, 2016 10:51 pm
Posts: 40
I found the right function. It this example it is possible to use : iCounter.get_value()

Peter


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