TwinCAT The Windows Control and Automation Technology NC PTP - - PowerPoint PPT Presentation

twincat
SMART_READER_LITE
LIVE PREVIEW

TwinCAT The Windows Control and Automation Technology NC PTP - - PowerPoint PPT Presentation

TwinCAT The Windows Control and Automation Technology NC PTP Numerical Control Point To Point NC-PTP Part I General Overview Axis types Functional principle Referencing Motion Control Function blocks Part II


slide-1
SLIDE 1

TwinCAT

The Windows Control and Automation Technology

NC PTP

Numerical Control Point To Point

slide-2
SLIDE 2

10.02.2009 2

NC-PTP

Part I General

  • Overview
  • Axis types
  • Functional principle
  • Referencing
  • Motion Control Function blocks

Part II Practical Part:

  • Setting up NC axes in the System Manager
  • Starting NC axes from the PLC
slide-3
SLIDE 3

10.02.2009 3

Software NC PTP

TwinCAT NC Point-to-Point (PTP) is an axis positioning software with integrated PLC, NC interface, operating program for axes setup and I/O connection of the axes through the fieldbus. Up to 255 axes can be moved at the same time. TwinCAT NC PTP supports axis drive by switched motors, stepper motors, frequency controlled and servo controlled motors.

  • Part I General
  • Overview
  • Axis types
  • Functional principle
  • Referencing
  • Motion Control

Function Blocks Part II Practical Part:

  • Setting up NC axes

in the System Manager

  • Starting NC axes

from the PLC

slide-4
SLIDE 4

10.02.2009 4

Continuous axes The axis responds to a continuously changeable set value The set value is generated by TwinCAT NC, e.g. servo with +/- 10 V, Sercos drive, frequency converter, linearised hydraulic axis, stepper motor drive with amplifier

Axis types

  • Part I General
  • Overview
  • Axis types
  • Functional principle
  • Referencing
  • Motion Control

Function Blocks Teil II Practical Part:

  • Setting up NC axes

in the System Manager

  • Starting NC axes

from the PLC

slide-5
SLIDE 5

10.02.2009 5

High/low speed axes The axis responds to a two-stage set speed value including direction of rotation: FAST/SLOW and FORWARDS/REVERSE The set value is generated by TwinCAT NC, e.g. frequency converter with fast/slow inputs, combination

  • interlock. Warning: Acquisition of actual value

(Encoder is necessary)

Axis types

slide-6
SLIDE 6

10.02.2009 6

Low cost stepper motor The axis consists of a stepper motor which is connected to digital outputs and reacts to pulses (A/B from the terminals) Fast pulse sequence -> motor turns quicklylSlow pulse sequence -> motor turns slowly The set value (= pulse pattern) is generated by TwinCAT NC.

Axis types

slide-7
SLIDE 7

10.02.2009 7

Low cost stepper motor, Hardware e.g. 24 Volt stepper motor with 2A output terminals An encoder is NOT required for acquisition of the actual value, since the pulses that are output are counted. ! The mechanical design and/or maximum rotary speed/torque should be examined to ensure that the motor will be able to "keep up", since an output terminal cannot provide an increased voltage at higher frequency

Axis types

slide-8
SLIDE 8

10.02.2009 8

Virtual encoder axis, An axis that only consists of an encoder. "Normal” (continuous) axes can be coupled to this axis as slaves, and follow the set encoder value of the virtual encoder axis. (Gear ratio possible) HAND WHEEL FUNCTION

Axis types

slide-9
SLIDE 9

10.02.2009 9

Output is a speed value The actual position is monitored. Output: Speed pre-control + controller output

(acceleration pre-control also is optional)

Feedback: Actual position value At specific axis types e.g. SERCOS is also a direct output of the Setposition in NC time possible.

Axis types

slide-10
SLIDE 10

10.02.2009 10

Functional principle of the TwinCAT NC TwinCAT NC works with a velocity pre control. The Position controller controls the observance of the set position („Motion“ and position control). Further available options:

  • Acceleration pre control
  • Position control with two P constants
  • direct output of the position. (Sercos Axes)
  • High / low speed controller
  • Stepper motor controller
  • External Setpoint generation (ab TwinCAT 2.9)
  • Linearisation of pre control for non linear axes

(Hydraulic axes).

  • Part I General
  • Overview
  • Axis types
  • Functional principle
  • Referencing
  • Motion Control

Function Blocks Teil II Practical Part:

  • Setting up NC axes

in the System Manager

  • Starting NC axes

from the PLC

slide-11
SLIDE 11

10.02.2009 11

Functional principle of the TwinCAT NC

Dead time compensation Dead time compensation

Position- controller Position- controller Controller- limiting Controller- limiting

Velocity precontrol (Scaling) Velocity precontrol (Scaling)

Output Scaling & Limiting Output Scaling & Limiting

Process Process

Position- measurement Position- measurement

s

v

s

p

+ +

+

v

k

v n p

T T k

, , pv

y

ref

v

max min, y

y

t

T

vv

y

v

y

a

p

Setpoint generator

slide-12
SLIDE 12

10.02.2009 12

Set value profiles

„hard“, big Acceleration change

slide-13
SLIDE 13

10.02.2009 13

Set value profiles

„smooth“, the acceleration rises (linearly)

slide-14
SLIDE 14

10.02.2009 14

Set value profiles

„most smooth “, the acceleration reaches no more constant phase

slide-15
SLIDE 15

10.02.2009 15

Set value profiles

Input via run-up time Preselect profile Calculation by the TwinCAT System Manager

Profile is adjustable in System Manager!

slide-16
SLIDE 16

10.02.2009 16

Hands on session

slide-17
SLIDE 17

10.02.2009 17

Referencing Referencing (calibrate) is necessary for axis with not absolute encoder systems. Incremental Encoder, Single Turn Absolute Encoder,

  • r not absolute encoder systems direct from the drive,

(e.g. actual position value of AX2000). At referencing the axis is lead to a fix reference position and the encoder is set to the current actual position.

  • Part I General
  • Overview
  • Axis types
  • Functional principle
  • Referencing
  • Motion Control

Function Blocks Teil II Practical Part:

  • Setting up NC axes

in the System Manager

  • Starting NC axes

from the PLC

slide-18
SLIDE 18

10.02.2009 18

Referencing initial state

Reference switch (PLC input) Gearing

PLC:

Function block for referencing

slide-19
SLIDE 19

10.02.2009 19

Referencing

Reference switch (PLC input) Gearing

PLC:

Start with execute

Axis moves to Reference switch

slide-20
SLIDE 20

10.02.2009 20

Referencing

Reference switch (PLC input) Gearing

PLC:

Start with execute

Reference switch was reached, axis brakes

slide-21
SLIDE 21

10.02.2009 21

Referencing

Reference switch (PLC input) Gearing

PLC:

Start with execute

Axis moves back until reference switch is free.

slide-22
SLIDE 22

10.02.2009 22

Referencing completed (a)

Reference switch (PLC input) Gearing

PLC:

Start with execute

Axis brakes, actual position is set

slide-23
SLIDE 23

10.02.2009 23

Referencing completed (b)

Reference switch (PLC input) Gearing AX2000: After leaving the reference switch, TwinCAT NC waits for the “Syncsignal” of AX2000 and then stops. Advantage: more exactely. The set position in the standstill of the axis is calculated with the internal latch of the AX2000 (corresponds to the zero signal at Incremental encoders) Standard settings in the TwinCAT System Manager

slide-24
SLIDE 24

10.02.2009 24

Referencing completed. Which position is set?

If „Position“DEFAULT_HOME_POSITION (global variable from TCMC.LIB) is submitted at the Fb input, the value is taken out of the System Manager. Otherwise the value is taken at the input „Position“

slide-25
SLIDE 25

10.02.2009 25

Motion Control Function blocks

Target: IEC61131-3 compatible programming interface for motion tasks

  • Part I General
  • Overview
  • Axis types
  • Functional principle
  • Referencing
  • Motion Control

Function Blocks Teil II Practical Part:

  • Setting up NC axes

in the System Manager

  • Starting NC axes

from the PLC

slide-26
SLIDE 26

10.02.2009 26

Motion Control Function blocks

Why a standard?

  • Hardware independent Programming
  • the same look and feel, identical Syntax
  • IEC 61131-3 as Base
  • Expansions for new application areas possible
  • TwinCAT: Combination of MC blocks and TwinCAT

specific Axis blocks possible. Existing applications can be expanded with Motion Control blocks, without a new writing of the existing flows.

slide-27
SLIDE 27

10.02.2009 27

Motion Control Function blocks

Defined in:

The PLCopen Task Force Motion Control by Manufacturer and end user

Atlas Copco Control TetraPak Baumueller Rovema Packaging Machines Beckhoff Control Techniques Ford Elau General Motors Giddings & Lewis Indramat Infoteam Software KW Software Lenze Siemens Softing

Root: Task Force Motion Control presentation Version Febr2002. (www.plcopen.org)

slide-28
SLIDE 28

10.02.2009 28

Statemachine:

Discrete Motion Continuous Motion Standstill Stopping Homing Synchronized Motion ErrorStop

slide-29
SLIDE 29

10.02.2009 29

Statemachine:

MC_MoveSuperimposed MC_MoveVelocity MC_VelocityProfile MC_AccelerationProfile Discrete Motion Continuous Motion Standstill MC_Move Absolute MC_Move Relative MC_MoveAdditive MC_MoveSuperimposed MC_PositionProfile Done MC_MoveAbsolute MC_MoveRelative MC_MoveSuperimposed MC_MoveAdditive MC_PositionProfile MC_Stop MC-Stop MC_MoveVelocity MC_VelocityProfile MC_AccelerationProfile MC_MoveVelocity MC_VelocityProfile MC_AccelerationProfile MC_Power MC_Stop Note 1 Stopping MC_MoveAbsolute; MC_ MoveRelative MC_MoveAdditive; MC_PositionProfile Done Homing Done MC_Home MC-Stop Note 1: All FBs can be called, although they will not be executed, except MC_Reset and Error– will generate the transition to StandStill or ErrorStop resp.. Root: Task Force Motion Control presentation Version Febr2002. (www.plcopen.org)

slide-30
SLIDE 30

10.02.2009 30

Statemachine Synchronized Motion

Discrete Motion Continuous Motion Standstill Stopping

Synchronized Motion

MC_GearIn MC_GearIn MC_CamIn MC_CamIn MC_GearIn MC_CamIn MC_MoveAbsolute MC_MoveRelative MC_PositionProfile MC_MoveVelocity MC_GearOut MC_CamOut MC_VelocityProfile MC_AccelerationProfile MC_Stop MC_GearIn MC_CamIn MC_Phasing MC_MoveSuperimposed

slide-31
SLIDE 31

10.02.2009 31

Overview Function Block Class:

Administrative Administrative Motion Motion

Single Axes Multiple Axes Single Axes Multiple Axes Non-Interpolated

MoveAbsolute

Interpolated

MoveAdditive MoveSuperImposed MoveContinuous MoveVelocity Home Stop Power Reset ReadStatus ReadAxisError ReadParameter WriteParameter ReadActualPosition PositionProfile VelocityProfile AccelerationProfile CamTableSelect CamIn CamOut GearIn GearOut … MoveRelative Phasing

slide-32
SLIDE 32

10.02.2009 32

Standardized Handshake

slide-33
SLIDE 33

10.02.2009 33

FB‘s

Administrative Function Blocks Administrative Function Blocks

slide-34
SLIDE 34

10.02.2009 34

MC Power

1 1

Enable_Negative Position control + Start in positive or negative direction Position control + Start in negative direction Position control + Start in positive direction Position control NC Controller allows:

1 1 1 1 1 1

Enable_Positive Enable

slide-35
SLIDE 35

10.02.2009 35

MC Read_...

slide-36
SLIDE 36

10.02.2009 36

MC Read_...

slide-37
SLIDE 37

10.02.2009 37

MC Read /Write Parameter Number in TCMC.LIB

? ? ?

PLC Control Library Manager

slide-38
SLIDE 38

10.02.2009 38

Example Read ActualVelocity

With ReadMode the single resp. permanent reading can be determined.

slide-39
SLIDE 39

10.02.2009 39

Motion Function Blocks

Motion Function Blocks Motion Function Blocks Single Axis

slide-40
SLIDE 40

10.02.2009 40

Motion Function Blocks

slide-41
SLIDE 41

10.02.2009 41

Mode of Operation Move Superimposed

Execute Execute

Actual Pos Setpoint Pos Actual Velo Setpoint Velo Actual Acc Setpoint Acc

slide-42
SLIDE 42

10.02.2009 42

Motion Function Blocks

Mode of operation see „Referencing“

slide-43
SLIDE 43

10.02.2009 43

Motion Function Blocks

Discrete Motion Continuous Motion Standstill Done

MC_Stop

Note 1 Stopping Done Homing Done

MC_Stop MC_Stop MC_Stop

slide-44
SLIDE 44

10.02.2009 44

Motion Function Blocks Multiple Axis

Motion Function Blocks Motion Function Blocks Multiple Axis (non-interpolated)

slide-45
SLIDE 45

10.02.2009 45

Motion Function Blocks Multiple Axis

GEARING is the activation of a numeric ratio between master and slave axis. (comparable with a mechanical gearbox).

slide-46
SLIDE 46

10.02.2009 46

Motion Function Blocks Multiple Axis Linear “gearbox” fixed ratio of transmission : Vm/Vs “Flying Saw”

slide-47
SLIDE 47

10.02.2009 47

Motion Function Blocks Multiple Axis

MOTION DIAGRAM FOR GEARING

slide-48
SLIDE 48

10.02.2009 48

Motion Function Blocks Multiple Axis

Movement diagram

Slave PosSetpoint Master PosSetpoint Position Lag Master VeloSetpoint Slave VeloSetpoint Master AccelSetpoint Slave AccelSetpoint