I'm working on a Google Assistant - Google Home - NodeRed midlleware - ModBusTCP - PLC CP1000 integration
My question is about ModBusPLC. Is This HW able to communicate over ModBusTCP? I'have checked the documentation, but not ure about it. (if yes, what are thee SW etc requirements)
First of all I want to control a digital output on PLC.
I found fbModbusTCPslave, but I'm not sure if this is my way. Are there any examples about the usage of it?
Each Tecomat Foxtrot is able to communicate via Modbus TCP protocol. The communication is described in https://www.tecomat.com/modules/DownloadManager/download.php?alias=txv00352_02_mosaic_modbusrtulib_en. You have to add ModbusRTULib library into the user program a call a funkction block of Mosaic TCP slave. Before it you have to define zones of discrete inputs, coils, input registers and holding registers a set one of ethernet channels in Uni mode. There are no hardware requirements, it will work on all CPUs without any additional hardware.
Inputs and outputs of PLC can't be shared directly via Modbus, you have to copy them into user registers (global variables).
Further, what concerns NodeRed, it is better or easier to use PlcComS communication server for data exchange between Tecomat Foxtrot and NodeRed. For explanation I share the links to related articles:
Thank you for your answer!
I can not open .piz attachment, I renamed ipt to zip, but 7Zip said it is not correct file.
When I turned UNI mode on, with required parameters, there is an error during compile:
xpro:error sysgen\kkk.hwc(150): Too many '#module' definitions
#module TModulE1 1, 0, 5, $0, 66, 1, __offset(r0_p5_DI), __offset(r0_p5_DO), __indx (_r0_p5_Table)
Maybe because I do not have hardware key...
I noticed, that if I turn on CIB or IO module the compile is successful.
Sorry, I have to correct:
I noticed, that if I turn OFF CIB or IO module the compile is successful.
Piz file is an archive of Mosaic project. You can open it directly in Mosaic, either by choosing of an item Restore archived project group in File / Archive menu or by clicking on the icon Restore archived project group in the Open Project/Project Group dialog window.
The error Too many #module definitions ... means that the project can't be compiled without the licence key because it contains more than 3 modules in the configuration. Three modules are available in Mosaic Lite version at maximum for CP-10xx family. When you disable operation of CIB interface or IO module or remove them from configuration, the number of active modules in the configuration is less than 3 and the project can be compiled.
The solution is either to buy Mosaic Single licence which is saved directly in CPU (it is generated on the base of serial number of CPU and can't be moved to other CPU) or Mosaic Compact Plus licence which is stored in USB dongle and can be used on any of your computers with installed Mosaic.
You have to be signed-in for asking a question. Continue after sign-in.