public override void DeviceConn(KeyenceMcAsciiNetConfig config) { KeyenceMcAsciiNet keyenceMc = new KeyenceMcAsciiNet(); keyenceMc.IpAddress = config.IP; keyenceMc.Port = config.Port; OperateResult connect = keyenceMc.ConnectServer(); NetworkDevice = keyenceMc; if (!connect.IsSuccess) { throw new Exception("Connect Failed"); } }
public FormKeyenceAscii( ) { InitializeComponent( ); keyence_net = new KeyenceMcAsciiNet( ); }