Modbus TCP trigger to SMS alarm

HI, I have been reading your manual about using the sms function but there are some points that I would like to clarify.

My setup is I have a PLC acting as my Modbus TCP Server(192.168.1.100). I have created an alarm with a Boolean variable(ID:48) which by default is zero and will turn into 1 once its triggered.

I have a RUT200 loaded with Modbus TCP client package. So I have set my TCP client with the server ID.

But I am not sure what to put in my request section to trigger the SMS to happen. (My Boolean register number is 20 in my modbus TCP server). Do I set it as below?

my ASCII message is 0060125663\test
Do I need to convert my phone number to hex? If yes how?

Did I make any mistakes in the configuration?

Have you indeed read this article you mentioned? It shows example where phone number is not listed in hex.

I would suggest reading through it, and replicating ALL of the steps mentioned there 1 to 1, i.e. to send message from the router itself.

Once then you have this setup working as described on the article, on then try to modify it to your solution.

Note: To initiate message FROM your PLC, your PLC needs to act as Modbus TCP Client, and your RUT200 as Modbus TCP Server. In essence you have made everything in reverse.

Hi yes I have read it multiple times. The reason I am asking is because it doesn’t work which makes me wonder do I need to switch it to HEX instead.

Can you help me verify if I have my phone format correctly?
00(+) 60(country code) 1233345678(phone number)

00601233345678 - Input it like this?

I have replicated all the steps and its not working at the moment.

Reply to note: So which function in Teltonika should I use? Modbus TCP Client function tab right?

Of course.

On your Teltonika device, just enable the “Services → Modbus → Modbus TCP Server” functionality, e.g.:

Then, on your PLC, configure the Modbus TCP Client (it might also be called Modbus TCP Master) application. Try to send the following value to register 398 of your Teltonika equipment:

00601233345678\u0000\u0000\u0000\u0000\u0000\u0000test

Then send 1 to register 397.

Greetings,

Have the suggestions by @Unknown helped you out, or do you need any more help?

Best Regards,
Justinas

This topic was automatically closed after 60 days. New replies are no longer allowed.