App Developer Modbus RTU

For general Flowcode discussion that does not belong in the other sections.
Post Reply
steve001
Valued Contributor
Posts: 185
http://meble-kuchenne.info.pl
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 81 times
Been thanked: 30 times

App Developer Modbus RTU

Post 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
Attachments
Modbus Test 2.fcsx
(15.75 KiB) Downloaded 415 times

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: App Developer Modbus RTU

Post 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 3293 times
Martin

steve001
Valued Contributor
Posts: 185
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 81 times
Been thanked: 30 times

Re: App Developer Modbus RTU

Post 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
Attachments
Capture.JPG
Capture.JPG (30.33 KiB) Viewed 3277 times

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: App Developer Modbus RTU

Post 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 3267 times
You can double-click or drag the function, so It is added for you in the calculation box.
Martin

Post Reply