Ewon TechForum
Providing technical solutions to technical requests

Creating tags in BAsIC IDE
ProAuto Offline
Junior Member

I would like to make a plc (OMRON CJ2M) communicate some string value to be displayed at an eWON flexy 205 web page. I've looked into the forum and it looks like it is not possible to create string tags. However, I would do it with integer values then using this trick to convert it into a string https://techforum.ewon.biz/thread-166.ht...ght=string, but there is too much tags to do (like 600 integer tags). I was wondering if it is possible to create tags with a for loop using the BASIC IDE in the ewon ?

Function createFirstTag($name$)
 Print "createFirstTag: ";$name$
 $A$ = '"Name";"DS56,0,120,";"INTEGER"'+Chr$(13)+Chr$(10)+'"'+$name$+'";"FINS";1'+Chr$(13)+Chr$(10)
 Putftp "/var_lst.txt",$A$,"adm:adm@"


I've already tried this code from simon to make a single tag but without sucess. I do not see the created tag in the ewon's listed tags.

ProAuto Offline
Junior Member
Ok, it looks like i've found an alternative way to do it.
Basically, there is a tag section in the config file. I used a python script to generate strings of tag (with the incrementation of adress,name etc) and then copy them in the same section to create them. Refresh the ewon page and Voilà

Possibly Related Threads…
01-04-2020, 08:30 AM
Last Post: Jean-Paul
09-03-2020, 02:29 PM
Last Post: simon
09-03-2020, 01:48 PM
Last Post: simon
05-03-2020, 01:25 PM
Last Post: ziozetti
  Creating Totaliser Within eWON Started by Josh
3 Replies - 1.062 Views
14-02-2020, 06:06 PM
Last Post: simon
07-01-2020, 03:34 PM
Last Post: simon
  Find the number of tags Started by hjl
1 Replies - 251 Views
09-12-2019, 04:20 PM
Last Post: AngelaT
19-08-2019, 10:40 PM
Last Post: gomzy04
13-08-2019, 04:06 PM
Last Post: gomzy04
08-08-2019, 06:22 PM
Last Post: simon

Users browsing this thread:
1 Guest(s)

Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy