Hello!
I have a problem regarding OPC server.
In Matlab I need to draw a reference that my program is sending on the analog outputs of PLC.
I tried to use OPC server "KEPServerEx" and of course, Matlab OPC Toolbox and I successfully established a connection, but problem is that I can't get quality picture.
I set KEPServerEx to update active clients every 20 ms and scan rate of every variable is 20 ms.
In Matlab OPC Toolbox I set update rate to 20 ms and number of record to log to 3000 (for duration of recording 60 s), but when I start my program and recording it for 50 seconds, instead of 2000-3000 records, I'm getting only 50-60 records every time, so my picture is very bad (because the variables on the PLC outputs are changeing every 20 ms and I'm getting approximately one record per second)
What should I do?
I'm using SIMATIC S7-300 PLC
I have a problem regarding OPC server.
In Matlab I need to draw a reference that my program is sending on the analog outputs of PLC.
I tried to use OPC server "KEPServerEx" and of course, Matlab OPC Toolbox and I successfully established a connection, but problem is that I can't get quality picture.
I set KEPServerEx to update active clients every 20 ms and scan rate of every variable is 20 ms.
In Matlab OPC Toolbox I set update rate to 20 ms and number of record to log to 3000 (for duration of recording 60 s), but when I start my program and recording it for 50 seconds, instead of 2000-3000 records, I'm getting only 50-60 records every time, so my picture is very bad (because the variables on the PLC outputs are changeing every 20 ms and I'm getting approximately one record per second)
What should I do?
I'm using SIMATIC S7-300 PLC