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");
            }
        }
Example #2
0
 public FormKeyenceAscii( )
 {
     InitializeComponent( );
     keyence_net = new KeyenceMcAsciiNet( );
 }