Fetch data from S7 over TCP/IP

Join Date
Apr 2006
Location
Rourkela
Posts
18
Hi,
I want to communicate with S7 over TCP/IP from PC using standard Ethernet card. I could read and write S7 Memory locations using Libnodave library using VB program.
Then I came across the Fetch/Write software in VB, which communicates with S7-x43-1 card, after configuring Fetch channel in the said card. The program works fine for Marker variables (MB,MW etc) but when I tried to get DB variables, I get some values which do not match with the values shown in S7 (VAT table).

When I request n bytes from a DB, it sends 2n bytes. This is probably, the Fetch Passive uses S5 mode of communication and DBs are word addressable. I tried to make the word address as half of the byte address of the DB, but the value is always different from that shown in VAT. Could not find any correspondance with the individual bytes. (Lest it is a question of Endian..)

If anybody has used the communication for Fetch from S7 using a VB program in PC, kindly help.

( I want to read a few values - 6 real values- from the PLC at 500 ms or so, and send collected data at the end of a cyclic operation which lasts 90-120 secs. The FTP will be max once in 3 minutes).
 
Not used libnodave but once had a simular problem with some direct driver, again it would not read bytes or double words (required for real numbers) & there was an offset i.e. word 0 was coded as word 1 in the direct driver, I had to read in the words & convert the bytes from the words & convert the words into reals, however If my memory serves me right there is some difference between siemens real numbers & what you would expect in a vb program.
 

Similar Topics

hi.... I have a dual redundancy control logix plc on controlnet. There is also a panelview 1500 on the same network. I want to fetch the panelview...
Replies
1
Views
2,953
I 'm newcomer in PLCs. I want to fetch live data from a s7-300 PLC in a windows based PC. Please suggest me what is the least cost way of doing...
Replies
2
Views
2,313
I 'm newcomer in PLCs. I want to fetch live data from a s7-300 PLC in a windows based PC. Please suggest me what is the least cost way of doing...
Replies
0
Views
2,598
Could someone tell me how many approachs can be used to fetch data from SIEMENS S7-300 PLC using DOTNET(C#)? thanks a lot.
Replies
7
Views
13,728
Hello All, is there any way to fetch remote controllers Mode Run/Remote Prog/Faulted etc. ( AB L8 Series) using CIP message, if yes please share...
Replies
5
Views
818
Back
Top Bottom