Step 7 fast data access

gjwebber

Member
Join Date
Jun 2011
Location
Lincolnshire
Posts
2
Hi all,

I need to access PLC values using an external program that I am writing. I have tried OPC but it is not fast enough or reliable enough. Setting the OPC update rate to 50ms, I get data with 200-500ms gaps (tested using multiple clients). I need a constant stream of updates at least every 50ms.

Is it possible to get similar performance to monitoring values using the variable table (VAT) built into Simatic Manager?

This shows value changes pretty much instantly and is very consistent. It is exactly what I need, but is it possible to get this performance outside of the S7 product?

If not, do you have any other ideas?

Thanks for any help,
Gareth
 
Thanks KalleOlsen, that was a great help.

I didn't realise that you could communicate directly via TCP/IP. From what I've done so far, it is much faster as well.

Thanks again,
Gareth
 
Depnds of S7 type and program scan-time. E.g. S7-315 uses MPI-bus betwwn CPU and CP, where MPI speed is 187.5kbit/s. That's why in HW-Config CP-Unit needs the Backplane Connection MPI-Address.
S7-400 series, S7-318 and up, there is not MPI Backplane.

I have done UDP-Server for PC and S7/CP sends data when data have changed. UDP-Server adds time-stamps to 1'st 2 CSV-file columns and data columns from PLC after that. UDP is faster than TCP/IP.

I tested it by 315CPU-->MPI-->CP-Lean-->PC. CPU's scanning time was about 10ms and PLC sends 26pcs 48char ASCII-data/second, where 1'st column was file-name without ".CSV". MPI spends about 3ms with 48char.
Can't use OB35 for speeding up, minimum interval is 10ms but maybe I can call SEND-block more than 1 time/scan in program. I have to test, can it send double qty.
 

Similar Topics

I am having a step7 v5.4 program where the blocks are encrypted and locked. And the manufacturer is stopped the support. Is there any ways to...
Replies
2
Views
221
Good Morning, Hoping someone with some Siemens experience can give me a hand with this one. Customer has a S7-200 cpu, which has a 6GK7...
Replies
0
Views
270
HI! HOW COULD I OBTAIN THE NAMES OF THE STEPS OF A ROUTINE IN SFC LANGUAGE IN STUDIO5000? Or is there a system variable that gives me those...
Replies
0
Views
360
I'm just trying to figure out the right method of adding a DO card to an existing rack. It's not the *next* open slot, but I have to move the AO...
Replies
5
Views
589
Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
740
Back
Top Bottom