Concat 2 strings into a tagname?

TheWaterboy

Lifetime Supporting Member + Moderator
Join Date
May 2006
Location
-27.9679796,153.419016
Posts
1,924
Can I take 2 strings, concatenate them and use that result as a TagName of a Bool or any other element?

I'm creating an AOI for MSG stats and it would be ideal if I could use only the MSG tagname and create the .EN and .DN tagnames within the AOI on the fly.

Seemed possible till I started a few minutes ago but I cant figure our how to assign a bools Tagname to a concatenated string. I might be on the wrong track.

I know the MSG has to be created separately and be controller scoped so I'm only trying to reference an already existing bit.
 
Please don't.

Please don't.

Please don't.

Don't try to package MSG instructions into an AOI in a system that principally does telemetry.

Don't try to do something obscure and almost-impossible with tag name references instead of arrays.

If you think you need to create a new feature or invent a function that the system doesn't do, step back and look at the problem more carefully. Brute-force logic is very frequently the most easy to write, troubleshoot, and maintain over time.
 
Last edited:

Similar Topics

Hey all, is there a way with Crimson where I can Concat 3 different string tags into a new tag. Something like: Filename = (partnumber +...
Replies
6
Views
3,435
Hi all I am trying to set up a lhttp instruction to connect to an api https (with our IT) this will send data back to the plc? I have an api https...
Replies
9
Views
1,778
Hello, I am using Machine expert - basic with an M221 PLC. I have two 16 bit modbus registers coming in and I want to convert to a 32bit real...
Replies
8
Views
3,865
I'm writing a new program for a CompactLogix 5069-L310ER. I used a GSV to grab the date and time from the processor. Then several DTOS and...
Replies
5
Views
2,009
Good Morning , I'm working on trying to get timestamping done on some doses. I am very close, thanks to many of you with your advice. I...
Replies
7
Views
2,595
Back
Top Bottom