通信源码private void clint Click object sender EventArgs e实例化对象指定PLC的ip地址和端口号melsecMc new MelsecMcNet192.168.231.391026melsecMc.ConnectTimeOut1000网络连接的超时时间melsecMc.NetworkNumber0x00网络号melsecMc.NetworkStationNumber0x00网络站号连接对象OperateResult connect melsecMc.ConnectServer if connect.IsSuccess label7.Text PL