Need to send STRING to HMI

Tom, good point. I guess I am assuming that he is not using inTouch anymore, otherwise why change? I typically do the same thing - let the HMI manage the display interpretation for the data. I am OK with bulky HMI code, as long as the PLC is efficient.
 
If you have three messages in tags STRING[1], STRING[2] and STRING[3] then set aside another string (HMI_STRING)which the HMI will read.

In the PLC code use COP STRING[1] HMI_STRING 1

Note the '1' as the length in the COPy command. You are copying one string.

And you can save some memory by making HMI_STRING an ALIAS tag, aliased to STRING[0].

Note also you can create your own STRING data-types : the pre-defined one allows for 82 characters. If you have an upper limit of, say, 30 characters, create a STRING30 data-type. Use this UDT for HMI tags that are limited to 30 charcters.
 

Similar Topics

I have a 120V signal coming out of this hardware to go to something, which can either be wired or wireless on its own network or connected to our...
Replies
7
Views
3,609
I'm looking for documentation for the functions PDAT_CY, PCD_SEND and PCD_RECV that are part of an existing Step-7 program. The best I can find so...
Replies
1
Views
2,406
Dear All, I have a project with SLC 541 and RSView32. The client want to send alarm massages (SMS) to mobile phone. Can anybody advice me the...
Replies
8
Views
3,234
I was wondering if anyone could help i am trying to use a SLC 500 with a 5/05 processor to set up an incremental encoder to a HSCE2 card? The card...
Replies
2
Views
161
Decided to come to you all to see if any of you have any ideas on how to approach this issue. I have a 'pack' of product that drops. When that...
Replies
7
Views
323
Back
Top Bottom