コード例 #1
0
        public void Init()
        {
            m_yaskawaRobot = new YaskawaRobot("192.168.255.1", 80);

            m_camera = new HaiKangCamera("camera", CameraConnectType.GigEVision2);
            try
            {
                m_camera.OpenCamera();
                DelegateControls.Instance.DelegateRichTextBoxZd("FormMain_RichTextBoxZd", "successfull to open camera");
            }
            catch (Exception ex)
            {
                DelegateControls.Instance.DelegateRichTextBoxZd("FormMain_RichTextBoxZd", ex.Message, Color.Red);
            }

            try
            {
                m_xinjiePlc = new XinJiePlc("192.168.6.10", 8001, "192.168.6.6", 502);
                m_xinjiePlc.Connect();
                DelegateControls.Instance.DelegateRichTextBoxZd("FormMain_RichTextBoxZd", "successfull to connnect PLC");
            }
            catch (Exception ex)
            {
                DelegateControls.Instance.DelegateRichTextBoxZd("FormMain_RichTextBoxZd", ex.Message, Color.Red);
            }
        }
コード例 #2
0
 public FormCalibrate(YaskawaRobot Robot, ShapeModle shapeModle, CameraBase cameraBase)
 {
     InitializeComponent();
     this.Robot   = Robot;
     m_ShapeModle = shapeModle;
     m_Camera     = cameraBase;
     Init();
 }