Skip to content

Commit a21e893

Browse files
committed
更新PLC访问的注释说明
1 parent dc92b19 commit a21e893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

软件系统服务端模版/Form1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ private void MelsecNetMultiInnitialization()
696696
IpEndPoints.Add(System.Net.IPAddress.Parse("192.168.10." + i));
697697
}
698698

699-
//每隔1秒钟访问一次
699+
//每隔1秒钟访问一次,读取的地址为D6000-D6019,超时时间为700毫秒,主端口为6000,备用端口为6001
700700
MelsecMulti = new HslCommunication.Profinet.MelsecNetMultiAsync(0, 0, HslCommunication.Profinet.MelsecDataType.D, 6000, 20, 700, 1000, IpEndPoints.ToArray(), 6000, 6001);
701701
MelsecMulti.OnReceivedData += MelsecMulti_OnReceivedData;//所有机台的数据都返回时触发
702702
}

0 commit comments

Comments
 (0)