Rebetli Other SW Aug 20, 2021, 4:38 PM Aug 27, 2021, 7:11 PM

Hi,

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?

Regards,

Zsolt

 

 

Answers 5

Luboš Urban Aug 24, 2021, 3:20 PM

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).

Luboš Urban Aug 24, 2021, 4:35 PM

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:

https://wiki.tecomat.cz/en/article/tecomat-foxtrot-is-available-from-node-red

https://wiki.tecomat.cz/en/article/communication-server-plccoms

Rebetli Aug 25, 2021, 9:55 AM

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.

Regards,

Zsolt

 

Rebetli Aug 27, 2021, 8:56 AM

Sorry, I have to correct:

I noticed, that if I turn OFF CIB or IO module the compile is successful.

Luboš Urban Aug 27, 2021, 7:11 PM

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.

Restore archived project group

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.

Your answer

You have to be signed-in for asking a question. Continue after sign-in.