Вверх ↑
Ответов: 495
Рейтинг: 163
#1: 2020-03-31 00:31:18 ЛС | профиль | цитата
rs485 писал(а):
00 00 3F C0 = 1.5 (Float)

rs485 , возможный вариант...


Add(MainForm,7627038,98,210)
{
Width=329
Height=139
}
Add(Edit,3538703,245,77)
{
Left=94
Top=21
Width=95
Text="3FC00000"
ClearAfterEnter=1
}
Add(DataToFileEx,16035970,322,126)
{
Type=1
DataSize=4
BigEndian=0
Point(onRdError)
link(onGet,1982615:doText,[])
}
Add(Edit,1982615,399,126)
{
Left=210
Top=20
Width=75
Text=""
}
Add(Button,10208308,98,126)
{
Left=20
Top=20
link(onClick,7245261:doEvent1,[])
}
Add(Edit,3926723,245,196)
{
Left=95
Top=50
Width=95
Text="00 00 3F C0"
}
Add(Hub,7245261,168,126)
{
link(onEvent1,10986562:doConvert,[])
link(onEvent2,1749948:doEnum,[(194,139)(194,251)])
}
Add(Edit,5624086,483,294)
{
Left=210
Top=50
Width=75
Text=""
}
Add(FormatStr,10431772,315,294)
{
DataCount=4
Mask="%2%1%4%3 "
link(onFString,7934642:doConvert,[])
link(Str1,10052497:Value1,[])
link(Str2,10052497:Value2,[])
link(Str3,10052497:Value3,[])
link(Str4,10052497:Value4,[])
}
Add(Str_Enum,1749948,245,245)
{
Delimiter=" "
link(onEnum,10052497:doValue,[])
link(onEndEnum,10431772:doString,[(289,258)(289,300)])
link(String,3926723:Text,[])
}
Add(MemFIFO,10052497,315,245)
{
Count=4
}
Add(DataToFileEx,10876944,427,294)
{
Type=1
DataSize=4
BigEndian=0
Point(onRdError)
link(onGet,5624086:doText,[])
}
Add(StreamConvertor,10986562,245,126)
{
Mode=1
Point(Data)
link(onResult,16035970:doGet,[])
link(Data,3538703:Text,[])
}
Add(StreamConvertor,7934642,371,294)
{
Mode=1
Point(Data)
link(onResult,10876944:doGet,[])
}

карма: 4

0