DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Operational Summary November.

Slides:



Advertisements
Similar presentations
Unit 7 Discrete Controllers
Advertisements

Programmable Interval Timer
Delta Tau Coordinate Systems and PLCs at Diamond Matthew Pearson Controls Group, Diamond Light Source Overview: Delta Tau Geobrick motor controller Delta.
Introduction of Holtek HT-46 series MCU
MotoHawk Training Model-Based Design of Embedded Systems.
OS2-1 Chapter 2 Computer System Structures. OS2-2 Outlines Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Design of a Control Workstation for Controller Algorithm Testing Aaron Mahaffey Dave Tastsides Dr. Dempsey.
TECH CH03 System Buses Computer Components Computer Function
Real-Time Kernels and Operating Systems. Operating System: Software that coordinates multiple tasks in processor, including peripheral interfacing Types.
Computer Organization and Assembly language
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Programmable Logic Controller Internal Operations
Computer System Laboratory
Chapter 19 Fundamental PLC Programming
PLC: Programmable Logical Controller
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC as a Linux Computer January.
Power PMAC – The 7th Generation! November 2013
E-LABORATORY PRACTICAL TEACHING FOR APPLIED ENGINEERING SCIENCES W O R K S H O P University of Oradea, Romania February 6, 2012 G E N E R A L P R E S E.
User C Programs in Power PMAC December 2013
8254 Programmable Interval Timer
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Project Management November.
Chapter 1. Introduction What is an Operating System? Mainframe Systems
Power PMAC Electronic Cam Tables April 2014
Computer Architecture
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Data Structures January 2012.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
The 8253 Programmable Interval Timer
MICROPROCESSOR INPUT/OUTPUT
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Talking to Power PMAC November 2013.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
Top Level View of Computer Function and Interconnection.
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Encoder Conversion Table January.
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
The Functions of Operating Systems Interrupts. Learning Objectives Explain how interrupts are used to obtain processor time. Explain how processing of.
Lecture 11 Low Power Modes & Watchdog Timers
Date: File:PRO1_12E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting.
Interrupts By Ryan Morris. Overview ● I/O Paradigm ● Synchronization ● Polling ● Control and Status Registers ● Interrupt Driven I/O ● Importance of Interrupts.
8279 KEYBOARD AND DISPLAY INTERFACING
EEE440 Computer Architecture
Power PMAC Tuning Tool Overview. Power PMAC Servo Structure Versatile, Allows complex servo algorithms be implemented Allows 2 degree of freedom control.
Time Management.  Time management is concerned with OS facilities and services which measure real time, and is essential to the operation of timesharing.
Lab 13 Department of Computer Science and Information Engineering National Taiwan University Lab13 – Interrupt + Timer 2014/12/23 1 /16.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
1 Computer Systems II Introduction to Processes. 2 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent.
8279 KEYBOARD AND DISPLAY INTERFACING
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Lecture 1: Review of Computer Organization
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Shared Memory December 2013.
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Compensation Tables November.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Software Troubleshooting Eliminate possible programming and timing errors by stopping all programs ( and ). Use the Executive program terminal and send.
SPiiPlus Training Class
Timer and Interrupts.
Chapter 10 © 2011, The McGraw-Hill Companies, Inc.
Programmable Interval timer 8253 / 8254
Processor Fundamentals
Programmable Interval timer 8253 / 8254
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Presentation transcript:

DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Operational Summary November 2013

DELTA TAU Data Systems, Inc. 2 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data What Power PMAC Software Does Execute synchronous sequenced motion programs (Script only) Execute asynchronous PLC programs (Script and C) Perform kinematic transformations Compute commanded motor trajectories Process feedback and master position data Close motor (position/velocity) servo loops Calculate compensation table corrections Provide synchronous data gathering of desired registers Perform electronic phase commutation Close motor current loops Perform safety checks, status updates, and general housekeeping Respond to on-line commands from host computer Execute independent C applications

DELTA TAU Data Systems, Inc. 3 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Task Priority Levels Phase interrupt – frequency set by Servo/MACRO IC (9 kHz default) –Motor phase commutation –Motor current-loop closure –Phase data gathering Servo interrupt – frequency set by Servo/MACRO IC (2.25 kHz default) –Encoder conversion table processing –Trajectory update (fine interpolation) –Compensation table calculations –Position/velocity servo-loop closure –High-priority safety & status checks –Servo data gathering Real-time interrupt – frequency set by Sys.RtIntPeriod (750 Hz default) –Motion program calculations –Segmentation calculations: coarse interpolation, kinematics, lookahead –Foreground Script PLC program calculations –Foreground C PLC program calculations –Medium-priority safety & status checks

DELTA TAU Data Systems, Inc. 4 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Task Priority Levels (cont.) Background tasks (when all interrupt tasks are done) –Power PMAC scheduled background task cycle One scan of one active Script background PLC program One scan of all active C background C PLC programs Repeat above until all active Script background PLCs execute once Background status and housekeeping updates Release to Linux GPOS –Linux GPOS tasks User C independent applications Operating system tasks –Allocation of time between Power PMAC scheduled tasks and GPOS tasks “Sleep” period between scheduled background task cycles for GPOS tasks Variable sleep – 0.25 msec to 10.0 msec – as set by Sys.BgSleepTime (in µsec) Default is 1.0 msec when Sys.BgSleepTime = 0.0 Only change from default if have CPU time allocation problem

DELTA TAU Data Systems, Inc. 5 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Sample Power PMAC Multi-Tasking Time Line

DELTA TAU Data Systems, Inc. 6 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Hardware/Software Coordination

DELTA TAU Data Systems, Inc. 7 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC System Clock Generation Power PMAC requires one source of system Phase and Servo clocks –Interrupt the processor for hard real-time task execution –Trigger ASIC I/O tasks to keep hardware and software fully coordinated All DSPGATEn ICs can generate or receive system clocks –One IC in system must be chosen as source of system clocks –Power PMAC CPU automatically chooses one on system re-initialization ($$$*** command or hardware change) –Gaten[i].PhaseServoDir = 0 on this IC, = 3 on others –Few users will need to change default selection of source IC Clock-control setup elements on source IC set system clock frequencies –Gate1/2[i].PwmPeriod, PhaseClockDiv, ServoClockDiv on PMAC2 ICs –Gate3[i].PhaseFreq, ServoClockDiv on PMAC3 ICs Recommended to match these frequencies on non-source ICs –Clocks in these ICs synchronized to source through phase-locked loops –Small adjustments keep hardware better synchronized to software

DELTA TAU Data Systems, Inc. 8 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data IDE Clock Frequency Setup Window From IDE “Tools” menu, select “System Setup” Can enter Phase clock frequency directly Can select Servo clock frequency from “pick list” of frequencies divided down from Phase clock IDE will automatically set values of Power PMAC ASIC saved setup elements to obtain these frequencies Also sets software elements (e.g. Sys.ServoPeriod) to match these frequencies

DELTA TAU Data Systems, Inc. 9 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Sample Clock Distribution Block Diagram On power-up reset, Power PMAC automatically sets PhaseServoDir to 0 on clock source IC, to 3 on other ICs If ICs have bi-directional buffers (as in UMAC rack), buffer direction automatically set to corresponding IC direction

DELTA TAU Data Systems, Inc. 10 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Default Clock Source Priority Rules On re-initialization ($$$*** command), Power PMAC checks for all possible clock-source ICs Selects a single IC as system clock source according to following priority rules: 1.) Lowest-numbered DSPGATE3 IC with MACRO interface 2.) Lowest-numbered DSPGATE2 MACRO IC 3.) Lowest-numbered DSPGATE3 IC with Servo or I/O interface 4.) Lowest-numbered DSPGATE1 IC Servo IC This IC set up to output phase and servo clocks All other ICs set up to accept external phase and servo clock inputs MACRO ring operates best if synchronizing ring master IC is also system clock source for Power PMAC

DELTA TAU Data Systems, Inc. 11 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Changing the System Clock Source A few users will want to select a clock source different from re- initialization default Must change clock directions of old and new source ASICs and matching buffer directions –Buffer separately controlled with PMAC2 ICs –Buffer automatically matches directions for PMAC3 ICs Must change all directions in single command line –To prevent signal contention or loss of signal to watchdog timer –For example: Gate3[0].PhaseServoDir=0 Gate2[0].PhaseServoDir=3 Cid[4].Dir=0 Use save command to store new settings to flash memory New clock-source configuration will automatically be set up on subsequent power-up/reset

DELTA TAU Data Systems, Inc. 12 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data CPU Self Clocking Needed when no clock-generating IC present –Useful for simulations with CPU only –Useful for systems with motion networks (e.g. EtherCAT TM ) that do not use clock-generating ICs Sys.CpuTimerIntr = 1 tells processor to generate its own timer-based interrupt In this mode, Sys.ServoPeriod actually sets interrupt period (in msec); does not just inform algorithms of IC-set period Both phase and servo cycles operate at this rate Must save and reset Power PMAC to get these settings to take effect Processor cannot output clock signals to ICs –If ICs are present, cannot be kept synchronized to CPU

DELTA TAU Data Systems, Inc. 13 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data IDE Task Manager Display From IDE “Tools” menu, select “Task Manager” “Tasks” tab of Task Manager shows data on each priority level Continually queries status elements in Power PMAC For each priority level, displays: –Frequency (inverse of last period) –Latest cycle’s calculation time at this level –Maximum calculation time at this level –Latest duty cycle at this level Very useful to evaluate processor loading

DELTA TAU Data Systems, Inc. 14 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Watchdog Timer Hardware/software combination to monitor for timely execution of all task priority levels Monitors action of both foreground and background tasks Decrements counter (if positive) each new real-time interrupt (RTI) Resets counter to maximum value each background cycle LSB of counter feeds watchdog circuit as digital frequency signal; must be > 25 Hz to prevent hard trip Time thresholds tunable by two saved setup elements –Sys.WDTReset specifies max counter value set each background cycle (if less than 100, value of 5000 [default] is used) –Sys.BgWDTReset specifies max number of background cycles without RTI before (soft) fault Provides “soft” (stay-alive) fault and “hard” (total shutdown) capabilities

DELTA TAU Data Systems, Inc. 15 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Watchdog Timer (cont.) “Soft” (stay-alive) fault permits easier analysis of problem source –Triggered if RTI task sees counter has reached zero (Sys.WDTFault = 1) –Triggered if background task has seen more than Sys.BgWDTReset background cycles without an RTI (Sys.WDTFault = 2) –On a soft watchdog trip: All motion programs aborted, all motors “killed” All interface ICs forced into reset state – outputs “off” or “zero” Processor stays operating for communications Software reset ($$$ command) can (attempt to) restore operation “Hard” watchdog fault provides complete shutdown –Tripped if no soft fault before circuit sees absence of 25+ Hz signal –Tripped if 5V supply dips below -5% threshold –On a hard watchdog trip: All interface ICs forced into reset state – output “off” or “zero” Processor operation halted, no communications possible Power must be cycled to (attempt to) resume operation Red Watchdog LED on CPU turned on

DELTA TAU Data Systems, Inc. 16 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Watchdog Timer Foreground Failure Example

DELTA TAU Data Systems, Inc. 17 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Watchdog Timer Background Failure Example