TD-150: Difference between revisions
→Checking the connection between the sensor and the terminal via RS-485
| Line 799: | Line 799: | ||
== '''<big>Checking the connection between the sensor and the terminal via RS-485</big>''' == | == '''<big>Checking the connection between the sensor and the terminal via RS-485</big>''' == | ||
If the sensor, for some reason, after you have configured everything correctly, does not transmit data to the terminal, you need to find out whether data is being exchanged between devices. | |||
To do this, connect the sensor to the terminal via RS-485. Connect power to both devices. | |||
After that, take the RS-485-USB converter and connect it between the sensor and the terminal as shown below: | |||
For RS-485, lines A and B of the converter must be connected to lines A and B of the sensor | |||
[[Файл:Подключения для снятие лога RS-485 .png|без|мини|820x820пкс|'''<big>Подключения для снятие лога RS-485</big>''' ]] | [[Файл:Подключения для снятие лога RS-485 .png|без|мини|820x820пкс|'''<big>Подключения для снятие лога RS-485</big>''' ]] | ||
Run [https://drive.google.com/file/d/10i7v4TZ9-JDJYPAh-9JSh4x6vkM93BVV/view?usp=sharing terminal.exe] and configure the COM port as shown below: | |||
Baud rate – 19200, Parity – None, Stop-bits – 1, Handshaking – None | Baud rate – 19200, Parity – None, Stop-bits – 1, Handshaking – None | ||
Also, check HEX or ASCII depending on the format in which information from the sensor will be transmitted. For all sensors except the TD-600 configured in RS-232 mode, you must select HEX. | |||
After connecting the converter correctly, select the COM port and click Connect. If the sensor is polled by the terminal and responds, then everything is in order. | |||
[[Файл:Датчик отвечает терминалу по RS-485.png|без|мини|667x667пкс|'''<big>Датчик отвечает терминалу по RS-485</big>''']] | [[Файл:Датчик отвечает терминалу по RS-485.png|без|мини|667x667пкс|'''<big>Датчик отвечает терминалу по RS-485</big>''']] | ||
If there is no communication between the two devices, try polling the sensor manually. | |||
To do this, enter the request '''31$01$06$6C''' for the sensor with network address 1 and click '''Send''' | |||
[[Файл:Отправка запроса на датчик.png|без|мини|673x673пкс|'''<big>Отправка запроса на датчик</big>''']] | [[Файл:Отправка запроса на датчик.png|без|мини|673x673пкс|'''<big>Отправка запроса на датчик</big>''']] | ||
The structure of the request depends on the network address of the sensor. If you change the sensor address to 255, for example, then the request would look like this | |||
'''31$FF$06$29''' | '''31$FF$06$29''' | ||
'''FF''' - 255 | '''FF''' - 255 in HEX | ||
'''29''' - | '''29''' - '''CRC''' checksum calculated for a specific request | ||
In order to calculate the checksum, you can go to the '''[https://crccalc.com/ crccalc]''' website and enter your request without the '''$''' sign, select HEX, CRC-8/MAXIM and click Calc CRC-8 | |||
[[Файл:Расчет CRC для адреса 255.png|без|мини|678x678пкс|'''<big>Расчет CRC для адреса 255</big>''']] | [[Файл:Расчет CRC для адреса 255.png|без|мини|678x678пкс|'''<big>Расчет CRC для адреса 255</big>''']] | ||
If the sensor is polled by the terminal and responds, then everything is in order. | |||
If the sensor does not respond to the terminal, but responds to a request you send manually, you should check your terminal's RS-485 ports. | |||
If the sensor does not respond to anything, the standard FLS diagnostic procedure should be carried out. | |||
= '''<big>Description of the LLS protocol</big>''' = | = '''<big>Description of the LLS protocol</big>''' = | ||