beckhoff · TF5100 TwinCAT 3 NC I · 348 pp.
Beckhoff TF5100 TwinCAT 3 NC I Manual (Version 2.15.3) PDF Download
Related manuals
Contents
Document text
Table of contents
Table of contents Table of contents 1 Foreword.................................................................................................................................................... 7 1.1 Notes on the documentation ............................................................................................................. 7 1.2 For your safety .................................................................................................................................. 8 1.3 Notes on information security............................................................................................................
9 2 Introduction ............................................................................................................................................. 10 3 Usermode Runtime ................................................................................................................................. 11 4 User interface in the TwinCAT 3 Engineering environment................................................................ 12 4.1 Outline.............................................................................................................................................
12 4.2 Interpolation Channel ...................................................................................................................... 13 4.3 Interpreter element.......................................................................................................................... 15 4.3.1 Interpreter online window................................................................................................. 16 4.3.2 "Interpreter" tab................................................................................................................
18 4.3.3 "M-Functions" tab............................................................................................................. 19 4.3.4 "R parameters" tab........................................................................................................... 20 4.3.5 "Zero point" tab ................................................................................................................ 21 4.3.6 "Tools" tab........................................................................................................................ 22 4.3.7 "Editor" tab .......................................................................................................................
22 4.3.8 "MDI" tab.......................................................................................................................... 23 4.4 Group element ................................................................................................................................ 24 4.4.1 "General" tab.................................................................................................................... 24 4.4.2 "DXD" tab.........................................................................................................................
25 4.4.3 “Settings” tab.................................................................................................................... 29 4.4.4 "Online" tab ...................................................................................................................... 30 4.4.5 "3D-Online" tab ................................................................................................................ 31 5 GST Reference Manual ...........................................................................................................................
32 5.1 General Notes ................................................................................................................................. 32 5.2 Preprocessor................................................................................................................................... 32 5.3 Combining G-Code and ST............................................................................................................. 34 5.4 G-Code (DIN 66025) .......................................................................................................................
36 5.4.1 Comments........................................................................................................................ 36 5.4.2 Execution Order ............................................................................................................... 37 5.4.3 Mutual Exclusive G-Codes............................................................................................... 37 5.4.4 Rapid Traverse (G00) ...................................................................................................... 38 5.4.5 Linear Interpolation (G01) ................................................................................................
38 5.4.6 Circular Interpolation (G02, G03, IJK, U) ......................................................................... 39 5.4.7 Dwell Time (G04) ............................................................................................................. 41 5.4.8 Accurate Stop (G09,G60)................................................................................................. 42 5.4.9 Delete Distance to go (G31)............................................................................................. 42 5.4.10 Tool Radius Compensation (D, G40, G41, G42) .............................................................
42 5.4.11 Zero Offest Shifts (G53,G54...59) .................................................................................... 44 5.4.12 Working Plane and Feed Direction (G17, G18, G19, P) .................................................. 46 5.4.13 Inch/metric dimensions (G70, G71, G700, G710)............................................................ 47 5.4.14 Dimensional Notation (G90, G91).................................................................................... 49 TF5100 3 Version: 2.15.3
Table of contents
Table of contents 5.4.15 M-Functions (M)............................................................................................................... 50 5.4.16 R-Parameters................................................................................................................... 51 5.4.17 H, S, and T parameters.................................................................................................... 52 5.4.18 General Codes (F, N, Q, X, Y, Z, A, B, C)........................................................................ 53 5.5 ST - Structured Text (IEC 61131-3) ................................................................................................
54 5.5.1 Comments........................................................................................................................ 54 5.5.2 Literals.............................................................................................................................. 55 5.5.3 Native Data Types............................................................................................................ 58 5.5.4 Userdefined Types........................................................................................................... 59 5.5.5 Control Structures ............................................................................................................
60 5.5.6 Jump statement................................................................................................................ 61 5.5.7 Userdefined Functions ..................................................................................................... 62 5.5.8 Standard Functions.......................................................................................................... 63 5.6 CNC Functions................................................................................................................................ 70 5.6.1 Strings and Messages......................................................................................................
70 5.6.2 Transformations ............................................................................................................... 71 5.6.3 Circular Movement........................................................................................................... 77 5.6.4 Centerpoint Correction..................................................................................................... 78 5.6.5 Tools ................................................................................................................................ 78 5.6.6 Synchronization................................................................................................................
80 5.6.7 Query of Axes .................................................................................................................. 81 5.6.8 Current Point.................................................................................................................... 82 5.6.9 Tool Radius Compensation.............................................................................................. 82 5.6.10 Suppression of G-Code Blocks........................................................................................ 83 5.6.11 Zero Offset Shift...............................................................................................................
84 5.6.12 Units................................................................................................................................. 85 5.6.13 Trigonometric (Unit Aware) .............................................................................................. 86 5.6.14 Feed Mode....................................................................................................................... 87 5.6.15 Feed Interpolation ............................................................................................................ 88 5.6.16 Streaming of Large G-Code Files ....................................................................................
88 5.6.17 Vertex Smoothing............................................................................................................. 89 5.6.18 Automatic Accurate Stop.................................................................................................. 91 5.6.19 Spline Interpolation .......................................................................................................... 92 5.6.20 Dynamic Override ............................................................................................................ 95 5.6.21 Programming reference ...................................................................................................
96 5.6.22 Center Point Reference of Circles.................................................................................... 97 5.6.23 Change in axis dynamics ................................................................................................. 97 5.7 Transformations .............................................................................................................................. 98 5.6.24 Change in path dynamics................................................................................................. 98 5.7.1 Modification of the Effective Transformation T and its Effect...........................................
99 5.7.2 Components of the Effective Transformation T.............................................................. 100 5.7.3 Applying Transformations .............................................................................................. 100 5.7.4 Revoking Transformations ............................................................................................. 100 5.7.5 Restoration of Stack....................................................................................................... 101 5.8 Error Reporting..............................................................................................................................
101 5.8.1 Error Messages.............................................................................................................. 102 TF5100 4 Version: 2.15.3
Table of contents
Table of contents 5.8.2 Compile-Time Errors and Runtime Errors...................................................................... 102 5.8.3 Errors in G-Code............................................................................................................ 103 5.8.4 Preprocessing ................................................................................................................ 104 5.9 General Command Overview........................................................................................................ 104 5.10 Comparative Command Overview ................................................................................................
115 6 Classic Dialect Reference Manual ....................................................................................................... 126 6.1 Basic Principles of NC Programming ............................................................................................ 126 6.1.1 Structure of an NC Program........................................................................................... 126 6.1.2 Block Skipping................................................................................................................ 127 6.1.3 Look-Ahead....................................................................................................................
127 6.1.4 Smoothing of Segment Transitions................................................................................ 129 6.1.5 Co-ordinate System ....................................................................................................... 129 6.1.6 Dimensional Notation..................................................................................................... 129 6.1.7 Working Plane and Feed Direction ................................................................................ 130 6.1.8 Inch/metric dimensions ..................................................................................................
131 6.1.9 Single Block Operation................................................................................................... 133 6.1.10 Arithmetic Parameters.................................................................................................... 134 6.2 Programming Movement Statements............................................................................................ 136 6.2.1 Referencing.................................................................................................................... 136 6.2.2 Rapid Traverse...............................................................................................................
136 6.2.3 Linear Interpolation ........................................................................................................ 137 6.2.4 Circular Interpolation...................................................................................................... 138 6.2.5 Helix ............................................................................................................................... 140 6.2.6 Dwell Time ..................................................................................................................... 141 6.2.7 Accurate Stop.................................................................................................................
141 6.2.8 Feed interpolation .......................................................................................................... 141 6.2.9 Zero Offset Shifts ........................................................................................................... 142 6.2.10 Target Position Monitoring ............................................................................................. 145 6.2.11 Contour definitions ......................................................................................................... 147 6.2.12 Rotation..........................................................................................................................
148 6.2.13 Mirror.............................................................................................................................. 151 6.2.14 Smoothing of segment transitions.................................................................................. 152 6.2.15 Circular Smoothing......................................................................................................... 157 6.2.16 Automatic Accurate Stop................................................................................................ 158 6.2.17 Delete Distance to Go....................................................................................................
159 6.2.18 Modulo Movements........................................................................................................ 159 6.2.19 Auxiliary axes................................................................................................................. 161 6.3 Supplementary Functions ............................................................................................................. 164 6.3.1 M-Functions ................................................................................................................... 164 6.3.2 H, T and S Parameters ..................................................................................................
168 6.3.3 Decoder stop.................................................................................................................. 169 6.3.4 Jumps............................................................................................................................. 170 6.3.5 Loops ............................................................................................................................. 172 6.3.6 Subroutine techniques ................................................................................................... 173 6.3.7 Dynamic Override ..........................................................................................................
175 6.3.8 Altering the Path Axes Dynamics................................................................................... 175 TF5100 5 Version: 2.15.3
Table of contents
Table of contents 6.3.9 Change of the Reduction Parameters............................................................................ 176 6.3.10 Change of the Minimum Velocity ................................................................................... 178 6.3.11 Read Actual Axis Value.................................................................................................. 178 6.3.12 Skip virtual movements.................................................................................................. 179 6.4 Tool Compensation .......................................................................................................................
180 6.3.13 Messages from NC program.......................................................................................... 180 6.4.1 Tool Data........................................................................................................................ 180 6.4.2 Selecting and Deselecting the Length Compensation ................................................... 183 6.4.3 Cartesian Tool Translation............................................................................................. 183 6.4.4 Cutter Radius Compensation.........................................................................................
186 6.4.5 Orthogonal Contour Approach/Departure ...................................................................... 191 6.4.6 Path Velocity in Arcs ...................................................................................................... 191 6.4.7 Bottle Neck Detection..................................................................................................... 192 6.5 Command overview ...................................................................................................................... 193 6.5.1 General command overview ..........................................................................................
193 6.5.2 @-Command Overview.................................................................................................. 196 7 PLC NCI Libraries.................................................................................................................................. 198 7.1 PLC Library: Tc2_NCI ................................................................................................................... 198 7.1.1 Configuration..................................................................................................................
198 7.1.2 NCI POUs ...................................................................................................................... 206 7.1.3 Parts program generator................................................................................................ 273 7.1.4 Function blocks for compatibility with existing programs ............................................... 282 7.1.5 Obsolete......................................................................................................................... 311 7.2 PLC Library: Tc2_PlcInterpolation ................................................................................................
312 7.2.1 FB_NciFeedTablePreparation........................................................................................ 314 7.2.2 FB_NciFeedTable .......................................................................................................... 316 7.2.3 Types and Enums .......................................................................................................... 317 8 Samples .................................................................................................................................................
330 9 Support and Service ............................................................................................................................. 331 10 Appendix................................................................................................................................................ 332 10.1 Display of the parts program ......................................................................................................... 332 10.2 Display of technology data ............................................................................................................
334 10.3 Displaying the remaining path length ............................................................................................ 339 10.4 Parameterisation ........................................................................................................................... 339 10.4.1 Path override (interpreter override types) ...................................................................... 342 10.5 Cyclic Channel Interface ............................................................................................................... 344 TF5100 6 Version: 2.15.3