+ All Categories
Home > Documents > CODESYS Motion + CNC - · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions...

CODESYS Motion + CNC - · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions...

Date post: 30-Jan-2018
Category:
Upload: buithuy
View: 244 times
Download: 1 times
Share this document with a friend
32
CODESYS ® a trademark of 3S-Smart Software Solutions GmbH 02/2014 CODESYS Motion + CNC: Your motion control, quickly developed CODESYS Users' Conference 2014, Tim van Heijst
Transcript
Page 1: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

CODESYS® a trademark of 3S-Smart Software Solutions GmbH

02/2014

CODESYS Motion + CNC: Your motion control, quickly developed

CODESYS Users' Conference 2014, Tim van Heijst

Page 2: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

2 © 3S-Smart Software Solutions GmbH

CODESYS Motion + CNC

Agenda

1

2

3

4

5

Motion task

Realization of the motion task

Basic information on CODESYS Motion + CNC

CODESYS SoftMotion CNC

Typical use cases for CODESYS Motion + CNC

Page 3: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

3

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Notebook PC with Ethernet and CODESYS for programming the logic and motion control

Test: for a start with Raspberry Pi

Servo drive controlled via EtherCAT

Given system

Motion task

Page 4: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

4

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Motor M1: rotate with constant motor speed

Motor M2: rotate with scaled motor speed depending on motor M1 (gear factor adjustable)

Programming and test: initially without physical drives

Motor operation via visualization

Replace virtual drives by physical drive(s)

... and all this with CODESYS SoftMotion!

Task

Motion task

Page 5: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

5 © 3S-Smart Software Solutions GmbH

CODESYS Motion + CNC

Agenda

1

2

3

4

5

Motion task

Realization of the motion task

Basic information on CODESYS Motion + CNC

CODESYS SoftMotion CNC

Typical use cases for CODESYS Motion + CNC

Page 6: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

6

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Start CODESYS and create a new project for Raspberry Pi

Establish connection to the controller

Configure virtual axes

New CODESYS SoftMotion project

Realization of the motion task

Page 7: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

7

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Prepared CODESYS SoftMotion project

Realization of the motion task

Page 8: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

8

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Switch on with PLCopen POU MC_Power

Control M1: with PLCopen POU MC_MoveVelocity M2: with PLCopen POU MC_GearIn

Prepare reset (just in case) with PLCopen POU MC_Reset

For all axes: Setpoint value, parameter etc. with visualization Merely the axes M1 and M2 have to be passed Declaration of POUs as function block instances

Switch on an control motors: Programming

Realization of the motion task

Page 9: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

9

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Programmed motion application

Realization of the motion task

Page 10: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

10

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Add visualization in the project

Suitable visualization templates for motion POUs Insert frame objects and connect to templates Pass FB instance or pass axis (rotatory drive)

Visualization of the motion application

Realization of the motion task

Page 11: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

11

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Login and download of the application

Operation of the virtual drives via visualization Switching the drives on via MC_Power Default value for MC_MoveVelocity and MC_GearIn In case of error: Use "Reset" POU

Virtual axis M1 rotates

When virtual axis M2 starts: gearing function

Rotatory motors with blue arrow

Test and commissioning

Realization of the motion task

Page 12: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

12

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Test and commissioning

Realization of the motion task

Page 13: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

13 © 3S-Smart Software Solutions GmbH

CODESYS Motion + CNC

Agenda

1

2

3

4

5

Motion task

Realization of the motion task

Basic information on CODESYS Motion + CNC

CODESYS SoftMotion CNC

Typical use cases for CODESYS Motion + CNC

Page 14: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

14

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Basic information on CODESYS Motion + CNC

Separation of logic and motion control Expensive, as two devices are needed. Synchronization/communication needs substantial resources Engineering in two different tools

One device, but different tools: Engineering in two different tools Synchronization/communication needs substantial resources

Realization of MotionControl

Page 15: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

15

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Basic information on CODESYS Motion + CNC

One device, one tool: CODESYS Motion + CNC Inexpensive Easy engineering in one tool No resources needed for synchronization/communication, both systems run in one process.

Realization of MotionControl

Page 16: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

16

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

State-of-the-art controllers have power reserves.

MotionControl or CNC on the PLC save hardware costs.

Project planning of motion tasks in the PLC tool allows for flexible engineering.

Well-engineered infrastructure supports design of drive configuration: from motion planning to commissioning.

Why Motion + CNC in CODESYS?

Basic information on CODESYS Motion + CNC

Page 17: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

17

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

IEC 61131-3 runtime system controls motion.

State-of-the-art programming system offers flexibility for editing the motion sequence.

Motion control modules are library functions, developed in the languages of the IEC 61131-3.

PLC programming system, extended by editors for motion planning

Fieldbus and I/O configuration are also used for drive configuration.

Motion + CNC realized in IEC 61131-3

Basic information on CODESYS Motion + CNC

Page 18: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

18

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Structure overview

Basic information on CODESYS Motion + CNC

Page 19: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

19

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Standard requirements for the implementation of the CODESYS Control Runtime System

Hard realtime properties of the device (small jitter)

Suitable communication channels to drives required Standard fieldbuses: EtherCAT and CANopen, further on demand

Power reserves (CPU performance, memory) of the device in accordance with the application controller, 32-bit CPU and FPU strongly recommended

Raspberry Pi is not suitable for industrial motion tasks, at least not without individual extensions!

Hardware requirements

Basic information on CODESYS Motion + CNC

Page 20: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

20

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Available control methods

For servo drives

For stepper drives

For frequency converters (FC)

PLC Servo Xnom/vnom

I

Xact/vact Xact

Servo Xnom/vnom

I

Xact/vact Xact

Pulse / direction

Pulse / direction Pulse

counter

PLC Pulse

counter

Position control

Position control

PLC FC vnom I

Xact

Position control

FC vnom I

Xact

Position control

Page 21: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

21 © 3S-Smart Software Solutions GmbH

CODESYS Motion + CNC

Agenda

1

2

3

4

5

Motion task

Realization of the motion task

Basic information on CODESYS Motion + CNC

CODESYS SoftMotion CNC

Typical use cases for CODESYS Motion + CNC

Page 22: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

22

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

CODESYS SoftMotion: For coordinated single and multi-axis movements Includes the complete motion functionality without CNC

CODESYS SoftMotion CNC: Includes CODESYS SoftMotion Includes many kinematics Additional 3D CNC editor and CNC interpolation

CODESYS SoftMotion and CODESYS SoftMotion CNC

Page 23: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

23

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

"Coordinated movement": Controlled movement, executed by one or more axes Movement definition relates to the POI of the machine

or of the kinematic movement.

CNC (Computer Numerical Control): Subset of coordinated movement Movement definition with exact definition of movement path

and speed Path definition per G-code (DIN 66025) is widely spread.

Definition: Coordinated movement

CODESYS SoftMotion CNC

Page 24: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

24

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Programming the motion functionality with FBs

CODESYS SoftMotion CNC

1

2

5

3

4

Page 25: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

25

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Graphical and textual input of 3D G-code

Path design in table form

DXF import

Integrated 3D CNC editor according to DIN 66025 (G-code)

CODESYS SoftMotion CNC

Page 26: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

26

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Gantry systems

Robot

Kinematic transformations

CODESYS SoftMotion CNC

Page 27: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

27

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

For 3D CNC handling and/or online editing Select and edit available CNC movements

Suitable visualization elements

CODESYS SoftMotion CNC

Page 28: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

28 © 3S-Smart Software Solutions GmbH

CODESYS Motion + CNC

Agenda

1

2

3

4

5

Motion task

Realization of the motion task

Basic information on CODESYS Motion + CNC

CODESYS SoftMotion CNC

Typical use cases for CODESYS Motion + CNC

Page 29: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

29

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

CNC application Using the CNC editor Jogging the axes with PLCopen POUs Portal kinematics with stepper motors Teaching function

Pick & Place application Using PLCopen POUs to position (pick) and belt-synchronously place an

object on a moving target Displaying the process with visualization templates

Typical use cases

Page 30: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

30

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

Tripod robot Using the CNC editor Parallel kinematics (transformation) Visu template for parallel kinematics Configuraton of EtherCAT drives

Labelling / CAM application Using the cam editor PLCopen POUs and virtual axis as electronic line shaft (ELS) Different visualization templates CANopen servo drives Using the Touch Probe/Latching function

Typical use cases

Page 31: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

31

CODESYS Motion + CNC

© 3S-Smart Software Solutions GmbH

movements shall be flexibly adapted using PLC data.

the motion system shall only be limited by computing capacity, the used fieldbus and memory capacity.

motion programming shall be done driver-independently.

motion shall be executed on different PLCs.

logic application and motion shall be realized in one tool.

Generally: Whenever...

Typical use cases

Page 32: CODESYS Motion + CNC -  · PDF file3 CODESYS Motion + CNC © 3S-Smart Software Solutions GmbH Notebook PC with Ethernet and CODESYS for programming the logic and motion control

32 © 3S-Smart Software Solutions GmbH

Inspiring Automation Solutions

Thank you for your attention.


Recommended