Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

How to connect to SPS Siemens S7 - by: Götz Heinemann

$
0
0
Hi there, I have to read variables from a Siemens S7, then act with them and write back the results to the SPS.
I can connect via internet browser entering IP-Addr, then with login-name and password. After this I have access to the desired variables.
As you can see in attached picture



I tried to read the variables with multiple read:

In simulation everything works fine, but in the real world:
Instead of results i always got exceptions. For the machinename i have several examples.
1. But what do i have to use for the serverclass. Can you give me an example for Simotion with UPC-UA extension?
I do not have the slightest idea what it could be.(Google doesn't help)
2. Is it enough to put in username and password, or do i forgot something?
3. Path and ItemId: Do i need the complete path "SIMOTION/root..." or only "unit/RFID.....StartBit"
4. In Path and ItemId: Do i have to separate with a "/" or with a "." or with a "//"

My environment is Win7, QuickOPC2018 with single license, but i can't browse in the Easy OPC DA because of error message "Option not allowed...."

Thanks and best regards

Viewing all articles
Browse latest Browse all 1794

Trending Articles