
ambermoon59 (Customer) asked a question.
Click Plus control over Modbus TCP and Flash Storage API?
Hello, I'm thinking of getting a Click Plus with a C2-08DR-6V to control and monitors a few relays from a PC. I'm going to use a Python and C++ application through the Modbus TCP interface. Should be straight forward? Also I want to store some data into NVM memory on the Click Plus. Is there a way to do this through Python or C++? Do I need a the CPU that has SD card support. How much NVM space is available with the CPU without SD card support??
Yes, this is a common application. The CLICK Modbus Addresses can be found by opening the Address Picker and enabling, "Display MODBUS Address". The Address Picker is also where you will find the configuration of Retentive (Non-Volatile) Memory. The helpfile topic CL195 will describe the memory areas, datatype, range, and default Retentive setup.
These are the largest blocks available:
DS, Single Word Integer, Size 4500
DD, Double Word Integer, Size 1000
The SD Card is used only for DataLogging and cannot be used for other storage.
PyModbus is usually used for this type of communication.
https://pymodbus.readthedocs.io/en/latest/
You will see several examples of communication.
Regards,
Garry
https://accautomation.ca/series/click-plc/
https://accautomation.ca/series/node-red-iot-enabling-software/