Send Historical Table by tag

Hay,

I want to send a historical table, but i have several tags and i want to send a Historical table of only 5 tags. I know that I have to use $tn function but i dont know how to do it with more than one tag

Hello @EkhiMitx,

You should be able to add a second $tn to add additional tags.

Here is an example:
$dtHT$tntag0$tntag1

You could also add the tags you want to export to a tag group then set up the export to export that group. This is done with the $fl flag. $dtHT$flA will export all tags in topic A.

You can try using this helper tool to help generate a ebd. https://ewonsupport.biz/ebd/

Deryck

Hi,

I have a PLC that is communicating with the Ewon in Modbus TCP so all the variables that im logging belongs to the topic A.

So in the script wouldhave to make like this: “$dtHT$tn” + tag1@ + “$tn” + tag2@ …

thank you

Hi @EkhiMitx,
First to clarify this is to different option to export individual tags.

I also used the wrong term, you can combine tags into groups, not topics which are use with the IO servers. A group is set at the bottom of the tag configuration section. image with tag groups you can perform an export data on that group with $dtHT$flA would create a report with all tags set to be in group A.

You can also export by using the individual tag names. for this it is a single export descriptor, written as one string. If i had two tags with names tag0 and tag1 that i wanted to export i would use the following. "$dtHT$tntag0$tntag1"

Using tag1@ allows you to access the data in that tag as a variable in the script. in your example if you were reading tag1 as 55 and tag2 as 25 from the plc. The scrip would use those values so the descriptor would be “$dtHT$tn55$tn25 this would not be a valid descriptor

A post was split to a new topic: EBD in Script

A post was merged into an existing topic: EBD in Script