12345678910111213141516171819202122232425262728293031 |
- using OTSModelSharp.ServiceInterface;
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OTSMeasureApp.ServiceCenter
- {
- public class IpcSEMController: MarshalByRefObject
- {
- private SemController sem= SemController.GetSEMController();
- public bool MoveSEMToPoint(Point poi)
- {
- if (!sem.IsConnected())
- {
- return false;
- }
- return sem.MoveSEMToPoint(poi);
- }
- public bool GetSemPositionXY(ref double a_dPositionX, ref double a_dPositionY, ref double a_dPositionR)
- {
- if (!sem.IsConnected())
- {
- return false;
- }
- return sem.GetSemPositionXY(ref a_dPositionX, ref a_dPositionY, ref a_dPositionR);
- }
- }
- }
|