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.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


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

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old May 15th, 2019, 10:58 AM   #1
SouthernStang
Member
United States

SouthernStang is offline
 
Join Date: May 2019
Location: Alabama
Posts: 4
Intouch Scripting: Problems with changing a tags value

I am new to this line of work so please excuse me if this is extremely simple. I have also Searched the forums and web for answeres and am getting no where

I know that to change the value of a tag you just simply:

Code:
TagName1 = 1;
But what If you are building the tag name via a string?

Code:
DIM TagToChange as Message;

TagToChange = "TagName"+1;
How do I then take the string in variable and use it to change the value of an existing tag?

I have tried creating and Indirect Analog Tag and doing:

Code:
InDirectTag.Name = "TagName"+1;
But the Name property remains blank. It doesnt work.

I am pulling my hair out over this.. it should be hard.. it has to be something simple I am missing.
  Reply With Quote
Old May 15th, 2019, 04:23 PM   #2
SouthernStang
Member
United States

SouthernStang is offline
 
Join Date: May 2019
Location: Alabama
Posts: 4
I discovered my problem. With all the testing I have been doing I accidentally got the data types mismatched.
  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
Wonderware Intouch, Kepware timing issue with "simultaneous" writing of many tags agarb LIVE PLC Questions And Answers 17 April 10th, 2018 11:00 PM
Wonderware Intouch 9.5.100 Dumping Tags Grendizer LIVE PLC Questions And Answers 3 May 22nd, 2012 08:49 AM
InTouch indirect tags sryan LIVE PLC Questions And Answers 5 October 11th, 2005 11:11 AM
Remotely Automating PLC tasks by changing tags over WLAN paseka LIVE PLC Questions And Answers 0 August 23rd, 2005 01:50 AM
Big problems changing computers for step 5 system gordie LIVE PLC Questions And Answers 5 August 17th, 2004 05:18 AM


All times are GMT -5. The time now is 03:33 AM.


.