FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
576 views 0 comments
by anonymous
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 anonymous

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