Changes

no edit summary
Line 67: Line 67:     
The first 10 registers are reserved for the phone number ('''1 register = 4 symbols''') additionally you will require to put in front '+' which is equal to 00 here. If your number (together with 00) does not take 10 registers we will require you to fill out the left registers with 0 values, that's why we use the '''\u0000 symbol''', which means 0 value.
 
The first 10 registers are reserved for the phone number ('''1 register = 4 symbols''') additionally you will require to put in front '+' which is equal to 00 here. If your number (together with 00) does not take 10 registers we will require you to fill out the left registers with 0 values, that's why we use the '''\u0000 symbol''', which means 0 value.
 +
 +
Here we will explore two examples, one for the ASCII data type and one for the HEX.
    
----
 
----
   −
'''Example Message request:'''
+
'''Example Message request for ASCII:'''
    
003706xxx1594\u0000\u0000\u0000\u0000\u0000\u0000\u0000test
 
003706xxx1594\u0000\u0000\u0000\u0000\u0000\u0000\u0000test
Line 78: Line 80:  
'''Explanation:'''
 
'''Explanation:'''
   −
* 00 = + symbol
+
* '''00''' - + symbol
* 3706xxx1594 = phone number
+
* '''3706xxx1594''' - phone number
* \u0000\u0000\u0000\u0000\u0000\u0000\u0000 - our number only takes up to 3 registers, all other registers will be filled with 0 value
+
* '''\u0000\u0000\u0000\u0000\u0000\u0000\u0000''' - our number only takes up to 3 registers(4 symbols = 1 register), all other registers will be filled with 0 value
* test - the message that will be sent
+
* '''test''' - the message that will be sent
 +
 
 +
----
 +
 
 +
'''Second example Message request for HEX:'''
 +
 
 +
30 30 33 37 30 36 78 78 78 31 35 39 34 00 00 00 00 00 00 00 74 65 73 74
 +
 
 +
----
 +
 
 +
'''Explanation:'''
 +
 
 +
* '''30 30''' - equals to 00(+ symbol)
 +
* '''33 37 30 36 78 78 78 31 35 39 34''' - equals to 3706xxx1594 number
 +
* '''00 00 00 00 00 00 00''' - our number only takes up to 3 registers(4 symbols = 1 register), all other registers will be filled with 0 value
 +
* '''74 65 73 74''' - equals to 'test' in HEX
 +
 
 +
For this example you will need to use ASCII to HEX converter which will convert your number and message to HEX format, the one used in this example was: https://www.utilities-online.info/ascii-to-hex
 +
 
 +
Example of the conversion:
 +
 
 +
[[File:Networking rut configuration modbus tcp master ascii to hex v1.png|border|class=tlt-border|1100px]]
    
----
 
----