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.

Slides:



Advertisements
Similar presentations
Chapter 6 Server-side Programming: Java Servlets
Advertisements

MP200 Presentation MICRO-BIT TECHNOLOGY, INC..
© 2013 SPiiPlus Training Class Homing. © 2013 Homing Homing is a very important aspect for almost any motion system. With a wide variety of mechanical.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
DETAILED DESIGN, IMPLEMENTATIONA AND TESTING Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
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.
Chapter 1 - An Introduction to Computers and Problem Solving
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.
1 Arturo Alarcon 1 Undulator Controls Status FAC Undulator Controls Status Arturo Alarcon June 9, 2009.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering 3 October 2007.
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.
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.
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.
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.
EPICS Meeting, APS, June 14 th 2006 MCS-8 The 8 axes motion control system Rok Šabjan
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
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
Confidential / Property of Danfoss Drives A/S DD-SMT/DEJ 1 Drives Division VLT ® AutomationDrive FC302 PM Motors Configuration procedure By:
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Feb Motor Support.
1 L Fall 2003 – Introductory Digital Systems Laboratory Motors and Position Determination.
50mm Telescope ACS Course Garching, 15 th to 19 th January 2007 January 2007Garching.
1 Experimental Physics and Industrial Control System (EPICS) Database Bob Dalesio, May 31,2010.
Experimental Physics and Industrial Control System (EPICS) Database Bob Dalesio, June 27,2001.
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.
Software Development Software Testing. Testing Definitions There are many tests going under various names. The following is a general list to get a feel.
LCLS Undulator Positioning Control System Shifu Xu, Joseph Xu, Josh Stein Control Group, AES/APS, ANL June 15, 2006.
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.
EPICS Collaboration Meeting18 June Years of EPICS at the Joint Astronomy Centre Nick Rees Head of Software and Computing Services Joint Astronomy.
Intro to Software System Modeling
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays - done for rsrv in 3.14 Channel access priorities - planned to.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
EPICS Development for the ASKAP Design Enhancements Program ASTRONOMY AND SPACE SCIENCE Craig Haskins 18 th October 2015 EPICS User Meeting – Melbourne.
Motor drivers for asyn motor device support Mark Rivers GeoSoilEnviroCARS, Advanced Photon Source University of Chicago.
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.
UCPC RP1.8 New Features Nov 2015 UCPC Team 19 Nov 2015UCPC RP Release Features Presentation1.
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 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.
Application Design Document Developers: o Uri Goldenberg o Henry Abravanel o Academic.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
Instrument Control Systems Seminar 2014, 20 th -24 th October 2014 Development of VLT Instrument Motion Control PLC Applications D.Popovic, ESO/DoE/CSE/ICSSW.
CLS Stepper Motor Control S tepper motors - Currently over 400 motors - many different brands: Parker, Phytron, SloSyn, McLennan, and others.
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.
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.
SNS COLLEGE OF ENGINEERING
Diamond Motion Control Emma Shepherd & Matthew Pearson May 2011
4m. Blanco TCS Upgrade: Electronic Status at March/2010
Mapping Robot Department of Electrical & Computer Engineering
Mark Rivers University of Chicago
NC,CNC machines and Control Programming.
NC and CNC machines and Control Programming
Getting Started with EPICS Lecture Series
Controller interfaces
Motor record – next generation ?
Presentation transcript:

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 of Energy Getting Started with EPICS Lecture Series The EPICS Motor Record Ronald L. Sluiter 03/01/05

Pioneering Science and Technology Office of Science U.S. Department of Energy Overview  Acknowledgements.  Supported device list.  Feature list.  Coordinate systems.  Configuration example.  Feedback.  Retries.  Backlash Correction.  Distribution. Note: All of following refers to R5-5 of the motor distribution.

Pioneering Science and Technology Office of Science U.S. Department of Energy Acknowledgments  Jim Kowalkowski - original author.  Tim Mooney and Joe Sullivan.  Myself, since  Mark Rivers  motor interface to Hideos, MPF and ASYN.  Newport, Mclennan and ACS device drivers.  Kevin Peterson – MicroMo MVP 2001 B02 device driver.  Kurt Goetze –Micos MoCo dc device driver.  Users who report bugs and help fix them.

Pioneering Science and Technology Office of Science U.S. Department of Energy Supported device list 1. Oregon Micro Systems, Inc. models; VME8, VME44, VME58, VS4, VX2 and MAXv. 2. Highland Technologies model V Newport models MM3000, MM4000, MM4005, MM4006, PM500, ESP300 and XPSC8. 4. Soft Channel. 5. Advanced Control Systems, Corp. model MCB-4B. 6. Mclennan models PM304 and PM Intelligent Motion Systems, Inc. (IMS) models IM483 and MDrive. 8. MX device driver. 9. Physik Instrumente (PI) GmbH & Co. model C MicroMo model MVP 2001 B Micos model MoCo dc controller. 12. Delta Tau PMAC2-VME controller.

Pioneering Science and Technology Office of Science U.S. Department of Energy Feature list  Device independence – motor hardware is transparent to users.  Same medm screens and record level software, for all devices.  Common device and driver level software for most devices.  Unsupported motor record features are handled at the device level; typically, by ignoring the request. 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.

Pioneering Science and Technology Office of Science U.S. Department of Energy Cont'd Feature list  The scope of the motor record is limited to single axis, non- coordinated, point to point moves.  Absolute, relative and incremental moves.  Supports stepper, DC and Soft Channel motors. Very few fields are motor type specific;  PID parameters (PCOF/ICOF/DCOF) for DC motors.  Velocity base (VBAS) for stepper motors.  Done Moving Input Link (DINP) for Soft Channel.  Three different position coordinate systems; user, dial and raw.  Record level backlash correction.  Homing.

Pioneering Science and Technology Office of Science U.S. Department of Energy Cont'd Feature list  Software travel limits.  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.  Jogging.  Motor record closed-loop control via Retries.  Position feedback from either a EPICS PV link or a motor controller.  Define current position (SET).  Continuous, periodic updates via the Status Update field (STUP).

Pioneering Science and Technology Office of Science U.S. Department of Energy Terminology  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).

Pioneering Science and Technology Office of Science U.S. Department of Energy Coordinate systems.  Typically, raw coordinates are the units that software uses to communicate to the motor controller. Position commands to a...  stepper motor controller are in steps.  DC motor controller are in encoder ticks.  Exception – some controllers communicate in engineering units (EGU’s); e.g., inch, mm, degrees.  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 = +/- 1.

Pioneering Science and Technology Office of Science U.S. Department of Energy Cont'd Coordinate systems. X RVAL MRES DIR OFF X DVAL VAL + Raw Dial User EGU’s steps/ticks

Pioneering Science and Technology Office of Science U.S. Department of Energy 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 DC motors.

Pioneering Science and Technology Office of Science U.S. Department of Energy Cont'd Configuration example  What should MRES be set to?  For a simple linear stage with a leadscrew directly driven by a stepper motor.

Pioneering Science and Technology Office of Science U.S. Department of Energy 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.

Pioneering Science and Technology Office of Science U.S. Department of Energy 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 DC motor with a motor mounted encoder, change motor steps to encoder ticks.

Pioneering Science and Technology Office of Science U.S. Department of Energy 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].

Pioneering Science and Technology Office of Science U.S. Department of Energy 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.

Pioneering Science and Technology Office of Science U.S. Department of Energy Feedback data flow X / + RBV OFF DIR REP RMP X RRBV ERES RDBL Link X RRES DRBV MRES UEIP == Yes && EA_PRESENT == True URIP == NO

Pioneering Science and Technology Office of Science U.S. Department of Energy RE P RM P RRBV RRE S RDBL STU P RVAL UEIP URIP

Pioneering Science and Technology Office of Science U.S. Department of Energy 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 ((EA_PRESENT = True, AND, UEIP == Yes), OR, URIP == Yes) is True, then all motor record moves are relative moves.  Note that when the above is true, retries change the commanded position, not the target position. RVAL != RMP after a retry.  Configuring retries:  Never set UEIP == Yes for a DC motor.  Set Retry Deadband (RDBD); retry if (DIFF > RDBD); RDBD limited to >= MRES.  Set Max Retry Count (RTRY) - maximum number of retries.  Current Retry Count (RCNT) – clear at beginning of every move.

Pioneering Science and Technology Office of Science U.S. Department of Energy Backlash Correction  Backlash - lost motion due to mechanical imperfections. Backlash configuration:  Backlash distance (BDST) determines both 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.

Pioneering Science and Technology Office of Science U.S. Department of Energy Cont'd Backlash Correction  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

Pioneering Science and Technology Office of Science U.S. Department of Energy The motor distribution  Motor distribution web location.  What is in the tar file?  Motor record database definition.  Motor record level support library.  Device/driver libraries for various controllers.  Motor record/device/driver level documentation.  Motor record release documentation.  Two example applications; one with ASYN and one without ASYN.  README files for some devices that contain configuration document.

Pioneering Science and Technology Office of Science U.S. Department of Energy Cont'd motor distribution  Motor System generation.  /configure/RELEASE:  Only EPICS_BASE is required.  ASYN is required for serial or GPIB based devices drivers.  /motorApp/Makefile: Define which device/driver modules to build.