CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon Nov 20, 2017 3:18 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Apr 13, 2017 9:09 am 
Offline

Joined: Wed Dec 30, 2015 5:35 am
Posts: 3
Hello!

Description: there is a connection from my App to PLC through PLCHandler (v3.5.8.0)
Then i make call SyncReadVarsFromPlc(char **ppszSymbols,...) several (or many) times which allocates variable list(s).
And each time I accidentally forget to call SyncReadVarsFromPlcReleaseValues() :roll:
I understand that I am totally wrong, but when I close the connection to PLC the following can be seen:
1) in case of OEM HARDWARE PLC (ARM,CoDeSyS Runtime 3.5.SP6, QNX 6.5.0) - CPU Usage is up to 100%, established network connections to PLC are still working, new network connections are failed; such runtime behavior lasts in proportion to the number of SyncReadVarsFromPlc calls; then (after runtime release and clean resources?) PLC returns to normal working state.
2) in case of CODESYS Control Win V3 SoftPLC(Windows 7x64, CoDeSyS 3.5.SP6) - CPU Usage of ServiceControl.exe (Service for starting/stopping the services of CODESYS Control Win V3 and CODESYS Gateway Service V3) is up to 30%, established network connections to SoftPLC are still working, new network connections are failed; normal working state of ServiceControl.exe may be restored only after service restart.

Solution is clear - to call SyncReadVarsFromPlcReleaseValues.
But why does runtime make so high CPU Usage during resource cleanup of the closed PLCHandler connection?


Top
   
PostPosted: Fri Apr 14, 2017 12:15 pm 
Offline

Joined: Thu Jun 25, 2015 12:46 pm
Posts: 6
Si

Inviato dal mio Y100_Plus utilizzando Tapatalk


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