Hello,
I would like to ask for your help concerning the following, basically simple, task:
I want to read analogue signals from Siemens S7-100 PLCs in WinCC OA.
At first, I tried to accomplish that via the S7 driver. After failing to get a connection I noticed that the driver does not support the respective CPUs (1211C) according to WinCC OA help.
My second approach was to use the MODBUS driver. The PLC is configured via Siemens TIA Portal V12 and should act as a MODBUS-TCP-server (configuration according to http://support.automation.siemens.com/W ... aller=view). However, I do not get a connection in WinCC OA.
I would be very grateful for every comment/tipp. If needed I will provide more specific details concerning my configurations. Thank you in advance!
Problem with S7-1200 SPS
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Problem with S7-1200 SPS
It is possible to read analog value from a S7-1200 PLC with the S7 driver. However for DB's the option 'optimized block access' must be disabled.
I think the list of supported CPUs is not up-to-date and the S7-1200 CPUs are supported currently.
I think the list of supported CPUs is not up-to-date and the S7-1200 CPUs are supported currently.
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Problem with S7-1200 SPS
Hello,
in the online-help for WinCC OA 3.10+SP2 and 3.11+SP1 it is described that the S7-1200 PLC is supported.
Please have a look at the online help to see how the S7-driver has to be configured.
If you need more detailed technical assistance please get in contact with the common WinCC OA support.
How to send a support request to the official WinCC OA support is described here
https://portal.etm.at/index.php?option= ... &Itemid=54
https://portal.etm.at/index.php?option= ... &Itemid=54
Best Regards
Leopold Knipp
Senior Support Specialist
in the online-help for WinCC OA 3.10+SP2 and 3.11+SP1 it is described that the S7-1200 PLC is supported.
Please have a look at the online help to see how the S7-driver has to be configured.
If you need more detailed technical assistance please get in contact with the common WinCC OA support.
How to send a support request to the official WinCC OA support is described here
https://portal.etm.at/index.php?option= ... &Itemid=54
https://portal.etm.at/index.php?option= ... &Itemid=54
Best Regards
Leopold Knipp
Senior Support Specialist
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Problem with S7-1200 SPS
The list of supported S7 CPUs in the online help does not contain the S7-1200 CPUs.
The S7-1200 specific information is a bit hidden under 'Requirements and installation' and seems to be outdated, since the mentioned option has a different name since TIA Portal V11. Perhaps the help of 3.12 can have a special page for the S7-1200 and S7-1500, so the information is easier to find.
The S7-1200 specific information is a bit hidden under 'Requirements and installation' and seems to be outdated, since the mentioned option has a different name since TIA Portal V11. Perhaps the help of 3.12 can have a special page for the S7-1200 and S7-1500, so the information is easier to find.
- cpollak
- Posts:21
- Joined: Wed Sep 25, 2013 11:31 am
Re: Problem with S7-1200 SPS
Hello,
thank you for your fast answers!
Unfortunately, I still haven't managed to achieve a connection. I believe I am missing out on something fundamental - I would be very grateful if you could have a look at my attached PDF-file where my basic configuration in WinCC OA and TIA Portal is shown.
I believe my problem could be due to one of the following issues:
- I have not seperately configured the PLC for communication (i.e. via TSEND_C) - Is this necessary in my case?
- As stated by Gertjan van Schijndel, the 'optimized block access' option must be disabled for DBs. However, I have not incorporated any DBs in my PLC-configuration (do I need to?) and for my 'main'-OB this option cannot be disabled.
- There might be wrong values set for the rack/slot, connection type etc. in WinCC OA, however, I tried out various different combinations without success.
Again, thank you in advance for your tipps! https://www.winccoa.com/fileadmin/image ... roblem.pdf
thank you for your fast answers!
Unfortunately, I still haven't managed to achieve a connection. I believe I am missing out on something fundamental - I would be very grateful if you could have a look at my attached PDF-file where my basic configuration in WinCC OA and TIA Portal is shown.
I believe my problem could be due to one of the following issues:
- I have not seperately configured the PLC for communication (i.e. via TSEND_C) - Is this necessary in my case?
- As stated by Gertjan van Schijndel, the 'optimized block access' option must be disabled for DBs. However, I have not incorporated any DBs in my PLC-configuration (do I need to?) and for my 'main'-OB this option cannot be disabled.
- There might be wrong values set for the rack/slot, connection type etc. in WinCC OA, however, I tried out various different combinations without success.
Again, thank you in advance for your tipps! https://www.winccoa.com/fileadmin/image ... roblem.pdf
- Attachments
-
- PLC_problem.pdf
- (278.75 KiB) Downloaded 235 times
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Problem with S7-1200 SPS
It is not necessary to configure the PLC for this communication.
I cannot see if your driver number is correct. In your console or system overview you can see the driver number of your S7 driver.
Your address config is configured for driver number 1, but maybe your S7 driver has a different driver number.
I cannot see if your driver number is correct. In your console or system overview you can see the driver number of your S7 driver.
Your address config is configured for driver number 1, but maybe your S7 driver has a different driver number.
- cpollak
- Posts:21
- Joined: Wed Sep 25, 2013 11:31 am
Re: Problem with S7-1200 SPS
Thank you very much, after adjusting the driver number I finally got a connection!
However, the signal is not read properly: The corresponding datapoint shows the initial value from the sensor but no changes are recognized (i.e. the value is static even though the signal is not).
Any ideas on what I might have overlooked this time?
However, the signal is not read properly: The corresponding datapoint shows the initial value from the sensor but no changes are recognized (i.e. the value is static even though the signal is not).
Any ideas on what I might have overlooked this time?
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Problem with S7-1200 SPS
You have specified 'single query' as receive mode, so you only receive a value during the general query or when you manually execute a single query.
You have to use a different receive mode, if you want more value changes.
You have to use a different receive mode, if you want more value changes.
- cpollak
- Posts:21
- Joined: Wed Sep 25, 2013 11:31 am
Re: Problem with S7-1200 SPS
Thank you for your patient and precise help, I finally got it working now. Highly appreciated!
- cpollak
- Posts:21
- Joined: Wed Sep 25, 2013 11:31 am
Re: Problem with S7-1200 SPS
Dear WinCC experts,
unfortunately I have another problem concerning my S7-1200 (and thus another challenge for you
).
A direct ethernet-connection between my PLC and the WinCC OA workstation works perfectly fine. However, if I connect the PLC via a Scalance XF208 switch (8 ports), I am not getting a connection (state "not connected" in S7-driver).
The strange thing is that I can configure the PLC (and monitor its variables) via TIA portal/STEP 7 and the same connection does work for PACs (MODBUS-driver).
I hope someone can help/give a tipp.
Thank you in advance!
unfortunately I have another problem concerning my S7-1200 (and thus another challenge for you
A direct ethernet-connection between my PLC and the WinCC OA workstation works perfectly fine. However, if I connect the PLC via a Scalance XF208 switch (8 ports), I am not getting a connection (state "not connected" in S7-driver).
The strange thing is that I can configure the PLC (and monitor its variables) via TIA portal/STEP 7 and the same connection does work for PACs (MODBUS-driver).
I hope someone can help/give a tipp.
Thank you in advance!