User Tools

Site Tools

한국어

ml-thrt1:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ml-thrt1:index [2023/05/31 04:40]
COMFILE Technology [MOACON Example]
ml-thrt1:index [2023/05/31 04:43] (current)
COMFILE Technology [ML-THRT1]
Line 5: Line 5:
 [[../​Product warning|Warning]] [[../​Product warning|Warning]]
  
-{{ :ml-thrt1:ml-thrt1.png?400 }} +{{ :ml-thrt1:mlthrt.png?nolink |}}
 [[http://​comfiletech.com/​etc/​ml-thrt1/​|Buy]] [[http://​comfiletech.com/​etc/​ml-thrt1/​|Buy]]
 ===== Specifications ===== ===== Specifications =====
Line 24: Line 23:
 ===== Connections ===== ===== Connections =====
  
-{{ :​ml-thrt1:​connections.png?​700 }}+{{ :​ml-thrt1:​connections.png?​500 }}
  
 A termination resistor may be necessary if a ML-THRT1 is the last node in an RS-485 network. A termination resistor may be necessary if a ML-THRT1 is the last node in an RS-485 network.
  
-{{ :​ml-thrt1:​termination.png?​650 }}+{{ :​ml-thrt1:​termination.png?​450 }}
  
 ===== Data Format ===== ===== Data Format =====
Line 55: Line 54:
 { {
     openCom(0, 57600, com8N1);     openCom(0, 57600, com8N1);
-    comPower(1);​ +    comPower(1); ​   ​
-    +
     int Temp;     int Temp;
-    char res; +    char res;    ​
-    +
     while(1)     while(1)
     {     {
-        res = RTU_readRegs(0,​ 1, &Temp, 400, 1); +        res = RTU_readRegs(0,​ 1, &Temp, 400, 1);        ​
-        +
         if(res == -1)         if(res == -1)
         {         {
Line 71: Line 67:
         {         {
             printf("​Temp = Error"​);​             printf("​Temp = Error"​);​
-        } +        }        ​
-        +
         delay(1000);​         delay(1000);​
     }     }
ml-thrt1/index.1685475659.txt.gz · Last modified: 2023/05/31 04:40 by COMFILE Technology