Read 4 channel analog inputs by TCP or RS485 protocol - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1) +--- Forum: KC868-Server Raspberry Pi4 local server (https://www.kincony.com/forum/forumdisplay.php?fid=17) +--- Thread: Read 4 channel analog inputs by TCP or RS485 protocol (/showthread.php?tid=1837) |
Read 4 channel analog inputs by TCP or RS485 protocol - admin - 04-15-2022 1: Read 4 channel analog inputs by TCP command: Send: RELAY-GET_AI-255 Feedback: RELAY-AI-ALL,A0,A1,A2,A3,OK A0,A1 analog input range: DC0-5V A2,A3 analog input range: 4-20mA example: A0 and A1 connect with 3.3V , will feedback: RELAY-AI-ALL,330,330,0,0,OK A2 and A3 connect with 10mA sensor , will feedback: RELAY-AI-ALL,0,0,455,455,OK -------------------------------------------------------------- 2: enable/disable analog inputs by TCP command: Send: RELAY-AI_REPORT-255,1 //Enable analog input AUTO feedback Feedback: RELAY-AI_REPORT-255,1,OK Send: RELAY-AI_REPORT-255,0 //Disable analog input AUTO feedback Feedback: RELAY-AI_REPORT-255,0,OK --------------------------------------------------------------- 3. Read 4 channel analog inputs by MODBUS RS485 01 03 01 2C 00 04 CRCH CRCL Feedback: 01 03 08 A0 A1 A2 A3 CRCH CRCL 01:RS485 address ID 01 2C=300 register address 00 04 register number example: if A0 connect with 3.29V Send: 01 03 01 2C 00 04 84 3C Feedback: 01 03 08 01 49 00 00 00 00 00 00 8C DF 01 49 =329 = 3.29V if A1 connect with 3.31V Send: 01 03 01 2C 00 04 84 3C Feedback: 01 03 08 00 00 01 4B 00 00 00 00 30 08 01 4B =331 = 3.31V RE: Read 4 channel analog inputs by TCP or RS485 protocol - Helmut_number_one - 12-23-2023 Thanks for the answer! BUT it must be possible to get a complete Modbus address list, or a complete list of all TCP commands and at least instructions how to handle payload on Modbus. Are you seriously giving me examples with TCP that contain Chinese characters? This means that i can expect that you will not receive appropriate help if i have problems in use. I can't even read a manual with a complete description of all the options? Rarely have I read such a praise for a product. I find it out, here the doku for my questions Doku RE: Read 4 channel analog inputs by TCP or RS485 protocol - admin - 12-24-2023 Yes, all document at here: https://www.kincony.com/document |