Home > Net >  Is excuse me this sendDataToSer cabin or written by others
Is excuse me this sendDataToSer cabin or written by others

Time:09-19

SendDataToSer this function is WebReference. Service1 inside their own or other people write

This is a class and MES docking, don't quite understand the meaning of inside,



private WebApplication1. WebReference. Service1 _webFun;
Private Simulator. PlcModbus _plcSim;
Private Scanner. The rid_device_info_keyboard _kbHook;


Private void bgwWEB_DoWork (object sender, DoWorkEventArgs e)
{
Bool alarm=false;
Bool write=false;
while (! BgwWEB. CancellationPending)
{
Thread.sleep (100);

//class (1=0=day evening)
Var time=the Convert. ToInt32 (DateTime. Now. The ToString (" HHmmss "));
_shiftType=(time & lt; 80000 | | time & gt;=203000)? 1:0;
BgwWEB. ReportProgress (0, _shiftType);
Try
{
_webFun. Discover ();
If 100==00 (time %)//the second run
{
//2, 3, 4,
If ((_plcMs [0] & amp; 0 x04)==0 x04 & amp; & (_plcMs [0] & amp; 0 x08)==0 x00 & amp; & (_plcMs [0] & amp; 0 x10)==0 x00)/run/
{
String paramName="STATE";
String paramValue="https://bbs.csdn.net/topics/Run";
String ret=_webFun. SendDataToSer (Settings. The Default. ProductAcc, Settings. The Default. ProductPwd,
Settings. The Default. The deviceId paramName, paramValue, DateTime. Now. The ToString (" yyyy/MM/dd HH: MM: ss "));
If (ret=="OK")
BgwWEB. ReportProgress (1, paramValue);
}

CodePudding user response:

Other people write, not seen
  •  Tags:  
  • C#
  • Related