Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR1000X ModbusServer() or ModbusSlave() What now?


GNWCLZ Feb 16, 2023 07:26 AM

Hi all,

the online insctruction told me to use ModbusServer() instead of ModbusSlave():

"ModbusServer() was formerly ModbusSlave(). Campbell Scientific, in conjunction with the Modbus Organization, is now using "client-server" to describe Modbus communications."

But the CRBasic does not recognized ModbusServer(). I get a compile error, that ModbusServer() is invalid. I can send the program with ModbusServer() to the C1000X (6.01) and it runs successfully. So I think CRBasic needs to be updated? I have / use the version 3.9.0.4 (coming with LoggerNet 4.7.0.15).

What can I do so that I no longer get a compile error in CRBasic when I use ModbusServer()?

Thank you very much. 


Donna Feb 16, 2023 08:59 PM

Download the latest OS update from our website and run the executable file.  That will update the CRBasic intsruction panel, help file, and compilers.  

https://www.campbellsci.com/downloads/cr1000x-os


GNWCLZ Feb 17, 2023 06:09 AM

Hi Donna,

thank you for the solution, that works !! I thought that the compiler was only updated with a CRBasic update.

Greetings

Log in or register to post/reply in the forum.