You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old June 17th, 2015, 07:11 AM   #1
Suseh
Member
Italy

Suseh is offline
 
Join Date: Apr 2015
Location: Rome
Posts: 62
FactoryTalk 8.0: how to display choosen tag value from PLC

Hi,

i work on the display where i have list of tags. This names of tags are retrieved from external database.
The full name of every tag is:
Name_of_application:Name_of_Communication_Driver:N ame_of_Shortcut_from_RSLinxDriver.Name_of_tag_in_P LC
That name of tag is string data type.

In my screen i am able to choose 10 from full tag list. What i want to do is display the current value of my choosen tags. So, i think, i must retrive it directly from PLC.

So, the know information: full name of tag, and i am looking for the current value of choosen tag.
I try to use "numeric output" with TagGroup Object example from help menu but numeric output doesn't have xxx.value option. What object i should use
to display value?

The second question is what is the syntax when i want to read tag value directly from plc?
PLC.name_of_tag?
or [PLC]name_of_tag or another?
I've tryied both and none of them seems to work.

The last question is the trigger to refresh the tag value.
My screen with vba is with "cache" option (cache after displaying: yes).
If i understand correctly idea of vba in FT i must trigger my sub function with reading the current tag value?

Thanks for help.
  Reply With Quote
Old June 17th, 2015, 03:12 PM   #2
gclshortt
Member
Canada

gclshortt is offline
 
gclshortt's Avatar
 
Join Date: Dec 2014
Location: Ontario
Posts: 3,163
http://literature.rockwellautomation...m004_-en-e.pdf

Chapter 7 should help you out.

Regards,
Garry
http://www.accautomation.ca
  Reply With Quote
Old June 18th, 2015, 10:45 AM   #3
Suseh
Member
Italy

Suseh is offline
 
Join Date: Apr 2015
Location: Rome
Posts: 62
gclshortt thank you for your answer

I'm afraid that you misunerstood my question.

The problem is how to manage everything in VBA.
I've work on this today and find some idea.
But first answering on my own question.

In both - VBA and standard FT display we use syntax [PLC]name_of_tag.

To display it i use TextBox from MS Activex - i believe it is none-licence object???

What i don't know is how to trigger refreshing?


Another topic is how to dynamic change my group of tag. Do i need deactive group
when i want to add or remove item from it?
  Reply With Quote
Old June 18th, 2015, 11:52 AM   #4
danatomega
Lifetime Supporting Member
United States

danatomega is offline
 
Join Date: Mar 2011
Location: Dayton OH
Posts: 789
It's really difficult to determine what you are after.

If you are asking what refreshes a VB form (or the contents of it) you would usually have a timer control on your screen and when it expires it triggers an event and you use that to fire your update - re-read the PLC or whatever.
  Reply With Quote
Old June 18th, 2015, 02:59 PM   #5
Suseh
Member
Italy

Suseh is offline
 
Join Date: Apr 2015
Location: Rome
Posts: 62
danatomega sorry for that.
The last problem is refreshing issue.

I will check the timer thing. Thanks for idea.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Can't see PLC Tags in FactoryTalk View MechE_87 LIVE PLC Questions And Answers 3 March 4th, 2016 12:53 PM
FactoryTalk 7.0 ME Embed HMI Tag in a PLC Tag blynn311 LIVE PLC Questions And Answers 1 February 2nd, 2015 05:30 PM
FactoryTalk ME 6.0 Tag Browser Problems marcwand LIVE PLC Questions And Answers 4 October 23rd, 2014 09:36 PM
New PLC Guy: Auto Created Tag Help Darkzadow LIVE PLC Questions And Answers 2 November 11th, 2011 03:22 PM
Problems with PLC sending info to a live display Tony_P LIVE PLC Questions And Answers 6 September 23rd, 2011 02:49 PM


All times are GMT -5. The time now is 04:16 AM.


.