Beckhoff TwinCAT The Windows Control and Automation Technology. TwinCAT NC PTP Examples



Similar documents
TwinCAT Manual Quick Start V.1

BECKHOFF. Application Notes. BC9000: Getting Started Guide. For additional documentation, please visit.

TwinCAT NC Configuration

Beckhoff TwinCAT. Configuring the TwinCAT I/O System

Beckhoff TwinCAT. Creating Boot Projects for TwinCAT

Brake module AX5021. Documentation. Please read this document carefully before installing and commissioning the brake module!

TwinCAT The Windows Control and Automation Technology NC PTP. Numerical Control Point To Point

Real-time processing the basis for PC Control

Application Note AN-SERV-006

PC control for flexible packaging

Creating the program. TIA Portal. SIMATIC Creating the program. Loading the block library. Deleting program block Main [OB1] Copying program blocks

FUNDAMENTALS OF ROBOTICS

Automated Container Handling in Port Terminals

FRC WPI Robotics Library Overview

Standard diagnostic and configuration interface for Beckhoff Industrial PCs

BECKHOFF. Application Notes. Data Storage on PC's and PLC's. For additional documentation, please visit.

Copley Camming User Guide

Machine Automation Controller NJ-series. Startup Guide. for Motion Control W514-E1-01

Beckhoff TwinCAT. Assigning IP Addresses to Beckhoff Ethernet Devices

S7 for Windows S7-300/400

A Real Time, Object Oriented Fieldbus Management System

Automating with STEP7 in LAD and FBD

CIM Computer Integrated Manufacturing

Realtime Motion Control -Update. Uwe Ristau

Applications & Tools. Configuration of Messages and Alarms in WinCC (TIA Portal) WinCC (TIA Portal) Application description December 2012

X8 Option 2 - Technology

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE A5 Programming the CPU 314C-2DP

Drives OFF. Drives ON. Mode selector switch. Menu keys. Status keys. Softkeys. Numeric keypad Arrow keys. Symbol key

Appendix F: Instructions for Downloading Microsoft Access Runtime

Manual. Source Control. TwinCAT 3. Version Date

Embedded PC The modular Industrial PC for mid-range control. Embedded PC 1

APCI-8001, APCI-8008 and CPCI-8004

Closed-Loop Motion Control Simplifies Non-Destructive Testing

TWINCAT. PLC and Motion Control on the PC. TwinCAT

Linear Motion System: Transport and positioning for demanding applications

WinCC. Configuration Manual. Manual Volume 2

Graphic Driver Installation Instructions

Beckhoff onboard SATA-RAID

Manual TC3 PLC HMI. TwinCAT 3. Version: Date: Order No.: TF1800

Automating witfi STEP7 in LAD and FBD

CAN & LIN Development Tool CLDT1004 HS CAN

Reference Manual DATAKIT

ServoOne. Specification. Option 2 - Technology. x 11. x 8 X 8. x 10. x 9. x 7. x 6 TTL Encoder / TTL Encoder simulation

PLCM-T1 / PLCM-T2 Torch height controller

The following shows the symbols used in this Quick start guide with descriptions and examples. Symbol Description Example. Select [Project] [New].

EtherCAT Cutting Costs with High-speed Ethernet

USB PC Adapter V4 Configuration

An overview of Computerised Numeric Control (C.N.C.) and Programmable Logic Control (P.L.C.) in machine automation

Capture Pro Software FTP Server Output Format

This chapter describes the specifications of the embedded Ethernet function for Series 16i/18i/21i/160i/180i/210i/160is/180is/210is B.

Visual Programming of Logic, Motion, and Robotics

Changing Over the EPLAN Project Management on SQL-Server EPLAN Platform Version 2.5 Status: 06/2015

SYMETRIX SOLUTIONS: TECH TIP February 2014

Well-Contact Suite Client Software Guidelines and precautions

Siemens AG LOGO! App V1.0.0 LOGO! Edition 03/2013. Manual. Answers for industry.

CNC Machine Control Unit

Programming A PLC. Standard Instructions

Milestone Systems Software Manager 1.5. Administrator's Manual

Integration of FlexRay-based control units in existing test benches

Programmable Logic Controllers

Industrial IT Ó Melody Composer

MACHINEMATE. CNC SYSTEM Hardware SPECIFICATION

SINAMICS drives SINAMICS DCM. DC converters from 6 kw to 2500 kw for variable-speed direct-current drives. Load-balanced control application

Capture Pro Software FTP Server System Output

UNIT 1 INTRODUCTION TO NC MACHINE TOOLS

High-precision control technology lowers consump tion of raw materials in injection molding machines

POSITIONING AND CONTOURING APCI-8001, APCI-8008 AND CPCI-8004 OPERATING MANUAL / OM CONTROL SYSTEM. Rev. 12/

MR-J3-xxBS with QD77MS. Get started with QD77MS-module/ MR-J3-BS servos. Dokmall_sv,

How To Use B&R Automation

Chapter 27 Web Server

Positioning Controller

Learning Systems Software Simulation

ivms-4200 Client Software Quick Start Guide V1.02

Parallels Remote Application Server

Industrial Process Automation (Exercise)

Using angular speed measurement with Hall effect sensors to observe grinding operation with flexible robot.

Machine Tool Control. Besides these TNCs, HEIDENHAIN also supplies controls for other areas of application, such as lathes.

ATV71 and ATV32 on Ethernet/IP with M340 and NOC0401 configured on Unity V6.0. Assemblies 20 70

SMS GSM Alarm Messenger

Expat kiss_fft gsoap smartgwt Linux Qt md5 zlig log 4cpp sqlite gcc/g++/libc/libc++ gwt

Product Information Sheet UH36 Hi Pot Tester

Implementation of a CNC machine with Beckhoff-CNC - Hardware-in-the-Loop simulation in realtime (1ms) with ISG-virtuos -

Technical Training Module ( 30 Days)

DeviceNet Bus Software Help for Programming an Allen Bradley Control System

COMPUTER BASED REMOTE CONTROL FOR LAYOUT OF SCALED MODEL TRAINS

Best Robotics Sample Program Quick Start

Application Note. Example of user log on Magelis HMI with XB5S5B2L2 biometric switch. Advanced Technical Support - Brazil. Version: 1.

Parts Database to SQL Server EPLAN Platform Version 2.5 Status: 07/2015

Brady IP Printer Installation Instructions

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

Application of RT-Preempt Linux and Sercos III for Real-time Simulation

Piazza in Blackboard for Instructors

TIA Portal vs Studio 5000

DANGER indicates that death or severe personal injury will result if proper precautions are not taken.

Content Distribution Management

CPUs - CPU PN/DP

E/ECE/324/Rev.1/Add.12/Rev.7/Amend.4 E/ECE/TRANS/505/Rev.1/Add.12/Rev.7/Amend.4

Setup and Programming of the. Master Module R72-11Z-SLSASG-028

Movement/monitoring 1307/1.0 (6325xx)

Transcription:

Beckhoff TwinCAT The Windows Control and Automation Technology TwinCAT NC PTP Examples Last change: 31.08.2001

3 Contents TwinCAT NC PTP Examples 1. Overview 4 2. Moving axis 5 Install and Start the Example program 5 Program Structure 9 Cyclic axis interface 10 Setting of Axis enable 12 Program flow 13 3. Axis Coupling 15 Axis coupling with gearing factor 15 4. Position compensation 16 Axis position compensation 16 Slave axis position compensation 17 5. Changing of target position and velocity 18 Example 18

4 1. Overview TwinCAT NC PTP offers the PLC programmer simple function blocks for the operation of NC axes. This example describes the integration and operation of an axis within the TwinCAT system.

2. Moving axis Install and Start the Example Program Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149 TwinCAT NC PTP offers the PLC programmer simple function blocks for the operation of NC axes. This example describes the integration and operation of an axis within the TwinCAT system. Saving the example Program NC PTP The example program uses simulation axes (axes with simulated encoders), and can thus be run on any Windows NT PC without additional hardware. The file TcNcsample PTPmove.wsm is loaded into the TwinCAT System Manager, and the system is started with these settings. 5 Load the WSM file Register the setting via the menu Actions - Save To Registry Start the TwinCAT system via the gear wheel symbol TwinCAT Scope is used in order to be able to examine the result. The supplied setting, TcNcsample PTPmove.scp, allows the axis motion to be recorded. Load the SCP file into TwinCAT ScopeView Start recording via the menu or via the F5 key. (The Score configuration contains a trigger condition so that, after starting the process with F5, recording will only commence once the axis has started) Finally, the example program TcNcsample PTPmove.pro is loaded into TwinCAT PLC Control, compiled and started. Load the PRO file Compile the PLC project via the menu Project - Rebuild All. Load the PLC project via the menu Online - Login into the runtime system Start the program via the menu Online - Run Once the program has started, the axis is moved in simulation mode, and recording commences. The image shows position, velocity and acceleration of the axis.

6

7

8

Program Structure Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149 The Main module calls the NC and Sequence blocks. The NC block, with its dependent blocks in the NC Modules folder, activates all the necessary enable signals for the axis. The Sequence program module governs the flow of actions required for operation of the axis. 9

10 Cyclic axis interface Each axis has a cyclic interface for connecting NC and PLC. This interface consists of two data structures for exchanging information between NC and PLC. One structure contains data made available by the NC for the PLC; conversely, the other structure contains PLC data for the NC. Both data structures are declared as variables in the PLC and later connected with the interface structures of the NC axis via the TwinCAT System Manager.

11

12 Setting of axis enables Enable signals will have to be set by the PLC in order to enable axis movement. A distinction is made between software enabling and hardware enabling. A hardware enable signal switches a drive into a ready-to-run state via a digital signal. Hardware enabling is not necessary here, since this example uses simulation axes. Irrespective of this, the TwinCAT NC requires software enabling in order to switch an axis into the ready-to-run state. Furthermore, the set velocity of each axis may be influenced via a velocity override between 0% and 100%, which is normally set to 100%. With a value of 0%, the axis would not move. Enable controller Feed enabling for the positive direction Feed enabling for the negative direction Velocity override 100% In the example program, the enabling functions are written into the cyclic axis interface via the function block NC_EnableControl.

13 Program flow Setting of axis enables The program starts with the program block MAIN, in which initially the program NC for setting of the required axis enables is run. After the enable signals are set, the axis is ready for operation. Program block "Sequence" The axis motion sequence is programmed in the program block Sequence. The axis is started at target position 2000 mm and subsequently moved to position 0 mm. This cycle is repeated continuously. Starting and monitoring of an axis In the second step, StepStartAxis, the axis is started at target position 2000 mm with a velocity of 1000 mm/s. The start is initiated within the action StartAxisAction via the function block AXACT. In the subsequent step, the axis is monitored, and the end of the motion is awaited. Monitoring is possible via status bits supplied by the NC in the cyclic axis interface. Here, the status bit AxisHasJob is read via a library function during the transition of the step WaitMotion1. The axis motion commences as soon as the status bit is set. It is stopped as soon as this

14 bit is deleted.

3. Axis Coupling Axis coupling with gearing factor Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149 TwinCAT NC PTP offers the PLC programmer simple function blocks for the operation of NC axes. This example demonstrates coupling of a slave axis to a master axis via a fixed gearing factor. The procedure for saving and installing the example program is similar to the Axis movement example. 15 Example program "Axis Coupling"

16 4. Position compensation Axis position compensation TwinCAT NC PTP offers the PLC programmer simple function blocks for the operation of NC axes. This example demonstrates position compensation on an axis in motion. The procedure for saving and installing the example program is similar to the Axis movement example. Example program "Position compensation"

Slave axis position compensation Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149 TwinCAT NC PTP offers the PLC programmer simple function blocks for the operation of NC axes. This example demonstrates position compensation during motion of a slave axis coupled to a master. The procedure for saving and installing the example program is similar to the Axis movement example. 17 Example program "Slave axis position compensation"

18 5. Changing of target position and velocity Example TwinCAT NC PTP offers the PLC programmer simple function blocks for the operation of NC axes. This example shows how the target position and velocity can be changed during axis motion. The procedure for saving and installing the example program is similar to the Axis movement example. Example program "Changing of target position and velocity"