Page 1 of 1

App Developer Modbus RTU

Posted: Thu Apr 08, 2021 7:53 pm
by steve001
Evening,

I am struggling if somebody could help please.

Still trying to get my head around how things are working. I am trying to make a test program to read an instrument and struggling

The display the values internally using the console to view the variables.

https://www.flowcode.co.uk/wiki/index.p ... ta_Console

trying to display variables in console writer to test my program

change number to string using :

Consoletext = ToStr$ (.Return)

get "Syntax error"

the highlighted ling is invalid Unknown or missing function: ToSTr$

Steve

Re: App Developer Modbus RTU

Posted: Thu Apr 08, 2021 8:52 pm
by medelec35
Hi, Steve.
Flowcode has it own built in functions you can access via fx or f$ icon.
That is showing you have misspelt ToString$ as ToStr$:
To String.png
To String.png (38.59 KiB) Viewed 3290 times

Re: App Developer Modbus RTU

Posted: Fri Apr 09, 2021 4:08 pm
by steve001
Thanks Martin,

the wiki as a tad confusing / i have misunderstood - this is where i got that command from

https://www.flowcode.co.uk/wiki/index.p ... 28value.29

Working Now

Steve

Re: App Developer Modbus RTU

Posted: Sat Apr 10, 2021 12:25 am
by medelec35
Hi, Steve.
Yes, I agree the Wiki was confusing.
I have corrected it now.
Wiki ToString$.png
Wiki ToString$.png (19.59 KiB) Viewed 3264 times
You can double-click or drag the function, so It is added for you in the calculation box.