advertisement
from the beginners department...
Scada
Human-Machine Interface and SCADA. topic
Posted by mick on 6 August, 2009 - 10:35 am
I have just had a introductory trainning session for 2 days with intouch. I am trying to go over training course material with my newly installed intouch version 10 and a free 30 license....

I have managed to get most of the coursework into practice, with success.

However the part where I have a problem is :-

While trying to use an Historical trend and monitor an Analogue signal generated by a slider, I an uable to set the the Tag perameters because the checks box for "enable monitoring" is always greyed out.

I'm not sure why. Could it be the limitations of the License? or am i missing something?

Thankyou in advance ...


Posted by Trevor Ousey on 6 August, 2009 - 6:46 pm
Hi Mick,

From memory, in WindowViewer within WindowMaker, you need to enable historical trending.

Trevor.


Posted by kevin grey on 7 August, 2009 - 2:58 am
Hi, Are you just using Intouch 10 window maker or are you using the ArchestrA IDE interface. Creating a project just using window maker you be able edit the anlog tag and select 'Log data'. (note while in run time some tags parameters cannot be changed).

Kevin


Posted by Mick on 8 August, 2009 - 8:47 am
Kevin

I am not sure how to tell, because I am not sure how I would know. I do know I am using Intouch viewer and Development. I toggle between the two...


Posted by Ramu on 7 August, 2009 - 3:03 am
Hi,

I do not have any experience in InTouch, but I could explain something in general.

May be there is a Supervisory parameter which is preventing you in going for "enable monitoring" as you are not connected to the Signal.

BR,
Ramu


Posted by Mick on 7 August, 2009 - 2:02 pm
Trevor hit the Nail on the head, my trending works fine now.

Thanks everyone for replying..

I have a 30 Day development License,,, This means I am going to be asking questions on here most likely..

My weakness here is not knowing quickscript and therefore unable to do simple things like acknowledge alarms with a button :-/

I need practice and hope to get the most out of this license, but I only have until end of AUG before it expires


Posted by Mick on 8 August, 2009 - 3:43 am
REF: How do I acknowledge And reset alarms

I know there are some preset buttons to help formulate certain scripts, such as

Hold left mouse button down/Misc/Ack Select tag

But I am not sure how to finish off the selected script..

I have a couple of Analogue sliders, and just want to reset them. maybe someone could be kind enough to show me the script and explain the structure of it..

thanks for patience :-)


Posted by kevin grey on 10 August, 2009 - 3:46 am
Hi,

you need to look at the Intouchref.pdf. It has sections on the tag dot fields and Intouch quickscript functions (the built in scripts). one of these will explain 'almAckAll'. As for the 30 day demo I think you can just re-install (save your project first) or failing that put the clock back.

Kevin


Posted by Mick on 11 August, 2009 - 1:26 pm
I dont think you can reinstall.. I was led to believe that the license would expire on a certain day.

I like the idea of putting the clock back. Dammit why didnt I think of that :-))

Thankyou


Posted by Trevor Ousey on 9 August, 2009 - 2:25 am
Glad to help.

Have you registered with Wonderware, I have found the forum to be quite useful. The manuals have been good. I thought that Intouch would operate in demo mode when the license expires anyway, from memory it time limits and has a reduced tag count but is still good to learn with. If you have a handle on script type programming languages then the transition is fairly easy, just need to refer to the help and manuals to bridge the gap.

Check out the examples. As for alarm acknowledgment, I will get back to you, the mind is struggling to remember...

Cheers.
Trevor


Posted by Mick on 12 August, 2009 - 4:19 pm
I have not registered with WW yet, but I intend to do so... I have worked out the Alarm AK at last.

It was just a matter of correct script... (I am not too familiar or experienced at script..

The barrier I have now is:- Comms.. I am trying to use a spreadsheet cell, like an input/output and am struggling to do it.


Posted by kevin Grey on 13 August, 2009 - 4:19 am
Hi, Interfacing to Excel can be done using the DDE interface,

To read a value out of intouch into a cell do something like this

i.e. in sheet1 cell A1 enter;

=(view|tagname!IntouchTag)

where 'IntouchTag' is a valid tag name in intouch, you can a read the dot properties i.e., IntouchTag.Comment etc.

To get Excel to write to a Intouch tag you need to write a script;

Sub Intouch()
'write to Intouch using DDE

channelNumber = Application.DDEInitiate( _
app:="view", _
topic:="tagname")

Set rangeToPoke = Worksheets("Sheet1").Range("A8") 'spreadsheet cell number

Application.DDEPoke channelNumber, "IntouchTag", rangeToPoke 'intouch tag to written to

Application.DDETerminate channelNumber

End Sub

Again 'IntouchTag' needs to be a valid Intouch tag and you can write to the dot fields.

Note: having Excel running continually in the background can be a problem as the DDE link is not the most reliable and can be easily broken by pressing the 'esc' key. I tend to use a vbscript to open excel get excel to do want it needs to do then close it again.

Kevin


Posted by Mick on 16 August, 2009 - 1:02 pm
Thanks for this Kevin

By using your help :-

I have managed to read tags :-)

I am still working on writing data to Intouch. I think I need to use "visual basic" for this, right? Script is fairly new to me, so I am having to learn it on the fly.

Any help welcome here
thanks


Posted by kevin grey on 16 August, 2009 - 3:48 pm
Hi,

No you can use the VBA built into Excel, Word etc. if you create a macro in Excel called Intouch i.e.

Sub Intouch()
'write to Intouch using DDE

channelNumber = Application.DDEInitiate( _
app:="view", _
topic:="tagname")

Set rangeToPoke = Worksheets("Sheet1").Range("A8") 'spreadsheet cell number

Application.DDEPoke channelNumber, "IntouchTag", rangeToPoke 'intouch tag to written to

Application.DDETerminate channelNumber

End Sub

then excel will write to Intouch, if you dont want to use Excel then you would need a programming lang that allows the use of DDE.
Another solution is to use the something like the Kepware OPC server but you will still require a programing lang i.e. VBA, VB etc.

Kevin

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
If I had a plantation in Georgia and a home in Hell, I'd sell the
plantation and go home.
-- Eugene P. Gallagher
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive