123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- using Aitex.Core.RT.SCCore;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Aitex.Sorter.Common;
- using MECF.Framework.Common.Equipment;
- using Aitex.Core.RT.Device;
- using Aitex.Core.Common;
- namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot.MAG7
- {
- public class Mag7RobotHandlerFactory : IRobotHandlerFactory
- {
- private TokenGenerator _tokener;
- private IDevice _device = null;
- public Mag7RobotHandlerFactory(IDevice device)
- {
- _device = device;
- if (SC.ContainsItem($"{device.Name}.RobotCommunicationToken"))
- _tokener = new TokenGenerator($"{device.Name}.RobotCommunicationToken");
- else
- {
- _tokener = new TokenGenerator($"Robot.RobotCommunicationToken");
- }
- }
- public IHandler Init()
- {
- throw new NotImplementedException();
- }
- public IHandler Home()
- {
- return new Mag7RobotHandlerBase<RbHomeHandler>(_device, ref _tokener);
- }
- public IHandler ArmHome()
- {
- throw new NotImplementedException();
- }
- public IHandler Event()
- {
- return new Mag7RobotHandlerBase<RbEventHandler>(_device, ref _tokener, true);
- }
- public IHandler QueryState()
- {
- return new Mag7RobotHandlerBase<RBQueryStateHandler>(_device, ref _tokener);
- }
- public IHandler QueryPosition()
- {
- return new Mag7RobotHandlerBase<RBQueryPositionHandler>(_device, ref _tokener);
- }
- public IHandler Stop()
- {
- return new Mag7RobotHandlerBase<RbStopHandler>(_device, ref _tokener);
- }
- public IHandler SetSpeed(int speed)
- {
- return new Mag7RobotHandlerBase<RbSetSpeedHandler>(_device, ref _tokener, speed);
- }
- public IHandler Goto(ModuleName chamber, int slot, Motion next, Hand hand, int x, int y, int z)
- {
- return new Mag7RobotHandlerBase<GotoHandler>(_device, ref _tokener, chamber, slot, next, hand, x, y , z);
- }
- public IHandler Pick(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<PickHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler PickExtend(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<PickExtendHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler PickRetract(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<PickRetractHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler PickReadyPosition(ModuleName chamber, int slot, Hand hand)
- {
- throw new NotImplementedException();
- }
- public IHandler Place(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<PlaceHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler PlaceExtend(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<PlaceExtendHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler PlaceRetract(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<PlaceRetractHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler PlaceReadyPosition(ModuleName chamber, int slot, Hand hand)
- {
- throw new NotImplementedException();
- }
- public IHandler Exchange(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<ExchangHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler PickEx(ModuleName chamber, int slot, Hand hand, int x, int y, int z)
- {
- return new Mag7RobotHandlerBase<PickHandler>(_device, ref _tokener, chamber, slot, hand, x, y, z);
- }
- public IHandler PlaceEx(ModuleName chamber, int slot, Hand hand, int x, int y, int z)
- {
- return new Mag7RobotHandlerBase<PlaceHandler>(_device, ref _tokener, chamber, slot, hand, x, y, z);
- }
- public IHandler Grip(Hand hand)
- {
- throw new NotImplementedException();
- }
- public IHandler Release(Hand hand)
- {
- throw new NotImplementedException();
- }
- public IHandler Clear()
- {
- throw new NotImplementedException();
- }
- public IHandler WaferMapping(ModuleName loadport)
- {
- throw new NotImplementedException();
- }
- public IHandler QueryWaferMap(ModuleName loadport)
- {
- throw new NotImplementedException();
- }
- public IHandler SetCommunication( )
- {
- return new Mag7RobotHandlerBase<RbSetCommunicationHandler>(_device, ref _tokener);
- }
- public IHandler SetLoad(Hand hand)
- {
- return new Mag7RobotHandlerBase<RbSetLoadHandler>(_device, ref _tokener, hand);
- }
- public IHandler CheckLoad(ModuleName chamber, int slot)
- {
- return new Mag7RobotHandlerBase<RbCheckLoadHandler>(_device, ref _tokener, chamber, slot);
- }
- public IHandler RequestWaferPresent( )
- {
- return new Mag7RobotHandlerBase<RbRequestWaferPresentHandler>(_device, ref _tokener);
- }
- public IHandler RequestAWCData()
- {
- return new Mag7RobotHandlerBase<RRequestAWCDataHandler>(_device, ref _tokener);
- }
- public IHandler Extend(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<ExtendHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler Retract(ModuleName chamber, int slot, Hand hand)
- {
- return new Mag7RobotHandlerBase<RetractHandler>(_device, ref _tokener, chamber, slot, hand);
- }
- public IHandler Stop(bool isEmergency)
- {
- throw new NotImplementedException();
- }
- public IHandler Resume()
- {
- throw new NotImplementedException();
- }
- public IHandler MoveTo(ModuleName chamber, int slot, Hand hand, bool isPick, int x, int y, int z)
- {
- throw new NotImplementedException();
- }
- public IHandler ExchangeEx(ModuleName chamber, int slot, Hand hand, int x, int y, int z)
- {
- throw new NotImplementedException();
- }
- public IHandler ExchangeReadyPosition(ModuleName chamber, int slot, Hand pickHand, Hand placeHand)
- {
- throw new NotImplementedException();
- }
- public IHandler ExchangePickExtend(ModuleName chamber, int slot, Hand pickHand, Hand placeHand)
- {
- throw new NotImplementedException();
- }
- public IHandler ExchangePlaceExtend(ModuleName chamber, int slot, Hand pickHand, Hand placeHand)
- {
- throw new NotImplementedException();
- }
- public IHandler ExchangePlaceRetract(ModuleName chamber, int slot, Hand pickHand, Hand placeHand)
- {
- throw new NotImplementedException();
- }
- public IHandler SetWaferSize(int size)
- {
- throw new NotImplementedException();
- }
- public IHandler QueryWaferSize()
- {
- throw new NotImplementedException();
- }
- public IHandler ExchangeReadyExtend(ModuleName chamber, int slot, Hand pickHand, Hand placeHand)
- {
- throw new NotImplementedException();
- }
- public IHandler ExchangeAfterReadyExtend(ModuleName chamber, int slot, Hand pickHand, Hand placeHand)
- {
- throw new NotImplementedException();
- }
- public IHandler PositionAdjustment(Axis axis, Hand hand, int value)
- {
- throw new NotImplementedException();
- }
- public IHandler SetWaferSize(int cmd, WaferSize size)
- {
- throw new NotImplementedException();
- }
- public IHandler QueryParameter(int parameter, string parameterType)
- {
- throw new NotImplementedException();
- }
- public IHandler SetServoOnOff(bool trueForOnFalseForOff)
- {
- throw new NotImplementedException();
- }
- }
- }
|