|CODESYS - the IEC 61131-3 automation software
|"incorrect" using of PLCHandler
|Page 1 of 1|
|Author:||eugenee [ Thu Apr 13, 2017 9:09 am ]|
|Post subject:||"incorrect" using of PLCHandler|
Description: there is a connection from my App to PLC through PLCHandler (v184.108.40.206)
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()
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?
|Author:||gingomkc [ Fri Apr 14, 2017 12:15 pm ]|
|Post subject:||Re: "incorrect" using of PLCHandler|
Inviato dal mio Y100_Plus utilizzando Tapatalk
|Page 1 of 1||All times are UTC+01:00|
|Powered by phpBB® Forum Software © phpBB Limited