![HBM DMP41 Скачать руководство пользователя страница 21](http://html1.mh-extra.com/html/hbm/dmp41/dmp41_interface-description_2111867021.webp)
Program creation
Communication via the Ethernet interface / Test program
DMP41
A03474_04_E00_00
HBM: public
21
Single measured value acquisition with DMP41
private void ConnectBt_Click(object sender, EventArgs e)
1
myTCPClient = new TCPClient(this.IPAddressTB.Text, 1234); //
Set up connection with DMP41 (via entered
IP address and default Port 1234)
private void PrepareBt_Click(object sender, EventArgs e)
2
myTCPClient.WriteLine("RAR1234");
//
Request administrator rights (to
be able to change settings; Default
password="1234")
myTCPClient.WriteLine("SRB1");//
Command acknowledgement on
myTCPClient.WriteLine("CHS1");//
Select amplifier 1
myTCPClient.WriteLine("ASA2,1");//
Set excitation voltage and measuring range
myTCPClient.WriteLine("ASS2");//
Transducer signal = Measure
myTCPClient.WriteLine("AFS1");//
Select Filter 1
myTCPClient.WriteLine("ASF1,6,1");//
Set filter limit frequency
myTCPClient.WriteLine("CMR2");//
Select scaled signal
myTCPClient.WriteLine("ENU2,"KG"");//
Set unit of measurement
myTCPClient.WriteLine("LTB2,0,0,2,500");//
Set measured value scaling
myTCPClient.WriteLine("IAD2,,3,1");//
Set decimal place and step for scaling
myTCPClient.WriteLine("COF1");//
Set measured value output format
private void GetMeasvalsBt_Click(object sender, EventArgs e)
3
MeasvalTb.Text = myTCPClient.WriteLine("MSV?2")+" Kg";//
Read measured value net and output in
Textbox
private void DisconnectBt_Click(object sender, EventArgs e
4
myTCPClient.Close()
You can also program other tasks accordingly following this example.
References:
Tom Archer, Andrew Whitechapel
Inside C#
Objektorientiertes Programmieren mit C# und dem .NET Framework
Microsoft Press
ISBN: 3860636693
Содержание DMP41
Страница 1: ...Interface description and command set English DMP41 Digital precicion measuring device...
Страница 10: ...Interface comparison 10 A03474_04_E00_00 HBM public DMP41...
Страница 14: ...Communication with the DMP Ethernet interface 14 A03474_04_E00_00 HBM public DMP41...
Страница 18: ...Communication with the DMP RS 232 interface 18 A03474_04_E00_00 HBM public DMP41...
Страница 22: ...Program creation Communication via the Ethernet interface Test program 22 A03474_04_E00_00 HBM public DMP41...
Страница 86: ...Functional command overview 86 A03474_04_E00_00 HBM public DMP41...
Страница 90: ...Index 90 A03474_04_E00_00 HBM public DMP41...
Страница 91: ...Index DMP41 A03474_04_E00_00 HBM public 91...