Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read 4 channel analog inputs by TCP or RS485 protocol
#1
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
Reply


Messages In This Thread
Read 4 channel analog inputs by TCP or RS485 protocol - by admin - 04-15-2022, 03:25 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)