mz-automation / lib60870.NET

Official repository for lib60870.NET an implementation of the IEC 60870-5-101/104 protocols in C#
https://www.mz-automation.de/communication-protocols/iec-60870-5-101-104-c-net-source-code-library/
GNU General Public License v3.0
123 stars 75 forks source link

Single variable Read #1

Open ghost opened 6 years ago

ghost commented 6 years ago

I want to read

M_ME_TF_1(36) | Short measured value (FLOAT32) with CP56Time2a asdu adress:2063259 from iec60870 server with c# form application but i don't read. Because i don't understand function of lib60870 like a asdureceivedhandler.

Briefly i want to read one variable (m_me_tf_1(36)) and i want this value assign to label1.text. How can i do this?

Thanks for all....

Best regards...

mzillgith commented 6 years ago

You can e..g use the Read method of Connection (see https://support.mz-automation.de/doc/lib60870.NET/latest/classlib60870_1_1_c_s104_1_1_connection.html#aeaa8a8dbf8e2449d0222837b9d5ae3d8 to read a single variable and have to evaluate the response in the ASDUReceivedHandler. See the examples on how to use the ASDUReceivedHandler.