The Advanced Photon Source is an Office of Science User Facility operated for the U.S. Department of Energy Office of Science by Argonne National Laboratory.

Slides:



Advertisements
Similar presentations
© 2013 SPiiPlus Training Class Homing. © 2013 Homing Homing is a very important aspect for almost any motion system. With a wide variety of mechanical.
Advertisements

1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Working With the GMF Cylindrical Robots Lessons with the Robot System and RC Programming Language.
Delta Tau Coordinate Systems and PLCs at Diamond Matthew Pearson Controls Group, Diamond Light Source Overview: Delta Tau Geobrick motor controller Delta.
Finding, Deploying and Managing EPICS Support Modules Andrew Johnson Computer Scientist, AES Controls.
Sheng Peng Motion Control in 3/12/ Motion Control in LCLS Sheng Peng EPICS Meeting 2008, Shanghai.
1 DIFFERENTIAL POLARIZATION DELAY LINE Controller FINAL REPORT D0215 Supervisor : Mony Orbach Performed by: Maria Terushkin Guy Ovadia Technion – Israel.
TCS3 Servo Design Review - Software VTCS ModesRTCS ModesPMAC notesComments Idle OpenServo Brakes Locked Amp Disabled Track Jog or PVT (Jog preferred) Target.
INTEGRATION OF EPICS ASYN INTO NON EPICS ENVIRONMENT PRERANA KANKIYA Brookhaven National Laboratory, New York EPICS COLLABORATION MEETING, 2014.
Data Acquisition and Control Systems HYTEC ELECTRONICS LIMITED Motor Control and Power Drive Support Graham Cross.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
EPICS Meeting, APS, June 14 th 2006 MCS-8 The 8 axes motion control system Rok Šabjan
Input/Output Controller (IOC) Overview Andrew Johnson Computer Scientist, AES Controls Group.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a.
Power PMAC Electronic Cam Tables April 2014
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Feb Motor Support.
Motion Control System Status
SPEAR Insertion Device Controls Upgrade Status Arturo Alarcon January, 2014.
Automatic Regression Test Facility for Support Modules Jon Thompson, Diamond Light Source Vancouver, 1 May 2009.
1 Experimental Physics and Industrial Control System (EPICS) Database Bob Dalesio, May 31,2010.
EPICS Developments at the Australian Synchrotron DSP EPICS driver for the General Standards 16AIO analog card EPICS driver for the Galil range of motor.
Marcel Grunder, EPICS Collaboration Meeting October Aerotech A3200 high precision rotation stage Windows based Epics IOC driver implementation.
Debby Quock November 13, 2012 IRMIS at CLS. IRMIS Currently at CLS PV Crawler –Perl modules that parse EPICS IOC st.cmd, db, and dbd files. Information.
On-the-fly scanning: Improvements in the EPICS motor and mca modules Mark Rivers University of Chicago.
JavaIOC EPICS Meeting SSRF March Presented by: Marty Kraimer.
Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Problem You are to design an automated goalie for an air hockey.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
HARDWARE INTERFACE FOR A 3-DOF SURGICAL ROBOT ARM Ahmet Atasoy 1, Mehmed Ozkan 2, Duygun Erol Barkana 3 1 Institute of Biomedical Engineering, Bogazici.
Intro to Software System Modeling
Automated Testing Presentation to EPICS Collaboration Meeting DESY Paul Gibbons PhD Diamond Light Source Ltd.
Power PMAC Tuning Tool Overview. Power PMAC Servo Structure Versatile, Allows complex servo algorithms be implemented Allows 2 degree of freedom control.
Stepper Motor Control, PLC vs VME Herb Strong, Pam Gurd Spallation Neutron Source Oak Ridge National Laboratory October 17, 2007.
EPICS Application Development At The Canadian Light Source Glen Wright.
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
Motor drivers for asyn motor device support Mark Rivers GeoSoilEnviroCARS, Advanced Photon Source University of Chicago.
CEA DSM Irfu July 19th 2013-Françoise Gougnaud - Status of EPICS control for ECCTD 1 Françoise Gougnaud Irfu/SIS.
Servo Motor Control.
An EPICS solution for Galil products that can provide a comprehensive, and high performance motor and PLC control system for use at synchrotrons and other.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
1 1999/Ph 514: Supported Hardware EPICS Supported Hardware Ned D. Arnold APS.
Diagnostics and Optimization Procedures for Beamline Control at BESSY A. Balzer, P. Bischoff, R. Follath, D. Herrendörfer, G. Reichardt, P. Stange.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
1 EPICS Flow of Control: EPICS Workshop at IHEP, Beijing, August 2001 EPICS Flow of Control Marty Kraimer APS.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
Motion Control at the Advanced Photon Source Argonne National Laboratory Mark Rivers University of Chicago 7 GeV synchrotron x-ray light source, the largest.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Get your software working before putting it on the robot!
SPECIAL FUNCTIONS ON ASDA-A2. To Audience Advance level This slide will teach some special functions on ASDA-A2. For better understanding the content,
Software Troubleshooting Eliminate possible programming and timing errors by stopping all programs ( and ). Use the Executive program terminal and send.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
Sardana/IcePAP Based Control System for elliptically polarized Undulator at Max IV 30th Tango Collaboration meeting
AsynMotor: Support For Coordinated Multi-Axis Motion In EPICS Mark Rivers University of Chicago.
Stephanie Allison Software Mar 2, 2006 IOC Applications Host Applications Directory Structure Environment Setup Issues.
SNS COLLEGE OF ENGINEERING
SPiiPlus Training Class
Diamond Motion Control
Diamond Motion Control Emma Shepherd & Matthew Pearson May 2011
Mark Rivers University of Chicago
Precision Linear Motorized Stages
NC,CNC machines and Control Programming.
NC and CNC machines and Control Programming
Getting Started with EPICS Lecture Series
Controller interfaces
Channel Access Concepts
Motor record – next generation ?
Presentation transcript:

The Advanced Photon Source is an Office of Science User Facility operated for the U.S. Department of Energy Office of Science by Argonne National Laboratory EPICS Training 2015 Using Motors Ronald L. Sluiter

EPICS Training Using Motors, Ron L. Sluiter, Overview  Acknowledgements.  What’s in the EPICS motor module and what’s it for?  Supported motor controller Manufacturers and models.  Motor record features.  Configuration example.  Feedback.  Retries.  Backlash Correction.  Distribution. Note: All of following refers to R6-9 of the motor distribution. 2

EPICS Training Using Motors, Ron L. Sluiter, Acknowledgments  Jim Kowalkowski - original author, until…  Tim Mooney and Joe Sullivan, until…  Myself, since 1998/9, until…  Kevin Peterson and myself are the current “module owners”.  Many contributors to the motor module.  Mark, BCDA, Diamond Light Source, vendors 3

EPICS Training Using Motors, Ron L. Sluiter, Terminology  MM  Motor Module distribution  MR  Motor Record  EGU  Engineering Units  RPS  Revolutions Per Second  Stepper motors step and encoders tick.  Readback  Feedback  target position - a user requested, static, absolute position (VAL).  commanded position – the motor controller’s current, dynamic, absolute reference position (RMP). 4

EPICS Training Using Motors, Ron L. Sluiter, What’s in the Motor module?  User displays - medm, CSS/Boy, caQtDm (mostly commissioning, some application specific; e.g., fly scanning) (Location: /motorApp/op/*)  Databases – (templates referenced by *.substitution files) (Location: /motorApp/Db)  The MR (*.dbd and 4,000+ *.cc) and common device/driver code shared by all device/drivers (Location: /motorApp/MotorSrc)  3 different motor module device/driver architectures.  Model 1 (unique device, used asyn for comm.), Model 2 & 3 (common device, asyn integral)   Vendor specific directories, device/driver code and *.dbd (README docs) (Location: /motorApp/ Src).  Save/restore *.req files (Location: /motorApp/Db). 5

EPICS Training Using Motors, Ron L. Sluiter, What’s in the Motor module?  Two IOC build examples (w/ and w/o Asyn) with motor device/drivers (build option) (Location: /motorExApp)  iocBoot examples (controller specific st.cmd and supporting *.cmd files) (build option) (Location: /iocBoot/*)  Documentation (release notes, motor record and device/driver info) (Location: /documentation) 6

EPICS Training Using Motors, Ron L. Sluiter, What’s the Motor module for?  Device independence – motor hardware is transparent to users.  Same user displays and motor motion behavior, for all devices.  Common device and driver level software for all supported controllers.  Unsupported MR features are handled at the device/driver level; typically, by ignoring the request (the price - LCD motor record features). Available operations from this display; 1.Make absolute or incremental moves. 2.Define the current position. 3.Stop the current move. without any controller specific information. 7

EPICS Training Using Motors, Ron L. Sluiter, Supported Manufacturers 1. Pro-Dex (OMS) 2. Newport 3. Schneider Electric 4. Advanced Control Systems 5. Mclennan 6. Physik Instrumente (PI) 7. MicroMo 8. Micos 9. Faulhaber 10. Parker Hannifin 11. New Focus 12. ACS Motion Control 13. Spectra-Physics 14. Thorlabs 15. Animatics 16. piezosystem 17. Kohzu 18. attocube 19. Aerotech 20. Hytec 21. nPoint 22. Micronix 23. SmarAct 24. Phytron 8

EPICS Training Using Motors, Ron L. Sluiter, Does motor controller XYZ have EPICS support?  Motor record document. MM location: /documentation/motorRecord.html  EPICS Hardware Support: by Manufacturer Not all controller support is distributed in the MM; e.g., Galil  EPICS tech-talk (search - ask) Search for “Delta Tau Turbo PMAC2 VME Ultralight”  Support for stepper, servo, piezo (deflection and slip-stick) motors. 9

EPICS Training Using Motors, Ron L. Sluiter, Features - scope  The scope of the MR is limited to single axis, non-coordinated, point to point moves.  For multi-axis coordinated motion and trajectory scans see… 

EPICS Training Using Motors, Ron L. Sluiter, Features - coordinate systems. X RVAL MRES DIR: +/- 1 OFF X DVAL VAL + Raw Dial User EGU’s steps or ticks 11

EPICS Training Using Motors, Ron L. Sluiter, Features - coordinate systems.  Some controllers use raw units to communicate.  The MR communicates to device support in raw units.  Position, velocity and acceleration MR commands to device support are in steps, steps/sec and steps/sec^2.  Other controllers communicate in engineering units (EGU’s); e.g., inch, mm, degrees. Device support handles the conversion.  Motor resolution field (MRES) converts raw values to dial values.  Convert raw target position (RVAL) to dial target (DVAL): DVAL [EGU’s] = RVAL [steps] * MRES [EGU’s/step]  User units are based on dial units, the User Direction field (DIR) and the User Offset field (OFF)  Convert dial target position (DVAL) to user target (VAL): VAL = (DVAL * DIR) + OFF; where DIR = +/

EPICS Training Using Motors, Ron L. Sluiter, Features – Move types  Absolute (VAL, DVAL, RVAL)  Relative (RLV)  Incremental (TWF, TWR, TWV) 13

EPICS Training Using Motors, Ron L. Sluiter, VAL DVAL RVAL TWF/ TWR RLV TWV 14

EPICS Training Using Motors, Ron L. Sluiter, Features – Velocity and Acceleration  Maximum Velocity (VMAX).  Slew Velocity (VELO)  Base Velocity (VBAS) – for stepper motors only to minimize resonance.  Slew Acceleration time (ACCL [sec]) – acc. rate [step/s^2] = (VELO - VBAS) / ACCL 15

EPICS Training Using Motors, Ron L. Sluiter, VMAX ACCL VELO VBAS 16

EPICS Training Using Motors, Ron L. Sluiter, Features – Homing, Jogging  Home search (HOMF, HOMR, HVEL).  Jogging (JOGF, JOGR, JVEL, JAR).  Safety issues  Commissioning a stage? Check hardware limit switches 1 st.  pinch hazards, remote operation, servo systems 17

EPICS Training Using Motors, Ron L. Sluiter, JAR JOGF/JOGR HOMF/HOMR JVEL 18

EPICS Training Using Motors, Ron L. Sluiter, Features – Set position, soft travel limits  Define current position (SET, FOFF).  Software travel limits (HLM, LLM, DHLM, DLLM) (disabled if DHLM = DLLM = 0) 19

EPICS Training Using Motors, Ron L. Sluiter, Set HLM/LLM DHLM/DLLM FOFF 20

EPICS Training Using Motors, Ron L. Sluiter, Features  Send motor controller command primitives at initialization, pre-move and post- move; (INIT, PREM, POST).  Drive Power Monitoring and Motor Synchronized DB Puts via Device Directives.  User initiated updates via the Status Update field (STUP).  A few fields are motor type specific;  PID parameters (PCOF/ICOF/DCOF) for servo motors (normalized to 0 -> 1).  Velocity base (VBAS) for stepper motors.  Done Moving Input Link (DINP) for Soft Channel.  Position feedback from either a EPICS PV link or a motor controller. 21

EPICS Training Using Motors, Ron L. Sluiter, Configuration example  Set the engineering units field (EGU); inch, mm, degrees.  Set the motor resolution (MRES) field which is in units of …  (EGU’s / motor step) for stepper motors.  (EGU’s / encoder tick) for servo motors. 22

EPICS Training Using Motors, Ron L. Sluiter, Cont'd Configuration example  What should MRES be set to?  For a simple linear stage with a leadscrew directly driven by a stepper motor. 23

EPICS Training Using Motors, Ron L. Sluiter, Cont'd Configuration example  UREV = EGU’s / 1 leadscrew rev.  SREV = motor steps / 1 motor rev. > 0  MRES = UREV / SREV  MRES and UREV allow negative values so that the record’s coordinate system can be configured to the opposite polarity of the motor controller's.  Never change MRES while the motor is moving. 24

EPICS Training Using Motors, Ron L. Sluiter, Cont'd Configuration example  Gear box example  Gear ratio definition; “The ratio of the powered gear of a gear train to that of the final or driven gear.” Hence, a 3:1 gear ratio means that the motor makes 3 revolutions per 1 revolution of the lead screw  For a servo motor with a motor mounted encoder, change motor steps to encoder ticks. 25

EPICS Training Using Motors, Ron L. Sluiter, Feedback  Two ways to input position feedback to the motor record: 1.From driver support, via the motor controller. 2.From an EPICS PV, via a stand-alone, feedback device,  For feedback from driver support:  Driver level code sets the Encoder is Present bit (EA_PRESENT) in the Motor Status field (MSTA) to True at initialization.  The Raw Encoder Position field (REP) has the motor controllers’ raw encoder value [ticks].  Configuring feedback from driver support:  Set the Encoder Resolution field (ERES) to convert encoder ticks to EGU’s.  The Use Encoder If Present field (UEIP) determines if the REP is used [Yes/No]. 26

EPICS Training Using Motors, Ron L. Sluiter, Cont'd Feedback  Configuring feedback from an EPICS PV:  Set Readback PV link (RDBL).  Set the Readback Resolution (RRES) to convert the RDBL PV units to EGU’s.  The Use Readback If Present field (URIP) determines if the RDBL PV link is used [Yes/No].  Raw Motor Position (RMP) is the current commanded position read from the motor controller. If motor record closed-loop control is off (UEIP & URIP both set to No), then RVAL = RMP after every move.  Raw Readback Value field (RRBV) can be in units of either steps or ticks. 27

EPICS Training Using Motors, Ron L. Sluiter, RDBL RRES URIP 28

EPICS Training Using Motors, Ron L. Sluiter, Feedback data flow X RBV OFF DIR: +/- 1 REP RMP X RRBV ERES RDBL Link X MRES DRBV MRES 29 UEIP = Yes UEIP = URIP = No URIP = Yes UEIP = Yes UEIP = URIP = No, OR, URIP = Yes + RRES ÷

EPICS Training Using Motors, Ron L. Sluiter, REP RMP RRBV RRES RDBL STUP RVAL UEIP URIP 30

EPICS Training Using Motors, Ron L. Sluiter, Retries  What it isn’t. Retries are not continuous, dynamic loop closure.  What it is. Retries try to eliminate dial position error (DIFF) by making, consecutive, relative moves based on the DIFF field.  DIFF = DVAL – DRBV  If [RTRY !=0, AND, ((EA_PRESENT = True, AND, UEIP == Yes), OR, URIP == Yes)] is True, then all motor record moves are relative moves.  Configuring retries:  Usually set UEIP == No for a servo motor.  Set Retry Deadband (RDBD) ; retry if (DIFF > RDBD).  Set Max Retry Count (RTRY) - maximum number of retries.  Current Retry Count (RCNT) – cleared at the start of every move. 31

EPICS Training Using Motors, Ron L. Sluiter, DIFF RDBD RTRY RCNT 32

EPICS Training Using Motors, Ron L. Sluiter, Backlash Correction  Backlash - lost motion due to mechanical imperfections.  Backlash configuration:  Backlash distance (BDST) determines the magnitude and direction of the backlash move.  The backlash has its’ own velocity (BVEL) and acceleration (BACC) parameters.  Backlash correction algorithm:  Preferred direction - the sign of BDST.  Slew parameters - slew velocity (VELO) and acceleration (ACCL).  Backlash parameters - BVEL and BACC. 33

EPICS Training Using Motors, Ron L. Sluiter, Backlash Correction Logic  Given a move to a position called Target: IF backlash is disabled (0 = |BDST| < |MRES|), OR, (move is in the preferred direction, AND, backlash parameters == slew parameters). THEN, skip backlash, move to Target using slew parameters. ELSE IF the incremental distance > |BDST|, OR, the move is Not in the preferred direction. THEN, move to position (Target - BDST) using slew parameters, then move to Target using backlash parameters. ELSE IF the incremental distance <= |BDST|, AND, the move is in the preferred direction. THEN, backlash is assumed to have been taken out; move to Target using backlash parameters. ENDIF 34

EPICS Training Using Motors, Ron L. Sluiter, BACC BDST BVEL 35

EPICS Training Using Motors, Ron L. Sluiter, Motor module distribution and build customization  Motor module web page.   Motor module build customization.  To build examples; uncomment three lines in /Makefile that begin with “#!”.  /configure/RELEASE:  If only EPICS_BASE is defined, only OMS and Soft Channel model #1 device/drivers are built.  ASYN is required for everything else.  /motorApp/Makefile: Define which device/driver modules to build. 36