Home > front end >  Microsoft's own debugging assistant, ModBus agreement with the data extraction
Microsoft's own debugging assistant, ModBus agreement with the data extraction

Time:10-21

[b] the Modbus communication protocol, the use of Microsoft's own serial debugging assistant

In the software, can need according to his own script design send and retrieve data


This script is used in the design of model is the JavaScript language script design, the following is I through access to information designed

, 
The function main () {
Var STR=receive. The get ();
Str1=STR. Replace (/\ s */g, "");
Var data=https://bbs.csdn.net/topics/str1.substring (7, 15);

The receive. Write (data, "orange");
return ;
}
) ()


Collect data below:


Data conversion, data collection can be below for himself by looking at data for the source of design:


, 
The function main () {
Var STR=receive. The get ();
Arr=STR. The substring, 22 (11);
Data1=arr. Split (" ");
Var arr=data1;
Var arr2=arr. The map (item=& gt; {
Return parseInt (item, 16);
})

The receive. Write (arr2, "orange");
return ;
}
) ()

Everyone have different understanding of the bosses, the younger brother to follow
The chapter behind have a update, I also in the study, the common progress of the hope and the bosses
More than for my own research, hope everybody bosses more directions, there is an error, the trouble to leave a message, thank you
  • Related