Ewon TechForum
Providing technical solutions to technical requests


Syntax Error in Scripting
Vishant Offline
Junior Member
#1
Hi, 
We are facing syntax error in below script. we are trying since last 2 days but unable to solve. can any one help us its very urgent.

Json$ =""
Ti% = GETSYS PRG, "TIMESEC"
Json$ = '{"customer": "Test","site": "BLR","department": "BM","assettype": "Main", "asset": "M01", "assetcode": "Machine1","timezone": "/Asia/Kolkata","timestamp":"' +  time_s1$
Json$ = Json$ +'","messageid":' + STR$(Ti%) +',"groupid": "A", "description": "a_BM","tags": ['
Json$ = Json$ +'{"component": "Motor_1","tag": "M1DE","value":' + STR$(HT_M1DE_G_XA_RMS_Velocity@) +',"unit": "' + STR$("HHHH")+ '"}]}'
GOTO ProcessStatus
END
Reply

AngelaT Offline
Ewon Distributor
#2
I'm not sure if this is your only problem but this jumps out at me:
STR$("HHHH")

You can't do a STR$ of a string.
Reply

simon Offline
eWON Support
#3
No, you cannot ;-)
Reply



Possibly Related Threads…
  COM IO Error Started by mneedham
6 Replies - 1.531 Views
09-03-2020, 02:28 PM
Last Post: simon
  SMS Protocol error Started by René
1 Replies - 87 Views
07-03-2020, 01:05 AM
Last Post: ziozetti
  http connect error 32601 Started by YoniP
1 Replies - 924 Views
12-02-2019, 06:51 PM
Last Post: simon
11-01-2019, 05:53 PM
Last Post: simon
28-11-2018, 01:29 PM
Last Post: simon
  RequestHTTPX error Started by fvantour
1 Replies - 1.272 Views
23-10-2018, 01:14 PM
Last Post: fvantour
  HTTPX Error Started by jhartnett
2 Replies - 2.059 Views
09-06-2018, 12:00 AM
Last Post: jhartnett
  PUTFTP error Started by luca0503
3 Replies - 1.868 Views
29-05-2018, 09:29 AM
Last Post: simon
  BASIC syntax error Started by dblake
2 Replies - 2.147 Views
07-03-2018, 08:47 PM
Last Post: dblake
  FOR / NEXT basic syntax Started by antoil
5 Replies - 2.628 Views
03-03-2018, 06:39 PM
Last Post: simon



Users browsing this thread:
1 Guest(s)



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