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 Tue Apr 23, 2019 7:05 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Aug 21, 2014 4:06 pm 
Offline

Joined: Thu Jul 10, 2014 3:04 pm
Posts: 9
Sometimes I want to run a script whereas the application is already present (and running) on the PLC. Especially by testing different scripts for the same application the "login sequence" takes a "a lot" of time. How can I anyway use functions like "onelineapp.read_value..." without execute "onlineapp = online_create..." ? Mabye there is another command available ?


Top
   
PostPosted: Fri Aug 22, 2014 11:07 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Hi, Jester,

jester wrote:
Sometimes I want to run a script whereas the application is already present (and running) on the PLC. Especially by testing different scripts for the same application the "login sequence" takes a "a lot" of time. How can I anyway use functions like "onelineapp.read_value..." without execute "onlineapp = online_create..." ? Mabye there is another command available ?


You cannot read values from the application without first connecting to the device. The login() method is what you use to connect to the device. It works exatlys the same when you login interactively with the codesys UI: The monitoring in the POU editors only works when you're connected / logged in to the application.

When the exact same application is already running on the PLC, and you have the appropriate online information around locally (for example from the project archive), the login will just login without any download or online change, so the runnint application is not disturbed.

If you want a way which is more independent of the concrete compilation of the application, you should look into the SymbolConfiguration object and access it via OPC / OPC UA or PLCHandler.

OPC support is available in CODESYS V3 since ever (and also works with V2). OPC UA support is available as a preview in V3.5 SP5, and the release is planned for SP6. PLCHandler is an extra product which contains our communication stack as a native library (sharing codebase with our runtime and gateway).

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Fri Aug 22, 2014 1:31 pm 
Offline

Joined: Thu Jul 10, 2014 3:04 pm
Posts: 9
Hello M. Schaber I tried it but to be honest I have problems about getting "the appropriate online information around locally" ? May you can post an example ?


Top
   
PostPosted: Fri Aug 22, 2014 2:47 pm 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Hi, Jester,

jester wrote:
Hello M. Schaber I tried it but to be honest I have problems about getting "the appropriate online information around locally" ? May you can post an example ?


This information is saved in files with the suffix .compileinfo, .bootinfo, .bootinfo_guids and similar files which are created near the .project file when you "generate code" or "login" with a project.

They can also be included into project archives when you select "Download information files" in the dialog, and are usually included when you use "Source Upload" and "Source Download" features to store your project source on the PLC.

I cannot send you any example for that, because those files are implicitly handled by CODESYS, whether you login interactively or with a script.

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


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