Wincc and Mscomm

DeepThought

Member
Join Date
Mar 2008
Location
Norwich
Posts
52
Hi all,

I am setting up a mscomm on wincc,however the mscomm needs to run all the time regardless to which screen i am on as it will then call for a script (oncomm) event.
But i cannot find out how to run the mscomm constantly. I have it working and my oncomm event working when i am on one screen but as soon as i leave that screen for another the mscomm then stops operating. Any ideas as to how i can correct this.

:eek:

Regards
DeepThought
 
MScomm on Wincc

Hi,

No-one seems to have taken me on with this question, However I have found the answer to this and I suspect many other similar issues.
My basic issue was this I needed to access MScomm control on my HMI which in its self is simple you place the control down on one of your screens or access it from a script.( simple if your control is registered etc on your machine).
Using the control was simple too (if you know a little VB), the port was opened and I atteached my handheld barcode scanner and read the buffer, hey presto got the barcode from the script i wrote.

My problem is I want the barcode unit to work regardless to which screen i was on i.e. if my mscomm control was on screen 3 and i went to screen 7 my mscomm stopped working. I tried adding the control to the Template screen Nothing but errors happened.
After plowing through the manuals it seems that on some of the HMI units including my PC 677 19" HMI that if you go onto any of the screens and move your cursor to the top of the the screen (right to the top edge) you will be able to click, hold and drag the screen down a little revealing another screen behind it.
The best way i can describe this is it is like a Template but not. The screen is a single global screen that all other screens have constant access to. Hence you put you mscomm control into that dragged down global screen, all screens have access to it and the mscomm control works constantley when the control is initiated.
This global screen is called the "overview" screen and is accessed by this name.
The name of it makes sense now as i have a screen called overview however it always put a hyphen in the name "over-view" and would never allow me to call it "overview", now i know why.
The overview can be accessed by the scripts aswell just in the same way you would access any smart tagname of your object just call for overview instead. This will probaly solve a lot of other issues where you need to access controls in a global way.
Hope this helps.
 
Last edited:

Similar Topics

Hello. I have a db which is 1000 INT, and this db is represented in WinCC as a raw data type set of 5x 400 Bytes. This set is read with a script...
Replies
1
Views
61
Hello Experts I am working on a project with WinCC Unified v16 PC system and want to create an option on the screen to export logs to the...
Replies
0
Views
55
Does anyone happen to know how to install the graphic picture in HMI when I go into blower selection there are no graphics shown not only blower...
Replies
1
Views
75
Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
75
I have created a project in TIA Portal v16 Upd6 with S7-1200 (6ES7214-1AG40-0XB0) and WinCC Unified (PC station). The communication between the...
Replies
4
Views
147
Back
Top Bottom