FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12016 questions

14300 answers

22542 comments

35968 members

0 votes
286 views 0 comments
by
Hi,

We are currently working on a project with following configuration.

Remote Modbus TCP Master -------(Modbus TCP)-----> Teltonika (TRB245) Modbus TCP to Serial Gateway ----(Modbus RS485)---> Omron PLC

When Modbus TCP communications are active, the TRB245 should convert TCP query packets to serial and send to Omron. Response packets from Omron should in turn be converted into TCP and sent to Remote Modbus TCP master. I believe TRB245 can be configured as Modbus Gateway. Can you direct me to the user documentation that talks about this gateway configuration?

We also need that the TRB245 should execute a script as a periodic task. The script should check for Modbus communication loss on the TCP channel and if there is no communication for more than 5 minutes, the script should switch the TRB245 to Modbus Master mode and start reading Modbus registers from Omron PLC, execute some logic and write commands to the Omron PLC. Is this possible? If so, how?

I know that the TRB can execute some scripts written in C/ C++. Are there any examples for reference?

Thanks,

Prashant.

1 Answer

0 votes
by

Hello,

Thank you for contacting.

For the modbus related configurations please refer to the below link, here you will be able to see the modbus features TRB245 has.

https://wiki.teltonika-networks.com/view/TRB245_Modbus

Also there is another feature Over IP that may work for you. 

For the scripting i have attached the document for your reference.

https://community.teltonika-networks.com/?qa=blob&qa_blobid=517491482565322658

Further for the scripting mostly client is the one to generate scripts as per their scenario and needs.

Thanks.

Regards,

Ahmed