840D - FB1 Description of Functions - Basic Machine
840D - FB1 Description of Functions - Basic Machine
840D - FB1 Description of Functions - Basic Machine
Various Interface Signals Axis Monitoring, Protection Zones Continuous Path Mode, Exact Stop and Look Ahead Acceleration
A2 A3
B1 B2 D1 D2 F1
Diagnostic Tools Interactive Programming Travel to Fixed Stop Velocities, Setpoint/ Actual Value Systems, Closed-Loop Control Auxiliary Function Output to PLC Mode Group, Channel, Program Operation, Reset Response Axes, Coordinate Systems, Frames Communication EMERGENCY STOP Transverse Axes
G2 H2
K1 K2 K4 N2 P1 P3
Valid for Control SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK Software Version 840D 6 840DE (export version) 6 840D powerline 6 840DE powerline 6 840Di 3 840DiE (export version) 3 810D 3 810DE (export version) 3 810D powerline 6 810DE powerline 6
Reference Point Approach R1 Spindles Feeds Tool Offset Abbreviations Definition of Terms References Index S1 V1 W1 A B C
11.2003 Edition
3ls
SINUMERIK Documentation
Printing history Brief details of this edition and previous editions are listed below. The status of each edition is shown by the code in the Remarks column. Status code in the Remarks column: A . . . . . New documentation. B . . . . . Unrevised reprint with new order no. C . . . . . Revised edition with new status. If factual changes have been made on the page in relation to the same software version, this is indicated by a new edition coding in the header on that page. Edition 06.94 08.94 02.95 04.95 12.95 03.96 08.97 12.97 12.98 08.99 04.00 10.00 09.01 11.02 11.03 Order No. 6FC5 297-0AC20-0BP0 6FC5 297-0AC20-0BP1 6FC5 297-2AC20-0BP0 6FC5 297-2AC20-0BP1 6FC5 297-3AC20-0BP0 6FC5 297-3AC20-0BP1 6FC5 297-4AC20-0BP0 6FC5 297-4AC20-0BP1 6FC5 297-5AC20-0BP0 6FC5 297-5AC20-0BP1 6FC5 297-5AC20-0BP2 6FC5 297-6AC20-0BP0 6FC5 297-6AC20-0BP1 6FC5 297-6AC20-0BP2 6FC5 297-6AC20-0BP3 Remarks A C C C C C C C C C C C C C C
This book is part of the documentation on CD-ROM (DOCONCD) Edition Order No. Remarks 11.03 6FC5 298-6CA00-0BG4 C
Trademarks SIMATICr, SIMATIC HMIr, SIMATIC NETr, SIROTECr, SINUMERIKr and SIMODRIVEr are trademarks of Siemens. Other product names used in this documentation may be trademarks which, if used by third parties, could infringe the rights of their owners.
Further information is available on the Internet under: http://www.ad.siemens.de/mc This publication was produced with Interleaf V7. The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including those created by patent grant or registration of a utility model or design, are reserved.
Other functions not described in this documentation might be executable in the control. However, no claim can be made regarding the availability of these functions when the equipment is first supplied or for service cases. We have checked that the contents of this document correspond to the hardware and software described. Nonetheless, differences might exist and therefore we cannot guarantee that they are completely identical. The information contained in this document is, however, reviewed regularly and any necessary changes will be included in the next edition. We welcome suggestions for improvement. Subject to changes without prior notice.
Siemens Aktiengesellschaft
09.01 10.00
Preface
Readers note
The SINUMERIK documentation is structured in three levels:
Note Other functions not described in this documentation might be executable in the control. This does not, however, represent an obligation to supply such functions with a new control or when servicing.
Hotline
If you have any questions about the control, please contact the hotline: A&D Technical Support Phone.: ++49-180-5050-222 Fax: ++49-180-5050-223 Email: adsupport@siemens.com
Please send any questions about the documentation (suggestions for improvement, corrections) to the following fax number or email address: Fax: ++49-9131-98-2176 Email: motioncontrol.docu@erlf.siemens.de Fax form: see reply form at the end of the manual.
http://www.ad.siemens.de/mc
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
The
The
Objective
The Descriptions of Functions provide the information required to configure and start-up the control.
Target groups
S the configuring engineer S the PLC programming engineer for the creation of the PLC user program
with the signals listed
S the start-up engineer after system configuration and installation S the service technician for checking and interpreting the status displays and
alarms.
S Overall table of contents (main headings) of the manual S Descriptions of functions in alphanumeric sequence according to the
Function Description codes
S Appendix with Abbreviations, Definition of Terms and References S Index of all Descriptions of Functions.
Note The footer on each page contains the following information: Part of the Description of Functions / Manual / Section Page
vi
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
If you require more information about a particular function, you can find the function and its sorting code on the inside front page of the manual.
If you require information on a certain term, please refer to the index in the appendix. The index lists the code of the Description of Functions, the Section number and the page on which information relevant to the term you are seeking can be found.
Definitions on the effectiveness, data format, input limits etc. of various signals and data are to be found in the individual Descriptions of Functions in Chapters 4 and 5. An explanation of this definition is to be found in the following under Technical Comments.
Important This documentation is valid for the: D SINUMERIK 840D control, SW 6 D SINUMERIK 810D control, SW 6 D SINUMERIK 840Di control SW 3.
The software versions specified in this documentation refer to the SINUMERIK 840D control system. The equivalent software version for the SINUMERIK 810D (if the function is enabled, refer to /BU/, Catalog NC 60) is not explicitly specified. In this case, the following applies:
Table 1-1
Corresponding software version SINUMERIK 810D corresponds to corresponds to corresponds to 3.3 (04.00) 1.7 (03.97) SINUMERIK 810D powerline 6.4 (11.02) 3.3 (04.00) 1.7 (03.97) SINUMERIK 840Di 3.1 (09.03) 1.1 (07.00)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
vii
09.01 10.00
Important This symbol always appears in the documentation when important information is being conveyed.
Ordering Data Option In this documentation, you will find this symbol with a reference to an order data option. The function described is executable only if the control contains the designated option.
Machine Manufacturer This symbol appears in this documentation whenever the machine manufacturer can influence or modify the described functional behavior. Please observe the information provided by the machine manufacturer.
Danger Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury or in substantial property damage.
Warning Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury or in substantial property damage.
Caution Used with the safety alert symbol indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury or in property damage.
Caution Used without safety alert symbol indicates a potentially hazardous situation which, if not avoided, may result in property damage.
viii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
Notice Used without the safety alert symbol indicates a potential situation which, if not avoided, may result in an undesirable result or state.
Technical information
Notations
S Machine data > MD: MD_NAME (English designation) S Setting data > SD: SD_NAME (English designation) S The symbol 8 means corresponds to.
Explanation of terms and abbreviations in Chapters 4 and 5
Values in the table Chapters 4 and 5 of each Description of Functions contain a description of the data and signals which are important for the relevant function. Some of the terms and abbreviations used in this tabulated, explanatory text are explained in more detail below. The machine data used in the Description of Functions are always values for an NCU 572. The values for another NCU (for example, NCU 570, NCU 571, NCU 573) are in the list manual. References: /LIS/ Lists Default value The machine/setting data is automatically preset to this value during start-up. If the default values depending on the channels are different, these are specified by / . Specifies the input limits. If no value range is defined, the input limits are defined by the data type and the field is indicated by .
Changes to machine data, setting data, or similar parameters do not necessarily take immediate effect in the control. For this reason, the conditions for activating a new setting are always specified. The following list shows the applied conditions in prioritized order:
RESET key on front panel of NCU module or disconnection/connection of power supply New configuration function via PLC interface RESET key on control unit RESET key on control unit after value entry
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
ix
09.01 10.00
Protection level
There are protection levels 0 to 7. Levels 0 to 3 (4 to 7) can be enabled by entering a password (keyswitch setting). The operator only has access to information on the level for which he is authorized and for all lower levels. Various protection levels are assigned to machine data as standard. The table only lists the write protection level. However, there is a fixed assignment between write and read levels:
References:
Unit
The unit refers to the default settings of the machine data SCALING_FACTOR_USER_DEF_MASK and SCALING_FACTOR_USER_DEF. If the MD is not governed by any particular physical unit, then the symbol is entered in the unit field.
Data type
S DOUBLE
Real or integer values (decimal values or integers) Input limits from +/4.19*10307 to +/1.67*10308
S DWORD
Integer values Input limits from 2,147*109 to +2,147*109
S BOOLEAN
Possible input values: true or false and/or 0 or 1
S BYTE
Integer values from 128 to +127
S STRING
Consisting of max. 16 ASCII characters (capital letters, digits and underscore).
Data management
The explanations of the PLC interface in the individual Function Descriptions are based on a theoretical maximum number of components:
S 4 operating mode groups (associated signals stored in DB11) S 8 channels (associated signals stored in DB2130) S 31 axes (associated signals stored in DB3161).
For the number of components which can actually be implemented in the relevant software version, please refer to References: /BU/, Order Document Catalog NC 60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 Machine data for operator panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/xi
10.00
General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific NCK machine data . . . . . . . . . . . . . . . . . . . . . . Machine data for involute (SW 6 and later) . . . . . . . . . . . . . . . . . . . . System variables (SW 4 and later) . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/A2/4-58 1/A2/4-60 1/A2/4-61 1/A2/4-64 1/A2/4-65 1/A2/5-67 1/A2/5-67 1/A2/5-67 1/A2/5-68 1/A2/5-71 1/A2/5-71 1/A2/5-77 1/A2/5-83 1/A2/5-83 1/A2/5-84 1/A2/5-85 1/A2/5-85 1/A2/5-97 1/A2/6-113 1/A2/6-113 1/A2/7-115 1/A2/7-115 1/A2/7-118 1/A2/7-121 1/A2/7-121 J
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.1.1 5.1.2 5.2 5.2.1 5.2.2 5.3 5.3.1 5.3.2 5.4 5.4.1 5.4.2 NC-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from PLC to NC (DB10) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from NC to PLC (DB10) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals to/from operator panel (DB19) . . . . . . . . . . . . . . . . . . . . . . . . Signals to operator panel (PLC > MMC) . . . . . . . . . . . . . . . . . . . . . Signals from operator panel (MMC > PLC) . . . . . . . . . . . . . . . . . . . Channel-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals to channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals to axis/spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from axis/spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 7.4 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/A2/xii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Brief Description
Contents
This Description of Functions describes the functionality of various interface signals which are of general relevance but are are not included in the other existing Descriptions of Functions.
Asynchronous events
The CNC offers the possibility of activating specific reactions in response to asynchronous events on the machine. The PLC user program reports these events via the PLC interface of the NC. The NC processes this PLC interface cyclically and triggers the relevant internal reactions.
Signaling states
The NC also signals various functional states to the PLC via the interface which the PLC user program can then process on a machine-specific basis.
For highspeed exchange of information between the PLC and NC, a memory area is reserved in the interface memory of these modules (dualport RAM). Variables of any type (I/O, DB, DW, flags) may be exchanged within this memory area.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/1-3
10.00 10.00
Notes
1/A2/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Detailed Description
2.1 General
Interface PLC/NCK
The exchange of signals and data between the PLC user program and the NCK, MMC and MCP areas is organized by the basic PLC program. The PLC/NCK interface consists of a data interface and a function interface. Tasks from the PLC user program to the NCK can be transferred via the function interface (e.g. to traverse concurrent axes). The function interface is generated by function calls (FC). For further information about PLC function calls, please refer to References: /FB/, P3, Basic PLC Program. We distinguish between the following signal and data groups:
S Cyclic signal exchange of control and status signals S Eventdriven signal exchange (auxiliary and G functions), see
References: /FB/, H2, Output of Auxiliary Functions to PLC For an overview of all PLC/NCK interface signals, function blocks used by manufacturers as well as assigned data blocks, please refer to References: /LIS/, Lists
The control and status signals of the PLC/NCK interface are transferred cyclically by the basic PLC program (OB1). The signals can be subdivided into the following groups:
S General NC-specific signals S Mode group-specific signals S Channel-specific signals S Axis/spindle-specific signals.
The structure of the interface and the functions of the basic program are described in detail in References: /FB/, P3, Basic PLC Program. As already explained, this description of functions describes the control and status signals of the PLC interface which are of universal significance and cannot be assigned to other existing Descriptions of Functions (e.g. IS Servo enable). Only these PLC interface signals are therefore dealt with on the following pages.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-5
10.00
S Signals for influencing the CNC inputs and outputs S Keyswitch signals (and password).
From NC to PLC:
S Actual values of CNC inputs S Setpoints of CNC outputs S Ready signals from NC, NCK, MMC S NC status signals (alarm signals).
OP-specific signals (DB10)
From PLC to NC:
S Signals for influencing the CNC inputs and outputs S Keyswitch signals (and password).
From NC to PLC:
S Actual values of CNC inputs S Setpoints of CNC outputs S Ready signals from NC, NCK, MMC S NC status signals (alarm signals).
Channel-specific signals (DB21, ...)
From PLC to NC:
S Control signals to axis/spindle (e.g. follow-up mode, servo enable, ...) S Control signals to SIMODRIVE 611D (bytes 20, 21).
From NC to PLC:
Note In Chapter 5 you will find a list of the interface signals and data described in this Description of Functions. For an overview diagram of the PLC/NCK interface, please refer to: References: /FB/, P3, Basic PLC Program
1/A2/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
2.2
NCK CPU Ready (DB10, DBX104.7) MMC2 CPU Ready DB10, DBX108.1)
The NCK CPU is ready and sending ready signals cyclically to the PLC.
MMC2 (see FB B3) is ready and sending signals cyclically to the NCK. Signal is valid for connecting MMC2 to OPI and MPI.
MMC CPU1 Ready (DB10, DBX108.2) (DB10, DBX108.3) 611D Ready (DB10, DBX108.6)
(DB10, DBX108.2) MMC to MPI (DB10, DBX108.3) MMC to OPI, standard link The MMC CPU is ready and sending signals cyclically to the NCK.
The 611D signals to the PLC via the NCK that all installed drives are ready to operate. IS Drive Ready (DB31, ... DBX93.5) (group signal) is active on all axes and spindles. 611U signals Drive Ready to the PLC (DB31, ...DBX93.5), when the drive is ready. 611D Ready is only output with the drive 611D.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-7
Various Interface Signals (A2) 2.3 Alarm signals to PLC (DB10 and DB21, ... )
10.00
2.3
MMC Alarm is active (DB10, DBX103.0) Air temperature alarm (DB10, DBX109.6) NCK battery alarm (DB10, DBX109.7)
The MMC sends this signal to the PLC to indicate that at least one MMC alarm (between alarm numbers 100000 and 105999) is active.
The battery voltage has dropped below the lower limit value. The control can still be operated. Loss of voltage would lead to the loss of data in the volatile memory areas.
NCK alarm is active (DB10, DBX109.0) Channel-specific NCK alarm is active (DB21, ... DBX36.6) NCK alarm with processing stop is active (DB21, ... DBX36.7)
The control sends this signal to the PLC to indicate that at least one NCK alarm is active. The channel-specific interface can be scanned to see which channels are involved and whether this will cause a processing stop.
The control system sends this signal to the PLC to indicate that at least one NCK alarm is active for the affected channel. To what extent this may influence whether the current program run will be interrupted or aborted can be determined from IS NCK alarm with processing stop is active.
The control sends this signal to the PLC to indicate that at least one NCK alarm, which has interrupted or aborted the current program run (processing stop), is active for the affected channel.
1/A2/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Various Interface Signals (A2) New interface signals in DB10 for SINUMERIK 840Di
2.4
PC Shutdown (DB10,...DBX57.3)
If the signal PC Shutdown is set, NC and PLC will shut down automatically. Then WINDOWS NT will shut down. SINUMERIK 840Di or the PC can now be turned off. The PC can be shut down using, for example, an external pushbutton before the power is switched off or the capacity of a UPS (uninterruptible power supply) runs out.
PC OS fault (DB10,...DBX109.4)
If WINDOWS NT detects a fatal exception error (blue screen) during the operation of NC and PLC, the interface signal PC OS fault (PC Operating System fault) is set. A fatal exception error of WINDOWS NT has no influence on the SINUMERIK 840Di NC and PLC. The execution of parts programs and of the PLC user program is continued.
Note To shut down the whole system (NC, PLC and WINDOWS NT) after a fatal exception error (blue screen), you must first shut down the SINUMERIK 840Di (PLC and NC) by setting the interface signal PC Shutdown. As long as the SINUMERIK 840Di (NC and PLC) is still in operation after a fatal exception error has occurred, it is not possible to restart WINDOWS NT.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-9
Various Interface Signals (A2) 2.5 Access protection using password and keyswitch
10.00
2.5
Access authorization
S 4 password levels for Siemens, machine manufacturer and end user S 4 keyswitch positions for end user
This provides a multilevel safety concept for controlling access rights.
Table 2-1 Protection level 0 Access protection Type Password Password Password Password Keyswitch pos. 3 Keyswitch pos. 2 Keyswitch pos. 1 Keyswitch pos. 0 User Siemens Access to (examples) All functions, programs and data
Machine manufacturer: development Machine manufacturer: commissioner End user: service End user: programmer setter End user: qualified user who does not program End user: trained user who does not program End user: semi-skilled user
Defined functions, programs and data; e.g.: entering options Defined functions, programs and data; e.g.: bulk of machine data Assigned functions, programs and data
Less than protection level 0 to 3; defined by machine manufacturer or end user Less than protection level 0 to 3; defined by end user decreasing access authorization
Example: only program selection, entering tool wear data, and zero offsets Example: no inputs or program selection possible, only operation of machine control panel
Access features
S Conversely, protection rights for a certain protection level can only be altered
from a higher protection level.
1/A2/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
Various Interface Signals (A2) Access protection using password and keyswitch
S Access rights for protection levels 4 to 7 are only suggestions and can be
altered by the machine tool manufacturer or end user.
2.5.1
Password
For the four possible password levels with their respective access authorization, passwords can be entered in the DIAGNOSIS area by pressing the SET PASSWORD soft key. References: /BA/, Operators Guide Please note that a password is valid as long as the access authorization is canceled again selectively by means of soft key DELETE PASSWORD. Access authorization is therefore not automatically deleted during POWER ON! The password can be up to eight characters in length. We recommend that you confine yourself to the characters available on the operator panel when defining the password. Where a password consists of less than eight characters, the additional characters are interpreted as blanks.
Set password
Resetting password
Possible characters
Default passwords
The following default passwords have been set for protection levels 1 to 3: Protection level 1 SUNRISE Protection level 2 EVENING Protection level 3 CUSTOMER
Note These passwords are entered as default on power up of the system in start-up mode (NCK start-up switch is at position 1). These passwords should be changed to ensure effective access protection.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-11
Various Interface Signals (A2) 2.5 Access protection using password and keyswitch
10.00
2.5.2
Keyswitch
The keyswitch on the SINUMERIK 840D/840Di/810D has four positions to which protection levels 4 to 7 are assigned. The keyswitch has three keys of different colors that can be removed in different settings (see table 2-2). The key positions can be assigned to functions by the machine tool manufacturer or end user. User-oriented access to programs, data and functions can be set in the machine data (see Subsection 2.5.3). The keyswitch positions are transferred to the PLC interface (IS Keyswitch position 0 to 3 (DB10, DBX56.4 to 7) and can be evaluated by the PLC user program. Keyswitch position 0 represents the fewest access rights and position 3 the most. For example, all data that can be changed in keyswitch positions 0, 1 or 2 can also be changed in position 3.
Keyswitch applications
Access to certain data areas can be disabled with the keyswitch. Unintentional changes to geometry data (e.g. zero offsets) or activation of program control functions (e.g. selecting dry run feedrate) by the operator are therefore ruled out.
Table 2-2 Keyswitch setting 0 to 3
Keyswitch pos.
Retraction pos.
DB10, DBB56
Protection level
Position 0
Bit 4
Position 1
0 or 1 black key
Bit 5
Position 2
Bit 6
Position 3
Bit 7
The PLC IS interface signals Keyswitch position 0 to 3 can be defined either directly via the keyswitch on the machine control panel or from the PLC user program. Only one interface signal must be set. If more than one interface signal is set at the same time, the control sets keyswitch position 3. See Chapter 5
Further information
1/A2/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Various Interface Signals (A2) Access protection using password and keyswitch
2.5.3
Default setting
These MMC machine data are preset with protection level 7 during standard installation. This means that these data areas and functions can also be influenced at keyswitch position 0. If required, these protection levels can be changed by the machine manufacturer or end user. Protection levels 0 to 3 can also be entered.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-13
Various Interface Signals (A2) 2.5 Access protection using password and keyswitch
10.00 10.00
2.5.4
Protection levels
The protection levels described in Section 2.5 should be used as follows: MD 9201: USER_CLASS_WRITE_TOA_GEO = 5 MD 9202: USER_CLASS_WRITE_TOA_WEAR = 6 i.e. higher access rights must prevail for tool geometry input than for wear input. The person entering the wear must have at least protection level 6 in this example.
The difference between the old and new wear value may not exceed the value in MD 9450: MM_WRITE_TOA_FINE_LIMIT assume set value.
1/A2/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.6
Various Interface Signals (A2) Interface signals for operator panel (DB19)
2.6
Note As soon as the screen is darkened by means of IS Darken screen, the keyboard should be inhibited simultaneously by IS Key disable = 1 to prevent the operator from entering any keyboard commands unintentionally!
IS Key disable can be applied to disable (1 signal) or enable (0 signal) the connected keyboard (see Section 5.2).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-15
Various Interface Signals (A2) 2.6 Interface signals for operator panel (DB19)
10.00 10.00
IS Cancel alarms and Recall alarms can be used to initiate central clearing of the Cancel alarms and Recall alarms (e.g. MMC alarms). When the central clear error key is pressed on the machine control panel, the application resets bit DB19.DBX0.3 for Cancel alarms (and DB19.DBX0.4 for Recall alarms). The master control receives the bits and transmits the Cancel (and Recall) key to the MBDDE, which then acknowledges all Cancel alarms (and Recall alarms) of the NCK and MMC. The PLC application can acknowledge the PLC alarms itself. PowerOn and Reset alarms remain active on the NCK until the cause of the error has been rectified. The master control sets bits DB19.DBX20.3 (DB19.DBX20.4) in order to acknowledge the clear request. The PLC application then clears all of the involved bits again.
Actual values are displayed on the basis of two different coordinate systems:
S by the operator using the soft keys Actual values MCS or Actual values
WCS. References: /BA/, Operators Guide
When you select WCS, the geometry and special axes, and their actual positions and distances to go, are displayed in the workpiece coordinate system in the Position window.
When you select MCS, the geometry and the special axes with their actual position and distances-to-go are displayed in the Position window in the machine coordinate system (see Section 5.2).
1/A2/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.6
Various Interface Signals (A2) Interface signals for operator panel (DB19)
This byte for controlling the RS232 interface is the incoming byte from PLC>MMC. It can be used to initiate the tasks RS232 On, RS232 Off, RS232 external, RS232 Stop etc. The tasks refer to the user control file stored in DB19.DBB14 and DB19.DBB15.
Controlling file transfer via hard disk (MMC 103 only) (DB19.DBB13) Controlling the RS232C (MMC 100 only) (DB19.DBB14) Controlling the RS232C (MMC 100 only) (DB19.DBB15)
This byte for controlling file transfer via hard disk is the request byte from PLC>MMC. It can be used to initiate the tasks Select, Load and Unload. The tasks refer to the user control file stored in DB19.DBB16 and DB19.DBB17.
This byte for controlling the RS232 interface defines the PLC index which specifies the axis, channel or TO number for the standard control file. This file is handled from PLC>MMC in accordance with the task stored in DB19.DBB12.
This byte for controlling the RS232 interface defines the line of the standard or user control file on which the file to be transferred is specified.
Controlling file transfer via hard disk (MMC 103 only) (DB19.DBB16) Controlling file transfer via hard disk (MMC 103 only) (DB19.DBB17)
This byte for controlling file transfer via hard disk defines the index for the control file (job list). This file is handled from PLC>MMC in accordance with the task stored in DB19.DBB13.
This byte for controlling file transfer via hard disk indicates which line in the user control file contains the control file to be transferred.
This byte for controlling the RS232 interface is the acknowledgment byte from MMC>PLC and contains the current status of data transfer for RS232 ON, RS232 OFF, RS232 external, RS232 Stop etc. or indicates if a data transfer error occurred.
The data transfer error values from MMC>PLC are output in this byte for controlling the RS232 interface.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-17
Various Interface Signals (A2) 2.6 Interface signals for operator panel (DB19)
10.00
Controlling file transfer via hard disk (MMC 103 only) (DB19.DBB26) Controlling file transfer via hard disk (MMC 103 only) (DB19.DBB27)
This byte for controlling file transfer via hard disk is the acknowledgment byte from MMC>PLC and contains the current status of data transfer for Select, Load or Unload or indicates if a data transfer error occurred.
This byte for controlling file transfer via hard disk is used to output the data transfer error values from MMC>PLC.
1/A2/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
2.7
2.7.1
The IS Delete distance-to-go (channel-specific) can only be applied to path axes. As the edge of the interface signal rises, the distance-to-go of all axes in the geometry grouping is deleted and the axes thus brought to a standstill with ramp stop. The next program block is then started. For a more detailed description, see Section 5.3.
2.8
2.8.1
Drive test travel enable function Axes that are started without operator intervention, e.g. by a function generator, require a safety handshake executed in the following sequence: The NC first requests permission to travel from the PLC with:
Axis disable function If IS Axis/spindle disable is set, then the position setpoint is kept constant. Axis travel is disabled. If the signal is applied only briefly before the end of the traversing block, the axis is not started again for the rest of the block. When the disable is canceled, the next movement does not start again until the next traversing block for the axis. Any remaining distance from the previous block is traversed in the new block as well as the new movement.
Note Attention must be paid to avoid incorrect positioning/contouring errors due to remaining uncompleted blocks.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-19
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
10.00
Spindle disable function If IS Spindle disable is set, a 0 speed setpoint is output to the speed controller for the relevant spindle in openloop control mode or, in positioning mode, the position setpoint is kept constant analogously to the axis disabled state. The movement of the spindle is thus disabled. For a more detailed description, see Section 5.4.
If an axis/spindle is operating in follow-up mode, then its setpoint position is made to track the current actual value position. As shown in Fig. 2-1, the position setpoint in follow-up mode is not defined by the interpolator but derived from the actual position value. As actual position value acquisition of the axis continues, it is not necessary to rereference the axis when follow-up mode has been canceled. Zero speed control, clamping and position monitoring are not active during follow-up mode.
Effect
The IS Follow-up mode is only of relevance if the drive servo enable has been removed (e.g. by IS Servo enable = 0 signal or because of a fault in the control), or because servo enable is being reissued.
The following example is given to explain the positioning behavior of the axis/spindle when Servo enable is set (see Figs. 2-2 and 2-3). As the Y axis can be pushed out of its actual position Y1 to clamping position Yk by mechanical or electrical influences, Servo enable for the Y axis is first removed.
1/A2/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
Hold
When IS Servo enable is set, IS Follow-up mode switches to 0 (Fig. 2-2): When closed-loop control is reactivated (by setting IS Servo enable) the old setpoint position Y1 is immediately approached again because the setpoint position has not been corrected to the actual value position (Fig. 2-2). In the next traversing block the path contour is traversed exactly as defined in the parts program (advantage!). Caution: This return movement to the old setpoint position is made directly by the position controller (i.e. without acceleration characteristic) and can place a load on the mechanical system, depending on the distance.
Note To prevent activation of alarm 25040 Zero speed monitoring during the clamping process, it must be replaced by IS Clamping in progress (DB31, ... DBX2.3) from the clamping monitoring function.
Follow-up
When IS Servo enable is set, IS Follow-up mode switches to 1 (Fig. 2-3): When the closed-loop control system is reactivated, a control-internal repositioning operation is performed (REPOSA: linear approach with all axes) to the last programmed position if a parts program is active.
Setpoint follow-up
Position actual point Fig. 2-1 Results when Servo enable and Follow-up mode are canceled
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-21
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
10.00
Y Sequence
1. 2. 3. 4. 5.
IS Follow-up mode = 0 Cancel IS Servo enable Clamping Release clamp Set IS Servo enable
YK Y1 N10
N50
YK
Return (by position controller) to position before clamping (Y1) when servo enable is set
Y1
Fig. 2-2
Y Sequence
1. 2. 3. 4. 5.
IS Follow-up mode = 1 Cancel IS Servo enable Clamping Release clamp Set IS Servo enable
Path followed if no parts program is active Path followed when only X is programmed in N50 and parts program is active. YK Y1 N10 N50 YK Return by REPOSA, if parts program is active in Automatic mode Axis movement starts from programmed position (Y1) Position shifting ting from clamping Y1 X
Fig. 2-3
1/A2/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
On analog drives, it is possible to periodically traverse the axis using an external setpoint. If IS Follow-up mode has been set for this axis, actual value acquisition of the axis continues so that subsequent referencing is not necessary. The following procedure is recommended: 1. Canel IS Servo enable (DB31, ... DBX2.1) at the interface while setting IS Follow-up mode to 1 beforehand or in the same PLC cycle. Axis/spindle is operating in follow-up mode 2. Apply external servo enable and external speed setpoint Axis/spindle uses external setpoint value NC continues to acquire the actual position value and corrects the setpoint to actual value position 3. Cancel external servo enable and external speed setpoint Axis/spindle stops 4. Set IS Servo enable on interface NC synchronizes to the actual value position. The next traversing movement begins at this position.
Note IS Follow-up mode does not have to be canceled because it only has an effect in combination with IS Servo enable.
When Servo enable has been canceled, no new actual value synchronization of the axis (reference point approach) is necessary if the maximum permissible limit frequency of the axis measuring system has not been exceeded during follow-up mode. The control system automatically detects this error by setting interface signal Referenced/synchronized (DB31, ... DBX60.4 and 60.5) to 0 and activating the alarm 21610 Encoder frequency exceeded for the relevant axis.
Note If an axis follow-up is deactivated within an active transformation (e.g. TRANSMIT), REPOS movements can be initiated on the other axis or axes involved in the transformation.
Monitoring
If an axis/spindle is in follow-up mode (IS Follow-up mode active = 1), the following monitoring types are no longer active:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-23
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
06.01 10.00
Position measuring system 1 (DB31, ... DBX1.5) Position measuring system 2 (DB31, ... DBX1.6)
Up to 2 measuring systems can be connected per axis/spindle. The active measuring system (see Fig. 2-4) is always used for position control, absolute value calculation and position display. By switching interface signals Position measuring system 1/2 and Servo enable (DB31, ... DBX2.1) appropriately, the following can be achieved:
S Activation of position measuring system 1 or 2 S Switchover between position measuring systems 1 and 2 S Parking position; i.e. both measuring systems are inactive and IS Servo
enable is set to 0 signal.
Meaning Position measuring system 1 active Position measuring system 2 active Parking position Spindle without position measuring system (speed-controlled) Switchover from PMS1 to PMS2 Switchover from PMS2 to PMS1
10 01
01 10
1 1
Application
With some axes it is practical to connect a direct position measuring system (directly on the machining table) and an indirect measuring system (at the drive). The direct measuring system is preferred for extremely precise machining, otherwise the indirect measuring system is usually used. The measuring system is selected by the settings made in interface signals Position measuring system 1 and Position measuring system 2.
Note References: /FB/, G2, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
1/A2/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
_ nact
Speed controller
iset
Motor
Encod. 1
Encod. 2
PM1 PM2
1: PM1 2: PM2 3: Parking axis Fig. 2-4 Position measuring system 1 and 2
When the servo enable is activated for the drive, the position control loop of the axis/spindle is closed. The axis/spindle is then subject to position control. When servo enable is removed the position control loop and with a delay the speed control loop of the axis/spindle are opened.
Activation methods
The servo enable for the drive can be set and removed from the following places: 1. From the PLC user program with interface signal Servo enable (in normal cases) Application: Removal of servo enable before clamping an axis/spindle. 2. Servo enable is canceled automatically by the control when certain faults occur in the machine, the drive, the position measuring system or the control (when faults occur) Application: The traversing axes must be brought to a standstill by a rapid stop due to a fault. For details of which faults (alarms) cause internal cancellation of servo enable, please refer to: References: /DA/, Diagnostics Guide 3. By the control if the following events occur:
S EMERGENCY OFF (DB10, DBX56.1) is active at the PLC interface. S The pulse enable for the drive has been canceled (e.g. with IS Pulse
enable (DB31, ... DBX21.7).
S The drive is not ready (IS Drive Ready (DB31, ... DBX93.5) = 0).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-25
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
10.00
The control-internal sequence of operations if the servo enable is canceled depends on whether the axis is moving or stationary at the time. Possible procedures are described below (see Fig. 2-5).
S As soon as the actual speed has reached the zero speed range, the drive
servo enable is removed. Checkback signal to PLC with IS Speed controller active (DB31, ... DBX61.5) = 0 signal. The servo enable for the drive is canceled at the latest after the time set in MD 36620: SERVO_DISABLE_DELAY_TIME has elapsed. Caution: If the cutout delay is set too small, servo enable is removed even though the axis/spindle is still moving. The axis/spindle is then stopped abruptly with setpoint 0.
1/A2/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
Vact
Rapid stop (with open position control loop)
MD 36060: STANDSTILL_VELO_TOL
Vset
T
MD 36610: AX_EMERGENCY_STOP_TIME
1 0 IS Position controller active IS Servo enable
MD 36620: SERVO_DISABLE_DELAY_TIME
T
1 0
1 0
Fig. 2-5
All the axes traversing within the interpolatory axis grouping are stopped as soon as the servo enable signal is canceled for one of the axes. The axes are brought to a standstill as described above. All axes in the geometry grouping are brought to a standstill with rapid stop. Alarm 21612 Servo enable reset during movement is also triggered. Continued processing of the NC program after this event is no longer possible.
The positioning response of the axis/spindle when IS Servo enable (DB31, ... DBX2.1) is determined by the state of IS Follow-up mode active. In IS Follow-up mode active (DB31, ... DBX61.3) = 1 the standstill and terminal monitoring functions are inactive.
After servo enable has been issued, renewed actual value synchronization of the axis (reference point approach) is not necessary if the maximum permissible limit frequency of the axis measuring system has not been exceeded during this time.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-27
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
10.00
The IS Delete distance-to-go (axis-specific) is active in the AUTOMATIC and MDA modes only for those axes that are not assigned to a geometry grouping (positioning axes). The axis is brought to a standstill with ramp stop with the rising edge of the interface signals and its distance-to-go deleted. The next program block is then started. For more information please refer to Subsection 5.4.1.
Spindle reset
References:
The PLC user program stores a binary coded NC for a controller parameter set in bits 0 2. This is activated for the axis by the NC. Up to six parameter sets are available. Each parameter set includes the following machine data:
MD number 36200 32200 32800 32810 32910 31050 31060 $MA_AX_VELO_LIMIT $MA_POSCTRL_GAIN
MD identifier
Parameter set 1 2 3 4 5 6
Examples of controller parameter set switchover can be found in Chapter 6. The NC switches parameters only if switchover is basically activated by axis-specific MD 35590: PARAMSET_CHANGE_ENABLE = 1 or = 2.
1/A2/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
Restriction
Priority
S No restrictions, no priority.
Note For further information on the parameter sets, please refer to: References: /FB1/, S1, Spindles, under Spindle modes, axis mode and Gear stage change
The response to the switchover depends on the modification to the servo gain MD 32200: $MA_POSCTRL_GAIN between old and new parameter set:
Note Should additional measures be required for a specific application, then these must be implemented in the PLC program to suit the application concerned.
The PLC application program can receive a switchover request directly from a parts program in the form of an auxiliary function output to the PLC. Auxiliary function outputs are described in: References: /FB/, H2, Output of Auxiliary Functions
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-29
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
10.00 10.00
The same auxiliary function value for the controller parameter switchover must be set in both the parts program and the user PLC program.
Note When the controller parameter set switchover function is implemented using an auxiliary function output, the parts program is processed on the basis of auxiliary function value interpretation and processing by an associated PLC program.
The NC must not initiate any parameter set switchover when the interface bit is set, irrespective of which parameter set number is stored in interface bits DBX9.0 to DBX9.2.
2.8.2
Note For further information about the interface signals listed below, please refer to Subsection 5.4.2.
If all traversing conditions are met by the relevant axes, the NC sends the following ready to travel signal to the PLC: IS Drive test travel request (DB31, ... DBX61.0) = 1
Follow-up mode active (DB31, ... DBX61.3) Axis/spindle stationary (DB31, ... DBX61.4)
The axis/spindle is operating in follow-up mode. The setpoint position is continuously corrected to the actual value position. The clamping and zero-speed monitoring functions are not active.
The Axis/spindle stationary signal is enabled by the controller if no more new setpoints are output by the NC and the NC detects that the axis is within the defined velocity tolerance. This tolerance is set in MD 36060: STANDSTILL_VELO_TOL (maximum velocity/speed for signal Axis/spindle stationary).
The position control loop for the axis/spindle is closed; the position control function is active.
1/A2/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Various Interface Signals (A2) 2.8 Interface signals from and to axis/spindle (DB31, ... )
Speed control loop active (DB31, ... DBX61.6) Current control loop active (DB31, ... DBX61.7) Controller parameter set checkback signal DB31, ... DBX69.0, 1, 2
The speed control loop for the axis/spindle is closed; the speed control function is active.
The current control loop for the axis/spindle is closed; the current control function is active.
The signal corresponds to the request to switch over the parameter set (DB31, ... DBX9.0, 1, 2). It indicates a binary coded index of the parameter set which has been selected on the machine axis.
Parameter set 1 2 3 4 5 6
Successful switch-over is confirmed when the checkback signal contains the same value as the request signal. The index of the active controller parameter set is always specified.
The signal state is 0 (FALSE) after POWER ON/Reset of the control. The IS Lubrication pulse is inverted by the NCK as soon as the axis/spindle has traveled a greater distance than that set in MD 33050: LUBRICATION_DIST (travel path for lubrication from PLC). Each 0/1 or 1/0 change indicates that the distance has been traversed again.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-31
Various Interface Signals (A2) 2.9 Interface signals for digital drives (DB31, ...)
10.00
2.9
2.9.1
Signals to axis/spindle
The PLC user program requests a rapid stop for the drive. The drive is then stopped without a ramp function (with speed setpoint 0). Servo enable is maintained. Not on 810D
The PLC user program requests torque limit 2 for the axis/spindle. The limit value is set using drive parameters. Not on 810D
The PLC user program requests a speed setpoint smoothing filter for the axis/spindle. The smoothing is activated in the drive module only under certain conditions. Not on 810D
Drive parameter set selection A, B, C (DB31, ... DBX21.0, 1, 2) Motor selection A, B (DB31, ... DBX21.3, 4)
Using bit combination A, B, C, the PLC user program can select up to 8 different drive parameter sets on the SIMODRIVE 611D.
The PLC user program can select between 4 motor types or motor operating modes for an MSD drive module. In SW 6.3 and lower, it is possible to select star connection mode (A = 0, B = 0) and delta connection mode (A = 1, B = 0) for the main spindle drive. Not on 810D As of SW 6.4, it is permissible to combine (A = 0, B = 1) and (A =1, B = 1) on conjunction with the 611D Performance2 controller module. All of the four specified A/B combinations may be used on 611U drives.
1/A2/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.9
Various Interface Signals (A2) Interface signals for digital drives (DB31, ...)
The PLC user programs sends this signal to the drive to indicate successful motor selection. For example, in the case of star/delta switchover on the SIMODRIVE 611D or 611 universal, a message or signal must be provided when the motor contactor has switched. The drive then enables the pulses. Not on 810D
The PLC user program inhibits the integrator of the speed controller for the drive. The speed controller is thus switched from PI to P controller. Not on 810D
The PLC user program enables the pulses for the axis/spindle. However, the pulse enable is only activated for the drive module if all the enable signals are present.
2.9.2
Note For further information about the interface signals listed below, please refer to Subsection 5.4.2.
Setup mode is activated for the drive. Setup mode is selected via the terminals on the infeed/regenerative feedback module.
The drive signals back to the PLC that ramp function generator rapid stop is active. The drive is thus brought to a standstill without the ramp function (with speed setpoint 0). Not on 810D
The drive signals back to the PLC that torque limit 2 is active for the axis/ spindle. The torque limit value is defined using drive parameters. Not on 810D
The PLC user program requests a speed setpoint smoothing filter for the axis/spindle. The smoothing is activated in the drive module only under certain conditions. Not on 810D
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-33
Various Interface Signals (A2) 2.9 Interface signals for digital drives (DB31, ...)
10.00
Active drive parameter set A, B, C (DB31, ... DBX93.0, 1, 2) Active motor A, B (DB31, ... DBX93.3, 4)
The drive module sends this checkback to the PLC to indicate which drive parameter set is currently active. With bit combination A, B, C, eight different drive parameter sets can be selected by the PLC for the SIMODRIVE 611D.
The drive module (MSD) sends this checkback to the PLC to indicate which of the 4 motor types or motor operating modes is active. In SW 6.3 and lower, it is possible to select star connection mode (A = 0, B = 0) and delta connection mode (A = 1, B = 0) for the main spindle drive. In SW 6.4 and higher, it is permissible to combine A = 0, B = 1 and A =1, B = 1 on conjunction with the 611D Performance2 controller module.
Checkback signal indicating that the drive is ready. The conditions required for traversing the axis/spindle are fulfilled.
Speed controller integration disabled (DB31, ... DBX93.6) Impulse is enabled (DB31, ... DBX93.7) Motor temperature warning (DB31, ... DBX94.0) Heat-sink temperature prewarning (DB31, ... DBX94.1) Ramp-up function complete (DB31, ... DBX94.2)
The speed controller integrator is disabled. The speed controller has thus been switched from PI to P controller. Not on 810D
Drive pulse enable for drive module available. The axis/spindle can now be traversed.
The drive module signals to the PLC that the motor temperature has exceeded the warning threshold. If the motor temperature remains at this level the drive will be stopped after a defined time (drive MD) and the pulse enable removed.
The drive modules signals to the PLC that the heat-sink temperature has exceeded the warning threshold. The pulse enable will be removed for the drive module in question after 20 seconds.
This signal confirms that the speed actual value has reached the new setpoint allowing for the tolerance band set in drive MD 1426: SPEED_DES_EQ_ACT_TOL. The acceleration procedure is thus completed. Any subsequent speed fluctuations due to load changes will not affect the interface signal.
This signal indicates that the actual torque |Md| is lower than the threshold torque Mdx set in drive MD 1428: TORQUE_THRESHOLD_X. The threshold torque is entered as a percentage of the current speeddependent torque limitation.
1/A2/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
This signal indicates that the actual speed |nact| is lower than the set minimum speed nmin (drive MD 1418: SPEED_THRESHOLD_MIN).
This signal indicates that the actual speed |nact| is lower than the set threshold speed nx (drive MD 1417: SPEED_THRESHOLD_X).
The PLC receives this signal confirming that the actual speed nact has reached the new setpoint allowing for the tolerance band set in drive MD 1426: SPEED_DES_EQ_ACT_TOL and continues to remain within the tolerance band.
The variable signal function allows the SIMODRIVE 611D to monitor any quantity in any axis for violation of a programmable threshold and to send an appropriate checkback interface signal to the PLC. The quantity to be monitored is set by means of 611D machine data. Not on 810D
The drive signals to the PLC that the DC link voltage VDClink has dropped below the lower DC link voltage threshold (drive MD 1604: LINK_VOLTAGE_WARN_LIMIT).
Contrast
MMC MD 9000: LCD_CONTRAST can be set to adjust the contrast (brightness) after system power-up for slimline operator panels with a monochrome LCD display. The contrast can be varied in 16 steps (0 to 15).
Monitor type
The monitor type must be specified with MMC MD 9001: DISPLAY_TYPE to ensure optimum color adaptation.
Foreground language
On the SINUMERIK 840D/810D and FMNC systems, two languages are available simultaneously and can be set alternately in online mode by means of soft key selection. MMC MD 9003: FIRST_LANGUAGE defines which language is selected after each system start-up.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-35
10.00
Display resolution
MMC MD 9004: DISPLAY_RESOLUTION and MD 9010: SPIND_DISPLAY_RESOLUTION (for spindles) are set to define the number of places after the decimal point (number of digits after the decimal point between 0 and 5) for the position display. Three decimal places are displayed per default display resolution = 103 [mm] or [degrees].
REFRESH suppression
In some parts programs, the main run has to wait until the preprocessor prepares new blocks. In the NC, the preprocessor and display refresh compete for computer time. With MD 10131: SUPPRESS_SCREEN_REFRESH, the user can modify the type of refresh suppression in favor of the preprocessor: Value 0: Refreshing of values is suppressed in all channels Value 1: Refreshing of values is suppressed in all time-critical channels. Value 2: Refreshing of values is never suppressed.
1/A2/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
2.11
2.11.1
General functions
Settings for involute interpolation (SW 6 and higher)
Introduction
The involute of a circle is a curve that is traced by the end point of a taut thread unwound from another circle. Involute interpolation allows path curves to be traced along an involute.
(X , Y )
Starting point X
R f
f0
Base circle
End point
Fig. 2-6
Programming
A general description of how to program involute interpolation can be found in: References: /PG/, Programming Guide, Fundamentals, Section 4.7
In addition to the programmed parameters, machine data are relevant in two instances of involute interpolation; these data may need to be set by the machine manufacturer/end user.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-37
06.01 10.00
Accuracy
If the programmed end point does not lie exactly on the involute defined by the starting point, interpolation takes place between the two involutes defined by the starting and end points (see illustration below). The maximum deviation of the end point is specified by the setting in MD 21015: INVOLUTE_RADIUS_DELTA. If the deviation of the programmed end point in the radial direction is greater than the value set in this MD, alarm 14038 is generated and program execution aborted.
Starting point
Base circle
End point
Max. deviation
Fig. 2-7
Limit angle
If AR is used to program an involute leading to the base circle with an angle of rotation that is greater than the maximum possible value, an alarm is output and program execution aborted.
1/A2/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
AR max.
AR
Starting point
Fig. 2-8
Output of alarm 14034 can be suppressed by setting MD 21016: INVOLUTE_AUTO_ANGLE_LIMIT = TRUE (default setting is FALSE). The programmed angle of rotation is then also limited automatically and the interpolated path ends at the point at which the involute meets the base circle. This, for example, makes it easier to program an involute which starts at a point outside the base circle and ends directly on it.
2 1/2 D tool radius compensation is the only tool radius compensation function permitted for involutes. If the 3D compensation function is active (both circumferential and face milling) and an involute is programmed, the machining operation is aborted with alarm 10782. With 2 1/2 D tool radius compensation, the plane of the involute must lie in the compensation plane or else alarm 10781 will be generated. It is however permissible to program an additional helical component for an involute in the compensation plane.
Dynamic performance
Involutes that begin or end on the base circle have an infinite curvature at this point. To ensure that the velocity is adequately limited at this point when tool compensation is active, without reducing it too far at other points, the Velocity limitation profiles function must be activated, i.e. machine data MD 28530: MM_PATH_VELO_SEGMENTS must be set to a value higher than 1. A setting of 5 is recommended. This setting need not be made if only involute sections are used which have radii of curvature that change over a relatively small area.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-39
10.00
2.11.2
Using NC commands DEF... / REDEF... you can assign default settings to global user data (GUD). These default settings must be permanently stored in the system if they are to be available after certain system states (e.g. RESET). The memory space needed is part of the memory area parameterized via MD 18150: MM_GUD_VALUES_MEM. The setting for activating the stored default values is made in MD 11270: DEFAULT_VALUES_MEM_MASK. References: 2/FB/S7 Memory configuration /PGA/, Chapter 3 Programming Guide, Advanced
1/A2/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Various Interface Signals (A2) 2.12 Reading and writing PLC variables (SW 4 and higher)
2.12
For highspeed exchange of information between the PLC and NC, a memory area is reserved in the interface memory of these modules (dualport RAM). Variables of any type (I/O, DB, DW, flags) may be exchanged within this memory area. The PLC accesses this memory using Function Calls (FC) while the NCK uses $ variables.
The users programming engineer (NCK and PLC) is responsible for organizing (structuring) this memory area. Every storage position in the memory can be addressed provided that the limit is selected according to the appropriate data format (i.e. a DWORD for a 4-byte limit, a WORD for a 2-byte limit, etc.). The memory is accessed via the data type and the position offset within the memory area.
Access from NC
To allow the NC to access PLC variables (from a parts program) quickly, $ variables are provided in the NCK. The PLC uses a function call (FC) to read and write $ variables. Data are transferred to and from the NCK immediately. $ variables can be accessed (by the NCK) during preprocessing and in synchronized actions. Data type information is determined by the $ variable data type, the position index is specified as an array index (in bytes). The following $ variables are available: $A_DBB // Data byte (8 bits) $A_DBW // Data word (16 bits) $A_DBD // Data double word (32 bits) $A_DBR // Real data (32 bits)
Ranges of values
$A_DBB(n) 0 <= x <= 255 $A_DBW(n) 32768 <= x <= 3276 $A_DBD(n) 2147483648 <= x <= 2147483647
The PLC uses Function Calls (FC) to access the memory. These FCs ensure that data are read and written in the DPR immediately, i.e. not just at the beginning of the PLC cycle. FCs receive data type information and the position offset as parameters.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-41
Various Interface Signals (A2) 2.12 Reading and writing PLC variables (SW 4 and higher)
10.00 10.00
NC
PLC
CALL FC
1024
Fig. 2-9
Supplementary conditions
1. The users programming engineer (NCK and PLC) is responsible for organizing the DPR memory area. No checks are made for inconsistencies in the configuration. 2. A total of 1024 bytes are available in the input and output directions. 3. Single-bit operations are not supported and must be linked back to byte operations by the user (programming engineer). 4. Since the contents of variables are manipulated directly in the communications buffer, the user must remember that intermediate changes in values occur as a result of multiple access operations where a variable is evaluated several times or when variables are linked (i.e. it may be necessary to store values temporarily in local variables or R parameters or to set up a semaphore). 5. The users programming engineer is responsible for coordinating access operations to the communications buffer from different channels. 6. Data consistency can be guaranteed only for access operations up to 16 bits (byte and word). The users programming engineer is responsible for ensuring consistent transmission of 32-bit variables (double and real). A simple semaphore mechanism is provided in the PLC for this purpose. 7. The PLC stores data in Little Endian format in the DPR. 8. Values transferred with $A_DBR are subject to a data conversion and hence to a loss of accuracy. The data format for floating-point numbers is DOUBLE (64 bits) on the NCK, but only FLOAT (32 bits) on the PLC. The format used for storage in the dual-port RAM is FLOAT. Conversion takes place respectively before/after storage in the dual-port RAM. If a read/write access is made from the NCK to a variable in the dualport RAM, the conversion is performed twice. It is impossible to prevent differences between read and written values because the data are stored in both formats.
1/A2/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Various Interface Signals (A2) 2.12 Reading and writing PLC variables (SW 4 and higher)
Possible remedy for the problem (example): Compare with EPSILON (small deviation) N10 DEF REAL DBR N12 DEF REAL EPSILON = 0.00001 N20 $A_DBR[0]=145.145 N30 G4 F2 N40 STOPRE N50 DBR=$A_DBR[0] N60 IF (ABS(DBR/145.1451.0) < EPSILON) GOTOF ENDE N70 MSG (Error) N80 M0 N90 ENDE: N99 M30
Activation
The maximum number of output variables that can be written simultaneously (also applicable to block search) is set via memory-configuring machine data MD 28150 MM_NUM_VDIVAR_ELEMENTS. The default for this machine data is 0.
Example
A WORD is to be transferred from the PLC to the NC. The position offset within the NCK input (PLC output area) must be the 4th byte. The position offset must be an integer multiple of the data width.
The DPR communications buffer is initialized during POWER ON. During a block search, the PLC variable outputs are collected and transferred to the DPR communications buffer with the approach block (analogous to writing of analog and digital outputs). Other status transitions have no effect in this respect.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/2-43
Various Interface Signals (A2) 2.12 Reading and writing PLC variables (SW 4 and higher)
10.00
Notes
1/A2/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Supplementary Conditions
Supplementary conditions 840Di with drive 611U Overview of inapplicable interface signals
Various interface signals (signals from/to axis/spindle) are not available when using the 840Di control system with drive 611U. The validity of the interface signals is indicated explicitly for each signal.
For SINUMERIK 840Di, various interface signals from/to axis/spindle do not apply. All interface signals that do not apply are listed in the table below.
Note SINUMERIK 840Di in conjunction with SIMODRIVE 611 universal does not have the functionality Safety Integrated. All Safety Integrated interface signals thus do not apply.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/3-45
10.00
Name Safe velocity active, bit value 0 to bit value 1 n < nx Safe operational stop active (SBH active) Stop A/B to Stop E active
Refer to Doc.
1/A2/3-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
4.1
9000 LCD_CONTRAST MD number Contrast Default setting: 7 Minimum input limit: 0 Maximum input limit: 15 Changes effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1.1 Significance: The contrast of the slimline operator panel with monochrome (monitor type 0) LCD which is to take effect after system start-up can be set in this MD. 16 contrast (brightness) settings are available. Setting 15 : 7 : 0 Effect Display brighter Default setting Display darker
The contrast can also be altered with the soft key LCD dark/bright in the Diagnosis area. However, after POWER ON the value set in MD: LCD_CONTRAST is active. Slimline operator panel with color LCD (MD 9001: DISPLAY_TYPE = <> 0) MD 9001: DISPLAY_TYPE (monitor type) /BA/, Operators Guide
9001 DISPLAY_TYPE MD number Monitor type Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-47
Various Interface Signals (A2) 4.1 Machine data for operator panel
10.00
DISPLAY_TYPE Monitor type For optimum color adaptation the monitor type must be specified The following assignment applies: Monitor Slimline op. panel OP031 LCD display monochr. Slimline operator panel OP031 LCD display color OP032 color monitor Type 0 1 2
Related to ....
1/A2/4-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
9002 DISPLAY_MODE (MMC 100 only) MD number External monitor Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1 Significance: The external monitor type connected to the MMC must be specified to allow optimum color adjustment. The following assignment applies: Monitor Type No monitor connected Monochrome monitor Color monitor Related to .... 0 1 2
9003 FIRST_LANGUAGE (MMC 100 only) MD number Foreground language Default setting: 1 Minimum input limit: 1 Maximum input limit: 2 Changes effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1.1 Significance: With SINUMERIK 840D/840Di/810D and FMNC 2 languages are available simultaneously. The language which is to be automatically active after each system start-up is set in the machine data. It is possible to temporarily switch to a second language using a soft key in the Diagnosis area. After POWER ON, however, the language set in MD 9003: FIRST_LANGUAGE is again active. /BA/, Operators Guide, IM3 Installation and Start-up MMC 103
References
9004 DISPLAY_RESOLUTION MD number Display resolution Default setting: 3 Minimum input limit: 0 Maximum input limit: 5 Changes effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1.1 Significance: The number of places after the decimal point for the position display is defined in this MD. The position display consists of max. 12 characters including sign and decimal point. The number of digits after the decimal point can be set to between 0 and 5. Three decimal places are displayed per default Display resolution = 103 [mm] or [degrees]. Note: (SW 6.1 and higher) This functionality is available with HMI Embedded and HMI Advanced. Related to .... The display resolution must be set to correspond meaningfully with the computational resolution (MD 10200: INT_INCR_PER_MM or MD: INT_INCR_PER_DEG).
9005 PRG_DEFAULT_DIR (for MMC100) MD number Basic setting for Program directory Default setting: 1 Minimum input limit: 1 Maximum input limit: 5 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1.1 Significance: This machine data defines the basic setting for the Program directory. Note: The Program directory basic setting can be selected with HMI Embedded only. Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-49
Various Interface Signals (A2) 4.1 Machine data for operator panel
10.00
9006 DISPLAY_BLACK_TIME (for MMC100) MD number Time setting for screen saver Default setting: 0 Minimum input limit: 0 Maximum input limit: 60 Changes effective after POWER ON Protection level: 3/4 Unit: minutes Data type: BYTE Applies from SW 2.1 Significance: If no key is pressed on the keyboard for the duration defined in this machine data, the screen saver is automatically started. The screen saver is automatically deactivated if the value zero is set. Note: The automatic screen saver function is available only with HMI Embedded and is active only if IS Screen dark = 0. Related to .... IS Screen dark (DB19, ... DBX0.1)
9007 TABULATOR_SIZE (for MMC100) MD number Tabulator length Default setting: 4 Minimum input limit: 0 Maximum input limit: 30 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 2 Significance: This machine data defines the tabulator length. Note: The tabulator length can only be changed with HMI Embedded. Special cases, errors, .... Related to ....
9008 KEYBOARD_TYPE (for MMC100) MD number Keyboard type Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 3/4 Unit: minutes Data type: BYTE Applies from SW 3.6 Significance: This machine data defines the keyboard type. Basic configuration for keyboard type 0: OP 1: MFII/QWERTY Note: (SW 6.1 and higher) This keyboard type can be set with HMI Embedded and HMI Advanced. Special cases, errors, ... Related to ....
9009 KEYBOARD_STATE (for MMC100) MD number Shift behavior of keyboard during booting Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 3.6 Significance: This machine data defines the shift behavior of the keyboard. Basic configuration for shift behavior of keyboard 0: Single, 1: Perm., 2: CAPSLOCK Note: (SW 6.1 and higher) The basic configuration for the shift behavior of the keyboard can be changed with HMI Embedded and HMI Advanced. Special cases, errors, ... Related to ....
1/A2/4-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
9010 SPIND_DISPLAY_RESOLUTION MD number Display resolution for spindle values Default setting: 3 Minimum input limit: 0 Maximum input limit: 5 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 4 Significance: The number of places after the decimal point for the position display is defined in the machine data display resolution for spindle values. The position display consists of max. 12 characters including sign and decimal point. The number of digits after the decimal point can be set to between 0 and 5. Three decimal places are displayed per default Display resolution = 103 [mm] or [degrees]. Note: (SW 6.1 and higher) This functionality is available only with HMI Advanced. Related to .... The display resolution must be set to correspond meaningfully with the computational resolution (MD 10200: INT_INCR_PER_MM or MD 10210: INT_INCR_PER_DEG).
9011 DISPLAY_RESOLUTION_INCH MD number Display resolution for INCH system of measurement Default setting: 3 Minimum input limit: 0 Maximum input limit: 5 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1 Significance: The number of places after the decimal point for the position display is defined in the machine data display resolution for the INCH system of measurement. The position display consists of max. 12 characters including sign and decimal point. The number of digits after the decimal point can be set to between 0 and 6. Four decimal places are displayed per default Display resolution = 104 [inch] . 3 decimal places are shown for rotary axes. Related to .... The display resolution must be set to correspond meaningfully with the computational resolution (MD 10200: INT_INCR_PER_MM or MD 10210: INT_INCR_PER_DEG).
9012 ACTION_LOG_MODE MD number Set action mode for action log Default setting: 255 Minimum input limit: 0 Maximum input limit: 0xFFFF Changes effective after POWER ON Protection level: 2/2 Unit: Data type: DWORD Applies from SW 5.2 Significance: This machine data can be parameterized to activate/deactivate the action log and to select the data to be logged. Note: (SW 6.1 and higher) This functionality can be set with HMI Embedded and HMI Advanced. References /IAM/, Operators Guide, IM3 Installation and Start-up MMC 103
9020 TECHNOLOGY MD number Setting the computer mode (turning, milling) Default setting: 1 Minimum input limit: 0 Maximum input limit: 2 Change effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 4.3 (MMC 100.2) 5.1 (MMC 103) Significance: Basic configuration for simulation and free contour programming: 0: No specific assignment 1: Turning machine configuration 2: Milling machine configuration Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-51
Various Interface Signals (A2) 4.1 Machine data for operator panel
9030 EXPONENT_LIMIT (HMI Embedded only) MD number Number of places to be displayed without exponent Default setting: 6 Minimum input limit: 0 Maximum input limit: 20 Changes effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1 Significance: This machine data defines the number of places to be displayed without an exponent.
9031 EXPONENT_SCIENCE (HMI Embedded only) MD number Technical exponent representation in three steps Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1 Significance: This machine data defines the representation of exponents in three steps.
91809181 USER_CLASS_ .... MD number Protection level for access to tool carrier offsets... Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 6.1 9180 MD number 9181 MD number USER_CLASS_READ_TCARR (HMI Embedded only) ... read general USER_CLASS_WRITE_TCARR (HMI Embedded only) ... write general
92009208 USER_CLASS_ .... MD number Protection levels for access to ... Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1.1 9200 MD number 9201 MD number 9202 MD number 9203 MD number 9204 MD number 9205 MD number 9206 MD number USER_CLASS_READ_TOA ... read all tool offsets general USER_CLASS_WRITE_TOA_GEO ... write tool geometry data USER_CLASS_WRITE_TOA_WEAR ... write tool wear data USER_CLASS_WRITE_FINE ... protection level write fine in MD 9450: MM_WRITE_TOA_FINE_LIMIT and write fine in MD 9451: MM_WRITE_ZOA_FINE_LIMIT USER_CLASS_WRITE_TOA_SC (HMI Advanced only) ... change protection level total tool offsets (SW 5 and higher). USER_CLASS_WRITE_TOA_EC (HMI Advanced only) ... change protection level tool setup offsets (SW 5 and higher). USER_CLASS_WRITE_TOA_SUPVIS (HMI Advanced only) ... change protection level tool monitoring limit values (SW 5 and higher). Authorization applies to all the limit values: Workpiece count, service life, wear and mode of monitoring. USER_CLASS_WRITE_TOA_ASSDNO (HMI Advanced only) ... change D No. assigned to a tool edge (SW 5 and higher). USER_CLASS_WRITE_MAG_WGROUP (HMI Advanced only) ... change wear group magazine location/mag. Minimum input limit: 0 Maximum input limit: 5
1/A2/4-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
92099224 USER_CLASS_ .... MD number Protection levels for access to ... Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1.1 9209 MD number 9210 MD number 9211 MD number 9212 MD number 9213 MD number 9214 MD number 9215 MD number 9216 MD number 9217 MD number 9218 MD number 9219 MD number 9220 MD number 9221 MD number 9222 MD number 9223 MD number 9224 MD number USER_CLASS_WRITE_TOA_ADAPT ... Write tool adapter geometry data (SW 5 and higher). USER_CLASS_WRITE_ZOA ... Write settable zero offsets USER_CLASS_READ_GUD_LUD (for HMI Embedded and HMI Advanced) ... read user variables (SW 6.1 and higher). USER_CLASS_WRITE_GUD_LUD (for HMI Embedded and HMI Advanced) ... write user variables (SW 6.1 and higher). USER_CLASS_OVERSTORE_HIGH ... Extended overstore USER_CLASS_WRITE_PRG_CONDIT ... Enable program USER_CLASS_WRITE_SEA ... Write setting data USER_CLASS_READ_PROGRAM (MMC 100 only) ... Read parts program USER_CLASS_WRITE_PROGRAM (MMC 100 only) ... write parts program USER_CLASS_SELECT_PROGRAM ... select parts program USER_CLASS_TEACH_IN ... Teach In USER_CLASS_PRESET ... Preset USER_CLASS_CLEAR_RPA ... Delete all R parameters USER_CLASS_WRITE_RP A ... Write R parameters USER_CLASS_SET_V24 (MMC 100 only) ... User parameters via V24 (RS232) USER_CLASS_READ_IN (MMC 100) only ... Read in data
9225 USER_CLASS_READ_CST (MMC 100 only) MD number Protection level for access to standard cycles Default setting: 0 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 2
9226 USER_CLASS_READ_CUS (MMC 100 only) MD number Protection level for access to user cycles Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-53
Various Interface Signals (A2) 4.1 Machine data for operator panel
10.00 10.00
9227 USER_CLASS_SHOW_SBL2 MD number Hide protection level for access to single block 2 (SBL2) Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 3.5 (MMC 100) Significance: The SBL2 function is made available on the operator interface only if the currently active protection level provides equal or higher access authorization than set in this MD. Special cases, errors, .... If SBL2 is selected and the access protection is then set to a level that does not display SBL2, SBL2 remains selected. It is then possible to switch over to SBL1, causing SBL2 to be deselected automatically. /BA/ Operators Guide 840D/810D/840Di
References
92289230 USER_CLASS_ .... MD number Access level for... Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective after SW UPD Protection level: 3/4 Unit: Data type: BYTE Applies from SW 4.2 9228 MD number 9229 MD number 9230 MD number USER_CLASS_READ_SYF ... Select directory SYF USER_CLASS_READ_DEF ... Select directory DEF USER_CLASS_READ_BD ... Select directory BD
Note
MD 9231 to MD 9241
9231 USER_CLASS_WRITE_RP A_1 (for HMI Advanced) MD number Write protection for first RPA area Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
9232 USER_BEGIN_WRITE_RPA_1 (for HMI Advanced) MD number Start of the first RPA area Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
9233 USER_END_WRITE_RPA_1 (for HMI Advanced) MD number End of the first RPA area Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
1/A2/4-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
9234 USER_CLASS_WRITE_RP A_2 (for HMI Advanced) MD number Write protection for second RPA area Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
9235 USER_BEGIN_WRITE_RPA_2 (for HMI Advanced) MD number Start of the second RPA area Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
9236 USER_END_WRITE_RPA_2 (for HMI Advanced) MD number End of the second RPA area Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
9237 USER_CLASS_WRITE_RP A_3 (for HMI Advanced) MD number Write protection for third RPA area Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
9238 USER_BEGIN_WRITE_RPA_3 (for HMI Advanced) MD number Start of the third RPA area Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
9239 USER_END_WRITE_RPA_3 (for HMI Advanced) MD number End of the third RPA area Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1
92409241 USER_CLASS_ .... MD number Change... Default setting: 0 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5 9240 MD number 9241 MD number USER_CLASS_WRITE_TOA_NAME (for HMI Advanced) ... tool designation and Duplo. USER_CLASS_WRITE_TOA_TYPE (for HMI Advanced) ... tool type.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-55
Various Interface Signals (A2) 4.1 Machine data for operator panel
Note
9460 PROGRAMM_SETTINGS (MMC 100 only) MD number Reset-proof data storage for settings in the PROGRAM operating area Default setting: 5 Minimum input limit: 0 Maximum input limit: FFFF Changes effective immediately Protection level: 3/4 Unit: Hex Data type: LONG Applies from SW 5.1 (bits 2 and 3 from SW 5.3) Significance: Data storage for settings in the PROGRAM area. The settings are retained after a RESET. Bit 0: Turning technology, used internally only Bit 1: Turning technology, used internally only Bit 2 = 1 Automatic enabling for programs Bit 2 = 0 No automatic enabling for programs, default for SW 5.1 Bit 3 = 1 The soft keys for the elements in the contour calculator (contour programming) are displayed as symbols, SW 5.3 and higher Bit 3 = 0 The soft keys for the elements in the contour calculator (contour programming) are labeled with texts, default in SW 5.3 and higher Bit 4 = 1 The LF symbol is hidden in the editor, SW 6.1 and higher Bit 4 = 0 The LF symbol is not hidden in the editor, SW 6.1 and higher Related to ....
9461 CONTOUR_END_TEXT (MMC 100 only) MD number String to be added at the end of the contour on completion of an input Default setting: None Minimum input limit: 0 characters Maximum input limit: 80 characters Changes effective immediately Protection level: 3/4 Unit: Data type: STRING Applies from SW 5.1 Significance: This string is appended to the end of the contour after completion of a contour input. Application example(s) M30
9500 NC_PROPERTIES (MMC 100 only) MD number NC properties Default setting: 1111 1111 Minimum input limit: 0000 0000 Maximum input limit: 1111 1111 Changes effective immediately Protection level: 3/4 Unit: Bit field Data type: BYTE Applies from SW 2 Significance: Basic configuration of NC properties: Bit 0 = 1 Digital drives Bit 1 = 1 Software start-up switch Bit 2...4: Reserved Related to ....
95109513 USER_CLASS_ .... MD number Protection levels for PROGRAM operating area for access to ... Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 6.1 9510 MD number 9511 MD number 9512 MD number 9513 MD number USER_CLASS_DIRECTORY1_P (for HMI Advanced only) ... Network drive 1 (SW 6.1 and higher). USER_CLASS_DIRECTORY2_P (for HMI Advanced only) ... Network drive 2 (SW 6.1 and higher). USER_CLASS_DIRECTORY3_P (for HMI Advanced only) ... Network drive 3 (SW 6.1 and higher). USER_CLASS_DIRECTORY4_P (for HMI Advanced only) ... Network drive 4 (SW 6.1 and higher).
1/A2/4-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
95169519 USER_CLASS_ .... MD number Protection levels for MACHINE operating area for access to ... Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 6.1 9516 MD number 9517 MD number 9518 MD number 9519 MD number USER_CLASS_DIRECTORY1_M (for HMI Advanced only) ... Network drive 1 (SW 6.1 and higher). USER_CLASS_DIRECTORY2_M (for HMI Advanced only) ... Network drive 2 (SW 6.1 and higher). USER_CLASS_DIRECTORY3_M (for HMI Advanced only) ... Network drive 3 (SW 6.1 and higher). USER_CLASS_DIRECTORY4_M (for HMI Advanced only) ... Network drive 4 (SW 6.1 and higher).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-57
10.00 10.00
4.2
10131 SUPPRESS_SCREEN_REFRESH MD number Behavior of display refresh on overload Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 5 Significance: In some parts programs, the main run has to wait until the preprocessor prepares new blocks. In this case, the preprocessor and display refresh compete for computer time. The MD defines how the NC should react if the preprocessor is too slow. 0: Refreshing of the display is suppressed in all channels 1: Refreshing of the display is suppressed in timecritical channels 2: Refreshing of the display is basically never suppressed.
10361 FASTIO_DIG_SHORT_CIRCUIT MD number Short-circuits of digital inputs and outputs Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.2 Significance: Defines short circuits between digital output and input signals of highspeed NCK I/Os. The short circuits are implemented internally in the NCK through logic operations between defined output signals and signal states read in from highspeed NCK I/Os or from the PLC (via VDI interface). If several output bits are specified for an input bit in overwrite mode, the last assignment defined in the list determines the result. When non-existent or inactive inputs/outputs (MD 10350: FASTIO_DIG_NUM_INPUTS, MD 10360: FASTIO_DIG_NUM_OUTPUTS) are defined, they are ignored without generation of an alarm. Bits 0 ...7 (LSBs): Number of input byte (1 ...5) to be written Bits 8 ...15: Bit number within input byte (1 ...8) When A0 (hexadecimal) is added to the input bit number, the external input status is not overwritten, but ANDed with the specified output. When B0 (hexadecimal) is added to the input bit number, the external iinput status is not overwritten, but ORed with the specified output. Application example(s) FASTIO_DIG_SHORT_CIRCUIT[0] = H04010302 Input: 3rd bit of 2nd byte Output: 4th bit of 1st byte (= 4th onboard NCU output) The input status is overwritten by the specified output. FASTIO_DIG_SHORT_CIRCUIT[1] = H0705A201 Input: 2nd bit of 1st byte (= 2nd onboard NCU input) Output: 7th bit of 5th byte The input status is ANDed with the specified output. FASTIO_DIG_SHORT_CIRCUIT[2] = H0103B502 Input: 5th bit of 2nd byte Output: 1st bit of 3rd byte The input status is ORed with the specified output.
10706 SLASH_MASK MD number Activation of block skip Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Change effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 5
1/A2/4-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
SLASH_MASK Activation of block skip When SLASH_MASK = 1 it is also possible to activate block skipping during program execution. Caution: After activation of block skipping the axes are stopped for the duration of reorganization process.
11120 MN_LUD_EXTENDED_SCOPE MD number Activate program-global variables Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOL Applies from SW 4.4 Significance: MD=0: The user data of the main program level are only active at this level MD=1: The user data of the main program level are also visible in the subprogram level (program-global variable PUD) Application example(s) See /PGA/
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-59
10.00 10.00
11230 MD_FILE_STYLE MD number Structure of MD files for data backup Default setting: 3 Minimum input limit: Maximum input limit: Changes effective immediately Protection level: 3/7 Unit: Data type: BYTE Applies from SW 3 Significance: Appearance of a machine data file for upload Bit 0 (LSB): Line checksum is generated Bit 1: MD numbers are generated Bit 2: Channel axis names as array index for axisMD in TEA file Bit 3: With NCU link the MDs of the LINK axes are also output. Bit 4: All local axes are output. Special cases, errors, .... Related to ....
11270 DEFAULT_VALUES_MEM_MASK MD number Activation of function Memory for initialization values of NC data elements Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Bit 0 = 1 GUD default settings Bit 1 = 0 The default settings specified when GUD are defined are not stored Bit 1 = 1 The default settings specified when GUD are defined are permanently stored. The memory reserved via MD 18150: MM_GUD_VALUES_MEM is used to store them. Stored defaults can then be restored again as configured with REDEF. Related to .... MD 18150: MM_GUD_VALUES_MEM References PGA Chapter 3
4.3
28150 MM_NUM_VDIVAR_ELEMENTS MD number Number of write elements for PLC variables Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.2 Significance: This MD defines the number of elements available to the user for writing PLC variables ($A_DBx= ...). This number also applies to block searches, but not to synchronized actions. Each element requires approximately 24 bytes of memory. One element is required to perform each write operation for highspeed sequential writing of PLC variables. However, if the variables are accessed for writing at separate times (block has already been transported), the number of elements can be reduced. The number of read access operations (var=$A_DBx) is not limited. Application example(s)
1/A2/4-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
4.4
33050 LUBRICATION_DIST MD number Traversing distance for lubrication from PLC Default setting: 100 000 000 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: After the distance defined in the MD has been covered, the state of the axial interface signal Lubrication pulse is inverted with which an automatic lubrication device can be activated. The travel path is summated after POWER ON. The Lubrication pulse can be used with axes and spindles. Application example(s) The machine bed can be lubricated as a function of the distance traversed in each case. Special cases, errors, ... Note: Entering 0 sets the IS Lubrication pulse (DB31, ... DBX76.0) for each cycle. Related to .... IS Lubrication pulse (DB31, ... DBX76.0)
35590 PARAMSET_CHANGE_ENABLE MD number Parameter set can be changed Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 4.1 Significance: 0: Parameter set changes cannot be controlled. The first parameter set or the internal parameter set selection is always active. 1: The parameter set applied in the servo is specified via the VDI interface. VDI interface defined. The parameter sets 1 to 6 can be selected. Sets are selected by DB31 ff, DBB9, bits 0..2 in the binary-coded value range 0 ... 5. Values 6 and 7 select parameter set no. 6. Internal parameter set selection takes priority over a selection made by the PLC. 2: Same as 1:, however the internal parameter set selection is deactivated. The parameter set contains the following axial machine data: $MA_AX_VELO_LIMIT $MA_POSCTRL_GAIN $MA_EQUIV_CURRCTRL_TIME $MA_EQUIV_SPEEDCTRL_TIME $MA_DYN_MATCH_TIME $MA_DRIVE_AX_RA TIO_DENOM $MA_DRIVE_AX_RA TIO_NUMERA see Chapter 6 Interface signals DB31, ..., DBX9.0, 1, 2 and DBX69.0, 1, 2 /FB/, H2, Output of Auxiliary Functions to PLC.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-61
10.00 10.00
STANDSTILL_VELO_TOL Maximum velocity/speed Axis/spindle stationary Minimum input limit: 0 NEW_CONF Protection level: 2/7
Maximum input limit: plus Unit: Linear axis: mm/min Rotary axis: rpm Applies from SW 1.1 The zero speed range for the axis velocity and spindle speed is set in this machine data. If the current actual velocity of the axis or the actual speed of the spindle is less than the value I entered, the IS Axis/spindle stationary (DB 31 ...., DBX61.4) is set. Vact
Vzero MD:STANDSTILL_VELO_TOL IS 1 Axis/ spindle station 0 Application example(s) Special cases, errors, ... The pulse enable should not be removed until the axis/spindle is stationary to ensure that the axis/spindle is stopped in a controlled manner. Otherwise the axis will coast to rest. Note: When the SAFETY function is used with active actualvalue coupling, a travel command for the following axis may be generated by the ELG grouping when the axis/spindle is test stopped. This command activates alarm 21612: VDI signal Servo enable reset during motion. Activation of this alarm can be prevented by setting a value higher than 5 mm in MD 36060: STANDSTILL_VELO_TOL. IS Axis/spindle stationary (DB31, ... DBX61.4) t
Related to ....
1/A2/4-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
36620 MD number Default setting: 0.1 Changes effective after Data type: DOUBLE Significance:
SERVO_DISABLE_DELAY_TIME Cutout delay servo enable Minimum input limit: 0 Maximum input limit: plus NEW_CONF Protection level: 2/7 Unit: s Applies from SW 1.1 Maximum delay time for removal of Servo enable after a fault. If the axis/spindle is still moving the speed enable (servo enable) of the drive is removed by the control at the latest after the delay time set. The entered delay time is activated in the following events: S With faults which cause the axes to stop immediately. If IS Servo enable is removed by the PLC As soon as the actual speed has reached the zero speed range (MD 36060: STANDSTILL_VELO_ TOL) Servo enable is removed for the drive. The time set must be long enough to allow the axis/spindle to be brought to zero speed from maximum traversing velocity/speed. If the axis/spindle is stationary Servo enable is removed for the drive immediately. See also Figure . Machine data only takes effect in speed mode. This is not achieved with stepper motor without external encoder, because the internal position control mode is never left. The drive speed control should be maintained long enough for the axis/spindle to come to a standstill from maximum traversing speed. Removal of Servo enable for a moving axis/ spindle must be delayed until this has happened. Caution: If the setting for the servo enable cutout delay is too small the servo enable will be removed even though the axis/spindle is still moving. The axis/spindle is then stopped abruptly with setpoint 0. Therefore, the SERVO_DISABLE_DELAY_TIME should be greater than the braking ramp time in error situations (MD: AX_EMERGENCY_STOP_TIME). IS Servo enable (DB31, ... DBX2.1) MD: AX_EMERGENCY_STOP_TIME (Time for braking ramp when an error occurs) MD 1404: PULSE_SUPPRESSION_DELAY
Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-63
Various Interface Signals (A2) 4.5 Machine data for involute (SW 6 and later)
06.01 10.00
4.5
21015 INVOLUTE_RADIUS_DELTA MD number End point monitoring for involute Default setting: 0.01 Minimum input limit: 0 Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: mm Data type: DOUBLE Applies from SW 6.3 Significance: Permissible absolute difference in radius with involute interpolation [mm]. With involute interpolation the radius of the base circle determined by the end point can differ from the programmed radius. This data limits the maximum permissible difference between the start and end radii. References /PG/, Programming Guide: Fundamentals
21016 INVOLUTE_AUTO_ANGLE_LIMIT MD number Automatic angle limitation for involute interpolation Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BOOLEAN Applies from SW 6.3 Significance: If the angle of rotation is programmed (AR=angle) for an involute, the maximum angle of rotation is limited if the involute is moving in the direction of the base circle (AR < 0). The maximum angle of rotation is reached when the involute meets the base circle. If an angle larger than the maximum angle is programmed, an alarm is normally output and the NC program aborted. If this MD is set to 1, then any angle is accepted for programming without alarm; if necessary, this may be limited automatically. This, for example, makes it easier to program an involute which starts at a point outside the base circle and ends directly on it. References /PG/, Programming Guide: Fundamentals
1/A2/4-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
4.6
Name Meaning Data type Value range Access
Name Meaning Data type Value range Indices Data on PLC (data type BYTE) INT 0 255 Meaning
$A_DBB[n]
Access
yes
Name Meaning Data type Value range Indices Data on PLC (data type WORD) INT 0 65535 Meaning
$A_DBW[n]
Access
yes
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/4-65
Various Interface Signals (A2) 4.6 System variables (SW 4 and later)
10.00 10.00
Name Meaning Data type Value range Indices Data on PLC (data type DWORD) INT 0 4294967295 Meaning
$A_DBD[n]
Access
yes
Name Meaning Data type Value range Indices Data on PLC (data type REAL) DOUBLE 1491298E45 3402823E+38 Meaning
$A_DBR[n]
Access
yes
1/A2/4-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Descriptions
5
/LIS/, Lists
The signal overviews list only the signals that are described below. For a complete list of signals, please see References:
5.1
5.1.1
NC-specific signals
Signals from PLC to NC (DB10)
Keyswitch setting 0 to 3 Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Access to certain data types can be disabled by the keyswitch position. Input, alteration, deletion of data as well as certain operations on the operator panel can be disabled for certain user groups in this way. Keyswitch position 0 offers the fewest access rights and position 3 the most. The signals Key switch positions 1 to 3 can either be defined directly from the key switch on the machine control panel or from the PLC user program. Only one interface signal must be set in each case. If more than one interface signal is set at any one time, they are no longer valid and keyswitch position 3 is automatically set by the control. The following signal combinations apply: Keyswitch position 0 1 2 3 Bit 7 0 0 0 1 DB10, DBB56 Bit 6 Bit 5 0 0 1 0 0 1 0 0 Bit 4 1 0 0 0
Application example(s)
Related to ....
The disabled data areas are assigned to the keyswitch positions in the MMC machine data for protection levels (see Subsection 2.5.3). Depending on the rights given to the operator, programmer or installation engineer, certain functions will be disabled by the keyswitch. Unintentional changes to data (e.g. zero offsets) or activation of program conditions (e.g. selecting dry run feedrate) by the operator are therefore ruled out. Disabling with password (see Subsection 2.5.3).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-67
10.00
5.1.2
DB 10 DBX103.0 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
MMC alarm is active Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 At least 1 MMC alarm (alarm numbers 100 000 to 105 999) is active. No MMC alarm is active.
NCK CPU Ready Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The NCK CPU is ready and sending ready signals cyclically to the PLC. After a proper initial start and the first complete OB1 cycle (initial setting cycle) the PLC and NCK continuously exchange sign of life signals. The PLC basic program sets IS NCK CPU Ready to 1. The NCK CPU is not ready. If a sign of life is not received from the NCK, the PLC/NCK interface is neutralized by the PLC basic program and IS NCK CPU Ready is set to 0. The following measures are introduced by the PLC basic program: S Status signals from NCK to PLC (user interface) are reset S Modification signals for auxiliary functions are deleted S Cyclic processing of user PLC to NCK user interface is terminated. Individual PLC outputs can, for example, be set to a defined state from the PLC user program. /DA/, Diagnostics Guide /FB/, P3, Basic PLC Program
DB 10 DBX108.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
MMC CPU2 Ready (to OPI or MPI) Signal(s) Signal(s) updated: cyclically Signal(s) valid from SW: 3.1 The MMC CPU is ready and signals cyclically to the NCK. The MMC is not ready.
DB 10 DBX108.2 DBX108.3 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) References
MMC CPU1 Ready (MMC to MPI) MMC CPU1 Ready (MMC to OPI, standard link) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The MMCCPU is ready and sending signals cyclically to the NCK. The MMC is not ready. The necessary measures can be introduced by the PLC user program if MMCCPU1-Ready = 0. /DA/, Diagnostics Guide
1/A2/5-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
DB 10 DBX108.6 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to ....
611D Ready Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 All existing drives signal the status drive ready (summary of axial interface signals DRIVE ready). As soon as the status drive not ready is signaled from a drive (i.e. IS DRIVE ready = 0). SINUMERIK FM-NC and 840Di IS DRIVE ready (DB31, ... DBX93.5)
NC Ready Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The control system is ready. This interface signal is an image of the relay contact NC-ready. This signal is set if: S Relay contact NC ready is closed S All the voltages in the control have been established S The control is in cyclic mode The control is not ready. The relay contact NC Ready is open. The following faults will cause NC Ready to be canceled: S Undervoltage and overvoltage monitoring has responded S Individual components are not ready (NCK CPU Ready) S NC CPU watchdog If the signal NC Ready becomes 0 the following measures are introduced by the control if still possible: S Removal of servo enables (which stops the drives) S The following measures are introduced by the PLC basic program: Status signals from NCK to PLC (user interface) are reset Modification signals for auxiliary functions are deleted Cyclic processing of the PLC to NCK user interface is terminated For further information see References! The control is not ready until after POWER ON. Relay contact NC Ready /DA/, Diagnostics Guide /FB/, P3, Basic PLC Program
DB 10 DBX109.0 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to .... References
NCK alarm is active Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 At least one NCK alarm is present. This is a group signal for the Channel-specific NCK alarm is active interface signals (DB21, ... DBX36.6) of all existing channels. No NCK alarm is active. IS Channel-specific NC alarm is active (DB21, ... DBX36.6) IS NCK alarm with processing stop is active (DB21, ...DBX36.7) /DA/, Diagnostics Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-69
10.00
Air temperature alarm Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The ambient temperature or fan monitoring function has responded. This could be due to the following: S The temperature monitoring has registered ambient temperatures that are too high (approx. 60 oC). Alarm 2110 NCK temperature alarm is triggered. S The speed monitoring of the 24 V DC fan used to cool the module has responded. Alarm 2120 NCK fan alarm is triggered. Measures: Replace the fan and/or provide for additional ventilation. When a temperature or fan error responds, a relay contact (terminal 5.1, 5.2 or 5.1, 5.3) in the infeed/regenerative feedback unit is activated which can be evaluated by the customer. Neither the temperature monitoring nor the fan monitoring has responded. SINUMERIK FM-NC Appropriate measures can be introduced by the PLC user program if the temperature or fan monitoring is activated. When a temperature and fan error responds, a relay contact (terminal 5.1, 5,2 or 5.1, 5.3) in the infeed/regenerative feedback unit is activated. This can be evaluated. /DA/, Diagnostics Guide
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s) Related to .... References
NCK battery alarm Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The NCK battery voltage alarm has responded. This could be due to the following: S The battery voltage is in the prewarning limit range (approx. 2.7 to 2.9V). Alarm 2100 NCK battery warning threshold reached has been triggered. See References for effects and measures. S The battery voltage is below the prewarning limit (x 2.6V). Alarm 2101 NCK battery alarm is triggered cyclically. Effects: A supply voltage failure e.g. when the control is switched off would result in the loss of battery-backed data (e.g. parts program memory, variables, machine data ....). Measures: See References. S As the control boots, the battery voltage is detected to be below the prewarning limit (x 2.6 V). Alarm 2102 NCK battery alarm is triggered; NC Ready and Mode Group Ready are not output. Effects: Some of the batterybacked data may already have been lost! Measures: See References. The battery voltage is above the lower limit value (normal conditions). The NCK batteries should only be replaced while the NC is switched on to avoid data loss because of insufficient memory backup. /DA/, Diagnostics Guide /IAD/, SINUMERIK 840D, Installation and StartUp Guide /IBI/, SINUMERIK 840Di, Installation and StartUp Guide /IAG/, SINUMERIK 810D, Installation and StartUp Guide /IAF/, SINUMERIK FM-NC, Installation and StartUp Guide
Signal state 0 or signal transition 1 > 0 Special cases, errors, ... References
1/A2/5-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.2
5.2
5.2.1
DB 19 DBX0.0 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Screen bright Signal(s) updated: cyclically The screen darkening is canceled. The screen darkening remains in effect. DB19, DBX0.1 Signal(s) valid from SW: 4.1
DB 19 DBX0.1 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Darken screen Signal(s) updated: cyclically Signal(s) valid from SW: 2.1 The screen is switched to dark by the PLC user program. The automatic bright/dark function for the screen is therefore inactive: i. e. the screen does not automatically become bright when a key on the keyboard is pressed. The screen is switched to bright by the PLC user program. With this signal status, screen darkening/brightening by the control can be diverted automatically via the keyboard. The screen is darkened if the keyboard is not touched for a time period corresponding to the setting in MD 9006: DISPLAY_BLACK_TIME (screen darkening delay). The screen is switched to bright again the next time a key on the operator panel is pressed. Screen saver Caution: When IS Darken screen (DB19, DBX0.1) is set to 1, then the keyboard on the operator panel remains operational! It is therefore advisable to disable it at the same time by means of IS Key disable (DB19, DBX0.2). IS Key disable (DB19, DBX0.2) MD 9006: DISPLAY_BLACK_TIME (screen darkening delay time)
Related to ....
DB 19 DBX0.2 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Key disable Signal(s) updated: cyclically The key is disabled for the user. The key is enabled for the user. If the screen is darkened by means of IS Darken screen (DB19, DBX0.1), the keyboard should be inhibited at the same time by means of IS Key disable (DB19, DBX0. 2) to prevent the operator from entering keyboard commands unintentionally. IS Darken screen (DB19, DBX0.1) Signal(s) valid from SW: 2.1
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-71
Various Interface Signals (A2) 5.2 Signals to/from operator panel (DB19)
10.00 10.00
Clear cancel alarms Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 Clear error key on the machine control panel is depressed. The master control receives the bits and transmits the Cancel key to the alarm server, which then acknowledges all Cancel alarms of the NCK and MMC. The PLC application acknowledges the PLC alarms itself. POWER ON and Reset alarms remain active on the NCK until the cause of the error has been rectified. Clear error key on the machine control panel is not depressed. Only applicable to MMC 103 or PCU 50. DB19.DBX20.3
Clear recall alarms Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 Clear error key on the machine control panel is depressed. The master control receives the bits and transmits the Cancel key to the alarm server, which then acknowledges all Cancel alarms of the NCK and MMC. The PLC application acknowledges the PLC alarms itself. POWER ON and Reset alarms remain active on the NCK until the cause of the error has been rectified. Clear error key on the machine control panel is not depressed. valid only for MMC 103 DB19.DBX20.4
Actual value in WCS Signal(s) updated: cyclically Signal(s) valid from SW: 2.1 The PLC selects the display of actual values in the workpiece coordinate system (WCS). When the machine area is selected, the WCS display is always activated, i.e. the Position window displays the machine and special axes as well as their actual positions and distances-to-go in the WCS. Since the interface signal is evaluated only when the machine basic display is called, the operator can switch over between the two coordinate systems within the machine area as often as required by means of soft keys Actual values MCS and Actual values WCS. When the Machine area is selected the coordinate system previously selected (WCS or MCS) is reactivated and displayed. IS Actual value in WCS (DB19, DBX0.7) = 1 can be applied to ensure that the workpiece coordinate system display (WCS) frequently required by the operator is selected every time he enters the machine area. IS Switch over MCS/WCS (DB19, DBX20.7) /BA/, Operators Guide
1/A2/5-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Higraph first error display Signal(s) updated: cyclically Signal(s) valid from SW: 2.1
Higraph first error display Signal(s) updated: cyclically Signal(s) valid from SW: 2.1
Analog spindle 1, utilization in percent Signal(s) updated: cyclically Signal(s) valid from SW: 2.1
Analog spindle 2, utilization in percent Signal(s) updated: cyclically Signal(s) valid from SW: 2.1
Channel number of machine control panel on MMC Signal(s) updated: cyclically Signal(s) valid from SW: 2.1
DB 19 DBX10.0 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Programming area selection Signal(s) updated: cyclically Program area selection active Program area selection inactive Signal(s) valid from SW: 2.1
DB 19 DBX10.1 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Alarm area selection Signal(s) updated: cyclically Alarm area selection active Alarm area selection inactive Signal(s) valid from SW: 2.1
DB 19 DBX10.2 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Tool offset selection Signal(s) updated: cyclically Tool offset selection active Tool offset selection inactive Signal(s) valid from SW: 2.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-73
Various Interface Signals (A2) 5.2 Signals to/from operator panel (DB19)
10.00 10.00
ShopMill control signal Signal(s) updated: cyclically Signal(s) valid from SW: 2.1
DB 19 DBX12.2 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
COM2 Signal(s) updated: cyclically COM2 active COM2 inactive Valid for MMC 103; A file transfer can be initiated via RS232C. Signal(s) valid from SW: 5.1
DB 19 DBX12.3 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
COM1 Signal(s) updated: cyclically COM1 active COM1 inactive Valid for MMC 103; A file transfer can be initiated via RS232C. Signal(s) valid from SW: 5.1
DB 19 DBX12.4 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
RS-232-C stop Signal(s) updated: cyclically RS232C stop active RS232C Stop inactive Valid for MMC 103; A file transfer can be initiated via RS232C. Signal(s) valid from SW: 5.1
DB 19 DBX12.5 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
RS-232-C external Signal(s) updated: cyclically RS232C external active RS232C external inactive Valid for MMC 103; A file transfer can be initiated via RS232C. Signal(s) valid from SW: 5.1
DB 19 DBX12.6 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
RS-232-C OFF Signal(s) updated: cyclically RS232C OFF active RS232C OFF inactive Valid for MMC 103; A file transfer can be initiated via RS232C. Signal(s) valid from SW: 5.1
1/A2/5-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
DB 19 DBX12.7 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
RS232C ON Signal(s) updated: cyclically RS232C ON active RS232C ON inactive Valid for MMC 103; A file transfer can be initiated via RS232C. Signal(s) valid from SW: 5.1
DB 19 DBX13.5 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Unload Signal(s) updated: cyclically Unload active Unloading inactive Valid for MMC 103; A file transfer can be initiated using the hard disk. Signal(s) valid from SW: 2.1
DB 19 DBX13.6 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Load parts program Signal(s) updated: cyclically Load active Loading inactive Valid for MMC 103; A file transfer can be initiated using the hard disk. Signal(s) valid from SW: 5.1
DB 19 DBX13.7 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Selection Signal(s) updated: cyclically Selection active Selection inactive Valid for MMC 103; A file transfer can be initiated using the hard disk. Signal(s) valid from SW: 5.1
PLC index Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 This byte for controlling the RS232C defines the PLC index which specifies the axis, channel or TO no. for the standard control file. This file is handled from PLC>MMC in accordance with the task stored in DB19.DBB12. Valid for MMC 100, with reference to DB19.DBB12 Dependent on DB19.DBX14.7 =0 > Act. FS: PLC index specifying the axis, channel or TO no. =1 > Pas. FS: PLC index for the user control file
Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-75
Various Interface Signals (A2) 5.2 Signals to/from operator panel (DB19)
10.00
DB 19 DBX14.7 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Active or passive file system Signal(s) updated: cyclically Passive file system Active file system Valid for MMC 100, with reference to DB19.DBB12 Signal(s) valid from SW: 5.1
PLC line offset Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 This byte for controlling file transfer via the RS232C defines the line of the default or user control file on which the control file to be transferred is specified. Valid for MMC 100, with reference to DB19.DBB12 Dependent on DB19.DBX14.7 =0 > Act. FS: PLC line offset in a standard control file =1 > Pas. FS: PLC line offset in a user control file
PLC index for the user control file Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 This byte for controlling file transfer via hard disk defines the index for the control file (job list). This file is handled from PLC>MMC in accordance with the task stored in DB19.DBB13. Valid for MMC 103, with reference to DB19.DBB13 Dependent on DB19.DBX14.7 =0 > Act. FS: PLC index for the standard control file =1 > Pas. FS: PLC index for the user control file
Application example(s)
DB 19 DBX16.7 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Active or passive file system Signal(s) updated: cyclically Passive file system Active file system for MMC 103 always 1 Signal(s) valid from SW: 5.1
PLC line offset in the user control file Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 This byte for controlling file transfer via hard disk defines the line of the user control file on which the control file to be transferred is specified. Valid for MMC 103, with reference to DB19.DBB13 Dependent on DB19.DBX14.7 =0 > Act. FS: PLC line offset in a standard control file =1 > Pas. FS: PLC line offset in a user control file
1/A2/5-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
DB 19 DBX44.0 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Mode change disable Signal(s) updated: cyclically Mode change disable active BA group switchover disabled Signal(s) valid from SW: 5.1
FC9 Out: Active Signal(s) updated: cyclically Signal(s) valid from SW: 5.1
FC9 Out: Done Signal(s) updated: cyclically Signal(s) valid from SW: 5.1
FC9 Out: Error Signal(s) updated: cyclically Signal(s) valid from SW: 5.1
FC9 Out: StartError Signal(s) updated: cyclically Signal(s) valid from SW: 5.1
5.2.2
DB 19 DBX20.1 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Screen is dark Signal(s) updated: cyclically The screen is darkened. The screen is not darkened. This IS allows the PLC to determine whether the screen is darkened via IS Darken screen (DB19, DBX0.1) or by means of MD 9006: DISPLAY_BLACK_TIME (screen darkening delay). MD 9006: DISPLAY_BLACK_TIME (screen darkening delay time) Signal(s) valid from SW: 5.1
Related to ....
DB 19 DBX20.3 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Cancel alarm cleared Signal(s) updated: cyclically Cancel alarm deleted active Cancel alarm deleted inactive Signal(s) valid from SW: 5.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-77
Various Interface Signals (A2) 5.2 Signals to/from operator panel (DB19)
DB 19 DBX20.4 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Recall alarm cleared Signal(s) updated: cyclically Recall alarm deleted inactive Recall alarm deleted inactive Signal(s) valid from SW: 5.1
DB 19 DBX20.6 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Simulation selected Signal(s) updated: cyclically On entry to simulation = 1 On exit from simulation = 0 Can be evaluated by machine manufacturer in order to activate the test on NC start. Drive machine data 1012, bit 2 must be = 0. The status ext. pulse disable active, terminal 663 open is then not transmitted to the NC. Drive machine data 1012, bit 2 Signal(s) valid from SW: 5.1
Related to ....
DB 19 DBX20.7 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
Switch over MCS/WCS Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 The coordinate system is switched over from workpiece coordinate system (WCS) to machine coordinate system (MCS) or from MCS to WCS. After it has been set, the signal is active for 1 PLC cycle. No effect IS Switch over MCS/WCS (DB19, DBX20.7) must be transferred to the IS Actual value in WCS (DB19, DBX0.7) to make the switchover effective. IS Actual value in WCS (DB19, DBX0.7)
Displayed channel number of MMC Signal(s) updated: cyclically Signal(s) valid from SW: 5.1
DB 19 DBX24.0 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
Error (Status RS-232-C from PLC) Signal(s) updated: cyclically Error status active Error status inactive The current file management status is transmitted to the PLC in acknowledgment byte DB19.DBB24. Valid for MMC 100 Signal(s) valid from SW: 5.1
1/A2/5-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
DB 19 DBX24.1 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
O.K. (Status RS-232-C from PLC) Signal(s) updated: cyclically O.K. status active O.K. status inactive The current file management status is transmitted to the PLC in acknowledgment byte DB19.DBB24. Valid for MMC 100 Signal(s) valid from SW: 5.1
DB 19 DBX24.2 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
COM2 (Status RS-232-C from PLC) Signal(s) updated: cyclically COM2 active COM2 inactive The current file management status is transmitted to the PLC in acknowledgment byte DB19.DBB24. Valid for MMC 100 Signal(s) valid from SW: 5.1
DB 19 DBX24.3 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
COM1 (Status RS-232-C from PLC) Signal(s) updated: cyclically COM1 active COM1 inactive The current file management status is transmitted to the PLC in acknowledgment byte DB19.DBB24. valid for MMC 100i Signal(s) valid from SW: 5.1
DB 19 DBX24.4 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
RS-232-C stop (Status RS-232-C from PLC) Signal(s) updated: cyclically RS232C stop active RS232C Stop inactive The current file management status is transmitted to the PLC in acknowledgment byte DB19.DBB24. Valid for MMC 100 Signal(s) valid from SW: 5.1
DB 19 DBX24.5 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
RS232C external (Status RS232C of PLC) Signal(s) updated: cyclically RS232C external active RS232C external inactive The current file management status is transmitted to the PLC in acknowledgment byte DB19.DBB24. The RS232C external bit is delayed until transfer of the external parts program has started and the selection has been made. Only then is an NC Start possible. Valid for MMC 100 Signal(s) valid from SW: 5.1
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-79
Various Interface Signals (A2) 5.2 Signals to/from operator panel (DB19)
10.00 10.00
DB 19 DBX24.6 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
RS232C OFF (Status RS232C from PLC) Signal(s) updated: cyclically RS232C OFF active RS232C OFF inactive The current file management status is transmitted to the PLC in acknowledgment byte DB19.DBB24. Valid for MMC 100 Signal(s) valid from SW: 5.1
DB 19 DBX24.7 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
RS232C ON (Status RS232C from PLC) Signal(s) updated: cyclically RS232C ON active RS232C ON inactive The current file management status is transmitted to the PLC in acknowledgment byte DB19.DBB24. Valid for MMC 100 Signal(s) valid from SW: 5.1
Error RS232C Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 0 = No error 1 = Invalid number for control file (value in DB19.DBB14<127 or invalid) 2 = Unable to read DB19.DBB15 3 = Control file /BD.DIR/PLC_IN_OUT_xxx.TEA not found (value in DB19.DBB14 invalid) 4 = Invalid index in control file. (value in DB19.DBB15 wrong) 5 = Unable to open selected job list in control file (only MMC 103) 6 = Error in job list (job list interpreter returns error) (only MMC 103) 7 = Job list interpreter returns empty job list (only MMC 103) 8 = Error during RS232C transmission. The error text is entered in SERVICES LOG. 9 = Error while executing job list (only MMC 103) Valid for MMC 100
Related to ....
DB 19 DBX26.1 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
O.K. (job list selection from PLC, status) Signal(s) updated: cyclically Transfer terminated correctly Transfer terminated with error Valid for MMC 103 Signal(s) valid from SW: 5.1
1/A2/5-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
DB 19 DBX26.2 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Error (job list selection from PLC, status) (formerly bit 0) Signal(s) updated: cyclically Transfer terminated with error Transfer terminated correctly Valid for MMC 103
DB 19 DBX26.3 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Active (job list selection from PLC, status) Signal(s) updated: cyclically Job in progress No job in progress Valid for MMC 103 Signal(s) valid from SW: 5.1
DB 19 DBX26.5 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Unload (job list selection from PLC, status) Signal(s) updated: cyclically Unload active Unloading inactive Valid for MMC 103 Signal(s) valid from SW: 5.1
DB 19 DBX26.6 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Load (job list selection from PLC, status) Signal(s) updated: cyclically Load active Loading inactive Valid for MMC 103 Signal(s) valid from SW: 5.1
DB 19 DBX26.7 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Selection (job list selection from PLC, status) Signal(s) updated: cyclically Selection active Selection inactive Valid for MMC 103 Signal(s) valid from SW: 5.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-81
Various Interface Signals (A2) 5.2 Signals to/from operator panel (DB19)
10.00 10.00
Data transfer error Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 0 = No error 1 = Invalid number for control file (value in DB19.DBB16<127 or invalid) 2 = Unable to read DB19.DBB17 3 = Control file /BD.DIR/PLC_IN_OUT_xxx.TEA not found (value in DB19.DBB14 invalid) 4 = Invalid index in control file. (value in DB19.DBB17 wrong) 5 = Unable to open selected job list in control file 6 = Error in job list. (job list interpreter returns error) 7 = Job list interpreter returns empty job list 8 = Error during RS232C transmission. The error text is entered in SERVICES LOG. 9 = Error while executing job list Valid for MMC 103
Related to ....
Mode group number Signal(s) updated: cyclically This byte contains the mode group number. Signal(s) valid from SW: 5.1
Channel number (FC9: ChanNo) Signal(s) updated: cyclically Signal(s) valid from SW: 5.1 This byte contains the channel number (FC9: ChanNo).
DB 19 DBX42.0 Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
FC9: Start (measuring in Jog mode) Signal(s) updated: cyclically Start active Start inactive Signal(s) valid from SW: 5.1
1/A2/5-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
5.3
5.3.1
Channel-specific signals
Signals to channel
DB21, ... DBX6.2 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Delete distance-to-go (channel-specific) Signal(s) to channel (PLC NC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Delete distance-to-go (channel-specific): IS Delete distance-to-go (channel-specific) is only active in AUTOMATIC mode for path axes. The rising edge of the interface signal only affects the axes involved in the geometry grouping. They are stopped with ramp stop and their distance-to-go deleted. Any remaining following error is not deleted. The next program block is then started. IS Delete distance-to-go (channel-specific) is therefore ignored by positioning axes. Note: IS Delete distance-to-go does not affect the dwell time in a program block with dwell time. No effect Positioning axes To terminate the travel movement because of an external signal (e.g. probe) Delete distance-to-go (channel-specific) When the axes have been stopped with IS Delete distance-to-go the next program block is prepared with the new positions. The geometry axes thus follow a different contour to the one originally defined in the parts program after a Delete distance-to-go. If G90 is programmed in the block after Delete distance-to-go it is at least possible to approach the programmed absolute position, whereas with G91 the position originally defined in the parts program is not reached. IS Delete distance-to-go (axis-specific) (DB31, ... DBX2.2)
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s) Special cases, errors, ...
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-83
10.00 10.00
5.3.2
DB21, ... DBX36.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Channel-specific NCK alarm is active Signal(s) from channel (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 At least one NCK alarm is present for this channel. The group interface signal NCK alarm is present is consequently also set (DB10, DBX103.0). The PLC user program can find out whether processing for the channel in question has been interrupted because of an NCK channel (IS NCK alarm with processing stop present). No NCK alarm is active for this channel. IS NCK alarm with processing stop present (DB21, ...DBX36.7) IS NCK alarm present (DB10, DBX103.0) /DA/, Diagnostics Guide
DB21, ... DBX36.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to .... References
NCK alarm with processing stop present Signal(s) from channel (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 At least one NCK alarm which is causing a processing stop of the parts program running in this channel is active. There is no alarm active in this channel that is causing a processing stop. With this alarm a program interruption because of an NCK alarm can be recognized immediately by the PLC user program and the necessary steps introduced. IS Channel-specific NC alarm is present (DB21, ... DBX36.6) /DA/, Diagnostics Guide
DB21, ... DBX318.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to .... References
Overstore active Signal(s) from channel (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.1 The function Overstore is enabled (with the channel-specific PI service _N_OST_ON). If the PI service is denied, the signal will not change. The function Overstore is disabled (with the channel-specific PI service _N_OST_OFF). If the PI service is denied, the signal will not change.
1/A2/5-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
5.4
5.4.1
Axis/spindle-specific signals
Signals to axis/spindle
DB 31, ... DBX1.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Axis disable
Axis/spindle disable Signal(s) to axis/spindle (PLC NC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 (Test conditions) If IS Axis disable is output, no more position partial setpoints are output for this axis to the position controller (see Fig. 51); the axis travel is therefore disabled. The position control loop remains closed and the remaining following error is reduced to zero. If an axis is traversed with axis disable the actual value position display shows the setpoint position and the velocity actual value display shows the setpoint velocity even though the machine axis is not actually traversing. A RESET sets the position actual value display to the real actual value of the machine. Travel commands continue to be output to the PLC for this axis. If the interface signal is canceled the associated axis can again traverse normally. If the interface signal Axis disable is set for a traversing axis, the axis is stopped with a ramp stop. If IS Spindle disable is set, as for axis disable, no more speed setpoints are output to the speed controller in openloop control mode and no more position partial setpoints are output to the position controller in positioning mode. The movement of the spindle is thus disabled. The speed actual value display displays the speed setpoint value. Spindle disable can only be canceled per Reset or with M2 followed by a program restart. If interface signal Spindle disable is set while a spindle is turning, the spindle is stopped according to its acceleration characteristic. (Normal conditions) The position setpoint values are transferred to the position controller cyclically. The speed setpoint values are transferred to the speed controller cyclically. Cancellation of the Axis/spindle disable signal (edge change 1 ! 0) does not take effect until the axis/spindle is stationary (i.e. no interpolation setpoint is applied). Position setpoint from the interpolator _
Spindle disable
Fig. 51
Position controller
Speed controller
iset iact
Current controller
Motor
Encod. 1
nact
Actual position value
The interface signal Axis disable and Spindle disable is used when a new NC program is being tested and the machine axes and spindles are not to carry out any traversing or rotational movements.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-85
10.00
Axis/spindle disable Signal(s) to axis/spindle (PLC NC) If the signal Axis/spindle disable is active for an axis/spindle, interface signals Controller enable, Feedrate/spindle hold and where applicable Hardware limit switch do not affect axis/spindle braking. The axis/spindle can however be brought into the follow-up or hold state (see interface signal IS Follow-up mode). Notes:
S S S S
This signal inhibits setpoint output to the drive. A brief pulse can bring a traversing axis to a standstill. The axis will not move again in this block, but only when the next block is reached. Resynchronization takes place automatically on the next traversing command for this axis, i.e. the axis traverses the remaining distance-to-go. Example: G0 X0 Y0 G1 F1000 X100 Y100 X200 ...
, ; At X20 the Disable axis signal is applied briefly, ; X axis stops, NC keeps interpolating ; ; X traverses from approx. 20 to 200
The following behavior applies in association with synchronous mode (SW 4 and higher): References: /FB/, S3, Synchronous Spindle
S S S
No.
This signal is no longer effective when the coupling for FS/FA is activated. No. 6 If the signal for the LS/LA is set, it also applies to the following spindle(s)/axis(es) No. 7 A workpiece clamped between two spindles (workpiece transfer from front to rearside machining) cannot be destroyed.
Related to ....
|enabled: 1, disabled: 0 |coupling | |behavior | LS/LA | FS/FA | | ________________________________________________________________________ 1 | 0 0 | off |setpoints of axes are | | |output 2 | 0 1 | off |no setpoint output for FS/FA 3 | 1 0 | off |no setpoint output for LS/LA 4 | 1 1 | off |no setpoint output for LS/LA |and FS/FA _______________________________________________________________________ 5 | 0 0 | on |setpoints of axes are | |output 6 | 0 1 | on |Disable not effective for FS/FA 7 | 1 0 | on |Disable also effective for FS/FA 8 | 1 1 | on |no setpoint output for LS/LA |and FS/FA IS Program test active (DB21, ... DBX33.7)
1/A2/5-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Follow-up mode Signal(s) to axis/spindle (PLC NC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Follow-up mode is selected for the axis/spindle by the PLC. The position setpoint is thus continuously corrected to the actual value if servo enable has been canceled for the drive. As soon as follow-up mode is active, IS Follow-up mode active (DB31, ... DBX61.3) are set to 1. The actual value continues to be acquired and updated. If the axis/spindle is moved from its current position by external influences the zero speed and clamping monitoring do not issue an alarm. When the closed-loop control system is reactivated, a control-internal repositioning operation is performed (REPOSA: linear approach with all axes) to the last programmed position if a parts program is active. For more information please refer to Subsection 2.8.1. Follow-up mode is not selected (hold). When servo enable is removed the previous position setpoint is maintained automatically. If the axis/spindle is moved out of position during this time a following error between the position setpoint and the position actual value occurs. This position difference is reduced to zero immediately by issuing Servo enable so that the previous setpoint position is restored. Then, all the other axis movements start from the setpoint position valid before Servo enable was removed. When the position control is switched on again a setpoint jump of the axis position might take place. Zero speed monitoring and clamping monitoring is still active. In order to switch off the zero speed monitoring, IS Clamping active should be set when an axis is clamped. IS Follow-up mode active is set to 0 in the hold condition. 1) In analog operation (FMNC only): The axis is to be traversed periodically with an external speed setpoint without the control losing the axis actual value. Subsequent referencing of the axis is then not necessary (see Subsection 2.8.1). 2) Spindle (if position controlled): When IS Servo enable is set for the spindle it is not usual for the previous setpoint position to be approached again. The IS Follow-up mode must be set to 1 signal for spindles. A setpoint jump when IS Servo enable is set is thus avoided. If servo enable for the drive is canceled internally because of a fault the following must be noted: After the triggered alarms have been successfully canceled (i.e. servo enable is issued again internally), Hold is activated (IS Follow-up mode = 0) before NC Start. Otherwise the travel path of the previous NC block is not executed on NC Start with follow-up mode selected because of the internal Delete distance-to-go. Caution: When changing over from the Follow-up state to the Hold state and in the servo mode (with release of the servo enable signal), a Delete distance-to-go command is activated in the control. This has the effect, for example, of an NC block in which only this access is to travel being ended directly. IS Servo enable (DB31, ... DBX2.1) IS Clamping active (DB31, ... DBX2.3) IS Follow-up mode active (DB31, ... DBX61.3)
Signal state 0
Application example(s)
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-87
10.00
DB 31, ... DBX1.5 and 1.6 Data block Edge evaluation: no PMS1: Signal state 1 PMS2: Signal state 0 PMS1: Signal state 0 PMS2: Signal state 1 PMS1: Signal state 1 PMS2: Signal state 1 PMS1: Signal state 0 PMS2: Signal state 0
Position measuring system 1 (PMS1) Position measuring system 2 (PMS2) Signal(s) to axis/spindle (PLC NC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Position measuring system 1 is used for the axis/spindle (e.g. for position control, absolute value calculation, display). If a 2nd position measuring system is installed (MD 30200: NUM_ENCS = 2), this actual value is also acquired. Position measuring system 2 is used for the axis/spindle (e.g. for position control, absolute value calculation, display). If a position measuring system 1 also exists, this actual value is also acquired. As it is not possible to use both position measuring systems simultaneously for the position control of an axis/spindle, the control automatically selects position measuring system 1. If a position measuring system 2 also exists, this actual value is also acquired. 1) The axis is in the PARK position. The following applies: S Both position measuring systems are inactive.
S S S
There is no actual value acquisition. The position measuring system monitoring is switched off (e.g. cable connection of encoder). The reference point has no effect (interface signal Referenced/synchronized has the signal condition 0). As soon as an axis is parked, IS Position controller active (DB31, ... IS Speed controller active (DB31, ... DBX61.6) and Current control loop active (DB31, ...DBX61.7) are set to 0. After parking the axis must be rereferenced (reference point approach).
If interface signals PMS1 and PMS2 are set to 0 while the axis is moving, the axis is stopped with ramp stop without removing servo enable internally. This is advisable in the following cases: S Spindle encoder stops outputting above a certain speed (supplies no further pulses)
Spindle encoder is decoupled mechanically because it would not be able to cope with the speed.
The spindle can then continue to run in speed-controlled mode. In order to really bring the axis/spindle to a stop, the servo enable must always be removed additionally by the PLC. 2) The spindle does not have a position measuring system and is only speed controlled. In this case IS Servo enable must be set to 1.
1/A2/5-88
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
Position measuring system 1 (PMS1) Position measuring system 2 (PMS2) Signal(s) to axis/spindle (PLC NC) 1) Switching from position measuring system 1 to position measuring system 2 (and vice versa): If the axis in both position measuring systems was referenced and the limit frequency of the motor sensor has not been exceed in the meantime (i. e. IS Referenced/ synchronized 1 and 2 (DB31, ... DBX60.4 and 60.5) has signal status 1), another reference point approach is not necessary after switchover. On switchover the actual difference between position measuring system 1 and 2 is traversed immediately. MD 36500: ENC_CHANGE_TOL (maximum tolerance on position actual value switchover) in which the difference between the two actual values existing on switchover can lie. If the actual value difference is greater than the tolerance, a switchover between the two systems does not take place and alarm 25100 Measuring system switchover not possible is triggered. For further information see Description of Functions G2, Velocities, Setpoint/ActualValue Systems, Closed-Loop Control. 2) Parking axis (i.e. no PMS is active): If the encoder has to be removed e.g. if a rotary table has to be dismantled from the machine the position measuring system monitoring is switched off in the parking position. The mounted axis/spindle encoder turns so quickly in certain applications that it can no longer maintain its electrical characteristics (edge gradient, etc.). 3) Switching off the measuring system: When measuring system 1 or 2 is switched off the associated interface signal Referenced/synchronized 1 (or 2) is reset. 4) Reference point approach: Reference point approach of the axis is executed with the selected position measuring system. Each PMS must be referenced separately. If the state Parking axis is active, the interface signal Referenced/synchronized for this axis is ignored on NC Start. IS Referenced/synchronized 1 (DB31, ... DBX60.4) IS Referenced/synchronized 2 (DB31, ... DBX60.5) IS Speed controller active (DB31, ... DBX61.6) IS Servo enable (DB31, ... DBX2.1) MD 36500: ENC_CHANGE_TOL (Max. tolerance on position actual value switchover) MD 30200: NUM_ENCS (Number of encoders) /FB/, G2, Velocities, Setpoint/ActualValue Systems, Closed-Loop Control
References
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-89
10.00
DB 31, ... DBX2.1 Data block Edge evaluation: no Signal state 1 Signal state 1 or signal transition 0 > 1
Servo enable Signal(s) to axis/spindle (PLC NC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The position control loop of the axis/spindle is closed; the axis/spindle is in closed-loop control. When Servo enable is set by the PLC user program: S Position control loop of axis is closed. S Position actual value is no longer switched to the position setpoint. S The servo enable of the drive is output. S IS Position controller active is set to 1. When Servo enable has been signaled no new actual value synchronization of the axis (reference point approach) of the axis is necessary if the maximum permissible limit frequency of the axis measuring system has not been exceeded during follow-up mode. As a function of the the start of IS Follow-up mode (DB31, ... As a function of the state of IS Follow-up mode (DB31, ... DBX1.4), it is possible to select whether or not the axis first traverses back to the earlier setpoint position (i.e. the positional deviation caused by the clamping process is eliminated again) (see IS Follow-up mode). Servo enable is removed: The procedure for removing Servo enable depends on whether the axis/spindle or an axis of the geometry grouping is stationary or traversing at this point in time (Fig. 2-5). S Axis/spindle stationary: Position control loop of axis is opened. When IS Follow-up mode = 1 the position actual value is switched to the position setpoint (i.e. the setpoint position is corrected to the actual value position). The position actual value of the axis/spindle continues to be acquired by the control. The servo enable of the drive is removed. The interface signals Position controller active, Speed controller active and Current controller active are set to 0. S Axis/spindle traverses: The axis is stopped with rapid stop. Alarm 21612 VDI signal servo enable reset during movement is triggered. The position control loop of the axis/spindle is opened. At the end of braking the position actual value is switched to the position setpoint independently of IS Follow-up mode (i.e. the setpoint position is corrected to the actual value position). The position actual value of the axis/spindle continues to be acquired by the control. IS Follow-up mode is set. The interface signals Position controller active, Speed controller active and Current controller active are set to 0.
Application example(s)
The axis status cannot be changed again until after RESET. Using servo enable when clamping the axis: The axis is positioned to the clamping position. As soon as it has stopped it is clamped and then servo enable is removed. Servo enable is removed because the axis could be mechanically pressed out of position slightly by clamping and the position controller would continuously have to work against the clamping. When clamping is to be stopped, first servo enable is set again and then the axis is freed from clamping.
1/A2/5-90
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
Servo enable Signal(s) to axis/spindle (PLC NC) S If an attempt is made to traverse the axis/spindle without servo enable, the axis/spindle remains stationary but sends a travel command to the PLC (axis only). The travel command is maintained and is executed when the servo enable is activated. S If the servo enable of a traversing geometry axis is removed the programmed contour cannot be maintained. S Servo control is removed internally if certain faults occur on the machine, the position measuring system or in the control. (For more information see Subsection 2.8.1). IS Follow-up mode active (DB31, ... DBX61.3) IS Follow-up mode (DB31, ... DBX1.4) IS Position controller active (DB31, ... DBX61.5) IS Speed controller active (DB31, ... DBX61.6) IS Current control loop active (DB31, ... DBX61.7) MD 36620: SERVO_DISABLE_DELAY_TIME (Switchoff delay servo enable) MD 36610: AX_EMERGENCY_STOP_TIME (Time for braking ramp when an error occurs)
Related to ....
DB 31, ... DBX2.2 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Delete distance-to-go (axis-specific)/Spindle reset Signal(s) to axis/spindle (PLC NC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Delete distance-to-go (axis-specific): Depending on the operating mode one of the following happens on Delete distance-to-go axial: S in JOG mode: If the interface signal is set for one axis (signal transition 0>1), this axis is stopped with ramp stop and its distance-to-go deleted. Any remaining following error is not deleted. S AUTOMATIC and MDA: The rising edge of the interface signals only affects the axes which are not in the geometry grouping. These are stopped by ramp stop and the distance-to-go deleted. After this the next program block can be started. IS Delete distance-to-go axial is ignored by geometry axes. Note: IS Delete distance-to-go does not affect the dwell time in a program block with dwell time. No effect To terminate the travel movement because of an external signal (e.g. probe) Delete distance-to-go (axial) S After the axes have been stopped with Delete distance-to-go the next program block is prepared with the new positions. The axes thus follow a different contour to the one originally defined in the parts program after a Delete distance-to-go. If G90 is programmed in the block after Delete distance-to-go it is at least possible to approach the programmed absolute position, whereas with G91 the position originally defined in the parts program is not reached. IS Delete distance-to-go (channel-specific) (DB21, ... DBX6.2) /FB/, S1, Spindles for spindle reset
Signal state 0 or signal transition 1 > 0 Application example(s) Special cases, errors, ...
DB 31, ... DBX9.0, 1, 2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Controller parameter set switchover (request) Requested parameter set Signal(s) to axis/spindle Signal(s) updated: On request
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-91
06.01 10.00
DB 31, ... DBX9.0, 1, 2 Data block Signal irrelevant for ... Application example(s)
Controller parameter set switchover (request) Requested parameter set Signal(s) to axis/spindle MD 35590: $MA_PARAMSET_CHANGE_ENABLE = 0 The binary coded index of the parameter set to be activated is stored in the 3 bits. 0 corresponds to 1st parameter set 1 corresponds to 2nd parameter set, etc. (max. 6 parameter sets possible) Indices 67 are imaged on parameter set 6. DB31, ...DBX69.0, 1, 2
DB 31, ... DBX9.3 Data block Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Disable parameter set switchover commands from NC Disable Signal(s) to axis/spindle NC must not initiate any parameter set switchovers Parameter set switchover by the NC is enabled. DB 31, ... DBX9.0 1, 2
DB 31, ... DBX20.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to ....
Ramp-up times Signal(s) to axis/spindle (PLC 611D) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 V/Hz mode is activated in MD 1014: U/F_MODE_ENABLE. The time set in MD 1126: U/F_MODE_RAMP_TIME_2 is effective. V/Hz mode is activated in MD 1014: U/F_MODE_ENABLE. The time set in MD 1125: U/F_MODE_RAMP_TIME_1 is effective. SINUMERIK FM-NC and SINUMERIK 840Di MD 1014: U/F_MODE_ENABLE (activate V/Hz mode) MD 1125: UF_MODE_RAMP_TIME_1 (ramp-up time 1 for V/Hz mode) MD 1126: UF_MODE_RAMP_TIME_2 (ramp-up time 2 for V/Hz mode) /FBA/, SIMODRIVE 611D Description of Functions, Drives
References
DB 31, ... DBX20.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Ramp function generator rapid stop Signal(s) to axis/spindle (PLC 611D) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 A rapid stop is triggered by the PLC for the drive (611D). Speed setpoint 0 is defined. The drive is stopped without a ramp function (regenerative braking). As soon as the rapid stop is recognized by the drive module, IS Ramp function generator rapid stop active (DB31, ... DBX92.1) is returned to the PLC. No rapid stop is requested by the PLC for the drive. SINUMERIK FM-NC and SINUMERIK 840Di IS Ramp function generator rapid stop active (DB31, ... DBX92.1) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to .... References
1/A2/5-92
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
DB 31, ... DBX20.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Torque limit 2 Signal(s) to axis/spindle (PLC 611D) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Torque limit 2 is requested by the PLC for the axis/spindle. With the 611D two torque limit values can be set for each axis/spindle, where torque limit 2 refers to torque limit 1 (reduction factor). Torque limit 2 is selected via the interface. The limit value for each is defined with the drive parameters. As soon as torque limit 2 is active for a drive, the drive outputs IS Torque limit 2 active (DB31, ... DBX92.2). Only torque limit 1 has been selected by the PLC. SINUMERIK FM-NC and SINUMERIKI 840Di In order to reduce the strain on the mechanics and workpiece, the current torque limit can be reduced with torque limit 2 for certain machining operations. IS Torque limit 2 active (DB31, ... DBX92.2) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s) Related to .... References
DB 31, ... DBX20.3 Data block 11Edge evaluation: no Signal state 1 or signal transition 0 > 1
Speed setpoint smoothing Signal(s) to axis/spindle (PLC 611D), or (PLC 611U) on 840Di Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The PLC requests a filter to smooth the speed setpoint value. In the drive module the interface signal only has an effect under the following conditions: S Speed setpoint filter 1 is active in the drive S and speed setpoint filter 1 has been configured as a lowpass filter (i.e. not as a bandstop filter). As soon as these conditions exist, whereby the smoothing of the speed setpoint is active, the 611D or 611U signals the IS Speed setpoint smoothing active to the PLC (DB31, ... DBX92.3). No smoothing of the speed setpoint value is requested by the PLC. SINUMERIK FM-NC With this interface signal, speed setpoint smoothing can be activated from the PLC user program for a spindle during speed control to achieve smooth torque coupling. Speed setpoint smoothing can be deactivated when the spindle is in positioning mode. IS Speed setpoint smoothing active (DB31, ... DBX92.3) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-93
10.00
Drive parameter set selection A, B, C Signal(s) to axis/spindle Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 With the bit combinations A, B and C it is possible to select 8 different drive parameter sets for the digital drives SIMODRIVE 611D/611U/SINUMERIK 810D. The following assignment applies Drive parameter set 1 2 3 4 5 6 7 8 C 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 A 0 1 0 1 0 1 0 1
The switchable drive parameters are organized as follows: S Current setpoint filter (lowpass, bandstop); for adaptation to the mechanics S Motor speed normalization S Speed controller parameters S Speed setpoint filter S Speed monitoring data As soon as the new drive parameter set is active, the drive informs the PLC by sending interface signals Active drive parameter set (DB31, ... DBX93.0,1 and 2). SINUMERIK FM-NC Drive parameter switchover can be used for the following: S Gear switchover S Measuring circuit switchover In principle it is possible to switch over drive parameter sets at any time. However, as torque jumps can occur when switching over speed controller parameters and motor speed normalization, parameters should only be switched over when the axis/spindle is stationary (especially when the axis is stationary). IS Active drive parameter set (DB31, ... DBX93.0,1 and 2) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAC/, SINUMERIK 810D Installation and StartUp Guide
DB 31, ... DBX21.3 and 21.4 Data block Edge evaluation: no Meaning
Motor selection A, B Signal(s) to axis/spindle (PLC 611D) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The PLC can switch between 4 different motors or motor mode types with motor selection. The following assignment applies Motor selection Application B A Motor 1 Mode 1 0 0 Motor 2 Mode 2 0 1 Motor 3 Res. up to SW 6.3, then for 1 0 Motor 4 611D Performance 2 or 1 1 611U usable for mode 3 or 4 As soon as a new motor selection is detected, the drive cancels the pulse enable (IS checkback signal active motor). Using the motor selection, it is possible, for example, to choose mode 1 as star-connected operation and mode 2 as delta-connection operation for the main spindle drive (MSD). The drive returns the currently selected motor to the PLC via interface signals active motor (DB31, ... DBX93.3 and 4). SINUMERIK FM-NC, 810D
1/A2/5-94
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
DB 31, ... DBX21.3 and 21.4 Data block Application example(s) Special cases, errors, ... Related to .... References
Motor selection A, B Signal(s) to axis/spindle (PLC 611D) Timing for stardelta switchover Note: IS Motor selection in progress must be set to 0 before a new motor is selected! IS Active motor (DB31, ... DBX93.3 and 4) IS Motor selection in progress (DB31, ... DBX21.5) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
DB 31, ... DBX21.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Motor selection in progress Signal(s) to axis/spindle (PLC 611D) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The PLC transmits IS Motor selection in progress to the 611D to confirm that the external contactor has been switched over to the new motor (e.g. that motor contactor 2 has been switched over as part of the star/delta switchover process). The pulses are then enabled by the drive. IS Motor selection in progress must be reset to 0 by the PLC user program before a new motor is selected! Otherwise the pulses from the drive might be enabled too early. SINUMERIK FM-NC, 810D IS Active motor (DB31, ... DBX93.3 and 4) IS Motor selection in progress A, B DBX21.3 and 4) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to .... References
DB 31, ... DBX21.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Speed controller integrator disable Signal(s) to axis/spindle (PLC 611D) or (PLC 611U) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The interface signal is used by the 611D/611U to disable the integrator of the speed controller. The speed controller is thus switched from PI to P controller. Note: If the speed controller integrator disable is activated equalization process might occur in certain applications (e.g. if the integrator was already holding a load while stationary). The 611D/611U acknowledges the integrator disable to the PLC with the IS Speed controller integrator disabled (DB31, ... DBX93.6). The integrator of the speed controller is enabled. SINUMERIK FM-NC, 810D IS Speed controller integrator disabled (DB31, ... DBX93.6) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to .... References
DB 31, ... DBX21.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Pulse enable Signal(s) to axis/spindle (PLC 611D) or (PLC 611U) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Pulse enable is signaled by the PLC for this drive (axis/spindle). The pulses for the drive modules are enabled only if all enable signals (hardware and software) are available (see Fig. for DB31, ... DBX93.5). In this case, interface signal Pulses enabled (DB31, ... DBX93.7) set to 1 is transferred to the PLC. For further information, see IS Pulses enabled (DB31, ... DBX93.7) or References. The pulses are disabled by the PLC for this drive. If pulse enable is canceled for a moving axis/spindle the axis/spindle is not longer braked under control. The axis coasts to rest.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-95
06.01 10.00
DB 31, ... DBX21.7 Data block Signal irrelevant for ... Application example(s) Special cases, errors, ... Related to .... References
Pulse enable Signal(s) to axis/spindle (PLC 611D) or (PLC 611U) SINUMERIK FM-NC Signal relevant to safety If pulse enable is canceled for a moving axis/spindle on EMERGENCY STOP, the axis/ spindle only coasts to rest. IS Pulses enabled (DB31, ... DBX93.7) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAC/, SINUMERIK 810D Installation and StartUp Guide
DB 31, ... DBX1.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Drive test travel enable Signal(s) from axis/spindle (PLC NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Safety handshake when function generator is started by the NC. If an axis is to be moved without further operator intervention, the NC outputs IS Drive test travel request (DB31, ... DBX61.0) = 1 signal. to request a travel enable from the PLC. If all axis travel conditions are fulfilled, the PLC acknowledges the ready state with IS Drive test travel enable (DB31, ... DBX1.0) = 1 signal The PLC always has priority in deciding whether an axis can be moved. The NC does not request permission to move axis from the PLC with IS Drive test travel enable (DB31, ... DBX1.0) = 0 signal. /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAC/, SINUMERIK 810D Installation and StartUp Guide
1/A2/5-96
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
5.4.2
DB 31, ... DBX61.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Drive test travel request Signal(s) from axis/spindle (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The control signals that all travel conditions for the axis are fulfilled. The following conditions must be fulfilled: 1. The mechanical brake of the appropriate axis has already been released and all other axis travel conditions are fulfilled. With IS Drive test travel request (DB31, ... DBX61.0) = 1 signal the according axes can be moved. 2. The axis disabling IS Axis/spindle disable = 1 signal is not active. The control signals that the axes cannot be moved. Axes cannot be moved when: IS Drive test travel request (DB31, ... DBX61.0) = 0 signal or internally in the control with faults. The necessary conditions mentioned above are not fulfilled. /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAC/, SINUMERIK 810D Installation and StartUp Guide
References
DB 31, ... DBX61.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Follow-up mode active Signal(s) from axis/spindle (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The control signals that follow-up mode is active for the axis/spindle. The following conditions must be fulfilled: 1. Servo enable has been canceled for the drive (either by the PLC with IS Servo enable = 0 or internally in the case of a fault, see References) and 2. Follow-up mode is selected (either by the PLC with IS Follow-up mode = 1 or internally e.g. when the servo enable for a traversing axis is canceled). The position setpoint is constantly corrected to the actual value while follow-up mode is active. Zero speed and clamping monitoring are not active. The control signals that follow-up mode for the axis/spindle is not active. Zero speed and clamping monitoring are active. The necessary conditions mentioned above are not fulfilled. IS Follow-up mode active is reset during the Hold state. Note: A delete distance-to-go is triggered internally on transition from Follow up to Hold (IS Follow-up mode = 0) or in control mode (IS Servo enable = 1). IS Servo enable (DB31, ... DBX2.1) IS Follow-up mode (DB31, ... DBX1.4) /DA/, Diagnostics Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-97
10.00 10.00
DB 31, ... DBX61.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Axis/spindle stationary Signal(s) from axis/spindle (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The current velocity of the axis or actual speed of the spindle is below the limit defined in MD 36060: STANDSTILL_VELO_TOL (max. velocity/speed for the signal Axis/spindle stationary). The current velocity of the axis or actual speed of the spindle is greater than the value specified in the MD (standstill range). If a traversing command is active, e.g. for a spindle, then the signal is always 0, even if the current speed is lower than the setting in MD 36060: STANDSTILL_VELO_TOL. If the IS Axis/spindle stationary is signaled and no position control is active for the spindle, zero is displayed for the actual speed on the MMC and zero is read with the system variable $AA_S[n]. S Enable signal for opening a protective device (e.g. open door). S Open the workpiece chuck or the tool clamping device only when the spindle is stationary. S Oscillation mode can be switched on during gear stage change once the spindle has been stopped. S The tool clamping device must have been closed before the spindle can be accelerated up to maximum speed. MD 36060: STANDSTILL_VELO_TOL (maximum velocity/speed for signal Axis/spindle stationary)
Application example(s)
Related to ....
DB 31, ... DBX61.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Position controller active Signal(s) from axis/spindle (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The control signals that the position controller for the axis or spindle is closed. The control signals that the position controller for the axis or spindle is open. If Servo enable is canceled because of a fault or by the PLC user program the position controller is opened and signal Position controller active reset to 0. Spindle without position control: Signal Position controller active is always 0. See References for other effects. S If position control is active the axis/spindle is kept in position by the position controller. Any brakes or clamps can thus be opened. S IS Position controller active can be used as a return signal for IS Servo enable. S The holding brake of a vertical axis must be activated as soon as the position control is no longer active. S Provided a spindle has the appropriate technical capability, it can be switched over to position-controlled mode as an axis or spindle in the parts program (with SPCON or M70). In the above cases interface signal Position controller active is set. Special case for simulation axes (MD 30350: SIMU_AX_VDI_OUTPUT = 1: Interface signal Position controller active is also set for simultaneous axes as soon as MD = 1. IS Servo enable (DB31, ... DBX2.1) IS Follow-up mode (DB31, ... DBX1.4) IS Position measurement system 1 and Position measurement system 2 (DB31, ... DBX1.5 and 6) /DA/, Diagnostics Guide
Application example(s)
Related to ....
References
1/A2/5-98
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
DB 31, ... DBX61.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Special cases, errors, ...
Speed controller active Signal(s) from axis/spindle (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The control signals that the speed controller is closed for the axis or spindle. The control signals that the speed controller is open for the axis or spindle. The speed controller output is cleared. If the spindle is not under position control the interface signal can be used as a return signal for IS Servo enable. Special case for simulation axes (MD 30350: SIMU_AX_VDI_OUTPUT = 1): Interface signal Speed controller active is also set for simulation axes as soon as MD 30350: SIMU_AX_VDI_OUTPUT (output of axis signals for simulation axes) = 1. IS Position controller active (DB31, ... DBX61.5)
Related to ....
DB 31, ... DBX61.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Current controller active Signal(s) from axis/spindle (NCK PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The control signals that the current controller is closed for the axis or spindle. The control signals that the current controller is open for the axis or spindle. The current controller output (including the feedforward quantities on the manipulated variable for the voltage) is cleared. IS Position controller active (DB31, ... DBX61.5) IS Speed controller active (DB31, ... DBX61.6)
DB 31, ... DBX69.0, 1, 2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s)
Controller parameter set switchover (checkback signal) Active parameter set Signal(s) from axis/spindle (NCK PLC) Signal(s) updated: After Signal(s) valid from SW: 4.1 Switchover MD 35590: $MA_PARAMSET_CHANGE_ENABLE = 0 The binary coded index of the activated parameter set is stored in the 3 bits. 0 corresponds to 1st parameter set 1 corresponds to 2nd parameter set, etc. (max. 6 parameter sets possible) Index 0 is returned is the switchover function is deactivated in MD 35590: PARASET_CHANGE_ENABLE = 0. In this case, the 1st parameter set is always active. DB31, ...DBX9.0, 1, 2
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-99
10.00
DB 31, ... DBX76.0 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
Lubrication pulse Signal(s) from axis/spindle (NCK PLC) Signal(s) updated: when change Signal(s) valid from SW: 1.1 If the axis has traversed a greater distance than set in MD 33050: LUBRICATION_DIST (travel distance for lubrication from PLC) the IS Lubrication pulse is set for one PLC cycle. IS Lubrication pulse is automatically reset to 0 after one PLC cycle. The lubrication pump for the axis can be activated with IS Lubrication pulse. Bed lubrication therefore always depends on the path traveled. MD 33050: LUBRICATION_DIST (lubrication pulse distance)
DB 31, ... DBX92.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Setup mode active Signal(s) from axis/spindle (611D PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Setup mode is active for the drive (611D). Setup mode is selected via the terminals on the infeed/regenerative feedback module. Setup mode is required for optimizing the machining process. The following adaptations and additional functions are possible: S Drive: Reduction of speed setpoint limits Reduction of current setpoint limits S I/R: Switching off DC link voltage control Normal operation is active for the drive: The following thus applies: S The maximum limit values for speed and current setpoint are active S DC link voltage control is active SINUMERIK FM-NC, 840Di, 810D /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... References
DB 31, ... DBX92.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Ramp function generator rapid stop active Signal(s) from axis/spindle (611D PLC) or (611U PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 PLC receives the signal that the ramp function generator rapid stop is active. The function has been activated by IS Ramp function generator rapid stop (DB31, ... DBX20.1). The drive is stopped without a ramp function with speed setpoint = 0 and without pulse suppression. Ramp function generator rapid stop is not active for the drive. SINUMERIK FM-NC, 810D Avoiding the use of the ramp function generator on the servo side IS Ramp function generator rapid stop (DB31, ... DBX20.1) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s) Related to .... References
1/A2/5-100
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
DB 31, ... DBX92.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to .... References
Torque limit 2 active Signal(s) from axis/spindle (611D PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Drive (611D) sends acknowledgment to the PLC that torque limit 2 is active in addition to torque limit 1. The limit value for each is defined with the drive parameters. Only torque limit 1 is active. SINUMERIK FM-NC, 840Di, 810D IS Torque limit 2 (DB31, ... DBX20.2) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
DB 31, ... DBX92.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to .... References
Speed setpoint smoothing active Signal(s) from axis/spindle (611D PLC) or (611U PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Speed setpoint smoothing requested by the PLC with IS Speed setpoint smoothing (DB31, ... DBX20.3) is active. No speed setpoint smoothing is active. SINUMERIK FM-NC, 810D IS Speed setpoint smoothing (DB31, ... DBX20.3) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
Active drive parameter set A, B, C Signal(s) from axis/spindle (611D PLC) or (611U PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The drive module (611D/611U) signals back to the PLC which drive parameter set is currently active. With bit combinations A, B and C, 8 different drive parameter sets can be selected for the 611D. The following assignment applies Active drive parameter set 1 2 3 4 5 6 7 8 C 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 A 0 1 0 1 0 1 0 1
SINUMERIK FM-NC Drive parameter switchover can be used for the following: S Gear switchover S Measuring circuit switchover IS Drive parameter set selection (DB31, ... DBX21.0,1 and 2) IS Drive parameter set selection (DB31, ... DBX21.0,1 and 2) or /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-101
10.00
DB 31, ... DBX93.3 and 93.4 Data block Edge evaluation: no Meaning
Active motor A, B Signal(s) from axis/spindle (611D PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The drive module (611D) returns signals to PLC stating which motor selection is currently active. The following assignment applies Active motor Application B A
Motor 1 MSD: Star mode 0 0 Motor 2 MSD: Delta mode 0 1 Motor 3 reserved 1 0 Motor 4 reserved 1 1 Motor selection can be used with a main spindle drive (MSD) to switch between star and delta operation and so reduce the starting current. SINUMERIK FM-NC, 810D IS Motor selection (DB31, ... DBX21.3 and 4) IS Motor selection in progress (DB31, ... DBX21.5) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
1/A2/5-102
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
DB 31, ... DBX93.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Drive Ready Signal(s) from axis/spindle (611D PLC) or (611U PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Acknowledgment from the drive to the PLC that the drive is ready. The drive is not ready. The drive might be disabled for the following reasons (see Fig. 5-3): S Enable terminals missing (e.g. terminal 63 Servo and pulse enable; terminal 663 Safe operational stop, terminal 64 Setpoint enable) S Drive alarm active (e.g. motor temperature has reached switchoff threshold) S DC link voltage is too low S Drive has not yet reached cyclic operation S Hardware fault S No position measuring system is active (parking axis state) S I/R is not switched on As soon as the drive is ready for operation it is stopped (depending on fault either with pulse disable or rapid stop) or pulse disable is maintained during ramp up. The interface signals 611D Ready (DB10, DBX108.6), Current controller active and Speed controller active are similarly removed. 611D Ready is not available on the 840Di in conjunction with the drive 611U. SINUMERIK FM-NC Trigger equipment enable Servo and pulse enable (terminal 63) Pulse enable (safe operational stop) Stored hardware input Drive ready Setpoint enable (terminal 64) No 611D alarm (status class 1 error) DC link connected Power-up completed & Status ready for traverse (terminal 72/73) & IS Drive ready (Terminal 663)
Related to ....
References
IS 611D Ready (DB10, DBX108.6) IS Current controller active (DB31, ... DBX61.7) IS Speed controller active (DB31, ... DBX61. 6) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
DB 31, ... DBX93.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ...
Speed controller integrator disabled Signal(s) from axis/spindle (611D PLC) or (611U PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Deactivation of the integrator by the speed controller requested by the PLC with IS Speed controller integrator disabled (DB31, ... DBX21.6) is active for the drive module. The speed controller has therefore switched from a PI to a P controller. The integrator of the speed controller is enabled. The speed controller functions as a PI controller. SINUMERIK FM-NC, 810D
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-103
10.00
Speed controller integrator disabled Signal(s) from axis/spindle (611D PLC) or (611U PLC) IS Speed controller integrator disabled (DB31, ... DBX21.6) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D
DB 31, ... DBX93.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Pulses enabled Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Drive pulse enable for drive module available. The axis/spindle can now be traversed. The drive module pulses are suppressed. The axis/drive cannot therefore be traversed. The pulses are suppressed as soon as there is no enable signal (see Fig. 5-4). Also, if the Servo enable of drive is removed from the servo, the drive is stopped with setpoint 0 (regenerative braking). In this case, a timer is started in the drive module followed by pulse disabling when the programmed time period expires (MD 1404: PULSE_SUPPRESSION_DELA Y (timer pulse suppression)). If the actual speed reaches creep speed within this time period (MD 1403: PULSE_SUPPRESSION_SPEED (creep speed pulse suppression)) pulse suppression is triggered instantaneously. If the speed is lower/equal to the speed threshold (MD 1403: PULSE_SUPRESSION_SPEED) and the drive servo enable signal canceled, pulse suppression is triggered immediately . Pulse suppression is also triggered if the servo reports that there is no position measuring system (Parking axis state). Pulse suppression is also triggered if the servo reports that there is no position measuring system (Parking axis state). As soon as the pulses are suppressed, interface signals Current controller active and Speed controller active are also reset. SINUMERIK FM-NC NC PLC IS Pulse enable PLC IS Pulse enabled
Signal irrelevant for ... Fig. 5-3 Pulse enable for 611D drive module
Central pulse enable (terminal 63) PE (software) PE (hardware) & Pulses enabled
I/R
1/A2/5-104
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
Pulses enabled Signal(s) from axis/spindle (drive PLC) IS Pulse enable (DB31, ... DBX21.7) MD 1404: PULSE_SUPPRESSION_DELAY MD 1403: PULSE_SUPPRESSION_SPEED /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
References
DB 31, ... DBX94.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Motor temperature prewarning Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The drive module sends Motor temperature warning to the PLC. In this case, the motor temperature has exceeded the defined prewarning threshold (MD 1602: MOTOR_TEMP_WARN_LIMIT (maximum motor temperature); default setting 120 C) exceeded (see Fig. 55).). If the motor temperature remains at this level the drive will be braked in generator mode after a defined time (drive MD 1603: MOTOR_TEMP_ALARM_TIME (timer motor temperature alarm; default 240s) and the pulses suppressed (see Fig. 55 ). In addition, alarm 300614 is activated and IS Drive Ready canceled. If the motor temperature continues to rise and the defined cutout threshold (MD 1607: MOTOR_TEMP_SHUTDOWN_LIMIT (cutout threshold motor temperature); default setting 155 C) is reached, the drive is shut down immediately (see Fig. 55 ). An alarm is also output and IS Drive Ready canceled. However, if the motor temperature drops back down to the warning threshold early enough, the IS is reset to 0 (see Fig. 55 ). Special case: If no temperature sensor signal is measured this is interpreted as a fault in the motor PTC thermistor. In such a case IS Motor temperature prewarning is also set. Procedure continues as above. The motor temperature is below the warning threshold. The current motor temperature is displayed in the axis/spindle service display in the operating area Diagnosis. The display corresponds to MD 1702: MOTOR_TEMPERATURE (motor temperature). SINUMERIK FM-NC
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-105
10.00
Alarm
Warning
Time
611D/611U-MD: MOTOR_TEMP_ALARM_TIME
Time 611D/611UMD
Warning 2 2
Warning
Time
Alarm Alarm
1 4 IS 0 DRIVE Ready 3
References
As soon as Motor temperature prewarning has been signaled, the PLC can, for example, initiate controlled shutdown of the drives. IS DRIVE ready (DB31, ... DBX93.5) MD 1602: MOTOR_TEMP_WARN_LIMIT MD 1603: MOTOR_TEMP_ALARM_TIME MD 1607: MOTOR_TEMP_SHUTDOWN_LIMIT /DA/, Diagnostics Guide /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
DB 31, ... DBX94.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Heatsink temperature prewarning Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The drive module sends the warning Heatsink temperature prewarning to the PLC. This triggers the following: S Terminal 5 on the infeed/regenerative feedback module is activated immediately. S The drive module is switched off after 20 seconds. The drives are stopped when the impulse enable is removed. Then alarm 300515 is triggered. The drive module heatsink temperature prewarning has not responded. SINUMERIK FM-NC As soon as Heatsink temperature warning has been signaled, the PLC can, for example, initiate controlled shutdown of the drives. /DA/, Diagnostics Guide
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s) References
1/A2/5-106
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
DB 31, ... DBX94.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Ramp up function complete Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The PLC receives confirmation that the actual speed value has reached the tolerance band (MD 1426: SPEED_DES_EQ_ACT_TOL (tolerance band for nset = nact signal)) and has remained within this tolerance band for a time period corresponding to the setting in MD 1427: SPEED_DES_EQ_ACT_DELAY (delay time nset = n act signal) (see Fig. 56). Even if the speed actual value leaves the tolerance band (because of speed fluctuations resulting from changes in load) the signal Ramp up function complete remains (1 signal). The conditions described above have not yet been fulfilled. The ramp up function has therefore not yet been completed. SINUMERIK FM-NC
Ramp function generator active (control word servo) active inactive Time Speed n Speed setpoint nset SPEED_DES_EQ_ACT_TOL Speed tolerance band
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Fig. 55
Time
0 IS nact= nset 1
T < TD ! therefore no signal T > TD ! Signal T > TD ! Signal
Time
Related to ....
References
IS nact = nset (DB31, ... DBX94.6) IS |MD| = Mdx (DB31, ... DBX94.3) MD 1426: SPEED_DES_EQ_ACT_TOL MD 1427: SPEED_DES_EQ_ACT_DELAY /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-107
10.00
DB 31, ... DBX94.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
|Md| < Mdx Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 611D reports to the PLC that the torque setpoint |Md| does not exceed the threshold torque Mdx in the stationary condition (i.e. rampup function completed) (see Fig. 57). The threshold torque is set in MD 1428: TORQUE_THRESHOLD_X (threshold torque) as a percentage of the current torque limit value. The torque threshold is speed-dependent. During ramp up, IS |Md|< Mdx remains at 1. The signal |Md|< Mdx becomes active as soon as the ramp up function is complete (IS Rampup function complete= 1) and the signal disable time for the torque threshold (MD 1429: TORQUE_THRESHOLD_X_DELA Y (delay time nd < ndx signal) has expired. The torque setpoint |Md| is larger than the threshold torque Mdx. If necessary, the PLC user program starts a reaction. SINUMERIK FM-NC
1/A2/5-108
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
Time Torque Threshold torque 611DMD: TORQUE_THRESHOLD_X for JMdJ < Mdx Md
x
Md
x
Torque setpoint Md
Time
0 Time IS IMdI < Mdx 1 Remains active during the ramp-up procedure TD2
Related to ....
References
IS Ramp-up function complete (DB31, ... DBX94.2) MD 1428: TORQUE_THRESHOLD_X MD 1429: TORQUE_THRESHOLD_X_DELA Y MD 1427: SPEED_DES_EQ_ACT_DELAY /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-109
10.00
DB 31, ... DBX94.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to .... References
|nact| < nmin Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 It is signaled from SIMODRIVE 611D/ 611U to the PLC that the actual speed value nact is lower than minimum speed value (nmin). The minimum speed is defined in MD 1418: SPEED_TESHOLD_MIN. The speed actual value is higher than the minimum speed. SINUMERIK FM-NC MD 1418: SPEED_THRESHOLD_MIN (minimum speed value (nmin for nact< nmin)) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
DB 31, ... DBX94.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to .... References
|nact| < nx Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 It is signaled from the 611D/ 611U to the PLC that the actual speed value nact is lower than the threshold speed value (nx). The threshold speed is defined in MD 1417: SPEED_ THRESHOLD_X. The speed actual value is higher than the threshold speed. SINUMERIK FM-NC MD 1417: SPEED_THRESHOLD_MIN (minimum speed value (nx for nact< nx)) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
DB 31, ... DBX94.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
nact= nset Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 It is signaled from SIMODRIVE 611D/611U to the PLC that following a new speed value setting the actual speed value nact has reached the speed tolerance band (MD 1426: SPEED_DES_EQ_ACT_TOL (tolerance band for nset = nact signal) and has remained within it for at least the time period set in MD 1427: SPEED_DES_EQ_ACT_DELAY (delay time nset = nact signal) (see Fig. 5-6). If the speed actual value then leaves the tolerance band, then IS nact = nset is reset to 0 instead of Rampup function complete. The conditions described above have not yet been fulfilled. The speed actual value is outside the speed tolerance band. SINUMERIK FM-NC IS Ramp-up function complete (DB31, ... DBX94.2) MD 1426: SPEED_DES_EQ_ACT_TOL MD 1427: SPEED_DES_EQ_ACT_DELAY /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... see Fig. 56 Related to ....
References
1/A2/5-110
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
Variable signaling function Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 It is signaled from SIMODRIVE 611D/611U to the PLC that the threshold value has exceeded the value being monitored. With the variable signaling function it is possible to monitor the exceeding of a defined threshold for any programmable value of SIMODRIVE 611D/611U for each axis and to send a corresponding interface signal to the PLC. The parameters for the variables being monitored are set in the following machine data: S PROG_SIGNAL_FLAGS (bits variable signal function) S PROG_SIGNAL_NR (signal number variable signal function) S PROG_SIGNAL_ADDRESS (address variable signal function) S PROG_SIGNAL_THRESHOLD (threshold variable signal function) S PROG_SIGNAL_HYSTERESIS(hysteresis variable signal function) S PROG_SIGNAL_ON_DELAY (ON delay variable signal function) S PROG_SIGNAL_OFF_DELAY (OFF delay variable signal function) Monitoring: The parameterized variable is monitored to check whether it exceeds a defined threshold. In addition, a tolerance band (hysteresis) can be defined which is considered when scanning for violation of the threshold value. The signal Threshold exceeded can be also be combined with an ON delay and OFF delay time (see Fig. 58). Selection: The variable to be monitored can be selected by entering a signal number or by entering a symbolic address. The MD 1620: PROG_SIGNAL_FLAGS (bits variable signal function). It is also possible to determine whether the threshold value comparison is to be signed or unsigned.
Signal state 0
For further information see References. SIMODRIVE 611D reports to the PLC that the threshold value of the variable being monitored has not been exceeded or that the conditions defined in the above 611DMD have not been fulfilled. If the variable signaling function is deactivated (MD 1620: PROG_SIGNAL_FLAGS), the signal status 0 is output to the PLC. SINUMERIK FM-NC
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/5-111
10.00
Variable signaling function Signal(s) from axis/spindle (drive PLC) With the variable signal function the machine tool manufacturer can monitor one additional threshold value for specific applications for each axis/spindle and evaluate the result in the PLC user program. Example: IS Variable signal function is to be set to 1 when the motor torque exceeds 50 % of the rated torque. MD 1620: PROG_SIGNAL_FLAGS (bits variable signal function) MD 1621: PROG_SIGNAL_NR (signal number variable signal function) MD 1622: PROG_SIGNAL_ADDRESS (address variable signal function) MD 1623: PROG_SIGNAL_THRESHOLD (threshold variable signal function) MD 1624: PROG_SIGNAL_HYSTERESIS (hysteresis variable signal function) MD 1625: PROG_SIGNAL_ON_DELAY (ON delay variable signal function) MD 1626: PROG_SIGNAL_OFF_DELAY (OFF delay variable signal function) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
Related to ....
References
DB 31, ... DBX95.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
UDClink < warning threshold Signal(s) from axis/spindle (drive PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The drive signals to the PLC that the DC link voltage UDC link has dropped below the DC link undervoltage warning threshold. The DC link undervoltage warning threshold is defined in MD:1604 LINK_VOLTAGE_WARN_LIMIT . The DC link undervoltage warning threshold should be defined as a value which is greater than 400V depending on the application. If the DC link voltage drops below 280V, it is switched off by the hardware. The DC link voltage UDClink is greater than the DC link undervoltage warning threshold. SINUMERIK FM-NC If a warning signal is given, measures can be taken by the PLC user program, for example, to stop machining (e.g. start tool retraction) or to back up the DC link voltage. MD 1604: LINK_VOLTAGE_WARN_LIMIT (DC link undervoltage warning threshold) /IAD/, SINUMERIK 840D Installation and StartUp Guide, Section SIMODRIVE 611D or /IAG/, SINUMERIK 810D Installation and StartUp Guide
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s) Related to .... References
1/A2/5-112
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Example
6.1 Controller parameter set switchover
6
The position controller gain (servo gain factor) of machine axis AX1 must be switched over. The following settings have been made: $MA_POSCTRL_GAIN [0, AX1] = 4.0 $MA_POSCTRL_GAIN [1, AX1] = 2.0 $MA_POSCTRL_GAIN [2, AX1] = 1.0 $MA_POSCTRL_GAIN [3, AX1] = 0.5 $MA_POSCTRL_GAIN [4, AX1] = 0.25 $MA_POSCTRL_GAIN [5, AX1] = 0.125 //Servo gain setting for par. set 1 //Servo gain setting for par. set 2 //Servo gain setting for par. set 3 //Servo gain setting for par. set 4 //Servo gain setting for par. set 5 //Servo gain setting for par. set 6 //Denominator load gearbox for par. set 1 //Denominator load gearbox for par. set 2 //Denominator load gearbox for par. set 3 //Denominator load gearbox for par. set 4 //Denominator load gearbox for par. set 5 //Denominator load gearbox for par. set 6 //Numerator load gearbox for par. set 1 //Numerator load gearbox for par. set 2 //Numerator load gearbox for par. set 3 //Numerator load gearbox for par. set 4 //Numerator load gearbox for par. set 5 //Numerator load gearbox for par. set 6
$MA_DRIVE_AX_RA TIO_DENOM [0, AX1] = 3 $MA_DRIVE_AX_RA TIO_DENOM [1, AX1] = 3 $MA_DRIVE_AX_RA TIO_DENOM [2, AX1] = 3 $MA_DRIVE_AX_RA TIO_DENOM [3, AX1] = 3 $MA_DRIVE_AX_RA TIO_DENOM [4, AX1] = 3 $MA_DRIVE_AX_RA TIO_DENOM [5, AX1] = 3
$MA_DRIVE_AX_RA TIO_NUMERA [0, AX1] = 5 $MA_DRIVE_AX_RA TIO_NUMERA [1, AX1] = 5 $MA_DRIVE_AX_RA TIO_NUMERA [2, AX1] = 5 $MA_DRIVE_AX_RA TIO_NUMERA [3, AX1] = 5 $MA_DRIVE_AX_RA TIO_NUMERA [4, AX1] = 5 $MA_DRIVE_AX_RA TIO_NUMERA [5, AX1] = 5
$MA_AX_VELO_LIMIT [0 ...5, AX1] //Setting for each parameter set*) $MA_EQUIV_CURRCTRL_TIME [0..5, AX1] //Setting for each parameter set*) $MA_EQUIV_SPEEDCTRL_TIME [0..5, AX1] //Setting for each parameter set*) $MA_DYN_MATCH_TIME [0 ...5, AX1] //Setting for each parameter set*)
*) The appropriate line must be specified separately for each parameter set according to the applicable syntax rules. Parameter set 1 is selected (DB31, DBB9, Bit0 ...2 = 0). The machine data with index 0 belonging to the parameter set are active. The effective servo gain is 4.0 /s:
$MA_POSCTRL_GAIN [0, AX1] = 4.0 $MA_DRIVE_AX_RA TIO_DENOM [0, AX1] = 3 $MA_DRIVE_AX_RA TIO_NUMERA [0, AX1] = 5 $MA_AX_VELO_LIMIT [0, AX1] = ... $MA_EQUIV_CURRCTRL_TIME [0, AX1] = ... $MA_EQUIV_SPEEDCTRL_TIME [0, AX1] = ... $MA_DYN_MATCH_TIME [0, AX1] = ...
Switchover
Parameter set switchover is enabled: $MA_PARAMSET_CHANGE_ENABLE [AX1]= 1 or 2. The fourth parameter set is now selected by the PLC.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/6-113
10.00 10.00
Interface: Request DB31, DBB9 (bits0 ...2) => 3: The fourth parameter set is selected for the machine axis AX1. After a delay time, the parameter set is switched over. The machine data with index 3 belonging to the parameter set are active.
$MA_POSCTRL_GAIN [3, AX1] = 0.5 $MA_DRIVE_AX_RA TIO_DENOM [3, AX1] = 3 $MA_DRIVE_AX_RA TIO_NUMERA [3, AX1] = 5 $MA_AX_VELO_LIMIT [3, AX1] = ... $MA_EQUIV_CURRCTRL_TIME [3, AX1] = ... $MA_EQUIV_SPEEDCTRL_TIME [3, AX1] = ... $MA_DYN_MATCH_TIME [3, AX1] = ... //The effective servo gain is now 0.5 /s //Caution! Data that must not be //altered must be //identical for all indices.
Interface: Feedback DB31, DBB69 (bits0 ...2) => 3: The fourth parameter set is selected for the feedback for machine axis AX1. After a delay time, the parameter set is switched over. The machine data with index 3 belonging to the parameter set are active.
1/A2/6-114
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
7
Name Refer to Doc.
Interface signals
Bit, byte Signals from NC to PLC Keyswitch setting 0 to 3 Signals from NC to PLC
10 10 10 10 10 10 10 10 10 10
103.0 104.7 108.1 108.2 108.3 108.6 108.7 109.0 109.6 109.7
MMC alarm is active NCK CPU Ready MMC CPU2 Ready (MMC to OPI or MPI) MMC CPU1 Ready (MMC to MPI) MMC CPU1 Ready (MMC to OPI, standard link) 611D Ready NC Ready NCK alarm is active Air temperature alarm NCK battery alarm Signals to operator panel (PLC ! MMC) Screen bright Darken screen Key disable Delete Cancel alarms (MMC 103 only) Delete Recall alarms (MMC 103 only) Istwert in WKS Programming area selection Alarm area selection Tool offset selection ShopMill control signal COM2 active (job byte of PLC) COM1 active (job byte of PLC) RS232C stop (job byte of PLC) RS232C external (job byte of PLC) RS232C OFF (job byte of PLC) RS232C on (job byte of PLC) Unload parts program
Operatorpanelspecific 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 0.0 0.1 0.2 0.3 0.4 0.7 10.0 10.1 10.2 10.7 12.2 12.3 12.4 12.5 12.6 12.7 13.5
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/7-115
10.00 10.00
Name
Doc. Refer to
File system active/passive (for MMC 100.2, always passive) File system active/passive (for MMC 103, always passive) Mode change disable Signals from operator panel (MMC ! PLC)
19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19
20.1 20.7 24.0 24.1 24.2 24.3 24.4 24.5 24.6 24.7 26.0 26.1 26.3 26.5 26.6 26.7 42.0 45.0 45.1 45.2 45.3
Screen is dark Switch over MCS/WCS Error (Acknowledgment byte for current RS232C status) O.K. (Acknowledgment byte for current RS232C status) COM2 active (Acknowledgment byte for current RS232C status) COM1 active (Acknowledgment byte for current RS232C status) RS232 stop (Acknowledgment byte for current RS232C status) RS232 External (Acknowledgment byte for current RS232C status) RS232 OFF (Acknowledgment byte for current RS232C status) RS232 ON (Acknowledgment byte for current RS232C status) Error (Parts program handling status) O.K. (Parts program handling status) Active (Parts program handling status) Unload (Parts program handling status) Load (Parts program handling status) Select (Parts program handling status) FC9: Measure in JOG mode FC9 Out: Active FC9 Out: Done FC9 Out: Error FC9 Out: StartErr Signals from PLC to NCK channel Delete distance-to-go (channel-specific) Signals from NCK channel to PLC
Channel-specific NCK alarm is active NCK alarm with processing stop present Overstore active Signals from PLC to axis/spindle Axis/spindle disable Follow-up mode Position measuring system 1 Position measuring system 2 Servo enable
Axis/spindle-specific 31, ... 31, ... 31, ... 31, ... 31, ... 1.3 1.4 1.5 1.6 2.1
1/A2/7-116
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
31, ... 31, ... DB number 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ...
2.2 9.0, 1, 2 Bit, byte 20.0 20.1 20.2 20.3 21.021.2 21.321.4 21.5 21.6 21.7
Delete distance-to-go (axis-specific)/Spindle reset Parameter set switchover (request) Name Ramp-up times Ramp function generator rapid stop Torque limit 2 Speed setpoint smoothing Drive parameter set selection A, B, C Motor selection A, B Motor selection to follow Speed controller integrator disable Pulse enable Signals from axis/spindle to PLC Refer to Doc.
31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ...
61.3 61.4 61.5 61.6 61.7 69.0, 1, 2 76.0 92.0 92.1 92.2 92.3 93.093.2 93.393.4 93.5 93.6 93.7 94.0 94.1 94.2 94.3 94.4 94.5 94.6 94.7 95.0
Follow-up mode active Axis/spindle stops Position controller active Speed controller active Current controller active Parameter set switchover (feedback) Lubrication pulse Setup mode active Ramp function generator rapid stop active Torque limit 2 active Speed setpoint smoothing active Active drive parameter set A, B, C Active motor A, B Drive Ready Speed controller integrator disabled Pulses enabled Motor temperature prewarning Heatsink temperature prewarning Ramp-up function complete |Md| < Mdx |nact| < nmin |nact| < nx nact = nset Variable signaling function UDC link<warning threshold
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/7-117
06.01 10.00
7.2
Number
Machine data
Identifier Name Refer to Doc.
MMC machine data ($M_ ... ) ADV 9000 9001 EMB 9000 9001 9002 9003 9004 9004 9005 9006 9007 9008 9009 9010 9011 9012 9011 9012 9013 9020 9020 9030 9031 9180 9181 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9209 9210 9200 9201 9202 9203 9008 9009 ADV ADVANCED, LCD_CONTRAST DISPLAY_TYPE DISPLAY_MODE FIRST_LANGUAGE DISPLAY_RESOLUTION PRG_DEFAULT_DIR DISPLAY_BLACK_TIME TABULATOR_SIZE KEYBOARD_TYPE KEYBOARD_STATE SPIND_DISPLAY_RESOLUTION DISPLAY_RESOLUTION_INCH ACTION_LOG_MODE SYS_CLOCK_SYNC_TIME TECHNOLOGY EXPONENT_LIMIT EXPONENT_SCIENCE USER_CLASS_READ_TCARR USER_CLASS_WRITE_TCARR USER_CLASS_READ_TOA USER_CLASS_WRITE_TOA_GEO USER_CLASS_WRITE_TOA_WEAR USER_CLASS_WRITE_FINE USER_CLASS_WRITE_TOA_SC USER_CLASS_WRITE_TOA_EC USER_CLASS_WRITE_TOA_SUPVIS USER_CLASS_WRITE_TOA_ASSDNO USER_CLASS_WRITE_MAG_WGROUP USER_CLASS_WRITE_TOA_ADAPT USER_CLASS_WRITE_ZOA EMB EMBEDDED (SW 6.1 and higher) Contrast Monitor type External monitor (1: black and white, 2: color) Foreground language Display resolution Basic setting Program directory Time setting for screen saver Tabulator length Keyboard type (0: OP, 1: MFII/QWERTY) Shift behavior of keyboard during booting Display resolution for spindle values Display resolution for INCH_system of units Set action mode for action log System clock synchronizing time Basic configuration for simulation and free contour programming Number of places to be displayed without exponent Technical exponent representation in three steps Protection level read tool carrier offsets general Protection level write tool carrier offsets general Protection level read tool offsets general Protection level write tool geometry Protection level write tool wear data Protection level write fine Protection level change total tool offsets Protection level change tool setup offsets Protection level change tool monitoring limit values Change D No. assigned to a tool edge Change wear group magazine location/mag. Protection level write tool adapter data Protection level write settable zero offset IM2/IM4 IM2/IM4 IM2 IM2 IM2/IM4 IM2 IM2 IM2 IM2/IM4 IM2/IM4 IM4 IM2/IM4 IM2/IM4 IM2 IM2/IM4 IM2 IM2 IM2 IM2 IM2/IM4 IM2/IM4 IM2/IM4 IM2/IM4 IM4 IM4 IM4 IM4 IM4 IM2/IM4 IM2/IM4
1/A2/7-118
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Number ADV 9211 9212 9213 9214 9215 EMB 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9460 9461 9478 9500
Identifier ADV ADVANCED, USER_CLASS_READ_GUD_LUD USER_CLASS_WRITE_GUD_LUD USER_CLASS_OVERSTORE_HIGH USER_CLASS_WRITE_PRG_CONDIT USER_CLASS_WRITE_SEA USER_CLASS_READ_PROGRAM USER_CLASS_WRITE_PROGRAM USER_CLASS_SELECT_PROGRAM USER_CLASS_TEACH_IN USER_CLASS_PRESET USER_CLASS_CLEAR_RP A USER_CLASS_WRITE_RP A USER_CLASS_SET_V24 USER_CLASS_READ_IN USER_CLASS_READ_CST USER_CLASS_READ_CUS USER_CLASS_SHOW_SBL2 USER_CLASS_READ_SYF USER_CLASS_READ_DEF USER_CLASS_READ_BD USER_CLASS_WRITE_RP A_1 USER_BEGIN_WRITE_RPA_1 USER_END_WRITE_RPA_1 USER_CLASS_WRITE_RP A_2 USER_BEGIN_WRITE_RPA_2 USER_END_WRITE_RPA_2 USER_CLASS_WRITE_RP A_3 USER_BEGIN_WRITE_RPA_3 USER_END_WRITE_RPA_3 USER_CLASS_WRITE_TOA_NAME USER_CLASS_WRITE_TOA_Type PROGRAMM_SETTINGS CONTOUR_END_TEXT TO_OPTION_MASK NC_PROPERTIES
Name EMB EMBEDDED (SW 6.1 and higher) Protection level read user variables Protection level write user variables Protection level extended overstore Protection level program control Protection level write setting data Protection level read parts program Protection level enter parts program Protection level parts program selection Protection level TEACH IN Protection level PRESET Protection level delete R parameters Protection level write R parameters Protection level for RS232C/interface parameterization Protection level for import data Protection level standard cycles Protection level user cycles Skip single block2 (SBL2) Access level select directory SYF Access level select directory DEF Access level select directory BD Write protection for first RPA area Start of the first RPA area End of the first RPA area Write protection for second RPA area Start of the second RPA area End of the second RPA area Write protection for third RPA area Start of the third RPA area End of the third RPA area Change tool designation and duplo Change tool type Reset-proof data storage for settings in the PROGRAM operating area String to be added to end of contour on completion of input Variants of tool offsets NC_properties: Bit 0: Digital drives, Bit 1: Software start-up switch
Refer to Doc.
IM2/IM4 IM2/IM4 IM2/IM4 IM2/IM4 IM2/IM4 IM2 IM2 IM2/IM4 IM2/IM4 IM2/IM4 IM2/IM4 IM2/IM4 IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM4 IM4 IM4 IM4 IM4 IM4 IM4 IM4 IM4 IM4 IM4 IM2 IM2 IM2 IM2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/7-119
10.00
Number ADV 9510 9511 9512 9513 9516 9517 9518 9519 EMB
Identifier ADV ADVANCED, USER_CLASS_DIRECTORY1_P USER_CLASS_DIRECTORY2_P USER_CLASS_DIRECTORY3_P USER_CLASS_DIRECTORY4_P USER_CLASS_DIRECTORY1_M USER_CLASS_DIRECTORY2_M USER_CLASS_DIRECTORY3_M USER_CLASS_DIRECTORY4_M
Name EMB EMBRDDED (SW 6.1 and higher) Protection level for network drive 1 for PROGRAM operating area Protection level for network drive 2 for PROGRAM operating area Protection level for network drive 3 for PROGRAM operating area Protection level for network drive 4 for PROGRAM operating area Protection level for network drive 1 for MACHINE operating area Protection level for network drive 2 for MACHINE operating area Protection level for network drive 3 for MACHINE operating area Protection level for network drive 4 for MACHINE operating area
Refer to Doc.
Number General ($MN_ ... ) 10350 10360 10361 11120 11270 18150
Identifier
Name
Refer to Doc.
Number of active digital NCK input bytes Number of active digital NCK output bytes Shorting of digital inputs and outputs Activate program-global variables (PUD) Activ. function: Save DEFAULT values of GUD. Reserve memory space for GUD
A4 A4
PGA
S7
Channel-specific ($MC_ ... ) 21015 21016 27800 28150 28530 INVOLUTE_RADIUS_DELTA INVOLUTE_AUTO_ANGLE_LIMIT TECHNOLOGY_MODE MM_NUM_VDIVAR_ELEMENTS MM_PATH_VELO_SEGMENTS End point monitoring for involute Automatic angle limitation for involute interpolation Technology in channel Number of write elements for PLC variables Number of storage elements for limiting path velocity in block
K1
Axis/channel-specific ($MA_ ... ) 30350 33050 35590 36060 36610 36620 SIMU_AX_VDI_OUTPUT LUBRICATION_DIST PARAMSET_CHANGE_ENABLE STANDSTILL_VELO_TOL AX_EMERGENCY_STOP_TIME SERVO_DISABLE_DELAY_TIME Output of axis signals for simulation axes Lubrication pulse distance Parameter set definition possible from PLC Maximum velocity/speed when axis/spindle stationary Length of the braking ramp for error states Cutout delay servo enable
A3 G2
1/A2/7-120
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Number
Identifier
Name
Refer to Doc.
Drive machine data ($MD_ ... ) 1403 1404 1417 1418 1426 1427 1428 1429 1602 1603 1604 PULSE_SUPPRESSION_SPEED PULSE_SUPPRESSION_DELA Y SPEED_THRESHOLD_X SPEED_THRESHOLD_MIN SPEED_DES_EQ_ACT_TOL SPEED_DES_EQ_ACT_DELA Y TORQUE_THRESHOLD_X TORQUE_THRESHOLD_X_DELA Y MOTOR_TEMP_WARN_LIMIT MOTOR_TEMP_ALARM_TIME LINK_VOLTAGE_WARN_LIMIT Shutoff speed for pulse suppression Time for pulse suppression nx for nact < nset signal nmin for nact < nset signal Tolerance band for nset = nact signal Delay time nset = nact signal Threshold torque Delay time nd < ndx signal Maximum motor temperature Time for motor temperature alarm DC link under voltage warning threshold
/IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/ /IAD/, /IAG/
7.3
System variables
Identifier Name Unassigned parts program memory (Free User Memory Buffer) Data on PLC (data type BYTE) Data on PLC (data type WORD) Data on PLC (data type DWORD) Data on PLC (data type REAL) Refer to Doc.
7.4
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A2/7-121
10.00
Notes
1/A2/7-122
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
1/A3/1-3 1/A3/1-3 1/A3/1-3 1/A3/2-5 1/A3/2-5 1/A3/2-5 1/A3/2-7 1/A3/2-10 1/A3/2-11 1/A3/2-17 1/A3/2-19 1/A3/2-21 1/A3/2-21 1/A3/2-22 1/A3/2-23 1/A3/2-24 1/A3/2-24 1/A3/2-28 1/A3/2-32 1/A3/2-32 1/A3/2-32 1/A3/2-36 1/A3/2-36 1/A3/2-41 1/A3/2-45 1/A3/2-52 1/A3/3-55 1/A3/3-55 1/A3/3-55 1/A3/4-57 1/A3/4-57
Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2 2.2.1 2.2.2 2.2.3 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 Motion monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Contour monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Positioning monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Zero speed monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clamping operations and monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . Speed setpoint monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Actual velocity monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoder monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoder limit frequency monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . Zero mark monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware faults and contamination signal . . . . . . . . . . . . . . . . . . . . . Monitoring of static limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Limit switch monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Working area limitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Types of protection zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coordinate system, orientation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definition of protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activation and deactivation of protection zones . . . . . . . . . . . . . . . . Protection zone violation and temporary enabling of individual protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Limits of protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/i
11.02 10.00
Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/Spindle-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/A3/4-57 1/A3/4-58 1/A3/4-58 1/A3/4-65 1/A3/4-66 1/A3/4-66 1/A3/4-67 1/A3/5-69 1/A3/5-69 1/A3/5-69 1/A3/5-71 1/A3/5-72 1/A3/5-72 1/A3/5-72 1/A3/6-77 1/A3/6-77 1/A3/6-77 1/A3/6-77 1/A3/7-81 1/A3/7-81 1/A3/7-81 1/A3/7-81 1/A3/7-81 1/A3/7-82 1/A3/7-82 1/A3/7-82 1/A3/7-83 1/A3/7-83 1/A3/7-83 1/A3/7-83 1/A3/7-83 1/A3/7-84 1/A3/7-85 1/A3/7-85 1/A3/7-85 1/A3/7-85 1/A3/7-85 1/A3/7-85 1/A3/7-86 J
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.1.1 5.1.2 5.2 5.2.1 5.2.2 Axis/spindle-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 6.2 6.2.1 Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definition and activation of protection zones . . . . . . . . . . . . . . . . . . .
Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.1.1 7.1.2 7.1.3 7.2 7.2.1 7.2.2 7.3 7.3.1 7.3.2 7.4 7.4.1 7.4.2 7.5 7.5.1 7.5.2 7.6 7.6.1 7.6.2 7.7 Axis/spindle-specific interface signals . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis monitoring functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Protection zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/A3/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
1.1 Axis monitoring functions
Axis monitoring
A comprehensive monitoring mechanism must be provided in order to protect the operator and machinery. The monitoring functions available include the following:
1.2
Protection zones
With protection zones, various elements of the machine and its equipment (e.g. spindle chuck, tool changer, toolholder, tailstock, probe) and the workpiece being machined are protected from incorrect movements (see Chapter 3).
NCU 570, NCU 571, NCU 571.2, CCU1: A maximum of 4 machinerelated protection zones NCU 572, 573.2, CCU2: A maximum of 10 machinerelated and channelspecific protection zones, total: 10 The protection zones are activated and deactivated in the NC parts program. At the beginning of a machining block, the control calculates the path and checks whether protection zones will be crossed. It is possible to travel into a protection zone as a result of an operator action. The deactivation applies until the protection zone has again been left.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/1-3
10.00
Notes
1/A3/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Detailed Description
2.1
2.1.1
Contour error
Contour errors are caused by signal distortions in the position control loop. A distinction is made between:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-5
10.00
CONTOUR_ TOL
Following error
Begin Processing
Fig. 2-1
Activation
The following error monitoring function is active in position control mode with:
S Linear and rotary axes S Position controlled spindles S With or without feedforward control S Acceleration and deceleration processes S Constant velocity phases S Continuous and discontinuous contours (e.g. circular path)
Following error monitoring is not active in follow-up mode.
Substitution
1/A3/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Effect
If the following error deviation is too large, this has the following effect:
S The alarm 25050 Contour monitoring is output S The affected axis/spindle is brought to a standstill with rapid stop (with open
position control loop) along a speed setpoint ramp. The braking ramp time is set in MD 36610: AX_EMERGENCY_STOP_TIME (duration of the braking ramp on error states).
Remedy
S Increase the tolerance band S The actual servo gain factor must correspond to the desired servo gain
factor set in MD 32200: POSCTRL_GAIN[n] (servo gain factor). On SINUMERIK FM-NC: MD 32260: RATED_VELO (rated motor speed) and MD 32250: RATED_OUTVAL (rated output voltage) must be checked.
S Check optimization of the speed controller S Check smooth running of the axes S Check machine data for traversing movements
(feedrate override, acceleration, max. velocities, ....)
2.1.2
Positioning monitoring
Function
In order to ensure that an axis reaches the required position within a specified time period, the timer that can be programmed in MD 36020: POSITIONING_TIME (time delay exact stop fine) is started at the end of each motion block (partial position setpoint = 0 at end of motion) and, when the timer runs out, a check made to ascertain whether the following error has dropped below the limit value for MD 36010: STOP_LIMIT_FINE (exact stop fine). Exact stop coarse and fine see: References: /FB/, B1, Continuous Path Mode, Exact Stop and Look Ahead The following diagram shows the interaction between the positioning, zero speed and clamping monitoring functions.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-7
10.00
V or s
Actual point Interface signal Clamping active (DB31, ... DBX2.3) CLAMP_POS_TOL Setpoint STANDSTILL_POS_TOL STOP_LIMIT_COARSE STOP_LIMIT_FINE
STANDSTILL_ DELAY_TIME
POSITIONING_TIME
Fig. 2-2
Activation
Positioning monitoring is always activated after termination of motion blocks according to the setpoint. This function is activated with:
Deactivation
When the programmed exact stop limit fine has been reached or a new partial position setpoint <> 0 output (e.g. for positioning according to Exact stop coarse following by block change), the positioning monitor is switched off and replaced by the zero speed monitor.
1/A3/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Effect
If the limit value for exact stop fine is not yet reached, the following action is performed:
S Output of alarm 25080 Positioning monitoring S The affected axis/spindle is brought to a standstill with rapid stop (with open
position control loop) along a speed setpoint ramp. The braking ramp time is set in MD 36610: AX_EMERGENCY_STOP_TIME (duration of the braking ramp on error states).
S Position control gain too low > alter machine data for position control gain
MD 32200: POSCTRL_GAIN[n] (servo gain factor), MD 32910: DYN_MATCH_TIME[n] (time constant for dynamic response matching)
S Drift too high (only for analog drives) > compensate drift
References: /FB/, K3, Compensations
Rule of thumb
S Position controller gain low > max. positioning monitoring time must be
selected to be relatively long
S Position control gain high > max. positioning monitoring time must be
selected to be relatively short
Note The size of the positioning window affects the block change time. The smaller these tolerances are selected the longer the positioning task will take, which in turn means a longer time before the next command can be executed.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-9
10.00 10.00
2.1.3
Function
Activation
Zero speed monitoring is always active after termination of the Delay zero speed monitoring or on reaching Exact stop fine, as long as no new traverse command has been given. This function is activated with:
Effect
S Output of alarm 25040 Zero speed monitoring S The affected axis/spindle is brought to a standstill with rapid stop (with open
position control loop) along a speed setpoint ramp. The braking ramp time is set in MD 36610: AX_EMERGENCY_STOP_TIME (duration of the braking ramp on error states).
1/A3/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
2.1.4
Activation
Clamping monitoring is activated by the interface signal Clamping active. It replaces zero speed monitoring during clamping. This function is activated with:
Effect
If the axis is pushed out of position beyond the clamping tolerance during clamping the following occurs:
S Output of alarm 26000 Clamping monitoring S The affected axis/spindle is brought to a standstill with rapid stop (with open
position control loop) along a speed setpoint ramp. The braking ramp time is set in MD 36610: AX_EMERGENCY_STOP_TIME (duration of the braking ramp on error states).
Cause of error
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-11
11.02 10.00
S Simple programming S Simultaneous motion of path axes during clamping and release.
Simplified programming
Releasing a clamping axis takes time. In continuous-path mode, therefore, you must program a stop (G09 or G60 or auxiliary function output) to ensure that the program stops before it reaches the block in which the clamped axis needs to be moved. By setting MD 36052: STOP_ON_CLAMPING[..] = H01, you can program the control to initiate the stop automatically in continuous-path mode. This is based on the assumption that the PLC will behave in a particular way, i.e.
S that the PLC will always release the axis from the clamp if an appropriate
motion command is applied.
S that the servo enable signal is reset for the clamped axis. Setting the servo
enable again therefore indicates to the NCK that the axis has been released from the clamp.
S the NCK therefore inserts a stop prior to the block in which a new axis
motion is programmed. This stop is automatically canceled if the servo enable is inserted immediately before the beginning of the block.
S if the servo enable signal is not set, the NCK stops the path motion at the
beginning of the block. If bit 0 is not set in MD 36052: STOP_ON_CLAMPING[..], the NCK behaves as in the earlier software version.
1/A3/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Clamp axis
Path velocity 0 N310 G0 Z50 N410 G0 A90 ; Turn rotary table 90 degrees
t [ms]
Fig. 2-3
Example of interface signals of a rotary table to be clamped, states on releasing axis from clamp. (The blocks in the diagram refer to the schematic example under Boundary conditions).
By setting MD 36052: STOP_ON_CLAMPING[..] is set to H03, the NCK optimizes the clamping function, thereby increasing productivity through simultaneous execution of operations. This method of optimization can be utilized only if the PLC behaves according to the following rules:
S The PLC will always release the axis from the clamp if an appropriate
motion command is applied.
S The axis may be released from the clamp for positioning purposes only.
Programming of the G0 indicates whether axes are being programmed.
S As a result, the NCK sets the motion command for the clamped axis on the
Look Ahead principle if G0 blocks have been programmed for path axes, causing the PLC to cancel the axis clamping instruction. This motion command is set a maximum of 2 G0 parts program blocks (incl. intermediate blocks generated by the NCK) in advance in order to maintain a clear correlation between the command and the block which generated it on the operator panel. Bit 1 in MD 36052: STOP_ON_CLAMPING[..] will work with the Look Ahead solution described only if bit 0 is set as well.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-13
11.02 10.00
Clamp axis
Fig. 2-4
Interface signals of the rotary table axis, states on releasing axis from clamp with Look Ahead. (The blocks in the diagram refer to the schematic example under Boundary conditions).
Clamping an axis takes time. In continuous-path mode, therefore, you must program a stop (G09 or G60 or auxiliary function output) to ensure that the axis is securely clamped before you start machining the part. By setting $MA_STOP_ON_CLAMPING[..] = H04, you can control the NCK to stop the axis automatically in continuous-path mode. This is based on the assumption that the PLC will behave in a particular way, i.e.
1/A3/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
S that the PLC will always clamp the axis if no motion command is applied. S that the axis need not be clamped while the other axes are being positioned.
Programming of the G0 indicates whether axes are being programmed. The stop command is not therefore set immediately at the beginning of the block containing the axis, but at the beginning of the next machining block. A machining block contains, e.g. preparatory function G1, but certainly not G0.
S the final assumption is that the axis is clamped if the feedrate override for
machining blocks is set to a value other than 0. If the axis is clamped before the next machining block, i.e. the feedrate override is other than 0 again, no further stop is generated and the axis is allowed to continue moving.
Motion command
Clamp axis
Servo enable
100 %
Feed override 0
Path velocity 0
N410 G0 A90 ; Turn rotary table N510 Go X100 ; Approach N520 G0 Z2 ; Approach N610 G1 Z4; Machine
t [ms]
Fig. 2-5
Interface signals of the rotary table axis, states on setting axis clamping with Look Ahead. (The blocks in the diagram refer to the schematic example under Boundary conditions).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-15
11.02 10.00
If bit 2 in MD 36052: STOP_ON_CLAMPING[..] is not set, the NCK behaves as in SW 6.3 and lower with respect to clamping.
Supplementary conditions
For bits 0 2 in MD 36052: STOP_ON_CLAMPING[..], the requirements specified above of the PLC and the machine must be met exactly. The Look Ahead option must also be used. Parts program blocks without path motion (e.g. M82/M83) interrupt continuous-path mode and thus also the Look Ahead function. If, for example, the parts program above is modified in the following way: N100 N101 N210 N220 N310 N320 N410 N420 N510 N520 N610 N620 G0 X0 Y0 Z0 A0 G90 G54 F500 G641 ADIS=.1 ADISPOS=5 G1 X10 G1 X5 Y20 G0 Z50 M82 G0 A90 M83 G0 X100 G0 Z2 G1 Z4 G1 X0 Y20 M30 then the following applies: ; Machine ; ; Retract ; <<<< No path motion ; Turn rotary table ; <<<< No path motion ; Approach ; ; Machine ;
If the setting in MD 36052: STOP_ON_CLAMPING[..] is modified via the parts program, it will remain valid after mode group RESET and POWER ON.
1/A3/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
If the clamping monitor is activated via interface signal Clamping in progress, the clamping tolerance is sufficient to ensure block advance in AUTOMATIC MODE (MD 36050: CLAMP_POS_TOL[..]). The exact stop condition can be selected more finely than the clamping tolerance. If the clamping operation has moved the axis out of its setpoint position, the position controller will readjust it as soon as the axial servo enable signal is set again. If the axis has been moved a long way from its exact stop position, the PLC can switch it to follow-up mode to ensure that it is returned to its setpoint position by interpolation when the servo enable signal is set again. The exact stop signals (exact stop fine, exact stop coarse) can be applied as triggers for switchover to follow-up mode.
2.1.5
Function
Speed setpoint monitoring is used to check whether the physical limits of the drives (10V maximum voltage for speed setpoint for analog drives or maximum permissible motor speed for digital drives) have been exceeded. The maximum speed setpoint can also be reduced and monitored for test mode.
Speed setpoint [ %]
100%
CTRLOUT_LIMIT[n]
e.g. 80%
Fig. 2-6
The setting in MD 36210: CTRLOUT_LIMIT[n] (maximum set speed) is also monitored for violation.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-17
10.00
The MD 36220: CTRLOUT_LIMIT_TIME[n] (delay for speed setpoint monitoring) is set to define how long the set speed can remain at the limitation before the speed setpoint monitoring function responds. The speed setpoint is composed of the speed setpoint of the position control, the forward compensation quantity (if feedforward control is active) and the drift compensation (only for analog drives).
Following errors
KV
Position controller
Fig. 2-7
Activation
S Linear and rotary axes S Open loop controlled and position controlled spindles.
Effect
When the maximum speed setpoint is exceeded and the delay time has expired (MD 36220: CTRLOUT_LIMIT_TIME[n]) the following occurs:
S Output of alarm 25060 Speed setpoint limitation S The affected axis/spindle is brought to a standstill with rapid stop (with open
position control loop) along a speed setpoint ramp. The braking ramp time is set in MD 36610: AX_EMERGENCY_STOP_TIME (duration of the braking ramp on error states).
1/A3/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
S Setpoint inputs are to high (accelerations, velocities, reduction factors) S Obstacle in machining room (e.g. machining table) > remove obstacle.
Note The application of the set speed limitation makes the control loop non-linear. This generally causes contour deviations if an axis remains in the set speed limitation.
2.1.6
Function
This function monitors the actual velocity for exceeding a permissible limit value programmed in MD 36200: AX_VELO_LIMIT[n] (threshold value for velocity monitoring).
Activation
The actual velocity monitor is operative whenever the active measuring circuit selected via IS Position measuring system 1 or 2 (DB31, ... DBX1.5, DBX1.6) is supplying actual values, i.e. still operating below the limit frequency. This function is activated with:
S Linear and rotary axes S Open loop controlled and position controlled spindles.
Effect
If the Threshold for velocity monitoring is exceeded the following occurs:
S Output of alarm 25030 Actual velocity alarm limit S The affected axis/spindle is brought to a standstill with rapid stop (with open
position control loop) along a speed setpoint ramp. The braking ramp time is set in MD 36610: AX_EMERGENCY_STOP_TIME (duration of the braking ramp on error states).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-19
10.00
Cause of error/remedy
S Check speed setpoint cable S Check actual values S Check position control direction S MD 36200: AX_VELO_LIMIT[n] (threshold value for velocity monitoring).
1/A3/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.2
2.2.1
Function
If the permissible limit frequency of a measuring system entered in MD 36300: ENC_FREQ_LIMIT[n] (encoder limit frequency) is exceeded, the positional synchronization (reference point) between the machine and control system will be lost. Correct position control is no longer possible. This state is signaled to the PLC.
Activation
The encoder limit frequency monitoring function is always active when the encoder is switched on. This function is activated with:
S Linear and rotary axes S Open loop controlled and position controlled spindles.
Effect
When the limit frequency of an encoder is exceeded the following occurs:
S The affected axis/spindle is brought to a standstill with rapid stop (with open
position control loop) along a speed setpoint ramp. The braking ramp time is set in MD 36610: AX_EMERGENCY_STOP_TIME (duration of the braking ramp on error states).
Cause of error/remedy
S After the axes have stopped, the position control is automatically resumed.
Note The axis affected must be rereferenced.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-21
10.00
2.2.2
Function
Activation
Effect
On encoders used for position control, zero mark monitoring is activated and triggers alarm 25020. The affected axis/spindle is brought to a standstill with rapid stop (with open position control loop) along a speed setpoint ramp. The braking ramp time is set in MD 36610: AX_EMERGENCY_STOP_TIME. If the axis/spindle is assigned to an interpolatory grouping with other axes/ spindles, then these are also brought to a standstill with rapid stop with following error reduction (specified partial position setpoint = 0). On passive encoders, when zero mark monitoring is activated, alarm 25021 is output. This alarm is only used for display purposes. For more information about synchronizing the PLC with various position measuring systems on machine axes or spindles, see: References: /FB1/, R1, Reference Point Approach 1
Error causes
S MD 36300: ENC_FREQ_LIMIT (encoder limit frequency) set too high. S Encoder cable damaged or encoder/encoder electronics faulty
1/A3/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.2.3
Function
The measuring circuit monitoring functions for alarms 25000, 25001 Hardware fault and alarms 25010, 25011 Contamination of measuring system are only active when the measuring system is active. This makes it possible to change an encoder on the non-active measuring system without having to restart the control. If one of these two errors is still present when the switchover to the other measuring system is made, the appropriate alarm is triggered.
Note If a hardware fault occurs in the control loop, the IS Referenced/synchronized 1/2 (DB31, ... DBX60.4 or DBX60.5) is removed; i.e. the axis must be rereferenced.
References:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-23
10.00
2.3
2.3.1
Hardware limit switch 2nd software limit switch (activated via PLC)
Fig. 2-8 Travel limits
EMERGENCY STOP
Activation
HW limit switch monitoring is active after the control has started up in all modes.
1/A3/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Effect
S Perform mode group reset S Move in the opposite direction (in JOG mode) S Correct the program.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-25
10.00
Activation
S The position of the software limit switch can be approached. S The monitoring function is no longer valid after a PRESET. It only becomes
active again after reference point approach.
S The 2nd software limit switch can be activated by the interface signal
2nd software limit switch plus/minus (DB3148, DBX12.3 or 12.2) from the PLC in order to reduce the working area, for example, if a tailstock has been swung into position. The change becomes active immediately. The The 1st software limit switch plus/minus is then deactivated.
S The SW limit switch monitor does not operate for endlessly turning rotary
axes, i.e. if MD 30310: ROT_IS_MODULO = 1. (Modulo conversion for rotary axis and spindle). In SW 5.3 and higher, the SW limit switches can be activated through programming with newconf.
1/A3/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Effect
Depending on the mode, different responses to software limit switch violation are possible: Case 1 Automatic modes without transformation, without overlaid motion, unchanged software limit switches The block that would violate the software limits switches is not started. The previous block is terminated properly.
Case 2 Automatic modes with transformation Response as in Case 1 or The block that violates the software limit switch is started. The axis stops at the limit switch. The other axes that are involved in the contour are decelerated and the program contour is exited.
Case 3 Automatic modes with overlaid motion The block that violates the software limit switches is started. Axes that are traveling with overlaid motion or have traveled with overlaid motion stop at the limit switch in question. The other axes that are involved in the contour are decelerated and the program contour is exited.
Case 4 JOG mode without transformation The axis stops at the software limit switch position.
Case 5 JOG mode with transformation The axis stops at the limit switch. The other axes involved in the transformation are decelerated and the specified contour is exited.
Case 6 Change of the valid software limit switch If the current position lies behind the new software limit switch when the software limit switch is switched over, the axis is decelerated with the maximum permissible axial acceleration. If the current position is in front of the software limit switch after the switchover, the procedure is as in Case 2.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-27
10.00
Response
S If the position of a software limit switch is reached in JOG mode and further
travel in this direction is programmed, alarm 10621 Axis at software limit switch + or is signaled; Case 4
S If while traversing geometry axes in JOG mode it is found that the position of
the geometry axis to be approached is greater than/less than the positive/negative software limit switch, alarm 10620 Axis reached software limit switch + or is signaled; Case 5.
S Program processing is aborted; Cases 1, 2, 3 S The direction keys are disabled in the approach direction;
Cases 1, 2, 3, 4, 5.
Remedy
S Perform mode group reset S Move in the opposite direction (in JOG mode) S Correct the program. S Cancel DRF offset.
2.3.2
Function
A check is made to see whether the tool tip P is within the protected working area. The value entered for the working area limitation is the final permissible permission for the axis. The MD 21020: WORKAREA_WITH_TOOL_RADIUS (allowance for tool radius with working area limitation) can be set to determine whether the monitor is to take account of the tool radius. One pair of values (minus/plus) is possible for each axis to describe the protected working area.
1/A3/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
The working area limitation can be defined or changed in two ways: Via the operator panel in the Parameters operating area using the following setting data: SD 43430: WORKAREA_LIMIT_MINUS (working area limitation minus) SD 43420: WORKAREA_LIMIT_PLUS (working area limitation plus) Changes are only possible in the reset state in AUTOMATIC mode and become active immediately. In JOG mode, changes are always possible but they only become active when a new movement is started. In a program with G25/G26. Changes become active immediately. A programmed motion has priority, it overwrites the value entered in the setting data and is retained after RESET and End of Program.
G26 Xmax
M Z
G25 Xmin
G25 Zmin
Working area limitation
G26 Zmax
Fig. 2-9
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-29
10.00
Activation
S The monitoring function is no longer valid after a PRESET. The working area
limits only become active again after reference point approach.
S During program execution, the working area limitation can be activated with
the modal G code WALIMON and deactivated with WALIMOF. The initial setting for the G code (working area limitation activated or deactivated on NC start) can be set in MD 20150: GCODE_RESET_VALUES[n] (initial setting of G groups).
S The working area limitation is not active with endlessly turning axes, i.e.
when MD 30310: ROT_IS_MODULO = 1. (Modulo conversion for rotary axis and spindle).
Effect
Depending on the mode, the response to a violation of the working area limitation can be different: Case 1 Automatic modes with/without transformation The block that violates the working area limitation is not started. The previous block is terminated properly.
Case 2 Automatic modes with overlaid motion The block that violates the working area limitation is started. Axes that are traversed with overlaid motion stop at the working area limitation.
Case 3 JOG mode with/without transformation The axis is positioned at the working area limitation and then stopped.
1/A3/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Responses
S If it is found during block preparation that the position the axis is to approach
is greater than/less than the positive/negative working area limitation, one of the following alarms is signaled: 10730 Working area limitation + or ; Case 1 10630 Axis reached working area limitation + or ; Case 2
S If in JOG mode, the position of a working area limitation is reached and the
intention is to continue traversing in the same direction, alarm 10631 Axis at working area limitation + or is signaled; Case 3
S Program processing is aborted; Cases 1, 2 S The direction keys are disabled in the approach direction;
Cases 1, 2, 3
Remedy
S Perform mode group reset S Check the working area limitation in the parts program (G25/G26) or in the
setting data.
S Move the axis in question away from the working area limitation (JOG
mode).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-31
10.00
2.4
2.4.1
Protection zones
General
Various elements of the machine and its equipment and the workpiece being machined can be protected from incorrect movements with the protection zone function. The following elements can be protected:
S Moving parts belonging to the tool (e.g. tool, toolholder) S Moving parts belonging to the workpiece (e.g. parts of the workpiece,
clamping table, clamping shoe, spindle chuck, tailstock).
Two and three dimensional protection zones are defined in the parts program or in system variables for the elements to be protected. These protection zones can be activated or deactivated in the parts program.
Note During machining in operating modes JOG, MDA or AUTOMATIC, the control checks whether the tool (and its protection zones) violate the protection zones of the workpiece.
Protection zone monitoring is channel-specific, i.e. all the active protection zones of a channel monitor one another.
2.4.2
1/A3/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
It is possible to define 2-dimensional or 3-dimensional protection zones as polygons with a maximum of 10 corner points. The protection zones can also contain arc contour elements. Polygons are defined in a previously defined plane. Expansion in the third dimension can be limited between 1 and +1. The following definitions are possible:
S Third dimension of protection zone from 1 to +1 S Third dimension of protection zone from 1 to upper limit S Third dimension of protection zone from lower limit to +1 S Third dimension of protection zone from lower limit to upper limit.
Protection zones relating to machine or channel
Protection zones can be defined as valid for one channel or for the whole machine. Whether the protection zone is classified as machine-related or channel-related does not influence the way it operates, but only affects the area (one or all channels) for which it is programmed. Application: Doubleslide turning machine
S The tool-related protection zones are assigned to channel 1 or 2. S The workpiece-related protection zones are assigned to the machine. S The coordinate system must be identical for both channels.
The maximum number of machine and channel-related protection zones can be defined in the following machine data:
S MD 18190: MM_NUM_PROTECT_AREA_NCK
(number of files for machine-related protection zones)
S MD 28200: MM_NUM_PROTECT_AREA_CHAN
(number of files for channel-specific protection zones)
Note A maximum of 10 machine-specific and 10 channel-specific protection zones per channel can be defined. The default setting is 0 protection zones. A change in the default setting affects the memory allocation of the NC.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-33
10.00
The coordinates of a protection zone must always be programmed as absolute values with respect to the reference point of the protection zone. When the protection zone is activated via the NC parts program it is possible to offset the reference point of the protection zone.
Examples
Examples for
+X
M W
P Z
Fig. 2-10
1/A3/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
+Y
Tool-related protection zone
+X +Z
Fig. 2-11
M W
Fig. 2-12
Example of application on turning machine with relative protection zone for tailstock
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-35
10.00
2.4.3
The space described by the protection zones must be in the Cartesian coordinate system. The protection zones are therefore described with geometry axes in the right-angled basic coordinate system (BCS) and thus in the coordinate system used for programming (with the exception of frames). Coordinates for tool-related protection zones must be given as absolute values referred to the tool carrier reference point F. Coordinates for workpiece-related protection zones must be given as absolute values referred to the zero point of the basic coordinate system.
Orientation
The orientation of the protection zones is determined by the plane definition (abscissa/ordinate) in which the contour is described and the axis perpendicular to the contour (vertical axis). The orientation of the protection zones must be the same for the tool and workpiece-related protection zones.
2.4.4
General
S Workpiece or tool-related protection zone S Orientation of protection zone S Type of limitation in the third dimension S Upper and lower limit of the protection zone in the third dimension S Protection zone active immediately (in the case of machine-related
protection zones only possible via system variable)
S Up to 10 contour elements.
If defined in the parts program, the data for the protection zone are stored in the relevant system variables.
1/A3/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Description of the protection zones starts with the subprogram: CPROTDEF(n,t,applim,appplus,appminus) for channel-specific protection zones NPROTDEF(n,t,applim,appminus,appplus) for machine-specific protection zones The following is included: CPROTDEF NPROTDEF n (int) t (Boolean) applim (int) 0: 1: 2: 3: Channel-specific protection area definition NCK-specific protection area definition Number of the defined protection zone TRUE: Tool-oriented protection zone FALSE: Workpiece-oriented protection zone Type of limitation in the third dimension No limitation in the third dimension Limitation in the plus direction of the third dimension Limitation in the minus direction of the third dimension Limitation in the minus and plus direction of the third dimension
appminus (Real) Value of limitation in the minus direction of the third dimension appplus (Real) Value of limitation in the plus direction of the third dimension
Orientation
The orientation of the protection zone is determined by the plane selection (G17, G18, G19). It may be necessary to store the plane selection before defining the protection zone and then to update it again. The contour description contains:
S Definition of the target point (two values for the plane) S For circle: definition of the interpolation parameters (2 values for the plane)
The protection zone contour is defined in the same way as a travel movement. The valid protection zone is the zone left of the contour. The contour of an internal protection zone must therefore described in the counterclockwise direction.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-37
10.00
S G0, G1 for straight contour elements S G2 for circular segments in the clockwise direction
(only permissible for workpiece-related protection zones because tool-related protection zones can only be convex).
+X
Internal protection zone P W Internal protection zone External and internal protection zone
Fig. 2-13
The last point in the contour definition (max. 11th point) must coincide with the first point of the contour definition. In the case of a rotation-symmetrical contour (e.g. spindle chuck) the whole contour must be described (not merely the contour to the turning center). Tool-related protection zones must be convex. If a concave protection zone is required, the protection zone must be divided up into several convex protection zones.
Note
1/A3/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Concave protection zones (not permissible) Fig. 2-14 Example of convex and concave tool-related protection zones
End of definition
The definition of a machine or channel-specific protection zone is completed with the subprogram EXECUTE(n). n (int) Variable (of no significance for protection zones)
All the blocks between the commands CPROTDEF or NPROTDEF and EXECUTE are non-executable blocks.
S Inch/metric switchovers with G70/G71 or G700/G710 are effective. S Reference point approach G74, travel to fixed stop G75, dwell time G4,
block search stop STOPRE and the M functions M0, M1, M2, M17, M30 are not permitted in the contour definition.
Protection zones can also be defined via the following system variables. The same conditions apply for this type of contour definition as apply for contour definition in the parts program.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-39
10.00
Meaning Identifier for Active immediately after referencing The protection zone is active immediately after power up of the control and referencing of the axes. FALSE: Protection zone is not immediately active TRUE: Protection zone is immediately active Identifier for Workpiece or tool-related protection zone 0: Workpiece-related protection zone 1: Reserved 2: Reserved 3: Tool-related protection zone Identifier for protection zone orientation 0: Polygon definition in plane of the 1st and 2nd geometry axes 1: Polygon def. in the plane of the 2nd and 1st geometry axes 2: Polygon def. in the plane of the 2nd and 3rd geometry axes Identifier for limitation of the protection zone in the axis perpendicular to the polygon definition 0: No limitation (1 < x < +1) 1: Limitation in pos. direction (1 < x < + limit) 2: Limitation in neg. direction ( limit < x < +1) 3: Limitation in both directions ( limitation < x < + limitation) Plus limitation of protection zone in the axis perpendicular to the polygon definition Minus limitation of protection zone in the axis perpendicular to the polygon definition Number of valid contour elements Contour type[i] Contour type (G1, G2, G3) of the ith contour element End point of the contour[i] Ordinate value End point of the contour[i] Abscissa value Center point of the circular contour[i] Absolute ordinate value Center point of the circular contour[i] Absolute abscissa value
Type BOOL
$SN_PA_T_W[n] $SC_PA_T_W[n]
INT
$SN_PA_ORI[n] $SC_PA_ORI[n]
INT
$SN_PA_LIM_3DIM[n] $SC_PA_LIM_3DIM[n]
INT
$SN_PA_PLUS_LIM[n] $SC_PA_PLUS_LIM[n] $SN_PA_MINUS_LIM[n] $SC_PA_MINUS_LIM[n] $SN_PA_CONT_NUM[n] $SC_PA_CONT_NUM[n] $SN_PA_CONT_TYP[n,i] $SC_PA_CONT_TYP[n,i] $SN_PA_CONT_ABS[n,i] $SC_PA_CONT_ORD[n,i] $SN_PA_CONT_ORD[n,i] $SC_PA_CONT_ABS[n,i] $SN_PA_CENT_ABS[n,i] $SC_PA_CENT_ORD[n,i] $SN_PA_CENT_ORD[n,i] $SC_PA_CENT_ABS[n,i]
$SN_ ... are system variables for NCK-specific protection zones. $SC_ ... are system variables for channel-specific protection zones. The index n corresponds to the number of the protection zone and starts with 0 ( 1st protection zone) The index i corresponds to the number of the contour element. The index starts with 0 ( 1st contour element). The contour elements must be defined in ascending order.
Note The system variables are not restored again during reorganization. This also applies if the data have been written with CPROTDEF, EXECUTE.
1/A3/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Data storage
The data blocks containing the protection zone definitions are stored in the following files:
Blocks Data block for NCK-specific protection zones Data block for channel-specific protection zones in channel 1 Data block for channel-specific protection zones in channel 2
Blocks All data blocks of the protection zones All data blocks of the protection zones All data blocks of the channel-specific protection zones
2.4.5
General
Individual basic frames can be deleted with MD 28210: MM_NUM_PROTECT_AREA_ACTIVE the maximum number of protection zones active simultaneously in a channel is defined. A maximum of ten channel-specific or machine-specific protection zones can be active at any one time.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-41
11.02 10.00
The default setting is 0 protection zones. A change in the default setting affects the memory allocation of the NC. In SW 6.4 and higher, MD 28212: MM_NUM_PROTECT_AREA_CONTUR can be used to control the dynamic memory required for partoriented protection zones with a large number of inside contours. The default setting leaves no memory reserve. The value of this machine data must be increased if it is displayed by an alarm 14710 when further protection zones are being activated.
When a protection zone is activated, the corresponding system data are checked and the protection zone is not activated if an error is detected. Possible errors are:
S Incomplete or contradicting contour definition. S A tool-related protection zone that is not convex. S Protection zone number does not exist. S The maximum possible number of active protection zones has been
exceeded.
xMov, yMov, zMov (Real) Offset of protection zone already defined in the geometry axes (Pre)activation is possible with or without offset of the protection zone in the 1st, 2nd or 3rd dimension. The offset is defined with reference to the toolholder reference point F (for tool-specific protection zones) or machine zero (for workpiece-related protection zones).
Note A protection zone cannot be activated in a single channel with different offsets simultaneously.
1/A3/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Preactivated protection zones can be made operative by the PLC user program via the PLC interface. For example, the relevant protection zone is activated and monitored before a tool sensor is moved into the working range.
X M W
Fig. 2-15
Protection zones are preactivated and a position offset defined in the parts program. The channel-specific IS Machine-related protection zone 1 ( ...10) preactivated (DB21, ... DBX272.0 273.1) or Channel-specific protection zone 1 ( ...10) preactivated (DB21, ... DBX274.0 275.1) are sent to the PLC to confirm which protection zones are preactivated in the current block of the parts program. The PLC is also told which
S activated protection zones in the current block are violated, S preactivated protection zones would be violated in the current block if the
preactivated protection zone were to be activated by the PLC. The information is transferred via the channel-specific IS machine-related protection zone 1 ( ...10) violated (DB21, ... DBX276.0 to DBX277.1) or channel-specific protection zone 1 ( ...10) violated (DB21, ... DBX278.0 bis DBX279.1). It is thus possible, for example, before moving parts into the working range to check whether the tool (or workpiece) is located in the area into which the part is to be moved. Protection zones preactivated by the NC can be made active or inactive via the PLC. When they are made active, it is not possible to specify the absolute position of the protection zone reference point. This is done when the protection zone is preactivated. The PLC uses channel-specific IS Activate machine-related protection zone 1 (...10) (DB21, ... DBX8.0 to DBX9.1) or Activate channel-specific protection zone 1 (...10) (DB21, ... DBX10.0 to DBX11.1) to activate or deactivate protection zones. Protection zones activated from the parts program cannot be deactivated by the PLC program.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-43
10.00
Note It therefore follows that protection zone numbers have to be programmed in the PLC user program which are then activated via the PLC. Preactivation in the parts program is only useful for these protection zones. It only makes sense to activate protection zones in the parts program which are introduced by the NC programmer and not entered in the PLC program.
System variables $SN_PA_ACTIV_IMMED[n] or $SC_PA_ACTIV_IMMED[n] can be programmed to (pre)activate machine-related and channel-specific protection zones immediately after power up and subsequent referencing. This activates machine-related protection zones in all channels. A relative offset cannot be programmed. Like the other protection zones, these protection zones, too, can be preactivated, activated and deactivated in the parts program.
Note If no tool-related protection zone is active, the tool path is checked against the workpiece-related protection zones. If no workpiece-related protection zone is active, the protection zone is not checked.
Block search
In block search with calculation, the last programmed state of a protection zone (deactivated, preactivated, activated) is taken into account.
Program test
(Pre)activated protection zones are monitored during program testing (in Automatic mode).
1/A3/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.4.6
General behavior
Workpiece and tool-related protection zones that are activated or deactivated are monitored for collision. If a protection zone violation is detected, behavior in the individual operating modes is as follows.
S NC-RESET S if an end of block lies outside the protection zone in AUTOMATIC and MDA
modes
S if an end of movement lies outside the protection zone in the manual modes S another protection zone has been activated and included.
On RESET, all the enabled protection zones become active again. If the program is started again or jog is introduced, the protection zones must be reenabled. If the current position lies within a protection zone that becomes active again after RESET, this protection zone must be enabled again on the first path movement.
Protection zones can be preactivated by the NC program. To make them fully operative, they must also be set to the operative state by the PLC. In contrast to the AUTOMATIC mode, a change in the PLC interface signals Make preactivated protection zones operative only has an effect on stationary axes in the geometry system. This means: If an inoperative protection zone is made operative once a motion has been started, it is not evaluated until the axes have stopped, possibly resulting in the output of an alarm. However, the warning signal Protection zone monitoring not guaranteed and the PLC interface signal Protection zone monitoring not guaranteed are output if a preactivated protection zone is made operative while a traversing motion is in progress.
Tool-related protection zones can be deactivated only in the parts program or, if they have been preactivated, by being rendered inoperative by the PLC.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-45
11.02 10.00
Machine data can be used to configure protection zones and working area limitations for geometry axis replacement.
Transformation changeover
Protection zones can also be activated during transformation changeover using machine data MD 10618: PROTAREA_GEOAX_CHANGE_MODE, bit 0 = 1. Bit 0 = 0 deactivates this function.
Note Axes that have been assigned to another channel are not taken into account. The last position to be approached is taken to be the end position. It is not taken into account whether the axis has traversed after changing channels.
1/A3/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
S If the movement in a block is from outside into the protection zone (N30),
deceleration is performed by the end of the previous block (N20) and the movement is stopped (see Fig. below). If the protection zone is preactivated but not activated by the PLC, machining is continued (case 1). If the protection zone is activated or preactivated and activated by the PLC, machining is stopped (case 2).
S If the starting point of the block is inside the protection zone, the movement
is not started. If the protection zone is violated, the alarm 10700 NCK protection zone violated in Automatic or MDA or 10701 Channel-specific protection zone violated in Automatic or MDI is triggered for the workpiece-related protection zone.
N10 N20 For a preactivated protection zone not activated by the PLC (case 1)
N30 N40
Protection zone
For a preactivated protection zone activated by the PLC or for an activated protection zone: after the protection zone is enabled (case 2)
N20
N30
N40
N30
N40
Overlaid motions of external ZO (zero offsets) or DRF are taken into account by protection zones if they are executed at a sufficiently early point in time. If an overlaid motion occurs while a protection zone is active or operative, an alarm is output as a warning. This alarm has no effect on the machining operation and resets itself if the transferred motion has been fully taken into account. The PLC signal Protection zone monitoring not guaranteed is set at the same time as the alarm.
When a workpiece-related protection zone has been violated, the operator can enable it temporarily with NC start in the AUTOMATIC and JOG modes so that it can be crossed. The alarm is reset and
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-47
10.00
Only workpiece-related protection zones can be enabled temporarily with NC start and entered by all tool-related protection zones including the programmed path. If, on NC start, the preactivated tool or workpiece-related protection zone is deactivated by the PLC after the alarm, machining is continued without the protection zone being enabled temporarily. If a fully operative, preactivated protection zone causes a machining interruption and the output of an alarm owing to protection zone violation, machining can be resumed on NC start if the PLC makes the zone inoperative again. If enabling of a protection zone is to be safeguarded better than with a simple NC start, NC start must be disabled or made dependent on other conditions in the PLC user program when this alarm is triggered. If the user does not want to permit entry into the protection zone, he can terminate the traversing movement with NC RESET. If several protection zones are violated at the same time by the movement, acknowledgment is required for each of these protection zones. With NC start the individual protection zones can then be enabled one after the other. Application for temporary enabling:
S Drilling a turned part: The drill is allowed to enter the protection zone of the
spindle chuck.
On preparation of the NC blocks, part of the offsets of geometry axes resulting from the overlaid motions are taken into account. If further offsets occur that could not be taken into account on preparation of the blocks, the channel-specific PLC interface signal Protection zone monitoring not guaranteed is set. This signal is set while offsets are active that cannot be taken into account. The signal can be set and reset within a block. Simultaneously to the PLC interface signal, a self-canceling alarm Protection zones not guaranteed is output. The following overlaid motions of geometry axes are taken into account in the preparation of blocks: 1. DRF offsets 2. Work offsets external 3. Fine tool offsets 4. Rapid retraction 5. Offsets generated by compile cycles 6. Oscillation 7. Concurrent positioning axes 8. Positioning axes
1/A3/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
The alarm is canceled or the PLC interface signal reset when the offsets from the overlaid motions are taken into account again or when the offsets are reduced to zero again.
Note The end position for positioning axes is taken to be a position in the whole block. This means that the alarm Protection zones not guaranteed is output when the positioning axis starts to move. The overlaid motions themselves are not limited, nor is there any intervention in processing of the program.
Starting point
Fig. 2-17 Limitation of motion through protection zones in JOG mode with several axes
After the axes in the geometry system have completed their motions (end of interpolation), the warning is reset and the final position checked to see whether it is within one or several protection zones.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-49
10.00
There are three possible situations in this case: 1. If the position is outside all active protection zones, the next traversing motion can be started normally. The appropriate PLC interface signals machine-specific or channel-specific protection zone violated are set for the protection zones that are enabled or just preactivated, but not yet operative. 2. If the position is within an active protection zone, the alarm Protection zone violated in JOG is generated, thereby disabling any traversing motions. The appropriate PLC interface signals Machine-specific or channel-specific protection zone violated are also set. The alarm is reset by a) temporary enabling of the affected protection zones b) deactivation of the relevant protection zones if they are preactivated c) deactivation of the protection zone in MDA. 3. If the position is on the protection zone limitation (position is still valid), no alarm is generated.
Note While any one axis in the geometry system is still oscillating, the status Motions of axes in geometry system completed cannot be reached. The warning remains active, the other axes in the geometry system can continue to traverse. The alarm Protection zone reached in JOG is not output if the motion of the first axis to be started is terminated by the limitation determined prior to the motion.
Manual modes
(Pre)activated protection zones are also monitored in manual modes (JOG, INC, handwheel).
Axis motions are limited in the JOG mode by means of software limit switches or the working area limitation. The protection zones are an additional limiting element on the traversing motion of the geometry axes. If the traversing motion of an axis is limited because it has reached a protection zone, then a self-resetting alarm Protection zone reached in JOG is generated. The alarm text specifies the violated protection zone and the relevant axis. It is assured that no protection zone will be violated when one axis is traversing in JOG. (This response is analogous to approaching software limit switches or a working area limitation). The alarm is reset 1. when an axis is traversed along a path that does not lead into the protection zone, 2. when the protection zone is enabled and 3. on NC Reset.
1/A3/2-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
If an axis starts to move towards a protection zone when it is at a protection zone limit, then a selfresetting alarm Protection zone reached in JOG is output and the motion is not started.
When a workpiece-related protection zone has been violated, the operator can also enable it temporarily in JOG mode so that it can be crossed. The alarm is reset and
S the movement started in the manual modes after a new travel command.
Protection zones can be enabled in JOG mode 1. if the current position is within a protection zone (alarm active) or 2. if a motion is to be started on the protection zone limit (alarm active). A protection zone is enabled if
S if the axis then starts to move again into the same protection zone.
Initiation of the motion causes
S the protection zone to be enabled, S the appropriate PLC interface signals Machine-specific or channel-specific
protection zone violated to be set and
S the enabling signals of the individual protection zones are canceled and S the appropriate PLC interface signal Machine-specific or channel-specific
protection zone violated is reset.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-51
10.00
2.4.7
Area of application
S Three-axis milling machine S Boring mill with constant drilling orientation S Lathes without transformation S The following is possible for lathes with Transmit and peripheral surface
transformation: Machine parts with protection zones defined in symmetry with rotation around the spindle axis (a DRF offset must not be active in this case). Protection zones on the workpiece to be machined
No tool protection zone monitoring is possible for machines with the following configurations:
S Milling machines with orientation axes S On lathes with Transmit or peripheral surface transformation no fixed
machine parts can be protected except for Machine parts with protection zones defined in symmetry with rotation around the spindle axis (a DRF offset must not be active in this case).
S Laser machines with orientation axes S If several tools are active simultaneously and these must monitor one
another.
Positioning axes
Only the end point is checked for geometry axes that traverse as positioning axes, the alarm Protection zone monitoring not guaranteed is generated during the motion.
Axis exchange
If an axis is not currently active in a channel because of the axis exchange function, the position of the axis last approached in the channel is taken as the currently valid position. If this axis has not yet been traversed in the channel, axis position = 0 is taken as the position. If is not possible to check the actual positions of the axis.
1/A3/2-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Machine-related protection zones must also be defined in the BCS. If a machine-related protection zone is to be active is different channels, the coordinate system of the geometry axes must have the same position in the basic coordinate system in all these channels. If this is not the case, the protection zone has different physical positions on the machine in the different channels. This is of special relevance to the activation of machine-related protection zones in the power up phase because these protection zones are then active in all the channels.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/2-53
10.00 10.00
Notes
1/A3/2-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Supplementary Conditions
3.1
The associated machine data are described in: References: /FB/, G2, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
3.2
Protection zones
Protection zone monitoring is operative only if the relevant axes are referenced. These are the axes of the geometry system in the case of the protection zones.
Availability
S SINUMERIK 840D with NCU 571/572/573 with SW 2 and higher S SINUMERIK 810D, SW 1 and higher S SINUMERIK FMNC with NCU 570 with SW 2 and higher
J
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/3-55
10.00 10.00
Notes
1/A3/3-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
4.1
10604 WALIM_GEOAX_CHANGE_MODE MD number Working area limitation when replacing geometry axes Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 6.3 Significance: This machine data specifies whether any active protection zones must be retained or deactivated when a geo axis is replaced. The machine data values have the following meanings: Bit 0 = 0: Working area limitation deactivated during geo axis replacement. Bit 0 = 1: Working area limitation activated during geo axis replacement.
10618 PROTAREA_GEOAX_CHANGE_MODE MD number Protection zone for switchover of geo axes Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 6.1 Significance: This machine data specifies whether any active protection zones must be retained or deactivated when a transformation is changed or a geo axis exchanged. The machine data is bitcoded with the following bit significance: Bit 0 = 0: Protection zones are deactivated when a transformation is changed. Bit 0 = 1: Active protection zones remain active after a transformation is changed. Bit 1 = 0: Bit 1 = 1: Protection zones are deactivated when a geo axis is exchanged. Active protection zones remain active when a geo axis is exchanged.
4.2
21020 WORKAREA_WITH_TOOL_RADIUS MD number Allowance for tool radius with working area limitation Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 3.1 Significance: = 1: The tool radius is taken into account with respect to the working area limitation. = 0: The tool radius is not taken into account.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/4-57
10.00
4.3
4.3.1
36020 POSITIONING_TIME MD number Time delay exact stop fine Default setting: 5 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: This MD defines the time after which the following error must have reached the limit value for exact stop fine when approaching a position (position partial setpoint=0 at the end of the movement). If this does not happen, alarm 25080 Positioning monitoring is triggered and the axis involved is brought to a standstill. The value set in the MD should be large enough to prevent triggering the monitoring function in normal operation because the whole traversing operation (acceleration, constant travel, deceleration) is monitored extensively by other functions. Related to .... MD 36010: STOP_LIMIT_FINE (exact stop fine)
36030 STANDSTILL_POS_TOL MD number Zero speed tolerance Default setting: 0.2 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: This MD provides the tolerance band for the following monitoring functions: D On completion of a motion block (partial position setpoint=0 at the end of the movement) it is monitored if the following error has reached the threshold for the STANDSTILL_POS_TOL (zero speed tolerance) after the programmable STANDSTILL_DELAY_TIME (delay time zero speed monitoring). At the end of a positioning operation (exact stop fine reached), the positioning monitor is replaced by the zero speed monitor. In this case, the axis is monitored to ascertain whether it has moved out of position by more than the distance set in MD: STANDSTILL_POS_TOL (zero speed tolerance).
If the setpoint position zero speed tolerance has been violated in any direction, alarm 25040 Zero speed monitoring is triggered and the axis is brought to a standstill. The zero speed tolerance must be greater than the Exact stop limit coarse. MD 36040: STANDSTILL_DELAY_TIME (delay time zero speed monitoring)
36040 STANDSTILL_DELAY_TIME MD number Delay time zero speed monitoring Default setting: 0.2 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: See MD 36030: STANDSTILL_POS_TOL (zero speed tolerance) Related to .... MD 36030: STANDSTILL_POS_TOL (zero speed tolerance)
1/A3/4-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
36050 CLAMP_POS_TOL MD number Clamping tolerance with interface signal Clamping active Default setting: 0.5 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: mm; degrees Data type: DOUBLE Applies from SW 1.1 Significance: IS Clamping active (DB31, ... DBX2.3) activates terminal monitoring. If the monitored axis has been pushed out of the setpoint position (exact stop limit) by more than the clamping tolerance, alarm 26000 Clamping monitoring is triggered and the axis is stopped. Special cases, errors, ... The clamping tolerance must be larger than the Exact stop limit coarse. Related to .... IS Clamping active (DB31, ... DBX2.3)
36052 STOP_ON_CLAMPING MD number Special functions for clamped axis Default setting: 0 Minimum input limit: 0 Maximum input limit: 0x07 Changes effective after NEW_CONF Protection level: 1 / 2 Unit: Data type: BYTE Applies from SW 6.4 Significance: Specifies how a clamped axis is to be treated. Bit 0 = 0: Must a clamped axis be moved again in continuous-path mode, measures must be taken in the parts program to ensure that the path axes are stopped to allow time for the axis to be released from the clamp. Bit 0 = 1: Must a clamped axis be moved again in continuous-path mode, measures must function stops the path motion in advance when necessary until the clamped axis can be moved again by the position controller, i.e. until the servo enable signal is set again. Bit 1 = 0: Must a clamped axis be moved again in continuous-path mode, measures must released from the clamp without application of Look Ahead. Bit 1 = 1: Must a clamped axis be moved again in continuous-path mode, measures must for the relevant axis is issued in the G0 blocks immediately in front of it to ensure that the PLC releases the axis clamp. Bit 1 is relevant only if bit 0 is set. Bit 2 = 0: If an axis must be clamped in continuous-path mode, measures must be taken in the parts program to ensure that the path axes are stopped to leave enough time for setting the clamp. Bit 2 = 1: If an axis must be clamped in continuous-path mode, the Look Ahead function stops the path motion before the next NonG0 block if the axis has not been clamped by then, i.e. the PLC has set the feedrate override value to zero. MD 36050: CLAMP_POS_TOL
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/4-59
10.00
36100 POS_LIMIT_MINUS MD number 1st software limit switch minus Default setting: 100 000 000 Minimum input limit: *** Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: mm; degrees Data type: DOUBLE Applies from SW 1.1 Significance: As for 1st software limit switch plus but the traversing range limitation is in the negative direction. The MD becomes active after reference point approach if PLC interface signal 2nd software limit switch minus is not set. If axis is not referenced. IS 2nd software limit switch minus (DB31, ... DBX12.2)
36110 POS_LIMIT_PLUS MD number 1st software limit switch plus Default setting: 100 000 000 Minimum input limit: *** Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: mm; degrees Data type: DOUBLE Applies from SW 1.1 Significance: A software limit switch can be activated in addition to a hardware limit switch. The absolute position in the machine axis system of the positive range limit of each axis is entered. The MD is active after reference point approach if PLC interface signal 2nd software limit switch plus has not been set. MD irrelevant for ... If axis is not referenced. Related to .... IS 2nd software limit switch plus (DB31, ... DBX12.3)
36120 POS_LIMIT_MINUS MD number 2nd software limit switch minus Default setting: 100 000 000 Minimum input limit: *** Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: mm; degrees Data type: DOUBLE Applies from SW 1.1 Significance: As for 2nd software limit switch plus but the traversing range limitation is in the negative direction. An interface signal from the PLC can select which of the two software limit switches 1 or 2 is to be active. e.g. MD irrelevant for ... Related to .... DB31, DBB12 Bit 2 = 0 1st software limit switch minus active for 1st axis 12 Bit 2 = 1 2nd software limit switch minus active for 1st axis If axis is not referenced. IS 2nd software limit switch minus (DB31, ... DBX12.2)
36130 POS_LIMIT_PLUS MD number 2nd software limit switch plus Default setting: 100 000 000 Minimum input limit: *** Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: mm; degrees Data type: DOUBLE Applies from SW 1.1 Significance: With this machine data a 2nd software limit switch position in the positive direction can be defined. An interface signal from the PLC can select which of the two software limit switches 1 or 2 is to be active. e.g.: MD irrelevant for ... Related to .... DB31, DBB12 Bit 3 = 0 1st software limit switch plus active for 1st axis 12 Bit 3 = 1 2nd software limit switch plus active for 1st axis If axis is not referenced. IS 2nd software limit switch plus (DB31, ... DBX12.3)
1/A3/4-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
36200 AX_VELO_LIMIT [n] MD number Threshold value for velocity monitoring Default setting: 11500 Minimum input limit: 0 Changes effective after NEW_CONF Protection level: 2 Data type: DOUBLE Significance:
Maximum input limit: plus Unit: mm/min rev/min Applies from SW 1.1 The threshold value for the actual velocity monitoring function is entered in this MD. If the axis has at least one active encoder and this is operating below its limit frequency, alarm 25030 Actual velocity alarm limit is activated and the axes brought to a standstill when the threshold value is exceeded. Settings: S For axes, a value that lies 1015% above MD: MAX_AX_VELO (maximum axis velocity) should be chosen. If temperature compensation, set in MD: TEMP_COMP_TYPE (temperature compensation) is active, the maximum axis velocity is increased by an additional factor which results from MD: COMP_ADD_VELO_FACTOR (velocity overshoot due to compensation). The following rule must therefore be applied when programming the velocity monitoring threshold value: MD: AX_VELO_LIMIT[n] > MD: MAX_AX_VELO * (1,1 ... 1,15 + MD: COMP_ADD_VELO_FACTOR) S For spindles a value should be selected for each gear stage which is 1015% higher than MD: GEAR_STEP_MAX_VELO_LIMIT[n] (maximum speed of gear stage). Coding of machine data index [n]: [closed-loop control set of parameters set no.]: 05 Please refer to the following for the effect of control parameters sets: References: /FB/, G2, Velocities, Setpoint/Actual Value Systems, Cycle Times
36220 CTRLOUT_LIMIT_TIME[n] MD number Delay time for speed setpoint monitoring Default setting: 0.0 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: This MD defines the period of time for which the speed setpoint may dwell at limit CTRLOUT_LIMIT[n] (max. speed setpoint) before the monitor responds. The monitoring function (and therefore also this machine data) is always active. When the limitation is reached, the position control loop becomes non-linear. Contour errors result if the axis subject to speed setpoint limitation is involved in generating the contour. Therefore the MD has the default value 0, i.e. monitoring responds when the speed setpoint reaches the limit. Codings of machine data index [n] : [setpoint branch]: 0
36300 ENC_FREQ_LIMIT[n] MD number Encoder limit frequency Default setting: 300000 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: Hz Data type: DOUBLE Applies from SW 1.1 Significance: The encoder limit frequency is entered in this MD. Two encoders can be used for each axis. The active encoder is determined by IS Position measuring system 1/2 (DB31, ... DBX1.5 or DBX1.6). Coding of machine data index [n]: [encoder no.]: 0 oder 1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/4-61
11.02 10.00
36302 ENC_FREQ_LIMIT_LOW MD number Encoder limit frequency resynchronization Default setting: 99,9 Minimum input limit: 0 Maximum input limit: 100 Changes effective after NEW_CONF Protection level: 2/7 Unit: % Data type: DOUBLE Applies from SW 3 Significance: The encoder frequency monitoring function operates with a hysteresis. MD 36300: ENC_FREQ_LIMIT is the frequency at which the encoder is switched off, ENC_FREQ_LIMIT_LOW is the frequency at which the encoder is switched on again. ENC_FREQ_LIMIT is entered directly in hertz-while ENC_FREQ_LIMIT_LOW is a percentage of ENC_FREQ_LIMIT. The default setting in MA_ENC_FREQ_LIMIT_LOW is normally sufficient. However, the limit frequency of the absolute track on absolute value encoders with EnDat interface is significantly lower than the limit frequency of the incremental track. By setting a low value in ENC_FREQ_LIMIT, it is possible to ensure that the encoder is not switched on again until the frequency is lower than the limit frequency of the absolute track and is thus not referenced until permitted by the absolute track. This referencing is implemented automatically for spindles. Example: EQN 1325: Limit frequency of electronics of incremental track: 430 kHz ===> ENC_FREQ_LIMIT = 430000 Hz Limit frequency of absolute track: Approx. 2000 encoder rev/min with 2048 marks, i.e. limit frequency (2000/60) * 2048 Hz = 68 kHz ===> ENC_FREQ_LIMIT_LOW = 68/430 = 15% See Subsection 2.3.4
Further information
36310 ENC_ZERO_MONITORING MD number Zero mark monitoring Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2/7 Unit: Data type: DWORD Applies from SW 1 Significance: This MD can be used to activate zero mark monitoring. Zero mark monitoring checks that the encoder always outputs the same number of pulses between two zero marks. Its meaning depends on the type of encoder used: MD 36310 = 0: No zero mark monitoring MD 36310 = 100 No zero mark monitoring, deactivation of all encoder alarms MD 36310 > 0: MD 30240: ENC_TYPE = 0 No zero mark monitoring MD 30240: ENC_TYPE = 3 No zero mark monitoring MD 30240: ENC_TYPE = 1 MD 30240: ENC_TYPE = 2 Number of changes detected for which an alarm should be output. Every time the encoder is switched on, counting starts at 0. MD 30240: ENC_TYPE = 4 Admissible deviation between absolut and incremental encoder signal in 0.5 encoder lines. An alarm will be generated if this value is exceeded. It is sufficient to enter one 0.5 encoder lines. MD 30240: ENC_TYPE = 5 No zero mark monitoring Encoder alarms are indicated by resetting alarm 20510. Poweron alarm 25000 is not used. On encoders used for position control, zero mark monitoring is activated and triggers alarm 25020. On passive encoders, when zero mark monitoring is activated, alarm 2051 is output. This alarm is only used for display purposes. Zero mark monitoring is not used for SSI encoders. Laser beam encoders are used. Encoder fault messages can be output frequently if the beam is interrupted. For this encoder, MD 30240: ENC_TYPE = 5 No zero mark monitoring is to be applied. See Subsection 2.2.2
Further information
1/A3/4-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
36400 CONTOUR_TOL MD number Tolerance band contour monitoring Default setting: 1.0 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: mm; degrees Data type: DOUBLE Applies from SW 1.1 Significance: Tolerance band for max. following error deviation. The permissible deviation between the real and the expected actual value is entered in this MD. A tolerance band is defined to avoid incorrect triggering of the following error monitoring function because of slight speed fluctuations which can result from normal control processes (e.g. when beginning cutting). This MD must be matched to the position controller gain, in the case of feedforward control to the precision of the control system model MD: EQUIV_SPEEDCTRL_TIME (equivalent time constant for speed loop feedforward control) and to the permissible acceleration rates and velocities. References See Chapter 2
36600 BRAKE_MODE_CHOICE MD number Deceleration behavior on hardware limit switch Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: If a rising edge for the axisspecific hardware limit switch is recognized while an axis is traversing, the axis is decelerated immediately. The type of deceleration used is defined in the machine data: Value = 0: Controlled deceleration according to the acceleration ramp defined in MAX_AX_ACCEL (axis acceleration). Value = 1: Fast deceleration (defined by setpoint = 0) with decrease of the following IS Hardware limit switch plus or minus (DB31, ... DBX12.1 or DBX12.0)
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/4-63
10.00
AX_EMERGENCY_STOP_TIME Length of the braking ramp for error states Minimum input limit: 0
Changes effective after NEW_CONF Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: 1. Axis: When the following monitoring functions respond, the affected axis is brought to a standstill with rapid stop (with open position control loop) along a braking ramp of the speed setpoint: S EMERGENCY STOP S Following error monitoring S Positioning monitoring S Zero speed monitoring S Clamping monitoring S Speed setpoint monitoring S Actual velocity monitoring S Encoder limit frequency monitoring (except on speed-controlled spindles) S Zero mark monitoring S Contour tunnel monitoring When the encoder limit frequency is exceeded, the speed setpoint is displayed as an actual value in the NC basic display. The period of time required to reduce the speed setpoint from its maximum value down to setpoint = 0 must be entered in MD 36610. The time taken to stop the axis depends on the actual speed setpoint at the time the monitoring responds.
t [s]
2. Spindle: In the case of spindles without an active position control, the speed-controlled spindle may continue to rotate with no rapid stop braking response when the encoder frequency monitoring function responds (i.e. no valid actual value information available). The speed setpoint monitor is active, but not the actual velocity monitor (MD 36200) when the encoder is active. The spindle speed setpoint limit has only a limiting effect (no alarm generation), the setpoint is limited to the maximum chuck speed (MD 35100) and displayed in IS Programmed speed too high. The current speed cannot be displayed because no valid actual value is currently available.
1/A3/4-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
AX_EMERGENCY_STOP_TIME Length of the braking ramp for error states Where interpolating axes are involved, maintenance of the contour during the deceleration phase cannot be guaranteed. Notice: If the value for the duration of the braking ramp for error states has been set too high, servo enable is canceled even though the axis/spindle is still traversing. It is then stopped abruptly with speed setpoint 0. The time set in MD: AX_EMERGENCY_STOP_TIME should therefore be less than the time set in MD: SERVO_DISABLE_DELAY_TIME (cutout delay servo enable). Machine data only takes effect in speed mode. This is not achieved with stepper motor without external encoder, because the internal position control mode is never left. MD 36620: SERVO_DISABLE_DELAY_TIME Cutout delay servo enable MD 36210: CTRLOUT_LIMIT Maximum speed setpoint MD 1404: PULSE_SUPPRESSION_DELAY
4.3.2
Protection zones
30800 WORK_AREA_CHECK_TYPE MD number Type of checking of working area limits Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective after NEW_CONF Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 5.2 Significance: With this MD it is possible to determine whether the working area limits are checked only for traveling axes (FALSE) or whether axes which are at standstill are also checked within a motion block (TRUE). The value FALSE corresponds to the behavior of SW 5 and lower. Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/4-65
10.00 10.00
4.4
4.4.1
43400 WORKAREA_PLUS_ENABLE SD number Working area limitation active in positive direction Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after: immediate Protection level: MMC-MD 9220 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: 1: The working area limitation of the axis concerned active in the positive direction. 0: The working area limitation of the axis concerned is switched off in the positive direction. The setting data is parameterized via the operator panel in the operating area Parameters by activating/deactivating the working area limitation. G code: WALIMOF
43410 WORKAREA_MINUS_ENABLE SD number Working area limitation active in negative direction Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after: immediate Protection level: MMC-MD 9220 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: 1: The working area limitation of the axis concerned is active in the negative direction. 0: The working area limitation of the axis concerned is switched off in the negative direction. The setting data is parameterized via the operator panel in the operating area Parameters by activating/deactivating the working area limitation. G code: WALIMOF
43420 WORKAREA_LIMIT_PLUS SD number Working area limitation plus Default setting: 100 000 000 Minimum input limit: *** Maximum input limit: *** Changes effective after: immediate Protection level: MMC-MD 9220 Unit: mm Data type: DOUBLE Applies from SW 1.1 Significance: The working range as defined in the basic coordinate system in the positive direction of the axis concerned can be limited with axial working area limitation. The setting data can be changed via the operator panel in the operating area Parameters. The positive working area limitation can be changed in the program with G26. SD irrelevant for ... G code: WALIMOF Related to .... SD 43400: WORKAREA_PLUS_ENABLE MD 10710: MN_PROG_SD_RESET_SAVE_TAB
1/A3/4-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
43430 WORKAREA_LIMIT_MINUS SD number Working area limitation minus Default setting: 100 000 000 Minimum input limit: *** Maximum input limit: *** Changes effective after: immediate Protection level: MMC-MD 9220 Unit: mm Data type: DOUBLE Applies from SW 1.1 Significance: The working range as defined in the basic coordinate system in the negative direction of the axis concerned can be limited with axial working area limitation. The setting data can be changed via the operator panel in the operating area Parameters. The negative working area limitation can be changed in the program with G25. SD irrelevant for ... G code: WALIMOF Related to .... SD 43410: WORKAREA_MINUS_ENABLE MD 10710: MN_PROG_SD_RESET_SAVE_TAB
4.4.2
Protection zones
None
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/4-67
10.00 10.00
Notes
1/A3/4-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Descriptions
5.1
5.1.1
Axis/spindle-specific signals
Axis monitoring functions
. Signals to axis (DB31, 32, ...) Axis 3 Axis 2 Axis 1 . . Signals from axis (DB31, 32, ...)
Clamping active (DBX2.3) Hardware limit switch plus (DBX12.1) Hardware limit switch minus (DBX12.0) 2nd software limit switch plus (DBX12.3) 2nd software limit switch minus (DBX12.2)
Fig. 5-1
Encoder limit frequency exceeded 1 (DBX60.2) Encoder limit frequency exceeded 2 (DBX60.3)
Signals to axis/spindle
DB 31, ... DBX2.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to .... References
Clamping in progress
Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Clamping active. The clamping monitoring function is activated. Clamping terminated. The zero speed monitoring function takes over from the clamping monitoring function. MD 36050: CLAMP_POS_TOL (clamping tolerance) Chapter 2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/5-69
10.00
DB 31, ... DBX3.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
DB 31, ... DBX12.1 and 12.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
DB 31, ... DBX12.3 and 12.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
1/A3/5-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
5.1.2
Protection zones
None
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/5-71
10.00
5.2
5.2.1
Channel-specific signals
Axis monitoring functions
None
5.2.2
Protection zones
Signals to channel (DB21, 22, ...) Signals from channel (DB21, 22, ...) Channel 2 Channel 1
Activate machinerelated protection zone 1 (DBX8.0) : Activate machinerelated protection zone 10 (DBX9.1)
Activate channel-related protection zone 1 (DBX10.0) : Activate channel-related protection zone 10 (DBX11.1) Enable protection zones (DBX1.1)
Machine-related protection zone 1 preactivated (DBX272.0) : Machine-related protection zone 10 preactivated (DBX273.1) Channel-specific protection zone 1 preactivated (DBX274.0) : Channel-specific protection zone 10 preactivated (DBX275.1) Machine-related protection zone 1 violated (DBX276.0) : Mach.-rel. prot. zone 10 violated (DBX277.1) Channel-specific protection zone 1 violated (DBX278.0) : Channel-specific protection zone 10 violated (DBX279.1)
Fig. 5-2
Signals to channel
DB2128 DBX1.1 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
1/A3/5-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
DB21, ... DBX8.0 9.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Only protection zones that have been preactivated in the parts program can be activated. The preactivated, machine-related protection zone 1 ( ...10) is deactivated by the PLC user program. The protection zone is immediately deactivated. Only protection zones that have been activated via the PLC and have been preactivated in the NC parts program can be deactivated. Before a sensor, for example, is moved into the working range, the relevant machinerelated protection zone can be activated.
Application example(s)
DB21, ... DBX10.0 11.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Only protection zones that have been preactivated in the parts program can be activated. The preactivated, channel-specific protection zone 1 ( ...10) is deactivated by the PLC user program. The protection zone is immediately deactivated. Only protection zones that have been activated via the PLC and have been preactivated in the NC parts program can be deactivated. Before a synchronous spindle, for example, is moved into the working range, the relevant machine-related protection zone can be activated.
Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/5-73
10.00
DB21, ... DBX272.0 273.1 Data block Signal state 0 or signal transition 1 > 0
Related to ....
DB21, ... DBX274.0 275.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Related to ....
DB21, ... DBX276.0 277.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Application example(s)
1/A3/5-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
DB21, ... DBX278.0 279.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/5-75
10.00 10.00
Notes
1/A3/5-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Examples
6
None
6.1
6.2
6.2.1
Protection zones
Definition and activation of protection zones
Request
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/6-77
10.00
Toolholder 40
Starting point
100
M W 100 110
Starting point
+80
210 Drill P
50 F R20 70
100
80
Fig. 6-1
Associated parts program: : DEF INT AB G18 NPROTDEF(0,FALSE,0,0,0) NPROTDEF(1,FALSE,0,0,0) G01 X100 Z0 G01 X100 Z0 G01 X100 Z110 G01 X100 Z110 G01 X100 Z0 EXECUTE(AB) CPROTDEF(1,FALSE,0,0,0) G01 X80 Z0 G01 X80 Z0 G01 X80 Z40 G01 X80 Z40 G01 X80 Z0 EXECUTE(AB) CPROTDEF(2,TRUE,0,0,0) G01 X0 Z50 G01 X190 Z50 G03 X210 Z30 I20 J0 G01 X210 Z20 G01 X0 Z50 G01 X0 Z50 EXECUTE(AB) ; Protection zone for spindle chuck
1/A3/6-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Associated system variable settings: : $SN_PA_T_W[0]=0 ; Protection zone for spindle chuck $SN_PA_ORI[0]=1 $SN_PA_LIM_3DIM[0]=0 $SN_PA_PLUS_LIM[0]=0 $SN_PA_MINUS_LIM[0]=0 $SN_PA_CONT_NUM[0]=5 $SN_PA_CONT_TYP[0.0]=1 $SN_PA_CONT_ORD[0.0]=100 $SN_PA_CONT_ABS[0.0]=0 $SN_PA_CONT_TYP[0.1]=1 $SN_PA_CONT_ORD[0.1]=100 $SN_PA_CONT_ABS[0.1]=0 $SN_PA_CONT_TYP[0.2]=1 $SN_PA_CONT_ORD[0.2]=100 $SN_PA_CONT_ABS[0.2]=110 $SN_PA_CONT_TYP[0.3]=1 $SN_PA_CONT_ORD[0.3]=100 $SN_PA_CONT_ABS[0.3]=110 $SN_PA_CONT_TYP[0,4]=1 $SN_PA_CONT_ORD[0,4]=100 $SN_PA_CONT_ABS[0,4]=0 $SC_PA_TW[0]=0 ; Protection zone for workpiece $SC_PA_ORI[0]=1 $SC_PA_LIM_3DIM[0]=0 $SC_PA_PLUS_LIM[0]=0 $SC_PA_MINUS_LIM[0]=0 $SC_PA_CONT_NUM[0]=5 $SC_PA_CONT_TYP[0.0]=1 $SC_PA_CONT_ORD[0.0]=80 $SC_PA_CONT_ABS[0.0]=0 $SC_PA_CONT_TYP[0.1]=1 $SC_PA_CONT_ORD[0.1]=80 $SC_PA_CONT_ABS[0.1]=0 $SC_PA_CONT_TYP[0.2]=1 $SC_PA_CONT_ORD[0.2]=80 $SC_PA_CONT_ABS[0.2]=40 $SC_PA_CONT_TYP[0.3]=1 $SC_PA_CONT_ORD[0.3]=80 $SC_PA_CONT_ABS[0.3]=40 $SC_PA_CONT_TYP[0.4]=1 $SC_PA_CONT_ORD[0.4]=80 $SC_PA_CONT_ABS[0.4]=0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/6-79
10.00
$SC_PA_T_W[1]=3 ; Protection zone for toolholder $SC_PA_ORI[1]=1 $SC_PA_LIM_3DIM[1]=0 $SC_PA_PLUS_LIM[1]=0 $SC_PA_MINUS_LIM[1]=0 $SC_PA_CONT_NUM[1]=6 $SC_PA_CONT_TYP[1.0]=1 $SC_PA_CONT_ORD[1.0]=0 $SC_PA_CONT_ABS[1.0]=50 $SC_PA_CONT_TYP[1.1]=1 $SC_PA_CONT_ORD[1.1]=190 $SC_PA_CONT_ABS[1.1]=50 $SC_PA_CONT_TYP[1.2]=3 $SC_PA_CONT_ORD[1.2]=210 $SC_PA_CONT_ABS[1.2]=30 $SC_PA_CENT_ORD[1,2]=190 $SC_PA_CENT_ABS[1,2]=30 $SC_PA_CONT_TYP[1.3]=1 $SC_PA_CONT_ORD[1.3]=210 $SC_PA_CONT_ABS[1.3]=20 $SC_PA_CONT_TYP[1.4]=1 $SC_PA_CONT_ORD[1.4]=0 $SC_PA_CONT_ABS[1.4]=50 $SC_PA_CONT_TYP[1,5]=1 $SC_PA_CONT_ORD[1,5]=0 $SC_PA_CONT_ABS[1,5]=50
Activation
The three protection zones in a channel are activated in a parts program by means of the following subprograms: NPROT(1,2,0,0,0) : CPROT(1,2,0,0,100) ; Protection zone for spindle chuck ; Protection zone for workpiece ; On activation the protection zone ; is shifted 100mm along the Z axis. ; Protection zone for toolholder.
: CPROT(2,2,0,0,0)
1/A3/6-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
7.1
7.1.1
Bit, byte
Name
Reference
4.04.7 6.0
V1 V1
7.1.2
DB number
Bit, byte
Name
Reference
Axis/spindle-specific 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 1.4 1.5 / 1.6 2.1 2.3 3.6 4.3 12.0 / 12.1 12.2 / 12.3 60.2 / 60.3 60.4 / 60.5 64.6 / 64.7 Follow up mode Position measurement system 1/Position measurement system 2 Servo enable Clamping in progress Velocity/spindle speed limitation Feed stop Hardware limit switch minus/Hardware limit switch plus 2nd software limit switch minus/2nd software limit switch plus Encoder limit frequency exceeded 1/Encoder limit frequency exceeded 2 Referenced/synchronized 1/Referenced/synchronized 2 Motion command R1 H1 V1 A2 A2 A2
7.1.3
Protection zones
None
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/7-81
10.00
7.2
7.2.1
7.2.2
Protection zones
Name
Reference
1.1 8.0 :
Activate machine-related protection zone 1 : Activate machine-related protection zone 8 Activate machine-related protection zone 9 Activate machine-related protection zone 10 Activate channel-specific protection zone 1 : : Activate channel-specific protection zone 8 Activate channel-specific protection zone 9 Activate channel-specific protection zone 10 Signals from channel Machine-related protection zone 1 preactivated : : Machine-related protection zone 8 preactivated Machine-related protection zone 9 preactivated Machine-related protection zone 10 preactivated Channel-specific protection zone 1 preactivated : : Channel-specific protection zone 8 preactivated Channel-specific protection zone 9 preactivated Channel-specific protection zone 10 preactivated Machine-related protection zone 1 violated : : Machine-related protection zone 8 violated Machine-related protection zone 9 violated Machine-related protection zone 10 violated Channel-specific protection zone 1 violated : : Channel-specific protection zone 8 violated Channel-specific protection zone 9 violated Channel-specific protection zone 10 violated
1/A3/7-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
7.3
7.3.1
7.3.2
Protection zones
Identifier
Name
Reference
Working range limitation for geometry axis replacement (SW 6.3 and higher) Protection zone for switchover of geo axes. (SW 4.3 and higher) Number of files for machine-related protection zones S7
7.4
7.4.1
Number
Identifier
Name
Reference
Axis/channel-specific ($MA_ ... ) 30310 32200 32250 32260 32300 32800 32810 32910 35160 36000 36010 36020 36030 36040 ROT_IS_MODULO POSCTRL_GAIN [n] RATED_OUTVAL RATED_VELO MAX_AX_ACCEL EQUIV_CURRCTRL_TIME [n] EQUIV_SPEEDCTRL_TIME[n] DYN_MATCH_TIME [n] SPIND_EXTERN_VELO_LIMIT STOP_LIMIT_COARSE STOP_LIMIT_FINE POSITIONING_TIME STANDSTILL_POS_TOL STANDSTILL_DELAY_TIME Modulo conversion for rotary axis and spindle Servo gain factor Rated output voltage Rated motor speed Axis acceleration Equivalent time constant current control loop for feedforward control Equivalent time constant speed control loop for feedforward control Time constant for dynamic matching Spindle speed limitation via PLC Exact stop coarse Exact stop fine Time delay exact stop fine Zero speed tolerance Delay time zero speed monitoring R2 G2 G2 G2 B2 K3 K3 G2 S1 B1 B1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/7-83
Number 36050 36052 36060 36100 36110 36120 36130 36610 36200 36210 36220 36300 36302 36310 36400 36500 36600 36620
Identifier CLAMP_POS_TOL STOP_ON_CLAMPING STANDSTILL_VELO_TOL POS_LIMIT_MINUS POS_LIMIT_PLUS POS_LIMIT_MINUS POS_LIMIT_PLUS AX_EMERGENCY_STOP_TIME AX_VELO_LIMIT [n] CTRLOUT_LIMIT[n] CTRLOUT_LIMIT_TIME[n] ENC_FREQ_LIMIT[n] ENC_FREQ_LIMIT_LOW ENC_ZERO_MONITORING [n] CONTOUR_TOL ENC_CHANGE_TOL BRAKE_MODE_CHOICE SERVO_DISABLE_DELAY_TIME
Name Clamping tolerance with IS Clamping active Special functions for clamped axis Maximum velocity/speed Axis/spindle stationary 1st software limit switch minus 1st software limit switch plus 2nd software limit switch minus 2nd software limit switch plus Length of the braking ramp for error states Threshold value for velocity monitoring Maximum speed setpoint Delay time for speed setpoint monitoring Encoder limit frequency Encoder limit frequency resynchronization Zero mark monitoring Tolerance band contour monitoring Maximum tolerance for position actual value switchover Deceleration behavior on hardware limit switch Cutout delay servo enable
Reference
A2
G2
G2
A2
7.4.2
Number
Protection zones
Identifier Name Reference
Axis/channel-specific ($MA_ ... ) 30800 WORK_AREA_CHECK_TYPE Type of checking of working area limits
None
1/A3/7-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
7.5
7.5.1
Identifier
Name
Reference
GCODE_RESET_VALUES[n] WORKAREA_WITH_TOOL_RADIUS
Reset G groups Allowance for tool radius with working area limitation
K1
7.5.2
Number
Protection zones
Identifier Name Reference
Channel-specific ($MC_ ... ) 28200 28210 28212 MM_NUM_PROTECT_AREA_CHAN MM_NUM_PROTECT_AREA_ACTIVE MM_NUM_PROTECT_AREA_CONTUR Number of files for channel-specific protection zones Number of simultaneously active protection zones in one channel Elements for active protection zones (DRAM) S7 S7 S7
7.6
7.6.1
Number
Axis/spindle-specific ($SA_ ... ) 43400 43410 43420 43430 WORKAREA_PLUS_ENABLE WORKAREA_MINUS_ENABLE WORKAREA_LIMIT_PLUS WORKAREA_LIMIT_MINUS Working area limitation active in positive direction Working area limitation active in negative direction Working area limitation plus Working area limitation minus
7.6.2
Protection zones
None
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/A3/7-85
10.00
7.7
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
1/A3/7-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (Part 1) Continuous Path Mode, Exact Stop and Look Ahead (B1)
1 2 Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.4 2.5 3 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Velocities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Initial setting for exact stop/continuous-path mode . . . . . . . . . . . . . . Block change with positioning axes . . . . . . . . . . . . . . . . . . . . . . . . . . . Stop for synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Exact stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Continuous-path mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Velocity reduction according to overload factor . . . . . . . . . . . . . . . . . Rounding according to path criterion . . . . . . . . . . . . . . . . . . . . . . . . . . Jerk limitation on path through velocity reduction . . . . . . . . . . . . . . . Machine axis-specific jerk limitation (SW 5 and higher) . . . . . . . . . . Smoothing of the path velocity (SW 5.3 and higher) . . . . . . . . . . . . Dynamic response adaptation (SW 6.3) . . . . . . . . . . . . . . . . . . . . . . . Look Ahead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NC block compressor COMPON, COMPCURV, -CAD . . . . . . . . . . 1/B1/1-3 1/B1/2-5 1/B1/2-5 1/B1/2-7 1/B1/2-7 1/B1/2-8 1/B1/2-9 1/B1/2-9 1/B1/2-13 1/B1/2-16 1/B1/2-18 1/B1/2-23 1/B1/2-25 1/B1/2-30 1/B1/2-34 1/B1/2-42 1/B1/2-47 1/B1/4-49 1/B1/4-49 1/B1/4-49 1/B1/4-49 1/B1/4-50 1/B1/4-56 1/B1/4-60 1/B1/5-61 1/B1/5-61 1/B1/5-61 1/B1/7-63 1/B1/7-63 1/B1/7-63
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 Smoothing of the path velocity (SW 5.3 and higher) . . . . . . . . . . . .
Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 7
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/i
10.00 10.00
1/B1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 1 Brief description
Brief Description
For continuous-path control, the CNC processes a parts program block by block. Only when the functions of the current block have been completed is the next block processed. Various requirements on the part, e.g. contour accuracy, processing time, workpiece surface, demand different block change criteria. There are two ways that the path axes can behave at block boundaries.
S The first way is called exact stop and means that all path axes must have
reached the set target position depending on an exact stop criterion before the next block change is initiated. To be able to fulfill the criterion, the path axes must reduce the path velocity at every block change which, however, delays the block change.
Expansion in SW 5.3
Smoothing of path velocity This function can be used to suppress short acceleration/deceleration processes under settable conditions if the resulting increase in the processing time does not exceed a given limit. The advantages are: Less excitations of machine resonance More constant cutting rate.
Expansion in SW 6.3
Adaptation of dynamic response This function allows reduced limit values for acceleration and jerk to be applied under settable conditions for short acceleration/deceleration processes. A slight increase in the machining time is the price to pay for less excitations of machine resonance. The processes:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/1-3
09.01 10.00
NC block compressor
COMPON/COMPCURV/COMPCAD/COMPOF CAD/CAM systems produce linear blocks which meet the configured accuracy specifications. In the case of complex contours, a large volume of data and short path sections can result. The short path sections restrict the processing rate. The compressor allows a certain number (max. 10) of short path sections to be combined in a single path section. The modal G code COMPON or COMPCURV can be used to activate an NC block compressor. This function collects a series of linear blocks during linear interpolation (the number is limited to 10) and approximates them within a tolerance specified in machine data via a 3rd-degree (COMPON) or 5th-degree (COMPCURV) polynomial. One traversing block is processed by the NC instead of a large number of small blocks. The COMPCAD G code can be used to select a further compression which optimizes the surface quality and velocity. The interpolation accuracy can again be specified in machine data. COMPCAD is processor and memory-intensive. It should only be used if surface quality enhancement measures cannot be incorporated in the CAD/CAM program. The programming is described in References: /PGA/ Programming Guide, Advanced, Chapter 5.
1/B1/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.1 General
Detailed Description
2.1
General
The exact stop and continuous-path mode functions are implemented for path axes that are all assigned to the same channel. Machine axes that are related interpolatively must have the same dynamic response, i.e. the same following error at any given velocity.
Path axes
The term Path axes refers to all machining axes assigned to the channel which are controlled by the interpolator calculating the path points in such a manner that:
S All axes involved start at the same time S All the axes involved travel with the correct velocity ratios S All the axes reach the programmed target position at the same time.
The accelerations of the axes can be different depending on the path, e.g. circle. Path axes can be geometry axes as well as special axes (e.g. synchronous axes, workpiece turning axes that are involved in the workpiece machining process).
Geometry axes
Geometry axes describe a two-dimensional or three-dimensional area in the workpiece coordinate system.
Orientation axis
This is the axis which aligns the tool in relation to the machining plane in 5-axis mode.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-5
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.1 General
10.00
Channel
A channel represents a separate CNC which, supported by a parts program, is capable of controlling the motions of axes and spindles as well as machine functions independently of other channels. The independence of the channels is guaranteed by:
S One feedrate override per channel S One rapid traverse override per channel S Channel-specific evaluation and display of alarms S Channel-specific display e.g. for
Axis positions Active G functions Active auxiliary functions Current program block
For further descriptions of channel functions see: References: /FB/, K1, Mode Group, Channels, Program Operation Mode.
1/B1/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.1 General
2.1.1
Velocities
The axis-specific velocity limits and acceleration limits apply to the path axes.
Feed
The programmed feedrate F corresponds to the path feedrate. This is modal and is programmed as a velocity e.g. in the units mm/min, inch/min or degrees/min. The feedrate is specified for the types of motion G01, G02 and G03. If path axes are programmed without a feedrate, the alarm 10860 No feedrate programmed is output.
Path feed
The path feed refers to axes that are assigned to the basic coordinate system. It represents the geometric sum of feedrates of axes involved in the interpolation.
Feedrate override
There is one common rapid traverse override for the path axes assigned to a channel.
Rapid traverse
Rapid traverse G00 allows an axis to be traversed at its fastest possible traversing velocity. If an axis is traversed at rapid traverse rate, the maximum axis velocity limits the rapid traverse velocities.
There is one common feedrate override for the path axes assigned to a channel.
The term zero cycle is applied to blocks whose path length is shorter than the distance that can be traveled on the basis of the programmed set feedrate and the interpolator cycle. For reasons of precision the velocity is reduced until at least one interpolator cycle is required for the distance. The velocity is then equal to or less than the quotient path length of the block divided by the IPO cycle.
2.1.2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-7
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.1 General
10.00
2.1.3
1/B1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.2 Exact stop
2.1.4
S PLC acknowledgment
If acknowledgment by the PLC is required for an auxiliary function that is output before or after the end of motion, the axes stop at the end of the block.
S Empty buffer
If the NC parts program requests that the preprocessing run be synchronized with the main run (empty the buffer), this involves an implicit blockrelated velocity reduction or exact stop. Stopping because of synchronization does not cause contour violations. However, stopping is undesirable, especially in continuous-path mode because it can cause backing off.
2.2
Exact stop
With the exact stop function, all the path axes must reach the program block end point. Only when all path axes have reached the exact stop criterion is the block change performed. The velocity at the block transition is practically zero. This means:
S That the path axes at the block end point are decelerated almost to rest
without overshoot.
S The delay for fulfilling the exact stop criterion prolongs the machining time. S The delay for fulfilling the exact stop criterion can cause backing off.
The use of the exact stop function is suitable for precise traversing of contours.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-9
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.2 Exact stop
10.00
S exact traversing of the contour on the basis of the criterion (e.g. exact stop
fine) can deviate from the programmed contour in order to achieve faster machining.
Axis direction minus Exact stop coarse Fig. 2-1 Representation of exact stop coarse/fine
S Interpolator end
When this criterion is applied, the block change is initiated when the interpolator has calculated the setpoint velocity of the axes from zero for an interpolation cycle. The block change is thus dependent on the dynamic response of the axes. The actual positions of the path axes are not monitored for the block change. With this criterion rounding of contours is possible at non-tangential block transitions because of the residual following error. With interpolator end, the auxiliary functions in the block are transferred to the PLC, if they are to be output at the end of motion, independently of continuous-path mode or of the active exact stop criterion of the exact stop function.
1/B1/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.2 Exact stop
Block change with G603 with G602 Actual point with G601
Setpoint
Fig. 2-2
The exact stop criteria can be selected in every NC parts program block by the following G codes:
S G601 Exact stop fine S G602 Exact stop coarse S G603 Interpolator end.
All three criteria can be activated globally by the programming their G function and are evaluated when the exact stop functions G60 or G09 are selected. An active criterion is deactivated by selecting another criterion. Certain situations in continuous-path mode can necessitate an exact stop which is then performed according to one of the three criteria (see Implicit exact stop in Section 2.3).
In SW 5 and higher, the standstill conditions: MD 36000: STOP_LIMIT_COARSE, MD 36010: STOP_LIMIT_FINE, MD 36030: STANDSTILL_POS_TOL can be reevaluated depending on the parameter set.
MD 36012
These three machine data are evaluated with the factor kept in MD 36012: STOP_LIMIT_FACTOR. The factor is valid for all three magnitudes together. The ratio between the three values is retained. If a new value is set in MD 36012: STOP_LIMIT_FACTOR it becomes effective on NEW CONF. The default selection of the factor is 1.0.
The effectiveness of programmed exact stop criteria can be disabled for G commands of group 1 if an exact stop criterion is defined for the G command of this group channel-specifically via machine data.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-11
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.2 Exact stop
10.00 10.00
S Rapid traverse:
G0
S Machining G codes:
G1, G2, G3, CIP, ASPLINE, BSPLINE, CSPLINE, POLY, G33, G34, G35, G331, G332, OEMIPO01, OEMIPO02, CT. References: /PG/, Programming Guide, Fundamentals, List of G functions MD 20550: EXACT_POS_MODE allows separate specification for rapid traverse and machining G codes in total.
Table 2-1 Possible settings for MD 20550: EXACT_POS_MODE Units place in MD: Setting for G0: Rapid traverse 0: With G0, the programmed exact stop conditions become active in each case. 1: With G0, irrespective of the programmed exact stop condition, G601 (positioning error fine) becomes active. 2: With G0, irrespective of the programmed exact stop condition, G602 (positioning error coarse) becomes active. 3: With G0, irrespective of the programmed exact stop condition, G603 (positioning error Setpoint reached) becomes active.
Tens place in MD: Setting for the machining G codes mentioned above 0: With the machining G codes, the programmed exact stop conditions become active in each case. 1: With the machining G codes, irrespective of the programmed exact stop condition, G601 (positioning error fine) becomes active. 2: With the machining G codes, irrespective of the programmed exact stop condition, G602 (positioning error coarse) becomes active. 3: With the machining G codes, irrespective of the programmed exact stop condition, G603 (positioning error Setpoint reached) becomes active.
Enter the addition of tens and units places true to the digits into the machine data as a value. This results in the range of values 0 33. (A leading 0 tens place can be omitted. Any combination of units and tens places as possible per table is permissible.
MD 20550: EXACT_POS_MODE = 2 The tens place is 0: With the machining G codes, the programmed exact stop conditions become active in each case. The units place is 2: With G0, irrespective of the programmed exact stop condition, G602 (positioning error coarse) becomes active. This has no influence on the response with the other G codes of the 1st group; i.e. in each case, the programmed exact stop condition is active.
1/B1/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
2.3
Continuous-path mode
In continuous-path mode, the path velocity is not decelerated for the block change in order to permit the fulfillment of an exact stop criterion. The objective of this mode is to avoid rapid deceleration of the path axes at the block change point so that the axis velocity remains as constant as possible when the program moves on to the next block. To achieve this objective, the function LookAhead is also activated when continuous-path mode is selected (see following Section). Continuous-path mode causes the smoothing and tangential shaping of sudden block transitions by local changes in the programmed contour. The extent of the change relative to the programmed contour can be limited by specifying the overload factor or smoothing criteria. Continuous-path operation causes:
S Rounding of the contour S Shorter machining times through elimination of braking and acceleration
processes that are required to comply with the exact stop criterion.
S A contour must be traversed as quickly as possible (e.g. with rapid traverse) S The exact contour may deviate from the programmed contour within a
specific tolerance for the purpose of obtaining a continuous contour. Continuous-path mode operation is suitable if:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-13
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00
In some cases, an exact stop needs to be generated in continuous-path mode to allow the execution of subsequent actions. In such situations, the path velocity is reduced to zero.
S If auxiliary functions are output before the traverse motion, the previous
block is only terminated when the selected exact stop criterion is fulfilled.
S If auxiliary functions are to be output after the traverse motion, they are
output after the interpolator end of the block.
Regardless of the implicit exact stop response, the path motion is braked down to zero velocity at the end of the block in cases where:
S Positioning axes have been programmed with syntax POS (see Section 2.1)
and have a traversing time that exceeds that of the path axes. Block change occurs when the exact stop fine of the positioning axes is reached.
S The current block contains traversing commands for geometry axes and the
following block traversing commands for synchronous axes or, alternatively, the current block contains traversing commands for synchronous axes and the subsequent block traversing commands for geometry axes.
1/B1/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
In continuous-path mode with auxiliary function output during traversal and short traversing blocks, the path velocity is reduced even before the PLC has acknowledged the auxiliary functions. In this way the axes can be brought to rest at the end of the block without violating the acceleration limits. At the end of the block acknowledgment is awaited before motion can continue. Acknowledgment during velocity reduction If an acknowledgment is received while the velocity is being reduced, the axis is accelerated up to the programmed path velocity again. To prevent this response in continuous-path mode, a time can be set in machine data MD10110: PLC_CYCLE_TIME_AVERAGE (maximum acknowledgment time) of the CNC within which the PLC of the CNC guarantees to acknowledge the auxiliary functions. Acknowledgment outside travel time If the travel time is shorter than the setting in MD 10110: PLC_CYCLE_TIME_AVERAGE due to the programmed path length and path velocity with auxiliary function output, the path velocity for the block is reduced with Look Ahead such that the block time equals the MD setting. If acknowledgment is not received within the time, the following prepared block cannot be processed and the axes are braked to rest with setpoint = 0 without considering the acceleration limits. Acknowledgment not received by block end If the acknowledgment is not received by the block end in long blocks in which the velocity has not needed to be reduced on account of the PLC acknowledgment time, the velocity is maintained until the block end and then reduced as described above. Acknowledgment during braking If the acknowledgment arrives while the axis is decelerating, the axis is not accelerated back up to the requested velocity.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-15
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00
2.3.1
Overload factor
The overload factor restricts step changes in the machine axis velocity at block ends. So that the velocity jump does not exceed the maximum load on the axis, the jump is derived from the acceleration of the axis. The overload factor defines the amount by which the acceleration rate of the machine axis set in MD 32300: MAX_AX_ACCEL (axis acceleration) may be exceeded for one IPO cycle. The velocity jump is the product of the axial acceleration * (overload factor 1) * interpolator cycle. The factor is stored in machine data MD 32210: MAX_ACCEL_OVL_FACTOR (overload factor for axial velocity jumps). Factor 1.0 means that only tangential transitions with finite velocity can be traversed. For all other transitions, the velocity is reduced to zero by changing the setpoint. This behavior is equivalent to the function Exact stop with interpolator end. This is undesirable for continuous-path mode, so the factor must be set to greater than 1.0. During start-up it is important that the factor must be reduced when the machine is subject to vibrations on a knee-shaped block transition and rounding is not to be used. MD 20490 IGNORE_OVL_FACTOR_FOR_ADIS can be set to ensure that block transitions are always smoothed irrespective of the set overload factor.
Continuous-path mode with velocity reduction according to overload factor can be selected modally in every NC parts program block by means of program code G64. Continuous-path mode G64 can be
S interrupted non modally when exact stop G09 is selected, S deselected when exact stop G60 is selected, S deselected when contour rounding G641 is selected.
1/B1/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
S With multiblock threads (series of several thread blocks), the block change
between the thread blocks is automatically performed with continuous-path mode G64.
Block change X
Path velocity
Block change
Gradient: ax Velocity of X axis Axial velocity jump Gradient: fOverlx * ax fOverlx > 1 IPO cycle Gradient: ay Gradient: fOverly * ay fOverly > fOverlx > 1 IPO cycle T Axial velocity jump T
Velocity of Y axis
Fig. 2-3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-17
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00 10.00
2.3.2
Note Rounding cannot and should not be used as a substitute for the following defined smoothing functions: RND, RNDM, ASPLINE, BSPLINE, CSPLINE.
Rounding is initiated by shortening discontinuously adjoining blocks and inserting one or two intermediate blocks at this point. The original block boundary is removed and can no longer be used for synchronization conditions (e.g. auxiliary function output parallel to motion, stop at end of block). With rounding, all synchronization conditions are best referred to the end of the shortened first block and not to the end of the intermediate rounding block. The following block is thus not started and with a stop at end of block, the contour of the following block can still be changed. Rounding is only performed if the block transition is to be traveled with finite velocity. The maximum path speed is influenced by the curvature. The maximum acceleration values of the axes are not exceeded. A block without traverse information for the path axes requires velocity zero and therefore no rounding. Rounding is also used if the traversal of the block transition requires a velocity that lies below the permissible velocity at the end of the block according to G64 (see overload factor). This means that very small knees in the contour (e.g. 0.5 degrees) can be overtravelled directly.
1 1 2 3 4 5 6
Movement is stopped between the two blocks. This occurs if ... The auxiliary function output is programmed before the movement in the following block The following block does not contain a path movement An axis which was previously a positioning axis traverses as a path axis for the first time in the following block An axis which was previously a path axis traverses as a positioning axis for the first time in the following block The previous block moves geometry axes and the following block does not The following block moves geometry axes and the previous block does not
1/B1/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
7 8 9 2 1
Before thread cutting: The following block uses G33 as a preparatory function and the previous block does not A change is made between BRISK and SOFT Axes involved in a transformation are not completely assigned to the path movement (e.g. with oscillation, positioning axes) The rounding block would slow down parts program processing. This occurs if ... When a rounding block is inserted between very short blocks. Since every block requires at least one interpolation cycle, the inserted block would double the processing time. A block transition is allowed to be crossed with G64 (continuous-path mode without rounding) without a reduction in velocity. Rounding would increase the processing time. Rounding is not parameterized. This occurs if ...
3 1 2 3
ADISPOS == 0 in G0 blocks. (default!) see below ADIS == 0 in nonG0 blocks. (default!) see below During the transition between G0 and non-G0 or non-G0 and G0 the smaller of the ADISPOS and ADIS values applies.
Synchronous axes
If a number of paths need to be synchronized (e.g. contour, special axis), then every path must always have its own rounding area. It is not practicable to take this into account precisely. Because of the special importance of the contour (geometry axis), the following procedure is followed:
Table 2-2 Rounding behavior with synchronous axes Original path for geometry axes Smooth Smooth orientation axis/ synchronous axis Smooth Knee-shaped curve Result for rounding path Defined path is traversed exactly 2 intermediate blocks, the geometry axes follow the path exactly, all orientation/synchronous axis paths are smoothed 1 intermediate block, the geometry axes perform rounding, all orientation/synchronous axes are smoothed 1 intermediate block, the geometry axes perform rounding, all orientation/synchronous axes are smoothed
Knee-shaped curve
Smooth
Knee-shaped curve
Knee-shaped curve
Path criterion
The size of the rounding range can be controlled by path criteria ADIS and ADISPOS. These are the precoincidences for the block change. ADIS and ADISPOS the distance which the rounding block may begin, at the earliest, before the end of the block or the distance after the end of block within which the rounding block must be terminated.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-19
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00
Fig. 2-4
Acute angles produce rounding curves with a large degree of curvature and therefore cause a corresponding reduction in velocity.
S ADIS and ADISPOS are global. S ADIS or ADISPOS must be programmed. If the default is zero, G641
behaves like G64.
S If only one of the blocks involved is rapid traverse G00, the smaller rounding
distance applies.
S If a very small value is used for ADIS, it is important that control makes sure
that every interpolated block, even an intermediate rounding block, contains at least one interpolation point. The maximum tool path velocity is therefore limited to ADIS/interpolation cycle (see zero blocks, Section 2.1).
S Regardless of ADIS and ADISPOS, the rounding area is limited by the block
length.
1/B1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
vb = remaining path
No corner rounding N6
N7
ADIS5 vb path N5
Fig. 2-5
Programming example
N1 G641Y50 F10 ADIS= 0.5 N2 X50 N3 X50.7 N4 Y50.7 N5 Y51.4 N6 Y51.0 N7 X52.1 In blocks with short distances (distance < 4 * ADIS and < 4 * ADISPOS respectively), the rounding distance is reduced so that a traversable part of the original block is retained. The remaining length depends on the axis path and is approximately 60% of the distance still to be traversed in the block. ADIS or ADISPOS are therefore reduced to the remaining 40% of the distance to be traversed. This algorithm prevents a rounding block being inserted for a very small change in contour. In this case, switchover to continuous-path mode G64 is automatic until rounding blocks can be inserted again.
Program code G641 can be inserted in any NC parts program block to modally select rounding according to a path criterion. Before or on selection, the path criteria ADIS/ADISPOS must be specified. Continuous-path mode G641 can be
S interrupted non-modally when exact stop G09 is selected, S deselected when exact stop G60 is selected, S deselected when velocity drop G64 is selected.
Response in SW 4.3 and higher
In addition to rounding using the command G641, rounding with axial tolerances enabled modally using G642 is possible in SW 4.3 and higher. In this case, the rounding does not take place within a defined ADIS range, but it ensures the axial tolerances defined in MD 33100: COMPRESS_POS_TOL are retained. In all other respects, the function is the same as G641. See also: References: /PG/, Programming Guide, Fundamentals, Section 5.2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-21
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00
Expansions SW 5.3
G643 is not used to generate a separate rounding block, but axis-specific block-internal rounding movements are inserted.
Expansions SW 6
The expansions described in the following make the behavior with G642 and G643 more precisely, and
Contour tolerance
A contour tolerance is specified using the setting data: SD 42465: SMOOTH_CONTUR_TOL This setting data is used to define the maximum tolerance for the the contour when rounding.
Orientation tolerance
To specify an orientation tolerance, the setting data: SD 42466: SMOOTH_ORI_TOL is used. This setting data is used to define the maximum tolerance for the tool orientation when rounding. This data defines the maximum permissible angular displacement of the tool orientation. This data is only effective if an orientation transformation is active.
Possible combinations
The effect of axis tolerances for G642 and G643 in MD 33100: COMPRESS_POS_TOL and the setting data introduced above are specified in the Table below.
1/B1/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
MD 20480: SMOOTHING_MODE must be loaded with two decimal places as follows: G642 (Value setting in the tens place of MD 20480) G642 uses axis-specific tolerances. These are set using the axis-specific MD 33100: COMPRESS_POS_TOL are set. (default). Response as in SW 4.3 When rounding with G642, the contour tolerance SD 42465: SMOOTH_CONTUR_TOL is used for the geometry axes. The remaining axes are rounded using the axis-specific tolerances in MD 33100: COMPRESS_POS_TOL. The orientation movement with G642 is rounded using the angle tolerance SD 42466: SMOOTH_ORI_TOL. All the other axes use the axis-specific tolerances MD 33100: COMPRESS_POS_TOL. Combination of the two options 1x and 2x. i.e. the following tolerances for G642are used: SD 42465: SMOOTH_CONTUR_TOL and SD 42466: SMOOTH_ORI_TOL. Further axes are rounded using the axis-specific tolerance. G643 (Value setting in the units place of MD 20480) G643 uses axis-specific tolerances. These are set using the axis-specific MD MA_COMPRESS_POS_TOL are set. (default). When rounding with G643, the contour tolerance SD 42465: SMOOTH_CONTUR_TOL is used for the geometry axes. The remaining axes are rounded using the axis-specific tolerances in MD 33100: COMPRESS_POS_TOL. The orientation movement with G463 is rounded using the angle tolerance SD 42466: SMOOTH_ORI_TOL. All the other axes use the axis-specific tolerances MD 33100: COMPRESS_POS_TOL. Combination of the two options 1x and 2x. i.e. the following tolerances for G643 are used: SD 42465: SMOOTH_CONTUR_TOL and SD 42466: SMOOTH_ORI_TOL. Further axes are rounded using the axis-specific tolerance.
With regard to their rounding behavior, the commands G642 and G643 differ as follows:
G642 With G642, the rounding travel is determined based on the shortest rounding travel of all axes. This value is taken into account when generating a rounding block. With G642, the rounding area results from the smallest tolerance setting.
G643 In the case of G643, the rounding travel of each axis can be different. The rounding travels are taken into account axis-specifically and block-internally . Very different specifications for the contour tolerance and the tolerance of the tool orientation can only have effect with G643.
Supplementary conditions
The expansions contour tolerance and orientation tolerance exist only in systems with the option polynomial interpolation. The orientation transformation option is required additionally for rounding of orientations with angle tolerance input.
2.3.3
Introduction
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-23
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00
Occurence of jerking
When sections of the contour consisting of blocks containing different degrees of curvature (e.g. circle straight line transitions) are machined, step changes in the acceleration rate occur in continuous-path mode. The severity of such jerks can be reduced by decreasing the path velocity at transitions between blocks containing different degrees of curvature. A smoother transition is thus achieved between the contour sections. The user sets the maximum jerk that may occur on a geometry axis during a block transition in MD 32432: PATH_TRANS_JERK_LIM (maximum axial jerk of geo axis at block limit). Jerk limitation at block transitions becomes implicitly active if continuous-path mode is programmed with G64 or G641 and SOFT acceleration characteristics. MD 32432: PATH_TRANS_JERK_LIM must be set to a positive value. A program excerpt with activation of jerk limitation is shown in Chapter 6.
Reduction of jerking
Jerk limit
Activation
Example
1/B1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
2.3.4
Introduction
Jerk limitation for the path movement was previously defined by machine data (MD 20600: MAX_PATH_JERK. This machine data specifies a maximum value for the change in acceleration for all machine axes.
MD 32431
The newly introduced machine data MD 32431 MAX_AX_JERK[..] allows you to set the change in acceleration separately for each machine axis, as is already the case for acceleration limitation in machine data MD 32300: MAX_AX_ACCEL[..]. MD 32431: MAX_AX_JERK[..] acts on the axes interpolated by the path and when SOFT (smooth acceleration curve) is active.
Benefits
S Jerk limitation for separate axes is performed not just in linear blocks, but
also in curved contours.
A basic distinction is made between the axis acceleration curve within a block and at the transition between two blocks. The global limitation of the path acceleration change for all axes of a channel is still implemented with the machine data:
Note MAX_PATH_JERK and SD_MAX_PATH_JERK are not scaled in G00 blocks. They are therefore unaffected by the relevant scale factors (G00_JERK_FACTOR and G00_ACCEL_FACTOR).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-25
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00 10.00
The following channel machine data can be set to avoid short-term overloading of the axis acceleration and axis jerk when the path velocity is changed on curved contours:
S MD 20602: CURV_EFFECT_ON_PATH_ACCEL:
Reduces the path velocity to leave a reserve for the path acceleration. This is valid for BRISK (time-optimized operation with abrupt changes in the acceleration curve) and SOFT (jerkfree acceleration curve).
S MD 20603: CURV_EFFECT_ON_PATH_JERK:
Reduces the path velocity to leave a reserve for the path jerk (only valid for SOFT). You use the settings of these machine data to shift the focus between velocity and acceleration time. The setting has no effect on machining with linear machine axis motion (linear blocks and no kinematic transformation active). It has only a minimal effect on slightly curved contours. The default settings of these machine data are selected such that they have no effect on machining. It is therefore possible to use old machine data without modification. The timing is unchanged. For JOG and POS movements (asynchronous axis motion), the previous jerk limitation via MD 32430: JOG_AND_POS_MAX_JERK continues to apply whenever MD 32420: JOG_AND_POS_JERK_ENABLE is enabled.
Scaling
MD SOFT_ACCEL_FACTOR scales the permissible acceleration for SOFT defined in machine data MD 32300 MAX_AX_ACCEL. This machine data has the same effect on POS and JOG axes. G00_ACCEL_FACTOR scales the permissible axial acceleration. A harder acceleration can therefore be used for a programmed G00 preparatory function than for machining. This axial machine data is only effective during path movements. The rapid traverse overlay in JOG mode is not affected (acceleration limitation for G00 = G00_ACCEL_FACTOR * MA_AX_ACCEL).
The machine data at the block transition are only valid when continuous-path mode (G64, G641) is active. The following machine data determine the response at the block transition:
1/B1/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
If the value of this machine data is greater than 1, a jump in axis velocity occurs at a corner. The associated peak in axis acceleration can be offset by the following effects:
Note The effect of this machine data depends on machine data SOFT_ACCEL_FACTOR (acceleration overload during SOFT), G00_ACCEL_FACTOR and G00_JERK_FACTOR.
MD: G00_JERK_FACTOR[..] scales the permissible axial jerk. This enables a higher axial jerk to be applied during positioning (programmed preparatory function G00) than during machining (jerk limitation for G00 = G00_JERK_FACTOR * MA_AX_JERK).
Note This axial machine data is only effective during path movements. The rapid traverse overlay in JOG mode is not affected.
MD 32432: PATH_TRANS_JERK_LIM[..] limits the jerk overshoot as a result of a jump in curvature at a tangential block transition. The axis jerk is offset by the same effects as the axis acceleration. The effect on the machine at a jump in curvature is much less pronounced than at a corner. In order to avoid a disturbing reduction in velocity, this machine data is also scaled by G00_JERK_FACTOR. (limits the jerk overshoot for G00 = G00_JERK_FACTOR * PATH_TRANS_JERK_LIM).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-27
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00 10.00
Y N140 Bend N90 F5000 SOFT G64 N100 G0 X0 Y0 Z0 N110 G1 X10 N120 G3 CR=5 X15 Y5 N130 G3 CR=10 X5 Y15 N140 G1 X5 Y17.679 m30 ;Line ;arc ;tangential arc ;straight line with 15-degree bend
10
N130
N110
N120 10 X
Fig. 2-6
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
11 0
12 0
13 0
14 0
15 0
N110
N120
N130
N140
Fig. 2-7
Short-term acceleration and jerk overshoots are non-critical in most situations. In such cases, the response at the block transition can be set separately from the response in the block. In other cases, you must set MD 32210: MAX_ACCEL_OVL_FACTOR[..] approximate to 1 and MD 32432: PATH_TRANS_JERK_LIM[..] equal to MD 32431: MAX_AX_JERK[..].
1/B1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
Note MD 32432: PATH_TRANS_JERK_LIM[..] was previously only used for geometry axes. In SW 5 and higher, the data is used for all axes traversing synchronously on the path. If you have already set the machine data previously for rotary axes, the program execution may be significantly slower. You can achieve the original performance by increasing the appropriate values. It is not possible to combine SOFT with a knee-shaped acceleration characteristic. The machine data MD 35240: ACCEL_TYPE_DRIVE[..] is referenced and the acceleration limit is correspondingly observed.
Activation
The path motion is defined by the G codes of the 1st G group (e.g. G1). The machine data MD 32431: MAX_AX_JERK[..] and MD 20603: CURV_EFFECT_ON_PATH_JERK are only valid for a path movement with SOFT active. MD 20602: CURV_EFFECT_ON_PATH_ACCEL is valid for a path movement with both SOFT and BRISK. The jerk limitation for individual axes is set via machine data. The values can also be set from the parts program with the corresponding access rights. Please note that this modification is not canceled by a RESET.
Example
G0 x0 y0 z20 BRISK G0 x100 SOFT G641 ADIS=.1 ADISPOS=3 z0 G1 F200 z10 G0 z20 x0 M17
; ; ; ; ;
Choosing the appropriate machine data thus automatically achieves a harder acceleration on a highly dynamic Z axis than on a soft X axis.
S N100:
MAX_AX_ACCEL is scaled with G00_ACCEL_FACTOR.
S N400:
MAX_AX_ACCEL is scaled with SOFT_ACCEL_FACTOR.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-29
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00 10.00
2.3.5
Application
In some applications in mold making, especially in the case of high speed cutting, it is desirable to achieve a constant path velocity.
The velocity control utilizes the given axis dynamic response. If the programmed feed rate cannot be achieved, the path velocity is brought to the parameterized axial limit values and the limit values of the path (velocity, acceleration, jerk). This can lead to repeated braking and acceleration on the path. If a short acceleration takes place during a machining function with high path velocity, and is thus followed almost immediately by braking, the reduction in the machining time is only minimal. Such acceleration, however, can lead to undesirable effects, e.g. machine resonances.
Solution: Smoothing
In some cases, it can therefore be reasonable to sacrifice of transient acceleration processes in favor of a smoother tool path velocity. The following sections describe the conditions and possible settings to avoid less effective accelerations/decelerations.
Benefits
If the velocity is controlled smoother and not every acceleration process is carried out, both advantages can be achieved without any undesired extended processing time.
Decision criteria
S Smoothing frequency for the tool path velocity (MD) S Tolerable loss in productivity when suppressing accelerations/decelerations
(MD).
1/B1/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
The user can define the following parameters to set the path smoothing:
MD 20460
A percentage value representing the maximum tolerated extended duration must be entered here in MD 20460: LOOKAH_SMOOTH_FACTOR. The % value defines how much may a machining step without accelerations may be longer than the appropriate step when performing the accelerations/ decelerations. This would be a worst case value where all acceleration within a subprogram, with the exception of the initial approach motion, is removed in smoothing. The actual extending of the program duration will always be less, and possibly even 0 if the criterion fails to become applicable for any of the programmed accelerations.It is thus feasible to enter values of 50100%, without this resulting in a significant extending of the machining time. It is thus feasible to enter values of 50100%, without this resulting in a significant extending of the machining time.
MD 20462: LOOKAH_SMOOTH_WITH_FEED defines that the programmed feedrate will also be taken into account in the smoothing. If the MD is set to 1 (default), the smoothing factor is observed especially exactly if the override is set to 100 %.
MD 32440
MD 32440: LOOKAH_FREQUENCY keeps a smoothing frequency for Look Ahead. Acceleration and braking processes running at a frequency higher than parameterized in this MD are smoothed or reduced in their dynamic response depending on their parameterization in MD 20460: LOOKAH_SMOOTH_FACTOR and MD 20465: ADAPT_PATH_DYNAMIC (see 2.3.6 Dynamic response adaptation). A minimum of all axes involved in the path is always determined. If vibration is excited in the mechanical system of these axes and if the corresponding frequency is known, then this MD should be set to a value smaller than this frequency. The integrated measuring function, for example, can be used to determine the required resonance frequencies. The minimum of these machine data 32440 is determined as a value fpath based on the axes involved in the path. For the smoothing, only acceleration processes are taken into account where the starting or end velocity of this movement is reached again within a time t = t2t1 = 2/fpath (see example).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-31
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
10.00 10.00
Note The smoothing of the path velocity does not lead to contour errors. Fluctuation of the axis velocity due to curves in the contour in the case of a constant path velocity can still occur and are not reduced here. Fluctuations in the path velocity due to specification of a new feed rate are similarly unaffected. This remains the responsibility of the programmer of the subprogram.
Activation
The smoothing of the path velocity is activated with the NEW CONFIG machine data MD 20460: LOOKAH_SMOOTH_FACTOR. With the default value 0, the function is deactivated.
Example
The following parameters are assumed: MD 20460: LOOKAH_SMOOTH_FACTOR = 10% MD 32440: LOOKAH_FREQUENCY[AX1] = 20Hz MD 32440: LOOKAH_FREQUENCY[AX2] = 20Hz MD 32440: LOOKAH_FREQUENCY[AX3] = 10Hz Drawings and explanations are to be found on the next page.
1/B1/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
The path involves the 3 axes X=AX1, Y=AX2, Z=AX3. The minimum from MD 32440: LOOKAH_FREQUENCY for these 3 axes is thus 10 Hz. This means that any acceleration which is completed within a period of t2t1 = 2/10Hz = 200ms is examined. The time t2 is the time after which, following acceleration from velocity v1, the velocity returns to this velocity v1. The extending of the execution time is also only considered within this range. The time characteristic without smoothing is shown in Fig. 2-8, the time characteristic resulting from smoothing in Fig. 2-9.
V v1 v2
t1
Fig. 2-8
t2
The course as shown in Fig. 2-8 results if the time t2t1 is greater than 200ms or if the additional program execution time t3t2 (illustration below) is greater than 10% (= MD 20460: LOOKAH_SMOOTH_FACTOR) of the value t2t1.
V v1 v2
t2 t1
Fig. 2-9 Characteristic of the smoothed path velocity
t3
The course as shown in Fig. 2-9 results if the time t2t1 is less than 200ms or if the additional program execution time t3t2 is 10% of t21 as the maximum.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-33
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
09.01 10.00
2.3.6
Introduction
In order to protect the mechanical components and drives on a machine tool against overloading, the dynamic response of individual axes can be limited by setting parameters in axial machine data. The maximum values for velocity and acceleration are specified by physical limit values (e.g. maximum speed and torque of drive). The maximum jerk in MD 32431: MAX_AX_JERK does not serve, however, to maintain a real physical limit, but is used to generate a softer setpoint characteristic for SOFT. With BRISK the maximum acceleration value in MD 32300: MAX_AX_ACCEL must be taken into account for this purpose.
With systems up to SW 5, the risk of overloading is reduced by setting the jerk and acceleration limits so low that highfrequency changes in the path velocity do not cause excessive oscillation. The lower dynamic response settings often exclude higher path velocities and thus the possibility of shorter program processing times.
In operation with dynamic response adaptation, highfrequency changes in the path velocity are automatically executed at reduced jerk or acceleration values. Lowfrequency changes to the path velocity are applied at the full dynamic response limits, but highfrequency changes at reduced dynamic limits. The result is the shortest possible machining time without undesirable excitation of machine resonance if the process has been optimally parameterized.
Note The procedure should be utilized in conjunction with the path velocity smoothing option described in Subsection 2.3.5. See example 2. In the default setting, path smoothing is automatically activated with the adaptation option.
The parameter settings and mode of operation are described in detail in the following subsection.
Supplementary conditions
Dynamic adaptation for the path axes is active in continuous-path mode (see activation) and exact stop with SOFT and BRISK.
In continuous-path mode, the optimum effect of the adaptation of the path dynamic response is achieved at 100% override, since calculations for this purpose are performed at the preprocessing stage. Significant deviations from this override factor or even switching operations while machining is in progress will adversely affect the desired smoothing effect.
1/B1/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
Adaptation of the path velocity is active for all contour motions. It is activated internally under the following conditions: With G0 blocks Stop requests during axis motion, e.g. by NC STOP, RESET, override setting 0. Changes to the override in continuous-path mode.
Dependencies
This factor for the dynamic path response can be specified in MD 20465: ADAPT_PATH_DYNAMIC. ADAPT_PATH_DYNAMIC[0] is operative for BRISK and reduces the acceleration rate. ADAPT_PATH_DYNAMIC[1] is operative for SOFT and reduces the permissible jerk.
Excitation frequency
The reduced limit values for jerk or acceleration must be applied only to braking or acceleration processes which will excite machine resonance. This is excitation which occurs at frequencies above the frequency set for each individual axis in MD 32440: LOOKAH_FREQUENCY. The minimum frequency is calculated from these machine data for all the axes involved in the path as the relevant frequency f at which the path velocity must be modified.
Activation
The function is activated if the reduction factor setting in MD 20465: ADAPT_PATH_DYNAMIC is > 1. A setting of 1 means no adaptation (default). MD 20465: ADAPT_PATH_DYNAMIC becomes operative after NEW CONFIG. In continuous-path mode, MD 20465: ADAPT_PATH_DYNAMIC > 1 also activates smoothing of the path velocity with a smoothing factor of 100% (if this is not already activated) in addition to adaptation of dynamic path response. This means that a value of 0 in MD 20460: LOOKAH_SMOOTH_FACTOR corresponds to a setting of 100%. Of the settings in MD 32440: LOOKAH_FREQUENCY for all axes involved in the path, the lowest frequency f is taken into account in defining the time window.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-35
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
09.01 10.00
Adaptations
In order to clarify the adaptation processes sketched below, please note the following basic principles: The size of the time window is tadapt = 1 / f
Example 1
The following parameters are assumed: $MC_ADAPT_PATH_DYNAMIC[0] = 1.5 $MC_LOOKAH_SMOOTH_FACTOR = 1.0 $MA_LOOKAH_FREQUENCY[AX1] = 20Hz $MA_LOOKAH_FREQUENCY[AX2] = 10Hz $MA_LOOKAH_FREQUENCY[AX3] = 20Hz BRISK is active. AX2 For path motions in which the 2nd axis (AX2) is involved, all braking and acceleration processes which take a maximum time of 1/10 Hz = 100 ms are adapted. AX1, AX3 If only the axis AX1 or AX3 is involved, then all braking and acceleration processes which take a maximum time of 1/20 Hz = 50 ms are adapted. This time is designated tadaptxy in the following diagrams: ; Path smoothing deactivated
1/B1/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
tadapt23 tadapt45
v2
tadapt01
tadapt67
t0
Fig. 2-10
t1
t2
t3
t4
t5
t6
t7
v2
t0
Fig. 2-11
t1
t2
t3
t4
t5
t6
t7
The acceleration process between t0 and t1 and the braking process between t2 and t3 are stretched to time periods tadapt01 and tadapt23 respectively as a result of the acceleration adaptation. The acceleration rate between t4 and t5 is reduced by a factor of 1.5, according to the parameterization in MD 20465: ADAPT_PATH_DYNAMIC[0]. Acceleration is still completed before the time period tadapt45 elapses. The braking process between t6 and t7 remains unchanged because it takes longer than tadapt67.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-37
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
09.01 10.00
Example 2
Combination with path velocity smoothing The following parameters are assumed: $MC_LOOKAH_SMOOTH_FACTOR = 80% $MC_ADAPT_PATH_DYNAMIC[0] = 3 $MA_LOOKAH_FREQUENCY[AX1] = 20Hz $MA_LOOKAH_FREQUENCY[AX2] = 20Hz $MA_LOOKAH_FREQUENCY[AX3] = 20Hz BRISK is active.
v12 v2
t1
Fig. 2-12
t2
t3
t4
t5
v2
t1
Fig. 2-13
t2
t3
t4
t5
Figures 2-12 and 2-13 clearly illustrate the difference the difference in the parameterization in MD 20465: ADAPT_PATH_DYNAMIC and MD 20460: LOOKAH_SMOOTH_FACTOR. The entire acceleration and braking characteristic between t1 and t2 is omitted because the increase in machining time without acceleration to v12 is less than the setting in MD 20460: LOOKAH_SMOOTH_FACTOR. The entire acceleration and braking characteristic between t3 and t5 does not fulfill this condition or takes longer than parameterized in MD 32440: LOOKAH_FREQUENCY (in this instance: 2/20Hz = 100ms). The acceleration process from t3 to t4 is, however, shorter than 50ms (=1/20Hz) and is therefore executed at a rate reduced by a factor of 3 (= MD 20465: ADAPT_PATH_DYNAMIC[0]).
1/B1/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
The acceleration up to t1 left over after path smoothing is stretched to the time period up to t1 by the dynamic path adaptation. This example shows why the dynamic path adaptation function should be used, whenever possible, in conjunction with path smoothing in continuous-path mode. Using a combination of the two functions means that only those acceleration or braking processes on the path that are not eliminated by path smoothing need to be optimized for the relevant machine.
Example 3
Effect of adaptation and smoothing of path velocity with SOFT The following parameters are assumed: $MC_LOOKAH_SMOOTH_FACTOR = 100% $MC_ADAPT_PATH_DYNAMIC[1] = 4 $MA_LOOKAH_FREQUENCY[AX1] = 10Hz $MA_LOOKAH_FREQUENCY[AX2] = 10Hz $MA_LOOKAH_FREQUENCY[AX3] = 20Hz
Limitation of path velocity due to axial dynamic response or programmed feedrate Path velocity characteristic
Fig. 2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-39
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
09.01 10.00
Omission of acceleration and braking, Smoother path velocity due to lower path jerk effect of path smoothing
The path velocity characteristic illustrated in Fig. 2-14 has been obtained through deselection of dynamic path response adaptation and path smoothing. This corresponds to the following parameter settings: $MC_ADAPT_PATH_DYNAMIC[1] = 1 $MC_LOOKAH_SMOOTH_FACTOR = 0% The path velocity characteristic illustrated in Fig. 2-15 has been obtained through selection of dynamic path response adaptation with minimum, and thus virtually inactive, path smoothing. The relevant parameters were set as follows: $MC_ADAPT_PATH_DYNAMIC[1] = 4 $MC_LOOKAH_SMOOTH_FACTOR = 1%
1/B1/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.3 Continuous-path mode
The path velocity characteristic illustrated in Fig. 2-16 has been obtained through selection of dynamic path response adaptation and path smoothing. For this purpose, path smoothing parameterization was selected that results per default when path smoothing is deselected and dynamic path response adaptation activated: $MC_ADAPT_PATH_DYNAMIC[1] = 4 $MC_LOOKAH_SMOOTH_FACTOR = 0% (equivalent to $MC_LOOKAH_SMOOTH_FACTOR = 100%) The last two examples show why the dynamic path adaptation function should be used, whenever possible, in conjunction with path smoothing in continuous-path mode. Using a combination of the two functions means that only those acceleration or braking processes on the path that are not eliminated by path smoothing need to be optimized for the relevant machine.
Startup
The basic prerequisites for starting up the dynamic path response adaptation function are as follows:
S Entry of this natural frequency in MD 32440: LOOKAH_FREQUENCY S Calculation of the dynamic response values.
Calculation of the dynamic response values
The procedure for using the jerk limitation option (SOFT) is described below, since this is a frequent application for the dynamic path adaptation function. The procedure described can, however, be applied equally to BRISK. 1. MD 20465: ADAPT_PATH_DYNAMIC[1] to default 1. 2. Now examine the positioning behavior of the individual axes from different velocities. The jerk for each axis must be set such that the desired positioning tolerance is maintained. It will be easier to maintain the tolerance with a higher jerk on positioning processes from higher velocities than when the axes are positioned from low velocities. 3. Enter the maximum permissible jerk for the least critical positioning velocity in MD32431: MAX_AX_JERK. 4. Now calculate the factor highest jerk / lowest jerk (for most critical velocity) for all axes and enter the maximum of all axes in MD 20465: ADAPT_PATH_DYNAMIC[1].
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-41
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.4 Look Ahead
10.00
2.4
Look Ahead
Look Ahead is a procedure in continuous-path mode (G64, G641) that achieves velocity control with Look Ahead over several NC parts program blocks beyond the current block. If the program blocks only contain very small paths, a velocity per block is achieved that permits deceleration of the axes at the block end point without violating acceleration limits. This means that the programmed velocity was not actually reached although a sufficient number of prepared blocks with virtually tangential path transitions was available. With the Look Ahead function it is possible to plan the acceleration and deceleration phase with approximately tangential path transitions in order to achieve a higher feedrate with shorter distances. Deceleration to velocity limits is possible with Look Ahead such that violation of the acceleration and velocity limit is prevented.
F1
N1
N2
N3
N4
N5 N6 N7
N8 N9 N10 N11
Fig. 2-17
Comparison of velocity response with exact stop G60 and continuous-path mode G64 with Look Ahead with short traversing paths.
Look Ahead takes plannable velocity limits into consideration such as:
S Exact stop at block end S Velocity limit in the block S Acceleration limit in the block S Velocity limit on block transition S Synchronization with block change at block transition.
1/B1/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.4 Look Ahead
Scope
Look Ahead functionality is available only for path axes, but not for spindles or positioning axes. Look Ahead performs block related analysis of the plannable velocity limits and determines the required braking ramp profiles on this basis. The LookAhead function is automatically adapted to block length, braking capacity and permissible path velocity. For safety reasons, the velocity at the end of the last prepared block must initially be assumed to be zero because the next block might be very small or be an exact stop block and the axes must have been stopped by the end of the block. With a series of blocks with high set velocity and very short paths, the speed can be increased in each block depending on the velocity value currently calculated by the Look Ahead function in order to achieve the required set velocity. After this it can be reduced so that the velocity at the end of the last block considered by the Look Ahead function can be zero. This results in a serrated velocity profile (see the following Fig.) which can be avoided by reducing the set velocity or increasing the number of blocks considered by the Look Ahead function.
Number of blocks
To achieve reliable axis traversal in continuous-path mode, the feedrate must be adapted over several blocks. The number of blocks considered by the Look Ahead function is calculated automatically and can optionally be limited by a machine data. The standard setting is 1 which means that LookAhead only considers the following block for velocity control. Because Look Ahead is especially important for short blocks (relative to the deceleration path), the number of blocks required is of interest for Look Ahead braking (see Fig. below). It is enough to consider the path length to be equal to the deceleration path that is required to brake from maximum velocity to rest. For a machine with a low axial acceleration of a = 1m/s2 and a high feedrate of vpath = 10 m/min, the following number of blocks is obtained with an attainable block cycle time of the control of TB = 10 ms. nLook Ahead = Deceleration path/Block length = ( vpath2/(2a)) / ( vpath * TB) = 9. Considering these aspects, it is advisable to adapt the feedrate over 10 blocks. The specified number of blocks for the Look Ahead function does not affect the Look Ahead algorithm and the memory requirement. Because the machining speed is often less than the maximum speed in a program, more blocks would be considered than is necessary, which uses unnecessary additional computer power. For this reason, the required number of blocks is derived from the velocity which is calculated from the programmed velocity multiplied by the value in MD 12100: OVR_FACTOR_LIMIT_BIN (limitation with binary-coded override switch) or by the 31st override value in MD 12030: OVR_FACTOR_FEEDRATE (weighting of the path feedrate override switch). The 31st override value must have the value of the highest override factor used. The number of blocks considered by the Look Ahead function is limited by the maximum number of NC blocks in the IPO buffer.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-43
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.4 Look Ahead
10.00
Vset
Vact
N14
N15
N16
N17
N18
N19 T
Fig. 2-18
Example of velocity control over several blocks. Number of Look Ahead blocks= 2
Velocity profiles
In addition to the fixed, plannable velocity limitations, Look Ahead can also take account of the programmed velocity. This makes it possible to achieve a lower velocity by applying Look Ahead beyond the current block.
One possible velocity profile contains the determination of the following block velocity. Using information from the current and the following NC block, a velocity profile is calculated from which, in turn, the required velocity reduction for the current override is derived. The calculated maximum value of the velocity profile is limited by the maximum path velocity. With this function it is possible to initiate a speed reduction in the current block taking override into account such that the lower velocity of the following block can be achieved. If the reduction in velocity takes longer than the traverse time of the current block, the velocity is further reduced in the following block. Velocity control is only ever considered for the following block. MD 20400: LOOKAH_USE_VELO_NEXT_BLOCK (LookAhead for following block velocity).
1/B1/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.4 Look Ahead
Override points
If the velocity profile of the following block velocity is not sufficient because, for example, very high override values, e.g. 200%, or constant cutting rate G96 is used with the result that the velocity must be further reduced in the following block, Look Ahead provides a way of reducing the programmed velocity over several NC blocks. By defining override points, Look Ahead then calculates a limiting velocity profile for each value. The required velocity reductions for the current override are derived from these profiles. The calculated maximum value of the velocity profile is limited by the maximum path velocity. The upper point should cover the velocity range that will be reached by the maximum value set in MD 12030: OVR_FACTOR_FEEDRATE (weighting of the path feed override switch) or by the value set in MD 12100: OVR_FACTOR_LIMIT_BIN (limitation with binary-coded override switch). In this way, a reduction of the velocity continuing into the block in which it is programmed can be avoided. If velocity reductions across block boundaries are required already at 100% override, a point must be set in the lower override range as well. The number of override points used per channel is specified in MD 20430: LOOKAH_NUM_OVR_POINTS (number of override switch points for Look Ahead). The associated points are stored in MD 20440: LOOKAH_OVR_POINTS (override switch points for Look Ahead). A combination of both procedures for calculating the velocity profile is possible and generally advisable because even with the default machine data for this function, the greater part of the range of overridedependent velocity restrictions is covered. Plannable velocity restrictions limit the overridedependent velocity restrictions. If neither of these procedures is activated, the set velocity is only ever approached in the current blocks.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-45
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.4 Look Ahead
10.00
Programmed setpoint
150%
100%
Fig. 2-19
Example of restricted velocity progressions with Look Ahead block selection = 4 and the following settings: MD 20430: LOOKAH_NUM_OVR_POINTS = 2 MD 20440: LOOKAH_OVR_POINTS = 1.5, 0.5 MD 20400: LOOKAH_USE_VELO_NEXT_BLOCK = 1
Block cycle programs are encountered in cases where the traversing distances of the NC blocks to be processed are so short that the Look Ahead function has to reduce the machine velocity to provide enough time for block preparation. In this situation, the path motion can be subject to continual acceleration and deceleration. The MD 20450: LOOKAH_RELIEVE_BLOCK_CYCLE (relief factor for the block cycle time) can be set to smooth such velocity fluctuations.
The Look Ahead function is selected and deselected with continuous-path mode (G64 and G641 respectively).
1/B1/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.5 NC block compressor COMPON, COMPCURV, -CAD
2.5
COMPON, COMPCURV
The modal G code COMPON or COMPCURV can be used to activate an NC block compressor. This function collects a series of linear blocks during linear interpolation (the number is limited to 10) and approximates them within a tolerance specified in machine data via a 3rd-degree (COMPON) or 5th-degree (COMPCURV) polynomial. One traversing block is processed by the NC instead of a large number of small blocks.
COMPCAD
The COMPCAD G code can be used to select a further compression which optimizes the surface quality and velocity. The interpolation accuracy can again be specified in machine data. COMPCAD is processor and memory-intensive. It should only be used if surface quality enhancement measures cannot be incorporated in the CAD/CAM program. The programming is described in References: Programming: /PGA/ Programming Guide, Advanced, Chapter 5. Compressor for orientation transformation: /FB3/ F2: 3 to 5-axis transformation The following three machine data are available for the compressor function:
S MD 20170 COMPRESS_BLOCK_PATH_LIMIT
This MD specifies the maximum path length for block compression. Longer blocks are not compressed.
S MD 33100 COMPRESS_POS_TOL
A tolerance can be specified for each axis. This value specifies the maximum deviation of the generated spline curve from the programmed end points. The higher the values, the more blocks can be compressed.
S MD 20172 COMPRESS_VELO_TOL
The maximum deviation of the path feed while the compressor is active in conjunction with FLIN and FCUB can be specified here (does not apply to the COMPCAD command).
The following machine data affect the compressor function and should contain the following values (specified in mm): MD 18360 MM_EXT_PROG_BUFFER_SIZE = 100 MD 28520 MM_MAX_AXISPOLY_PER_BLOCK = 3 MD 28530 MM_PATH_VELO_SEGMENTS=5 MD 28540 MM_ARCLENGTH_SEGMENTS = 10 MD 28070 MM_NUM_BLOCKS_IN_PREP=60 MD 28060 MM_IPO_BUFFER_SIZE=100 SD 42470 CRIT_SPLINE_ANGLE = 36 MD 20170 COMPRESS_BLOCK_PATH_LIMIT = 20 MD 20172 COMPRESS_VELO_TOL = 100
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/2-47
Continuous Path Mode, Exact Stop and Look Ahead (B1) 2.5 NC block compressor COMPON, COMPCURV, -CAD
09.01 10.00
SW 5.2 and lower MD 32310 MAX_ACCEL_OVL_FACTOR[AX1]=1.01 MD 32310 MAX_ACCEL_OVL_FACTOR[AX2]=1.01 MD 32310 MAX_ACCEL_OVL_FACTOR[AX3]=1.01 SW 5.3 and higher MD 32310 MAX_ACCEL_OVL_FACTOR[AX1] = <value for G64 mode> MD 32310 MAX_ACCEL_OVL_FACTOR[AX2] = <value for G64 mode> MD 32310 MAX_ACCEL_OVL_FACTOR[AX3] = <value for G64 mode> MD 20490 IGNORE_OVL_FACTOR_FOR_ADIS = 1 A tolerance can be specified for each axis: This value specifies the maximum deviation of the generated spline curve from the programmed end points. The higher the values, the more blocks can be compressed. MD 33100 COMPRESS_POS_TOL[AX1] = 0.01 MD 33100 COMPRESS_POS_TOL[AX2] = 0.01 MD 33100 COMPRESS_POS_TOL[AX3] = 0.01 Experience has shown that a value of 0.01 is suitable for most applications. If necessary, the value can be increased, e.g. to 0.02: MD 33100 COMPRESS_POS_TOL[AX1] = 0.02 MD 33100 COMPRESS_POS_TOL[AX2] = 0.02 MD 33100 COMPRESS_POS_TOL[AX3] = 0.02 NEWCONF
The new values are activated after the NEWCONF command. The corner rounding function G642 and jerk limitation SOFT can be used to achieve further improvements in surface quality. These commands must be entered at the start of the program. COMPCAD SOFT G642 COMPOF terminates the compressor function. Any motion block with the following simple syntax is compressed: N... G1 X... Y... Z... F... where ... is a number and X, Y, Z are axis names. Blocks with extended addresses, e.g. C=100 or A=AC(100), and blocks with auxiliary functions are not compressed. NC SW 6.3 and higher: Motion blocks with extended syntax are not also compressed.
1/B1/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.1 General machine data
Supplementary Conditions
3.1 Smoothing of the path velocity (SW 5.3 and higher)
Smoothing of the path velocity is only effective in continuouspath mode with Look Ahead over several blocks with SOFT and BRISK, but not with G0. The cycle times of the control must be parameterized such that the preprocessing is provided with enough blocks to be able to analyze an acceleration process.
4.1
10110 PLC_CYCLE_TIME_A VERAGE MD number Average PLC acknowledgment time Default setting: 0.1 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: Time information for the CNC about OB1 cycle time in which it is guaranteed that the auxiliary functions can be acknowledged. In continuous-path mode with auxiliary function output, the time set in the MD is used to control the path feed during motion so that the minimum traversing time corresponds to the time specified. This enables a smooth velocity progression which is not affected by waiting for the PLC acknowledgment. The internal time basis is the IPO cycle. From P5.1, the MD is no longer evaluated. Using this MD, it is possible to delay status transitions: Channel operating / Channel RESET/Channel failed > Channel interrupted on RESET for the PLC. When Channel interrupted is output, the NCK waits for at least the time set in the MD + one IPO cycle.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/4-49
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.2 Channel-specific machine data
10.00 10.00
4.2
20400 LOOKAH_USE_VELO_NEXT_BLOCK MD number Look Ahead for programmed following block velocity Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: Look Ahead is active for the programmed following block velocity. A velocity profile is automatically generated for the required velocity reduction of the current override.
20430 LOOKAH_NUM_OVR_POINTS MD number Number of override switch points for Look Ahead Default setting: 1, 1, 1, 1, 1, ... Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 1.1 Significance: This data defines the number of calculated override points for the overridedependent velocity restrictions per channel to be considered by Look Ahead. LOOKAH_NUM_OVR_POINTS = 0: No velocity profile based on the override points stored in MD 20440: LOOAH_OVR_POINTS (override switch points for Look Ahead) is calculated. LOOKAH_NUM_OVR_POINTS = 1: A velocity profile base on the first override point in MD: LOOHAH_OVR_POINTS (override switch points for Look Ahead) is calculated. LOOKAH_NUM_OVR_POINTS = 2: Two velocity profiles based on the two override points in MD: LOOHAH_OVR_POINTS (override switch points for Look Ahead) is calculated. Related to .... MD 20440: LOOKAH _OVR_POINTS (override switch points for Look Ahead)
20440 LOOKAH_OVR_POINTS MD number Override switch points for Look Ahead Default setting: {1.0, 0.2},{1.0, 0.2}, ... Minimum input limit: 0.2 Maximum input limit: 2.0 {1.0, 0.2} Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: For defining the override points for the override-dependent velocity restrictions per channel to be considered by Look Ahead. Look Ahead calculates a limiting velocity profile for each override point enabled by MD: LOOKAH_NUM_OVR_POINTS (number of override switch points for Look Ahead). The velocity reductions required for the current override are derived using these profiles. The points must be entered for each channel in descending order, e.g. 2.0, 1.0 (2.0) correspond to 200%, 1.0 corresponds to 100% override). The upper override point should be close to the upper value in MD: OVR_FACTOR_FEEDRATE (weighting of path feedrate override switch) or in MD: OVR_FACTOR_LIMIT_BIN (limitation with binary-coded override switch). The override points should match the override range valid for the machine and control. Related to .... MD 20430: LOOKAH_NUM_OVR_POINTS (number of override switch points for Look Ahead)
1/B1/4-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.2 Channel-specific machine data
20450 LOOKAH_RELIEVE_BLOCK_CYCLE MD number Relief factor for the block cycle time Default setting: 0.0 Minimum input limit: *** Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: Data type: DOUBLE Applies from SW 2 Significance: Block cycle problems occur for the following reason: The traversing length of the NC blocks to be processed is so short that the Look Ahead function must reduce the machine velocity to provide enough time for block preparation. In this situation, the path motion can be subject to continual acceleration and deceleration. With this machine data you define how much such velocity fluctuations are to be smoothed. Special cases, errors, ... Values up to approx. 1.0 are useful. The value 0.0 means that the function is deactivated.
20460 LOOKAH_SMOOTH_FACTOR MD number Smoothing factor for Look Ahead Default setting: 0 Minimum input limit: 0 Maximum input limit: 500 Changes effective after NEW_CONF Protection level: 2/7 Unit: % Data type: REAL Applies from SW 5.3 Significance: A smoothing factor can be specified in the interest of a smooth path velocity control. This factor determines the maximum permissible loss of productivity. Acceleration processes contributing to a shorter programming time less than this factor are not carried out. Only those acceleration processes whose frequencies lie above the frequency parameterized in MD 32440: MA_LOOKAH_FREQUENCY are considered. With the default value 0, this functionality of the smoothing is disabled. Related to .... MD 32440: LOOKAH_FREQUENCY MD 32431: MAX_AX_JERK MD 32300: MAX_AX_ACCEL MD 20600: MAX_PATH_JERK
20462 LOOKAH_SMOOTH_WITH_FEED MD number Taking into account the programmed feedrate for smoothing the tool path velocity Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after NEW_CONF Protection level: 2 / 7 Unit: Data type: BOOLEAN Applies from SW 6 Significance: The MD defines whether the smoothing of the tool path velocity will also take into account the programmed feedrate. In these cases, the given factor resulting from MD 20460: LOOKAH_SMOOTH_FACTOR can be observed better as if the override is set to 100%. Related to .... MD 32440: LOOKAH_FREQUENCY MD 20460: LOOKAH_SMOOTH_FACTOR
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/4-51
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.2 Channel-specific machine data
04.01 10.00
20465 ADAPT_PATH_DYNAMIC MD number Adaptation of dynamic path response Default setting: 1.0, 1.0 Minimum input limit: 1.0 Maximum input limit: 100.0 Changes effective after NEW_CONF Protection level: 2 / 7 Unit: Data type: DOUBLE Applies from SW 6.2 Significance: This adaptation factor can reduce the dynamic response of changes to the path velocity. ADAPT_PATH_DYNAMIC[0] is operative for Brisk and reduces the permissible acceleration rate. ADAPT_PATH_DYNAMIC[1] is operative for Soft and reduces the permissible jerk. Only those acceleration processes whose frequencies lie above the frequency parameterized in MD 32440: LOOKAH_FREQUENCY are considered. The function is deactivated by entering 1.0. MD 32440: LOOKAH_FREQUENCY, MD 20460: LOOKAH_SMOOTH_FACTOR. MD 32431: MAX_AX_JERK, MD 32300: MAX_AX_ACCELL; MD 20600: MAX_PATH_JERK
Related to ....
20480 SMOOTHING_MODE MD number Rounding behavior with G642, G643, G644 Default setting: 0 Minimum input limit: 0 Maximum input limit: 3333 Changes effective after NEW_CONF Protection level: 7 / 7 Unit: Data type: BYTE Applies from SW 6
1/B1/4-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.2 Channel-specific machine data
SMOOTHING_MODE Rounding behavior with G642, G643, G644 G642 (setting in the tens place of MD 20480) 0: G642 uses axis-specific tolerances. These are set using the axis-specific MD 33100: COMPRESS_POS_TOL are set. (default). Response as in SW 4.3 1: When rounding with G642, the contour tolerance SD 42465: SMOOTH_CONTUR_TOL is used for the geometry axes. The remaining axes are rounded using the axis-specific tolerances in MD 33100: COMPRESS_POS_TOL. 2: The orientation movement with G642 is rounded using the angle tolerance SD 42466: SMOOTH_ORI_TOL. All the other axes use the axis-specific tolerances MD 33100: COMPRESS_POS_TOL. 3: Combination of the two options 1x and 2x. i.e. the following tolerances for G642 are used: SD 42465: SMOOTH_CONTUR_TOL and SD 42466: SMOOTH_ORI_TOL. Further axes are rounded using the axis-specific tolerance. Function G642: With G642, the rounding travel is determined based on the shortest rounding travel of all axes. This value is taken into account when generating a rounding block. With G642, the rounding area results from the smallest tolerance setting. G643 (setting in the units place of MD 20480) 0: G643 uses axis-specific tolerances. These are set using the axis-specific MD 33100: COMPRESS_POS_TOL (default). Response as in SW 4.3. 1: When rounding with G643, the contour tolerance SD 42465: SMOOTH_CONTUR_TOL is used for the geometry axes. The remaining axes are rounded using the axis-specific tolerances in MD 33100: COMPRESS_POS_TOL. 2: The orientation movement with G643 is rounded using the angle tolerance SD 42466: SMOOTH_ORI_TOL. All the other axes use the axis-specific tolerances MD 33100: COMPRESS_POS_TOL. 3: Combination of the two options 1x and 2x. i.e. the following tolerances for G643 are used: SD 42465: SMOOTH_CONTUR_TOL and SD 42466: SMOOTH_ORI_TOL. Further axes are rounded using the axis-specific tolerance. Function G643: In the case of G643, the rounding travel of each axis can be different. The rounding travels are taken into account axis-specifically and block-internally . Very different specifications for the contour tolerance and the tolerance of the tool orientation can only have effect with G643.
The values of the units, tens, hundreds and thousands places are added up. Special cases, errors, ... Related to .... SD 42465: SMOOTH_CONTUR_TOL SD 42466: SMOOTH_ORI_TOL MD 33100: COMPRESS_POS_TOL
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/4-53
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.2 Channel-specific machine data
10.00 10.00
20550 EXACT_POS_MODE MD number Exact stop conditions with G0 and G1, ...(1st G code group) Default setting: 0 Minimum input limit: 0 Maximum input limit: 33 Changes effective after NEW_CONF Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 6.1 Significance: Configuring the exact stop conditions with G00 and other G codes of the 1st G code group. The MD is coded decimally. The units places define the response with G00 (infeed motion), and the tens places define the response with the remaining G codes of the 1st group (machining G codes). Units place: 0: With G00, the programmed exact stop conditions become active in each case. 1: With G00, irrespective of the programmed exact stop G601(positioning window fine) becomes active. 2: With G00, irrespective of the programmed exact stop G602(positioning window coarse) becomes active. 3: With G00, irrespective of the programmed exact stop condition, G603 (setpoint reached) becomes active. Tens place: 0: With the machining G codes, the programmed exact stop conditions become active in each case. 1: With the machining G codes, irrespective of the programmed exact stop condition, G601 (positioning window fine) becomes active. 2: With the machining G codes, irrespective of the programmed exact stop condition, G602 (positioning window coarse) becomes active. 3: With the machining G codes, irrespective of the programmed exact stop condition, G603 (setpoint reached) becomes active. The values of the units and tens places are added true to the digits. For example, the value of EXACT_POS_MODE = 2 means that with G00 the exact stop condition G602 always becomes automatically active, irrespective of which exact stop condition has been programmed. With the remaining G codes of the 1st group, however, the programmed exact stop condition comes into effect. Programming Guide, Fundamentals
Application example(s)
References
1/B1/4-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.2 Channel-specific machine data
20602 CURV_EFFECT_ON_PATH_ACCEL MD number Influence of path curvature on dynamic path response Default setting: 0 Minimum input limit: 0 Maximum input limit: .95 Changes effective after NEW_CONF Protection level: USER Unit: Data type: DOUBLE Applies from SW 5 Significance: This variable makes it possible to allow for the effect of the path curvature on the path acceleration and the path velocity. No consideration If necessary, the path velocity and path acceleration are reduced, in order to provide sufficient reserve on the machine axes for centripetal acceleration. 0.75: Recommended setting. 0: 0:
>
CURV_EFFECT_ON_PATH_ACCEL specifies the proportion of axis accelerations (see MAX_AX_ACCEL[..]) which can be used for the centripetal acceleration. The remainder is used to modify the path velocity. Special cases, errors, ... For linear blocks, no centripetal acceleration is required so that the full axis acceleration of the path acceleration is available. CURV_EFFECT_ON_PATH_ACCEL has little or no effect on slightly curved contours or if the maximum path feed is sufficiently small.
Consequently, the path acceleration is higher than that defined by (1 CURV_EFFECT_ON_PATH_ACCEL) * MAX_AX_ACCEL[..]. Related to .... MD 32431: MAX_AX_ACCEL[..]
20603 CURV_EFFECT_ON_PATH_JERK MD number Influence of path curvature on path jerk Default setting: 0 Minimum input limit: 0 Maximum input limit: .95 Changes effective after NEW_CONF Protection level: USER Unit: Data type: DOUBLE Applies from SW 5 Significance: This variable makes it possible to allow for the effect of the path curvature on the path acceleration and the path jerk. The value of CURV_EFFECT_ON_PATH_JERK is only relevant if CURV_EFFECT_ON_PATH_ACCEL > 0 and the jerklimited velocity control (SOFT, $MC_GCODE_RESET_VALUES[ 20 ] = 2) is active. 0: 0: No consideration If necessary, the path acceleration and path jerk are reduced, in order to provide sufficient reserve on the machine axes for the change in path velocity on curved contours. Recommended setting.
>
0.5:
This machine data specifies the proportion of axis jerk (see also MAX_AX_JERK[..]) used to apply the path acceleration for deceleration or acceleration on a curved contour. The remainder of (1 CURV_EFFECT_ON_PATH_JERK) is available for the change in path acceleration, as well as the jerk proportion required in order to reach the velocity alone. The jerk proportion available for moving through changes in curvature is set in CURV_EFFECT_ON_PATH_ACCEL. If the value of this machine data is increased, it is possible to traverse through points with a higher rate of curvature change at a higher path velocity (determine the optimum!) Special cases, errors, ... CURV_EFFECT_ON_PATH_JERK is not relevant for linear blocks, since the total axis jerk can be used to change the path acceleration. $MC_CURV_EFFECT_ON_PATH_JERK does not have the full effect on slightly curved contours or if the maximum path feed is sufficiently small and the changes in path velocity are small. Consequently, the deceleration ramps are shorter. MD 32431: MAX_AX_JERK[..]
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/4-55
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.3 Axis-specific machine data
10.00 10.00
4.3
32310 MAX_ACCEL_OVL_FACTOR MD number Overload factor for axial velocity jumps Default setting: 1.2 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 3/3 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: The overload factor restricts step changes in the machine axis velocity at block ends. The value entered refers to the value of MD: MAX_ AX_ ACCEL (axis acceleration) and states by how much the maximum acceleration for one IPO cycle can be exceeded. Related to .... MD 32300: MAX_AX_ACCEL(axis acceleration) MD 10070: IPO_SYSCLOCK_TIME_RATIO (interpolator clock)
32431 MAX_AX_JERK MD number Max. axis jerk for path motion Default setting: 1000000.0 Minimum input limit: 0 Maximum input limit: Changes effective after NEW_CONF Protection level: USER Unit: m/s3 Data type: DOUBLE Applies from SW 5 Significance: Jerk limitation for path motion
32432 PATH_TRANS_JERK_LIM MD number Max. axial jerk of a geometry axis at block boundary Default setting: 1 000000.0 Minimum input limit: >0.0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 3/3 Unit: m/s3, deg/s3 Data type: DOUBLE Applies from SW 3.2 Significance: The control limits the jerk (acceleration jump) at a block transition between contour sections of different curvature to the value set. MD irrelevant for ... Exact stop Application example(s) See Chapter 6 Related to .... Continuous-path mode, SOFT type of acceleration
32433 SOFT_ACCEL_FACTOR MD number Scaling the acceleration limitation for SOFT Default setting: 1.0 Minimum input limit: plus Maximum input limit: plus Changes effective after NEW_CONF Protection level: 3 / 3 Unit: Data type: DOUBLE Applies from SW 5 Significance: Scaling the acceleration limitation for SOFT Acceleration limitation = SOFT_ACCEL_FACTOR * MA_AX_ACCEL Related to .... MD 32300: MA_AX_ACCEL
1/B1/4-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.3 Axis-specific machine data
32434 G00_ACCEL_FACTOR MD number Scaling the acceleration limitation for G00 Default setting: 1.0 Minimum input limit: plus Maximum input limit: plus Changes effective after NEW_CONF Protection level: 3 / 3 Unit: Data type: DOUBLE Applies from SW 5 Significance: Scaling the acceleration limitation for G00 Acceleration limitation for G00 = G00_ACCEL_FACTOR * MA_AX_ACCEL Related to .... MD 32300: MA_AX_ACCEL
32435 G00_JERK_FACTOR MD number Scaling the axial jerk limitation for G00 Default setting: 1.0 Minimum input limit: plus Maximum input limit: plus Changes effective after NEW_CONF Protection level: 3 / 3 Unit: Data type: DOUBLE Applies from SW 5 Significance: Scaling the axial jerk limitation for G00 Jerk limitation for G00 = G00_JERK_FACTOR * MA_AX_JERK limits the jerk overshoot for G00 = G00_JERK_FACTOR * PATH_TRANS_JERK_LIM Related to .... MD 32300: MA_AX_JERK MD 32432: PATH_TRANS_JERK_LIM
32440 MA_LOOKAH_FREQUENCY MD number Smoothing limit frequency for Look Ahead Default setting: 10 Minimum input limit: 0 Maximum input limit: Changes effective after NEW_CONF Protection level: 2 / 7 Unit: Hz Data type: REAL Applies from SW 5.3 Significance: Acceleration processes in continuous-path mode with Look Ahead, which run at a frequency higher than parameterized in this machine data are either smoothed or reduced in their dynamic response, depending on the parameterization in $MC_LOOKAH_SMOOTH_F ACTOR and $MC_ADAPT_PATH_DYNAMIC. ADAPT_PATH_DYNAMIC (see Dynamic response adaptation) A minimum of all axes involved in the path is always determined. If vibration is excited in the mechanical system of these axes and if the corresponding frequency is known, then the frequency of this machine data should be set to a value smaller than this frequency. Related to .... MD 20460: LOOKAH_SMOOTH_FACTOR
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/4-57
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.3 Axis-specific machine data
10.00 10.00
36000 STOP_LIMIT_COARSE MD number Exact stop coarse Default setting: 0.04 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: An NC block has been completed when the distance of the actual position of the path axes from the setpoint entered for the exact stop limit. If the actual position of a path axis is not within these limits, the NC block is not considered to be completed and continued parts program processing is not possible. Transition to the next block can be influenced by the value entered. The larger the value, the earlier block change can be initiated. If the defined exact stop limit is not reached, the block is not considered completed, it is not possible to continue traversing the axis, alarm 25080 positioning monitoring is output after the time in MD: POSITIONING_TIME (monitoring time exact stop fine) has elapsed, the direction of movement +/ is displayed for the axis in the positioning display. The exact stop window is also evaluated for spindles in position control mode (SPCON instruction). Special cases, errors, ... MD: STOP_LIMIT_COARSE must not be smaller than MD: STOP_LIMIT_FINE (exact stop fine). In order to achieve the same block change behavior as for exact stop, the exact stop coarse window can be the same as that for exact stop fine. The MD: STOP_LIMIT_COARSE must not be the same or greater than MD: STANDSTIL_POS_TOL (zero speed tolerance). Related to .... MD 36020: POSITIONING_TIME (delay time exact stop fine)
36010 STOP_LIMIT_FINE MD number Exact stop fine Default setting: 0.01 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: See MD: STOP_LIMIT_COARSE (Genauhalt grob) Special cases, errors, ... MD: STOP_LIMT_FINE must not be greater than that set in MD: STOP_LIMIT_COARSE (exact stop coarse). The MD: STOP_LIMIT_FINE must not be the same or greater than MD: STANDSTILL_POS_TOL (zero speed tolerance). Related to .... MD 36020: POSITIONING_TIME (delay time exact stop fine)
36012 STOP_LIMIT_FACTOR[n] MD number Factor for exact stop coarse/fine and zero speed control Default setting: 1.0 Minimum input limit: 0.001 Maximum input limit: 1000.0 Changes effective after NEW_CONF Protection level: 2 / 7 Unit: Data type: DOUBLE Applies from SW 5.1 Significance: You can use this factor to reevaluate MD 36000: STOP_LIMIT_COARSE, MD 36010: STOP_LIMIT_FINE, MD 36030: STANDSTILL_POS_TOL depending on the parameter set. The ratio between the three values is always the same. Application example(s) Modification of the positioning response when mass ratios change significantly as a result of a gear change or in order to save positioning time at the expense of precision in various operating states. Related to .... MD 36000: STOP_LIMIT_COARSE, MD 36010: STOP_LIMIT_FINE, MD 36030: STANDSTILL_POS_TOL
1/B1/4-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.3 Axis-specific machine data
36020 POSITIONING_TIME MD number Delay time exact stop fine Default setting: 5.0 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: If a block is ended with exact stop, the axis must have reached the exact stop window fine/ coarse within the positioning time. Otherwise the positioning action is aborted with alarm 25080 Positioning monitoring and switches to followup mode. The monitoring time is started with interpolator end for the axis. Position-controlled spindles are also subject to this timed positioning monitoring. If an error occurs, alarm 25080 Positioning monitoring is again triggered. IS Mode group ready (DB11, DBX6.3) is reset with alarm 25080, the path axis triggering the alarm is braked to reset with the braking ramp set in MD: AX_EMERGENCY_STOP_TIME (duration of the braking ramp for error states) and then switched to follow-up mode. The other path axes in the mode group are brought to reset with setpoint = 0 from the IPO. A traversing positioning axis belonging to the mode group is decelerated according to its acceleration ramp set in MD: MAX_AX_ACCEL (axis acceleration). MD 36000: STOP_LIMIT_COARSE (exact stop coarse) MD 36010: STOP_LIMIT_FINE (exact stop fine)
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/4-59
Continuous Path Mode, Exact Stop and Look Ahead (B1) 4.4 Channel-specific setting data
10.00 10.00
4.4
42465 SMOOTH_CONTUR_TOL SD number Maximum contour deviation on rounding Default setting: 0.05 Minimum input limit: 0.000001 Maximum input limit: 999999.0 Changes effective immediately Protection level: 7 / 7 Unit: mm Data type: DOUBLE Applies from SW 6 Significance: This setting data is used to define the maximum tolerance for the contour when rounding. Special cases, errors, ... Related to .... MD 20480: SMOOTHING_MODE SD 42466: SMOOTH_ORI_TOL is used.
42466 SMOOTH_ORI_TOL is used. MD number Maximum deviation of the tool orientation on rounding Default setting: 0.05 Minimum input limit: 0.000001 Maximum input limit: 90.0 Changes effective immediately Protection level: 7 / 7 Unit: degrees Data type: DOUBLE Applies from SW 6 Significance: This setting data is used to define the maximum tolerance for the contour when rounding. tool orientation when rounding. This data defines the maximum permissible angular displacement of the tool orientation. This data is only effective if an orientation transformation is active. Special cases, errors, ... Related to .... MD 20480: SMOOTHING_MODE SD 42465: SMOOTH_CONTUR_TOL
1/B1/4-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 5.2 Axis-specific signals
Signal Descriptions
5.1
Channel-specific signals
All axes stationary Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 All axes assigned to the channel are stationary with interpolator end. No other traversing movements are active.
DB21, ... DBX36.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
5.2
Axis-specific signals
Position reached with exact stop coarse Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The axis is in the appropriate exact stop and no interpolator is active for the axis and the control is in Reset mode (Reset key or Program End), the axis was last programmed as a positioning axis or positioning spindle (initial setting of special axis: Positioning axis). the path movement was stopped with NC Stop. the spindle is in position-controlled mode (SPCON/SPOS instruction) and is stationary, the axis is switched from speed-controlled to position-controlled mode with IS Position measuring system. The axis is not in the appropriate exact stop or the interpolator is active for the axis or the path movement was stopped with NC Stop. the spindle is in speed-controlled mode (SPCOF/SPOSA instruction), Follow-up mode is active for the axis. Parking mode is active for the axis. the axis is switched from position-controlled to speed-controlled mode with IS Position measuring system. For rotary axes that are programmed as rounding axes. MD 36000: STOP_LIMIT_COARSE (exact stop coarse)
DB 31, ... DBX60.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/5-61
Continuous Path Mode, Exact Stop and Look Ahead (B1) 5.2 Axis-specific signals
10.00
DB 31, ... DBX60.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... ... Related to ....
Position reached with exact stop fine Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically See IS Position reached with exact stop coarse.
See IS Position reached with exact stop coarse (DB31, ... DBX60.6) For rotary axes that are programmed as rounding axes. MD 36010: STOP_LIMIT_FINE (exact stop fine)
1/B1/5-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 7.1 Interface signals
Example
6
; Continuous-path mode with SOFT acceleration response ; ; Line ; Block transition with jump in path curvature (line circle) ; Block transition with continuous path curvature ; Block transition with jump in path curvature (circle circle) ;
7
Name Reference
7.1
Interface signals
Bit, byte
36.3
Axis/spindle-specific 31, ... 31, ... 60.6 60.7 Position reached with exact stop coarse Position reached with exact stop fine
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/7-63
Continuous Path Mode, Exact Stop and Look Ahead (B1) 7.2 Machine data
7.2
Number
Machine data
Identifier Name Reference
General ($MN_ ... ) 10110 18360 PLC_CYCLE_TIME_A VERAGE MM_EXT_PROG_BUFFER_SIZE Maximum PLC acknowledgment time FIFO buffer size for processing from external A2
Channel-specific ($MC_ ... ) 20170 20400 20430 20440 20450 20460 20462 20465 20480 20490 20550 20602 20603 28060 28070 28520 28530 28540 COMPRESS_BLOCK_PATH_LIMIT LOOKAH_USE_VELO_NEXT_BLOCK LOOKAH_NUM_OVR_POINTS LOOKAH_OVR_POINTS LOOKAH_RELIEVE_BLOCK_CYCLE LOOKAH_SMOOTH_FACTOR LOOKAH_SMOOTH_WITH_FEED ADAPT_PATH_DYNAMIC SMOOTHING_MODE IGNORE_OVL_FACTOR_FOR_ADIS EXACT_POS_MODE CURV_EFFECT_ON_PATH_ACCEL CURV_EFFECT_ON_PATH_JERK MM_IPO_BUFFER_SIZE MM_NUM_BLOCKS_IN_PREP MM_MAX_AXISPOL Y_PER_BLOCK MM_PATH_VELO_SEGMENTS MM_ARCLENGTH_SEGMENTS Maximum traversing length of NC block for compression Look Ahead for constant accel. velocity control No. of override switch points for Look Ahead Override switch points for Look Ahead Relief factor for the block cycle time Smoothing factor for Look Ahead (y SW 5.3) Smoothing takes feedrate into account (SW 6 and higher) Adapt. of dynamic path response (y SW 6.2) Response of rounding with G642 and G643 (SW 6 and higher) G641/642 independent of overload factor Exact stop conditions with G0/G1 (y SW 6) Influence of path curvature on dynamic response of the path (SW 5 and higher) Influence of path curvature on jerk of path (SW 5 and higher) Number of NC blocks in IPO buffer (DRAM) Number of NC blocks for block preparation (DRAM) Max. number of axis polynomials per block Number of storage elements for limiting path velocity in block Number of storage elements for arc length function representation per block S7 S7 S7 K1 K1 K1
Axis/channel-specific ($MA_ ... ) 32310 32431 32432 32433 32434 32435 32440 MAX_ACCEL_OVL_F ACTOR MAX_AX_JERK PATH_TRANS_JERK_LIM SOFT_ACCEL_FACTOR G00_ACCEL_FACTOR G00_JERK_FACTOR LOOKAH_FREQUENCY Overload factor for velocity jump Max. axis jerk for path motion (SW 5 or higher) Max. axial jerk of a GEO axis at block limit (SW 3.2 and higher) Scaling of the SOFT acceleration limitation (SW 5 and higher) Scaling of the acceleration limitation for G00 (SW 5 and higher) Scaling of the axial jerk limitation for G00 (SW 5 and higher) Smoothing limit frequency for Look Ahead (SW 5.3 and higher)
1/B1/7-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Continuous Path Mode, Exact Stop and Look Ahead (B1) 7.2 Machine data
Name Maximum deviation with compensation Exact stop coarse Exact stop fine Factor for exact stop coarse/fine and standstill monitoring (SW 5.2 and higher) Delay time exact stop fine
Reference K1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B1/7-65
Continuous Path Mode, Exact Stop and Look Ahead (B1) 7.4 Alarms
10.00 10.00
7.3
Setting data
Channel-specific setting data ($SC_ ... ) 42465 42466 42470 SMOOTH_CONTUR_TOL SMOOTH_ORI_TOL is used. Max. contour deviation on rounding Max. deviation of the tool orientation on rounding Limit angle for spline and polynomial interpolation and compressor W1
CRIT_SPLINE_ANGLE
7.4
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
1/B1/7-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Acceleration (B2)
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.7.1 2.7.2 Acceleration profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Path-related jerk limitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Acceleration limitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis-related jerk limitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Knee-shaped acceleration characteristic . . . . . . . . . . . . . . . . . . . . . . Programmable acceleration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Current path acceleration specification . . . . . . . . . . . . . . . . . . . . . . . . Example for $AC_PATHACC, BRISK . . . . . . . . . . . . . . . . . . . . . . . . . Example for $AC_PATHJERK, SOFT . . . . . . . . . . . . . . . . . . . . . . . . .
1/B2/1-3 1/B2/2-5 1/B2/2-5 1/B2/2-7 1/B2/2-11 1/B2/2-12 1/B2/2-15 1/B2/2-17 1/B2/2-18 1/B2/2-20 1/B2/2-21 1/B2/4-23 1/B2/4-23 1/B2/4-23 1/B2/4-28 1/B2/4-29 1/B2/4-30 1/B2/7-31 1/B2/7-31 1/B2/7-31 1/B2/7-31 1/B2/7-33 1/B2/7-34 1/B2/7-34 J
3 4
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 Axis-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 6 7
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 7.4 Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/i
10.00 10.00
Notes
1/B2/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
The NC axes are accelerated and decelerated with preset acceleration values. This makes it possible to control the axes at the required velocities. The acceleration values which are possible depend on the torques of the drive motors, on the current supplying capacity of the drive controller and on the load bearing capabilities of the machine mechanics as well as on the acceleration profile of the CNC. The CNC checks whether the acceleration value stored in a machine data for each machine axis has been violated, taking path velocity and curvature into account. If necessary, the velocity is lowered in order to keep to the axis-specific maximum acceleration. The characteristics and possibilities offered by the existing acceleration modes and acceleration limitations (see Chapter 3) are described in this document. The following description contains information describing acceleration modes used in conjunction with the FM 353 positioning module. References: /S7S/, SIMATIC S7-300 FM 353 Positioning Module for Stepper Drives
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/1-3
10.00 10.00
Notes
1/B2/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Detailed Description
2.1 Acceleration profiles
Abrupt acceleration
With the v/t-linear control of the axis velocity that is normally applied, the motion is controlled such that the acceleration rate changes abruptly over time. The aim of this type of velocity control is to maintain the programmed velocity over the greatest area covered by the block. For this reason, acceleration to the programmed feedrate is performed at the beginning of the block at a maximum value and deceleration to rest performed at the end of the block, also at the maximum value. With the discontinuous, stepped acceleration, jerkfree starting and braking of the axes is not possible, but a time-optimized velocity/time profile can be implemented.
Jerklimited acceleration
In contrast to the method involving abrupt changes in acceleration rate, the jerklimited acceleration profile controls the motion such that the axis setpoint characteristic is smooth (without jerks). This is achieved by limitation of changes in acceleration. Because of the softer acceleration progression, the traverse time is longer than with stepped acceleration for the same distance, velocity and acceleration. This time loss could be compensated for by setting a higher acceleration for the axes. As well as utilizing the acceleration capabilities of the machine to the full, acceleration with jerk limitation has the following advantages:
S Reduced wear to mechanical parts of the machine S Reduction of the excitation of high-frequency, difficult to control vibrations of
the machine.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-5
10.00
+ amax
+ amax
t + amax + amax
+a
t Abrupt acceleration
Fig. 2-1
Schematic illustration of velocity and acceleration profiles showing abrupt acceleration and acceleration with jerk limitation
a: v: t:
1/B2/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
2.2
Jerklimited acceleration
Acceleration with jerk limitation can be selected for the axes in the path grouping. The path-related maximum permissible jerk is stored in the channel-specific MD 20600: MAX_PATH_JERK (path-related maximum jerk). It limits the change of path acceleration. Using the permissible jerk value and the path acceleration, a time is calculated by which the change in acceleration must have been completed. The possible changes in acceleration have values between zero and the path acceleration. The acceleration limit is the maximum possible path acceleration. Because the path acceleration depends on the number of interpolating axes and on the shape of the path, the time calculated from the jerk limitation does not have a fixed length. The duration is proportional to path acceleration for constant jerk limitation.
vset
v vact
0 t
+ amax a
0 t
a: v: t:
+ amax
Fig. 2-2
Representation of velocity and acceleration progression when acceleration with jerk limitation has been implemented
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-7
10.00
Note With SW 5.3, the NCU 572 has the same braking profile as the NCU 573. The same applies to CCU1, CCU2, CCU3.
It can be seen from the previous Fig. that the acceleration profile is trapezoidal. The height of the trapeze is limited by the path acceleration. The gradient of the sides of the trapeze depends on the time which is calculated by dividing the acceleration by the path related maximum jerk. When an NCU 571 or 572 is used, the braking profile is bellshaped. With an NCU 573 the acceleration profile is trapezoidal. The height is limited by the path acceleration. The jerk limitation value set in MD 20600: MAX_PATH_JERK (path-related maximum jerk) limits the gradient of the curve.
The acceleration profile with jerk limitation based on the value set in MD 20600: MAX_PATH_JERK (path-related maximum jerk) is activated by:
1/B2/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
The acceleration profiles SOFT and BRISK are generated in different ways. For this reason, the SOFT profile will always require a longer traversing time for the same distance and acceleration rate than BRISK, regardless of the setting in MD 20600: MAX_PATH_JERK.
Applicability
Path-related jerk limitation is available for interpolating path axes in operation modes AUTO and MDA. The SOFT and BRISK acceleration profiles can be used in traverse modes exact stop G09, G60, continuous-path modes G64, G641 and with Look Ahead. The profiles are also active with the dry run feedrate function. With alarms that trigger a rapid stop, both acceleration profiles are inactive.
With the BRISK acceleration profile, a direct switchover from acceleration to braking takes place in short blocks in which the setpoint velocity cannot be reached. This transition entails a very large jump in acceleration. In order to attenuate this jump, the axes can be traversed with a constant velocity for a set minimum duration between the acceleration and the deceleration phases. One consequence of this is that the acceleration jump is split into two halves. The duration of the constant velocity phase can be set in MD 20500: CONST_VELO_MIN_TIME (minimum time with constant velocity). The constant velocity phase according to the setting in MD 20500: CONST_VELO_MIN_TIME is not implemented:
S With Look Ahead S In blocks in which the traveling time is less than or equal to one IPO cycle.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-9
10.00
apath apath,+,max
Acceleration behavior in a short block Acceleration behavior with minimum duration of constant travel
0
apath,,max
a: v: t:
Fig. 2-3
Acceleration and velocity behavior in short blocks with and without a minimum constant travel duration
1/B2/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
2.3
Acceleration limitation
Request
The requirements on motion control can be fulfilled by means of the permanently set machine data. Special requirements, e.g. varying moment of inertia, different operating modes (positioning, roughing, finish cut) require an adaptation of the dynamic response of the acceleration and braking ramps. One possible method of influence is the programmable axial acceleration limitation. Another additional limitation is the acceleration limitation via setting data. Whether this limitation value is to be included in the calculation must be specified via a separate setting data. Furthermore, the dynamic response can be adapted via the keywords BRISK and SOFT. From time to time, however, the switchover is too coarse; the permissible jerk value can therefore also be adapted via an additional setting data.
Functionality
The call path can be set flexibly in SD 42500: SD_MAX_PATH_ACCEL can be set to specify a path acceleration limit value which acts in addition to the limit derived from the axial limitation values. This setting data is included in the jerk limitation calculation if SD 42502: IS_SD_MAX_PATH_ACCEL is set. The call path can be set flexibly in SD 42510: SD_MAX_PATH_JERK can be set to specify an additional jerk limitation to the value set in MD 20600: MAX_PATH_JERK. This setting data is included in the jerk limitation calculation if SD 42512: IS_SD_MAX_PATH_JERK is set.
Note SD 42500: SD_MAX_PATH_ACCEL is taken into account only if its value is lower than the limit value calculated from the axis motion and machine data MA_MAX_AX_ACCELAxNo, MA_MAX_AX_VELOAxNo, allowing for the programmable reduction in acceleration. SD 42510: SD_MAX_PATH_JERK is taken into account only if its value is lower than the setting in MD 20600: MAX_PATH_JERK.
Activation
The setting data can be set and activated via download, MMC or parts program. The programmed values remain valid until the SRAM is erased.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-11
Control system response to POWER ON, operating mode switchover, Reset, block search and REPOS. The last value to be set is valid. The default settings apply after a cold start. SC_IS_SD_MAX_PATH_ACCEL=FALSE SC_SD_MAX_PATH_ACCEL=10 $SC_IS_SD_MAX_PATH_JERK=FALSE $SC_SD_MAX_PATH_JERK=1000
2.4
An axis-specific jerk limitation can be programmed for axes that are traversed in the conventional operating modes as well as for those that operate in positioning axis mode. The acceleration behavior is the same as for the SOFT acceleration profile of path-related jerk limitation and is set permanently and axis-specifically in machine data. This limitation cannot be deselected for the axes in the relevant modes. The axes for which jerk limitation is to be programmed can be selected with MD32420: JOG_AND_POS_JERK_ENABLE (initial setting for axial jerk limitation). The maximum permissible axis jerk is stored in MD 32430: JOG_AND_POS_MAX_JERK (axial jerk). It limits the permissible change in axis acceleration. Taking the jerk value and acceleration rate programmed in MD32300: MAX_AX_ACCEL (axis acceleration) into account, a time is calculated in which the acceleration change is performed. The possible change in acceleration rate is in the range between 0 and the axis acceleration value stored in MD 32300: MAX_AX_ACCEL. A change in the active jerk value cannot be achieved in the NC parts program by overwriting MD:32430 JOG_AND_POS_MAX_JERK because it only becomes active on RESET. A new value set becomes effective on the next program run. The axial jerk limitation is active in AUTO and MDA modes for both positioning axis types. The jerk limitation is active for axes in JOG mode during
1/B2/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
It is possible to set an axis-specific jerk limitation in the position controller in addition to and independently of the jerk limitations that can be activated on interpolator level. The jerk limitation causes smoothing of the axis setpoint progression with any axis movement irrespective of the mode the axis is traversed in. The acceleration limitations on the interpolator level are subjected to further smoothing with this limitation. It cannot be influenced by a program code or interface signal. The limitation is enabled axis-specifically in MD 32400: AX_JERK_ENABLE (axial jerk limitation) and set in associated with a timer for the smoothing filter by means of MD 32410: AX_JERK_TIME (time constant for axial jerk filter). With SW 5.1 and higher, it is also possible to control the jerk limitation in the position controller with a new filter based on a smoothing method that incurs few contour errors: MD 32402: AX_JERK_MODE = 1 ; 2nd degree filter (default) corresponds to SW 1 to SW 4.4 MD 32402: AX_JERK_MODE = 2 ; floating averaging (new jerk filter, available with SW 5.1 and higher). MD 32402: AX_JERK_MODE = 3 ; bandstop filter in SW 6.3 and higher Modus 2 requires a bit more computation time, but with the same smoothing effect, it results in lower contour errors or, with the same accuracy, in a smoother contour with smoother movements. Mode 2 is recommended. Mode 1 is the default mode in SW 1 to SW 4.4 for compatibility reasons. For further information on the method of operation of the jerk filter available with SW 5.1 and higher (balancing filter for improving the position setpoints of the position controller), please refer to: References: /FB/, G2, Velocities, Setpoint/Actual Value Systems, Optimization of Control
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-13
10.00
S When the smoothing times of the IPO level are tool long, i.e. when
limitations are required within one IPO cycle,
Except for linear blocks, this smoothing causes a contour falsification. This also applies if the same filter time is set for interpolating machine axes. Under this prerequisite, with a circle, the contour error results in a circle radius that is too small. If the same velocity and the same circle radius are programmed, the contour error will increase with increasing filter time. The jerk limitation is only disabled with alarms switching the axes into the follow-up mode.
Caution The effective servo gain factor is reduced when an axial jerk limitation is programmed. This must be noted with respect to axes/spindles that must have an identical servo gain factor (e.g. for Rigid tapping). There is generally no point in entering values higher than approximately 2030ms in MD: AX_JERK_TIME (because the servo gain factor, and thus the contour accuracy, would then be reduced) (pay attention to the service display!). Path-related jerk limitation (MD: MAX_PATH_JERK, MD: JOG_POS_MAX_JERK) should always be used first. If this option is not sufficient, then MD: AX_JERK_TIME should be set to a very low value (< 5ms) and used. If an even smoother axis motion is required and the degree of contour accuracy is sufficient (check with circularity test), then the value in AX_JERK_TIME can be increased.
1/B2/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.5
The speed-controlled motors used for axes and spindles in machine tools have a speed-dependent torque characteristic and therefore also a speed-dependent acceleration capability. In the lower speed range, the speed range under armature control, the torque is constant, but from a specific motor speed upwards, the torque decreases in the speed range under field control. The speed-dependent torque development is limited by the following factors:
S Field weakening
Field weakening can cause an increase in the motor speed with DC motors. The torque output is correspondingly reduced by the speed in the field setting range.
S Commutation limit
With DC motors the armature current must be reduced at high motor speeds because of brush sparking. This causes a reduction of the torque as the speed increases.
S Control
Three-phase motors can also be controlled such that they increase their speed. However, the available torque is reduced as speed increases.
S DC link voltage
The DC link voltage of the power section limits the maximum possible dynamic torque of three-phase drives because the current that can be fed in is reduced because of the mutual induction. Until now, the setpoint was calculated and output by the CNC on the basis of the acceleration of the machine axes, making use of the entire speed range of the setpoint. From the moment at which motor torque started to develop as a function of speed, the drive continued to accelerate along its current limit, but the difference between setpoint and actual value changed continually as the drive was accelerating in the torque-reducing speed range. The function Kneeshaped acceleration characteristic means that the dependency of the acceleration on the speed of the motors and velocity can be taken into account for spindles and positioning axes. This makes it possible to minimize the following error in the field setting range. The knee-shaped acceleration characteristic is produced using motor-specific characteristic data and machine-specific requirements. With respect to the maximum velocity/speed of the axis/spindle, a factor fn stored in machine data MD 35220: ACCEL_REDUCTION_SPEED_POINT (speed for reduced acceleration) is used to calculate the velocity/speed at which torque reduction begins. The permitted acceleration rate to maximum velocity/speed corresponds to the permissible acceleration rate minus the amount representing the product of factor fa in MD 35230: ACCEL_REDUCTION_FACTOR (reduced acceleration) multiplied by the permissible acceleration.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-15
10.00
a [m/s2]
a: n:
Acceleration Speed
(MD 32000)
The progression of the acceleration characteristic should, as far as possible, correspond to the progression of the torque of the motor. The torque that is required because of the acceleration should be less than or equal to the available motor torque. For the knee-shaped acceleration characteristic of the spindles, the maximum speeds of the gear stages stored in MD: GEAR_STEP_MAX_VELO_LIMIT (maximum speed of the gear step) and the acceleration values permissible for gear steps stored in MD: GEAR_STEP_SPEEDCRTL_ACCEL (acceleration with speed control) or in MD: GEAR_STEP_POSCRTL_ACCEL (acceleration with position control) are relevant. Because greater accuracy is required for the spindle in position-controlled mode, for example thread cutting, than is required in speed-controlled mode, it is advisable to set the acceleration values in MD: GEAR_STEP_POSCRTL_ACCEL to be smaller than that in MD: GEAR_STEP_SPEEDCRTL_ACCEL in order to make use of the advantages of the smaller following error. The maximum reference quantities for calculating the knee-shaped acceleration characteristic for positioning axes are the values stored in MD: MAX_AX_VELO (maximum axis velocity) and in MD: MAX_AX_ACCEL (axis velocity). Factors fa and fn must be derived from the data sheets of the motors used. The knee-shaped acceleration characteristic can be combined with the function axis-related jerk limitation on the interpolator level. The knee-shaped acceleration characteristic takes the changes velocity settings into account using override.
When the default settings in MD: ACCEL_REDUCTION_FACTOR and MD: ACCEL_REDUCTION_SPEED_POINT are changed, the knee-shaped acceleration characteristic function is activated. Selection and deselection using the NC parts program or the PLC interface is not possible.
1/B2/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.6
2.6
Programmable acceleration
Request
It may be required in critical program sections to limit the maximum axis acceleration rates which are programmed in MD 32300: MAX_AX_ACCEL (axis acceleration). The Programmable acceleration function (see Chapter 3) can therefore be used, for example, to prevent mechanical vibration.
Functionality
The command ACC[machine axis name] = percentage can be programmed to specify a percentage value of > 0% and v 200% for each machine axis. Interpolation is performed with an acceleration that does not exceed this percentage of the maximum axis acceleration stored in MD: MAX_AX_ACCEL.
Activation
The limitation is effective in all interpolation types of the AUTOMATIC and MDA modes. Please note the following:
S The limitation is not active in JOG mode and during reference point
approach.
S The command ACC is active immediately and modally. S With the command ACC[machine axis name] = 100 the limitation is
deactivated.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-17
10.00
2.7
Introduction
The methods described in Sections 2.1 to 2.6 for acceleration and jerk control apply to: a) b) Normal machining in continuous-path mode and reactions to path-related realtime events: Stop Feedrate change by override switch by synchronized actions via system variable $AC_OVR Safe speed SG for Safety Integrated (s. References: /FBSI/, Description of Functions SINUMERIK Safety Integrated) For example, if reduced acceleration and jerk values are set in order to reduce the vibrations on a laser cutting head, the operations in b) are also performed more sluggishly than desired.
Solution
Two system variables available with SW 6.3 can be used to accelerate the reaction in the operations in b). System variables $AC_PATHACC and $AC_PATHJERK can be modified from the parts program and from static synchronized actions. Each read and write operation that accesses these system variables from the parts program entails an implicit preprocessing stop.
Table 2-1 Effect of $AC_PATHACC with BRISK Effect None Increases the path acceleration to allow a faster reaction to realtime path velocity demands. $AC_PATHACC maximum = 2 x MAX_AX_ACCEL[ ]: Larger values are limited to double the value of MD 32300: MAX_AX_ACCEL[ ] for the relevant axis.
Value of the system variable $AC_PATHACC < acceleration specified during preprocessing $AC_PATHACC > acceleration specified during preprocessing
Effect
System variable $AC_PATHACC allows the path acceleration [m/s**2 or inch/s**2] to be specified in the interpolation cycle for the application of override changes, stop/start events and alteration of the safe velocity SG.
1/B2/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
Exception
The variable does NOT have any effect in the case of changes to the tool path velocity resulting from path plans involving e.g. contour curvature, corners, kinematic limitations of the transformation, ... ).
SOFT
$AC_PATHJERK can only overincrease the path jerk in the same way as $AC_PATHACC. The control does not limit the jerk allowance relative to MD 32431: MAX_AX_JERK[axis]. This function is practical in cases where the tool path velocity is to be controlled more quickly than is appropriate during normal program operation.
Supplementary conditions
S RESET deactivates $AC_PATHACC, $AC_PATHJERK (i.e. sets it to zero). S Mit $AC_PATHACC = 0, $AC_PATHJERK = 0 deactivates the function and
saves processor time during the main run. The assignment of values less than 0 sets the value implicitly to 0.
S A change in feedrate override with increased acceleration also applies during a slow brake ramp specified during preprocessing.
S $AC_PATHACC, $AC_PATHJERK is only effective while the tool path velocity is being changed in order to implement the override changes or the stop/ start event. Once the new tool path velocity is reached, the acceleration and jerk limitation values specified during preprocessing are active.
S The $AC_PATHACC excess is allowed without taking centripetal acceleration into account.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-19
10.00
2.7.1
Acceleration according to ACC[..] Acceleration according to $AC_PATHACC Acceleration according to ACC[..] (approach block end velocity) v [m/s] Velocity limit due to arc Acceleration according to $AC_PATHACC OVR=100%
OVR=10%
N2200
Fig. 2-5
; Switch acceleration depending on high-speed input 1: ; N53 ID=1 WHEN $A_IN[1] == 1 DO $AC_PATHACC = 2.*$MA_MAX_AX_ACCEL[X]
; Test override profile (simulates external intervention): ; N54 ID=2 WHENEVER ($AC_TIMEC > 16) DO $AC_OVR=10 N55 ID=3 WHENEVER ($AC_TIMEC > 30) DO $AC_OVR=100 ; Approach ; N1000 G0 X0 Y0 BRISK N1100 TRANS Y=50 N1200 AROT Z=30 G642 ; Contour ; N2100 X0 Y0 N2200 X = 70 G1 F10000 RNDM=10 ACC[X]=30 ACC[Y]=30 N2300 Y = 70 N2400 X0 N2500 Y0 M30
1/B2/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
2.7.2
Jerk according to $MA_MAX_AX_JERK[..] Jerk according to $AC_PATHJERK Jerk according to $MA_MAX_AX_JERK[..] (approach block end velocity) v [m/s] Velocity limit due to arc
OVR=10%
N2200
Fig. 2-6
Parts program (excerpt, schematic): ; Set path acceleration and path jerk on external intervention: ; N0100 $AC_PATHACC = 0. N0200 $AC_PATHJERK = 4. * ($MA_MAX_AX_JERK[X] + $MA_MAX_AX_JERK[Y]) / 2. ; Synchronized action for varying the override (simulates external intervention): ; N53 ID=1 WHENEVER ($AC_TIMEC > 16) DO $AC_OVR=10 N54 ID=2 WHENEVER ($AC_TIMEC > 30) DO $AC_OVR=100 ; Approach ; N1000 G0 X0 Y0 SOFT N1100 TRANS Y=50 N1200 AROT Z=30 G642 ; Contour ; N2100 X0 Y0 N2200 X = 70 G1 F10000 RNDM=10 N2300 Y = 70 N2400 X0 N2500 Y0 M30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/2-21
10.00
Notes
1/B2/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Supplementary Conditions
S SINUMERIK 840D with NCU 572/573, SW 2 and higher S SINUMERIK 810D with CCU2, SW 2 and higher S SINUMERIK 810D with CCU1, SW 3.2 and higher
Acceleration limitation
32300 MAX_AX_ACCEL MD number Axis acceleration Default setting: 1 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: m/s2, rev/s2 Data type: DOUBLE Applies from SW 1.1 Significance: The acceleration defines a change in velocity of the axis against time. Different axes do not have to have the same acceleration. The lowest acceleration value of all the axes involved in interpolation is taken into account. In the case of rotary axes, the entered value corresponds to the angular acceleration. The machine manufacturer should determine for which continuous deceleration and acceleration the machine is suitable. This value is entered in the machine data. The acceleration value is active for every type of acceleration and delay operation. MD irrelevant for ... Error states that lead to rapid stop.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/4-23
10.00 10.00
Same gradient a a t [s] Related to .... MD 32210: MAX_ACCEL_OVL_FACTOR (overload factor for axial velocity step changes) MD 20610: ADD_MOVE_ACCEL_RESERVE (acceleration margin for overlaid motions)
32400 AX_JERK_ENABLE MD number Axial jerk limitation Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after NEW_CONF Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: Enables the axial jerk limitation function in every mode. The limitation is set via a time constant and is always active. The limitation functions independently of the limitations path-related maximum jerk, kneeshaped acceleration characteristic and the axial jerk limitation of the axes that are operated in JOG or positioning mode. Related to .... MD 32410: AX_JERK_TIME Time constant for axis jerk limitation)
32402 AX_JERK_MODE MD number Filter type for axial jerk limitation Default setting: 1 Minimum input limit: 1 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 5.2, max. of 32 position control cycles
1/B2/4-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
AX_JERK_MODE Filter type for axial jerk limitation Filter type for axial jerk limitation: 1: 2nd degree filter (same as SW 1 to 4) 2: Floating average generation (as of SW 5.1, max. of 16 position control cycles up to 0.032 s) 3: Bandstop (SW 6 and higher) Type 1 set as default for compatibility reasons. Type 2 is recommended. Type 2 requires a bit more computation time, but with the same smoothing effect, it results in lower contour errors or, with the same accuracy, in a smoother contour with smoother movements. In addition, type 2 is suited to dampen critical frequencies in the position setpoint, thus less exciting vibrations of the machine. The damping acts especially strong at the frequency f = 1 / (filter time of MD 32410) and multiples of it. The maximum jerk is set with the time constant MD 32410: AX_JERK_TIME are set. The greater the time, the smaller the maximum jerk. With the types 1 and 2, any setting times are accepted. Recommended values for type 1: min. 0.03s to max. 0.06s. Recommended values for type 2: min. 1 position control cycle to max. 32 position control cycles (31 position control cycles available). For example, at a position control cycle of 2ms, this corresponds to 0.002 s to 0.062 s for MD AX_JERK_TIME. MD 32402: AX_JERK_MODE is only effective when MD 32400: AX_JERK_ENABLE is set to 1. Type 3 requires the setting of machine data AX_JERK_TIME, AX_JERK_FREQ and AX_JERK_DAMP . To parameterize a pure bandstop filter, it is advisable to parameterize AX_JERK_TIME=0 which automatically sets Denominator frequency = numerator frequency = blocking frequency = AX_JERK_FREQ. When you set AX_JERK_TIME>0, you set a different denominator frequency. This enables you to implement a bandstop filter with amplitude boost at frequencies higher than the blocking frequency. The machine data must be the same for all axes of an axis container. /FB/, B3, Distributed Systems, Several Operator Panels and NCUs, NCU Link MD 32400: AX_JERK_ENABLE MD 32410: AX_JERK_TIME MD 32412: AX_JERK_FREQ MD 32414: AX_JERK_DAMP /FB/, G2, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
References
32410 AX_JERK_TIME MD number Time constant for axial jerk filter Default setting: 0.001 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: Time constant of the axial jerk filter which causes a softer axis setpoint progression. The jerk filter is only active when the time constant is greater than the position control cycle. When you use jerk filter variant Bandstop (MD 32402: AX_JERK_MODE = 3 ), you must enter the denominator equivalent time constant in this machine data: TN = 1 / (2 * PI * fN) where fN = denominator natural frequency. When you set a value of 0, denominator natural frequency = numerator natural frequency = blocking frequency is set automatically in the software, i.e. with $MA_AX_JERK_TIME=0, TN = 1 / (2 * PI * fZ) applies in the software. MD irrelevant for ... Error states that cause a change to follow-up mode (e.g. EMERGENCY STOP) Special cases, errors, ... An identical time constant must be programmed for machine axes which interpolate with one another (e.g. with Rigid tapping). Related to .... MD 32400: AX_JERK_ENABLE (axial jerk limitation) MD 32402: AX_JERK_MODE
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/4-25
10.00 10.00
32412 AX_JERK_FREQ MD number Blocking frequency axial jerk filters Default setting: 10.0 Minimum input limit: 0.0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 / 7 Unit: Hz Data type: Applies from SW Significance: Blocking frequency axial jerk filter bandstop [1/s] Related to .... MD 32400: AX_JERK_ENABLE (axial jerk limitation) MD 32402: AX_JERK_MODE
32414 AX_JERK_DAMP MD number Damping axial jerk filters Default setting: 0.0 Minimum input limit: 0.0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 / 7 Unit: Related to .... MD 32400: AX_JERK_ENABLE (axial jerk limitation) MD 32402: AX_JERK_MODE MD 32412: AX_JERK_FREQ
32420 JOG_AND_POS_JERK_ENABLE MD number Initial setting for axial jerk limitation Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: Enables the axis-specific jerk limitation function for JOG and REF modes and positioning axis operation. Related to .... MD 32430: JOG_AND_POS_MAX_JERK (axial jerk)
32430 JOG_AND_POS_MAX_JERK MD number Axial jerk Default setting: 1000 Minimum input limit: 0.0 Changes effective after POWER ON Protection level: 2 Data type: DOUBLE Significance:
Maximum input limit: plus Unit: m/s3, rev/s3 Applies from SW 1.1 The jerk limit value limits the rate of change of axis acceleration in the JOG and REF modes and in positioning axis operation. Settings and time calculation are as for MD 20600: MAX_PATH_JERK (pathrelated maximum jerk). Path interpolation and error states that lead to rapid stop. MD 32420: JOG_AND_POS_JERK_ENABLE (initial setting of axial jerk limitation)
1/B2/4-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
35220 ACCEL_REDUCTION_SPEED_POINT MD number Speed for reduced acceleration Default setting: 1.0 Minimum input limit: 0.0 Maximum input limit: 1.0 Changes effective after POWER ON Protection level: 2 Unit: factor Data type: DOUBLE Applies from SW 1.1 Significance: This machine data defines the speed/velocity for spindles/positioning axes from which the acceleration reduction is to start. The reference is the defined maximum speed/velocity. The starting point is a percentage of the maximum values. Example: MD: ACCEL_REDUCTION_SPEED_POINT = 0.7, the maximum speed is 3000rpm. Acceleration reduction begins with von= 2100rpm, i.e. the maximum acceleration capacity is utilized in the speed range 0 ...2099.99rpm. From 2100rpm to the maximum speed, it is operated with reduced acceleration. Related to .... MD 32000: MAX_AX_VELO (maximum axis velocity) MD 35130: GEAR_STEP_MAX_VELO_LIMIT (maximum gear stage speed) MD 35230: ACCEL_REDUCTION_FACTOR (reduced acceleration)
35230 ACCEL_REDUCTION_FACTOR MD number Reduced acceleration Default setting: 0.0 Minimum input limit: 0.0 Maximum input limit: 1.0 Changes effective after POWER ON Protection level: 2 Unit: factor Data type: DOUBLE Applies from SW 1.1 Significance: The machine data contains the factor by which the acceleration of the spindle/positioning axes is reduced with reference to the maximum speed/velocity. The acceleration is reduced by the factor between the starting speed/velocity defined in MD: ACCEL_REDUCTION_SPEED_POINT and the maximum speed/velocity. Example: : a= 10 rev/s2, von= 2100rpm, MD: ACCEL_REDUCTION_FACTOR = 0.3. Acceleration and deceleration takes place within the speed range 0 ...2099.99rpm with an acceleration of 10 rev/s2. From a speed of 2100rpm up to the maximum speed, the acceleration is reduced from 10 rev/s2 down to 7 rev/s2. MD irrelevant for ... Errors that lead to rapid stop. Related to .... MD 32300: MAX_AX_ACCEL (axis acceleration) MD 35200: GEAR_STEP_SPEEDCTRL_ACCEL (acceleration in open-loop speed mode) MD 35210: GEAR_STEP_POSCTRL_ACCEL (acceleration in closed-loop position mode) MD 35242: ACCEL_REDUCTION_SPEED_POINT (speed for reduced acceleration)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/4-27
10.00
4.2
20500 CONST_VELO_MIN_TIME MD number Minimum time with constant velocity Default setting: 0.0 Minimum input limit: 0.0 Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: Defines the minimum time for constant velocity during transition from acceleration to deceleration in short blocks in which the set velocity cannot be reached. Entering a time of at least several IPO cycles prevents a direct transition from the acceleration to the deceleration phase and thus limits the acceleration jump to 50%. This acceleration limitation is only active with the acceleration profile BRISK. MD irrelevant for ... Look Ahead does not take account of this function.
20600 MAX_PATH_JERK MD number Path-related maximum jerk Default setting: 100 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: m/s3 Data type: DOUBLE Applies from SW 1.1 Significance: The jerk limitation restricts path acceleration in SOFT mode. The path acceleration divided by the jerk limitation value produces a time in which the acceleration change takes place. Examples: Jerk limitation value Path acceleration Time 100 m/s3 1 m/s2 0.01s 100 m/s3 2 m/s2 0.02s 100 m/s3 3 m/s2 0.03s 2 m/s2 0.01s 200 m/s3 300 m/s3 3 m/s2 0.01s MD irrelevant for ... Error states that lead to a rapid stop. The limitation continues to be ineffective for positioning axes.
20610 ADD_MOVE_ACCEL_RESERVE MD number Acceleration reserve for overlaid movements Default setting: 0.2 Minimum input limit: 0.0 Maximum input limit: 0.9 Changes effective after POWER ON Protection level: 2 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: This machine data contains that factor that defines the acceleration margin retained by a path movement in order to provide sufficient acceleration reserves for an overlaid movement for the velocity control. A factor of 0.2 means that the path axes utilize 80% of the path acceleration in normal operation. Only when a request for overlaid movement is made, can 100% of the path acceleration be utilized. MD irrelevant for ... Error states that lead to a rapid stop. The limitation continues to be ineffective for positioning axes. Special cases, errors, ... At the moment the machine data is only taken into account if the function Fast retraction is first activated. Related to .... MD 32300: MAX_AX_ACCEL (axis acceleration)
1/B2/4-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
4.3
42500 SD_MAX_PATH_ACCEL MD number SD Maximum path acceleration Default setting: 10 Minimum input limit: 0 Maximum input limit: Changes effective after POWER ON Protection level: 7 Unit: m/s2 Data type: DOUBLE Applies from SW 3.1 Significance: Setting data for additional limitation of (tangential) path acceleration Related to .... MD 32300: MAX_AX_ACCEL SD 42502: IS_SD_MAX_PATH_ACCEL
42502 IS_SD_MAX_PATH_ACCEL MD number SD for activation of additional limitation of path acceleration Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 7 Unit: Data type: BOOLEAN Applies from SW 3.1 Significance: Setting data SD_MAX_PATH_ACCEL is included in the limit calculations if SD: IS_SD_MAX_PATH_ACCEL=TRUE Related to .... SD 42500: SD_MAX_PATH_ACCEL
42510 SD_MAX_PATH_JERK MD number SD for additional limitation of (tangential) path jerk Default setting: 100 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 7 Unit: m/s3 Data type: DOUBLE Applies from SW 3.1 Significance: The maximum path-related jerk can be applied in addition to MD: MAX_PATH_JERK. Related to .... MD 20600: MAX_PATH_JERK SD 42510: IS_SD_MAX_PATH_JERK
42512 IS_SD_MAX_PATH_JERK MD number SD for activating the additional limitation of the (tangential) path jerk via SDs Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 7 Unit: Data type: BOOLEAN Applies from SW 3.1 Significance: Setting data SD_MAX_PATH_JERK is included in the limit calculations if SD: IS_SD_MAX_PATH_JERK=TRUE Related to .... SD 42510: SD_MAX_PATH_JERK (SD for additional limitation of (tangential) path jerk)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/4-29
10.00
4.4
Name Meaning
System variables
$AC_PATHACC Specifies an increased path acceleration for override changes and Stop/Start events. $AC_PATHACC is only taken into account if the value is greater than the prepared acceleration limit. The value 0 disables the function. Values generating a machine axis acceleration which would exceed twice the value configured in $MA_MAX_AX_ACCEL[..] are limited internally to twice the value in $MA_MAX_AX_ACCEL[..]. REAL Read in parts program x Write in parts program x x Read in Synchronized action x Write in Synchronized action x
$AC_PATHJERK Read in Synchronized action x Write in Synchronized action x
Name Meaning
Specifies an increased path jerk for override changes and Stop/Start events. $AC_PATHJERK is only taken into account if the value is greater than the jerk limit specified during preprocessing. The value 0 disables the function. REAL Read in parts program x Write in parts program x x
1/B2/4-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Signal Descriptions
None
5
J
Example
None
6
J
7
Name Reference Minimum time with constant velocity Path-related maximum jerk Acceleration reserve for overlaid movements
Machine data
Identifier
Axis-specific ($MA_ ... ) 32300 32400 32402 32410 32412 32414 32420 32430 32432 MAX_AX_ACCEL AX_JERK_ENABLE AX_JERK_MODE AX_JERK_TIME AX_JERK_FREQ AX_JERK_DAMP JOG_AND_POS_JERK_ENABLE JOG_AND_POS_MAX_JERK PATH_TRANS_JERK_LIM Axis acceleration Axial jerk limitation Filter type for axial jerk limitation Time constant for axial jerk filter Blocking frequency axial jerk filters Damping axial jerk filters Initial setting for axial jerk limitation Axial jerk Max. axial jerk of a geometry axis at block boundary B1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/7-31
10.00
Reference
1/B2/7-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
7.2
Number
Setting data
Identifier Name Reference
Channel-specific ($SC_ ... ) 42500 42502 42510 42512 SD_MAX_PATH_ACCEL IS_SD_MAX_PATH_ACCEL SD_MAX_PATH_JERK IS_SD_MAX_PATH_JERK Maximum path acceleration SD for activation of additional limitation of path acceleration SD for additional limitation of (tangential) path jerk SD for activating the additional limitation of the (tangential) path jerk via SD
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/B2/7-33
10.00
7.3
Number
System variables
Identifier Name Reference
Channel-specific ($SC_ ... ) $AC_PATHACC $AC_PATHJERK Excess acceleration for Stop, feedrate change, safe velocity (Safety Integrated) Excess path jerk for Stop, feedrate change, safe velocity (Safety Integrated)
7.4
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
1/B2/7-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.01 10.00
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.3 2.4 2.5 Alarms, messages and alarm log . . . . . . . . . . . . . . . . . . . . . . . . . . . . General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NCK alarm handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Service displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle service display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Drive service display (for digital drives only) . . . . . . . . . . . . . . . . . . . Service display PROFIBUS DP 840Di . . . . . . . . . . . . . . . . . . . . . . . . Communication log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Log book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other diagnostics tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Identification defective drive modules (SW 6.3 and higher) . . . . . .
1/D1/1-3 1/D1/2-5 1/D1/2-5 1/D1/2-5 1/D1/2-5 1/D1/2-7 1/D1/2-8 1/D1/2-15 1/D1/2-24 1/D1/2-28 1/D1/2-29 1/D1/2-29 1/D1/2-30 1/D1/2-31 1/D1/2-32 1/D1/4-35 1/D1/4-35 1/D1/4-35 1/D1/6-39 1/D1/6-39 1/D1/7-41 1/D1/7-41 1/D1/7-42 1/D1/7-43 J
3 4
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 6 7
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/i
09.01 10.00
Notes
1/D1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
Integrated diagnostic tools
Test aids are integrated in the control system as diagnostic tools for the end customer or the service staff on site. The following information can be displayed on the operator panel in the Diagnostics operating area:
S Service displays
Information about the actual values and states of axes/spindles (e.g. position setpoint/actual value, drive status, actual current value, following error, contour deviation, ...) Communications error log NC/PLC/MMC Logbook with the relevant system modifications (e.g. altered password) Version display showing the currently available system SW versions.
Signal states and signal combinations can be changed for test purposes.
The 611D startup tool also provides support in optimizing drives and analyzing mechanical components and properties. The PCIN program can be used to archive machine data, setting data, parts programs, etc.
Using MD 13030 DRIVE_MODULE_TYPE it is possible to remove individual modules from the drive bus configuration at the NC end (the affected axes are switched to Simulation mode). In this way, for example, you can extract a 611D module specified in an alarm text from the bus.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/1-3
10.00
Notes
1/D1/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Detailed Description
2.1
2.1.1
2.1.2
Application
The alarm handler provides an infrastructure for the activation and management of alarms on the NCK.
Functions
Activation
The alarm handler is activated when an error status is detected in the NCK, causing an alarm to be output. An alarm can also be triggered by a parts program containing the language command SETAL. References: /PGA/ Programming Guide, Advanced
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-5
10.00 10.0
Note The currently active alarms in the NCK are read via the operator panel interface. It is not possible to set alarms externally in the NCK.
Alarms with an alarm ID in the 60000 to 60999 range can be activated in a parts program.
Data backup
On POWER ON, the alarm handler data are reinitialized completely since they are not stored in the buffered SRAM.
Delete criterion
You must specify for each alarm whether the alarm can be cleared again. The following criteria are possible options:
S POWERONCLEAR
The alarm is cleared by switching the control off and then on again.
S RESETCLEAR
The alarm is cleared when the Reset key is pressed in the channel in which it has occurred.
S CANCELCLEAR
The alarm is cleared when the Cancel key is pressed in any channel. The alarm can also be canceled by means of an NC start or Reset.
S NCSTARTCLEAR
The alarm is cleared when a program is started in the channel in which the alarm has occurred. The alarm can also be canceled by means of a Reset.
S CLEARHIMSELF
The alarm is not cleared by an operator input or action, but explicitly by a clearAlarm programmed in the NCK source code.
S BAGRESETCLEAR
The alarm is canceled by a BAGRESETCLEAR command or by the execution of a Reset in every channel of this mode group.
S NCKRESETCLEAR
The alarm is canceled by an NCKRESETCLEAR command or by the execution of a RESET in every channel.
1/D1/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
S MD 11410: SUPPRESS_ALARM_MASK
Screen form for suppressing special alarm outputs
S MD 11411:ENABLE_ALARM_MASK
Screen form for activating special alarm outputs For details of these machine data, please refer to Chapter 4.
2.2
Service displays
Operator actions
For how to operate the service displays see: References: /BA/, Operators Guide
Note It is possible to switch over between the displays using the vertical soft key PARTVIEW / OVERALLVIEW on the MMC 102/103. The data in the partial view are updated at significantly shorter intervals.
General
For diagnostic purposes, the SINUMERIK 840Di provides various service displays via HMI Advanced (formerly: MMC 103) and 840Di StartUp.
Diagnostics
S HMI Advanced
Service display Axis/spindle
S 840Di StartUp
Service displays PROFIBUS DP.
Supplementary conditions
Compared with SINUMERIK 840D, the following service displays and operating areas are not implemented in the SINUMERIK 840Di:
S HMI Advanced
Service display Drive Operating level Safety Integrated
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-7
10.00 10.00
2.2.1
Application
Fig. 2-1
1/D1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Diagram description
Following error
The difference between the position setpoint and actual position value of the active measuring system 1 or 2. Unit: mm, inch or degrees The difference between the position setpoint at the position controller input and the actual position value of the active measuring system 1 or 2. Unit: mm, inch or degrees This value indicates the current contour deviation (fluctuations in following error caused by compensatory processes on the speed controller due to changes in load). The contour deviation is based on the difference between a precalculated actual position value derived from the position setpoint and the actual position value of the active measuring system 1 or 2. Unit: mm, inch or degrees The servo gain factor in the display is calculated by the NC according to the following equation: Velocity setpoint Servo gain factor = ; Following error unit (of the default setting): [m/min] ; [mm]
Control deviation
Contour deviation
Velocity setpoint = setpoint currently being output to the axis/spindle. References: /FB1/, G2, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
Actual position of the axis as measured by means of measuring system 1/2. The position is displayed in the machine coordinate system (no zero point offsets or tool offsets taken included). Unit: mm, inch or degrees
Position setpoint
Setpoint position transferred from the interpolator to the position control. Unit: mm, inch or degrees
Displays the absolute compensation value for measuring system 1 or 2. The compensation value is the sum of the backlash compensation and leadscrew error compensation of the current axis position. Unit: mm, inch or degrees
Display of compensation value calculated for the current axis position based on the total of the sag and temperature compensations. Unit: mm, inch or degrees
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-9
10.00
Velocity actual value of active encoder (only 840Di) Velocity setpoint of drive (only 840Di) Speed actual value
The pulses supplied by the encoder are evaluated and displayed by the NC. Unit: % 100% signifies maximum speed (corresponds to 10V on analog interface; maximum speed with 611D, programmed in MD 1401: MOTOR_MAX_SPEED (speed for maximum useful motor speed)).
Speed setpoint
Speed setpoint transferred to the drive (= speed setpoint from position controller and feedforward control). Unit: % 100% corresponds to the maximum speed setpoint (10V for an analog interface, maximum speed for 611D).
Speed setpoint programmed by the user. Unit: rpm e.g.: Input: S1000; display: 1000rpm Display applies to spindles only.
Current active speed setpoint with correct sign, incl. calculated compensation value and any operative speed limitation (programmed by means of setting or machine data). Unit: U/min Display applies to spindles only.
Override
The active override factor of the feedrate and spindle override switch is displayed. Unit: %
The currently applicable position offset value is displayed on this line (referred to the actual value) if such an offset (angular offset between master and slave axes) has been programmed for the Synchronous spindle function. Unit: mm, inches, degrees References: /FB/, S3, Synchronous Spindles
The currently applicable position offset value is displayed on this line (referred to the setpoint) if such an offset (angular offset between master and slave axes) has been programmed for the Synchronous spindle function. Unit: mm, inches, degrees References: /FB/, S3, Synchronous Spindles
1/D1/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
The current actual gear stage is displayed here. In the case of axes, the value is only displayed if a spindle is assigned to the axis. The display corresponds to IS Actual gear stage (DB31, ... DBX16.0 to 16.2). References: /FB1/, S1, Spindles
Display indicating which of the 6 parameter sets of the position controller is active. For example, a gear change causes a change of parameter set. References: /FB1/, G2, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
Controller mode
Display of current controller states. 0: 1: 2: 3: 4: 5: Position control Speed control Hold Parking Follow-up Braking
For a more detailed description of the controller states see: References: /FB1/, A2, Various Interface Signals
Status display for reference point approach (axis). Bit0=status 0: Bit0=status 1: The machine axis with position measuring system 1 or 2 is not referenced. The machine axis reached the reference point (incremental measuring system) or the target point (linear measurement system with distancecoded reference marks) with reference point approach. Referencing not mandatory (this axis need not be referenced) Referencing not mandatory for NC Start.
Bit1=status 0: Bit1=status 1:
Dependent on machine data MD 34110: REFP_CYCLE_NR and MD 20700: REFP_NC_START_LOCK Display corresponds IS Referenced/synchronized 1 or 2 (DB31, ... DBX60.4 and 60.5). References: /FB1/, R1, Reference Point Approach
Indicates whether or not the learning process for quadrant error compensation is active.
Indicates whether or not the axis has fulfilled the conditions for Fixed stop reached when the Travel to fixed stop function is active (IS DB31 ..., DBX62.5) References: /FB/, F1, Travel to Fixed Stop
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-11
10.00
Displays the value programmed via FXST[x] or SD 43510: FIXED_STOP_TORQUE or the clamping torque defined via MD 37010: FIXED_STOP_TORQUE_DEF for the Travel to fixed stop function. Unit: % of the maximum torque References: /FB/, F1, Travel to Fixed Stop
Displays the current axis actual position that has been measured via the NC. This actual position should have the same value as Safe actual position drive. References: /FBSI/ Description of Functions, Safety Integrated
Displays the current axis actual position that has been measured via the drive. This actual position should have the same value as Safe actual position axis. References: /FBSI/ Description of Functions, Safety Integrated
Displays the safe input signals of the PLC defined for the Safety Integrated function. The state of these input signals should correspond to that of Safe input signals drive. References: /FBSI/ Description of Functions, Safety Integrated
Displays the safe input signals of the drive (DMP on drive bus) defined for the Safety Integrated function. The state of these input signals should correspond to that of the Safe input signals axis. References: /FBSI/ Description of Functions, Safety Integrated
Displays the safe output signals of the PLC defined for the Safety Integrated function. The state of these output signals should correspond to that of Safe output signals drive. References: /FBSI/ Description of Functions, Safety Integrated
Displays the safe output signals of the drive (DMP on drive bus) defined for the Safety Integrated function. The state of these output signals should correspond to that of Safe output signals axis. References: /FBSI/ Description of Functions, Safety Integrated
The following description contains more information about problems which may be encountered and clarifies further queries.
1/D1/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Data readoff
The figure below shows at which points in the closedloop system the axis and spindle information is read off.
Spindle speed setpoint current Position setpoint (velocity setpoint) Feedforward control Control deviation
Interpolator (IPO)
Fine interpolator
+ Posit. contr.
Speed controller
Current controller
Power section
Control loop model Contour deviation Active meas. system Actual position value measuring system 1
Actual speed value [%] Speed Actual value definition Abs. compensation value Measuring system 1 Actual processing Actual processing G G e.g. from direct meas. system
Following error
Actual position value measuring system 2 + Servo factor (calculated) = Velocity setpoint Following error Compensation (backlash, leads. error)
Fig. 2-2
A simple check of the position controller settings can be made via the service axis display by entering the number 1 (corresponding to KV = 1) in MD 32200: POSCTRL_GAIN[n] (servo gain factor). The change takes immediate effect. Because the servo gain factor is defined as KV = Velocity ; Following error [m/min] ; (default setting) [mm]
a following error of 1mm must be measured (with KV = 1 and constant velocity) at a feedrate of 1 m/min.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-13
10.00
If the desired servo gain factor does not correspond to the actual factor, the possible causes and remedial optimization options are as follows:
This information is also provided as a diagnostic tool for diagnosing the causes of alarms such as:
following error > MD 36030: STANDSTILL_POS_TOL (zero speed tolerance) contour deviation > MD 36400: CONTOUR_TOL (tolerance band for contour monitoring) speed setpoint > MD 36210: CTRLOUT_LIMIT (maximum speed setpoint) following error > MD 36010: STOP_LIMIT_FINE (exact stop fine) The difference between the actual position value of the measuring system 1 or 2 > MD 36500: ENC_CHANGE_TOL (max. tolerance for actual position value acquisition) following error > MD 36050: CLAMP_POS_TOL (clamping tolerance with interface signal Clamping active) /DA/, Diagnostics Guide
1/D1/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
The following information is provided to assist in the analysis of operational state errors such as:
S The axis does not traverse even though a travel command has been given.
Check whether the servo enable signal is applied. Position control or speed control (for spindle control) must be activated in controller mode. Detected via following error or actual speed value. Comparison position setpoint with actual position of measuring system 1/2 and abs. compensation value measuring system 1/2. Check Status display referenced
S The cam is not detected by the PLC during referencing. S The reference point value displayed is incorrect.
The wrong measuring system may have been used for referencing. Speed range for encoder selected too high or MD 36300: ENC_FREQ_LIMIT[n] (encoder limit frequency) set higher than specified on the encoder data sheet.
S The actual speed value of the main spindle drive shows heavy fluctuations.
Wrong measuring system may be selected or synchronization with wrong zero marker.
2.2.2
Note The parameters in the service display Drive are not necessary for connecting drives via PROFIBUS DP. With SINUMERIK 840Di, the drives are defined as PROFIBUS nodes. The appropriate service data are displayed in 840DiStartup in the menu Diagnostics > PROFIBUS.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-15
10.00 10.00
Application
S check the drive status (drive ready) S display the current ramp-up phase S display the group error message (message status class 1) S display the drive status messages
(e.g. Threshold torque not reached, Minimum speed not reached, Actual speed = set speed)
Fig. 2-3
Diagram description
The individual status displays, warnings, messages etc. are explained below. For more detailed information please consult: References: /IAD/, Installation and StartUp Guide
1/D1/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
The display corresponds to the status of terminal 64/63 on the 611D infeed/regenerative feedback unit: State 1: Central drive enable State 0: Central drive disable The display corresponds to MD 1700: TERMINAL_STATE (state of binary inputs).
The display corresponds to the status of terminal 63/48 on the 611D infeed/regenerative feedback unit: State 1: Central pulse enable State 0: Central pulse suppression The display corresponds to MD 1700: TERMINAL_STATE (state of binary inputs).
The display shows the status of terminal 663 (relay: safe operational stop) on the drive module. State 1: module-specific pulse enable State 0: module-specific pulse disable The display corresponds to MD 1700: TERMINAL_STATE (state of binary inputs).
Indicates whether the pulse enable from the PLC is available for the drive. State 1: The pulses for the drive module have been disabled by the PLC. State 0: Pulse enable for this drive is active. The display corresponds to IS Pulse enable (DB31, ... DBX21.7). References: /FB1/, A2, Various Interface Signals
This display indicates whether the speed controller for the drive has been enabled by the NC. State 1: Speed controller enable = OFF State 0: Speed controller enable = ON
Status display for ramp function generator rapid stop. State 1: Ramp function generator rapid stop is not active for the drive. State 0: Ramp function generator rapid stop is active. The drive is stopped without a ramp function with speed setpoint = 0 and without pulse suppression. The display corresponds to IS Ramp function generator rapid stop (DB31, ... DBX92.1). References: /FB1/, A2, Various Interface Signals
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-17
10.00
The display contains the following drive warning: State 0: DC link voltage = ON State 1: DC link voltage is below warning threshold. The warning threshold corresponds to the value set in MD 1604: LINK_VOLTAGE_WARN_LIMIT (DC link undervoltage warning threshold).
Impulse enabled
Message indicating whether the drive pulses have been enabled. State 0: The pulses have been disabled for the drive module. The axis/spindle cannot be traversed. State 1: The pulses have been enabled for the drive module. The axis/spindle can be traversed. The display corresponds to IS Pulses enabled (DB31, ... DBX93.7). References: /FB1/, A2, Various Interface Signals
Drive ready
Display of the current status of the selected drive. State 0: The drive is not ready. State 1: The drive is ready. The display corresponds to IS Drive Ready (DB31, ... DBX93.5). References: /FB1/, A2, Various Interface Signals
Rampup phase
Display indicating the current rampup phase of the selected drive. Significance: XYZ Internal coding 0 = 1 = 2, 3 = 4 = 5 = Software loaded in drive module Basic initialization of drive module completed. Drive machine data are initialized. Synchronization Cyclic operation
CRC error
Note If the display shows a value other than 0, please contact your SIEMENS Regional Office!
ZK1 messages
Display indicates whether messages of status class 1 are active. State 0: No status class 1 message is active. State 1: One or several status class 1 messages are active.
1/D1/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Speed setpoint
The actual value displayed represents the unfiltered actual speed value. Unit: U/min The display corresponds to MD 1707: ACTUAL_SPEED (actual speed value).
Display of the smoothed actual current value. The torque-generating current actual value is smoothed by a PT1 element with parameterizable time constant. Unit: % 100 % corresponds to the maximum current of the power section. The display corresponds to MD 1708: ACTUAL_CURRENT (smoothed actual current value).
Motor temperature
Display of motor temperature measured via temperature detectors. Unit: Degrees Celsius The display corresponds to MD 1702: MOTOR_TEMPERATURE (motor temperature).
Status display of speed setpoint smoothing function. State 0: No speed setpoint smoothing is active. State 1: Speed setpoint smoothing requested by the PLC with (DB31, ... DBX20.3) of the IS Speed setpoint smoothing is active because speed setpoint filter 1 is configured as a low pass filter. The display corresponds to IS Speed setpoint smoothing active (DB31, ... DBX92.3). References: /FB1/, A2, Various Interface Signals
Display of active torque limit State 0: Torque limit 1 is active. State 1: Torque limit 2 is active. The display corresponds to IS Torque limit 2 active (DB31, ... DBX92.2). References: /FB1/, A2, Various Interface Signals
Integrator disable
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-19
10.00 10.00
State 0: The integrator of the speed controller is enabled. The speed controller functions as a PI controller. State 1: Deactivation of the speed controller integrator requested by the PLC with IS Speed controller integrator disabled (DB 31, ... DBX 21.6) is active for the drive module. The speed controller has therefore switched from a PI to a P controller. The display corresponds to IS Speed controller integrator disabled (DB31, ... DBX93.6). References: /FB1/, A2, Various Interface Signals
Setup mode
Operating mode display of 611D: State 0: Normal operation is active for the drive: State 1: Setup mode is active for the drive. The display corresponds to IS Setup mode active (DB31, ... DBX92.0). References: /FB1/, A2, Various Interface Signals
Parking axis
Operating mode display of 611D: State 0: Axis/spindle in normal mode State 1: Axis/spindle in parking position, i.e. all encoder-specific monitoring functions and evaluations are disabled. The encoder can be removed without triggering an alarm.
Indicates which of the 8 drive parameter sets of the 611D are to be activated by the PLC. The display corresponds to IS Parameter set selection A, B, C (DB31, ... DBX21.0 to 21.2). References: /FB1/, A2, Various Interface Signals
Display indicating which of the 8 drive parameter sets of the 611D is currently active. The display corresponds to IS Active parameter set A, B, C (DB31, ... DBX93.0 to 93.2). References: /FB1/, A2, Various Interface Signals
Operating mode
Display indicating whether the motor is operating as a feed drive or main spindle drive. Display indicating which motor data set is to be activated by the PLC. At the moment the motor data record is used for the star/delta switchover on main spindle drives. The following assignment applies: Motor selection: Motor 1 Motor 2 Motor 3 Motor 4 Application: MSD Star operation MSD Delta operation Reserved Reserved Coding: 0 0 0 1 1 0 1 1
The display applies to MSD drives only. The display corresponds to IS Motor selection A, B (DB31, ... DBX21.3 to 21.4). References: /FB1/, A2, Various Interface Signals
1/D1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Display indicating which of the motor data sets is currently active. At the moment the motor data record is used for the star/delta switchover on main spindle drives. The following assignment applies: Motor selection: Motor 1 Motor 2 Motor 3 Motor 4 Application: MSD Star operation MSD Delta operation Reserved Reserved Coding: 0 0 0 1 1 0 1 1
The display applies to MSD drives only. The display corresponds to IS Active motor A, B (DB31, ... DBX93.3 to 93.4). References: /FB1/, A2, Various Interface Signals
Actual position of the axis as measured by means of measuring system 1/2. The position is displayed in the machine coordinate system (no zero point offsets or tool offsets taken included). Unit: mm, inch or degrees Warning signal output by drive: State 0: The heatsink temperature monitoring has not responded. State 1: The heatsink temperature monitoring has responded. The display corresponds to IS Heatsink temperature prewarning (DB31, ... DBX94.1). References: /FB1/, A2, Various Interface Signals
Warning signal output by drive: State 0: The motor temperature is below the warning threshold. State 1: The motor temperature has exceeded the defined warning threshold. The warning threshold corresponds to the value set in MD 1602: MOTOR_TEMP_WARN_LIMIT (maximum motor temperature). The display corresponds to IS Motor temperature warning (DB31, ... DBX94.0). References: /FB1/, A2, Various Interface Signals
Status display of drive. State 0: The ramp-up function has not yet been completed after a new speed setpoint was defined. State 1: The actual speed value has reached the speed tolerance band after a new speed setpoint was defined. The speed tolerance band corresponds to the setting in MD 1426: SPEED_DES_EQ_ACT_TOL (tolerance band for nsetnact signal). The display corresponds to IS Ramp-up function complete (DB31, ... DBX94.2) References: /FB1/, A2, Various Interface Signals
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-21
10.00
State 0: In the stationary condition (i.e. ramp-up procedure completed), the torque setpoint is greater than the threshold torque. State 1: In the stationary condition, the torque setpoint has not reached the threshold torque. The threshold torque corresponds to the setting in MD 1428: TORQUE_THRESHOLD_X (threshold torque). The display corresponds to IS Md< Mdx (DB31, ... DBX94.3). References: /FB1/, A2, Various Interface Signals
1/D1/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Status display of drive. State 0: The speed actual value is higher than the minimum speed. State 1: The actual speed value is smaller than the minimum speed. The minimum speed corresponds to the setting in MD 1418: SPEED_THRESHOLD_MIN (nmin for nact < nmin signal). Display corresponds to IS nact< nmin (DB31, ... DBX94.4). References: /FB1/, A2, Various Interface Signals
Status display of drive. State 0: The speed actual value is higher than the threshold speed. State 1: The actual speed value is smaller than the threshold speed. The threshold speed corresponds to the setting in MD 1417: SPEED_THRESHOLD_X (nx for nact < nx signal). Display corresponds to IS nact< nx (DB31, ... DBX94.5). References: /FB1/, A2, Various Interface Signals
Status display of drive. State 0: The actual speed value is outside the speed tolerance band after a new speed setpoint was defined. State 1: The actual speed value has reached the speed tolerance band after a new speed setpoint was defined. The speed tolerance band corresponds to the setting in MD 1426: SPEED_DES_EQ_ACT_TOL (tolerance band for nsetnact signal). Display corresponds to IS nact =nset (DB31, ... DBX94.6). References: /FB1/, A2, Various Interface Signals
Variable signal 1
Status display of variable signaling function of 611D. The variable signal function monitors a memory location for violation of the defined threshold. In addition to the threshold, a tolerance band can be defined which is also taken into account when scanning for violation of the threshold value. The signal can be combined with an ON delay or OFF delay time. State 0: Threshold value not reached State 1: Threshold value exceeded The variable signal function is parameterized in the following 611D machine data: PROG_SIGNAL_FLAGS (bits variable signal function) PROG_SIGNAL_NR (signal number variable signal function) PROG_SIGNAL_ADDRESS (address variable signal function) PROG_SIGNAL_THRESHOLD (threshold variable signal function) PROG_SIGNAL_HYSTERESIS (hysteresis variable signal function) PROG_SIGNAL_ON_DELAY (ON delay variable signal function) PROG_SIGNAL_OFF_DELAY (OFF delay variable signal function)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-23
10.00
This information is also provided as a diagnostic tool for diagnosing the causes of alarms such as:
Check the acceleration phase to determine what stage of acceleration the drive has reached. Message ZK1 is set. Check setpoint parameter set, motor selection, DC link status. Check alarms 300500 to 300515.
2.2.3
General
The user interface 840Di StartUp provides diagnostic screen forms for PROFIBUS DP and its nodes. These diagnostic screens are only intended for information. You cannot modify them. The following detailed information is displayed:
S PROFIBUS configuration S Information on the slaves regarding their assignment to PLC/NC S Detailed information on the slaves and the corresponding slots S Information on the axes.
General notes for handling
To obtain a quick overview, the current states of certain functions are represented using colored lamps. The following general conventions are used for the meaning of the individual colors:
S Green: Function is OK. S Red: Failure or no communication at the moment S Gray: Function is not available for the present communication.
1/D1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Function/subfunction Bus configuration Baud rate in MBd Cycle time in msec Synchronous portion (TDX) in msec Status Configuration OK. Data transfer rate
Configured bus cycle time; also defines the position controller cycle Configured time for cyclic data exchange within a PROFIBUS DP cycle
Status of configuration
S S
Bus status
Green lamp: DP master has powered up. Red lamp: Failure or no communication.
Current bus status is displayed in this field. Each bus status is explained in the screen form in brief. Possible states are:
S S S S S
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-25
10.00
Table 2-2
Diagnostic screen Information on the slaves Explanation/meaning Configured DP address of DP slave It is displayed whether the DP slave is assigned to the NC or to the PLC.
S S
Active on the bus
NC: NC: e.g. one or several drives controlled by the NC. PLC: e.g. I/O modules or an axis controlled by the PLC.
S S
Sync. with NC
Green lamp: DP slave has been detected on PROFIBUS DP and the data exchange with the assigned component (NC or PLC) operates. Red lamp: Failure or no communication.
S S S
Number of slots Details
Green lamp: DP slave operates on PROFIBUS DP synchronously to the NC, i.e. the equidistant data exchange takes place. Gray lamp: DP slave is not assigned to the NC, but to the PLC. Red lamp: Failure or no communication.
Number of configured slots within DP slave Pressing this button will open another diagnostic screen that provides detailed information on the corresponding DP slave.
1/D1/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Table 2-3
Diagnostic screen Detailed information on the slave Explanation/meaning Displays whether the DP slave is assigned to the NC or to the PLC.
Function/subfunction Assignment
S S
Active on the bus
NC: e.g. one or several drives controlled by the NC. PLC: e.g. I/O modules or an axis controlled by the PLC.
S S
Synchr.
Green lamp: DP slave has been detected on PROFIBUS DP and the data exchange with the assigned component (NC or PLC) operates. Red lamp: Failure or no communication.
S S S
Slots No. I/O address
Green lamp: DP slave operates on PROFIBUS DP synchronously to the NC, i.e. the equidistant data exchange takes place. Gray lamp: DP slave is not assigned to the NC, but to the PLC. Red lamp: Failure or no communication.
Slot number within DP slave I/O address in the I/O address space of the PLC assigned to this slot. For NC axes, setpoint and actual value must always be configured using the same I/O address. Drive number assigned for the appropriate axis in the NC machine data. Length of the I/O area in the STEP7 I/O address space, which is reserved for the slot Specification whether the slot is an input, output or diagnostic slot. If the slot is assigned to an NC axis, an output is always designated as a setpoint and an input always as an actual value. Display of the name defined for this slot in the machine data. If the slot is not assigned to any NC axis, <No NC axis> is displayed. Message frame type configured in the NC machine data. If the slot is not assigned to any NC axis, the message frame type will not be occupied (). Current slot status is only displayed for NC axes
Machine axes
Status
S S S
Green: Slot is used by the NC; communication active Gray: No NC axis Red: Slot is used by the NC; communication currently not active
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-27
10.00 10.00
S S
Message frame failures
Green lamp: Cyclic communication Red lamp: (Not yet) cyclic communication
The display shows the number of message frame failures since the NC was booted. This value indicates the quality (fault susceptibility) of the PROFIBUS DP line.
S S
Message frame failures
Green lamp: Cyclic communication Red lamp: (Not yet) cyclic communication
The display shows the number of message frame failures since the NC was booted. This value indicates the quality (fault susceptibility) of the PROFIBUS DP line. Display of encoder type configured in the NC machine data
Type
S S
Encoders 2
2.2.4
Communication log
The communications which have occurred between the MMC and NC are displayed in chronological order under soft key Comm. log in the Diagnostics operating area. This error list is provided to assist developers of OEM applications in localizing sporadic errors. The list has no relevance for normal operation.
1/D1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.2.5
Log book
The Log book display selected by means of soft key Log book in the Diagnostics operating area automatically lists details of all alterations to the control that are relevant for the system (e.g. changes in access level). With SINUMERIK 840Di, the log book is displayed in 840Di StartUp.
2.2.6
Version
The version of the MMC or NC software installed can be read from this display (Diagnostics operating area under soft key Version) by service personnel. The software versions of all software modules installed are also listed.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-29
10.00
2.3
PLC status
PLC status signals can be checked and altered via the operator panel in operating area Diagnostics.
Application
The end customer or service personnel can use this function on site without a programming device to do the following:
S Check the input and output signals of the PLC I/Os. S Carry out limited troubleshooting S Check the interface signals for diagnostic purposes.
Operator actions
For how to operate the service displays and alter them see: References: /BA/, Operators Guide
Status display
The status of the following data can be displayed on the operator panel.
S Interface signals from the machine control panel S Interface signals to the machine control panel S Interface signals between the NCK and PLC S Interface signals between the MMC and PLC S Data blocks (DB 0127) S Flags (FB 0255) S Timers (T 0127) S Counters (C 063) S Inputs (IB 0127) S Outputs (QB 0127)
Distribution of interface signals (DBx, DBBy) see: References: /IAD/, Installation and StartUp Guide /IAF/, Installation and StartUp Guide
Change in status
The status of the above signals can be changed for test purposes. Signal combinations are also possible. A maximum of ten operands can be altered at any one time.
1/D1/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.4
S for assessing the major values in position, speed and current control S for archiving drive and control data, and S for analyzing the given mechanical properties.
For handling and complete range of functions see: References: /IAD/, Installation and StartUp Guide
Archiving of data
The PCIN software package can be used to archive machine data, setting data, parts programs, etc. Handling is described in the relevant documentation. References: /PI/ PCIN 4.3
840Di StartUp
For diagnosing the SINUMERIK 840Di, the WINDOWS program 840Di StartUp can be used. This provides information, e.g. on the current operating mode and the nodes of PROFIBUS DP.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-31
Diagnostic Tools (D1) 2.5 Identification defective drive modules (SW 6.3 and higher)
10.00
2.5
Function
Troubleshooting may involve a situation where a drive module (SIMODRIVE 611 digital) displayed in an alarm text needs to be removed from the bus to prove that it is precisely this module that has caused the displayed error. Using MD 13030 DRIVE_MODULE_TYPE it is possible to remove individual modules from the drive bus configuration at the NC end (the affected axes are switched to Simulation mode).
Note You must remove the defective module from the drive bus configuration (SIMODRIVE 611 digital) before you activate the function. To do this, connect up the drive bus excluding the relevant module. Since this internal modification to the machine configuration can result in damage to the machine if implemented incorrectly, the axes are prevented from moving. If Safety Integrated has been activated for the modules concerned, you must disable it manually (safety, logged, EMERGENCY STOP scheme).
A drive module (SIMODRIVE 611 digital) specified in an alarm text must be removed from the bus: 1. Remove the module from the drive bus network 2. Set entries for drive module to zero in MD 13030 DRIVE_MODULE_TYPE (zeroaxis module). 3. Perform an NC RESET. The axes which were controlled by the removed drive modules are now replaced by simulation axes. The 611D bus with its drive modules is now in a state in which it could normally move axes, but axis traversal has been disabled internally. Alarm 300020 Drive %1 removed for diagnostics is displayed to indicate this status.
Following diagnostics, the initial configuration on the drive bus must be restored: 1. Replace or re-install the removed drive module. 2. Reenter the original values for the settings of the drive module in MD 13030 DRIVE_MODULE_TYPE. 3. Perform an NC RESET.
1/D1/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Diagnostic Tools (D1) 2.5 Identification defective drive modules (SW 6.3 and higher)
Example
The 2-axis module with drive numbers 1 and 2 must be removed from a drive grouping.
Note You must remove the defective module from the drive bus configuration (SIMODRIVE 611 digital) before you activate the function. To do this, connect up the drive bus excluding the relevant module. If Safety Integrated has been activated for the modules concerned, you must disable it manually (safety, logged, EMERGENCY STOP scheme).
Table 2-5
Module
1 2 left 2 right 3 left 3 right 4 5
Drive no.
10 1 2 4 5 12 11
Active
1 1 1 1 1 1 1
11
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/2-33
Diagnostic Tools (D1) 2.5 Identification defective drive modules (SW 6.3 and higher)
10.00
Note If alarm 300003 Axis xx drive yy incorrect module type zz appears, then you have removed only one part of a 2-axis module. In this case, you should check the module type in the drive configuration display. NO axis type is shown for removed modules.
1/D1/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Supplementary Conditions
3
J
4.1
11410 SUPPRESS_ALARM_MASK MD number Screen form for suppressing special alarm outputs Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/4-35
10.00 10.00
SUPPRESS_ALARM_MASK Screen form for suppressing special alarm outputs Screen form for suppressing special alarm outputs Bit set: The corresponding alarm (warning) is NOT generated. Bit 0: Bit 1: Bit 2: Bit 3: Alarm 15110 Channel %1 block %2 REORG not possible Alarm 10763 Channel %1 block %2 The path component of the block in the contour plane becomes zero Alarm 16924 Channel %1 Caution: Program testing can modify tool/magazine data. The alarm is only a message. Alarm 22010 Channel %1 spindle %2 block %3 actual gear stage does not match the set gear stage. The alarm is only a message. Alarm 17188 Channel %1 D number %2 for tool T No. %3 and %4 defined 17189 Channel %1 D number %2 of the tools in magazine/position %3 and %4 defined Both alarms are of equal significance and are messages only. Alarm 22071 TO unit %1 tool %2 duplo no. %3 is active, but not in the active wear group. The alarm is only a message. Alarm 4027 Attention: MD %1 was also changed for the other axes of the axis container %2 Alarm 4028 Attention: At the next ramp-up the axial MD in the axis container will be amended Alarm 22070 TO unit %1 Please change tool T= %2 into the magazine. Repeat data backup. The alarm is only a message. Alarm 6411 Channel %1 tool %2 with duplo no. %3 has reached the tool warning limit 6413 Channel %1 tool %2 with duplo no. %3 has reached the tool monitoring limit. Both alarms are only messages. They arise from the execution of the program. Alarm 6410 TO unit %1 tool %2 with duplo no. %3 has reached the tool warning limit. 6412 Channel %1 tool %2 with duplo no. %3 has reached the tool monitoring limit. Both alarms are only messages. They occur following an operator action. Alarm 10604 Channel %1 Block %2 Thread lead increase too high. 10605 Channel %1 Block %2 Thread lead decrease too high. Alarm 14088 Channel 1% Block %2 Axis %3 in unexpected position. Alarm 10607 Channel %1 Block %2 Thread with frame cannot be executed. Alarm 21701 Channel %1 Block %3 Axis %2 Measuring not possible. Alarm 21600 Monitoring for ESR active
Bit 4:
Bit 5: Bit6:
Bit7: Bit8:
Bit9:
1/D1/4-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11411 ENABLE_ALARM_MASK MD number Display special alarms Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after RESET Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 4.1 Significance: Mask for generating alarms that are normally suppressed. Bit set: Alarms of this alarm group are output. Bit not set: Alarms of this alarm group are not output. Bit 0: Alarms which have the response SHOWALARMAUTO are output. (Alarm 16905) The alarm response is to be set when an alarm is to be output only in Automatic mode without a manual operator action. Bit 1: Alarms which have the response SHOWWARNING are output. The response is used for warnings that are normally suppressed. SW 5.1 and higher: Bit 2: Technological alarm 22280 Thread ramp-up distance too short is output. SW 5.2 and higher: Bit 3: Alarms triggered by the NCU-LINK MODULE are bit 2 = 1. Related to .... References
11412 ALARM_REACTION_CHAN_NOREADY MD number Alarm reaction CHAN_NOREADY permitted Default setting: Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 4.1 Significance: If this MD is not set, then BAG_NOREADY is executed instead of CHAN_NOREADY! With SW 4.1 and higher, it is possible to set CHANNEL_NOREADY on the PLC in response to alarms. If this MD is not set, then the alarm handler internally reconfigures CHAN_NOREADY into BAG_NOREADY. The purpose of this MD is solely to provide compatibility with PLC systems with versions lower than SW 4.1. Related to ....
11413 ALARM_PAR_DISPLAY_TEXT MD number Texts as alarm parameters Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 0 / 0 Unit: Data type: BOOLEAN Applies from SW 3 Significance: If the MD is set, texts can be output as alarm parameters instead of numbers.
11420 LEN_PROTOCOL_FILEX MD number File size for protocol files (KB) Default setting: 1 Minimum input limit: 1 Maximum input limit: 1 000 000 Change effective after RESET Protection level: 7 / 2 Unit: KB Data type: DWORD Applies from SW 4.3 Significance: The WRITE command can be used to store blocks from the parts program in a file. The length of the protocol file is limited. An alarm is output.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/4-37
10.00
Notes
1/D1/4-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
Signal Descriptions
None
5
J
Example
None
6
J
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/6-39
10.00
Notes
1/D1/6-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
7
Name Reference
7.1
Interface signals
Bit, byte Signals from PLC to axis/spindle Actual gear step Parameter set selection A, B, C Motor selection A, B Pulse enable Signals from axis/spindle to PLC S1 A2 A2 A2
DB number
Axis/spindle-specific 31, ... 31, ... 31, ... 31, ... 16.0 to 16.2 21.0 to 21.2 21.3 to 21.4 21.7
31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ...
60.4 60.5 62.5 92.0 92.1 92.2 92.3 93.0 to 93.2 93.3 to 93.4 93.5 93.6 93.7 94.0 94.1 94.2 94.3 94.4 94.5 94.6 16.0 to 16.2 21.0 to 21.2 21.3 to 21.4 21.7
Referenced/synchronized 1 Referenced/synchronized 2 Fixed stop reached Setup mode active Ramp function generator rapid stop Torque limit 2 active Speed setpoint smoothing active Active parameter set A, B, C Active motor A, B Drive Ready Integrator n-controller disabled Pulses enabled Motor temperature warning Heatsink temperature prewarning Ramp-up function complete Md< Mdx nact< nmin nact< nx nact= nset Actual gear step Parameter set selection A, B, C Motor selection A, B Pulse enable
R1 R1 F1 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 A2 S1 A2 A2 A2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/7-41
10.00
7.2
Number
Machine data
Identifier Name Reference
General ($MN_ ... ) 11410 11411 11412 11413 11420 13030 SUPPRESS_ALARM_MASK ENABLE_ALARM_MASK ALARM_REACTION_CHAN_NOREADY ALARM_PAR_DISPLAY_TEXT LEN_PROTOCOL_FILEX DRIVE_MODULE_TYPE Mask for suppressing special alarms Activation of special alarms Alarm reaction CHAN_NOREADY permitted Texts as alarm parameters (Siemens Rights) File size for protocol files (KB) Module identifier (SIMODRIVE 611 digital) G2
Axis-specific ($MA_ ... ) 32200 32250 32260 36010 36030 36050 36210 36300 36400 36500 37010 43510 POSCTRL_GAIN [n] RATED_OUTVAL RATED_VELO STOP_LIMIT_FINE STANDSTILL_POS_TOL CLAMP_POS_TOL CTRLOUT_LIMIT ENC_FREQ_LIMIT[n] CONTOUR_TOL ENC_CHANGE_TOL FIXED_STOP_TORQUE_DEF FIXED_STOP_TORQUE Servo gain factor Rated output voltage Rated motor speed Exact stop fine Zero speed tolerance Clamping tolerance with interface signal Clamping active Maximum speed setpoint Encoder limit frequency Tolerance band contour monitoring Max. tolerance for position actual value acquisition Clamping torque Fixed stop clamping torque G2 G2 G2 B1 A3 A3 G2 A3 A3 G2 F1 F1
Drive machine data ($MD_ ... ) 1401 1417 1418 1426 1428 1602 1604 1620 1621 1622 1623 1624 1625 1626 1700 1702 1706 MOTOR_MAX_SPEED SPEED_THRESHOLD_X SPEED_THRESHOLD_MIN SPEED_DES_EQ_ACT_TOL TORQUE_THRESHOLD_X MOTOR_TEMP_WARN_LIMIT LINK_VOLTAGE_WARN_LIMIT PROG_SIGNAL_FLAGS PROG_SIGNAL_NR PROG_SIGNAL_ADDRESS PROG_SIGNAL_THRESHOLD PROG_SIGNAL_HYSTERESIS PROG_SIGNAL_ON_DELAY PROG_SIGNAL_OFF_DELA Y TERMINAL_STATE MOTOR_TEMPERATURE DESIRED_SPEED Speed for max. useful motor speed nx for nact < nx signal nmin for nact < nmin signal Tolerance band for nsetnact signal Threshold torque Maximum motor temperature DC link under voltage warning threshold Bits variable signal function Signal number variable signal function Address variable signal function Threshold variable signal function Hysteresis variable signal function ON Delay variable signal function OFF Delay variable signal function Status of binary inputs Motor temperature Speed setpoint /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/ /IAD/
1/D1/7-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Servo gain factor Speed actual value Smoothed current actual value
G2 /IAD/ /IAD/
7.3
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D1/7-43
10.00 10.00
Notes
1/D1/7-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 2.4 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.6 General, applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adapting the technology memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creation of a tool catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting up interactive programming . . . . . . . . . . . . . . . . . . . . . . . . . . . Selecting the milling or turning machining technology . . . . . . . . . . . Adaptation of axis identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adaptation of simulation data up to SW 3.1 . . . . . . . . . . . . . . . . . . . . Adaptation of simulation data with SW 3.2 and higher . . . . . . . . . . . Special conditions for adapting simulation data . . . . . . . . . . . . . . . . Matching the tool offset data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modifications with SW 3.6 and higher . . . . . . . . . . . . . . . . . . . . . . . . . Archiving of configuration data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/D2/1-3 1/D2/2-5 1/D2/2-5 1/D2/2-8 1/D2/2-10 1/D2/2-11 1/D2/2-12 1/D2/2-12 1/D2/2-13 1/D2/2-14 1/D2/2-18 1/D2/2-22 1/D2/2-27 1/D2/2-29 1/D2/2-31 1/D2/3-33 1/D2/5-35 1/D2/5-35 1/D2/6-37 1/D2/7-39 1/D2/7-39 1/D2/7-39 1/D2/7-39 1/D2/7-40 J
3 4 5 6 7
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.1.1 7.1.2 7.1.3 Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/i
10.00 10.00
Notes
1/D2/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
The Interactive Programming function can be used to create and process 1. parts programs and 2. program data. Integrated help features and testing tools support the programmer.
S The system supports the direct input of CNC code in conformity with
DIN 66025 and the processing of DIN 66025 programs which have been created externally.
S An ASCII editor is included for the editing of programs and data created with
interactive programming.
S The user interface, the technological parameters and the integrated tool
catalog can be customized.
Basic programming
Programs are created in a series of steps which are generated by parameter inputs in interactive screen forms after selection of one of the eight dialog levels.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/1-3
10.00 10.00
Notes
1/D2/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Detailed Description
2.1
General, applications
Applications
The Interactive programming function allows machine operators who have no in-depth knowledge of the NC programming code to
S create, S edit and S test (in a simulated machining environment under realistic conditions) parts
programs. In the supplied state, the dialogs, and particularly the graphical machining simulation, are intended for:
Note Assignments to turning or milling machines must be made via initial settings DPTURN or DPMILL before the MMC 102/103 runs up and the Interactive programming function is called (see Subsection 2.5.1). References: /PG/, Programming Guide: Fundamentals
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-5
10.00
Geometry model
The geometry model of the graphical machining simulation is generally oriented to the representation of prismatic parts without inclined orientation for milling, and rotationally symmetrical parts without eccentric drilling and milling operations for turning.
Program interpreter
The program interpreter of the machining simulation function in the MMC 102/103 is based on the porting of one NC channel with an appropriate data environment.
Note Components of the parts program which operate outside this framework (such as program coordination commands INIT, START, WAIT, or machine kinematics which are not configured in the ported data environment) can cause error states in the simulation, even though no errors are encountered during program execution in the NC area. Such program parts can be skipped during simulation in SW 3.2 and higher (by evaluating the system variable $P_SIM in the program), without restricting the machining sequence on the machine tool:
PROGRAM_START : : IF $P_SIM GOTOF dest_label ... cannot be interpreted for simulation ... program section dest_label: : : PROGRAM_END
Program code
In addition to the DIN 66025 compliant code with high-level language extensions, the program code generated by Interactive Programming also contains internal structure identifiers which are required for the management of the program steps.
ASCII editor
Programs which have been created with interactive programming should be edited within the framework of interactive programming or, provided the internal program structure is not modified and only values are altered, with the ASCII editor. The ASCII editor and interactive programming are designed for interoperation insofar as they use the same data management system.
Programs which have been modified with other (external) programming tools can be further edited with interactive programming, provided the internal program structure is still intact.
1/D2/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
General conditions
The Interactive programming function is implemented in the MMC 102/103 and can be used in conjunction with this component in the
Compatibility
Parts programs which already exist in system 800 controls (from SINUMERIK 805 to 840C) cannot be processed further in the Interactive programming environment until they have been converted with a program converter (@, cycle interfaces ...). It is not recommended to load system 800 programs directly and make subsequent modifications in the MMC area with the ASCII editor or interactive programming. A program template for the conversion of system 800 programs is available from Siemens AG, AUT 2.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-7
10.00
2.2
After selecting a help screen with the Information key and double-clicking any point in the graphics area with a mouse, the existing or initially empty graphic can be edited with the PAINTBRUSH graphics editor from the Windows 3.x platform. After the changes have been saved, the edited graphic is not activated until the help screen is called up again. The cursor for help texts is always ready for input in the text field. The default help text contains the name of the associated window, and is saved together with the user extension (user notepad). The default settings are called up again when all characters, including spaces, are deleted from the text field.
The graphics and text of the basic information for the dialog levels can edited separately, in the same way, by double-clicking the mouse in the graphics area or in the header.
The user can create his own list displays for the following 5 dialog levels (horizontal soft keys). He can then call them using vertical soft key User on the corresponding dialog level. 1. Program section 2. Path/contour 3. Continuous-path control 4. Tools and material 5. Machining The list screens are created in the menu path Display Mode / User Displays. References: /BA/, Operators Guide
This enables the necessary parameters to be entered and called up for user-specific programs (e.g. cycles), in the same way as the standard cycle dialogs. CNC code can also be generated directly from the parameters for the user display (e.g. user display for the generation of the necessary language elements for a machine transformation). An initially empty help screen is assigned automatically to each user display.
1/D2/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
Note
S A mouse is always required for the configuration of graphics. S The graphics data for the help screens must be stored in bitmap format
(*.bmp) in the system path C:\dh\dp.dir\hlp.dir.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-9
10.00
2.3
For each of the access keys Material\Cutting Material\Machining Quality\Machining Type it is possible to store one technology data block (empirical values), each with a maximum of ten parameters.
Material memory
The materials used in interactive programming must be defined before being used in the technology memory. In the menu path Tools and Material\Enter Material the appropriate data can be entered and saved in the menu path.
Before they are used in Interactive Programming, the cutter materials of the available tools must also be stored in the menu path Tools and Material\Enter Cutting Material.
In the menu path Tools and Material\Enter Technology for each of the access keys technological suggestion values can be initialized by the appropriate inputs. The suggested values are not calculation results from interactive programming, but are empirical values of the machine manufacturer or end user. Depending on the current machining type and the tool used, the appropriate suggestion values can be called up again in order to initialize the technology-dependent dialog screens (path screens and cycle displays).
Note
S Sets of technological data can not be edited. They must first be deleted and
then entered again.
1/D2/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.4
Two sets of data are basically available for each tool: 1. Tool master data, 2. Tool operating data. These can be customized.
S Data for tool geometry and kinematics S A subset of data which can be mapped onto TOA data.
Tool operating data
The Tool operating data relevant for a tool change:
S Active cutting edge on tool call S Cutting material of the tool for the technology access S Tool location number in the magazine S Preselection of radius compensation S Preselection of spindle motion
can be initialized in the tool change screen, in the same way as the suggested values in the technology memory, so that they are subsequently available for the use of the tool catalog.
For the creation of the tool catalog, reference tools are available to the user in the menu path Tools and material\Tool entry as a starting point for the customization of the master and operating data of the tools to be included in the tool catalog.
In the menu path Tools and material\Tool change the selection of a tool from the tool catalog causes the tool change screen to be initialized automatically with the previously presented tool operating data. Note
S In the supplied state, the tool catalog only contains the master data of the
reference tools.
S When using a tool management system (option), the master data of the tool
catalog are matched to the data of the tool management system by using the same database.
S In SW 3.2 and higher, machining simulation access to the tool master data
is initialized when a tool is called from the tool catalog.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-11
10.00
2.5
2.5.1
Operator actions
Start up
Press the END key twice, to call up the file selection window.
End
End
Use the direction keys to look in C:\MMC2 for the REGIE.INI file
Under the TaskConfiguration section you will find: Task2=name:=dpmill, ... (for milling machine) ;Task2=name:=dpturn, ... (for turning machine)
1/D2/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
Now place the semicolon (;) in front of the task which is not to be active, and delete the semicolon from in front of the task which is to be activated (in this case: Milling version active).
and press Recall to return to startup mode. When the MMC 102/103 is powered up again, interactive programming is assigned to the desired machining technology.
Note In the supplied state, the milling machining technology is active. In SW 3.2 and higher, the task name for the milling version is DP (instead of DPMILL).
2.5.2
Interactive programming allows the axis identifiers to be adapted flexibly to the geometry axes and the associated machine and interpolation axes. The defined identifiers are included in both the CNC code generation and the CNC code analysis (step modifications).
To ensure that the generated CNC code is executable on the target machine (NCK or simulation interpreter), the axis identifiers of interactive programming should be matched as follows to the real axis identifiers (NCK machine data):
Operator actions
and use the Page Down key to select the second page of the screen.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-13
10.00
and included in the CNC code generation for the current workpiece from this point on.
Note In SW 3.2 and higher, this setting can be used for all new workpieces (prompt window).
2.5.3
As already described in Section 2.1, the machining simulation on the MMC-102/103 can be run with a separate set of machine data by means of a pseudochannel. This set of machine data for interactive programming should be matched to the real set of machine data such that a realistic, errorfree simulation can be performed on standard parts programs. Program sequences (such as channel coordination commands) which cannot be interpreted cannot be skipped in SW 3.1, and cause alarm messages to be output by the simulation interpreter. Overview of the sets of data up to and including SW 3.1:
NCK
MMC
Simulation
Fig. 2-1
1/D2/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
In the supplied state, the set of simulation data in DPSIM.TEA is oriented to the milling version. For the turning technology, you should open this file and make turning-specific changes (XZ kinematics, working plane G18, diameter programming, etc.). For the standard configuration adaptation, you only need to delete the semicolon in the following turning-specific machine data:
$MC_GCODE_RESET_VALUES[5]=2 ;BHf from turn.md ... G18 : : $MC_GCODE_RESET_VALUES[28]=2 ;BH from turn.md diamprog (DIAMON)
Note The same conditions that apply to the adaptation of NCK machine data should be observed in all modifications of the simulation machine data in the DPSIM.TEA file. See References: /IAD/, Installation and StartUp Guide SW 2
The flow chart in Fig. 2-2 represents the procedure for matching the machine data up to and including SW 3.1:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-15
10.00
Machine manufacturer:
Mill
Machin ing techno logy? Turn DPSIM.TEA Turning technology adaptation X, Z kinematics Machine manufacturer:
Standard (X, Y, Z or X, Z)
Machine kinematics? Special (e.g. rotary axes) DPSIM.TEA Adaptation of machine kinematics Siemens engineers:
INITIAL.INI
Individual matching of the machine data of the simulation channel with the NCK startup data (observe special conditions in Subsection 2.5.5).
NCK
MMC
END matching
Fig. 2-2
1/D2/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
Operator actions
Note Before adapting the file DPSIM.TEA, a full PC keyboard must be connected to the keyboard interface (round connector) of the MMC 102/103, and the manufacturers password must be activated.
Startup mode
CD
DP
Enter the DOS command shown opposite to change to the DP subdirectory C:\MMC2\DP>.
EDIT DPSIM.TEA
Now, open the file DPSIM.TEA for editing with the DOS editor.
Use the direction keys to move the text cursor to the desired modification point, and make the changes.
ALT
When you have made the changes, press the Alt key on the full PC keyboard to activate the top menu line File (in the American Windows Version!).
Use the direction key to open the File menu, and press the X key to exit the editor.
or
If you have made any changes, answer Yes to the prompt window.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-17
10.00
The modified data in the DPSIM.TEA file are activated the next time the simulation is powered up.
Note
S In SW 3.1 of the MMC 102/103, the file DPSIM.TEA cannot be opened with
the editor in the menu path Startup... (the file is too large).
2.5.4
The machining simulation also uses a pseudochannel to run a separate, albeit restructured set of machine data in SW 3.2. and higher. The technological basic sets of data have also been completed for milling and turning.
1/D2/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
NCK
MMC
Simulation
or or
or
copy
Fig. 2-3
For more convenient adaptation in software SW 3.2 and higher, the set of simulation machine data is already contained in two basic sets of data in the C:\MMC2\DP directory:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-19
10.00
INITIAL.INI
Machine manufacturer:
If necessary (e.g. special axis identifier or machine transformations), create MD copy INITIAL.INI (see next page)
NCK
yes
no
Machining technology? Mill INITIAL.INI Real MD, any kinematics DPSIM_M.TEA Basic milling data Milling X, Y, Z, A, B kinematics
Turn
Activated last with automatic fulfillment of the special conditions in Subsection 2.5.5
MMC
END matching
Fig. 2-4
Semiautomatic procedure for matching the machine data in SW 3.2 and higher
1/D2/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
Operator actions
Operator actions for creating the file INITIAL.INI in the simulation directory: In order to adapt the set of simulation data to the real set of machine data, the active initialization data, including the machine data, are copied directly into the simulation directory of the interactive programming system (the manufacturers password must be entered correctly).
Data Selection
Use the direction keys to position the cursor on the directory NC-active data
after which you can use the direction keys to select the file INITIALIZATION PROGRAM (INI).
Data Management
Use the direction keys and the Input key to move to the target directory Interactive Programming/Simulation Data,
The copy operation is subsequently started, and the file INITIAL.INI is created in the simulation directory. The real machine data are included the next time the simulation is powered up.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-21
10.00
2.5.5
Contrary to the NCK Start up Guide, the flexible assignment of geometry axes to channel axes cannot be used for individual matching of the simulation channel machine data in the file DPSIM.TEA. The simulation interpreter always assumes a permanent assignment: 1st geometry axis => 1st channel axis or none 2nd geometry axis => 2nd channel axis or none 3rd geometry axis => 3rd channel axis or none Consequently, the corresponding machine data in the DPSIM.TEA file can only have the following values:
$MC_AXCONF_GEOAX_ASSIGN_T AB[0]=1 or 0 $MC_AXCONF_GEOAX_ASSIGN_T AB[1]=2 or 0 $MC_AXCONF_GEOAX_ASSIGN_T AB[2]=3 or 0
The following configuration example is intended to illustrate this. Other assignments to channel axes (e.g. during the configuration of machine transformations) should be adapted accordingly.
Note The restriction described above does not apply to SW 3.2 and higher!
Configuration example
; ; SW 3.1 Machine data excerpt for adaptation ; of the axis configuration for machining simulation ; on a turning machine (intended only as an example !) ; 2 geometry axes ( X, Z ) ==> 1st and 2nd machine axes ; 1 spindle (C, rotary axis) ==> 4th machine axis ; 1 auxiliary axis (Q, linear axis) ==> 3rd machine axis ; CHANDATA(1) $MN_AXCONF_MACHAX_NAME_T AB[0]=X1 $MN_AXCONF_MACHAX_NAME_T AB[1]=Z1 $MN_AXCONF_MACHAX_NAME_T AB[2]=Q1 $MN_AXCONF_MACHAX_NAME_T AB[3]=C1 $MN_AXCONF_MACHAX_NAME_T AB[4]=A1 $MN_AXCONF_MACHAX_NAME_T AB[5]=Y1 $MN_AXCONF_MACHAX_NAME_T AB[6]=U1 $MN_AXCONF_MACHAX_NAME_T AB[7]=V1 CHANDATA(1) $MC_CHAN_NAME=CHAN1 385e $MC_AXCONF_GEOAX_ASSIGN_T AB[0]=1
1/D2/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
$MC_AXCONF_GEOAX_ASSIGN_T AB[1]=0 $MC_AXCONF_GEOAX_ASSIGN_T AB[2]=3 $MC_AXCONF_GEOAX_NAME_T AB[0]=X $MC_AXCONF_GEOAX_NAME_T AB[1]=Y $MC_AXCONF_GEOAX_NAME_T AB[2]=Z $MC_AXCONF_MACHAX_USED[0]=1 $MC_AXCONF_MACHAX_USED[1]=4 $MC_AXCONF_MACHAX_USED[2]=2 $MC_AXCONF_MACHAX_USED[3]=3 $MC_AXCONF_MACHAX_USED[4]=0 $MC_AXCONF_MACHAX_USED[5]=0 $MC_AXCONF_MACHAX_USED[6]=0 $MC_AXCONF_MACHAX_USED[7]=0 $MC_AXCONF_CHANAX_NAME_T AB[0]= $MC_AXCONF_CHANAX_NAME_T AB[1]=C $MC_AXCONF_CHANAX_NAME_T AB[2]= $MC_AXCONF_CHANAX_NAME_T AB[3]=Q $MC_AXCONF_CHANAX_NAME_T AB[4]=A $MC_AXCONF_CHANAX_NAME_T AB[5]=Y $MC_AXCONF_CHANAX_NAME_T AB[6]=U $MC_AXCONF_CHANAX_NAME_T AB[7]=V : $MA_SPIND_ASSIGN_TO_MACHAX[AX4]=1 : M30
Certain machine data of the simulation channel must have a defined state (simulation state) for the error-free operation of the machining simulation. This defined state differs from the real state of the corresponding NCK machine data. In SW 3.1, the machine data must be set explicitly to this state in the file DPSIM.TEA (see Subsection 2.5.3). In SW 3.2 and higher, the machine data are included in the DPSIM.TEA file (which was last active) from the start, with the result that the data are matched automatically.
The file DPSIM.TEA is printed on the following three pages, as supplied with SW 3.2 and higher:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-23
10.00
DPSIM.TEA file
; This dpsim.tea serves as a supplement to machine data input, ; in order to adapt any inappropriate settings for simulation ; made by the user INITIAL.INI. ; ; CHANDATA (1) ; No referencing for required for NC start $MC_REFP_NC_START_LOCK = 0 ; Deactivate PLC time out monitoring: $MN_PLC_RUNNINGUP_TIMEOUT = 10. $MN_PLC_CYCLIC_TIMEOUT = 10. ; Memory configuration $MN_MM_USER_MEM_DYNAMIC = 5000 ; Override to respond digitally: $MN_OVR_FEED_IS_GRA Y_CODE = 0 $MN_OVR_RAPID_IS_GRA Y_CODE = 0 $MN_OVR_AX_IS_GRA Y_CODE = 0 $MN_OVR_SPIND_IS_GRA Y_CODE = 0 ; No 611D drive required: $MN_DRIVE_IS_ACTIVE[0]=0 $MN_DRIVE_IS_ACTIVE[1]=0 $MN_DRIVE_IS_ACTIVE[2]=0 $MN_DRIVE_IS_ACTIVE[3]=0 $MN_DRIVE_IS_ACTIVE[4]=0 $MN_DRIVE_IS_ACTIVE[5]=0 $MN_DRIVE_IS_ACTIVE[6]=0 $MN_DRIVE_IS_ACTIVE[7]=0 $MN_DRIVE_IS_ACTIVE[8]=0
1/D2/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
; Setpoint output simulated: $MA_CTRLOUT_TYPE[0,AX1]=0 $MA_CTRLOUT_TYPE[0,AX2]=0 $MA_CTRLOUT_TYPE[0,AX3]=0 $MA_CTRLOUT_TYPE[0,AX4]=0 $MA_CTRLOUT_TYPE[0,AX5]=0 $MA_CTRLOUT_TYPE[0,AX6]=0 $MA_CTRLOUT_TYPE[0,AX7]=0 $MA_CTRLOUT_TYPE[0,AX8]=0 ; Axis output signals to PLC even for simulated axes $MA_SIMU_AX_VDI_OUTPUT[AX1]=1 $MA_SIMU_AX_VDI_OUTPUT[AX2]=1 $MA_SIMU_AX_VDI_OUTPUT[AX3]=1 $MA_SIMU_AX_VDI_OUTPUT[AX4]=1 $MA_SIMU_AX_VDI_OUTPUT[AX5]=1 $MA_SIMU_AX_VDI_OUTPUT[AX6]=1 $MA_SIMU_AX_VDI_OUTPUT[AX7]=1 $MA_SIMU_AX_VDI_OUTPUT[AX8]=1 ; The IPO cycle is adjusted to match the servo cycle ; therefore $MA_FIPO_TYPE[AXn] = 1 not required for SIM $MN_IPO_SYSCLOCK_TIME_RA TIO=1 ; The only one allowed, and even the default value is not set separately ; $MN_POSCTRL_SYSCLOCK_TIME_RATIO=1 ; Deactivate spindle states for IPO start $MA_SPIND_ON_SPEED_A T_IPO_START [AX1] = FALSE $MA_SPIND_STOPPED_AT_IPO_START [AX1] = FALSE $MA_SPIND_ON_SPEED_A T_IPO_START [AX2] = FALSE $MA_SPIND_STOPPED_AT_IPO_START [AX2] = FALSE $MA_SPIND_ON_SPEED_A T_IPO_START [AX3] = FALSE $MA_SPIND_STOPPED_AT_IPO_START [AX3] = FALSE $MA_SPIND_ON_SPEED_A T_IPO_START [AX4] = FALSE $MA_SPIND_STOPPED_AT_IPO_START [AX4] = FALSE $MA_SPIND_ON_SPEED_A T_IPO_START [AX5] = FALSE $MA_SPIND_STOPPED_AT_IPO_START [AX5] = FALSE $MA_SPIND_ON_SPEED_A T_IPO_START [AX6] = FALSE $MA_SPIND_STOPPED_AT_IPO_START [AX6] = FALSE $MA_SPIND_ON_SPEED_A T_IPO_START [AX7] = FALSE $MA_SPIND_STOPPED_AT_IPO_START [AX7] = FALSE $MA_SPIND_ON_SPEED_A T_IPO_START [AX8] = FALSE $MA_SPIND_STOPPED_AT_IPO_START [AX8] = FALSE ;Simulation without gearbox switchover (requires PLC acknowledgment!) $MA_GEAR_STEP_CHANGE_ENABLE[ AX1 ]=0 $MA_GEAR_STEP_CHANGE_ENABLE[ AX2 ]=0 $MA_GEAR_STEP_CHANGE_ENABLE[ AX3 ]=0 $MA_GEAR_STEP_CHANGE_ENABLE[ AX4 ]=0 $MA_GEAR_STEP_CHANGE_ENABLE[ AX5 ]=0 $MA_GEAR_STEP_CHANGE_ENABLE[ AX6 ]=0 $MA_GEAR_STEP_CHANGE_ENABLE[ AX7 ]=0 $MA_GEAR_STEP_CHANGE_ENABLE[ AX8 ]=0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-25
10.00
;Enable all options for simulation: $ON_NC_CODE_CONF_NAME_T AB[ 0 ]= $ON_NC_CODE_CONF_NAME_T AB[ 2 ]= $ON_NC_CODE_CONF_NAME_T AB[ 4 ]= $ON_NC_CODE_CONF_NAME_T AB[ 6 ]= $ON_NC_CODE_CONF_NAME_T AB[ 8 ]= $ON_NC_CODE_CONF_NAME_T AB[ 10 ]= $ON_NC_CODE_CONF_NAME_T AB[ 12 ]= $ON_NC_CODE_CONF_NAME_T AB[ 14 ]= $ON_NC_CODE_CONF_NAME_T AB[ 16 ]= $ON_NC_CODE_CONF_NAME_T AB[ 18 ]= $ON_NC_CODE_CONF_NAME_T AB[ 20 ]= $ON_NC_CODE_CONF_NAME_T AB[ 22 ]= $ON_NC_CODE_CONF_NAME_T AB[ 24 ]= $ON_NC_CODE_CONF_NAME_T AB[ 26 ]= $ON_NC_CODE_CONF_NAME_T AB[ 28 ]=
; ASPLINE ; BSPLINE ; CSPLINE ; COMPON ; POLY ; REPOSL ; REPOSQ ; REPOSH ; COUPON ; TANGON ; FTOCON ; CUT3DC ; CUT3DF ; ;
;========================================================= ; The following screens are initially enabled directly as values !!! ; ;========================================================= ; Delete active tool on reset ; since only bit 1 is enabled, TOOL_RESET_VALUE is evaluated (default 0) $MC_RESET_MODE_MASK=1 ; Simulation of PLC acknowledgments on tool motion and tool change active. ; This bit is only used for testing purposes. It is used to test ; the data transport on NCK and MMC. $MC_TOOL_MANAGEMENT_MASK=H0200 ;**************************************************************** ; CAUTION: No blank lines after M30! M30
1/D2/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
2.5.6
The following basic options are available for representing tools in the machining simulation: 1. Create a TOA file in the workpiece directory of the simulated program 2. Call a subprogram with the TOA data from the simulated program 3. Insert TOA data directly at the beginning of the simulated program 4. With SW 3.2 and higher, tool data from the tool catalog can also be used as representative tools. To enable the tools to be represented with the real offset values in the machining simulation, the active tool data in the simulation must first be matched to the tool data from the NCactive data. You can do this by copying the desired tool data from the NCactive data, and inserting the data in one of the previously addressed TOA data areas included in the simulation.
Note
S No information about the exact geometry of the tool shank or the cutting
edge can be derived from the TOA parameters.
S The simulation uses standard default values for the above. These values
can deviate from the real dimensions of the tool used, and incorrectly indicate collisions during the machining simulation.
Operator actions
The operating sequence for the indirect copying of the NC-active tool data is mainly identical in SW 3.1 and SW 3.2:
Data Selection
Use the direction keys to position the cursor on the directory NC-active data, select the data with the Selection key,
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-27
10.00
In the Programs/Data overview, press the Input key to open the directory NC-active data, and use the direction keys to move to the directory Tool/magazine data.
In order to copy the contents of the file via the Clipboard, open the file with the Input key,
You can now insert use the ASCII editor to insert the contents of the Clipboard in one of the TOA areas included in the simulation: For example, create an empty file of the type .TOA in Interactive programming, and insert the contents of the Clipboard in this TOA file.
New
S Please ensure that the copied file in your target area has the correct type
(TOA or SPF) and rename the file if necessary.
1/D2/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Note Please refer to Chapter 6 Services User Area of the Operators Guide for a detailed description of file handling.
References:
2.5.7
S If the Help scratchpad text for a screen form does not have the same
heading as the form, then the Help display is output together with the screen form (If not: Press i key first). This mechanism uses the interactive programming function originally for cycle displays, user displays and for tool master data. However, the user can apply it to all screen forms.
Free input
S The screen form for Free inputs is now a fullframe display. S If a new step of the Free input type is created and block numbering is
selected, then a block number is entered in the screen form.
Contour
S The contour display can no longer be selected explicitly, but is now used
only implicitly by the contour computer.
S The contour display covers the full screen width. S The soft key Setting geometry has been removed from the basic menu for
Display mode. It can now be reached only by changing to the Display mode level when the contour computer is active.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-29
10.00 10.00
Simulation
S The simulation display is now a full-frame display S The soft key Setting simulation has been shifted from the basic menu of
Display mode into the basic menu for Simulation and is now called Blank + options.
Program display
S Additional display areas are no longer set in the Default Settings screen
form (previously: Program + geometry, program + simulation).
S The soft key Setting program in the basic menu of Display mode has been
replaced by soft key Change represent., which can be selected to switch between Step and Code representation.
S The last selected change mode is present on the next call. S Two different input fields are now provided for entering the name of the tool
change program and the name of the tool. The option of calling a tool change program in Step can now also be utilized with the tool management function.
1. The technology memory can be deactivated in the INI file: New entry in C:\MMC2\dpmill.ini / dpturn.ini (variables are read only during power-up): [ACCESSLEVEL] USE_TECHNO=7 USE_TECHNO=0 can be entered to switch of the technology support function: Cutting edge/material selections and cutting edge/material editors are then no longer available. 2. The tool catalog can be deactivated in the INI file: New entry in C:\MMC2\dpmill.ini / dpturn.ini (variables are read only during power-up): [ACCESSLEVEL] USE_CATALOG=7 When USE_CATALOG is set to 0, no tool catalog or tool editor is available. 3. If both the technology memory and tool catalog have been deactivated and no user displays are configured on dialog level 6, Tool change is displayed as dialog level 6 rather than Tools and material. When the level is selected, the Tool change screen form is displayed immediately. 4. The screen form Blank + options contains the new soft key Match tool data which can be used to copy a tool data image TO_INI.INI from the NC into directory DP.DIR\SIM.DIR.
1/D2/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
5. The screen form Blank + options contains the new soft key Match machine data which can be used to copy a machine data image INITIAL_INI from the NC into directory DP.DIR\SIM.DIR. 6. If neither of the above two files exists when the simulation routine runs up for the first time, the system asks whether data must be matched. 7. If no tool data are stored for a particular tool, the user must select one of the following procedure options. The following soft keys are displayed: Ignore: All offset data are set to zero internally. A polymarker is displayed on the programmed path. Always ignore: As for a). The same procedure is applied automatically for all other missing tool data in this simulation run. Abort: The simulation run is aborted and alarm 17190 (Illegal T number) output. Default (not provided for turning applications or in conjunction with tool management): The data of a default tool (type 120, length1 100, diameter from Blank+options screen form) are used in the simulation run. Always default (not provided for turning applications or in conjunction with tool management): As for d). The same procedure is applied automatically for all other missing tool data in this simulation run.
2.6
Both the standard configuration data of interactive programming and the user-specific extensions of this configuration data can be read in and out or included in a batch start-up at any time in the Services/Interactive Programming data area.
Note Please refer to the Operators Guide Services User Area for a detailed description of file handling. References: /BA/ Operators Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/2-31
10.00 10.00
Notes
1/D2/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Supplementary Conditions
The Interactive programming function is fully executable on all operator panel configurations with the MMC 102/103.
S MMC 102/103 with 16MB RAM S Color monitor (OP 031/032) S Operation via a QWERTY keyboard
The response of the simulation channel to defined language statements is described in the documentation for SW 2 of the SINUMERIK 840D (Programming Guide, Descriptions of Functions). The information in Section 2.1 (evaluation of system variable $P_SIM) should also be noted.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/3-33
10.00 10.00
Notes
1/D2/3-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
4
J
The data descriptions in the following documentation apply to the simulation data: References: /IAD/, Installation and StartUp Guide, SW 2
Signal Descriptions
None.
5
J
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/5-35
10.00 10.00
Notes
1/D2/5-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Example
6
The interactive programming function is to be used for the creation and simulation of parts programs on a turning machine with
S facing axis X, S longitudinal axis Z, S rotary axis C (master spindle), S an auxiliary axis Q (loader) and S a turret with permanent location.
Since the real machine environment differs from the standard state of the interactive programming system when supplied, at least the following modifications must be made: 1. Set up Interactive programming for turning applications according to instructions in Subsection 2.5.1 2. Adapt axis identifiers according to instructions in Subsection 2.5.2 3. Adapt simulation data according to instructions in Subsection 2.5.3 or 2.5.4 4. Adapt tool offset data according to instructions in Subsection 2.5.6 Only when these modifications have been made is the interactive programming system suitable in practice for use with the above turning machine, and for machining simulation in the real environment.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/6-37
10.00 10.00
Notes
1/D2/6-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Machine data
General machine data
Number General ($MN_ ... ) 10000 10060 10070 10100 10120 12000 12020 12040 12060 13000 18210
Identifier
Name
Reference
AXCONF_MACHAX_NAME_T AB[n] POSCTRL_SYSCLOCK_TIME_RA TIO IPO_SYSCLOCK_TIME_RA TIO PLC_CYCLE_TIMEOUT PLC_RUNNINGUP_TIMEOUT OVR_AX_IS_GRAY_CODE OVR_FEED_IS_GRAY_CODE OVR_RAPID_IS_GRAY_CODE OVR_SPIND_IS_GRAY_CODE DRIVE_IS_ACTIVE[n] MM_USER_MEM_DYNAMIC
Machine axis name Factor for position control cycle Factor for interpolator cycle Maximum PLC cycle time Monitoring time for PLC powerup Axis feed override switch, Graycoded Path feed override switch, Graycoded Rapid traverse override switch, Graycoded Spindle override switch, Graycoded Drive activation (611D) Dynamic user memory in DRAM
/K2/ /G2/ /G2/ /P3/ /H2/ /V1/ /V1/ /V1/ /V1/ /G2/ /S7/
7.1.2
Channel-specific ($MC_ ... ) 20000 20050 20060 20070 20080 20110 20120 20310 20700 CHAN_NAME AXCONF_GEOAX_ASSIGN_TAB[n] AXCONF_GEOAX_NAME_T AB[n] AXCONF_MACHAX_USED[n] AXCONF_CHANAX_NAME_T AB[n] RESET_MODE_MASK TOOL_RESET_VALUE TOOL_MANAGEMENT_MASK REFP_NC_START_LOCK Channel name Assignment of geometry axis to channel axis Geometry axis in channel Machine axis name valid in channel Channel axis name in channel Definition of control initial setting after parts program start Tool whose tool length compensation is selected during power-up (Reset/parts program end) Activation of tool management in various forms NC start disable without reference point /K1/ /K2/ /K2/ /K2/ /K2/ /K2/ /K2/ /FBW/ /R1/
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/D2/7-39
10.00
7.1.3
Axis-specific ($MA_ ... ) 30130 30240 30350 35000 35010 35500 35510 CTRLOUT_TYPE[n] ENC_TYPE[n] SIMU_AX_VDI_OUTPUT[n] SPIND_ASSIGN_TO_MACHAX[n] GEAR_STEP_CHANGE_ENABLE[n] SPIND_ON_SPEED_AT_IPO_START[n] SPIND_STOPPED_AT_IPO_START[n] Output type of setpoint Type of actual value acquisition (position actual value) Output of axis signals for simulation axes Assignment of spindle to machine axis Gear stage change possible. Spindle has several gear stages. Feed enable with spindle in setpoint range Feed enable with stationary spindle /G2/ /G2/ /G2/ /S1/ /S1/ /S1/ /S1/
1/D2/7-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.3 2.3.1 2.4 2.4.1 2.4.2 2.4.3 General, applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional sequence, programming, parameterization . . . . . . . . . . . Response to RESET and function abort . . . . . . . . . . . . . . . . . . . . . . . Block search response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Supplementary conditions for SW 5 extensions . . . . . . . . . . . . . . . . Traversing with limited torque/force FOC (SW 5 and higher) . . . . . Travel to fixed stop with digital drives SIMODRIVE 611 digital (FDD/MSD) . . . . . . . . . . . . . . . . . . . . . . . . . . Travel to fixed stop with hydraulic drives SIMODRIVE 611 digital (HLA module) . . . . . . . . . . . . . . . . . . . . . . . . Travel to fixed stop with analog drives . . . . . . . . . . . . . . . . . . . . . . . . SIMODRIVE 611 analog (FDD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SIMODRIVE 611 analog (MSD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagrams for travel to fixed stop for analog drives . . . . . . . . . . . . . .
1/F1/1-3 1/F1/2-5 1/F1/2-5 1/F1/2-6 1/F1/2-6 1/F1/2-13 1/F1/2-14 1/F1/2-18 1/F1/2-21 1/F1/2-23 1/F1/2-25 1/F1/2-27 1/F1/2-28 1/F1/2-28 1/F1/2-30 1/F1/2-34 1/F1/4-37 1/F1/4-39 1/F1/4-39 1/F1/4-44 1/F1/5-47 1/F1/5-48 1/F1/5-48 1/F1/5-49 1/F1/6-51 1/F1/6-51 1/F1/7-53 1/F1/7-53
3 4
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 Axis-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.1.1 5.1.2 Axis/spindle-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals to axis/spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from axis/spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 Traveling to fixed stop, examples (SW 5.3 and higher) . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/i
10.00
1/F1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Brief Description
The Travel to fixed stop function can be used for operations such as traversing tailstocks or sleeves to an end limit position in order to clamp workpieces. The clamping torque and a fixed stop monitoring window can be programmed in the parts program and can also be altered via setting data once the fixed stop has been reached. The Travel to fixed stop function can be implemented for axes as well as for spindles with axis-traversing capability. The function can be implemented for several axes simultaneously and in parallel to the motion of other axes.
SW 5 and higher
In this software version, the functionality is extended such that torques or the force can be adapted block-specifically traversing is possible with limited torque/force (Force Control, FOC) the Travel to fixed stop functions can be enabled from synchronized actions.
Additional expanded machine data and system variables are made available for this purpose.
SW 6 and higher
In this SW, the Travel to Fixed Stop functionality is also available for the SINUMERIK 810D with CCU3. SINUMERIK 840D with NCU 573.3. The following expansions have been implemented: Block search with calculation, multi-channel (SERUPRO). Move axes with FXS and FOC in simulation mode. Suspended axes can be moved to fixed stop even when FXS alarms are active. With SW 6.4 and higher, VDI signals can be used to set a REPOS offset for each axis and display the FXS status currently active on the machine after the search target has been located.
Additional, expanded machine data, system variables and interface signals are provided for this purpose.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/1-3
10.00 10.00
Notes
1/F1/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Detailed Description
2.1
General, applications
Area of application
The Travel to fixed stop (FXS = Fixed Stop) function can be used to build defined forces for clamping workpieces, such as those required for tailstocks, quills and grippers. Mechanical reference points can also be approached with the function. With a sufficient reduction in torque, it also possible to implement simple measuring operations without connecting a probe. The Travel to fixed stop function can be implemented for axes as well as for spindles with axis-traversing capability. It can also be applied to several axes simultaneously and in parallel to the motion of other axes. The fixed stop can be approached on any selected path (straight line, circle, spline, ...).
Availability
The Travel to fixed stop function is available if MD 37000: FIXED_STOP_MODE (Travel to fixed stop mode) is set to 1. The function can then be started from the NC program with command FXS[x]=1. With SW 5 and higher, it is additionally possible to use synchronized actions.
Supplementary conditions
S SINUMERIK 840D with digital drives (SIMODRIVE 611 digital) S SINUMERIK FMNC with analog drives S SINUMERIK 840Di with SIMODRIVE 611 universal
The function can be used in analog drives only if the drive actuator used has a switchable torque limitation. In order to obtain programmable pressure forces or torques in analog drives, a drive actuator which can be switched over between speed and torque control without a sign change is required. The series SIMODRIVE 611 analog (FDD/MSD) meets these requirements. With the actuator SIMODRIVE 611 analog MSD, make sure that the actuator alarm F11 (speed controller at limit) is switched off.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-5
10.00 10.00
Restrictions
S suspended axes (on 840D with 611D, possible with SW 2.2 and higher) S gantry axes S concurrent positioning axes which are controlled exclusively by the PLC
(FXS must be selected from the NC program.).
Note It is not permissible to program a new position for any axis/spindle for the Travel to fixed stop function has already been activated (Exception: Synchronized actions, examples). Before the function is selected for a spindle, the spindle must be switched to position-controlled mode.
Note When programming the clamping torque via FXST[x] or SD SD 43510: FIXED_STOP_TORQUE, with SINUMERIK 840Di, this value can only be programmed within a range between 0% and 100%. The admissible step value is 1%. Programmable values greater than 100% (e.g. 180%) will be taken into account only with a maximum of 100%.
2.2
2.2.1
General functionality
Functional sequence, programming, parameterization
Programming
Travel to fixed stop is selected with command FXS[machine axis identifier] = 1 selected. FXS[machine axis identifier] = 0 deselected. The commands are effective modally. The clamping torque is set with command FXST[machine axis identifier] = <torque>. It is entered as a % of the static torque (MD 1118: MOTOR_STANDSTILL_CURRENT) of the drive/ as a % of the motor torque (MD 1103: MOTOR_NOMINAL_CURRENT) on main spindle drives. The command FXSW[machine axis identifier] = <monitoring window> is used for setting the width of the fixed stop monitoring window. The unit is dependent on the default setting: mm, inch or degrees.
1/F1/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Instead of the machine axis identifiers, it is also possible to use channel axis identifiers if the channel axis identifiers are assigned exactly to one machine axis. Restrictions: Channel identifiers may not be used (option disabled) for machine axes which have an active transformation or frame. In cases where the machine axis is acting as a coupled axis (e.g. slave axis), the system disables programming of channel axis identifiers and alarm 14092 Wrong axis type is output. The movement towards the target point can be defined as a path or positioning axis motion. In the case of positioning axes, the FXS function can also be applied beyond block limits. The function may also be selected for several machine axes simultaneously. The FXST and FXSW commands are optional. The travel path and the command which activates the function must be programmed in the one block (Exception: Synchronized actions).
Examples
With machine axis identifiers: X250 Y100 F100 FXS[X1]=1 X250 Y100 F100 FXS[X1]=1 FXST[X1]=12.3 X250 Y100 F100 FXS[X1]=1 FXST[X1]=12.3 FXSW[X1]=2 X250 Y100 F100 FXS[X1]=1 FXSW[X1]=2 References: /PG/, Programming Guide: Fundamentals
; mm ; mm
Channel axis identifier with unambiguous machine axis assignment: For the purpose of illustrating the differences in programming, channel axis X is programmed as the image of machine axis AX1 (or X1 (name in MD 10000 $MN_AXCONF_MACHAX_NAME_TAB)) in the example below.
Programming with machine axis identifiers FXS[X1] = 1; Selection for X1 FXST[X1] = 10; New torque for X1 FXSW[X1] = 5; New window for X1 Programming with channel axis identifiers FXS[X] = 1; Selection for X > X1 FXST[X] = 10; New torque for X > X1 FXSW[X] = 5; New window for X > X1
All of the following four programming lines have the same effect if channel axis X is programmed as the image of machine axis AX1, X1: Z250 F100 FXS[AX1]=1 FXST[AX1]=12.3 FXSW[AX1]=2000 Z250 F100 FXS[X1]=1 FXST[X1]=12.3 FXSW[X1]=2000 Z250 F100 FXS[X]=1 FXST[X]=12.3 FXSW[X]=2000 Z250 F100 FXS[X]=1 FXST[X1]=12.3 FXSW[AX1]=2000
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-7
10.00
Functional sequence
The function is explained by the example below (sleeve is pressed onto workpiece). The special points to be noted with regard to Travel to fixed stop in digital or analog drives are described in Sections 2.3 and 2.4.
Start position
Fig. 2-1
Selection
The NC detects that the function Travel to fixed stop is selected via the command FXS[x]=1 and signals the PLC via the IS Activate travel to fixed stop (DB31, ... DBX62.4) that the function has been selected. If MD 37060: FIXED_STOP_ACKN_MASK (register PLC acknowledgments for travel to fixed stop) is set accordingly, the NC waits for acknowledgment by the PLC through IS Activate travel to fixed stop (DB31, ... DBX3.1). The programmed target position is then approached from the start position at the programmed velocity. The fixed stop must be located between the start and target positions of the axis/spindle. Any programmed torque limitation is effective from the block start, i.e. the fixed stop is also approached at a reduced torque. Allowance for this limitation is made in the NC through an automatic reduction in the acceleration rate. If no torque has been programmed in the block or since the start of the program, then the value set in axis-specific MD 37010: FIXED_STOP_TORQUE_DEF (default setting for clamping torque) is applicable.
As soon as the axis comes into contact with the mechanical fixed stop (workpiece), the closed-loop control in the drive raises the torque so that the axis can move on. The torque rises up to the programmed limit value and then remains constant.
1/F1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
The Fixed stop reached status can be determined in the following ways depending on the setting in MD 37040: FIXED_STOP_BY_SENSOR (detection of fixed stop via sensor):
Internal processes
Once the NC has detected the Fixed stop reached status, it deletes the distance-to-go and the position setpoint is made to follow. The controller enabling command remains active. The PLC is then informed of the state by means of IS Fixed stop reached (DB31, ... DBX62.5). If MD 37060: FIXED_STOP_ACKN_MASK is set accordingly, then the NC waits for acknowledgment by the PLC in the form of IS Acknowledge fixed stop reached (DB31, ... DBX1.1). The NC then executes a block change or considers the positioning motion to be completed, but still leaves a setpoint applied to the drive actuator to allow the clamping torque to take effect. The fixed stop monitoring function is activated as soon as the stop position is reached.
Monitoring window
If no fixed stop monitoring window is programmed in the block or since the beginning of the program, then the value set in MD 37020: FIXED_STOP_WINDOW_DEF (default setting for fixed stop monitoring window) is applicable. If the axis leaves the position it was in when the fixed stop was detected, then alarm 20093 Fixed stop monitoring has responded is output and the Travel to fixed stop function deselected. The window must be selected by the user such that the alarm is activated only when the axis leaves the fixed stop position.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-9
The machine data MD 37050 FIXED_STOP_ALARM_MASK can be used to set the enabling of the fixed stop alarms as follows:
S MD 37050 = 0 fixed stop not reached (suppress alarm 20091) S MD 37050 = 2 fixed stop not reached (suppress alarm 20091) and
fixed stop aborted (SW 4 and higher: Suppress alarm 20094)
S MD 37050 = 3
Fixed stop aborted (SW 4 and higher: Suppress alarm 20094)
S MD 37050: No other values 7 suppress alarms S MD 37050: In SW 5 and higher, it is possible to activate a new setting using
the parts program command NEWCONF.
If the programmed end position is reached without the Fixed stop reached status being detected, then alarm 20091 Fixed stop not reached is output depending on the status of MD 37050: FIXED_STOP_ALARM_MASK (enable fixed stop alarms).
Function abort
If the Travel to fixed stop function is aborted owing to a pulse disable command, cancellation of PLC acknowledgments or a Reset in the approach block, the display or suppression of alarm 20094 can be controlled via MD 37050: FIXED_STOP_ALARM_MASK. See Chapter 4.
The PLC can initiate travel to fixed stop without an alarm in the approach block (for example, when the operator actuates a key) if alarm 20094 is suppressed in machine data MD 37050: FIXED_STOP_ALARM_MASK. The Travel to fixed stop function is deselected in response to both Fixed stop not reached and Fixed stop aborted.
Alarms
S If the fixed stop position is not reached when the function is active, alarm
20091 Fixed stop not reached is output and a block change executed.
S If a traversing request (e.g. from the parts program, the PLC, from compile
cycles or from the operator panel) is provided for an axis after the fixed stop has been reached, the alarm 20092 Travel to fixed stop still active is output and the axis is not moved.
S If an axis has reached the fixed stop and is then moved out of this position
by more than the value specified in SD: FIXED_STOP_WINDOW (fixed stop monitoring window), alarm 20093 Fixed stop monitoring has responded is output; the Travel to fixed stop function is then deselected for this axis and system variable $AA_FXS[x] is set to 2.
The travel to fixed stop function remains active after an alarm if the bit values have been set in machine data MD 37052: FIXED_STOP_ALARM_REACTION. IS Mode group ready (DB11, ... DBX6.3). For further information about this functionality, see Subsection 2.2.4 Miscellaneous.
1/F1/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Travel to fixed stop can be used for simple measuring processes. For example, it is possible to carry out a check for tool breakage by measuring the tool length by traversing onto a defined obstacle. To do so, the fixed stop alarm must be suppressed. When the function for clamping workpieces is then used normally, the alarm can be activated using parts program commands.
IS Activate travel to fixed stop (DB31, ... DBX62.4) is reset. Depending on the setting in MD 37060: FIXED_STOP_ACKN_MASK, the NC waits for the PLC to acknowledge by resetting IS Activate travel to fixed stop (DB31, ... DBX3.1). The torque limitation is then canceled and a block change executed.
Deselection
The NC detects deselection of the function on the basis of command FXS[x]=0. Then, a preprocessing stop (STOPRE) is initiated internally, since it can not be foreseen where the axis will be after deselection. The torque limitation and monitoring of the fixed stop monitoring window are canceled. IS Activate travel to fixed stop (DB31, ... DBX62.4) and Fixed stop reached (DB31, ... DBX62.4) reset. Depending on the setting in MD 37060: FIXED_STOP_ACKN_MASK, the NC waits for the PLC to acknowledge by resetting IS Activate travel to fixed stop (DB31, ... DBX3.1) and/or IS Fixed stop reached (DB31, ... DBX1.1). The axis will then change to position control. The follow-up mode of the position setpoints is ended and a synchronization to the new actual position is carried out. A programmed traverse motion can then be executed. This motion must lead away from the fixed stop or else the stop or the even machine may sustain damage. A block change is executed after the target position has been reached.
Multiple selection
A selection may only be carried out once. If the function is called once more due to faulty programming (FXS[axis] = 1), the alarm 20092 Travel to fixed stop still active is initiated. An example is to be found in Chapter 6.
By programming a block-related synchronized action, travel to fixed stop can be connected during an approach motion. Programming example: N10 G0 G90 X0 Y0 N20 WHEN $AA_IW[X]>17 DO FXS[X]=1 N30 G1 F200 X100 Y110
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-11
10.00 10.00
The commands FXST[x] and FXSW[x] can be used to change the clamping torque and the fixed stop monitoring window in the parts program. The changes become effective prior to traversing motions programmed in the same block. If a new torque is programmed, then a step change transition to this torque is executed at the beginning of the appropriate block (up to and including SW 5.2). If a new fixed stop monitoring window is programmed, then it is not only the window width which changes, but also the reference point for the window center if the axis moved beforehand. The actual position of the machine axis at the instant the window is changed constitutes the new window center.
Individual basic frames can be deleted with MD 37002: FIXED_STOP_CONTROL can be used to control the response in the case of pulse blocking at limit. Deleting the pulses by terminal 663 or the IS Pulse enable DBX31, ...DBX21.7 will not abort the function. As a result, the drive will press against the fixed stop again without any further operating action when the machine is restarted. Further details about the response to pulse disabling are given in Subsection 2.2.5. The rise time of the torque corresponds to the time needed by the current controller of the drive to reach the limitation again. If the pulses are deleted when a deselection is active (waiting for PLC acknowledgments), the torque limit will be reduced to zero. If the pulses are reactivated during this phase, no torque is no longer built up. Once the response has been completed, you can continue traversing as normally.
The parts program commands FXS, FXST and FXSW can be programmed in synchronized actions/technology cycles. The function FXS[x]=1 can also be activated without movement; the torque is limited immediately. Once the axis is moved using the setpoint, a monitoring for stop is carried out. In static and block-related synchronized actions, the same commands FXS, FXST and FXSW can be used as in the normal parts program run. The values assigned can be resulted from a calculation. Examples are to be found in Chapter 6.
Up to SW 4, the new torque limit was directly transmitted to the drive. Since the drive sets the torque limit step-like, the limitation came into effect immediately. For example, for pushing in a quill, the setting of the torque limit would be too jerky. In SW 5 and higher, a ramp has been implemented. A time is set in machine data MD 37012: FIXED_STOP_TORQUE_RAMP_TIME defining the length of the ramp until the new torque limit is reached. For further information on the machine data, please refer to Section 4.1.
1/F1/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.2.2
Response to RESET
During selection (fixed stop not yet reached) the function FXS can be aborted with RESET. The abortion is carried out such that an almost achieved fixed stop (setpoint already beyond the fixed stop, but still within the threshold for the fixed stop detection) will not result in a damage. This is achieved by synchronizing the position setpoint to the new actual position. As soon as the fixed stop is reached, the function remains operative even after RESET.
Function abort
S The Travel to fixed stop function is canceled in the drive with an FM-NC
control.
S With an 840D control, the NC and drive are disconnected from the supply
after EMERGENCY STOP, i.e. the PLC must react.
S With an 840Di control, the NC and drive are disconnected from the supply
after EMERGENCY STOP, i.e. the PLC must react.
Caution Make sure that after the function Travel to fixed stop due to EMERGENCY STOP has been canceled, no dangerous machine situation (MD 37002: FIXED_STOP_CONTROL e.g. Cancel pulse blocking) can result.
S Exit from fixed stop position by axis S Tool breakage S Pulse disable
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-13
10.00 10.00
2.2.3
S If the target block is located in a program section in which the axis must stop
at a fixed limit, then the fixed stop is approached if it has not yet been reached.
S If the target block is located in the program section in which the axis must
not stop at a fixed limit, then the axis leaves the fixed stop if it is still positioned there.
S If the desired fixed stop status is reached, alarm message 10208 Press NC
Start to continue the program is output. The program can be continued after pressing NC Start to acknowledge.
S At the start of the target block, FXST[x] and FXSW[x] are set to the same
value as they would have during normal program processing.
Block search without calculation FOC SW 5 and higher SERUPRO (SW 6 and higher)
S During the block search, the PLC interface is updated and S machining processes covering the interaction of several channels are
executed within the framework of this block search correctly.
The user select the function FXS or FOC in a program area of the searched target block in order to acquire all states and functions of this machining, which have been valid last. The NC will start the selected program in Program test mode automatically. After the target block has been found, the NC stops at the beginning of the target block, deselects Program test internally again and displays the Stop condition Search target found in its block display. SW 6.1 and higher If FXS Travel to fixed stop is programmed between the beginning of the program and the search target, the instruction is not really executed by the NC. The motion is only simulated up to the programmed end point.
Caution SERUPRO approach does not really take the statement FXS into account. The approach to the programmed end position of the FXS block is only simulated without torque limitation.
1/F1/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
The user can log the turning on and turning off of FXS in the parts program. If necessary, the user can start an ASUB in order to activate or deactivate FXS in this SERUPRO ASUB.
SW 6.2 and higher The meaning of system variable $AA_FXS is redefined for SERUPRO only and completely replaced by variable $VA_FXS. Variables $AA_FXS and $VA_FXS have the same values continuously outside the SERUPRO function.
Description Axis not at fixed stop Fixed stop successfully approached Approach to fixed stop failed Travel to fixed stop selection active Fixed stop detected Travel to fixed stop deselection active
NCK variables $AA_FXS = 0 and $VA_FXS = 0 $AA_FXS = 1 and $VA_FXS = 1 $AA_FXS = 2 and $VA_FXS = 2 $AA_FXS = 3 and $VA_FXS = 3 $AA_FXS = 4 and $VA_FXS = 4 $AA_FXS = 5 and $VA_FXS = 5
Course of values
Fig. 2-2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-15
System variable $AA_FXS displays the current status of program simulation program-sensitive system variable. Example: If in the SERUPRO operation
S axis Y traversal is simulated with FXS[Y]=1, then $AA_FXS has a value of 3. S axis Y traversal is simulated with FXS[Y]=0, then $AA_FXS has a value of 0.
During simulation with SERUPRO, $AA_FXS cannot have the values 1, 2, 4, 5, since the actual status of $VA_FXS Travel to Fixed Stop can never be detected.
Note The state $AA_FXS = 1 is never reached during the SERUPRO operation. This means that other program branches can be processed which will produce different results due to the simulation.
Variable $VA_FXS always describes the real machine status. The real machine status of the relevant axis is thus displayed
Display REPOS offset Once the search target has been found, the FXS state active on the machine is displayed for each axis via axial VDI signals IS Activate travel to fixed stop (DB31, ... DBX62.4) and IS Fixed stop reached (DB31, ... DBX62.5) displayed. Example: If the machine is at the fixed stop and the block search has reached a block after deselection of FXS, the new target position is displayed as the REPOS offset via IS Fixed stop reached (DB31, ... DBX62.5).
1/F1/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
The functionality of FXS is repeated automatically with REPOS and designated FXS REPOS below. The sequence is comparable to the fxsSeruproAsup.mpf routine. Every axis is taken into account and the torque last programmed before the search target is applied. The user can treat FXS separately in an SERUPRO ASUB. The following then applies: Every FXS action executed in an SERUPRO ASUB
Caution FXS REPOS moves all path axes in a path grouping to the target position. Axes with and without FXS treatment thus traverse together with the G code and feedrate valid at the time the target block is processed. As a result, the fixed stop may be approached in rapid traverse (G0) or a higher velocity.
The FOC REPOS function behaves analogously to the FXS REPOS function.
Caution A continuously changing torque characteristic can not be be implemented with FOCREPOS.
Example: A program moves axis X from 0 to 100 and activates FOC every 20 millimeters for 10 millimeters at a time. This torque characteristic is generated with non-modal FOC and cannot therefore be traced by FOC REPOS. FOC REPOS will traverse axis X from 0 to 100, with or without FOC, according to the last programming. For FXS Travel to fixed stop programming examples, please refer to: References: /FB1/, K1, Mode Group, Channel, Programming Mode, Program Test
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-17
2.2.4
Miscellaneous
Setting data
The following axis-specific setting data are provided for the Travel to fixed stop function:
S SD 43500: FIXED_STOP_SWITCH (selection of travel to fixed stop) S SD 43510: FIXED_STOP_TORQUE (clamping torque for travel to fixed
stop)
Changing the clamping torque using the ramp and values greater than 100%
A clamping torque change is transferred to the drive step-like. It is possible to specify a ramp always such that a modified torque limit is reached via MD 37012: FIXED_STOP_TORQUE_RAMP_TIME.
Values greater than 100% are reasonable for SD 43510: FIXED_STOP_TORQUE only for a short time. Irrespectively, the maximum torque is limited by the drive. For example, the drive machine data MD1103 rated motor current, MD1104 maximum motor current, MD1105 reduction of maximum motor current, MD1230/1231 torque limit value1/2 have a limiting effect. For further information, please refer to the Planning Guide SIMODRIVE Three-Phase Motors for Feed and Main Spindle Drives and to the appropriate document regarding the hydraulic module /FBHLA/.
1/F1/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
System variable $AA_FXS[x] indicates the status of the Travel to Fixed Stop function. It has the following coding: $AA_FXS= 0 1 2 3 4 5 Axis is not at fixed stop Fixed stop has been approached successfully (axis is within fixed stop monitoring window) Approach to fixed stop has failed (axis is not at fixed stop) Travel to fixed stop activated (in SW 5.3 and higher extended) Fixed stop has been detected (in SW 5.3 and higher extended) Travel to fixed stop is deselected. The deselection is not yet completed (extended in SW 5.3 and higher)
Interrogation of the system variable in the parts program initiates a block search stop. As a result of the status interrogation in the parts program, it is possible, for example, to react to an erroneous operational sequence of the Travel to fixed stop function. The following applies to the example below: MD 37050: FIXED_STOP_ALARM_MASK = 0 No alarm is generated in response to an error. A block change therefore takes place and the error scenario can be evaluated via the system variable.
Example
X300 Y500 F200 FXS[X1]=1 FXST[X1]=25 FXSW[X1]=5 IF $AA_FXS[X1]=2 GOTOF FXS_ERROR G01 X400 Y200
The following interface signals (PLC ! NCK) are inoperative for axes at the fixed stop until the function is deselected (incl. traversing motion):
System variable $AA_IM[x] can determine the actual position of the machine axis, e.g. for test purposes after successful travel to fixed stop.
Measure with deletion of distance-to-go (MEAS command) and Travel to fixed stop cannot be programmed at the same time in one block. Exception: One function is acting on a path axis while the other is acting on a positioning axis or both functions are acting on positioning axes.
Contour monitoring
The axis contour monitoring function is inoperative while Travel to fixed stop is active.
Positioning axes
When Travel to fixed stop is applied to POSA axes, block changes are made independently of the fixed stop motion.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-19
12.00 10.00
Vertical axes
In SW 6.2 and higher, the Travel to fixed stop function can be used for vertical axes even when alarms are active. Should the traversal of vertical axes be aborted as a result of an FXS alarm when Travel to fixed stop is active, the relevant drives are not disconnected from the supply via the VDI interface. This functionality has the same effect on vertical axes as an electronic weight compensation and can be configured via machine data MD 37052: FIXED_STOP_ALARM_REACTION.
Note For further details about adaptations for SIMODRIVE 611 digital or digital (HLA module), please see: References: /FB2/, K3, Compensation, Section 2.9 Electronic counterbalancing.
MD 37052
Machine data MD 37052: FIXED_STOP_ALARM_REACTION does not result in disconnection of the drive from the power supply when an alarm is generated, as interface signal Mode group ready DB11, ... DBX6.3 remains active. Bit value=0: Alarms have an impact on FXS (drives are deenergized as in earlier versions) IS Mode group ready DB11, ... DBX6.3 is deleted. Bit value=1: Alarms have no impact on FXS (SW 6.2 and higher) IS Mode group ready DB11, ... DBX6.3 remains active.
S Bit0: Alarm 20090 S Bit1: Alarm 20091 S Bit2: Alarm 20092 S Bit3: Alarm 20093 S Bit4: Alarm 20094
Travel to fixed stop impossible Fixed stop not reached Travel to fixed stop still active Zero speed monitoring at fixed stop has responded Travel to fixed stop aborted
1/F1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
2.2.5
The cancellation of pulse enabling either by terminal 663 or by IS Pulse enable (DB31, ... DBX21.7) is in the following referred to as pulse blocking. The machine data MD 37002: FIXED_STOP_CONTROL can be used to influence the interaction of travel to fixed stop and pulse blocking. Bit 0: Response in case of pulse blocking at limit as follows: Bit 0 = 0: Bit 0 = 1: Travel to fixed stop is aborted Travel to fixed stop is interrupted, i.e. the drive is made dead.
Once the pulse blocking is canceled again, the drive will press at the limited torque again. The torque is connected steplike. At the fixed stop, the drive can be controlled either via
S IS Pulse enable (DB31, ... DBX21.7) or via S drive terminal 663 pulse enable.
The NC evaluates IS Pulse enable (DB31, ... DBX21.7) itself. Depending on drive machine data MD 1012: FUNC_SWITCH, the NC reacts with FXS to a change in the status of terminal 663 as follows: Bit 2 = 0 Bit 2 = 1 The NC does not receive the status of terminal 663. The NC does receive the status of terminal 663.
Terminal 663
When pulse enabling is canceled by terminal 663, the drive is deenergized and coasts to a standstill immediately. This status is not passed to the NC when MD 1012: FUNC_SWITCH, Bit 2 = 0. The status can be checked in line Pulse enable (terminal 663) in service display Service drive.
Note Travel to fixed stop can be aborted through blocking the pulses IS Pulse enable (DB31, ... DBX21.7) or through terminal 663 only if MD 37002: FIXED_STOP_CONTROL MD 1012: FUNC_SWITCH Bit 0 = 0 and Bit 2 = 1 are set.
If FXS must be interrupted and travel to fixed stop aborted, the following settings are required: MD 37002: FIXED_STOP_CONTROL MD 1012: FUNC_SWITCH Bit 0 = 0 and Bit 2 = 0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-21
10.00 10.00
The function is not available for analog axes (PLC acknowledgment cannot be awaited). If nevertheless a programming is done, the alarm 20090 Travel to fixed stop not possible. Check programming and axis data is output.
Without ramp
The torque limit is changed without taking into account the ramp if:
S FXS is activated with (FXS[]=1) to make sure that the reduction is activated
immediately (especially for synchronized actions).
S The clamping torque can already be modified when approaching the stop. S The torque limit FXST acts in addition to the acceleration limitation with
ACC.
1/F1/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
2.2.6
Activation of the function after POWER_ON and RESET is defined by MD 37080: FOC_ACTIVATION_MODE.
Table 2-1
Controlling the initial setting of the modal limitation of torque/force After Bit 0 0 1 FOCOF FOCON FOCOF FOCON Effect
POWER ON
RESET
0 1
FOCON FOCOF
The modal activation acts beyond the program end. If already programmed, the torque/force set with FXST is active. FXST can be programmed irrespectively of FOCON; it comes into effect, however, only after the function has been activated.
Programming
The programming of the axis is carried out in square brackets. The following is permissible: Geometry axis identifiers Channel axis identifiers Machine axis identifiers
Example:
N10 FOCON[X] N20 X100 Y200 FXST[X]=15 N30 FXST[X]=75 X20 N40 FOCOF[X] ; modal activation of torque limit ; X traverses at reduced torque (15%) ; change of torque to 75%, X traverses at this limited torque ; disable torque limit
The parts program command FOC activates the torque limit for a block. An activation from a synchronized action acts up to the end of the current parts program block.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-23
10.00 10.00
Priority FXS/FOC
The activation of FXS with FOC active has priority, i.e. FXS is executed. A deselection of FXS will cancel the clamping. A modal torque/force limitation remains active. After POWER ON, in the case of activation, MD 37010: FIXED_STOP_TORQUE_DEF is active. This torque can be modified at any time by programming FXST.
Synchronized actions
The language commands FOC, FOCON, FOCOF can also be programmed in synchronized actions, as the commands for travel to fixed stop.
The activation status can be read at any time via the state variable $AA_FOC. If FXS is additionally activated, the status is not changed. 0: FOC not active 1: FOC modally active 2: FOC active blockrelated
The system variables $VA_TORQUE_AT_LIMIT can be used at any time to read in systems with digital drives (FDD, MSD, HLA) whether the currently active torque corresponds to the given torque limit. 0: Effective torque less than torque limit value 1: Effective torque has reached the torque limit value
Restrictions
S FOC only:
Monitoring for reaching the active torque limit is not possible from the VDI interface.
All axes that can be traversed in a channel, i.e. also link axes and container axes, can be traversed to fixed stop. References: /FB2/, B3, Several Operator Panels and NCUs, Distributed Systems
The status of the machine axis is kept in the case of a container switch, i.e. a clamped machine axis remains at the stop. If a modal torque limitation has been activated with FOCON, this is kept for the machine axis even after a container switch.
1/F1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Travel to Fixed Stop (F1) Travel to fixed stop with digital drives
2.3
Travel to fixed stop with digital drives SIMODRIVE 611 digital (FDD/MSD)
Selection
The NC detects that the function Travel to fixed stop is selected (via the command FXS[x]=1) and signals the PLC that the function has been selected via the IS Activate travel to fixed stop (DB31, ... DBX62.4) that the function has been selected. If MD 37050: FIXED_STOP_ACKN_MASK is set accordingly, then the NC waits for acknowledgment by the PLC in the form of IS Enable travel to fixed stop (DB31, ... DBX3.1); and then the function is started. This acknowledgment is not required by the NC for digital drives. The axis now traverses to the target position at the programmed velocity. At the same time, the clamping torque (specified via FXST[x]) is transferred to the drive via the digital interface, and this limits its effective torque. In addition, the acceleration is reduced accordingly in the NC automatically acc. to FXST[x]).
As soon as the axis reaches the fixed stop, the axial contour deviation increases. If the speed entered in MD 37030: FIXED_STOP_THRESHOLD is exceeded or IS Sensor fixed stop (DB31, ... DBX1.2) set, the control system detects that the fixed stop has been reached. The NC will then delete the distance-to-go and will synchronize the position setpoint to the current actual position value. The controller enabling command remains active. Once the NC has transferred IS Fixed stop reached (DB31, ... DBX62.5) are output to the PLC. If MD 37060: FIXED_STOP_ACKN_MASK is set accordingly, then the NC waits for acknowledgment by the PLC in the form of IS Acknowledge fixed stop reached (DB31, ... DBX1.1). This acknowledgment is not required by the NC for digital drives. A block change is executed. The clamping torque continues to be applied.
If the programmed end position is reached without the Fixed stop reached status being recognized, then the torque limitation in the drive is canceled via the digital interface and IS Activate travel to fixed stop (DB31, ... DBX62.4) reset. Depending on the setting in MD 37060: FIXED_STOP_ACKN_MASK, the NC waits for the PLC to acknowledge by resetting IS Activate travel to fixed stop (DB31, ... DBX3.1); the program then advances to the next block.
Deselection
Deselection is performed as described in Subsection 2.2.1. In addition, this Section provides further explanations on how to enable the fixed stop alarms and how to enable pulses from the PLC via terminal 663 or the IS Pulse enable (DBX31, ... DB21.7).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-25
Travel to Fixed Stop (F1) 2.3 Travel to fixed stop with digital drives
10.00
Diagram
The following diagram shows the sequence of the motor current, following error and interface signals for Activate travel to fixed stop (DB31, ... DBX62.4) and Fixed stop reached (DB31, ... DBX62.5) with digital drive (SIMODRIVE 611 digital).
Motor current 0
Following error
MD 37030: FIXED_STOP_THRESHOLD
0
Block change
Fig. 2-3
1/F1/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Travel to Fixed Stop (F1) Travel to fixed stop with digital drives
2.3.1
Travel to fixed stop with hydraulic drives SIMODRIVE 611 digital (HLA module)
Velocity/force control
If the function FXS (FXS[x]=1) is activated for the hydraulic module 611 digital (HLA module), only a change from velocity control to force control takes place. Positioning from the NC is no longer possible in this case.
When traveling to fixed stop, the NC evaluates a torque/force limit acting in addition to the limits set on the drive
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-27
Travel to Fixed Stop (F1) 2.4 Travel to fixed stop with analog drives
10.00
2.4
Current/torque control
With the 611 analog (FDD), the torque control and torque limitation has been realized as a current control/current limitation.
2.4.1
A fixed current limitation is preset in the drive actuator by means of a resistor circuit (or via R12). This current limitation is activated by the control via a PLC output (which acts on terminal 96 of the actuator), thus ensuring that a fixed clamping torque is available on the axis. Setpoints can be injected via terminals 56/14 or 24/20.
In this case, the PLC switches the drive actuator from speed-controlled into current-controlled operation as soon as the fixed stop is reached. Activation of terminal 22 causes the voltage level applied to terminals 20/24 to take effect as a current setpoint rather than a speed setpoint. The NC is thus able to specify a variable clamping torque. Setpoints must be injected via terminals 24/20. References: /IAA/, Installation and StartUp Guide for SIMODRIVE 611 SIMODRIVE 611 Analog System
Hardware connection
Fig. 2-4 shows the hardware connections between FMNC, PLC and SIMODRIVE 611 analog (FDD).
Speed controller
56 14 24 20
iact
22 PLC 96
Sensor (optional)
Fig. 2-4
1/F1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Travel to Fixed Stop (F1) Travel to fixed stop with analog drives
Selection
The NC detects that the function Travel to fixed stop is selected (via the command FXS[x]=1) and signals the PLC that the function has been selected via the IS Activate travel to fixed stop (DB31, ... DBX62.4) that the function has been selected. The PLC must then activate the current limitation on the actuator (terminal 96). If MD 37060: FIXED_STOP_ACKN_MASK is set accordingly, then the NC waits for acknowledgment by the PLC in the form of IS Enable travel to fixed stop (DB31, ... DBX3.1); and then the function is started. (This acknowledgment should always be programmed for analog drives for safety reasons, i.e. so that the motion is not started before the current, and thus also the torque, has been limited). The control then sets the torque limit internally to the value specified in MD 37070: FIXED_STOP_ANA_TORQUE (torque limit on approach to fixed stop for analog drives). This value must correspond to the torque limit value activated via terminal 96. The NC also reduces the acceleration rate automatically in accordance with MD 37070: FIXED_STOP_ANA_TORQUE. The axis now traverses to the target position at the programmed velocity.
As soon as the axis reaches the fixed stop, the axial contour deviation increases. If the speed entered in MD 37030: FIXED_STOP_THRESHOLD is exceeded or IS Sensor fixed stop (DB31, ... DBX1.2) set, the control system detects that the fixed stop has been reached. The position controller then responds by outputting a speed setpoint corresponding to the value set in MD 37070: FIXED_STOP_ANA_TORQUE. The speed controller, of which the output is limited by terminal 96, forces the drive to the current limit by means of this continuously applied setpoint. The NC then deletes the remaining distance-to-go and forces the position setpoint to follow. The controller enabling command remains active. Once the NC has transferred IS Fixed stop reached (DB31 , ... DBX62.5) are output to the PLC. If a programmable clamping torque input (via FXST[x] or setting data) from the NC is required, then the PLC must switch the drive over from speed-controlled to current-controlled operation. To do so, it activates terminal 22 and switches off the current limitation (terminal 96) after a period of > 10 ms. The torque set in MD 37070: FIXED_STOP_ANA_TORQUE is now applied to the drive. If MD 37060: FIXED_STOP_ACKN_MASK is set accordingly, then the NC waits for acknowledgment by the PLC in the form of IS Acknowledge fixed stop reached (DB31, ... DBX1.1). Then the requested clamping torque is transferred from the select block to the drive steplike. A block change is executed. The clamping torque continues to be applied.
If the programmed end position is reached without the Fixed stop reached status being detected, then the internal torque limitation set in MD 37070: FIXED_STOP_ANA_TORQUE is canceled and the IS Activate travel to fixed stop (DB31, ... DBX62.4) reset.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-29
Travel to Fixed Stop (F1) 2.4 Travel to fixed stop with analog drives
10.00 10.00
The PLC must then deactivate the current limitation (terminal 96). Depending on the setting in MD 37060: FIXED_STOP_ACKN_MASK, the NC waits for the PLC to acknowledge by resetting IS Activate travel to fixed stop (DB31, ... DBX3.1); the program then advances to the next block.
Deselection
The NC detects that the function has been deselected on the basis of command FXS[x]=0 and specifies a speed or current setpoint of 0, i.e. zero clamping torque. The NC then resets IS Activate travel to fixed stop (DB31, ... DBX62.4) and (DB31, ... DBX62.4) and Fixed stop reached (DB31, ... DBX62.5). If current-controlled operation is activated, the PLC must first switch on the current limitation (terminal 96) and switch the drive over to speed-controlled operation (terminal 22) (a speed setpoint of 0 is applied by NC). Then current limitation must then be deactivated (terminal 96). Depending on the setting in MD 37060: FIXED_STOP_ACKN_MASK, the NC waits for the PLC to acknowledge by resetting IS Enable travel to fixed stop (DB31, ... DBX3.1) and/or IS Acknowledge fixed stop reached (DB31, ... DBX1.1). The axis then switches over to position control mode (follow-up mode is terminated) and synchronization with the new actual position takes place. The programmed travel motion is then executed. A block change is executed after the target position has been reached.
2.4.2
A fixed clamping torque is implemented by entering a fixed torque limitation in a free gear stage in the drive actuator (setting parameter 039). When the Travel to fixed stop function is selected, the PLC switches over to the unassigned gear stage of the drive actuator, thus activating the torque limitation. Setpoints must be injected via terminals 56/14.
In this case, the PLC switches the drive actuator from speed-controlled into torque-controlled operation after the fixed stop is reached. The NC can therefore input a variable clamping torque. Setpoints must be injected via terminals 56/14. References: /IAA/, Installation and StartUp Guide for SIMODRIVE 611 SIMODRIVE 611 Analog System
1/F1/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Travel to Fixed Stop (F1) Travel to fixed stop with analog drives
Hardware connection
Fig. 2-5 shows the hardware connections between FM-NC, PLC and SIMODRIVE 611 analog (MSD).
611A (MSD) NC 56 14 24 8 E1 PLC E9 Speed setpoint value 1 Speed setpoint value 2 Gear stage change Gear stage 1 2
Measuring loop
Outputs
1. Torque limitation
Input
Fig. 2-5
Caxis operation
The control system has to switch the spindle into C axis mode before the Travel to fixed stop function is selected. The PLC does this by activating one of the programmable terminals E1-D9 (e.g. terminal E1) of the drive actuator.
Selection
The NC detects that the function Travel to fixed stop is selected (via the command FXS[x]=1) and signals the PLC that the function has been selected via the IS Activate travel to fixed stop (DB31, ... DBX62.4) that the function has been selected. As a result, the PLC activates the unassigned gear stage, in which the torque limitation is effective, by means of programmable terminals E1 - E9 of the drive actuator. It then switches the speed controller monitor off (one terminal (E1-E9) to deactivate error F11 of drive actuator). If MD 37060: FIXED_STOP_ACKN_MASK is set accordingly, then the NC waits for acknowledgment by the PLC in the form of IS Enable travel to fixed stop (DB31, ... DBX3.1); and then the function is started. (This acknowledgment should always be programmed for analog drives for safety reasons, i.e. so that the motion is not started before the torque has been limited).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-31
Travel to Fixed Stop (F1) 2.4 Travel to fixed stop with analog drives
10.00
The control then sets the torque limit internally to the value specified in MD 37070: FIXED_STOP_ANA_TORQUE (torque limit on approach to fixed stop for analog drives). This value must correspond to the torque limit value set in the actuator. The NC also reduces the acceleration rate automatically in accordance with MD 37070: FIXED_STOP_ANA_TORQUE. The rotary axis now traverses to the target position at the programmed velocity.
As soon as the C-axis reaches the fixed stop, the axial contour deviation increases. If the speed entered in MD 37030: FIXED_STOP_TESHOLD is exceeded or IS Sensor fixed stop (DB31, ... DBX1.2) set, the control system detects that the fixed stop has been reached. The position controller then responds by outputting a speed setpoint corresponding to the value set in MD 37070: FIXED_STOP_ANA_TORQUE. The speed controller forces the drive to the torque limit by means of this continuously applied setpoint. The NC then deletes the remaining distance-to-go and forces the position setpoint to follow. The controller enabling command remains active. Once the NC has transferred IS Fixed stop reached (DB31 , ... DBX62.5) are output to the PLC. If a programmable clamping torque input (via FXST[x] or setting data) from the NC is required, then the PLC must switch the drive over from speed-controlled to torque-controlled operation. To do so, it activates one of the programmable terminals E1 E9 (e.g. terminal E5) and switches off the torque limitation after a period of > 80 ms by selecting the preceding gear stage. The torque set in MD 37070: FIXED_STOP_ANA_TORQUE is now applied to the drive. If MD 37060: FIXED_STOP_ACKN_ASK is set accordingly, then the NC waits for acknowledgment by the PLC in the form of IS Acknowledge fixed stop reached (DB31, ... DBX1.1). Then the requested clamping torque is transferred from the select block to the drive steplike. A block change is executed. The clamping torque continues to be applied.
If the programmed end position is reached without the Fixed stop reached status being detected, then the internal torque limitation set in MD 37070: FIXED_STOP_ANA_TORQUE is canceled and the IS Activate travel to fixed stop (DB31, ... DBX62.4) reset. The PLC then activates the preceding gear stage, thus deactivating the torque limitation. It also switches on the speed control monitoring function again. Depending on the setting in MD 37060: FIXED_STOP_ACKN_MASK, the NC waits for the PLC to acknowledge by resetting IS Activate travel to fixed stop (DB31, ... DBX3.1); the program then advances to the next block.
1/F1/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Travel to Fixed Stop (F1) Travel to fixed stop with analog drives
Deselection
The NC detects that the function has been deselected on the basis of command FXS[x]=0 and specifies a speed or torque setpoint of 0, i.e. zero clamping torque. The NC then resets IS Activate travel to fixed stop (DB31, ... DBX62.4) and (DB31, ... DBX62.4) and Fixed stop reached DB31, ... DBX62.5). If torque-controlled operation is activated, the PLC must first select the unassigned gear stage in which the torque limitation is effective and switch the drive over to speed-controlled operation (a speed setpoint of 0 is applied by NC). The PLC must also deactivate the speed controller monitoring function. The PLC then activates the preceding gear stage, thus deactivating the torque limitation. It also switches on the speed control monitoring function again. Depending on the setting in MD 37060: FIXED_STOP_ACKN_MASK, the NC waits for the PLC to acknowledge by resetting IS Enable travel to fixed stop (DB31, ... DBX3.1) and/or IS Acknowledge fixed stop reached (DB31, ... DBX1.1). The C-axis then switches over to position control mode (follow-up mode is terminated) and synchronization with the new actual position takes place. The programmed travel motion is then executed. A block change is executed after the target position has been reached.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-33
Travel to Fixed Stop (F1) 2.4 Travel to fixed stop with analog drives
10.00
2.4.3
The following diagram shows the sequence of the following error and interface signals for FXS selection (fixed stop is reached) on analog drives.
**
tswitchover *
Setpoint velocity
Following error
Terminal 22 active ** tswitchover IS: Fixed stop reached acknolwegement Block change
* Acceleration according to (MD: MAX_AX_ACCEL * MD:FIXED_STOP_ANA_TORQUE) ** Terminal 96 remains active without switchover of terminal 22 tswitchover > 10 ms with 611-A (FDD) > 80 ms with 611-A (MSD) Fig. 2-6 Diagram for FXS selection (fixed stop is reached) with analog drive
1/F1/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Travel to Fixed Stop (F1) Travel to fixed stop with analog drives
The following diagram shows the sequence of the following error and interface signals for FXS selection (fixed stop is not reached) on analog drives.
tswitchover *
Setpoint velocity
Following error
* Acceleration according to (MD 32300: MAX_AX_ACCEL * MD 37070: FIXED_STOP_ANA_TORQUE) tswitchover > 10 ms with 611-A (FDD) > 80 ms with 611-A (MSD) Fig. 2-7 Diagram for FXS selection (fixed stop is not reached) with analog drive
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/2-35
Travel to Fixed Stop (F1) 2.4 Travel to fixed stop with analog drives
10.00
FXS deselection
The following diagram shows the sequence of the following error and interface signals for FXS Deselection on analog drives.
**
Terminal 96 active
* **
Acceleration according to MD 32300: MAX_AX_ACCEL Terminal 96 remains active without switchover of terminal 22
Fig. 2-8
1/F1/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Supplementary Conditions
S SINUMERIK FMNC with NCU 570 with SW 2 and higher S SINUMERIK 840D with NCU 571/572/573 with SW 2 and higher S SINUMERIK 840D with NCU 572.3/573, expansions with SW 5.3 and higher S SINUMERIK 810D with CCU3, SW 6.3 and higher S SINUMERIK 840Di SW 1.1
S SINUMERIK 840D with NCU 573, expansions with SW 5.2 and higher.
J
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/4-37
10.00
Notes
1/F1/4-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
4.1
36042 FOC_STANDSTILL_DELAY_TIME MD number Delay time of zero speed control with FOC and FXS Default setting: 0.4 Minimum input limit: 0.0 Maximum input limit: plus Change effective after NEWCONF Protection level: 2 / 7 Unit: s Data type: DOUBLE Applies from SW 5.3 Significance: Wait time between the end of a movement ( IPO setpoint = 0 ) and activation of the zero speed control with active torque limit. If the configurable end-of-block criterion occurs during this time, the zero speed control is activated. If the configurable end-of-block criterion does not occur during this delay time, alarm 25042 is triggered.
37000 FIXED_STOP_MODE MD number Travel to fixed stop mode Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/4 Unit: Data type: BYTE Applies from SW 2.1 Significance: This machine data defines how the Travel to fixed stop function can be started. MD=0 MD=1 Travel to fixed stop not available (option missing). Travel to fixed stop can be started from the NC program with command FXS[x]=1.
37002 FIXED_STOP_CONTROL MD number Special function when traveling to fixed stop Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 5.3 Significance: Switch for special functions when traveling to fixed stop. Bit 0: Response in case of pulse blocking at limit = 0: Travel to fixed stop is aborted = 1: Travel to fixed stop is interrupted, i.e. the drive is made dead. As soon as the pulse blocking is deactivated the drive operates with, limited torque again. The torque is connected step-like.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/4-39
10.00 10.00
37010 FIXED_STOP_TORQUE_DEF MD number Default for clamping torque Default setting: 5.0 Minimum input limit: 0 Maximum input limit: 100.0 Changes effective after POWER ON Protection level: 2/4 Unit: % Data type: DOUBLE Applies from SW 2.1 Significance: This machine data indicates the clamping torque as a % of the static torque MD 1118: MOTOR_STANDSTILL_CURRENT of the drive/as a % of the motor torque MD 1103: MOTOR_NOMINAL_CURRENT on main spindle drives. The clamping torque becomes operative as soon as the fixed stop is reached or IS Acknowledge fixed stop reached (DB31, ... DBX1.1) has been set. The entered value is a default and is effective only on the condition that S no clamping torque has been programmed with command FXST[x]. S the clamping torque set in SD 43510: FIXED_STOP_TORQUE has not been changed (after fixed stop was reached). When Traveling to fixed stop with an analog drive (611A) and fixed clamping torque, the torque limit set on the drive should be equal to the torque limit set in MD 37070: FIXED_STOP_ANA_TORQUE. MD 37070: FIXED_STOP_ANA_TORQUE (torque limit on approach to fixed stop for analog drives) SD 43510: FIXED_STOP_TORQUE (clamping torque for travel to fixed stop)
Related to ....
37012 FIXED_STOP_TORQUE_RAMP_TIME MD number Virtual time until reaching the new clamping torque when traveling to fixed stop Default setting: 0.0. Minimum input limit: 0.0 Maximum input limit: plus Change valid after NEWCONF Protection level: 2 / 7 Unit: s Data type: DOUBLE Applies from SW 5.3 Significance: Virtual time until reaching the modified torque limit. The subdivision takes place in the position controller cycle and takes place there step-like. The value 0.0 disables the ramp function.
37020 FIXED_STOP_WINDOW_DEF MD number Default for fixed stop monitoring window Default setting: 1.0 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/4 Unit: mm, degrees Data type: DOUBLE Applies from SW 2.1 Significance: The default setting for the fixed stop monitoring window is set in this machine data. The fixed stop monitoring window becomes operative as soon as the fixed stop is reached, i.e. IS Fixed stop reached (DB31, ... DBX62.5) is set. If the axis/spindle leaves the position at which the fixed stop has been detected by more than the tolerance specified in MD: FIXED_STOP_WINDOW_DEF , then alarm 20093 Fixed stop monitoring has responded is output and the FXS function deselected. The entered value is a default and is effective only on the condition that S no fixed stop monitoring window has been programmed with command FXSW[x]. S the fixed stop monitoring window set via SD 43520: FIXED_STOP_WINDOW has not been changed (after fixed stop was reached). SD 43520: FIXED_STOP_WINDOW (fixed stop monitoring window)
Related to ....
1/F1/4-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
37030 FIXED_STOP_THRESHOLD MD number Threshold for fixed stop detection Default setting: 2.0 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2/4 Unit: mm, degrees Data type: DOUBLE Applies from SW 2.1 Significance: The contour monitoring threshold for fixed stop detection is entered in this machine data. This machine data is effective only if MD: FIXED_STOP_BY_SENSOR is set to 0. IS Fixed stop reached (DB31, ... DBX62.5) is set if the axial contour deviation exceeds the threshold set in MD: FIXED_STOP_THRESHOLD. MD 37040: FIXED_STOP_BY_SENSOR = 1 IS Fixed stop reached (DB31, ... DBX62.5)
37040 FIXED_STOP_BY_SENSOR MD number Fixed stop detection via sensor Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 2.1 Significance: This machine data defines how the criterion Fixed stop reached is determined. MD=0 The criterion Fixed stop reached is determined internally on the basis of the axial contour deviation (threshold specified by MD: FIXED_STOP_THRESHOLD). The criterion Fixed stop reached is detected via an external sensor and transmitted to the NC by means of IS Sensor for fixed stop (DB31, ... DBX1.2).
MD=1 MD=2
Related to ....
The criterion Fixed stop reached is assumed if either the contour monitoring (acc. to MD = 0) or the signal of the external sensor (acc. to MD = 1) has responded accordingly. MD 37030: FIXED_STOP_THRESHOLD (threshold for fixed stop detection) IS Sensor for fixed stop (DB31, ... DBX1.2)
37050 FIXED_STOP_ALARM_MASK MD number Enabling the fixed stop alarms Default setting: 1 Minimum input limit: 0 Maximum input limit: 7 Changes effective after POWER ON Protection level: 2/7 Unit: SW 5 and higher: NEWCONF Data type: BYTE Applies from SW 2.1 Significance: This machine data is set to define whether the alarms 20091 Fixed stop not reached and 20094 Fixed stop aborted must be output. MD=0 MD=2 Suppression of alarm 20091 Fixed stop not reached Suppression of alarms 20091 Fixed stop not reached and 20094 Fixed stop aborted (SW 4 and higher) Suppression of alarm 20094 Fixed stop aborted (SW 4 and higher)
MD=3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/4-41
12.00 10.00
37052 FIXED_STOP_ALARM_REACTION MD number Reaction to fixed stop alarms Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/4 Unit: Data type: BYTE Applies from SW 6.2 Significance: Reaction of IS Mode group ready (DB11, ... DBX6.3) to fixed stop alarms: Bit value = 0: IS Mode group ready (DB11, ... DBX6.3) is deleted (drive de-energized) Bit value = 1: IS Mode group ready (DB11, ... DBX6.3) remains active. Bit 0: Bit 1: Bit 2: Bit 3: Bit 4: Alarm 20090 Travel to fixed stop impossible. Alarm 20091 Fixed stop not reached Alarm 20092 Travel to fixed stop still active Alarm 20093 Zero speed monitor at fixed stop has responded. Alarm 20094 Travel to fixed stop aborted.
None of the other bits are significant. Related to .... Standard: Bit values = 0: All alarms result in deenergization of the drives. IS Mode group ready (DB11, ... DBX6.3)
37060 FIXED_STOP_ACKN_MASK MD number Monitoring of PLC acknowledgments for travel to fixed stop Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/4 Unit: Data type: BYTE Applies from SW 2.1 Significance: This machine data determines whether or not the NC waits for acknowledgment messages from the PLC when the Travel to fixed stop function is active. Bit 0 = 0 Bit 0 = 1 Once the NC has transmitted IS Activate travel to fixed stop (DB31, ... DBX62.4) to the PLC, it starts the programmed travel motion. After the NC has transferred IS Activate travel to fixed stop (DB31, ... DBX62.4) to the PLC, it waits for the PLC to acknowledge with IS Enable travel to fixed stop (DB31, ... DBX3.1) and then starts the programmed travel motion. Bit 0 should be set to 1 for analog drives so that the motion is not started until the PLC has limited the drive torque. Bit 1 = 0 Bit 1 = 1 Once the NC has transferred IS Fixed stop reached (DB31 , ...DBX62.5) to the PLC, the program advances to the next block. After the NC has transferred IS Fixed stop reached (DB31, ... DBX62.5) to the PLC, it waits for the PLC to acknowledge with IS Acknowledge fixed stop reached (DB31, ... DBX1.1), outputs the programmed torque and then executes a block change. Bit 1 should be set to 1 for analog drives so that the PLC can switch the drive over to torque-controlled operation if a programmable clamping torque must be specified. The Travel to fixed stop function can be executed without acknowledgments in digital drives (611D) allowing program run times to be reduced. IS Activate travel to fixed stop (DB31, ... DBX62.4) IS Enable travel to fixed stop (DB31, ... DBX3.1) IS Fixed stop reached (DB31, ... DBX62.5) IS Acknowledge fixed stop reached (DB31, ... DBX1.1)
Related to ....
1/F1/4-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
37070 FIXED_STOP_ANA_TORQUE MD number Torque limit on fixed stop approach for analog drives Default setting: 5.0 Minimum input limit: 0 Maximum input limit: 100.0 Changes effective after POWER ON Protection level: 2/4 Unit: % Data type: DOUBLE Applies from SW 2.1 Significance: This machine data defines an internal NC torque limit for analog drives. It is specified as a % of the maximum drive torque (corresponds to % of max. current setpoint with FDD). This torque limit is effective in the NC from the start of the motion (acceleration torque) until the instant the fixed stop is reached. The torque limit must have the same effect as the torque limit set in the drive (611A). This limit is required to ensure that S there are no step changes in torque during switchover from speed-controlled to current-controlled or torque-controlled operation. S the acceleration is reduced to the correct value in the NC. SINUMERIK 840D with SIMODRIVE 611D
37080 FOC_ACTIVATION_MODE MD number Status of activation of the modal function FOC Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: Unit: Data type: BYTE Applies from SW 5.3 Significance: The status of the FOC function after POWER ON and RESET can be set by setting or deleting individual bits of this MD: Bit 0: Response after POWER ON = 0: FOCOF = 1: FOCON Bit 1: Response after RESET = 0: FOCOF = 1: FOCON
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/4-43
10.00 10.00
4.2
43500 FIXED_STOP_SWITCH SD number Selection of travel to fixed stop Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective immediately Protection level: 7/7 Unit: Data type: BYTE Applies from SW 2.1 Significance: This setting data allows the Travel to fixed stop function to be selected and deselected. SD=0 Deselect Travel to fixed stop function SD=1 Select Travel to fixed stop function When SW 2.x is installed, this data can be overwritten only through the parts program by means of command FXS[x]=1/0. The status of the setting data is displayed via the operator panel in the Parameters area.
43510 FIXED_STOP_TORQUE SD number Clamping torque for travel to fixed stop Default setting: 5.0 Minimum input limit: 0.0 Maximum input limit: 800.0 Changes effective immediately Protection level: 7/7 Unit: % Data type: DOUBLE Applies from SW 2.1, max. 800.0 (SW 5.3 and higher) Significance: This setting data indicates the clamping torque as a % of the static torque MD 1118: MOTOR_STANDSTILL_CURRENT of the drive/as a % of the motor torque MD 1103: MOTOR_NOMINAL_CURRENT on main spindle drives. Please observe that a clamping torque greater than 100% may only be present for a short time; otherwise, the motor will be damaged. With hydraulic drives, it is limited to 100%, since the reference parameter is the maximum force of the drive. When selecting the function Travel to fixed stop through programming, the default of MD 37010 FIXED_STOP_TORQUE_DEF is active up to the programming with FXST[.]. In the case of FOC, the setting data will also act as a torque limit. Time of effect: Digital drives: SD acts already when approaching the stop. Analog drives: The SD comes into effect when the stop is detected. The Fixed stop is reached, if with MD 37060: FIXED_STOP_ACKN_MASK, Bit 1 = 0 (no acknowledgment required) IS Fixed stop reached (DB31, ... DBX62.5) is set by the NC. with MD 37060: FIXED_STOP_ACKN_MASK, Bit 1 = 1 (acknowledgment required) IS Fixed stop reached (DB31, ... DBX62.5) is set by the NC and acknowedged with IS Acknowledge fixed stop reached (DB31, ... DBX1.1). The status of the setting data is displayed via the operator panel in the Parameters area. The FXST[x] command effects a block-synchronous change to this data. The setting data can be modified by the operator, by programming or via the PLC. MD 37010: FIXED_STOP_TORQUE_DEF (default setting for clamping torque) MD 10710: MN_PROG_SD_RESET_SAVE_TAB
Related to ....
1/F1/4-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
43520 FIXED_STOP_WINDOW SD number Fixed stop monitoring window Default setting: 1.0 Minimum input limit: 0.0 Maximum input limit: plus Changes effective immediately Protection level: 7/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 2.1 Significance: The fixed stop monitoring window is entered in this setting data. The setting data is effective only if the fixed stop has been reached. The Fixed stop is reached, if with MD: FIXED_STOP_ACKN_MASK, Bit 1 = 0 (no acknowledgment required) IS Fixed stop reached (DB31, ... DBX62.5) is set by the NC. with MD: FIXED_STOP_ACKN_MASK, Bit 1 = 1 (acknowledgment required) IS Fixed stop reached (DB31, ... DBX62.5) is set by the NC and acknowledged with IS Acknowledge fixed stop reached (DB31, ... DBX1.1). If the position at which the fixed stop was detected leaves the tolerance band by more than the amount specified in SD 43520: FIXED_STOP_WINDOW_DEF , then alarm 20093 Fixed stop monitoring has responded is output and the function FXS is deselected. The status of the setting data is displayed via the operator panel in the Parameters area. The FXSW[x] command effects a block-synchronous change to this setting data. The setting data can also be changed by the user or via the PLC. The value is otherwise transferred from MD: FIXED_STOP_WINDOW_DEF to the setting data when Travel to fixed stop is active. MD 37020: FIXED_STOP_WINDOW_DEF (default setting for fixed stop monitoring window) MD 10710: MN_PROG_SD_RESET_SAVE_TAB
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/4-45
10.00
Notes
1/F1/4-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Descriptions
5
Axis/spindle 3 Axis/spindle 2 Axis/spindle 1
Fig. 5-1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/5-47
10.00
5.1
5.1.1
Axis/spindle-specific signals
Signals to axis/spindle
DB 31, ... DBX1.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Acknowledge fixed stop reached Signal(s) to axis/spindle (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 2.1 After fixed stop has been reached: IS Fixed stop reached DB31, ... DBX62.5 = 1 ! The axis pushes against the fixed stop with clamping torque ! The fixed stop monitoring window is activated ! The program advances to the next block After fixed stop has been reached: IS Fixed stop reached DB31, ... DBX62.5 = 1 ! The axis pushes against the fixed stop with clamping torque ! The fixed stop monitoring window is activated ! The program does not advance to the next block and channel message Wait: Auxiliary function acknowledgment missing is displayed After fixed stop has been reached: IS Fixed stop reached DB31, ... DBX62.5 = 1 The function is aborted, the alarm 20094 axis %1 Function aborted is displayed. Meaning when function FXS = 0 is deselected in parts program: The torque limitation and monitoring of the fixed stop window are canceled. MD 37060: FIXED_STOP_ACKN_MASK (monitoring of PLC acknowledgments for travel to fixed stop) = 0 or 1 MD 37060: FIXED_STOP_ACKN_MASK (monitoring of PLC acknowledgments for travel to fixed stop) IS Fixed stop reached (DB31, ... DBX62.5)
Signal state 0
DB 31, ... DBX1.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Sensor for fixed stop Signal(s) to axis/spindle (PLC ! NCK) Signal(s) updated: cyclically Fixed stop is reached. Fixed stop is not reached. The signal is effective only if MD 37040: FIXED_STOP_BY_SENSOR is set to 1.
1/F1/5-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
DB 31, ... DBX3.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Enable travel to fixed stop Signal(s) to axis/spindle (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 2.1 Meaning when FXS function is selected via parts program, (IS Activate travel to fixed stop = 1): Travel to fixed stop is enabled and the axis traverses from the start position at the programmed velocity to the programmed target position. Meaning when FXS function is selected via parts program, (IS Activate travel to fixed stop = 1): ! Travel to fixed stop is disabled. ! The axis is stationary with reduced torque at the start position. ! The channel message Wait: Auxiliary function acknowledgment missing is displayed. Meaning before the fixed stop is reached IS Fixed stop reached DB31, ... DBX62.5 = 0. ! Travel to fixed stop is aborted ! Alarm 20094: axis%1 Function aborted is displayed Meaning after the fixed stop has been reached IS Fixed stop reached DB31, ... DBX62.5 = 1. The torque limitation and monitoring of the fixed stop monitoring window are canceled. Selection Acknowledge fixed stop reached DB31, ...DBX1.1. MD 37060: FIXED_STOP_ACKN_MASK (monitoring of PLC acknowledgments for travel to fixed stop) = 0 or 2 MD 37060: FIXED_STOP_ACKN_MASK (monitoring of PLC acknowledgments for travel to fixed stop) IS Activate travel to fixed stop (DB31, ... DBX62.4)
Signal state 0
5.1.2
DB 31, ... DBX62.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 DB 31, ... DBX62.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
This signal is used for analog drives in order, for example, to activate the current or torque limitation parameterized in the actuator. The Travel to fixed stop function is not active.
Fixed stop reached Signal(s) from axis/spindle (NCK ! PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 2.1 The fixed stop was reached after selection of the FXS function. This signal is used by analog drives, e.g. to switch the actuator from speed-controlled to current or torque-controlled mode so that a programmable clamping torque can be set. The fixed stop has still not been reached after selection of the FXS function.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/5-49
10.00 10.00
Notes
1/F1/5-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Travel to Fixed Stop (F1) 6.1 Traveling to fixed stop, examples (SW 5.3 and higher)
Example
6.1
6
Travel to fixed stop (FXS), initiated by a synchronized action N10 IDS=1 WHENEVER (($R1==1) AND ($AA_FXS[Y]==0)) DO $R1=0 FXS[Y]=1 FXST[Y]=10 FA[Y]=200 POS[Y]=150 N11 IDS=2 WHENEVER ($AA_FXS[Y]==4) DO FXST[Y]=30 N12 IDS=3 WHENEVER ($AA_FXS[Y]==1) DO FXST[Y]=$R0 N13 IDS=4 WHENEVER (($R3==1) AND ($AA_FXS[Y]==1)) DO FXS[Y]=0 FA[Y]=1000 POS[Y]=0 N20 FXS[Y]= 0 G0 G90 X0 Y0 N30 RELEASE(Y) N40 G1 F1000 X100 N50 ...... N60 GET(Y) ; Activate static synchronized action: ; Setting $R1=1 ; activates ; FXS for the Y axis ; the effective torque is reduced to 10% ; and a traversing movement is started ; in the direction of the stop ; Once the stop has bee detected, ; ($AA_FXS[Y]==4), the torque is ; increased to 30% ; After the stop has been reached, ; the torque is controlled ; depending on R0 ; Selection depending on ; R3 and ; travel back ; ; ; Normal program run ; ; Enable Y axis for the movement in ; the synchronized action ; Movement of another axis ; ; Include Y axis again in ; path group
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/6-51
Travel to Fixed Stop (F1) 6.1 Traveling to fixed stop, examples (SW 5.3 and higher)
10.00
Multiple selection
A selection may only be carried out once. If the function is called once more due to faulty programming (FXS[axis]=1), the alarm 20092 Travel to fixed stop still active is initiated. A programming that polls either $AA_FXS[] or its own flag (here: R1) in the condition, avoids that the function is activated several times. Programming sample (parts program fragment): N10 R1=0 N20 IDS=1 WHENEVER ($R1 == 0 AND $AA_IW[AX3]>7) DO R1=1 FXS[AX1]=1 FXST[AX1]=12
By programming a block-related synchronized action, travel to fixed stop can be connected during an approach motion. Programming example: N10 G0 G90 X0 Y0 N20 WHEN $AA_IW[X]>17 DO FXS[X]=1 ; If X reaches a position greater N30 G1 F200 X100 Y110 ; than 17mm, FXS is activated
1/F1/6-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
7
Name Reference
7.1
Interface signals
Bit, byte
DB number
Axis/spindle-specific 3148 3148 3148 3148 3148 3148 3148 1.1 1.2 1.3 2.1 3.1 62.4 62.5 Acknowledge fixed stop reached Sensor for fixed stop Axis/spindle disable Servo enable Enable travel to fixed stop Activate travel to fixed stop Fixed stop reached A2 A2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/F1/7-53
7.2
Number
Machine data
Identifier Name Reference
Axis-specific ($MA_ ... ) 36042 37000 37002 37010 37012 FOC_STANDSTILL_DELAY_TIME FIXED_STOP_MODE FIXED_STOP_CONTROL FIXED_STOP_TORQUE_DEF FIXED_STOP_TORQUE_RAMP_TIME Delay time of zero speed control with FOC and FXS (SW 5.3 and higher) Travel to fixed stop mode Special functions when traveling to fixed stop (SW 5.3 and higher) Default for clamping torque Virtual time until reaching the new clamping torque when traveling to fixed stop (SW 5.3 and higher) Default for fixed stop monitoring window Threshold for fixed stop detection Fixed stop detection via sensor Enabling the fixed stop alarms Reaction to fixed stop alarms with SW 6.2 and higher Monitoring of PLC acknowledgments for travel to fixed stop Torque limit on fixed stop approach for analog drives Status of activation of the modal function FOC (SW 5.3 and higher)
7.3
Number
Setting data
Identifier Name Reference
Axis-specific ($SA_ ... ) 43500 43510 FIXED_STOP_SWITCH FIXED_STOP_WINDOW Selection of travel to fixed stop Clamping torque when traveling to fixed stop extended to a torque greater than 100% (SW 5.3 and higher) Fixed stop monitoring window
43520
FIXED_STOP_TORQUE
7.4
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
1/F1/7-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2 2.2.1 2.2.2 2.2.3 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.4 2.4.1 2.4.2 2.5 2.5.1 2.5.2 2.5.3 2.5.4 Velocities, traversing ranges, accuracies . . . . . . . . . . . . . . . . . . . . . . Velocities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Traversing ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Positioning accuracy of the control system . . . . . . . . . . . . . . . . . . . . Block diagram of resolutions and normalization values . . . . . . . . . . Input/display resolution, calculation resolution . . . . . . . . . . . . . . . . . Standardizing physical quantities of machine and setting data . . . . Metric/inch measuring system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Conversion of basic system by parts program . . . . . . . . . . . . . . . . . Manual switchover of the basic system (SW 5 and higher) . . . . . . . FGROUP and FGREF (SW 5 and higher) . . . . . . . . . . . . . . . . . . . . . Setpoint/Actual value system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Speed setpoint and actual value routing . . . . . . . . . . . . . . . . . . . . . . . Configuration of drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adapting the motor/load ratios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Speed setpoint output and actual value processing . . . . . . . . . . . . . Adjustments to actual-value resolution . . . . . . . . . . . . . . . . . . . . . . . . Closed-loop control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameter sets of the position controller . . . . . . . . . . . . . . . . . . . . . . Extension of the parameter set (SW 5.1 and higher) . . . . . . . . . . . . Optimization of the control (SW 5.0 and higher) . . . . . . . . . . . . . . . . Position controller: Positional deviation injection (SW 5.1 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Position controller position setpoint filter: New balancing filter (SW 5.0 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Position controller position setpoint filter: New jerk filter (SW 5.1 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Position feedback loop with PI controller (SW 6.4 and higher) . . . .
1/G2/1-3 1/G2/2-5 1/G2/2-5 1/G2/2-5 1/G2/2-6 1/G2/2-7 1/G2/2-7 1/G2/2-9 1/G2/2-10 1/G2/2-13 1/G2/2-13 1/G2/2-17 1/G2/2-21 1/G2/2-23 1/G2/2-23 1/G2/2-25 1/G2/2-30 1/G2/2-31 1/G2/2-34 1/G2/2-38 1/G2/2-43 1/G2/2-46 1/G2/2-47 1/G2/2-50 1/G2/2-50 1/G2/2-51 1/G2/2-56 1/G2/2-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/i
10.00 10.00
2.5.5 2.5.6 3 4
System variable for the status of pulse enable (SW 5.1 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Extensions for deceleration axes (SW 5.3 and higher) . . . . . . . . .
1/G2/2-60 1/G2/2-61 1/G2/4-63 1/G2/4-63 1/G2/4-63 1/G2/4-75 1/G2/7-91 1/G2/7-91 1/G2/7-91 1/G2/7-91 1/G2/7-94 J
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 6 7
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/G2/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
This Section describes the parameter settings for
S the actual value or measuring systems S the setpoint value system S the operating accuracy S the traversing ranges S the axis velocities and S the control parameters
on a machine axis.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/1-3
10.00 10.00
Notes
1/G2/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.1 Velocities, traversing ranges, accuracies
Detailed Description
2.1
2.1.1
For details on setting the IPO clock cycle see References: /FB/, G3, Cycle times With a high feedrate (resulting from programmed feedrates and feedrate override) the maximum path velocity is limited to Vmax. This automatic feedrate limitation can lead to a drop in velocity over several blocks with programs generated by CAD systems with extremely short blocks. Example: IPO cycle = 12 ms N10 G0 X0 Y0; mm N20 G0 X100 Y100; mm programmed path distance in block = 141.42 mm Vmax = (141.42 mm / 12 ms) * 0.9 = 10606.6 mm/s = 636.39 m/min The following restriction applies to the minimum path or axis velocity: Vmin w 10 *3 Calculation Resolution [mmincr. ] * IPO clock cycle [s] or deg.
The calculation resolution is defined in MD 10200: INT_INCR_PER_MM (calculation resolution for linear positions) or MD 10210: INT_INCR_PER_DEG (calculation resolution for angular positions). It is described in more detail on the following pages.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-5
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.1 Velocities, traversing ranges, accuracies
10.00
If the velocity drops below Vmin no traverse movement takes place. Example: MD 10200: INT_INCR_PER_MM = 1000 [incr. / mm] ; IPO cycle = 12 ms; Vmin = 10 3 / (1000 incr/mm x 12 ms) = 0.005 mm / min;
The value range of the feedrates depends on the calculation resolution selected. With the default settings of MD 10200: INT_INCR_PER_MM (calculation resolution for linear positions) (1000 incr./mm) or MD 10210: INT_INCR_PER_DEG (calculation resolution for angular positions) (1000 incr./degrees), the following value range can be programmed with the specified resolution: Value range for path feed F for geometry axes: Metric system: 0.001 v F v 999,999.999 [mm/min, mm/rev, degree/min, degree/rev] Inch system: 0.001 v F v 399,999.999 [inch/min, inch/rev] Value range for feed for positioning axes: Metric system: 0.001 v FA v 999,999.999 [mm/min, mm/rev, degree/min, degree/rev] Inch system: 0.001 v FA v 399,999.999 [inch/min, inch/rev] Value range for spindle speed S: 0.001 v S v 999,999.999 [rev/min] If the calculation resolution is increased/decreased by a factor of 10, the value ranges change accordingly.
2.1.2
Traversing ranges
The value range of the traversing area depends on the calculation resolution selected. With the default settings of MD 10200: INT_INCR_PER_MM (calculation resolution for linear positions) (1000 incr./mm) or MD 10210: INT_INCR_PER_DEG (calculation resolution for angular positions) (1000 incr./degrees), the following value range can be programmed with the specified resolution:
Table 2-1
Traversing ranges of axes G71 [mm, degrees] Range G70 [inch, degrees] Range " 399,999.999 " 999,999.999 " 399,999.999
The unit of measurement of rotary axes is always degrees. If the calculation resolution is increased/decreased by a factor of 10, the value ranges change accordingly.
1/G2/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.1 Velocities, traversing ranges, accuracies
The value range can be limited by software limit switches and working areas. References: /FB/, A3, Axis Monitoring Functions, Protection Zones
The traverse range for rotary axes can be limited via machine data. References: /FB/, R2, Rotary Axes
Special points to be noted with respect to wide traversing range for linear and rotary axes with SW 4 and higher, see: References: /FB/, R1, Reference Point Approach
2.1.3
2.1.4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-7
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.1 Velocities, traversing ranges, accuracies
10.00
Scaling example: Machine data input and display in cm. (with metric basic system) e.g. for MD: POS_LIMT_PLUS (1st software limit switch plus) = + 999,999cm
1) Yes
* MD 10230: SCALING_ FACTORS_USER_DEF (selected with MD 10220: SCALING_ USER_DEF_MASK (only effective with machine and setting data) MD 10240: SCALING_SYSTEM_ IS_METRIC
No
* MD 10230: SCALING_ FACTORS_USER_DEF[n] (selected with MD 10220: SCALING_ USER_DEF_MASK (only effective with machine and setting data)
2)
MD 10240: SCALING_SYSTEM_ IS_METRIC = 1 MD 10230: SCALING_ FACTORS_USER_DEF[0] =0,1; MD 10220: SCALING_ USER_DEF_MASK = H1 (bit no. 0 as hex value)
2)
3)
MD 10250: * SCALING_VALUE_INCH Internal unit [mm or degrees] +9,999.99 mm
4)
999999
Control device
* *
Fig. 2-1
1/G2/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.1 Velocities, traversing ranges, accuracies
2.1.5
S The input resolution, i.e. the input of data via the operator panel or by means
of parts programs.
S The display resolution, i.e. display of data via the operator panel. S The calculation resolution, i.e. the internal representation of data entered via
the operator panel or parts program. The input and display resolutions are determined by the operator panel used, the display resolution for position values being determined by the setting in MD 9004: DISPLAY_RESOLUTION (display resolution). In SW 5 and higher, MD 9011: DISPLAY_RESOLUTION_INCH can be used to configure the display resolution for position values in inches. This allows you to display up to six decimal places with the inch setting. For the programming of parts programs, the input resolutions listed in the Programming Guide apply. The desired calculation resolution is defined in MD 10200: INT_INCR_PER_MM (calculation resolution for linear positions) and MD 10210: INT_INCR_PER_DEG (calculation resolution for angular positions). It is independent of the input/display resolution but should use the same resolution. The max. number of places after the decimal point for position values, velocities etc. in the parts program and the number of places after the decimal point for tool offsets, zero offsets etc. (and therefore also for the maximum possible accuracy) is defined with the calculation resolution. The accuracy for entering angular and linear positions is limited to the calculation resolution because the product of the programmed value and the calculation resolution is rounded up to the next integer. In order to keep the rounding easily reproducible, it is advisable to use powers of 10 for the calculation resolution. Example for rounding: Calculation resolution: 1000 increments / mm Programmed path: 97.3786 mm Effective value = 97.379mm Example of programming in the 1 /10 mm range:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-9
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.1 Velocities, traversing ranges, accuracies
10.00
2.1.6
Linear position Angular position Linear velocity Angular velocity Linear acceleration Angular acceleration Linear jerk Angular jerk Time Position controller servo gain Revolutional feedrate Compensation value linear position Compensation value angular position
1 inch 1 degree 1 inch/min 1 rpm 1 inch/s2 1 rev./s2 1 inch/s3 1 rev./s3 1s 1/s 1 inch/rev. 1 inch 1 degree
1 rev./s2 1 m/s3
The units listed below are used for storage. The control always uses these units internally irrespective of the basic system selected.
Physical quantity: Internal Unit:
Linear position Angular position Linear velocity Angular velocity Linear acceleration Angular acceleration Linear jerk Angular jerk Time Position controller servo gain Revolutional feedrate Compensation value linear position Compensation value angular position
1 mm 1 degree 1 mm/s 1 degree/sec 1 mm/s2 1 degree/s2 1 mm/s3 1 degree/s3 1s 1/s 1 mm/degree 1 mm 1 degree
1/G2/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.1 Velocities, traversing ranges, accuracies
The user can define other input/output units for the machine and setting data. For this purpose, the newly selected input/output units and the internal units must be matched via MD 10220: SCALING_USER_DEF_MASK (activation of normalization factors) and MD 10230: SCALING_FACTORS_USER_DEF[n] (normalization factors of physical quantities).
Do the input/output units correspond to the standard basic system? (inch or metric)
No
Yes
Internal units
Enter the selected input/output unit in MD 10230: SCALING_FACTORS_USER_DEF[n] expressed in the internal units 1 mm, 1 degree, and 1 s. Index [n] is explained in Section 4.1. Example 1: Machine data input/output of the linear velocities is to be in m/min instead of mm/min (initial setting). (The internal unit is mm/s) The scaling factor for the linear velocities is to differ from the standard setting. This is achieved by setting Bit 2 in MD 10220: SCALING_USER_DEF_MASK. MD: SCALING_USER_DEF_MASK = H4; (Bit no. 2 as hex value) The scaling factor is calculated acc. to the following formula:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-11
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.1 Velocities, traversing ranges, accuracies
10.00
MD : SCALING_FACTORS_USER_DEF[n] + MD : SCALING_FACTORS_USER_DEF[n] +
1 mm s
1000mm 60s 1 mm s
+ 1000 + 16.667; 60
MD : SCALING_FACTORS_USER_DEF[2] + 16.667
Index 2 defines the linear acceleration in the list Scaling factors of physical quantities. Example 2: In addition to the modification made in example 1, the machine data input/ output of linear velocities is to be in ft/s2 instead of m/s2 (initial setting) (the internal unit is mm/s2).
MD : SCALING_USER_DEF_MASK + H14; (bit no. 4 and bit no. 2 of example 1 as hexa value) MD : SCALING_FACTORS_USER_DEF[n] +
ft s2 1 mm s2
12 * 25, 4 mm 2
s
1 mm 2
s
+ 304.8;
MD : SCALING_FACTORS_USER_DEF[4] + 304.8
Index 4 defines the linear acceleration in the list Scaling factors of physical quantities.
1/G2/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
2.2
The setting of MD 10260: CONVERT_SCALING_SYSTEM=1 makes it much easier to change the system of measurement in SW 5 and higher.
S An MMC soft key is available in the MACHINE operating area for changing
the system of measurement.
S Data backup is performed with the current measurement system identifier. S The scope of MD 10240: SCALING_SYSTEM_IS_METRIC is Reset. S The system of measurement for sag compensation is set in MD 32711:
CEC_SCALING_SYSTEM_METRIC (see References /K3/).
2.2.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-13
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
10.00 10.00
Example: Initial setting: Inch; (MD: SCALING_SYSTEM_IS_METRIC=0) Parts program: N15 G70; Factor has no effect because setting does not deviate from the initial setting. N20 G71; Factor has an effect.
The current setting (selected with G70/G71) and the initial setting can be the same or differ at any given time. The current setting is channel-specific, the initial setting applies to all channels. Application: With this function it is possible, for example, with a metric basic system, to machine an inch thread in a metric parts program. Tool offsets, zero offsets and feedrates remain metric. Machine data are output in the basic system selected in MD 10240: SCALING_SYSTEM_IS_METRIC (basic system metric). Machine coordinates, tool data and zero offsets are always displayed in the initial setting, workpiece coordinate displays are in the current setting. If programs incl. data records (zero offsets, tool offset) programmed in a unit system other than the basic system are read in from an external source, then first the initial setting must be programmed via the MD 10240: SCALING_SYSTEM_IS_METRIC. Data exchange with the PLC of interface signals containing dimension information, e.g. feedrate for path and positioning axes, is always carried out in the selected basic system.
G700/G710 extends the functionality of G70/G71 as follows: 1. The feed is interpreted in the programmed system of measurement:
S G700: Length parameters [inch]; feedrates [inch/min] S G710: Length parameters [mm]; feedrates [mm/min]
The programmed feed is modal and therefore remains active after subsequent G70/G71/G700/G710 commands. If the feedrate is to apply in the new G70/G71/G700/G710 context, it must be reprogrammed. 2. System variables and machine data specifying lengths in the parts program are read and written in the programmed system of measurement. This allows you to implement parts programs that are independent of the default system of measurement. Comparison of the effect of G70/G71 and G700/G710 on machine data and system variables in the parts program:
S with G70/G71: Reading/writing in the basic system S with G700/G710: Reading/writing in the programmed system of
measurement
1/G2/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
Examples: (Both parts programs are implemented with a metric setting with MD 1240: SCALING_SYSTEM_IS_METRIC=1) N100 R1=0 R2=0 N120 G01 G70 X1 F1000 N130 $MA_LUBRICATION_DIST[X]=10 N140 NEWCONF N150 IF ($AA_IW[X]>$MA_LUBRICATION_DIST[X]) N160 R1=1 N170 ENDIF N180 IF ($AA_IW[X]>10) N190 R2=1 N200 ENDIF N210 IF ( (R1<>0) OR (R2<>0)) N220 SETAL(61000) N230 ENDIF N240 M30 Note Alarm 61000 does not occur if G70 is replaced by G700 in block N120.
Synchronized actions
In order to prevent the current parts program context from changing the positioning behavior of a synchronized action arbitrarily in response to asynchronous trigger conditions, the system of measurement must be defined at the time of interpretation. This is the only way to achieve a defined and reproducible positioning behavior of a synchronized action. Example 1: N100 R1=0 N110 G0 X0 Z0 N120 WAITP(X) N130 ID=1 WHENEVER $R1==1 DO POS[X]=10 N140 R1=1 N150 G71 Z10 F10 ;Z=10mm X=10mm N160 G70 Z10 F10 :Z=254mm X=254mm N170 G71 Z10 F10 ;Z=10mm X=10mm N180 M30 Example 2: The definition is made here by programming G71 in the synchronized action. N100 R1=0 N110 G0 X0 Z0 N120 WAITP(X) N130 ID=1 WHENEVER $R1==1 DO G71 POS[X]=10 N140 R1=1 N150 G71 Z10 F10 ;Z=10mm X=10mm N160 G70 Z10 F10 :Z=254mm X=10mm (X always posit. to 10mm) N170 G71 Z10 F10 ;Z=10mm X=10mm N180 M30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-15
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
10.00
Meanings:
P:
Reading/writing of data in the programmed system of measurement G: Reading/writing of data in the basic system of (MD 10240: SCALING_SYSTEM_IS_METRIC) R/W: Read/Write
Comparison Range G70/G71 Parts programs R/W G700/G710 Parts programs R/W P/P G/G P/P P/P P/P P/P P/P P/P P/P P/P P/P P/P P/P P/P P/P P/P P/P P/P P/P G/G G/G G/G G/G P/P G/G
Table 2-2
Display, decimal places (WCS) Display, decimal places (MCS) Feedrates Positional data X, Y, Z Interpolation parameters I, J, K Circle radius (CR) Polar radius (RP) Thread lead Programmable FRAME Settable FRAMES Basic frames Work offsets external Axial preset offset Working area limitations (G25/G26) Protection zones Tool offsets Length-related machine data Length-related setting data Length-related system variables GUD LUD PUD R parameters Siemens cycles Jog/handwheel increment factor
P/P G/G G/G P/P P/P P/P P/P P/P P/P G/G G/G G/G G/G G/G P/P G/G G/G G/G G/G G/G G/G G/G G/G P/P G/G
References:
1/G2/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
2.2.2
General
S S S S S
MD 10260: CONVERT_SCALING_SYSTEM=1. Bit 0 of MD 20110: RESET_MODE_MASK is enabled in every channel. All channels are in the Reset state. Axes are not traversing with JOG, DRF or PLC control. Constant grinding wheel peripheral speed (GWPS) is not active.
Actions such as parts program start or mode change are disabled for the duration of the switchover. If the switchover cannot be performed, this is indicated by a message in the user interface. These measures ensure that a consistent set of data is always used for a running program with reference to the system of measurement. The actual switchover of the system of measurement is performed internally by writing all the necessary machine data and subsequently activating them with a Reset. MD 10240: SCALING_SYSTEM_IS_METRIC and the corresponding G70/G71/G700/G710 settings in MD 20150: GCODE_RESET_VALUES are automatically switched over consistently for all configured channels. The value of MD 20150: GCODE_RESET_VALUES[12] alternates between G700 and G710. This process takes place independently of the protection level currently set.
Note The availability of the soft key and its functionality can be configured in the compatibility machine data MD 10260: CONVERT_SCALING_SYSTEM.
Important If several NCUs are linked by NCU Link, the switchover available in SW 5 and higher has the same effect on all NCUs linked. If the prerequisites for a switchover are not fulfilled on one of the NCUs linked, no switchover will take place on none of the NCUs. It is assumed that interpolations between several NCUs will take place on the existing NCUs whereby the interpolations can provide correct results only if the same unit systems are used. References: /FB/, B3, Distributed Systems
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-17
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
10.00 10.00
System data
When the system of measurement is changed, all length-related parameters are automatically converted to the new system of measurement from the perspective of the operator. This includes:
S S S S S S S S S S
Positions Feedrates Acceleration rates Jerk Tool offsets Programmable, settable and work offsets external and DRF offsets Compensation values Protection zones Machine data Jog and handwheel factors
After the switchover, all of the above data are available in the physical magnitudes described in Subsection 2.1.6. Data for which no unique physical units are defined, such as:
S R parameters S GUD (Global User Data) S LUD (Local User Data) S PUD (Program global User Data) S Analog I/Os S Data exchange via FC21
are not converted automatically. In this case, the user must allow for the current system of measurement in MD 10240: SCALING_SYSTEM_IS_METRIC. The current system of measurement setting can be read at the PLC interface via the inch system signal DB10.DBX107.7. DB10.DBB71 can be used to read out the system of measurement change counter.
For the user-defined tool data MD 18094: MM_NUM_CC_TDA_PARAM and tool edge data MD18096: MM_NUM_CC_TOA_PARAM additional machine data sets:
Reference point
1/G2/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
The input/calculation resolution is set via MD 10200: INT_INCR_PER_MM. The default setting for a metric system is 1000 (0.001mm). 0.0001 inches is required for an inch system. Example: 1 inch = 25.4mm 0.0001 inch = 0.00254mm = 2.54m In order to program and represent the last 40 nm, a value of 100000 must be entered in MD 10200. Only with this identical setting for both systems of measurement is it possible to change the system of measurement without a significant loss of accuracy. Once MD 10200 has been set as above, it no longer has to be changed for each measurement system switchover.
MD 31090: JOG_INCR_WEIGHT consists, in SW 5 and higher, of two values containing axial increment factors for each of the two systems of measurement. The control automatically selects the correct value depending on the setting in MD 10240: SCALING_SYSTEM_IS_METRIC. The user defines the two increment factors, e.g. for the first axis, during the installation and startup phase.
Data saving
Data sets which can be read out separately from the control and which contain data relating to the system of measurement are given an INCH or METRIC identifier corresponding to MD 10240: SCALING_SYSTEM_IS_METRIC during the read process, depending on the setting in MD 10260: CONVERT_SCALING_SYSTEM. This records the system of measurement in which the data were originally read out. This information is intended to prevent data sets from being read into the control system with a system of measurement which is different from the active system. In this case, alarm 15030 is triggered and the write process is interrupted. Since the language instruction is also evaluated in parts programs, these can also be protected against operator errors as described above. You can therefore prevent parts programs containing e.g. only metric data from running on an inch system of measurement. Archives and machine data are downwards compatible with the setting MD 11220: INI_FILE_MODE = 2.
Note The INCH/METRIC instruction is only generated if compatibility machine data MD10260: CONVERT_SCALING_SYSTEM is enabled.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-19
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
10.00
In order to prevent rounding problems, all length-related machine data are rounded to 1pm when writing in the inch system of measurement (MD 10240: SCALING_SYSTEM_IS_METRIC=0 and MD 10260: CONVERT_SCALING_SYSTEM=1). The disturbing loss of accuracy which occurs as a result of conversion to ASCII when reading out a data backup in the inch system of measurement is corrected by this procedure when the data are read back into the system.
1/G2/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
2.2.3
Note The FGREF weighting is effective even if only rotary axes are programmed in the block. The usual F value interpretation in degrees/min only applies in this case if the radius reference has been set in accordance with the FGREF default, i.e. for G71/G710): FGREF[A]=57.296 or for G70/G700): FGREF[A]=57.296/25.4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-21
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.2 Metric/inch measuring system
10.00 10.00
Example: The following example illustrates the effect of FGROUP on the path distance and path feed. N100 R1=0 N110 FGROUP(X,A) N120 G91 G1 G710 F100 ;feed=100 mm/min or 100 degrees/min N130 DO $R1=$AC_TIME N140 X10 ;feed=100 mm/min path dist.=10mm ;R1=approx. 6s N150 DO $R2=$AC_TIME N160 X10 A10 ;feed=100 mm/min path dist.=14.14mm ;R2=approx. 8s N170 DO $R3=$AC_TIME N180 A10 ;feed=100 degrees/min path dist.=10 degr. ;R3=approx. 6s N190 DO $R4=$AC_TIME N200 X0.001 A10 ;feed=100 mm/min path dist.=10mm ;R4=approx. 6s N210 G700 F100 N220 DO $R5=$AC_TIME N230 X10 N240 DO $R6=$AC_TIME N250 X10 A10 N260 DO $R7=$AC_TIME N270 A10 N280 DO $R8=$AC_TIME N290 X0.001 A10 ;feed=2540 mm/min or 100 degrees/min ;feed=2540 mm/min ;R5=approx. 6s ,feed=2540 mm/min ;R6=approx. 6s ;feed=100 degrees/min ;R7=approx. 6s path dist.=254mm
path dist.=254.2mm
;feed=2540 mm/min :R8=approx. 0.288s N300 FGREF[A]=360/(2*$PI) ;1 degree=1 inch ;set via effective radius N310 DO $R9=$AC_TIME N320 X0.001 A10 ;feed=2540 mm/min ;R9=approx. 6s N330 M30
path dist.=10mm
path dist.=254mm
Note The variable $AC_TIME contains the time since the start of block in seconds. It can only be used in synchronized actions.
1/G2/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
2.3
2.3.1
Block diagram
A control loop with the following structure can be configured for every closed-loop controlled axis/spindle:
ClosedLoop Control
Motor M
Actual processing
NUM_ENCS
Actual processing
Encod. G
Fig. 2-2
Setpoint output
A setpoint can be output for each axis/spindle. Setpoints are output digitally to the actuator on SINUMERIK 840D/810D. A maximum of two measuring systems can be connected for each axis/spindle, e.g. a direct measuring system for machining processes with later accuracy requirements and an indirect measuring system for highspeed positioning tasks. The number of encoders used is entered in MD 30200: NUM_ENCS (number of encoders). In the case of two actual value branches, the actual value is acquired for both branches. The active measuring system is always used for position control, absolute value calculation and display. If both measuring systems are activated at the same time by the PLC interface, positioning measuring system 1 is chosen internally by the control. Reference point approach is executed by the selected measuring system. Every position measuring system must be referenced separately. For an explanation of the compensation functions for actual value acquisition see: References: /FB/, K3, Compensations For an explanation of the encoder monitoring functions see: References: /FB/, A3, Axis Monitoring Functions, Protection Zones
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-23
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
01.00 10.00
It is possible to switch over between the two measuring systems via PLC interface signals Position measuring system 1/2, see: References: /FB/, A2, Various Interface Signals It is possible to switch over measuring systems at any time, the axes do not have to be stationary to do this. Switchover only takes place if a permissible deviation between the actual values and the two measuring systems has not been violated. The associated tolerance band is set in MD 36500: ENC_CHANGE_TOL (maximum tolerance for position actual value switchover). On switchover the actual difference between position measuring system 1 and 2 is traversed immediately. If the actual value deviation is too large, alarm 25100, Measuring system switchover not possible is output and the measuring system is not changed. Enter the actual value corresponding to the approached position in MD 36510: ENC_DIFF_TOL. This tolerance setting must not be exceeded during cyclical comparison of the two measuring systems or an error message will be generated. The associated monitoring function is not active when MD 35510=0, in cases where 2 measuring systems are not active/nonexistent in the axis or if the axis itself is not referenced (at least act. closed-loop control measuring system).
The encoder type used must be programmed in MD 30240: ENC_TYPE (type of actual value sensing (position actual value)):
The speed control loop of an axis can be simulated for test purposes. The axis traverses with a following error, similarly to a real axis. A simulation axis can be defined by setting the two machine data MD 30130: CTRLOUT_TYPE[n] (setpoint output mode) and MD 30240: ENC_TYPE[n] (actual value sensing type) to 0. As soon as the standard machine data have been loaded the axes become simulation axes. The setpoint and actual value can be set to the reference point value with reference point approach. The MD 30350: SIMU_AX_VDI_OUTPUT (output of axis signals for simulation axes) can be set to define whether axis-specific IS are output to the PLC during the simulation process.
If actual value corrections carried out by the NC on the encoder selected for position control are not to influence the actual value of a second encoder defined on the same axis, the encoder is to be declared independent with MD 30242: ENC_IS_INDEPENDENT. Actual value corrections include the following:
1/G2/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.01 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
2.3.2
General
S Assignment of 1st control loop S Assignment of 2nd control loop if available S Assignment of setpoint branch
Multiple assignment is also possible, e.g. using a control loop for position actual value acquisition for the alternating control of several axes/spindles.
Note When a SIMODRIVE 611 universal is operated via the PROFIBUS DP, various machine data that need to be parameterized for digital and analog drives are not assigned.
All NC machine axes have to be clearly defined in MD 10000: AXCONF_MACHAX_NAME_TAB[n] (machine axis name). This name must be the one used throughout the system (all mode groups and channels). References: /FB/, K2, Axes, Coordinate Systems, Frames, Actual Value System for Workpiece, Reset Behavior. /FB/, K1, Mode Group, Channels, Program Operation
For speed setpoint routing, the following setpoint assignments for parameterizing the relevant machine data must be made:
S Setpoint assignment
Drive type: Drive number/module number: Output to drive module: Setpoint output method: Setpoint output is unipolar (operative only on PROFIBUS DP)
Number Of bus segment Of module within a bus segment Of setpoint output Type of speed setpoint output Polarity of output driver for speed setpoint output
For further information about PROFIBUS DP configuration, please see: References: /FB1/, K4 Communication SINUMERK 840D with PROFIBUS
The index [n] of the machine data for setpoint routing is coded with 0 for setpoint assignment with default setting 1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-25
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
12.01 10.00
The following machine data need to be parameterized for each setpoint branch:
=6
S MD 30110: CTRLOUT_MODULE_NR[n]
(Setpoint assignment: drive number/module number): The number of the module in the bus segment via which the output is to be addressed is entered here. The logical drive number of the axis module can be set via MD 13010: DRIVE_LOGIC_NR[n] for: SINUMERIK 810D Value range 015 SINUMERIK 840D as 611 digital drive no. Value range 031 SINUMERIK 840D PROFIBUS on link module Value range 0125
S MD 30120: CTRLOUT_NR[n])
(Setpoint assignment: Setpoint output on drive module/module): The number of the setpoint output must be entered here (always output 1 for SINUMERIK 840D/810D). MD 30130: CTRLOUT_TYPE[n] (setpoint output type): The speed setpoint output type is entered here. 0 : Simulation (no HW required) 1 : Default (differentiated via HW configuration) 2 : Stepper motor and 3: FM module (for SINUMERIK FM NC only)
For actual value routing, the following actual value assignments for parameterizing the associated machine data must be made:
Number: Of bus segment Of module within a bus segment Of setpoint input Encoder type used The encoder i independent Actual value corrections from NC
1/G2/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.01 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
The following machine data must be parameterized for each actual value branch:
=6
The coding of the machine data index [n] for actual value routing is [encoder no.] 0 for the first encoder or 1 for the 2nd encoder.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-27
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
12.01 10.00
...
15
Table
Spindle
Linear scale
NC CPU 1 0
...
15
Fig. 2-3
SINUMERIK 840D/810D with SIMODRIVE 611 digital: MD 30110: CTRLOUT_MODULE_NR[n] and MD 30220: ENC_MODULE_NR[n] for one machine axis always have the same logical drive number when indirect measuring systems are connected or when the motor encoder at the NC end needs to be evaluated. When direct measuring systems are installed, you can also configure encoders that are connected to other drives.
1/G2/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.01 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
and the measuring channel no. 6 (X416 as direct measuring system) must be assigned to machine axis X1. The logical number of the drive is set automatically to 4.
Power section external
MD 13010: DRIVE_LOGIG_NR: MD 30220: ENC_MODULE_NR :(0) :(1) 30230: ENC_INPUT_NR: 4 3 6 1
810D
X413
X414
2 1
Spindle
Fig. 2-4
Actual value assignment for Fig. 24 1st axis actual value from motor encoder (X414) 2nd axis actual value from linear scale (X416) Number of encoders: Type of actual value acquisition 1: Type of actual value acquisition 2: Setpoint assignment for Fig. 24
Machine data parameterization for 810D MD 30220: ENC_MODULE_NR[0] = 4 MD 30230: ENC_INPUT_NR[0] = 1 MD 30220: ENC_MODULE_NR[1] = 3 MD 30230: ENC_INPUT_NR[1] = 1 MD 30200: NUM_ENCS = 2 MD 30240: ENC_TYPE[0] = 1 MD 30240: ENC_TYPE[1] = 1 MD 30110: CTRLOUT_MODULE_NR[0] = 4 MD 30120: CTRLOUT_NR[0] = 1 MD 13010: DRIVE_LOGIC_NR[3] = 4 MD 30130: CTRLOUT_TYPE[0] = 1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-29
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
12.01 10.00
2.3.3
Configuration of drives
S MD 13010: DRIVE_LOGIC_NR[n] (logical drive number) S MD 13000: DRIVE_IS_ACTIVE[n] (activate SIMODRIVE 611 digital drive ) S MD 13030: DRIVE_MODULE_TYPE[n] (module identification) S MD 13040: DRIVE_TYPE[n] (drive type identification) S MD 13020: DRIVE_INVERTER_CODE[n] (power section code of drive
module) The index [n] used in the machine data is the slot number of the real drives. The number is automatically assigned by the NC for all connected drive modules on POWER ON. The index is numbered starting with 0 at the beginning of the drive bus ( 1st real drive available) and continues in ascending order to the end. Multi-axis modules are assigned consecutive, physical drive numbers (counted from left to right). SINUMERIK 810D uses the first 6 slots (indices 05). MD 13010: DRIVE_LOGIC_NR (logical drive number) can also be used to create wildcards for modules which do not yet exist.
S MD 13000: DRIVE_IS_ACTIVE[n] (activate SIMODRIVE 611 digital drive) S MD 13010: DRIVE_LOGIC_NR[n] (logical drive number) S MD 13020: DRIVE_INVERTER_CODE[n] (power section code of drive
module)
S MD 13050: DRIVE_LOGIC_ADDRESS[n] (drive address) S MD 13060: DRIVE_TELEGRAM_TYPE[n] (message frame type for the
drives connected to PROFIBUS DP)
1/G2/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
2.3.4
Overview
The following gear types are available for adapting the meachincal ratios:
Gear type
Motor/load gear box Encoder measuring gearbox Load intermediate gearbox
+ENC_IS_DIRECT2=0 +ENC_IS_DIRECT2=0 +ENC_IS_DIRECT2=1 M Motor/load gear Tool Load intermediate gearbox DRIVE_AX_RATIO2_NUMERA No. of Load revs = DRIVE_AX_RATIO_DENOM No. of tool rotations DRIVE_AX_RATIO_NUMERA No. of motor revs = DRIVE_AX_RATIO_DENOM No. of Load revs Powered tools
Fig. 2-5
Motor/load gear
The motor/load gearbox supported by SINUMERIK is configured via MD 31060: DRIVE_AX_RATIO_NUMERA numerator load gearbox MD 31050: DRIVE_AX_RATIO_DENOM denominator load gearbox projektiert. The gearbox transmission is obtained from the numerator/ denominator ration of both machine data. The associated parameter sets are used automatically per default to synchronize the position controller of the control to the relevant tranmission ratios. Since a gear stage change is not always carried out automatically, and there are also several ways to request a gear stage change, the position controller is not always incoporated via parameter sets.
Note For further information about parameter sets and gear stage change, please refer to: References: /FB/, S1, Spindles
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-31
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
12.01 10.00
In SW 6.4 and higher, the control also supports configurable load intermediate gears. MD 31066: DRIVE_AX_RATIO_NUMERA numerator intermediate gearbox MD 31064: DRIVE_AX_RATIO_DENOM denominator intermediate gearbox Power tools generally have their own intermediate gearbox. Such variable mechanics can be configured by multiplying the active Vorsatz gearbox and the motor/load gearbox.
Caution In contrast to the motor/load gearbox, the intermediate gear has no parameter set and therefore no way of controlling the time-synchronized switchover to parts program or PLC (VDI interface. Parts programming during gearchange is therefore ruled out. It remains the task of the user to match the synchronization of the relevant changed machine data to the corresponding mechanical switchover and activate it. On switchover during a movement, compensations cannot be ruled out due to jumps in the scaling factors. These are not monitoried for violation of the maximum acceleration.
Encoder directly at tool For intermediate gears, a further connection option is possible for an encoder on tool-side by configuring MD 31044: ENC_IS_DIRECT2. Encoder not directly at tool For a gear change of the intermediate gear in position-controlled mode, the following supplementary conditions apply:
Supplementary conditions
If the encoder to be used for position control is connected directly at the tool, the gear stage change only affects the physical variables at the speed interface between the NC and the drive of the motor/load gear. The internal parameter sets are not changed.
1/G2/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.01 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
In the case of gear changes, it is not possible to make a statement about the effect of the reference point or machine position referrence on the encoder scaling. In such cases, the control partially cancels the status Axis reference/synchroniyed. If the position reference to the machine, tool, et. has been lost, it must be restored through appropriate adjustment or referencing. This is especially important for the functions Travel to fixed stop, Referencing to Bero, Cam and Zero marker.
Caution The control cannot detect all possible situations that can lead to loss of the machine position reference. It is therefore the responsibility of the commissioning engineer or user to to initiate explicit referencing of zero marker synchronization in such cases. Note To enable re-referencing without interupts through reset, the machine data MD 34080: of MD: REFP_MOVE_DIST and MD 34090: REFP_MOVE_DIST_CORR in SW 6.4 and higher are active with NewConfig. For further explanations on referencing, please refer to: References: /FB/, R1, Reference Point Approach
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-33
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
12.01 10.00
2.3.5
Control direction
Before the position control is started up, the speed controller and current controller of the drive must be started up and optimized.
Traversing direction
The MD 32100: AX_MOTION_DIR (traverse direction) without affecting the feedback polarity of the position control.
The speed setpoint comparison for SINUMERIK 840Di with SIMODRIVE 611 universal drives can be performed automatically or manually. Automatic comparison The configuration values for setpoint scaling are compared automatically, provided that MD 32250: RATED_OUTVAL[n] = 0. The speed setpoint comparison through acyclic services at PROFIBUS-DP can be performed automatically.
1/G2/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.01 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
On the SINUMERIK 840D/810D, the maximum speed setpoint is the highest value that can be output to the SIMODRIVE 611 digital drive as a result of the maximum speed parameterized in the drive machine data MD 1401/2401: MOTOR_MAX_SPEED (maximum motor speed) that can be output at SIMODRIVE 611 digital drive. For spindle drives, MD 1401 corresponds to the maximum motor speed. The desired speed at the spindle is reached via the mechanical gear stage. The output of the spindle speed is implemented in the NC for SINUMERIK 840D/840Di. Data for 5 gear stages are implemented in the control. The gear stages are defined by a minimum and maximum speed for the gear stage and a minimum speed and a maximum speed for the automatic gear stage change. A new set gear stage is output only if the new programmed speed cannot be traversed in the current gear stage. MD 36210: Can be defined to limit the speed setpoint as a percentage of the maximum speed setpoint. Values up to 200 % are possible. If this limit is exceeded, an alarm is output.
nset = Speed setpoint Max. speed setpoint MD 36210: CTRLOUT_LIMIT 525% Max. axis velocity MD 32000: MAX_AX_VELO
t [sec]
Fig. 2-6
However, owing to control processes, the axes should be able to reach their maximum velocity (MD 32000: MAX_AX_VELO) before the 100% speed setpoint is reached, i.e. at between 80% and 95%. The default value (default 80%) of the MD 32000: MAX_AX_VELO can be accepted for axes which reach maximum velocity at about 80% of the speed setpoint range. On SINUMERIK 840D/810, MD 36210: CTRLOUT_LIMIT[n] and MD 1405: MOTOR_SPEED_LIMIT (monitoring speed motor) should tally.
Note For further details of setpoint adaption for SIMODRIVE digital drives, refer to: References: /IAD/, Installation and StartUp Guide, Axis and Spindles Explanations for setpoint normalization for SIMODRIVE analog drives, see: References: /FB/, B2, Analog Axis
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-35
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
12.01 10.00
0 0 0 0 Marks/rev mm/rev. Load revs Motor rpm if infeed present Encoder revs Motor-side encoder*
The encode on the motor side in a built-in encoder and therefore does not have a measuring gear. The gear ratio is always 1:1.
Note These machine data are not required for encoder matching (path evaluation). However, they must be entered correctly for the setpoint calculation! Otherwise the required servo gain (KV) factor will not be set. Load revolutions are entered in MD 31050: DRIVE_AX_RATIO_DENOM, and motor revolutions in MD 31060: DRIVE_AX_RATIO_NUMERA.
1/G2/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
The index of the following machine data are coded at the encoder [Encodernr.] : encoder 0 or 1
Encoder-dependent machine data MD 31070: DRIVE_ENC_RATIO_DENOM[n] MD 31080: DRIVE_ENC_RATIO_NUMERA[n] MD 31000: ENC_IS_LINEAR[n] MD 31010: ENC_GRID_POINT_DIST[n] MD 31020: ENC_RESOL[n] MD 31040: ENC_IS_DIRECT[n] MD 34320: ENC_INVERS[n] Further machine data without index MD 30200: NUM_ENCS MD 30300: IS_ROT_AX MD 31030: LEADSCREW_PITCH (Number of encoders) (Rotary axis) (Leadscrew pitch) Meaning (Denominator measuring gearbox) (Numerator measuring gearbox) (Direct measuring system linear scale) (Distance between reference marks on linear scales) (Encoder pulses per resolution) for rotating encoders (Encoder is connected directly at the machine) (Linear measurement system is inverted)
Index [n] of the following machine data depend on the servo parameters of the position controller with which the actual value resolution was calculated automatically in the controll: MD: DRIVE_AX_...[Servo parameter set No.] : 05
Parameter-set-dependent machine data MD 31050: DRIVE_AX_RATIO_DENOM[n] MD 31060: DRIVE_AX_RATIO_NUMERA[n] Meaning (Denominator load gearbox) (Numerator load gearbox)
For the following machine data, the control does not consider any parameter set nor any indices for coded encoders.
NewConfig-dependent machine data MD 31064: DRIVE_AX_RATIO_DENOM MD 31066: DRIVE_AX_RATIO2_NUMERA MD 31044: ENC_IS_DIRECT2 MD 32000: MAX_AX_VELO MD 34080: REFP_MOVE_DIST MD 34090: REFP_MOVE_DIST_CORR Meaning (Encoder on intermediate gear SW 6.4 and higher) (Encoder on intermediate gear SW 6.4 and higher) (Encoder on intermediate gear SW 6.4 and higher) (Maximum axis velocity) (Reference point distance) (Reference point offset)
Note These machine data cannot be activated in parts programs with the command NEWCONF or via the HMI operator panel using a soft key.
The relevant machine data and relational calculations for the different methods of actual value sensing are described in the following.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-37
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
10.00
2.3.6
S 2048 for raw signal generators on 840D with SIMODRIVE 611 digital S 128 for raw signal generators with 810D
Linear axis with linear scale
MD 30300: IS_ROT_AX = 0
Table Load gearbox Linear axis with linear scale
Ball screw
Linear scale
MD 31000: ENC_IS_LINEAR = 1 MD 31010: ENC_GRID_POINT_DIST (linear enc.) MD 34320: ENC_INVERS (inverted) Fig. 2-7
In order to adapt the actual value resolution to the calculation resolution, the control calculates the quotients from the internal increments/mm and the encoder increments/mm as follows:
Internal incrementsmm ENC_GRID_POINT_DIST[n] * INT_INCR_PER_MM + Internal multiplication Encoder incrementsmm
1/G2/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
ENC_IS_LINEAR_=0 nEncod. G
Table nSpindle
Ball screw
LEADSCREW_PITCH
DRIVE_ENC_RATIO_NUMERA No. of motor revs. = No. of spindle revs. DRIVE_ENC_RATIO_DENOM Fig. 2-8 Linear axis with rotary encoder on motor
In order to adapt the actual value resolution to the calculation resolution, the control calculates the quotients from the internal increments/mm and the encoder increments/mm as follows:
Example of SINUMERIK
Linear axis with rotary encoder (2048 pulses) on motor; internal multiplication (2048), Gearing: Motor/leadscrew 5, Pitch 10 mm, 10000 increments per mm Internal Incrementsmm 1 + ENC_RESOL[n] * Internal multiplication Encoder incrementsmm * * DRIVE_ENC_RATIO_NUMERA[n] DRIVE_ENC_RATIO_DENOM[n] DRIVE_AX_RATIO_DENOM[n] DRIVE_AX_RATIO_NUMERA[n]
* LEADSCREW_PITCH * INT_INCR_PER_MM MD 30300: IS_ROT_AX = 0 MD 31000: ENC_IS_LINEAR[0] = 0 MD 31040: ENC_IS_DIRECT[0] = 0 MD 31020: ENC_RESOL[0]=2048 MD 31030: LEADSCREW_PITCH = 10 MD 31080: DRIVE_ENC_RATIO_NUMERA[0] = 1 MD 31070: DRIVE_ENC_RATIO_DENOM[0] = 1 MD 31060: DRIVE_AX_RATIO_NUMERA[0] = 5 MD 31050: DRIVE_AX_RATIO_DENOM[0] = 1 MD 10200: INT_INCR_PER_MM = 10000 Internal incrementsmm 1 + * 1 2048 * 2048 1 Encoder incrementsmm
* 1 5
* 10 mm * 10000 Incr.mm + 0.004768 Result: 1 encoder increment corresponds to 0.004768 increments of the internal unit. In practise, the available encoder resolution should not be finer than the internal calculation resolution.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-39
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
10.00
IS_ROT_AX=0
Table
Ball screw
LEADSCREW_PITCH n Spindle DRIVE_ENC_RATIO_NUMERA No. of spindle revs = No. of Encoder revs DRIVE_ENC_RATIO_DENOM
Fig. 2-9
In order to adapt the actual value resolution to the calculation resolution, the control calculates the quotients from the internal increments/mm and the encoder increments/mm as follows: Internal incrementsmm 1 + ENC_RESOL[n] * Internal multiplication Encoder incrementsmm * DRIVE_ENC_RATIO_NUMERA[n] DRIVE_ENC_RATIO_DENOM[n]
* LEADSCREW_PITCH * INT_INCR_PER_MM
1/G2/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
ENC_IS_LINEAR=0 ENC_IS_DIRECT=0 n IS_ROT_AX=1 n Encod. Load G M L Rotary table Load gearbox DRIVE_AX_RATIO_NUMERA No. of motor revs = No. of Load revs DRIVE_AX_RATIO_DENOM
DRIVE_ENC_RATIO_NUMERA No. of motor revs. = No. of spindle revs. DRIVE_ENC_RATIO_DENOM Fig. 2-10 Rotary axis with rotary encoder on motor
In order to adapt the actual value resolution to the calculation resolution, the control calculates the quotients from the internal increments/degree and the encoder increments/degree as follows:
Rotary axis with rotary encoder (2048 pulses) on motor; internal multiplication (2048), Gearing: Motor/rotary axis 5, 1000 increments per degree. Internal incrementsdeg 360 deg + ENC_RESOL[n] * Internal multiplication Encoder incrementsdeg * * DRIVE_ENC_RATIO_NUMERA[n] DRIVE_ENC_RATIO_DENOM[n] DRIVE_AX_RATIO_DENOM[n] DRIVE_AX_RATIO_NUMERA[n]
* INT_INCR_PER_DEG
MD 30300: IS_ROT_AX = 1 MD 31000: ENC_IS_LINEAR[0] = 0 MD 31040: ENC_IS_DIRECT[0] = 0 MD 31020: ENC_RESOL[0]=2048 MD 31080: DRIVE_ENC_RATIO_NUMERA[0] = 1 MD 31070: DRIVE_ENC_RATIO_DENOM[0] = 1 MD 31060: DRIVE_AX_RATIO_NUMERA[0] = 5 MD 31050: DRIVE_AX_RATIO_DENOM[0] = 1 MD 10210: INT_INCR_PER_DEG = 1000 Internal incrementsdeg 360 deg + *1*1 2048 * 2048 1 5 Encoder incrementsdeg * 1000 Incr.deg + 0.017166 Result: 1 encoder increment corresponds to 0.017166 increments in the internal unit. So the encoder resolution is coarser than the computation resolution by a factor of 58.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-41
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.3 Setpoint/Actual value system
11.02 10.00
n Load Rotary table ENC_IS_DIRECT=1 n Encod. ENC_RESOL G ENC_IS_LINEAR_=0 DRIVE_ENC_RATIO_NUMERA No. of Load revs = DRIVE_ENC_RATIO_DENOM No. of Encoder revs Measuring gearbox
L IS_ROT_AX=1
In order to adapt the actual value resolution to the calculation resolution, the control calculates the quotients from the internal increments/degree and the encoder increments/degree as follows: Internal incrementsdeg 360 deg + ENC_RESOL[n] * Internal multiplication Encoder incrementsdeg * DRIVE_ENC_RATIO_NUMERA[n] DRIVE_ENC_RATIO_DENOM[n]
* INT_INCR_PER_DEG
DRIVE_AX_RATIO2_NUMERA No. of Load revs = No. of spindle revs ENC_IS_DIRECT=0 DRIVE_AX_RATIO_DENOM +ENC_IS_DIRECT2=1 n Tool Rotating tool M Tool
Measuring Load Intermediate gearbox n gearbox gearbox n Encod. Motor ENC_IS_DIRECT=1 ENC_IS_DIRECT=1 ENC_RESOL +ENC_IS_DIRECT2=0+ENC_IS_DIRECT2=1 DRIVE_AX_RATIO_NUMERA No. of motor revs = DRIVE_AX_RATIO_DENOM No. of spindle revs DRIVE_ENC_RATIO_NUMERA No. of motor revs. = DRIVE_ENC_RATIO_DENOM No. of spindle revs. Fig. 2-12 Intermediate gear with encoder directly on the rotating tool
In order to adapt the actual value resolution to the calculation resolution, the control calculates the quotients from the internal increments/mm and the encoder increments/mm as follows: Internal incrementsdeg 360 deg + ENC_RESOL[n] * Internal multiplication Encoder incrementsdeg * DRIVE_ENC_RATIO_NUMERA[n] DRIVE_ENC_RATIO_DENOM[n]
* INT_INCR_PER_DEG
1/G2/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.4 Closed-loop control
2.4
General
Closed-loop control
The closed-loop control of an axis consists of the current and speed control loop of the drive plus a later-level position control loop in the NC.
nset
Position controller
Fig. 2-13
The speed and current closed-loop controls for SIMODRIVE 611 are explained in: References: /IAD/, Installation and StartUp Guide SINUMERIK 840D/611D /IAC/, Installation and StartUp Guide SINUMERIK 810D /PJU/, Planning Guide Converters The basic structure of an axis/spindle closed-loop control is illustrated below:
MD32400 AX_JERK_ENABLE MD32402 AX_JERK_MODE MD32410 AX_JERK_TIME Fine interpolation Jerk limitation Dynamics matching
MD32200 POSCTRL_GAIN[n]
Feedforward control
Closed-Loop Control
MD33000 FIPO_TYPE
MD32620 FFW_MODE MD32630 FFW_ACTIVATION_MODE MD32610 VELO_FFW_WEIGHT[n] SW 5.1 and higher: Parameter sets MD32650 AX_INERTIA MD32810 EQUIV_SPEEDCTRL_TIME[n] MD32800 EQUIV_CURRCTRL_TIME[n]
Fig. 2-14
For a description of the feedforward control, backlash, friction compensation with *further machine data and leadscrew error compensation, see: References: /FB/, K3, Compensations For a description of jerk limitation see: References: /FB/, B2, Acceleration
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-43
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.4 Closed-loop control
10.00
Fine interpolation
The fine interpolator (FIPO) is used to adjust the setpoint of the (generally lower) interpolator control cycle to the later position control cycle. Fine interpolation further improves the quality of the contour (decreasing the step effect of the speed setpoint). There are three types of FIPOs: 1: Differential FIPO 2: Cubic FIPO 3: Cubic FIPO, optimized for operation with feedforward control The method of fine interpolation can be selected in MD 33000: FIPO_TYPE (fine interpolator type). A differential FIPO not only performs cycle matching but also calculates a mean value (smoothing) from an IPO cycle. The cubic FIPO type 3 supplies the best contour accuracy in additon to the cycle adaption.
A high servo gain factor setting in MD 32200: POSCTRL_GAIN[n] is required to prevent the occurrence of significant contour deviations. However, if the servo gain factor is too high, instability, overshooting and possible impermissibly high loads on the machine will result. The maximum permissible servo gain factor depends on the following:
Equivalent time axis 2 Equiv. time DYN_MATCH_TIME Axis 1 [AXIS 1] Axis 1 with high servo gain and dynamics matching
Fig. 2-15
1/G2/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.4 Closed-loop control
The purpose of dynamic response adaptation is to set an identical following error for axes with different servo gain factors. The optimum contour precision for axes interpolating with each other can thus be achieved without reduced control quality. A high servo gain factor for an axis can be maintained, which guarantees optimum disturbance suppression of the axis. The function is activated in MD 32900: DYN_MATCH_ENABLE (dynamics matching). The axes are matched in MD 32910: DYN_MATCH_TIME[n] (time constant for dynamics matching). With this MD, the equivalent time constant of the position control loop of the axes with a higher servo gain factor is matched to the axis with the lowest servo gain factor. Bits set to 1 in MD 32910: DYN_MATCH_TIME[n] is the difference between the equivalent time constants of the slowest closed-loop control circuit for the relevant axis. Example of dynamics matching of axes 1, 2 and 3 (without speed feedforward control): The equivalent time constant of the position control loop is as follows:
Axis 1 is dynamically the slowest axis The value settings for MD 32910: DYN_MATCH_TIME[n] (time constant for dynamics matching) are therefore as follows:
The equivalent time constant of the position control loop of an axis is calculated according to the following formula:
Approximation formula
No feedforward control active 1 Tequivalent [ MD 32200: POSCTRL_GAIN [1 / s] Speed feedforward control Tequivalent [ MD 32810: EQUIV_SPEEDCTRL_TIME
(1)
(2)
Torque feedforward control Tequivalent [ Note If dynamics matching is executed for one geometry axis, dynamics matching must also be activated for all further geometry axes by setting MD 32900: DYN_MATCH_ENABLE= 1. References: /IAD/, Installation and StartUp Guide, SINUMERIK 840D / 611D /IAC/, SINUMERIK 810D Installation and StartUp Guide MD 32800: EQUIV_CURRCTRL_TIME
(3)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-45
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.4 Closed-loop control
10.00 10.00
2.4.1
The following machine data can be changed by switching over the parameter set.
S Backlash compensation (SW 5 and higher) S Feedforward control factor (SW 5 and higher)
MD 32610: VELO_FFW_WEIGHT[n]
MD 32800: EQUIV_CURRCTRL_TIME [n] Current control loop for torque feedforward control MD 32810: EQUIV_SPEEDCTRL_TIME[n] Speed control circuit for speed feedforward control MD 32910: DYN_MATCH_TIME [n] MD 36200: AX_VELO_LIMIT [n] Dynamic response adaptation
For further information on machine data by switching over the parameter sets, please refer to Section 2.5 Optimizing the control. Parameter set extensions in SW 5.1 and higher are described in Subsection 2.4.2.
S for machine axes not involved in tapping or thread cutting, parameter set 1
(index=0) is always used. The further parameter sets need not be considered.
S for machine axes involved in tapping or thread cutting, the same parameter
set number as for the current gear stage of the spindle is activated. All parameter sets correspond to the gear stages and must therefore be parameterized. The current parameter set is displayed in operating area Diagnostics in the Service axis display. The parameter sets for gear stages 1 to 5 are referred to as interpolation parameters.
1/G2/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.4 Closed-loop control
Interpolation parameter sets for m gear stage change: In the case of spindles, each gear stage is assigned its own parameter set. As a function of the the start of IS Actual gear stage (DB31, ... DBX16.0 to 16.2), the corresponding parameter set is activated.
IS Actual gear stage 000 001 010 011 100 101 110 111 1st gear step 1st gear step 2nd gear step 3rd gear step 4th gear step 5th gear step
For furtherinformation about gear stages for spindles, refer to: References: /FB/, S1, Spindles
2.4.2
Application
Some machines use the same drive for moving various machine parts, what in view of considerably varying speeds results in a gear stage change. With each gear stage change, the corresponding parameter set is also switched over. Now several parameter sets are provided for further practical applications and for setting the feedforward control of the servo loop.
Functionality
To optimize control during start-up, these codable parameter sets support practice-oriented start-up by substantially reducing configuration expenditure with regard to the new functions, such as backlash compensation, feedforward control factor, exact stop limits and zero speed window.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-47
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.4 Closed-loop control
10.00
Until now it has been possible to change the gear ratio and other servo loop parameters (such as achievable control loop gain) by switching over the servo parameter set. The already existing machine data with parameter set coding are extended as follows:
S Backlash compensation S Feedforward control factor S Exact stop limits S Standstill window
MD 32450: BACKLASH[n] Max. no. of encod. MD 32610: VELO_FFW_WEIGHT[n] MD 36000: STOP_LIMIT_COARSE MD 36010: STOP_LIMIT_FINE MD 36030: STANDSTILL_POS_TOL
MD 32452: BACKLASH_FACTOR[n]: MD 32450: BACKLASH[n] MD 36012: STOP_LIMIT_FACTOR[n]: MD 36000: STOP_LIMIT_COARSE MD 36010: STOP_LIMIT_FINE MD 36030: STANDSTILL_POS_TOL
Benefits
The indirect switchover of a single function: (e.g. MD 32452 unequal 1). The parameterset dependent function is only really relevant as it is needed. The indirect switchover of several functions: (e.g. MD 36012 unequal 1). The common weighting factor causes the ratios of all parameter set dependent functions in the different machine data to be identical another to one. To switch over several functions, one single machine data can be sufficient. In this way, configuration errors are avoided and input work reduced.
1/G2/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.4 Closed-loop control
Presetting without parameter set coding If the following machine data: 1. MD 32452: BACKLASH_FACTOR = 1 2. MD 32610: VELO_FFW_WEIGHT = 1 and 3. MD 36012: STOP_LIMIT_FACTOR = 1 remain set to (1), the control system is compatible with previous software versions. Activating the parameter set coding: If the default settings of the following machine data: 1. MD 32452: BACKLASH_FACTOR is changed to a value unequal to (1.0), then the backlash compensation is also changed depending on the parameter set. 2. MD 32610: VELO_FFW_WEIGHT is changed to a value unequal to (1.0), then the feedforward control factor is changed depending on the parameter set. 3. MD 36012: STOP_LIMIT_FACTOR is changed to a value unequal to (1.0), then the exact stop limits and the zero speed window are changed, depending on the parameter set. When loading old archives (data backed up from previous software versions), MD 32610: VELO_FFW_WEIGHT is automatically set to the same value for all indices so that the control systems response is compatible. The machine data MD 32452: BACKLASH_FACTOR and MD 36012: STOP_LIMIT_FACTOR do not exist at all in old archives. In this case, the default setting remains automatically active. The response is compatible also in this case.
Example
Effects of various parameter sets with backlash compensation MD 32450: BACKLASH[AX1] = 0.01 MD 32452: BACKLASH_FACTOR[0,AX1] = 1.0 MD 32452: BACKLASH_FACTOR[1,AX1] = 2.0 MD 32452: BACKLASH_FACTOR[2,AX1] = 3.0 MD 32452: BACKLASH_FACTOR[3,AX1] = 4.0 MD 32452: BACKLASH_FACTOR[4,AX1] = 5.0 MD 32452: BACKLASH_FACTOR[5,AX1] = 6.0 Parameter set 1 Parameter set 2 Parameter set 3 Parameter set 4 Parameter set 5 Parameter set 6
In parameter set 1 (index 0) of the first axis (AX1), a backlash compensation factor with the value 1.0 has the following effect: 1.0 * MD 32450: BACKLASH = 0.01mm (or inches or degrees). In parameter set 2, the backlash compensation is twice as large and in parameter set 3, it is triple as large, etc. The maximum value is 100.
Supplementary conditions
With SW 5.1 and higher, the function extension is available for all control variants.
The new or modified data are activated via the soft key Enable machine data or by a RESET or POWER ON. Mode switchover, block search or REPOS have no influence.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-49
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
10.00 10.00
2.5
2.5.1
Application
Functionality
The injection of the positional deviation is carried out in the NC during the position controller cycle of the higher-level position control loop in the NC. The difference in position between a direct measuring system and an indirect measuring system is formed and injected as an additional current setpoint depending on the weighting of the machine data MD 32950: POSCTRL_DAMPING.
MD 32950
The function is activated via data MD 32950: POSCTRL_DAMPING = 1. It is possible to enter both positive and negative values which will then serve to normalize the injection of the positional deviation. MD 32950: POSCTRL_DAMPING = 0 is entered by default. The injection of the positional deviation is active in this case.
Note The weighting of MD 32950 can be set, e.g. using step responses. If the control approaches the stability limit (vibration inclination increases), then the parameter is too large.
Boundary condition
S The function extension is available for all control variants with SW 5.1 and
higher which use SIMODRIVE 611 digital drives.
S The function can only be used in the case of axes with two encoders
MD 30200: NUM_ENCS = 2 whereby one of the encoders must be parameterized as an indirect measuring system and the other encoder as a direct measuring system. If these conditions are not fulfilled, the function is acknowledged with the reset alarm 26016 when you try to activate MD 32950: POSCTRL_DAMPING = 1. The function remains deactivated internally when this alarm is active.
1/G2/2-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
2.5.2
Position controller position setpoint filter: New balancing filter (SW 5.0 and higher)
Functionality
Until now, it was possible to compensate the negative effects of the balancing filter (a low pass with settable time constant), which has remained unchanged since SW 1 and which has admitted instead of an overshoot also undesired undershoots of some 10 micrometers, as follows:
S Setting a compromise of overshoots and undershoots or S setting the positioning slightly overshooting and reducing the amplitude of
these overshoots by way of position setpoint signal smoothing and jerk limitation, or
S setting the filter time to zero and setting the feedforward control factor to a
value less than 100%, or
Advantages
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-51
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
10.00 10.00
For reasons of a compatible response of archives that contain only changes compared with the default settings, no default values can be set for these new values 3 and 4 in the new software versions.
Activation of feedforward control Control response with POWER ON, RESET, REPOS etc. Supplementary conditions
The feedforward control for all axes can be activated and deactivated by the parts program by the commands FFWON and FFWOF when the machine data MD 32630: FFW_ACTIVATION_MODE remain unchanged.
In the case of POWER ON and RESET, as well as with Enable machine data, the setting data of the feedforward control are read in anew (see the appropriate values of the machine data). Mode change, block search and repositioning have no influence on the feedforward control.
With SW 5.1 and higher, the function extension is available for all control variants.
If the new filter is active, the setting rule for the data in the machine data MD 32810: EQUIV_SPEEDCTRL_TIME a machine data MD 32800: EQUIV_CURRCTRL_TIME will change. This means that if the old balancing filter has been active until now and you want to change to the new one, the following actions must be done: Setting the equivalent time constant with speed feedforward control
In case of recommissioning or if standard values have been loaded (switch position 1 at the start-up switch on POWER ON), MD 32620: FFW_MODE = 1 and MD 32610: VELO_FFW_WEIGHT = 1 are set by default. This is not the recommended setting, but has only been selected from compatibility reasons. In the case of recommissioning, it is recommended to enter MD 32620: FW_MODE = 3. In this case, only the balancing time MD 32810: EQUIV_SPEEDCTRL_TIME must be adapted accordingly for the speed feedforward control.
1/G2/2-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
It is advisable to let the axis move back and forth using an automatic program to observe its approach to the target position, i.e. the actual position value of the active measuring system using the Servo Trace (MMC 102 or MMC 103 or, with SW 6.1 or higher, HMI Advanced or PG required). It is also possible to output the actual position value to the digital-to-analog converters of the drive module and to use an oscilloscope for monitoring. The starting value for setting is the time constant of the speed control loop. This can be read from the reference frequency characteristic of the speed control loop. In the frequently occurring case PI controller with special value smoothing, the equivalent time can be approximately read from the drive machine data 15001503. Another possibility is to record set speed and actual speed value at constant acceleration using an oscilloscope and to measure the time lag of the actual speed value. Now, enter this starting value (e.g. 1.5ms): MD 32810: EQUIV_SPEEDCTRL_TIME = 0.0015. Then traverse the axis to and fro and watch the course of the actual position value at the target position strongly enlarged. The following rule applies to the manual fine adjustment:
S Overshoots noticed:
MD 32810: Increase EQUIV_SPEEDCTRL_TIME
S dynamic response adaptation (MD 32910: DYN_MATCH_TIME) and S jerk (MD 32410: AX_JERK_TIME),
making the axis more slowly again.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-53
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
10.00 10.00
Set all axes of an interpolation compound in the data MD 32200: POSCTRL_GAIN, MD 32620: FFW_MODE, MD 32610: VELO_FFW_WEIGHT, MD 32810: EQUIV_SPEEDCTRL_TIME (or MD 32800: EQUIV_CURRCTRL_TIME), MD 32400: AX_JERK_ENABLE, MD 32402: AX_JERK_MODE, MD 32410: AX_JERK_TIME to the same value. For checking, the servo gain display in the Service Axis screen form is used. If the same values are not possible for a/m data, an adaptation can be made using MD 32910: DYN_MATCH_TIME. It is thus possible to display the same servo gain value, what, however, is seldom. Normally, different servo gain values are a sign that one of the following cases have occurred:
S The gear ratio factors do not match in one or several axes, S the setting data of the feedforward control are not correct, and/or S the setting data of the jerk filter are anywhere not correct.
Automatic switchover when changing the position control cycle
If the position control cycle (MD 10050: SYSCLOCK_CYCLE_TIME) is changed or the acceptance time of the speed setpoints is changed in order to increase the Kv (servo gain factor) (MD 10082: CTRLOUT_LEAD_TIME) or is switched over to Dynamic Stiffness Control (MD 32640: STIFFNESS_CONTROL_ENABLE), the adjustment of MD 32810 EQUIV_SPEEDCTRL_TIME had to be repeated to date, since the optimum value substantially changed. With MD 32620: FFW_MODE = 3 or 4 the control system will now take into account the above mentioned changes automatically so that the MD 32810: EQUIV_SPEEDCTRL_TIME now needs no longer to be readjusted. After major changes, however, you should nevertheless check the positioning behavior (via Servo Trace).
Programming sample of a selection of the speed feedforward control with new balancing and default setting: FFWON and FFWOF active. MD 32620: FFW_MODE[X1] = 3 ; New speed feedforward control mode MD 32630: FFW_ACTIVATION_MODE[X1] = 1 ; FFWON and FFWOF are active in the NC program. Now FFWON enables the speed feedforward control in the program (with all axes of the channel with the same settings as X1); FFWOF will disable them again. MD 20150: GCODE_RESET_VALUES[23] can also be used to set FFWON as the default for each channel. MD 32620: FFW_MODE[X1] = 3 ; New speed feedforward control mode MD 32630: FFW_ACTIVATION_MODE[X1] = 0 ; FFWON and FFWOF are active in the NC program. In this case, the speed feedforward control with X1 is enabled continuously, also in JOG mode. MD 20150: GCODE_RESET_VALUES[ ], FFWON and FFWOF do not act on X1. This can be reasonable if the machine may only run with feedforward control, e.g. for reasons of accuracy, or if you want to test the feedforward control also without a program during start-up.
Note The setting of the feedforward control must be the same for all axes of an interpolation compound.
1/G2/2-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
For the setting of the time constant of the current controller, the same rules and recommendations apply as with the speed feedforward control. To set the time constant with MD 32800: EQUIV_CURRCTRL_TIME, however, the activation of the filter for the feedforward control must be enabled both as previously with MD 32620: FFW_MODE = 4 and, in addition with the AND option in the drive. As with the activation of the existing filter with MD 32620: FFW_MODE = 2, all further machine data must also be set taking into account the appropriate elasticity limits of the machine.
Experience has shown that this expenditure is only worth in the case of very stiff machines and requires appropriate experience. The elasticities of the machine are often excited due to the injection of the torque so strong that the existing vibrations neutralize the gain in contour accuracy. In this case it is worth to try out the use of Dynamic Stiffness Control (DSC), MD 32640: STIFFNESS_CONTROL_ENABLE as an alternative.
Programming sample of a selection of the speed feedforward control with new balancing and default setting: FFWON and FFWOF active. MD 32620: FFW_MODE[X1] = 4 ; New torque feedforward control mode. MD 32630: FFW_ACTIVATION_MODE[X1] = 1 ; FFWON and FFWOF active. Now FFWON enables the torque feedforward control in the program (with all axes of the channel with the same settings as X1); FFWOF will disable them again. MD 20150: GCODE_RESET_VALUES[23] can be used to set FFWON also for each program by default. MD 32620: FFW_MODE[X1] = 4 ; New torque feedforward control mode. MD 32630: FFW_ACTIVATION_MODE[X1] = 0 ; FFWON and FFWOF active. In this case, the torque feedforward control with X1 is enabled continuously, also in JOG mode. MD 20150: GCODE_RESET_VALUES[ ], FFWON and FFWOF do not act on X1. This can be reasonable if the machine may only run with feedforward control, e.g. for reasons of accuracy, or if you want to test the feedforward control also without a program during start-up. For further information on the method of operation of the feedforward control with regard to the position setpoints, speed and torque, please refer to: References: /FB2/, K3, Following Error Compensation (Feedforward Control) and Reference Manual of the Machine Data.
Note The setting of the feedforward control must be the same for all axes of an interpolation compound.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-55
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
10.00 10.00
2.5.3
Position controller position setpoint filter: New jerk filter (SW 5.1 and higher)
Application
In some applications, such as when milling sculptured surfaces, it can be advantageous to smooth the position setpoint curves to obtain better surfaces thanks due to less excitations of machine vibrations.
Functionality
The filtering effect of the position setpoints must be as strong as possible, but without having an inadmissible negative effects on the contour accuracy. Furthermore, the filter must have a smoothing response as balanced as possible, i.e. when you traverse the same contour forward and reverse, the characteristic rounded by the filter should be as similar as possible in both directions. The effect of the filter can be watched using the display of the effective servo gain factor in the Axes service screen. The filtering effect slightly rounds the position setpoints, thus reducing the path accuracy so that with increasing filter time a smaller effective servo gain factor is displayed.
Benefits
The filter which has already been existing since SW 1 and which is set with MD 32400: AX_JERK_ENABLE = 1 and MD 32410: AX_JERK_TIME = filer time fulfills the conditions of a strong filtering effect with a smoothing response as balanced as possible for small time constants up to approx. 10 ms. A considerably better result is achieved using this new filter type for axial jerk limitation with floating averaging. In this case, filter time constants of approx. 20 ... 40 ms can be used, depending on the particular machine. Thanks to the floating averaging, the new filter achieves lower contour errors with the same smoothing effect, compared with the previous 2nd degree filter type. The contour of the smoothing behavior is to a large degree balanced.
Machine data MD 32402: AX_JERK_ENABLE can be used to enable the new position setpoint filter acc. to the following settings:
S MD 32402: AX_JERK_MODE = 2 Filter mode, select new jerk filter S MD 32410: AX_JERK_TIME = 0.02 Set filter time in seconds (20 ms) S MD 32400: AX_JERK_ENABLE = 1 Enable filter calculation
If no filter mode MD 32402: AX_JERK_MODE = 2 has been activated beforehand, POWER ON must be initiated once. Otherwise, it is sufficient to Enable machine data or to provide RESET on the machine control panel. For reasons of compatibility, MD 32402: AX_JERK_MODE = 1 is set by default.
Note In the case of new machines, the new filter is generally recommended with MD 32402: AX_JERK_MODE = 2. Only if very high filter times are needed and the contour accuracy play a minor part, what sometimes occurs in the case of positioning axes, the old filter can be more advantageous.
1/G2/2-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
Fine adjustment
The fine adjustment of the position setpoint filter is carried out as follows:
S Change filter time in MD 32410: AX_JERK_TIME. S Activate the changed time via Enable machine data or RESET on the
machine control panel.
Disabling
S Disabling the filter calculation: MD 32410: AX_JERK_ENABLE = 0 S Activate the interlock via Enable machine data or RESET on the machine
control panel.
Supplementary conditions
The position setpoint filter is available in all control system variants as follows:
S In SW 5.1 and higher, the effective filter times are limited in the range
between a minimum of 1 position control cycle up to a maximum of 16 position control cycles (15 position control cycles are available).
S In SW 5.2 and higher, the effective filter times are limited in the range
between a minimum of 1 position control cycle up to a maximum of 32 position control cycles (31 position control cycles are available). Further supplementary conditions regarding the filter effect:
S The display of the calculated servo gain factor in the Axes service screen
form displays smaller values than it would be appropriate based on the filter effect.
S The path accuracy is better than it could be expected from the displayed
servo gain factor. Therefore, when changing over MD 32400: AX_JERK_MODE = 1 to MD 32400: AX_JERK_MODE = 2 it is possible that the displayed servo gain factor is reduced with the filtering time remaining unchanged although the path accuracy gets better. Axes interpolating with each other must be set identically. If you have found an optimum for such axes, the axis with the largest filter time amongst these settings must be entered for all axes of the interpolation compound. For further information on jerk limitation on the interpolator level, please refer to: References: /FB/, B2, Axis-related jerk limitation and Axis-Specific Machine Data.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-57
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
10.00 10.00
2.5.4
Function
For standard applications up to and including SW 6.3, the core of the position controller is a P controller with the manipulation options connected in series upstream described above. The option of connecting in an integral component for special applications (e.g. electronic gear) has been added in SW 6.4. The resulting PI controller then corrects the error between setpoint and actual positions down to zero in a finite, settable time period when the appropriate machine data are set accordingly.
Caution When the PI controller is active, overshoots in the actual position occur. If this instance, you must decide whether this effect is admissible or acceptable for the application in question. Utilization of this function will require specialist control knowledge and measurements with a Servotrace. If the relevant machine data are set incorrectly, the consequent instability may cause damage to the machine.
Background
Procedure
Optimize the position feedback loop as a P controller first using the tools described in the previous subsections. Increase of the tolerances of the following machine data while measurements are being taken to determine the quality of the feedback loop with PI position controller: MD 36020: POSITIONING_TIME MD 36030: STANDSTILL_POS_TOL MD 36040: STANDSTILL_DELAY_TIME MD 36400: CONTOUR_TOL Activate the position feedback loop as a PI controller by setting the following machine data: MD 32220: POSCTRL_INTEGR_ENABLE MD 32210: POSCTRL_INTEGR_TIME Effect of integrator time: ; Set value 1 ; Integrator time [s]
S Tn 0 S Tn
The control error is corrected quickly, but the control loop can still become unstable. The control error is corrected more slowly.
1/G2/2-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
Search for the right compromise for the application between these two extreme cases T n. T n must not be selected too close to the instability limit as the machine may sustain damage if the loop becomes unstable. Use the servo trace (see /IAD/, Installation & StartUp Guide, Measurement of Position Feedback Loop and Trace Function) to record the approach to a target position using an automatic program for reciprocating motion. Set the servo trace to display the following: Following error Actual velocity Actual position Set position
Set the tolerance values in MD 36020, 36030, 36040 and 36400 back to the required settings once you have found the optimum setting for Tn .
Example
Setting result after several iterative processes for KR and Tn . Each of the following quantities following error, actual velocity, actual position and position setpoint have been recorded by servo trace. On traversal in JOG mode, the characteristic of the individual quantities shown in the following Fig. was then drawn. Machine data settings: $MA_POSCTRL_INTEGR_ENABLE = 1 $MA_POSCTRL_INTEGR_TIME = 0.003 $MA_POSCTRL_GAIN[1] = 5.0 Parameter set selection 0
Graphic1 <Tr.1: Axis X1, Tr.2: Axis X1> Tr.1: Following error Marker X: Tr.2: Actual velocity
Graphic2 <Tr.3: Axis X1, Tr.4: Axis X1> Tr.3: Actual position measuring syst. 1 Marker X: Tr.4: Position setpoint
Fig. 2-16
Following error (1), act. veloc. (2), actual pos. (3), position setp. (4)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-59
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
10.00 10.00
2.5.5
System variable for the status of pulse enable (SW 5.1 and higher)
Application
For all applications that must quickly react to pulse enabling, the status of the pulse enable is imaged to a new system variable in order to accelerate the brake control. This system variable is preferably evaluated in synchronized actions. Using the synchronized action, either a direct output to an NCK output can be carried out or a faster transfer to the PLC.
Functionality
Since 611D digital drives have no integrated brake control, the brakes are normally controlled from the PLC. The brake can be closed again by deleting the pulse enable in the PLC. If the pulse enable is deleted due to external events (611D interface, terminal 663 to the PLC) or due to drive or axis errors, the PLC can close the brake only with a delay, since the transport of the pulse enable signal via servo and interpolator requires 2 ... 3 interpolator cycles. In the worst case, the PLC needs another two PLC cycles. With hanging axes and linear motors, this is often too slow.
Since the function must be available for all kinds of drives in the same form (also for non-electrical drives), the variable is given the name Drive power enable.
Description
Status of the power enable (pulse enable) of a machine axis. Defined range of values: FALSE: No power enable TRUE: Power enable exists
Activation
The variable is predefined and can be used at any time acc. to the data type BOOL with FALSE or TRUE. Until the communication with the drive is not yet established, the value 0 (FALSE) is supplied. The synchronized actions in which the variable is evaluated should preferably be carried out already when the control powers up, e.g. by starting an ASUB from the PLC. To make sure that the synchronized actions remain continuously active and are not effected by the mode change, it is recommended to program them as a static synchronized action (using IDS as the vocabulary word).
Example
Output of the pulse enable of machine axis X1 to the first digital NCK output in all modes. IDS = 1 DO $A_OUT[1] = $VA_DPE[X1]
1/G2/2-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
Supplementary conditions
With SW 5.1 and higher, the function extension is available for digital drives in all control variants providing synchronized actions.
After POWERON, the value 0 is supplied until the communication with the drive is not yet established. Then, the system variable $VA_DPE always specifies the pulse enable value acquired at the beginning of the interpolation cycle. The mode-independent evaluation or retransmission should be carried out using static synchronized actions (vocabulary word IDS).
2.5.6
Application
In the case of design-conditioned non-linearities and elasticities as it often occurs in the conveying and highbay racking technology, it is often necessary to sacrifice of the position control due to the unstable position control loop. The axes are therefore traversed closed-loop controlled and not open-loop controlled. To this aim, the WF723 module offers the special function of the deceleration axes.
Functionality
This deceleration axes function blocks any path movements, but allows positioning with approach to the target position by reducing the velocity step by step. The response corresponds to that of a multipoint controller. For reasons relating to position feedback loop stability, the position controller algorithm is extended instead of the special positioning function deceleration axes. It is thus also possible to operate drives that might cause problems using the position control.
Benefits
Compared with the existing method deceleration axes, the extension of the position controller algorithm provides the following advantages:
S The structure of the interpolation and control is extended only slightly. This
axis has thus automatically all properties of a normal axis.
S The function can be configured considerably easier. S In particular, with feedforward control enabled, the positioning processes are
faster.
A low-pass filter connected at the position controller output now also allows the position controller gain to be reduced quickly with increasing frequency for analog drives (axes). This suppresses the effect of strong natural frequencies in the form of settable speed setpoint filters. This functionality is provided as standard for digital drives.
MD 32930 MD 32940
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/2-61
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 2.5 Optimization of the control (SW 5.0 and higher)
10.00 10.00
Non-linearities close to zero speed, such as those which can occur when simple frequency converters are used, are inhibited by a dead zone in the controller. The threshold for the control deviation below which a zero speed setpoint is output can be set in machine data MD 32960: POSCTRL_ZERO_ZONE. The dead zone is set in MD 32960: POSCTRL_ZERO_ZONE for each individual encoder.
Stability risk
The extended position controller algorithm will reduce the risk that a stable control admits only a rather poor setting of the gain or that the position control loop does not remain stable despite the effective extensions to a minimum.
Supplementary conditions
With SW 5.3 and higher, the function extension is available for all control variants. The activation of the low-pass filter becomes only into effect with inactive dynamic stiffness control with MD 32640: STIFFNESS_CONTROL_EN ABLE = 0. With the active low-pass filter, the simulated following error in acceleration phases is greater than usually. It can therefore be necessary to increase MD 36400: CONTOUR_TOL compared with the default value to avoid a response of the axial contour monitoring (alarm 25050). If the settable dead zone of the position controller remains in the default setting
S MD 32960: POSCTRL_ZERO_ZONE = 0,
then this corresponds to an input value whose size corresponds to the current encoder fine resolution. The default setting is therefore compatible with previous software versions. If the dead zone
1/G2/2-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
Supplementary Conditions
None
3 4
10200 INT_INCR_PER_MM MD number Calculation resolution for linear positions Default setting: 1000 Minimum input limit: 0.000001 Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: With MD: INT_INCR_PER_MM the number of internal increments per millimeter is set. The precision of the linear position input is limited to the calculation resolution by rounding the product of the programmed value and the calculation resolution to an integer value. In order to keep the rounding easily reproducible, it is advisable to use powers of 10 for the calculation resolution. Application example(s) The calculation resolution can be increased to u1000 incr./mm for linear axes operating to high accuracy requirements.
10210 INT_INCR_PER_DEG MD number Calculation resolution for angular positions Default setting: 1000 Minimum input limit: 0.000001 Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: The number of internal increments per degree is defined in INT_INCR_PER_DEG. The precision of the angular position input is limited to the calculation resolution by rounding the product of the programmed value and the calculation resolution to an integer value. To make the rounding clear, powers of 10 should be used for the calculation resolution. Application example(s) The calculation resolution can be changed to u1000 incr./degrees for a high-resolution rotary axis.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-63
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
10.00
10220 SCALING_USER_DEF_MASK MD number Activation of scaling factors Default setting: 200 Minimum input limit: 0 Maximum input limit: 17FF Changes effective after POWER ON Protection level: 2 Unit: Hex Data type: DWORD Applies from SW 1.1 Significance: Machine and setting data with a physical quantity are interpreted in the predefined units listed below depending on the basic system (metric/inch) If other input/output units are used for the individual physical quantities, the associated normalization factors are activated with this machine data ( entered in MD 10230: SCALING_FACTORS_USER_DEF[n]). Bit set: Data of the associated physical quantity (see list) are normalized to the unit defined by MD: SCALING_FACTORS_USER_DEF[n] control. Bit not set: Data of the associated physical quantity are scaled to the predefined unit listed below: Assigned physical quantity Predefined units for: MD 10240: SCALING_SYSTEM_IS_METRIC Bit no. 1 0 (Given as hexadecimal value) 0 Linear position 1 mm 1 inch 1 Angular position 1 degree 1 degree 2 Linear velocity 1 mm/min 1 inch/min 3 Angular velocity 1 rpm 1 rpm 4 Linear acceleration 1 m/s2 inch/s2 5 Angular acceleration 1 rev./s2 1 rev./s2 6 Linear jerk 1 m/s3 inch/s3 7 Angular jerk 1 rev./s3 1 rev./s3 8 Time 1s 1s 9 Position-controlled servo gain 1/s 1/s 10 Revolutional feedrate 1 mm/rev. 1 inch/rev. 11 Compensation value linear axis 1 mm 1 inch 12 Compensation value angular axis 1 degree 1 degree Example: SCALING_USER_DEF_MASK =H3; (bit no. 0 and 1 as hex value) For linear and angular positions, the scaling factor specified in the relevant MD: SCALING_FACTORS_USER_DEF[n] is activated. If this machine data is changed, a start-up is required because otherwise the relevant machine data in those physical units would be wrongly scaled. Proceed as follows:
Application example(s)
Related to ....
MD change by manual input First perform start-up and then enter the physical units in the related machine data. S MD change via machine data file First perform start-up and then reload the machine data file so that the new physical units are considered. If the machine data are altered, alarm 4070 Scaling machine data altered is output. Input/output of linear velocities must be made in cm/min: SCALING_USER_DEF_MASK = H4 (bit no. 2 as hex value) SCALING_FACTORS_USER_DEF[2] = 0.1666666667 (10/60) MD 10230: SCALING_FACTORS_USER_DEF[n] (scaling factors of the physical quantities)
1/G2/4-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
10220 MD number
10230 SCALING_FACTORS_USER_DEF[n] MD number Scaling factors of physical quantities Default setting: 1, 1, 1,1, 1, 1, 1, 1, 1, Minimum input limit: 0 Maximum input limit: plus 1000/60, 1,1, 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: The normalization factor of a physical quantity that has a unit other than the default unit setting (set bit in MD 10220: SCALING_FACTORS_USER_DEF_MASK) is entered in this MD. The factor must refer to the unit used internally for the physical quantity in question. Index[n] 0 1 2 3 4 5 6 7 8 9 10 11 12 Assigned physical quantity Linear position Angular position Linear velocity Angular velocity Linear acceleration Angular acceleration Linear jerk Angular jerk Time Position-controlled servo gain Revolutional feedrate Compensation value linear position Compensation value angular position Internal unit 1 mm 1 degree 1 mm/s 1 degree/s 1 mm/s2 1 degree/s2 1 mm/s3 1 degree/s3 1s 1/s 1 mm/degree 1 mm 1 degree
The scaling factor is assigned to the physical quantity using the index [0 ...12]. If this machine data is changed, a start-up is required because otherwise the relevant machine data in those physical units would be wrongly scaled. Proceed as follows: S MD change by manual input Perform a start-up and then enter the associated machine data with the physical units. S MD change via machine data file First perform start-up and then reload the machine data file so that the new physical units are activated. If the machine data are altered, alarm 4070 Scaling machine data altered is output. Input/output of angular velocities is to be in new degrees/min: SCALING_FACTORS_USER_DEF_MASK = H8; (bit no. 3 as hex value) SCALING_FACTORS_USER_DEF[3] = 0.01851852; (400/360/60) [3]: Index for angular velocity. MD 10220: SCALING_USER_DEF_MASK (activation of scaling factors)
Application example(s)
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-65
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
10.00
10240 SCALING_SYSTEM_IS_METRIC MD number Basic system metric Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: The MD specifies the basic system used by the control for scaling length-dependent physical variables for data input/output. All relevant data are stored internally in the basic units 1 mm, 1 degree and 1 sec. When accessing a parts program via the operator panel or from an external device scaling is in the following units: SCALING_SYSTEM_IS_METRIC = 1: scaled in: mm, mm/min, m/s2, m/s3 mm/rev. SCALING_SYSTEM_IS_METRIC = 0: scaled in: inch, inch/min, inch/s2 inch/s3 inch/rev. The basic system selected also determines the way a programmed F value for linear axes is interpreted: metric inch G94 mm/min inch/min G95 mm/rev. inch/rev. If this machine data is changed, a start-up is required because otherwise the relevant machine data in those physical units would be wrongly scaled. Proceed as follows: S MD change by manual input Perform a start-up and then enter the associated machine data with the physical units. S MD change via machine data file First perform start-up and then reload the machine data file so that the new physical units are activated. If the machine data are altered, alarm 4070 Scaling machine data altered is output. Installation in the metric system and then conversion to inch system. The factor for converting 1 mm to 1 inch can be altered by setting MD 10250: SCALING_VALUE_INCH.
1/G2/4-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
10250 SCALING_VALUE_INCH MD number Conversion factor for switching over to INCH system Default setting: 25.4 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 1 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: The conversion factor for metric to inch system for data input/output is entered in this MD. This factor is active only for the selection of the non-metric basic system (MD 10240: SCALING_SYSTEM_IS_METRIC = 0) for the following conversions: Programmed F values for linear axes Input/output of lengths and linear data (e.g. machine data, zero offsets) Programmed geometry axis positions are converted with this factor if the dimension system programmed with G70/G71 differs from the selected basic system (SCALING_SYSTEM_IS_METRIC). Programmed synchronous axis positions are converted via the appropriate axial factors (MD 31200: SCALING_FACTOR_G70_G71) if the dimension system programmed with G70/G71 differs from the selected basic system (SCALING_SYSTEM_IS_METRIC). Settings that deviated from the default setting 25.4 should only be made in exceptional cases because correct display of the unit on the operator interface is only possible with this value. If this machine data is changed, a start-up is required because otherwise the relevant machine data in those physical units would be wrongly scaled. Proceed as follows: MD change by manual input First perform start-up and then enter the physical units in the related machine data. MD change via machine data file First perform start-up and then reload the machine data file so that the new physical units are activated. If the machine data are altered, alarm 4070 Scaling machine data altered is output. Application example(s) This conversion factor is used if the dimension system is changed from metric to inch or to a customer-specific dimension system after installation. All machine data etc. that are entered are then converted with this factor. The converted value is then output at the next readout or on the operator interface. MD 10240: SCALING_SYSTEM_IS_METRIC
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-67
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
10.00 10.00
10260 CONVERT_SCALING_SYSTEM MD number Basic system switchover active Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 5 Significance: This machine data defines the handling of MD 10240: SCALING_SYSTEM_IS_METRIC. MD 10260=0: Inch/metric response compatible with SW 1 to SW 4.4 MD 10260=1: Inch/metric response for SW 5 and higher Inch/metric functionality for SW 5 and higher:
S S S S S
Application example(s) Related to ....
Availability of MMC soft key Automatic conversion of NC data on an inch/metric switchover INCH/METRIC instruction in the data backup The scope of MD 10240: SCALING_SYSTEM_IS_METRIC is RESET
Functionality of MD 32711: CEC_SCALING_SYSTEM_METRIC (sag compensation) This machine data is used to configure the availability of the new inch/metric functionality (SW 5 and higher). MD 10240: SCALING_SYSTEM_IS_METRIC
10290 CC_TDA_PARAM_UNIT MD number Physical units of the tool data for compile cycles Default setting: 0 Minimum input limit: 0 Maximum input limit: 16 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 5 Significance: Physical units for the user-defined tool-specific data: 0, // No unit 1, // Linear position [ mm ; inch ] 2, // Angular position [ degrees ; degrees ] 3, // Linear velocity [ mm/min ; inch/min ] 4, // Angular velocity [ rev/min ; rev/min ] 5, // Linear acceleration [ m/s2 ; inch/s2 ] 6, // Angular acceleration [ rev/s2 ; rev/s2 ] 7, // Linear jerk [ m/s3 ; inch/s3 ] 8, // Angular jerk [ rev/s3 ; rev/s3 ] 9, // Revolutional feedrate [ mm/rev ; inch/rev ] Related to .... MD 18094: MM_NUM_CC_TDA_PARAM
10292 CC_TOA_PARAM_UNIT MD number Physical units of the cutting edge data for compile cycles Default setting: 0 Minimum input limit: 0 Maximum input limit: 16 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 5 Significance: Physical units for the user-defined tool edge data: 0, // No unit 1, // Linear position [ mm ; inch ] 2, // Angular position [ degrees ; degrees ] 3, // Linear velocity [ mm/min ; inch/min ] 4, // Angular velocity [ rev/min ; rev/min ] 5, // Linear acceleration [ m/s2 ; inch/s2 ] 6, // Angular acceleration [ rev/s2 ; rev/s2 ] 7, // Linear jerk [ m/s3 ; inch/s3 ] 8, // Angular jerk [ rev/s3 ; rev/s3 ] 9, // Revolutional feedrate [ mm/rev ; inch/rev ] Related to .... MD 18096: MM_NUM_CC_TOA_PARAM
1/G2/4-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
13000 DRIVE_IS_ACTIVE[n] MD number Drive activation (SIMODRIVE 611D) Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: Only applies to drives with SIMODRIVE 611D! A drive is activated/deactivated with this MD. 1: Drive is active 0: Drive is not active. The drive is not supplied with setpoints and is not monitored. No input (actual value) or output (setpoint) on this module can be configured. This module is only taken into account during basic initialization of the drive bus. MD 13020: DRIVE_INVERTER_CODE, MD 13010: DRIVE_LOGIC_NR, MD 13030: DRIVE_MODULE_TYPE and MD 13040: DRIVE_TYPE must be parameterized. The slot number of a real drive [slot no.] must be used as the index [n]. The index is numbered starting with 0 at the beginning of the drive bus ( 1st real drive available) and continues in ascending order to the end. 810D is assigned the slot nos. 05. Deactivating an existing drive for test purposes.
Application example(s)
Maximum input limit: 15 (810D) Maximum input limit: 31 (840D) Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: Only applies to drives with SIMODRIVE 611D! A logical drive number must be assigned to every real drive. This parameterization defines how the actual order of the modules connected to one drive bus relate to the logical drive numbers. A non-existent drive module is assigned the logical drive number 0. In this way it is possible to create positions for modules that do not yet exist but are to be inserted at this point in the drive bus at a later time. The logical drive number is used in assigning actual values and setpoints (MD 30220: ENC_MODULE_NR[n], MD 30110: CTRLOUT_MODULE_NR[n]). The slot number of a real drive [slot no.] must be used as the index [n]. The index is numbered starting with 0 at the beginning of the drive bus ( 1st real drive available) and continues in ascending order to the end. 810D is assigned the slot nos. 05. E h drive Each d i must t only l be b assigned i d one logical l i l drive d i number. b The following alarms may be output if an error occurs: Alarm 300001 Drive number not possible Alarm 300002 Drive number assigned several times Alarm 300005 At least 1 module too many at drive bus Alarm 300006 At least 1 module too few at drive bus
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-69
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
10.00
CTRLOUT_MODULE_NR[n] ENC_MODULE_NR[n]
Related machine data: DRIVE_LOGIC_NR[0] = 1 DRIVE_LOGIC_NR[1] = 4 DRIVE_LOGIC_NR[2] = 2 DRIVE_LOGIC_NR[3] = 0 DRIVE_LOGIC_NR[4] = 0 DRIVE_LOGIC_NR[5] = 0 . . . ENC_MODULE_NR[0,X] = 1 ENC_MODULE_NR[0,Y] = 2 ENC_MODULE_NR[0,Z] = 4
(1st encoder)
CTRLOUT_MODULE_NR[0, X] = 1 (Speed setpoint) CTRLOUT_MODULE_NR[0, Y] = 2 CTRLOUT_MODULE_NR[0, Z] = 4 Note: MD 30220: ENC_MODULE_NR[n] and MD 30110: CTRLOUT_MODULE_NR[n] of one machine axis have to have the same logical drive number.
1/G2/4-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
13020 DRIVE_INVERTER_CODE[n] MD number Power section code of drive module Default setting: 0 Minimum input limit: Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: Hex Data type: DWORD Applies from SW 1.1 Significance: Only applies to drives with SIMODRIVE 611 digital or SINUMERIK 810D! The power section code of the MSD or FDD module being used is entered (as hex value) in the MD. Power section code for FDD modules: Code number (hex) Power section order no. Current 00 no power section specified 11 6SN11301Dx1x0HA0 3/6 A 12 6SN11301Dx1x0AA0 5/10 A 13 6FC54471Dx1x0AA0 6/12 A (810D) 14 6SN11301Dx1x0BA0 9/18 A 16 6SN11301Dx1x0CA0 18/36 A 17 6SN11301Dx1x0DA0 28/56 A 19 6SN11301Dx1x0EA0 56/112 A 1A 6SN11301Dx1x0FA0 70/140 A 1E 6FC54471Dx1x0AA0 18/36 A (810D) Power section code for MSD modules: Code number (hex) Power section order no. Current 06 6SN11351DA1x0CA0 24/32/36 A 07 6SN11351DA1x0DA0 30/40/56 A 08 6SN11351DA1x0GA0 45/60/80 A 09 6SN11351DA1x0EA0 60/80/106 A 0A 6SN11351DA1x0FA0 85/110/140 A 0E 6FC54471DA1x0AA0 24/32 A (810D) The slot number [slot no.] of a real drive must be used as the index [n]. The index is numbered starting with 0 at the beginning of the drive bus ( 1st real drive available) and continues in ascending order to the end.
13030 DRIVE_MODULE_TYPE[n] MD number Module identifier Default setting: 1 Minimum input limit: 0 Maximum input limit: 10 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: Only applies to drives with SIMODRIVE 611 digital! An identifier for the module type used is entered in this MD. 0: No module or module has been removed (SW 6.3 and higher) 1: 1 axis module 2: 2 axis module 6: SINUMERIK 810D 9: Terminal block for digital/analog inputs/outputs 10: Bit bus interface The slot number [slot no.] of a real drive must be used as the index [n]. The index is numbered starting with 0 at the beginning of the drive bus ( 1st real drive available) and continues in ascending order to the end. If the wrong module type is assigned to an axis module, alarm 300003 Wrong module type (1, 2 axis) is output.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-71
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
10.00 10.00
13040 DRIVE_TYPE[n] MD number Identifier of drive type Default setting: 1 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Only applies to drives with SIMODRIVE 611 digital! A drive type identifier must be entered in this MD. Drive type: 0 = No drive (possible I/O module) 1 = FDD drive 2 = MSD drive 3 = Linear drive 4 = Analog drive (spec. hydraulic) 5 = Hydraulic drive The slot number [slot no.] of a real drive must be used as the index [n]. The index is numbered starting with 0 at the beginning of the drive bus ( 1st real drive available) and continues in ascending order to the end. If the wrong drive type is programmed for a drive, alarm 300004, Incorrect drive type (FDD, MSD, Linear drive, Hydraulic drive) is generated. MD 13080: DRIVE_TYPE_DP[n] (drive type PROFIBUS DP)
Related to ....
13050 DRIVE_LOGIC_ADDRESS[n] MD number Logic address index Default setting: Minimum input limit: 258 Maximum input limit: 1023 272, 292, 312, 332, ... Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 5.2 Significance: Only applicable to PROFIBUS DP! This MD represents the joining element to describe the PROFIBUS configuration PROFIBUS SDB. PROFIBUS SDB defines the logic I/O address of the drives connected to PROFIBUS. One address is assigned to a drive or a slave. The address index is used for actual and setvalue assignment (MD 30220: ENC_MODULE_NR[n] and MD 30110: CTRLOUT_MODULE_NR[n]). Note: MD 30220: ENC_MODULE_NR[0] and MD 30110: CTRLOUT_MODULE_NR[0] on one machine axis are to be assigned to the same drive (I/O address). Index [n] of the machine data is coded as follows: [drive index]: n = 0 for drive 1, n = 1 for drive 2 etc... Fig.
ENC_TYPE00
CTRLOUT_TYP=1
ENC_MODULE_NR
CTRLOUT_MODULE_NR
DRIVE_LOGIC_ADDRESS[n]
= 1 = 2 = 3
I/O address of the set/actual value of the appropriate drive
=1
= 2 = 3
=m
Each drive or slave may only be assigned to one logical address index.
=m
1/G2/4-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.01 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
DRIVE_LOGIC_ADDRESS[n] Logic address index The value of this MD 13050: DRIVE_LOGIC_ADDRESS[n] is the address index, i.e. the logical I/O address of the drive which is assigned using HW Config (SIMATIC Manager S7). Example: MD 13050: DRIVE_LOGIC_ADDRESS[1] = 272 Basic address 272 is assigned to drive 1.
13060 DRIVE_TELEGRAM_TYPE[n] MD number Drive message frame type for drives connected to PROFIBUS DP Default setting: 102 Minimum input limit: 0 Maximum input limit: 2311 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 5.2, types 5 and 6 in SW 6.3 and higher Significance: Only applicable to PROFIBUS DP! The message frame type must be specified for each drive connected to PROFIBUS DP. Standard message frame type for PROFIBUS axes: 0 = No standard type, user-defined simulation 1 = standard type 1 2 = standard type 2 3 = standard type 3 4 = standard type 4 5 = standard type 5 6 = standard type 6 101 = 611 universal type 1 102 = 611 universal type 2 103 = 611 universal type 3 104 = 611 universal type 4 105 = 611 universal type 5 106 = 611 universal type 6 The index[n] of the machine data has the following code: [drive index]: n = 0 for drive 1, n = 1 for drive 2 etc... Application example(s) Message frame type 102 for 611 universal with an encoder on the drive
13070 DRIVE_FUNCTION_MASK[n] MD number DP functions used Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 5.3, bits 4 to 8 in SW 6.3 and higher Significance: Bit-coded mask for selecting expected NC scope of functionality for PROFIBUS DP axes. Significance of set bits for SIMORIVE 611 universal drive: Bit 0 = 1: Bit 1 = 1: Bit 2 = 1: Bit 3 = 1: Bit 4 = 1: Bit 5 = 1: Bit 6 = 1: Bit 7 = 1: Bit 8 = 1: Disable drive alarm image specific to 611 universal. Disable drive type detection specific to 611 universal. Disable parameter access encoder driver specific to 611 universal. Disable parameter access output driver specific to 166 universal. Activate external drive: DSC bits SW 6.3 and higher (CTW1.12/STA1.12) Disable drive parking specific to 611 universal (CTW2.7 / STA2.7) Disable travel to fixed stop specific to 611 universal (CTW2.8 / STA2.8) Disable motor switchover specific to 611 universal int. (STA2.9 to 2.11) Disable ramp block specific to 611 universal (CTW1.13)
By configuring the new bits 4 to 8 provided in SW 6.3 and higher, you can adapt certain non-standardized PROFIBUS control and/or status bits for SIMODRIVE 611 universal included in the Profidrive profile. When set to their defaults, these bits 4 to 8 may have a different significance for external drives.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-73
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.1 General machine data
12.01 10.00
13080 DRIVE_TYPE_DP[n] MD number Drive type PROFIBUS DP Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3 Significance: Relevant for drives on PROFIBUS DP: The message frame type must be specified for each drive connected to PROFIBUS DP: Drive type: 0 = No drive or unknown drive type (default), treated internally like: 1 = FDD (SRM: Synchronous rotating drive) 2 = MSD (ARM: Asynchronous rotating drive) 3 = Linear drive Note: The drive type is generally entered automatically for Siemens drives as soon as these are started. In contrast, the value must be entered manually for non-Siemens drives (at least for linear drives) if they cannot be identified automatically. MD 13040: DRIVE_TYPE[n] (drive type identification)
Related to ....
1/G2/4-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
4.2
30100 CTRLOUT_SEGMENT_NR[n] MD number Setpoint assignment: Drive type Default setting: Minimum input limit: 0 Maximum input limit: 6 0 for FMNC 1 for 840D/810D Changes effective after POWER ON Protection level: 0 Unit: Data type: Byte Applies from SW 1.1, expanded to 6 with SW 6.4 and higher Significance: The number of the bus segment via which the output is addressed is entered in this MD. The bus segments have a fixed assignment in the control systems. 0: Local bus (analogous, e.g. to SINUMERIK FMNC up to SW 5.3) 1: 611D bus (1st DCM e.g. drive bus for SINUMERIK 840/810D fixed up to NCU 572.3) 2: Local P bus (e.g. for FMNC with FM 354) 3: 611D bus (2nd DCM) 4: Reserved (virtual buses) 5: PROFIBUS DP (e.g. SINUMERIK 840Di) 6: PROFIBUS DP link module (e.g. SINUMERIK 840D, NCU 573.2 and higher) Index [n] of the machine data is coded as follows: [setpoint branch]: 0
30110 CTRLOUT_MODULE_NR[n] MD number Setpoint assignment: Drive number/module number Default setting: 1,2,3,4,5,6,7,8 Minimum input limit: 1 Maximum input limit: 15 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: The number of the module within a bus segment via which the output is addressed is entered in this MD. For SINUMERIK 840D/810D the logical drive number must be entered. (via MD 13010: DRIVE_LOGIC_NR[n]). For SINUMERIK FMNC the modules (e.g. FMNC, FM position) are numbered consecutively starting with 1. (counting from left to right) The index[n] of the machine data has the following code: [setpoint branch]: 0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-75
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
10.00 10.00
30120 CTRLOUT_NR[n] MD number Setpoint assignment: Setpoint output on drive module/module Default setting: 0 Minimum input limit: 0 Maximum input limit: 4 Changes effective after POWER ON Protection level: 0 Unit: Data type: BYTE Applies from SW 1.1 Significance: With FM-NC, the number of the output on the module, via which the setpoint output is addressed, must be entered in the MD: 1 to 4 according to selected output on socket X2. With SIN 840D/810D, the value is always 1. The index[n] of the machine data has the following code: [setpoint branch]: 0 Fig. FM-NC
X2
X3 X5
X4 X6
CTRLOUT_NR[n] (for FM-NC = 1 ...4 depending on the output selected on socket X2)
30130 CTRLOUT_TYPE[n] MD number Output type of setpoint Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: The speed setpoint output type is entered in the MD: 0: Simulation (no HW required) 1: Standard (HW configuration differentiation) 2: Stepper motor (for SINUMERIK FM-NC only) 3: Stepper motor with direct setpoint output (SW 4) 4: No longer permissible as from SW 4!!! Virtual axis. (No HW exists for simulation) It can be interpolated in follow-up mode. (Technology of electronic transfer. Virtual and real master value.) Note: As from SW4 the MD 30132: IS_VIRTUAL_AX should be used. The index[n] of the machine data has the following code: [setpoint branch]: 0 Simulation: Machine functions can be simulated even if there is no drive system.
Application example(s)
1/G2/4-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
30134 IS_UNIPOLAR_OUTPUT[n] MD number Setpoint output is unipolar Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 5.3 Significance: Unipolar output drive (for unipolar, analog drive actuator): All speed setpoints to the drive are positive, the speed setpoint sign is output separately in a special digital control signal. Input value: 0: Bipolar output with pos./neg. speed setpoint (normal application) 1: 0. Digital bit = servo enable 1. Digital bit = neg. direction of travel 2: (gating of enabling and travel direction signals): 0. Digital bit = servo enable in pos. direction of travel 1. Digital bit = servo enable in neg. direction of travel
30200 NUM_ENCS MD number Number of encoders Default setting: 1 Minimum input limit: 0 Maximum input limit: 2 (FMNC: 1) Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: The number of encoders for the axis or spindle for actual value acquisition is entered in this MD. If the actual position must be acquired with a direct measuring system: NUM_ENCS = 2 NUM_ENCS = 1 must be parameterized for referencing simulation axes/spindles.
30210 ENC_SEGMENT_NR[n] MD number Actual value assignment: Drive type Default setting: Minimum input limit: 0 Maximum input limit: 6 0 for FMNC 1 for 840D/810D Changes effective after POWER ON Protection level: 0 Unit: Data type: BYTE Applies from SW 1.1, expanded to 6 with SW 6.4 and higher Significance: Number of the bus segment via which the encoder is addressed. The bus segments are permanently assigned in the control systems SINUMERIK FMNC and SINUMERIK 840D/810D. 0: Local bus (analogous, e.g. to SINUMERIK FM-NC up to SW 5.3) 1: 611D bus (1st DCM e.g. drive bus for SINUMERIK 840/810D fixed up to NCU 572.3) 2: Local P bus (e.g. for FM-NC with FM 354) 3: 611D bus (2nd DCM) 4: Reserved (virtual buses) 5: PROFIBUS DP (e.g. SINUMERIK 840Di) 6: PROFIBUS DP link module (e.g. SINUMERIK 840D, NCU 573.2 and higher) No. 2 and 3 are reserved for expansion purposes. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-77
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
10.00 10.00
30220 ENC_MODULE_NR[n] MD number Actual value assignment: Drive module number/control loop number Default setting: 1, 2, 3, 4, 5, 6, 7, 8 Minimum input limit: 1 Maximum input limit: 15 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: Number of the module in the bus segment (MD: ENC_SEGMENT_NR[n]) via which the encoder is addressed. For SINUMERIK 840D/810D the logical drive number must be entered (via MD: DRIVE_LOGIC_NR[n]). For SINUMERIK FM-NC the modules (e.g. FMNC, FM position) are numbered consecutively starting with 1 (counting from left to right). The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 Related to .... MD 30110: CTRLOUT_MODULE_NR[n] (Setpoint assignment: Drive number/module number)
30230 ENC_MODULE_NR[n] MD number Actual value assignment: Input on drive module/control loop module Default setting: 1 Minimum input limit: 1 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: The number of the input on a module via which the encoder is addressed is entered here. This defines the input used for the actual value acquisition: For SINUMERIK 840D = 1 or 2 (counting from top to bottom). For SINUMERIK FMNC =14 depending on the input socket X3X6 selected. For SINUMERIK 810D measuring channels: 1 The index[n] of the machine data has the following code: [encoder no.]: 0 or 1 If an output to which no encoder is connected is selected, alarm 300008 Control loop does not exist on drive is triggered. (applies to SINUMERIK 840D/810D only). Fig. FM-NC 840D
X411
X411
Input 1
X412 X422
X421
Input 2
ENC_INPUT_NR (for FM-NC = 1 ...4 depending on the output selected on socket X3 ...X6)
X2 X3 X4 X5 X6
1/G2/4-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
X421
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
30240 ENC_TYPE[n] MD number Type of actual value acquisition (position actual value) Default setting: 0 Minimum input limit: 0 Maximum input limit: 5 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: The encoder type used is entered in the MD: 0: Simulation 1: Raw signal encoder, (SINUMERIK 840D/810D) 2. Rectangular signal encoder, high-resolution standard (quadruplication of the increments), (for SINUMERIK FM-NC) 3: Encoder for stepper motors (for SINUMERIK FM-NC) 4: Absolute encoder with EnDat interface 5: Absolute encoder with SSI interface (SINUMERIK FMNC) The index[n] of the machine data has the following code: [encoder no.]: 0 or 1 If the wrong encoder type is defined, alarm 300009, Wrong control loop type drive [number], control loop [number] is output. Simulation: Machine functions can be simulated even if there is no measuring system.
Application example(s)
30242 ENC_IS_INDEPENDENT[n] MD number Encoder is independent Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after NEW_CONF Protection level: 2/7 Unit: Data type: BYTE Applies from SW 4.1 Significance: If actual value corrections performed by the NC on the encoder selected for position control are not to influence the actual value of any other encoder defined in the same axis, then the position control encoder must be declared to be independent. ENC_IS_INDEPENDENT = 0: Encoder is dependent ENC_IS_INDEPENDENT = 1: Encoder is independent Actual value corrections include the following: Modulo treatment, reference point approach, measuring system calibration, PRESET Extension as of SW 5: ENC_IS_INDEPENDENT = 2: The passive encoder is dependent. The encoder actual value is modified by the active encoder. In combination with MD35102: REFP_SYNC_ENCS = 1 the passive encoder is adjusted to the active encoder during reference point approach, but not referenced. In reference mode MD 34200: ENC_REFP_MODE = 3 (distance-coded reference markers), the passive encoder is automatically referenced to the next traversing movement after it passes the zero marker distance. This happens independently of the current mode set. ENC_IS_INDEPENDENT = 3: Unlike totally independent encoders (value=1), independent encoders are permitted to use modulo correction. MD 30200: NUM_ENCS[AX1] = 2 MD 30242: ENC_IS_INDEPENDENT[0, AX1] = 0 MD 30242: ENC_IS_INDEPENDENT[1, AX1] = 1 If the first encoder is selected for position control via the VDI interface, then the actual value corrections listed above are performed only on this encoder. If the second encoder is selected for position control via the VDI interface, then the actual value corrections listed above are performed on both encoders. This machine data therefore applies only to the encoder that is not currently selected for position control via the VDI interface!
Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-79
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
10.00
30350 SIMU_AX_VDI_OUTPUT MD number Output of axis signals for simulation axes Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: This machine data defines whether axis-specific interface signals are output to the PLC during simulation of an axis. 1: The axis-specific IS signals of a simulated axis are output to the PLC. In this way the PLC program can be tested without the drives. 0: The axis-specific IS signals of a simulated axis are not output to the PLC. All axis-specific IS signals are reset. MD irrelevant for ... ... MD 30130: CTRLOUT_TYPE (output type of setpoint value) = 1 Application example(s) MD: SIMU_AX_VDI_OUTPUT = 0 PLC user program: . . U DBX61.5 ; (position controller active) U DBX61.6 ; (speed controller active) = A62.0 ; (brake released) . . This prevents the brake from being released while an axis is being simulated.
31000 ENC_IS_LINEAR[n] MD number Direct measuring system (linear scale) Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: MD = 1: Encoder for position actual value acquisition is linear (linear scale). MD = 0: Encoder for position actual value acquisition is rotary. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 References Subsection 2.2.3
31010 ENC_GRID_POINT_DIST[n] MD number Distance between reference marks on linear scales Default setting: 0.01 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: mm Data type: DOUBLE Applies from SW 1.1 Significance: The distance between the reference marks on the linear scale is entered in this MD. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 References Subsection 2.2.3
1/G2/4-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
31020 ENC_RESOL[n] MD number Encoder pulses per revolution Default setting: 2048 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 1.1 Significance: The number of encoder pulses per revolution are entered in this MD. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 References Subsection 2.2.3
31030 LEADSCREW_PITCH MD number Leadscrew pitch Default setting: 10 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: mm/rev. Data type: DOUBLE Applies from SW 1.1 Significance: The pitch of the leadscrew is entered in this MD. References Subsection 2.2.3
31040 ENC_IS_DIRECT[n] MD number Encoder is connected directly to the machine Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: MD = 1: Encoder for actual value acquisition is connected directly to the machine. MD = 0: Encoder for actual value acquisition is connected to the motor. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 Special cases, errors, ... Entering the wrong information can cause an incorrect encoder resolution, because, for example, the wrong gear ratios are used for calculation. References Subsection 2.2.3
31050 DRIVE_AX_RATIO_DENOM[n] MD number Denominator load gearbox Default setting: 1 Minimum input limit: 1 Maximum input limit: 2 147 000 000 Changes effective after POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 1.1 Significance: The load gearbox denominator is entered in this MD. The index[n] of the machine data has the following code: [closedloop control set of parameters set no.]: 05 References Subsection 2.2.3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-81
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
10.00 10.00
31060 DRIVE_AX_RATIO_NUMERA[n] MD number Numerator load gearbox Default setting: 1 Minimum input limit: 2 147 000 000 Maximum input limit: 2 147 000 000 Changes effective after POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 1.1 Significance: The load gearbox numerator is entered in this MD. The index[n] of the machine data has the following code: [closedloop control set of parameters set no.]: 05 The MD is an element of the servo parameter set. It is not possible to enter the value 0. In this case, alarm 17095 is output. Subsection 2.2.3
References
31070 DRIVE_ENC_RATIO_DENOM[n] MD number Denominator measuring gearbox Default setting: 1 Minimum input limit: 1 Maximum input limit: 2147000000 Changes effective after POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 1.1 Significance: The measuring gearbox denominator is entered in this MD. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 SW 5 and higher: By changing the default value 1:1, MD acts on a different value even when linear measuring systems are used. Subsection 2.2.3
References
31080 DRIVE_ENC_RATIO_NUMERA[n] MD number Numerator measuring gearbox Default setting: 1 Minimum input limit: 1 Maximum input limit: 2147000000 Changes effective after POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 1.1 Significance: The measuring gearbox numerator is entered in this MD. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 SW 5 and higher: By changing the default value 1:1, MD acts on a different value even when linear measuring systems are used. Subsection 2.2.3
References
1/G2/4-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
31200 SCALING_FACTOR_G70_G71 MD number Factor for converting values when G70/G71 is active Default setting: 25.4 Minimum input limit: Maximum input limit: plus Changes effective after POWER ON Protection level: 2 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: The conversion factor for inch/metric conversion by which the programmed geometry of an axis (position, polynomial coefficients, radius for circular programming, ...) is multiplied when the programmed value for G code group G70/G71 differs from the initial setting value (set in MD: GCODE_RESET_VALUES[n]) is entered in this MD. The factor can be set for each axis individually so that pure positioning axes are not dependent on G70/G71. It is not expedient to select the factor within three geometry axes. The data influenced by G70/G71 are described in the Programming Guide. Application example(s) Basic system metric: As soon as G71 (inch) has been programmed in the parts program and is active all subsequent positioning values are divided by the factor entered in this MD and then converted to the internal metric system. Basic system inch: As soon as G70 (metric) has been programmed in the part program and is active all subsequent positioning values are divided by the factor entered in this MD and then converted to the internal inch system. Related to .... MD: GCODE_RESET_VALUES[n] (G group initial setting).
32000 MAX_AX_VELO MD number Maximum axis velocity Default setting: 10000 Minimum input limit: 0 Changes effective after POWER ON Protection level: 2 Data type: DOUBLE Significance:
Maximum input limit: plus Unit: mm/min, rpm Applies from SW 1.1 The limit velocity to which the axis can accelerate (rapid traverse limitation) is entered in this MD. This velocity is used if rapid traverse is programmed. The maximum linear and rotary axis speed is entered in this MD depending on the setting in MD: IS_ROT_AX. The maximum permissible axis velocity depends on the machine and drive dynamics and the limit frequency of the actual value acquisition.
32100 AX_MOTION_DIR MD number Traversing direction Default setting: 1 Minimum input limit: 1 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: The direction of traverse of the machine can be reversed with this MD. Feedback polarity is not reversed, i.e. closed-loop control remains stable. MD = +1: Normal direction MD = 1: Direction reversed MD = 0: Normal direction
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-83
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
10.00
32110 ENC_FEEDBACK_POL[n] MD number Sign actual value (feedback polarity) Default setting: 1 Minimum input limit: 1 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: The direction of evaluation of the rotary encoder signals is entered in this MD. 1: Direction reversed 0, 1: Direction not reversed If the direction is reversed, the control direction is also reversed if the encoder is used for position control. If input 1 is used for SINUMERIK 840D/810D. MD: ENC_FEEDBACK_POL[n] always 1. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 Special cases, errors, ... If the wrong control direction is entered the axis can be crashed. Depending on the limit values set, the following alarms will be triggered: Alarm 25040 Zero point monitoring Alarm 25050 Contour monitoring Alarm 25060 Speed setpoint limitation The associated limit values are described in: References: /FB/, A3, Axis Monitoring Functions The control direction selected might be incorrect if an uncontrolled setpoint jump occurs when a drive is connected.
1/G2/4-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
32200 POSCTRL_GAIN[n] MD number Servo gain factor Default setting: 1 Minimum input limit: 0 Maximum input limit: 2000 Changes effective after NEW_CONF Protection level: 2/7 Unit: 1/s Data type: DOUBLE Applies from SW 1.1 Significance: Position controller gain, or servo gain factor. The input/output unit for the user is [ (m/min)/mm]. I.e. POSCTRL_GAIN[n] = 1 corresponds to 1 mm following error at V = 1m/min. The following machine data have default settings for adapting the standard selected input/ output unit to the internal unit [rev/s]. MD 10230: SCALING_FACTORS_USER_DEF[9] = 16.666667 MD 10220: SCALING_USER_DEF_MASK = H200; (bit no 9 as hex value). If the value 0 is entered the position controller is opened. When entering the servo gain factor it is important to check that the gain factor of the whole position control loop is still dependent on other parameters of the controlled system. A distinction should be made between a desired servo gain factor acceleration during oscillation (MD: (MD: POSCTRL_GAIN) and the actual servo gain (produced by the machine). Only when all the parameters of the control loop are matched will these servo gain factors be the same. These factors are: Speed setpoint adjustment (MD 32260: RATED_VELO MD 32250: RATED_OUTVAL) Tacho compensation at speed encoder Tacho generator on drive Note: Axes which interpolate with one another must either have the same gain setting (e.g. at the same velocity and an identical following error = 45 slope) or they must be matched via MD 32910: DYN_MATCH_TIME. The actual servo gain factor can be checked by means of the following error (in the service display). The drift compensation must be checked first (in the case of SINUMERIK FMNC). The index[n] of the machine data has the following code: [closedloop control set of parameters set no.]: 05
S S
32210 POSCTRL_INTEGR_TIME MD number Integrator time position controller Default setting: 1.0 Minimum input limit: 0.001 Maximum input limit: 10.0 Changes effective after NEW_CONF Protection level: 2 / 7 Unit: s Data type: DOUBLE Applies from SW 6.4 Significance: Position controller integrator time for integral component in seconds This MD is active only if MD 32220: POSCTRL_INTEGR_ENABLE = 1 is set. MD irrelevant for ... ... Position controller without integral component Related to .... MD 32220: POSCTRL_INTEGR_ENABLE MD 32200: POSCTRL_GAIN References /IAD/, Installation and StartUp Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-85
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
10.00
32220 POSCTRL_INTEGR_ENABLE MD number Activation of integral component of position controller Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BOOLEAN Applies from SW 6.4 Significance: Activation of position controller integral component which converts P controller to PI controller Position overshoots may occur when I component is programmed. This function should be used in special cases only. It requires specialist control knowledge. Related to .... MD 32210: POSCTRL_INTEGR_TIME MD 32200: POSCTRL_GAIN References /IAD/, Installation and StartUp Guide
32250 RATED_OUTVAL[n] MD number Rated output voltage Default setting: 100 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 0 Unit: % Data type: DOUBLE Applies from SW 1.1 Significance: Only applies to analog drives and PROFIBUS drives! The speed setpoint as a percentage of the max. speed setpoint at which the motor speed defined in MD: RATED_VELO[n] is reached is entered in this MD. Application example(s) 1st Example: At a voltage of 5V, the drive reaches a speed of 1875 rev/min. RATED_OUTVAL = 50 %, RATED_VELO = 1875 [U/min] 2nd example: At a voltage of 8V, the drive reaches a speed of 3000 rev/min. RATED_OUTVAL = 80 %, RATED_VELO = 3000 [U/min] 3rd Example: At a voltage of 1.5V, the drive reaches a speed of 562.5 rev/min. RATED_OUTVAL = 15 %, RATED_VELO = 562.5 [U/min] All three examples are possible with one and the same drive/converter. The ratio of the two values is decisive and this is the same in all three examples. The index[n] of the machine data has the following code: [setpoint branch]: 0 Related to .... MD: RATED_OUTVAL[n] is only sensible in combination with MD: RATED_VELO[n].
32260 RATED_VELO[n] MD number Rated motor speed Default setting: 3000 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 0 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: Applies only to analog drives and PROFIBUS drives! The speed of the drive (scaled on the drive side!) which is attained with the speed setpoint in percent entered in MD: RATED_OUTVAL[n] is entered in this MD. RATED_OUTVAL[n] is entered in this MD. The index[n] of the machine data has the following code: [setpoint branch]: 0 Related to .... MD: RATED_VELO[n] is only sensible in combination with MD:RATED_OUTVAL[n].
1/G2/4-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
32900 DYN_MATCH_ENABLE MD number Dynamic response adaptation Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after NEW_CONF Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: Axes with different servo gain factors can be set to the same following error in MD: DYN_MATCH_TIME. 1: Dynamics matching is active. 0: Dynamics matching is not active. Application example(s) See Section 2.3 Related to .... MD 32900: DYN_MATCH_TIME[n] (time constant for dynamic response sensing)
32910 DYN_MATCH_TIME[n] MD number Time constant for dynamic matching Default setting: 0.01 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: The time constant of the dynamics matching of an axis is entered in this MD. The difference between the equivalent time constant of the slowest control loop and the axis concerned is entered as the time constant for the dynamics matching. The MD is only active if MD: DYN_MATCH_ENABLE = 1. The index[n] of the machine data has the following code: [closed-loop control set of parameters set no.]: 05 See Section 2.3 MD 32900: DYN_MATCH_ENABLE (dynamics matching).
32930 POSCTRL_OUT_FILTER_ENABLE MD number Activation of the low pass filter at the position controller output Default setting: FALSE (0) Minimum input limit: 0 Maximum input limit: 1 Changes effective after NEW_CONF Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 5.3 Significance: Activation of the low pass filter at the position controller output using MD 32930: POSCTRL_OUT_FILTER_ENABLE = 1 The low pass filter only comes into effect with the dynamic stiffness control disabled via MD 32640: STIFFNESS_CONTROL_ENABLE = 0. Related to .... MD 32950: POSCTRL_DAMPING
32940 POSCTRL_OUT_FILTER_TIME MD number Time constant of the low pass filter at the position controller output Default setting: 0.0 Minimum input limit: 0.0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2/7 Unit: s Data type: DOUBLE Applies from SW 5.3 Significance: The corresponding filter time constant of the low pass filter at the position controller output can be activated via MD 32930: POSCTRL_OUT_FILTER_ENABLE = 1. Related to .... MD 32950: POSCTRL_DAMPING
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-87
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
10.00 10.00
32950 POSCTRL_DAMPING MD number Factor for additional damping of the position control loop Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2/7 Unit: % Data type: DOUBLE Applies from SW 1.1 (in SW 5.1 and higher extended) Significance: Factor for injection of the positional deviation (with SIMODRIVE_611D drives). An input value of 100% means: An additional torque acc. to the drive MD1725 is injected
S S S
with linear drives, a positional deviation of 1mm exists; with rotary axes, a positional deviation of 360 degrees exists for the two encoders. with linear drives (rot. drive), a positional deviation exists acc. to MD 31030: LEADSCREWPITCH (e.g. default 10mm).
Depending on the machine configuration, the best setting value can be beyond the range 100% .. 100%, e.g. at 800%. It can be found out, e.g. by trying and testing step by step. The extension of function is available for all control variants with SW 5.1 and higher, which use SIMODRIVE_611D drives. Conditions for using the function: In the case of an input value = 0, the alarm 26016 is triggered for this MD if the axis concerned is not equipped with two encoders: MD 30200: NUM_ENCS = 2. In this case, one encoder (load encoder) must be connected directly, and the other (motor encoder) indirectly: MD 31040: ENC_IS_DIRECT. MD 32930: POSCTRL_OUT_FILTER_ENABLE (activation of low pass filter)
Related to ....
32960 POSCTRL_ZERO_ZONE[n] MD number Dead zone of the position controller Default setting: 0.0 Minimum input limit: 0.0 Changes effective after NEW_CONF Protection level: 2/7 Data type: DOUBLE Significance:
Maximum input limit: plus Unit: mm, inches, degrees Applies from SW 5.3 If the amount of the controller deviation is less than $MA_POSCTRL_ZERO_ZONE, the controller output is set to zero. The default setting is MD 32960: POSCTRL_ZERO_ZONE = 0 and corresponds to the current encoder fine resolution (compatible with the software versions in which this machine data did not yet exist). Index n = 0 refers to the 1st encoder of the axis. Index n = 2 refers to the 2nd encoder of the axis. MD 32950: POSCTRL_DAMPING
Related to ....
1/G2/4-88
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
33000 FIPO_TYPE MD number Fine interpolator type Default setting: 2 Minimum input limit: 1 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: The fine interpolator type is entered in the MD: 1: Differential FIPO 2: Cubic FIPO 3: Cubic FIPO, optimized for operation with feedforward control Computing time and contour quality increase as the type if interpolator increases. Cubic FIPO is standard. If no feedforward or position control loop are used, a differential FIPO will give a computing time saving with a slightly higher contour error. If the position control cycle and interpolator cycle are identical, both fine interpolator types have the same effect. No fine interpolation takes place.
34320 ENC_INVERS[n] MD number Linear measuring system is reversed Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: Incremental measuring system MD has no meaning Distancecoded measuring system: MD = 1: The measuring system is reversed compared with the machine system. MD = 0: The measuring system same direction as machine system. The index[n] of the machine data has the following code: [encoder no.]: 0 oder 1 See Description of Functions Reference Point Approach R1. Subsection 2.2.3
36210 CTRLOUT_LIMIT[n] MD number Maximum speed setpoint Default setting: Minimum input limit: 0 Maximum input limit: 200 100 for FMNC 110 for 840D/810D Changes effective after NEW_CONF Protection level: 0 / 0 Unit: % Data type: DOUBLE Applies from SW 1.1 Significance: The maximum speed setpoint is defined as a percentage in this MD. 100 % corresponds to the maximum speed setpoint (10 V with analog interface, maximum speed on SIMODRIVE 611D (settable with 611DMD 1401: MOTOR_MAX_SPEED)). The maximum speed setpoint is determined by any existing setpoint limits in the speed and current controller. If this limit is violated, an alarm is triggered ad the axis is stopped. A limit should be chosen for which the maximum speed (rapid traverse) can be reached and the relevant control reserves maintained. The index[n] of the machine data has the following code: [setpoint branch]: 0 Reducing the speed setpoint during installation.
Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/4-89
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 4.2 Axis-specific machine data
10.00
36500 ENC_CHANGE_TOL MD number Maximum tolerance for position actual value switchover Default setting: 0.1 Minimum input limit: 0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: The permissible deviation between the actual values of the two measuring systems is entered in the MD. This tolerance must not be violated when switching from one measuring system to the other for closed loop control in order to avoid too large compensatory processes. Otherwise error message 25100, Axis %1 Measuring system switchover not possible is generated and switchover between the two systems does not take place. SW 5.3 and higher This MD is used to manage large backlash compensation values. It ensures that the backlash is not switched through to the actual value all at once, but in n steps with an increment size as set in MD 36500: ENC_CHANGE_TOL. Calculation of the backlash thus takes n servo cycles. If it takes too long to complete computation of the backlash, zero speed monitoring alarms may be generated. The original method of injecting the backlash compensation value is used if MD 36500: ENC_CHANGE_TOL is set higher than MD 32450: BACKLASH. MD irrelevant for ... ... This MD is irrelevant for MD 30200: NUM_ENCS = 0 or 1. Application example(s) To avoid too large compensatory processes when switching measuring systems. Related to .... MD 32450: BACKLASH
36510 ENC_DIFF_TOL MD number Measuring system synchronism tolerance Default setting: 0.0 Minimum input limit: 0.0 Maximum input limit: plus Changes effective after NEW_CONF Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 4.2 Significance: Permissible deviation between the actual values of the two measuring systems. This tolerance setting must not be exceeded during cyclical comparison of the two measuring systems or an error message will be generated. The associated monitoring function is not active with an MD setting = 0, in cases where 2 measuring systems are not active/non-existent in the axis or if the axes themselves are not referenced (at least act. closed-loop control measuring system). If this machine data is exceeded in cyclic transmission, fault message 25105 Axis %1 measuring systems misaligned will appear.
1/G2/4-90
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 7.1 Machine data
Signal Descriptions
5
J
None
Example
6
None
7
Name Reference A2 A2 A2 K2 G3
7.1
Number
Machine data
Identifier
Operator-panel-specific ($MM_ ... ) 9004 9010 9011 10000 10050 DISPLAY_RESOLUTION SPIND_DISPLAY_RESOLUTION DISPLAY_RESOLUTION_INCH AXCONF_MACHAX_NAME_T AB[n] SYSCLOCK_CYCLE_TIME Display resolution Display resolution for spindles Display resolution for INCH system of measurement Machine axis name System basic cycle
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/7-91
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 7.1 Machine data
Number 10070 10060 10080 10200 10210 10220 10230 10240 10250 10260 10270 10290 10292 13000 13010 13020 13030 13040 13050 13060 13070 13080 20150 30100 30110 30120 30130 30134 30200 30210 30220 30230 30240 30242 30300 30350 31000 31010 31020 31030
Identifier IPO_SYSCLOCK_TIME_RA TIO POSCTRL_SYSCLOCK_TIME_RA TIO SYSCLOCK_SAMPL_TIME_RA TIO INT_INCR_PER_MM INT_INCR_PER_DEG SCALING_USER_DEF_MASK SCALING_FACTORS_USER_DEF[n] SCALING_SYSTEM_IS_METRIC SCALING_VALUE_INCH CONVERT_SCALING_SYSTEM POS_TAB_SCALING_SYSTEM CC_TDA_PARAM_UNIT CC_TOA_PARAM_UNIT DRIVE_IS_ACTIVE[n] DRIVE_LOGIC_NR[n] DRIVE_INVERTER_CODE[n] DRIVE_MODULE_TYPE[n] DRIVE_TYPE[n] DRIVE_LOGIC_ADDRESS[n] DRIVE_TELEGRAM_TYPE[n] DRIVE_FUNCTION_MASK[n] DRIVE_TYPE_DP[n] GCODE_RESET_VALUES[n] CTRLOUT_SEGMENT_NR[n] CTRLOUT_MODULE_NR[n] CTRLOUT_NR[n] CTRLOUT_TYPE[n] IS_UNIPOLAR_OUTPUT[n] NUM_ENCS ENC_SEGMENT_NR[n] ENC_MODULE_NR[n] ENC_MODULE_NR[n] ENC_TYPE[n] ENC_IS_INDEPENDENT IS_ROT_AX SIMU_AX_VDI_OUTPUT ENC_IS_LINEAR[n] ENC_GRID_POINT_DIST[n] ENC_RESOL[n] LEADSCREW_PITCH
Name Factor for interpolator cycle Factor for position control cycle Division factor of position control cycle for actual value acquisition Calculation resolution for linear positions Calculation resolution for angular positions Activation of scaling factors Scaling factors of physical quantities Basic system metric Conversion factor for switchover to inch system Basic system switchover active System of measurement of position tables Physical units of the tool data for CC Physical units of the tool edge data for CC Drive activation Logical drive number Power section code of drive module Module identifier Identifier of drive type Logical drive addresses (SW 5.2 and higher) Standard message frame type for PROFIBUS DP DP function used (SW 5.3 and higher) Drive type PROFIBUS DP (SW 6.3 and higher) Reset G groups Setpoint assignment: Drive type Setpoint assignment: Drive number/module number Setpoint assignment: Setpoint output on drive module/module Output type of setpoint Setpoint output is unipolar (SW 5.3 and higher) Number of encoders Actual value assignment: Drive type Actual value assignment: Drive module no./control loop no. Actual value assignment: Input on drive module/control loop module Type of actual value acquisition (position actual val.) Encoder is independent Rotary axis Output of axis signals for simulation axes Direct measuring system (linear scale) Distance between reference marks on linear scales Encoder pulses per revolution Leadscrew pitch
Reference G3 G3 G3
T1
R2
1/G2/7-92
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
03.02 10.00
Velocities, Setpoint/Actual Value Systems, Closed-Loop Control (G2) 7.1 Machine data
Number 31040 31044 31050 31060 31064 31066 31070 31080 31090 31200 32000 32100 32110 32200 32210 32220 32250 32260 32450 32500 32610 32620 32630 32650 32711 32800 32810 32900 32910 32930 32940 32950 32960 33000 34320 35100 36200 36210 36400 36410 36500
Identifier ENC_IS_DIRECT[n] ENC_IS_DIRECT2 DRIVE_AX_RATIO_DENOM[n] DRIVE_AX_RATIO_NUMERA[n] DRIVE_AX_RATIO_DENOM DRIVE_AX_RATIO2_NUMERA DRIVE_ENC_RATIO_DENOM[n] DRIVE_ENC_RATIO_NUMERA[n] JOG_INCR_WEIGHT SCALING_FACTOR_G70_G71 MAX_AX_VELO AX_MOTION_DIR ENC_FEEDBACK_POL[n] POSCTRL_GAIN [n] POSCTRL_INTEGR_TIME POSCTRL_INTEGR_ENABLE RATED_OUTVAL[n] RATED_VELO[n] BACKLASH[n] FRICT_COMP_ENABLE VELO_FFW_WEIGHT FFW_MODE FFW_ACTIVATION_MODE AX_INERTIA CEC_SCALING_SYSTEM_METRIC EQUIV_CURRCTRL_TIME [n] EQUIV_SPEEDCTRL_TIME[n] DYN_MATCH_ENABLE DYN_MATCH_TIME [n] POSCTRL_OUT_FILTER_ENABLE POSCTRL_OUT_FILTER_TIME POSCTRL_DAMPING POSCTRL_ZERO_ZONE[n] FIPO_TYPE ENC_INVERS[n] SPIND_VELO_LIMIT AX_VELO_LIMIT [n] CTRLOUT_LIMIT[n] AX_JERK_ENABLE AX_JERK_TIME ENC_CHANGE_TOL
Name Encoder is connected directly to the machine Encoder on intermediate gear (SW 6.4 and higher) Denominator load gearbox Numerator load gearbox Denominator on inter. gear gearbox (SW 6.4 and higher) Numerator on intermediate gear (SW 6.4 and higher) Denominator measuring gearbox Numerator measuring gearbox Weighting of increment for INC/handwheel Factor for convert. values when G70/G71 is active Maximum axis velocity Traversing direction Sign actual value (feedback polarity) Servo gain factor Integrator time position controller Activation of integral component of position controll. Rated output voltage Rated motor speed Backlash Friction compensation active Feedforward control factor for speed feedfor. control Feedforward control mode Activate feedforward control from program Moment of inertia for torque feedforward control System of measurement of sag compensation Equivalent time constant current control loop for feedforward control Equivalent time constant speed control loop for feedforward control Dynamics matching Time constant for dynamic matching Activation of the low pass filter at the position controller output (SW 5.3 and higher) Time constant of the low pass filter at the position controller output (SW 5.3 and higher) Factor for additional damping of the position control loop (SW 5.3 and higher) Dead zone of position controller (SW 5.3 and high.) Fine interpolator type Linear measuring system is reversed Maximum spindle speed Threshold value for velocity monitoring Maximum speed setpoint Axial jerk limitation Time constant for axial jerk filter Max. tolerance for position actual value switchover
Reference S1
S1 S1
H1
K3 K3 K3 K3 K3 K3 K3 K3 K3
S1 A3 B2 B2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/G2/7-93
10.00 10.00
Reference K3
7.2
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
1/G2/7-94
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.1.1 5.1.2 5.2 Channel-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals to channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 7
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/i
11.02 10.00
7.3
Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/H2/7-61 J
1/H2/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Brief Description
Auxiliary functions
For the purpose of workpiece machining operations, it is possible to program process-related functions (feedrate, spindle speed, gear stage) and functions for controlling additional devices on the machine tool (sleeve forward, gripper open, clamp chuck) in the parts program in addition to axis positions and interpolation methods. These process-related functions are programmed by means of auxiliary functions. The following different types of auxiliary function are available:
S Miscellaneous function (M) S Spindle function (S) S Auxiliary function (H) S Tool number (T) S Tool offset D, DL (SW 5.2) S Feedrate F.
These functions are activated and/or output to the PLC: at defined moments in time referred to the execution of parts program blocks or when programmed conditions are fulfilled.
Through auxiliary function outputs in the parts program, auxiliary function parameters are transferred to the PLC interface. Here, they are made available to the PLC user program through facilities belonging to the basic PLC program References: /FB/, P3, Basic PLC Program
Common properties can be assigned to the above auxiliary function types through appropriate configuring.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/1-3
11.02 10.00
SW 6.4
S Associated auxiliary functions for M0 and M1 S Output specifications for individual auxiliary functions
Predefined (system functions) User-defined auxiliary functions.
PLC acknowledgments
There are two classes of auxiliary function which depend on the selected PLC acknowledgment response in the parts program:
S Normal auxiliary functions S High-speed auxiliary functions S High-speed auxiliary functions without block change delay (SW 5)
Application of auxiliary function outputs
Auxiliary functions are used
1/H2/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Detailed Description
Introduction
When output to the PLC, auxiliary functions activate a system function or send information from the parts program to the PLC. The following types of auxiliary function are available:
S Predefined auxiliary functions, see 2.2 S User-defined auxiliary functions, see 2.3
The following section describes the various methods of configuring and programming auxiliary functions as well as their operating principles.
2.1
ID letter[address extension]=value The permissible ID letters for auxiliary functions are: M, S, H, T, D, DL, F. The address extension must be an integer. The address extension and value are defined differently for individual auxiliary functions depending on their meaning and value range. The square brackets can be omitted when an address extension is specified directly as a numeric value. For details, please see Table 2-1. No address extension is permitted for D and DL.
Shortened structure of auxiliary functions Specification of address extension and value by variables Example
ID letterValue
Address extension and value in auxiliary functions can be specified by variables. (Not applicable to FM-NC).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-5
11.02 10.00
Address extensions of the character string type (axis name for F functions) are not transferred to the PLC interface, but only the assigned numerical values.
Table 2-1 Function Overview of auxiliary functions, programming Address extension (integer) Meaning M (Note 5) Spindle no. Range implicit 0 1 12 Range max. 8 digits 1 99 Value Explanations Number per block (Note 7) 5 M3, M4, M5, M19, M70 with address extension for spindle no. e.g. M5 for spindle 2: M2=5. Master spindle is used where no spindle is specified. User M function Without spindle no. for master spindle Functions have no effect in the NCK, they are implemented solely by the PLC Tool names are not sent to the PLC interface. See note 1 D0 selection, default D1 Refers to previously selected D number 3 3
Type INT
0 99 0 12 0 99
0 2147483647 (max. INT value) 03.4028 ex 38 see Note 3 2147483648 +2147483647 3.4028 ex 38 Notes: 2, 3 and 4 REAL INT
(SW 5)
T (Notes 5, 6) D DL
1 12
INT INT
Tool offset selection See tool fine offset selection /FBW/ Path feeds Axis feeds
1 1
06
F (FA)
0 131
REAL
The following applies for active tool management: T and Mk (k: tool change code, MD 22560: $MC_TOOL_CHANGE_ M_CODE; Default=6) are not output as auxiliary functions. If no address extension is given, this is treated as the number of the master spindle (MD 20090: $MC_SPIND_DEF_MASTER_SPIND or command SETMS) or the master tool holder (MD 20124: $MC_TOOL_MANAGEMENT_TOOLHOLDER or command SETMTH).
1/H2/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Note 1. When tool management is active, neither a T change signal nor a T word are output to the interface (channel). 2. The type for the values can be selected by the user via MD 22110: AUXFU_H_TYPE_INT. (SW 5 and higher.) 3. Due to the limited display possibilities on the screens of the control panels, the values of type REAL are actually restricted to 999999999.9999 to 999999999.9999. Calculations in the NC kernel are performed with full REAL accuracy. 4. The REAL values offered for MD 22110: AUXFU_H_TYPE_INT= 1 are rounded and forwarded to the PLC. The PLC program must interpret the value according to the setting in the MD. 5. If tool management is used (see /FBW/), the meaning of the address expansion can be controlled by an MD in SW 5 and higher. Address extension = 0 means that the NCK value is to be replaced by that of the master spindle number; this effectively corresponds to non-programming of the address extension. Spindle programming collecting during block search with the spindle auxiliary function with M19 is not output with SW 5.3 or higher. 6. M6: Without tool management: Addr. ext. range 099 With tool management: Addr. ext. range 0 max. spindle no. 0: Replace with value of the master spindle no. or the master tool holder 7. With active tool management the tool change M-code (M6) can only be present once in the NC block, irrespective of which address extensions have been programmed.
A maximum total of 10 auxiliary functions may be programmed in one block. Alarm 14770 Auxiliary function incorrectly programmed is output when the specified length for address extension of value is exceeded or when the wrong data type is used. The following table shows some programming examples for H functions.
Table 2-2 Programming (coolant=12, lubricant=130) H[coolant]=lubricant H=coolant H5 H=5.379 H17=3.5 H[coolant]=13.8 H=HFF13 H=B1110 H5.3=21 H12=130 H0=12 H0=5 H0=5.379 H17=3.5 H12=13.8 H0=65299 H0=14 Error, alarm 14770 Programming examples for H functions Output of H function to the PLC
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-7
11.02 10.00
PLC interface
The procedures for accessing the PLC interface are described in: References: /FB/, P3, Basic PLC Program
2.2
1/H2/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Table 2-3
Index
Type
Extension possible
Value
System function
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
M M M M M M M M M M M M M M M M M S
0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1 1 1
0 1 2 17 30 6 3 4 5 19
1 1 1 1 1 65 2 2 2 2
0 0 0 0 0 0 (0) (0) (0) (0) (0) (0) (0) (0) (0) (0) (0) (0)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Tool change Spindle right Spindle left Spindle stop Position spindle Axis mode Automatic gear stage Gear stage 1 Gear stage 2 Gear stage 3 Gear stage 4 Gear stage 5 Spindle speed
The values in brackets can be set using MD. The values in the table are the default settings. (*): A different value can be preset using MD 20095: EXTERN_RIGID_TAPPING_M_NR or MD 20094: SPIND_RIGID_TAPPING_M_NR. However, only the fixed value 70 is transferred to the PLC.
Block search
The group assignment (see 2.4) of an auxiliary function defines its behavior during a block search. Only the last auxiliary function within a group is accumulated and output on the first start after a block search. The auxiliary functions in the 1st group are not accumulated.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-9
11.02 10.00
Spindles
The predefined auxiliary functions M6, M3, .., M45 and S are always assigned to the 1st spindle. Output options can be configured for other spindles using user-defined auxiliary functions by specifying the corresponding extension (see MD 22060). The output specification configuration should only contain the permitted modifications, as plausibility checks are not applied to userdefined auxiliary functions.
Note As the predefined auxiliary functions are configured on a channel-specific basis, if a spindle is assigned to a different channel, you must make sure that the configuration in that channel is set accordingly.
2.2.1
The point in time at which auxiliary functions are output can be configured using the output specification (MD 22080). Up to SW 6.3, output times could only be defined on a group-specific basis. The machine data available in SW 6.4 and higher enables output times to be set explicitly for specific predefined auxiliary functions. All predefined auxiliary functions are configured using the following machine data and their various components can be reconfigured: MD 22040: AUXFU_PREDEF_GROUP[ index ] ; group assignment for predefined auxiliary function ; ID letter (M,S,H,T,D,DL,F)
MD 22060: AUXFU_PREDEF_EXTENSION[ index ] ; address extension MD 22070: AUXFU_PREDEF_VALUE[ index ] MD 22080: AUXFU_PREDEF_SPEC[ index ] ; auxiliary function value ; Output specification
The index array index corresponds to the index in column 1 of the predefined auxiliary functions table. The output specification for predefined auxiliary functions is set as follows using MD 22080:
Bit7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Output specification
No output to interface
Reserved
1/H2/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Spindle response
Output specification bit 4 (spindle response after acknowledgment) can be used to configure whether the spindle responds after or before the PLC acknowledgment.
Motion
Bits 5 to 7 control the output of the auxiliary function in terms of single-axis or path motion. If the auxiliary function has been programming without a traversing block, bits 5 to 7 are insignificant.
Priority
The output specifications have higher priority than the properties defined for the group in MD 11110 and these properties in turn have higher priority than the definitions for the type in MD 22200 22252: MD 22080: AUXFU_PREDEF_SPEC[ index ] MD 11110: AUXFU_GROUP_SPEC[ grpindex ] MD 22210: AUXFU_M_SYNC_TYPE MD 22220: AUXFU_T_SYNC_TYPE MD 22230: AUXFU_H_SYNC_TYPE MD 22240: AUXFU_F_SYNC_TYPE MD 22250: AUXFU_D_SYNC_TYPE MD 22252: AUXFU_DL_SYNC_TYPE ; priority: high ; priority: average (see 2.4) ; priority: low ; priority: low ; priority: low ; priority: low ; priority: low ; priority: low
If auxiliary functions have been predefined the predefined output specifications are always valid.
The programming of high-speed auxiliary functions, such as m0=qu(100), in the parts program and in synchronized action takes priority over configuration.
For the purpose of auxiliary function output via synchronized actions, all output specifications except quick and normal are ignored due to the fact that synchronized actions switch entirely asynchronously and the auxiliary functions are output to the PLC immediately as soon as the synchronized action condition is true.
The PLC output of M commands M2, M17, M30 in subprograms can be determined selectively in MD 20800: SPF_END_TO_VDI: 1: The M functions for subprograms (M17 or M2/M30) are transferred to the PLC interface 0: The M functions for subprograms (M17 or M2/M30) are not transferred to the PLC interface
1 DL auxiliary function ca be programmed per block and output to the PLC. An extended address notation is not permitted for the DL command. Range of values: 032000 (programming: DL=n). DL values cannot be output to the PLC via synchronized actions. You can use MD 22252 AUXFU_DL_SYNC_TYPE to specify the time for output of the DL function.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-11
11.02 10.00
Configuration
Only the group assignments and output specifications in brackets in Table 2-3 can be modified. Any attempts to modify other data will be rejected during ramp-up with the error message: Channel %1 illegal predefined auxiliary function in %2 %3, MD. The machine data will be reset to the fixed preset values. The predefined auxiliary functions cannot be overwritten by configuring user-defined auxiliary functions (see 2.3). If an attempt is made to do this, alarm 4185 channel K1 illegal configuration of an auxiliary function SM I1 S5 will be generated. The configurable output time of predefined auxiliary functions can be used to determine e.g. whether a spindle function is initiated prior to path or single-axis motion, during motion or at the end of the block. For example: x10 m3 ; spindle turning according to configuration, during or ; after motion x10
Thread cutting
For the purposes of thread cutting G33, G34 and G35 auxiliary functions M3 and M4 are always output during motion and without block change delay. Spindle stop M5 is always output at the end of the block. The block containing M5 is always approached with exact stop. Continuous-path mode may be interrupted under certain circumstances.
The table below contains a list of predefined auxiliary functions whose group assignment and output specification cannot be changed. These auxiliary functions can only be configured using certain machine data.
Type ExtenValue sion i possible Group System function
M M T M M M M M M M M M
0 0
(*1) (*2)
1 1 64 1 10 10 11 11 11 11 12 12
Assoc. stop Assoc. cond. stop Tool selection Subprogram motion Nibbling Nibbling Nibbling Nibbling Nibbling Nibbling Nibbling Nibbling
1 1 0 1 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1
SpNo. 1 0 0 0 0 0 0 0 0 0 (*3) (*4) (*4) (*4) (*4) (*4) (*4) (*4) (*4)
1/H2/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
(*1): The value is set using MD 22254: AUXFU_ASSOC_M0_VALUE. (*2): The value is set using MD 22256: AUXFU_ASSOC_M1_VALUE. (*3): The value is set using MD 10714: M_NO_FCT_EOP. (*4): The value is set using MD 26008: NIBBLE_PUNCH_CODE. The diagrams below illustrate the effect of the various output specifications.
V Spindle response
Output M3
Quit
Axis motion
Block change V
Spindle response
Output M3
Quit
Block change
Fig. 2-1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-13
11.02 10.00
Axis motion M5
Axis motion
Block change
V Spindle response
Output M3
Quit
Standard setting
Axis motion
Output M4
Quit
Standard setting
Quit M5
Output
Block change
Fig. 2-2
1/H2/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
V Spindle response
Standard setting
Output m19 Quit
Block change
Spindle response
Standard setting
Quit M70 Axis motion
Output
Output s1000
Quit
Standard setting
Axis motion
Block change
Fig. 2-3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-15
11.02 10.00
2.2.2
have the components and meanings defined in 2.2. An associated auxiliary function with the same functionality can be declared for each of these auxiliary functions in the user program.
Precondition
The PLC user program implements processing of associated auxiliary functions in the same way as for original function M0 or M1.
Procedure
The MD 22254: AUXFU_ASSOC_M0_VALUE must contain the value of an auxiliary function number, e.g. 134. M134 then initiates the same function as performed by M0. The MD 22256: AUXFU_ASSOC_M1_VALUE must contain the value of an auxiliary function number, e.g. 173. M173 then initiates the same function as performed by M1. Neither machine data permits predefined auxiliary function numbers with fixed meaning. Alarm 4181 is output in response to an error. The auxiliary function numbers in the two machine data must be different. It is also possible to declare just one of the two associated auxiliary functions.
The group assignment for associated M functions is identical to that for the corresponding original auxiliary functions. M0, M1 and their associated auxiliary functions are preassigned to group 1. See 2.4.
Application
It is possible to make particular distinctions in the programming, e.g. M1 ; Conditional stop in parts program and M173 ; Conditional stop in user cycle. Conclusive distinctions are taken care of in the user PLC program.
Use
Associated auxiliary functions may be used in main programs, subroutines and cycles, but not in synchronized actions. References: /FBSY/, Synchronized Actions.
1/H2/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Note Modifications to machine data: MD 22254: AUXFU_ASSOC_M0_VALUE and MD 22256: AUXFU_ASSOC_M1_VALUE require the user PLC program to be adapted.
PLC/NCK
The associated M00 and M01 auxiliary functions use the same bits in the PLC interface as M0 and M1. The function value output to the interface is, however, the configured value from the machine data. The following extra signals are provided for associated auxiliary function M1 DB 2130, DBB318 Bit 5: Associated M00/M01 active (NCKPLC) and DBB30 bit 5: Activate associated M01 (PLCNCK).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-17
11.02 10.00
2.3
Term
All auxiliary functions listed not denoted as predefined auxiliary functions in Table 2-3 are user-defined auxiliary functions.
2.3.1
Sequence
The following machine data define settings for auxiliary function output options. Output specifications for user-defined auxiliary functions are set according to the priority of the following machine data: $MC_AUXFU_ASSIGN_SPEC[ index ] $MN_AUXFU_GROUP_SPEC[ index ] $MC_AUXFU_(M,S,T,H,F,D,DL)_SYNC_TYPE ; highest ; average (see 2.4) ; lowest
Default
MD 22035: AUXFU_ASSIGN_SPEC[ index ] is 0. At a value of 0, the group output specification is valid. For example, if there are two spindles in the system, the response of the master spindle takes priority over the predefined auxiliary functions. The response of the auxiliary functions for the second spindle can be defined by assigning the auxiliary functions for the second spindle to a separate group.
Examples
The 2nd spindle is assigned to group 5. m2 = 3 ; Spindle 2 is to be turned clockwise by the PLC ; prior to acknowledgment (see 2.5)
1/H2/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
m2 = 4 m2 = 5
; Spindle 2 is to be turned counterclockwise by the PLC ; during path motion and after acknowledgment. ; Spindle 2 is to be stopped by the PLC ; after path motion and after acknowledgment.
Machine data can be programmed to define the timing for transmission of auxiliary function parameters to the PLC for each type of auxiliary function. MD 22200: AUXFU_M_SYNC_TYPE MD 22210: AUXFU_S_SYNC_TYPE MD 22220: AUXFU_T_SYNC_TYPE MD 22230: AUXFU_H_SYNC_TYPE MD 22240: AUXFU_F_SYNC_TYPE MD 22250: AUXFU_D_SYNC_TYPE MD 22252: AUXFU_DL_SYNC_TYPE (SW 5.2 and higher) Assignment of machine data: 0: Output prior to motion 1: Output during motion 2: Output at block end 3: No output to the PLC In the case of auxiliary functions which are output at the end of a block, the parameters are not transferred until all path and positioning axes have finished interpolation. If several auxiliary functions with different output types (prior, during, at end of motion) are programmed in one motion block, then they are output individually according to their output type.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-19
11.02 10.00
In a block without a path motion (even those with positioning axes and spindles), the auxiliary functions are all output immediately in a block. If auxiliary function M17 or M2/M30 is programmed as the only auxiliary function in a block where an axis is still in motion, then its parameters are not output to the PLC until the axis has reached standstill.
Sequence
If definitions for the output time of the auxiliary function are made using MD $MC_AUXFU_ASSIGN_SPEC[ index ] $MN_AUXFU_GROUP_SPEC[ index ] ; highest (see 2.3.1) ; average (see 2.4)
definitions made using AUXFU_(M, S, T, H, F, D, DL)_SYNC_TYPE will not be taken into account.
The NC block has 3 modalities which can be defined by MD: N10 G01 X100 M07 H5 T5 The machine data settings are as follows: MD 22220: AUXFU_T_SYNC_TYPE =0 MD 22200: AUXFU_M_SYNC_TYPE =1 MD 22230: AUXFU_H_SYNC_TYPE =2 Output time for T functions prior to motion Output time for M functions during motion Output time for H functions at the end of the block
X100
T5
M07
> Start N10
H5
Fig. 2-4
Continuous-path mode
A path movement can only remain continuous if auxiliary function output takes place during the movement and is acknowledged by the PLC before the path end is reached. References: /FB/, B1, Continuous-Path Mode, Exact Stop, Look Ahead See also 2.5 Acknowledgment of auxiliary functions by the PLC
1/H2/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.4
Introduction
MD 11110: AUXFU_GROUP_SPEC[k] Set bit: 0: 1: 2: 3: 4: 5: 6: 7: Auxiliary function acknowledgment (see 2.5) High-speed auxiliary function acknowledgment (see 2.5) Reserved No output to the PLC Spindle response following acknowledgment by the PLC Output before block processing commences Output while block processing is in progress Output at block end
If a programmed auxiliary function is assigned to a group, then only the corresponding group specifications are valid. The specifications apply to all auxiliary functions assigned to the group. Index k stands for the number of the group.
Properties without group assignment Number of groups (SW 5.2 and higher) Number of auxiliary function groups per channel (SW 5.2 and higher)
Auxiliary functions that are not assigned to a group are treated as auxiliary functions with normal acknowledgment. See 2.5.
A maximum of 15 or 64 (SW 5.2 and higher, see Chapter 3) auxiliary function groups can be defined.
A maximum of 50 or 255 (SW 5.2 and higher, see Chapter 3) auxiliary functions can be assigned to the 15 or 64 (SW 5.2 and higher) auxiliary function groups. The number actually used can be set in MD 11100: AUXFU_MAXNUM_GROUP_ASSIGN. This number does not include auxiliary functions that are preassigned as standard. See Default group properties, Default auxiliary function assignments.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-21
11.02 10.00
Assignment of groups
The maximum number of auxiliary functions that can be defined is set using MD 11100: AUXFU_MAXNUM_GROUP_ASSIGN. The index to be used in the above machine data is: 0 (MD 11100 1)
Example
The spindle speed of the 2nd spindle is to be assigned to group 11. The MDs for the 17th auxiliary function are then: MD 22010: AUXFU-ASSIGN-TYPE[17] = S
MD 22020: AUXFU-ASSIGN-EXTENSION[17] = 2 MD 22030: AUXFU-ASSIGN-VALUE[17] = 1 MD 22000: AUXFU-ASSIGN-GROUP[17] = 11 MD 22035: AUXFU_ASSIGN_SPEC[17]=H21
The auxiliary functions assigned to a group ignore the set default values in the following machine data (output times of the M, S, T, H, F, D and DL functions):
MD 22200: AUXFU_M_SYNC_TYPE, MD 22210:AUXFU_S_SYNC_TYPE, MD 22220:AUXFU_T_SYNC_TYPE, MD 22230:AUXFU_H_SYNC_TYPE, MD 22240:AUXFU_F_SYNC_TYPE, MD 22250:AUXFU_D_SYNC_TYPE and MD 22252:AUXFU_DL_SYNC_TYPE (SW 5.2 and higher).
If MD 22030: AUXFU_ASSIGN_VALUE[n] (auxiliary function value) for speed auxiliary functions is set to a value of <0, all auxiliary functions of the configured type with the same address extension are assigned to this group. This feature has been utilized in the above example to assign all S values of a spindle to one group.
Note The group assignment for predefined auxiliary functions can be found in Table 2-4.
1/H2/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Auxiliary Function Output to PLC (H2) Acknowledgment of auxiliary functions by the PLC
If auxiliary functions are not defined in MD 11110: AUXFU_GROUP_SPEC[n], they have the following properties:
The user can change this setting for groups 2 to 15, but not for group 1.
2.5
Introduction
Section 2.4 describes how the mode in which the PLC acknowledges grouped auxiliary functions can be programmed. The acknowledgment response (higher priority) can be defined by means of output specifications for individual auxiliary functions. This Section describes the response characteristics for:
Value of the MD 0 1 with block change delay without block change delay
Meaning
The possible combinations of these specifications are described in the Section below. The following table specifies the block change behavior and the velocity reduction depending on the specified time of auxiliary function output, the machine data setting, and the type of acknowledgment.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-23
Auxiliary Function Output to PLC (H2) 2.5 Acknowledgment of auxiliary functions by the PLC
11.02 10.00
2.5.1
Auxiliary functions with normal acknowledgment are transferred to the PLC interface on commencement of the OB1 call by the basic PLC program. Interface modification signals indicate when the values are valid. The basic PLC program acknowledges auxiliary functions, as soon as the PLC has run through the complete OB1 once (one full PLC user cycle). Normal auxiliary functions are output block-synchronously. If block processing is finished before the acknowledgment, the block change is delayed until the acknowledgment is received. Consequently: a path movement with auxiliary functions with normal acknowledgment can only remain continuous if auxiliary function output takes place during the movement and is acknowledged by the PLC before the block end is reached. The MD 11110: AUXFU_GROUP_SPEC[n], can be programmed to define all the auxiliary functions belonging to an auxiliary function group (see Section 2.4 Auxiliary function groups) as auxiliary functions with normal acknowledgment. If an auxiliary function is not assigned to any auxiliary function group or an output specification has not been defined, it is always treated like an auxiliary function with normal acknowledgment provided that the time of output to the MD 2220022250: AUXFU_x_SYNC_TYPE ; x stands for the auxiliary function type M, S, H, T, is not set to 0 (setting 3).
1/H2/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Auxiliary Function Output to PLC (H2) Acknowledgment of auxiliary functions by the PLC
If an output specification has been configured for the auxiliary function, the following priority is valid for the acknowledgment response defined: $MC_AUXFU_ASSIGN_SPEC[ index ] $MN_AUXFU_GROUP_SPEC[ index ] $MC_AUXFU_(M,S,T,H,F,D,DL)_SYNC_TYPE ; highest ; average ; lowest
2.5.2
Application
Prompt initiation of parallel activities in the PLC, subsequent scanning for acknowledgment if necessary for continued processing.
Auxiliary functions with high-speed acknowledgment are transferred to the PLC interface at the beginning of the next OB1 call by the basic PLC program. They are characterized by the fact that they are immediately acknowledged by the basic PLC program (in OB40) if the PLC has recognized the transferred auxiliary functions of a block. This transport acknowledgment does not provide information about the execution of the auxiliary functions on the PLC, but merely confirms that the PLC has received the auxiliary functions. However, the next auxiliary function block cannot be transferred until the OB1 has been fully executed once. This produces a noticeable delay in cases where auxiliary functions with high-speed acknowledgment are output in several NC blocks in a sequence. In the case of auxiliary functions with high-speed acknowledgment, it cannot be guaranteed that the PLC user program will react block-synchronously. The MD 11110: AUXFU_GROUP_SPEC[n], can be programmed to define all the auxiliary functions belonging to an auxiliary function group (see Section 2.4 Auxiliary function groups) as auxiliary functions with high-speed acknowledgment.
Through appropriate parameterization of the basic PLC program, it is possible to program direct evaluation of auxiliary functions T and H by the PLC user program in process alarm OB40 (SW 3.5 and higher). References: /FB/, P3, Basic PLC Program
M, S, H, T, DL and D auxiliary functions which are not assigned to an auxiliary function group can be identified as high-speed auxiliary functions in the parts program. Example: M = QU(7); High-speed output for M7, Identification as high-speed auxiliary function: QU(value)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-25
Auxiliary Function Output to PLC (H2) 2.5 Acknowledgment of auxiliary functions by the PLC
11.02 10.00
Note A programmed explicit, high-speed acknowledgment is ignored if the auxiliary function concerned is assigned to an auxiliary function group with normal acknowledgment by the PLC. The properties assigned to an auxiliary function group have priority. The block limits clearly defined in the parts program are not defined in the PLC user program.
Parts program: N10 G94 G01 X50 M100 N20 Y5 M100 M200 N30 Y0 M=QU(100) M=QU(200) N40 X0 N50 M100 M200 M17 MD 22200: AUXFU_M_SYNC_TYPE = 1, Output of M100 during motion MD 22200: AUXFU_M_SYNC_TYPE = 0, Output of M200 prior to motion. Output as high-speed auxiliary functions
The following diagram shows the chronological sequence of normal and high-speed auxiliary function outputs (with different modes of synchronization with the programmed motions). Note the different block processing times of N20 and N30.
X axis Y axis M100 M200 Block number M fct. 1 Strobe from NCK and acknowledgment by basic PLC prog. M fct. 2 M fct. 1 change (IS) M fct. 2 change (IS) PLC cycle time (OB1)
N10 N20
N30
N40
N50
OB 1
Fig. 2-5
1/H2/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Auxiliary Function Output to PLC (H2) Acknowledgment of auxiliary functions by the PLC
Table 2-6 Auxiliary function output before the movement Behavior The movement stops at the end of the preceding block. The auxiliary functions are output in the first interpolation cycle of the block. The movement is not continued until the auxiliary functions have been acknowledged by the PLC after one OB40 PLC cycle. The current tool path velocity is reduced until the time to the end of the block is greater than the maximum PLC acknowledgment time (time of one OB1 cycle). This ensures that the PLC can acknowledge all auxiliary functions before the next block is executed. The movement stops at the end of the block. The auxiliary functions are output at the end of the block. The next block is not executed until the OB40 acknowledgment is received.
2.5.3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-27
Auxiliary Function Output to PLC (H2) 2.6 M function with implicit preprocessing stop (SW 6.3 and higher)
11.02 10.00
Movement for the following block can already be activated during the braking ramp. Pull back.
T
Fig. 2-6
2.6
Sequence
The machine data MD 10713: M_NO_FCT_STOPRE can be programmed to define 15 M functions that execute an implicit preprocessing stop. If an M function configured via MD 10713: M_NO_FCT_STOPRE is programmed, interpretation of the following parts program line is delayed until the block containing the M function has been executed fully, i.e. acknowledged by the PLC.
Example
Supplementary conditions
1/H2/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
2.7
In addition to the auxiliary functions accumulated during block searches, new auxiliary functions can be output with the Overstore function prior to NC start. See 2.8. After a block search with calculation, the spindle is always positioned as programmed last even if other spindle functions are programmed before the block search target.
Note The spindle enable must be derived from the motion commands (DB3[spindle] DBB64) since, under certain circumstances, the spindle-related auxiliary functions M3, M4, M5 may not be output to the PLC until the spindle has been positioned. For further information on block search and spindle auxiliary functions: References: /FB/, K1 Mode Group, Channels, Program Operation, References: /FB/, S1 Spindles, Spindle auxiliary functions, Chapter 2 (SW 5.3 and higher)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-29
11.02 10.00
2.8
Response to overstore
Application
The auxiliary functions can be altered by means of Overstore prior to program start or in the event of a program interruption. It may therefore be necessary, for example, for the user to enter the current M, S, T and H values manually during a program trial run or after a block search.
S Tool number (T) S Tool offset number D S Sum offset DL (SW 5.2 and higher) S Spindle speed S S Auxiliary function (H) S Miscellaneous function (M) S Feedrate F.
Activation/ deactivation
The auxiliary function is output with the associated transition signal on the interface only when NC start is initiated and thus remains valid for further processing of the parts program until it is deselected by another Overstore operation or by a programmed auxiliary function of the same type.
Operation
References:
1/H2/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
2.9
Function M
*)
S *) H
Transfer of spindle speed to the PLC interface Switching, auxiliary and motion functions which are not controlled by the NCK, but exclusively by the PLC.
S functions are assigned as standard to group 3. See 2.4 A function without address extension is referred to the master spindle. The data type in which the value of the H auxiliary functions is interpreted can be defined in MD 22110: AUXFU_H_TYPE_INT (SW 5 and higher) The following are possible: INT from 2 147 483 648 to 2 147 483 647 or REAL from 3.4028 ex 38 to 3.4028 ex 38 Identification of tools by either tool number or location number. /FBW/, Tool management /FB/, W1, Tool offset When T0 is selected, the current tool is removed from the tool holder but not replaced by a new tool. (Default setting). D1 applies if no D function is activated. MD 20270: CUTTING_EDGE_DEFAULT determines the default offset after tool changes. D0 deselects the offset for the tool. The system response to RESET, program start and power-up is determined by MD 20110: RESET_MODE_MASK and MD 20120: START_MODE_MASK in combination with other machine data. /FB/, K2, Workpiece-Related Actual Value System The parameter refers to a D number which has already been transferred. DL values cannot be output to the PLC via synchronized actions. If no DL function is activated, DL=0 is assumed. MD 20272: SUMCORR_DEFAULT determines the default offset after tool changing. DL=0 deselects the sum offset for the active D offset. No address extension: Path feed FA[address extension] : Feedrate of a positioning axis with machine axis number as address extension. Feedrates can be transferred with: G93, G94, G95, G96, G33, G63, G331, G332, but not with dwell times programmed with G4. Note: The axis velocity may drop in continuouspath mode during output of F functions to the PLC. This function should be used only if unavoidable.
Selection of tool
*) D The D function is used to select a tool offset stored in the NC memory that was defined for a previously active tool. The D number transferred to the PLC can be evaluated for the purpose of implementimplement ing switching operations and protective functions.
DL
The DL function selects a sum offset of a previously activated tool offset D from the NC memory. The DL number passed to the PLC can be evaluated to initiate switching actions and protective functions. The feedrates programmed in the parts program are transferred to the PLC with the F function. The PLC can derive switching operations and protective functions from the feedrate data.
*) If tool management is installed (see /FBW/), the meaning of the address extension can be controlled by an MD in SW 5 and higher.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/2-31
11.02 10.00
Notes
1/H2/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Supplementary Conditions
Availability
The Output of auxiliary functions to PLC function is available with SW 1 and higher.
SW 5
S High-speed acknowledgment without delayed block change S Selectable data type for H auxiliary functions and extended range for integer
type
S Transfer of DL sum offsets to PLC (SW 5.2 and higher) S Expansion to 64 auxiliary function groups and 64 auxiliary functions
(SW 5.2 and higher)
SW 6
S Associated auxiliary functions M0, M1 S Predefined auxiliary functions with output specifications S User-defined auxiliary functions with output specifications.
Note A tight configuration of the block memory may mean that the maximum number 64 is not reached (abort with error message). A more generous configuration is then recommended.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/3-33
10.00
Notes
1/H2/3-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10713 M_NO_FCT_STOPRE MD number M function with preprocessing stop Default setting: 1 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3 Significance: The M functions defined via machine data MD 10713: M_NO_FCT_STOPRE execute an implicit preprocessing stop, i.e. interpretation of the next parts program line is delayed until the block containing the M function defined in this MD has finished running (acknowledgment from PLC, motion, etc.). Application example(s) See Section 2.2
11100 AUXFU_MAXNUM_GROUP_ASSIGN MD number Number of auxiliary functions distributed among the AUXFU groups Default setting: 1 Minimum input limit: 1 Maximum input limit: 50 /64 (SW 5.2) Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 or 5.2 Significance: Maximum number of auxiliary functions, which can be assigned to one group using AUXFU_ASSIGN_TYPE, AUXFU_ASSIGN_EXTENSION, AUXFU_ASSIGN_VALUE and AUXFU_ASSIGN_GROUP . This number only includes the user-defined auxiliary functions (see 2.3) and not the predefined auxiliary functions (see Section 2.2). Application example(s) See Chapter 6 Related to .... MD 22010: AUXFU_ASSIGN_TYPE[n]
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/4-35
11.02 10.00
11110 AUXFU_GROUP_SPEC[n], MD number Auxiliary function group specification Default setting: see below Minimum input limit: Maximum input limit: *** Changes effective after POWER ON Protection level: 2/7 Unit: HEX Data type: BYTE Applies from SW 1.1 Significance: This MD defines the output modes for the auxiliary functions belonging to a group. Coding: Bit 0=1> Output duration 1 OB1 pass (normal auxiliary function) Bit 1=1> Output duration 1 OB40 pass, alarm-controlled (high-speed auxiliary function) Bit 2=1> reserved Bit 3=1> No output to PLC (may only be set as the only bit) Bit 4=1> Spindle response after acknowledgment by the PLC Bit 5=1> Output before the motion Bit 6=1> Output during the motion Bit 7=1> Output at the end of the block
The assignment of the individual aux. functions is defined in the channel-specific machine data (AUXFU_ASSIGN_TYPE, AUXFU_ASSIGN_EXTENSION, AUXFU_ASSIGN_VALUE, AUXFU_ASSIGN_GROUP). M0, M1, M2, M17 and M30 are assigned as standard to group 1. The specification of this group (0x81: output duration 1 OB1 pass, output at end of block) may not be changed. All spindle-specific auxiliary functions (M3, M4, M5, M19, M70) are assigned as standard to group 2. If several auxiliary functions with different output types (prior, during, at end of motion) are programmed in one motion block, then they are output individually according to their output type. In a block without motion, all auxiliary functions are output at the same time.
The MD must be defined for every existing auxiliary function group. The index [n] corresponds to the number of the function group: 0...14 or 0...63 SW 5.2 and higher [0] 81st auxiliary function group, [1] 82nd auxiliary function group ... Default setting: AUXFU_GROUP_SPEC0]=81H AUXFU_GROUP_SPEC[1]=21H AUXFU_GROUP_SPEC[2]=41H
...
AUXFU_GROUP_SPEC[63]=41H Application example(s) See Chapter 6
1/H2/4-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
4.2
20800 SPF_END_TO_VDI MD number Subprogram end to PLC Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: Bit 0 = 1: M17 and M2/M30 are output to the VDI interface. Bit 0 = 0: M17 and M2/M30 are not output to the VDI interface. No unnecessary blocks are generated. Path-controlled mode is not interrupted on end of subprogram. Bit 1 = 0: M01:Checkpoint program stop is always output to PLC, irrespective of whether signal M01 is active or not. High-speed auxiliary function output M=QU(1) is not active as M01 is assigned to the 1stspecial function group and is thus always output at the end of the block. Bit 1 = 1: M01 special function: Conditional program stop is only output to the PLC if M01 is also active. This enables the execution of the parts program to be optimized in terms of runtime. With high-speed auxiliary function output M=QU(1) M1 is output during movement and thus allows operation of blocks with programmed M01 in continuous-path mode as long as M01 is not active. The M01 signal is no longer queried at the end of the block on M=QU(1); rather, during motion. Example of a subprogram: G64 F2000 G91 Y10 X10 X10 Z10 M17 Application example(s) S Continuous-path mode remains active with a setting of SPF_END_TO_VDI=0.
22000 AUXFU_ASSIGN_GROUP[n] MD number Auxiliary function group [aux. func. no. in channel]: 0...49 or 63 (SW 5.2 and higher) Default setting: 1 Minimum input limit: 1 Maximum input limit: 15 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: See MD: AUXFU_ASSIGN_TYPE [n] (auxiliary function type) Application example(s) See Chapter 6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/4-37
11.02 10.00
22010 AUXFU_ASSIGN_TYPE[n] MD number Auxiliary function type [aux. func. no. in channel]: 0...49 or 63 (SW 5.2 and higher) Default setting: Minimum input limit: Maximum input limit: 16 characters Changes effective after POWER ON Protection level: 2/7 Unit: Data type: STRING Applies from SW 1.1 Significance: Machine data AUXFU_ASSIGN_TYPE[n] (auxiliary function type), AUXFU_ASSIGN_EXTENSION[n] (auxiliary function extension), AUXFU_ASSIGN_VALUE[n] (auxiliary function value) and AUXFU_ASSIGN_GROUP[n] (auxiliary function group) are defined to assign an auxiliary function type (M,S,H,T,D), the associated extension and the auxiliary function value to an auxiliary function group. Example: M 0 = 100 => Group 5 (corr. to M100) Type of auxiliary function extension Auxiliary function extension Auxiliary function value Auxiliary function group MD: AUXFU_ASSIGN_TYPE[0] = M MD: AUXFU_ASSIGN_EXTENSION[0] = 0 MD: AUXFU_ASSIGN_VALUE[0] = 100 MD: AUXFU_ASSIGN_GROUP[0] = 5; ( 5th group) Auxiliary functions M00, M01, M02, M17 and M30 are assigned as standard to group 1. M3, M4, M5 and M70 of the master spindle are assigned as standard to group 2. The S functions of the master spindle are assigned as standard to group 3. When assigning an auxiliary function to a group, the set synchronization with respect to the PLC interface and a simultaneously programmed motion can be found in MD: AUXFU_GROUP_SPEC [n] (auxiliary function group specification). The settings defined in machine data MD: AUXFU_[M,S,H,T,D,F]_SYNC_TYPE (output timing for [M,S,H,T,D,F] functions) are ignored for the selected auxiliary functions. A programmed high-speed auxiliary function (e.g. M=QU(100)) is also ignored. The machine data index [n] indicates the auxiliary function number All auxiliary functions that are assigned to auxiliary function groups should be numbered in ascending order. [0]81st auxiliary function [1]82nd ,, . . The same index [n] must be set for each of the machine data used to assign an auxiliary function to an auxiliary function group. Note: It is not possible to assign the type DL. See Chapter 6 If the auxiliary function value of an auxiliary function is less than 0, then all auxiliary functions of this type and extension are assigned to a group. Example: S2 = 1 => Group 9 (all S values of the 2nd spindle are assigned to group 9) MD 11100: AUXFU_MAXNUM_GROUP_ASSIGN
Related to ....
1/H2/4-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
22020 AUXFU_ASSIGN_EXTENSION[n] MD number Auxiliary function extension [aux. func. no. in channel]: 0...49 or 63 (SW 5.2 and higher) Default setting: 0 Minimum input limit: 0 Maximum input limit: 99 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: See MD: AUXFU_ASSIGN_TYPE [n] (auxiliary function type) Application example(s) See Chapter 6 Special cases, errors, ... The auxiliary function extensions 1 to 4 are reserved for spindle functions with S and M functions.
22030 AUXFU_ASSIGN_VALUE[n] MD number Auxiliary function value [aux. func. no. in channel]: 0...49 or 63 (SW 5.2 and higher) Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 1.1 Significance: See MD: AUXFU_ASSIGN_TYPE [n] (auxiliary function type) Application example(s) See Chapter 6
22035 AUXFU_ASSIGN_SPEC[n] MD number Output specification[AuxFNo. in channel] 0...49 or 63 (SW 5.2 and higher) Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Specifies the output option for the userdefined auxiliary functions
If the bit is set, this indicates: 0: Normal acknowledgment following an OB1 cycle 1: Quick acknowledgment with OB40 3: No output to NCK PLC interface 4: Spindle response following acknowledgment 5: Output prior to motion 6: Output during motion 7: Output at block end
Related to .... MD 11110: AUXFU_GROUP_SPEC MD 22000: AUXFU_ASSIGN_GROUP MD 22010: AUXFU_ASSIGN_TYPE MD 22020: AUXFU_ASSIGN_EXTENSION MD 22030: AUXFU_ASSIGN_VALUE
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/4-39
11.02 10.00
22040 AUXFU_PREDEF_GROUP MD number Predefined auxiliary function groups Default setting: 1 Minimum input limit: 1 Maximum input limit: 64 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: Byte Applies from SW 6.4 Significance: Predefined auxiliary function groups:
The predefined auxiliary functions are as follows: M0, M1, M2, M17, M30, M6, M3, M4, M5, M19, M70, M40, M41, M42, M43, M44, M45, S The predefined groups cannot be modified for M0, M1, M2, M17, M30 and M6.
Related to .... MD 22050: AUXFU_PREDEF_TYPE MD 22060: AUXFU_PREDEF_EXTENSION MD 22070: AUXFU_PREDEF_VALUE MD 22080: AUXFU_PREDEF_SPEC
22050 AUXFU_PREDEF_TYPE MD number Predefined auxiliary function type Default setting: M Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: STRING Applies from SW 6.4 Significance: The address codes for the predefined auxiliary functions are preset and cannot
be changed. The predefined auxiliary functions are as follows: M0, M1, M2, M17, M30, M6, M3, M4, M5, M19, M70, M40, M41, M42, M43, M44, M45, S The setting for these cannot be changed.
Related to .... MD 22040: AUXFU_PREDEF_GROUP MD 22060: AUXFU_PREDEF_EXTENSION MD 22070: AUXFU_PREDEF_VALUE MD 22080: AUXFU_PREDEF_SPEC
22060 AUXFU_PREDEF_EXTENSION MD number Predefined auxiliary function extension Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 6.4 Significance: Predefined auxiliary function extension 1: Address extension permitted 0: No address extension
The predefined auxiliary functions are as follows: M0, M1, M2, M17, M30, M6, M3, M4, M5, M19, M70, M40, M41, M42, M43, M44, M45, S The setting for these cannot be changed.
Related to .... MD 22040: AUXFU_PREDEF_GROUP MD 22050: AUXFU_PREDEF_TYPE MD 22070: AUXFU_PREDEF_VALUE MD 22080: AUXFU_PREDEF_SPEC
1/H2/4-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
22070 AUXFU_PREDEF_VALUE MD number Predefined auxiliary function value Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Predefined auxiliary function value
The predefined auxiliary functions are as follows: M0, M1, M2, M17, M30, M6, M3, M4, M5, M19, M70, M40, M41, M42, M43, M44, M45, S The setting for these cannot be changed.
Related to .... MD 22040: AUXFU_PREDEF_GROUP MD 22050: AUXFU_PREDEF_TYPE MD 22060: AUXFU_PREDEF_EXTENSION MD 22080: AUXFU_PREDEF_SPEC
22080 AUXFU_PREDEF_SPEC MD number Output specification Default setting: 0x81, ... Minimum input limit: Maximum input limit: Change effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Specifies the output option for the predefined auxiliary functions
The predefined auxiliary functions are as follows: M0, M1, M2, M17, M30, M6, M3, M4, M5, M19, M70, M40, M41, M42, M43,M44, M45, S The setting for M0, M1, M2, M17, M30 and M6 cannot be modified! Significance of set bit: 0: Normal acknowledgment following an OB1 cycle 1: Quick acknowledgment with OB40 3: No output to the VDI 4: Spindle response following acknowledgment 5: Output prior to motion 6: Output during motion 7:Output at block end
Related to .... MD 22040: AUXFU_PREDEF_GROUP MD 22050: AUXFU_PREDEF_TYPE MD 22060: AUXFU_PREDEF_EXTENSION MD 22070: AUXFU_PREDEF_VALUE
22100 AUXFU_QUICK_BLOCKCHANGE MD number Block change without delay Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: INT Applies from SW 5 Significance: Block change is not delayed with high-speed auxiliary functions 0: With high-speed auxiliary function output, the block change is delayed until the acknowledgement is received from the PLC (OB40). 1: With high-speed auxiliary function output to the PLC, the block change is not delayed. MD irrelevant for ... Auxiliary functions with normal acknowledgment References /FBSY/, Synchronized Actions
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/4-41
11.02 10.00
22110 AUXFU_H_TYPE_INT MD number Type of H auxiliary functions Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: INT Applies from SW 5 Significance: 0: The values of H auxiliary functions are presented in floating point format. The maximum value range is +/3.4028 ex 38. 1: The value of H auxiliary functions is rounded and converted to integer format. The basic program in the PLC must interpret the value as an integer. The value range is 2147483648 to 2147483647. With SW 5.2 and higher, the H function can be entered with ten decades. MD 22110 has the value 0 (compatible with the old software version). Up to 5 decades, the result is identical, and if more than five decades are programmed, the response is different. The function is represented as an exponential function.
22200 AUXFU_M_SYNC_TYPE MD number Output timing of M functions Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Synchronization of M auxiliary functions with respect to a simultaneously programmed axis motion. 0 = Output before the movement 1 = Output during the movement (the movement may have not yet begun depending on the time of the PLC fetch) 2 = Output at the end of the block 3 = No output to the PLC (hence no block change delay) Caution: The group assignment has a higher priority! All M functions must be output to the PLC before the motion commences MD: AUXFU_M_SYNC_TYPE=0
Application example(s)
22210 AUXFU_S_SYNC_TYPE MD number Output timing of S functions Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Synchronization of S auxiliary functions with respect to a simultaneously programmed axis motion. 0 = Output before the movement 1 = Output during motion 2 = Output at the end of the block 3 = No output to the PLC (hence no block change delay) Caution: The group assignment has a higher priority! All S functions must be output to the PLC before the motion commences MD: AUXFU_S_SYNC_TYPE=0
Application example(s)
1/H2/4-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
22220 AUXFU_T_SYNC_TYPE MD number Output timing of T functions Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Synchronization of T auxiliary functions with respect to a simultaneously programmed axis motion. 0 = Output before the movement 1 = Output during motion 2 = Output at the end of the block 3 = No output to the PLC (hence no block change delay) Caution: The group assignment has a higher priority! All T functions must be output to the PLC before the motion commences MD: AUXFU_T_SYNC_TYPE=0
Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/4-43
11.02 10.00
22230 AUXFU_H_SYNC_TYPE MD number Output timing of H functions Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Synchronization of H auxiliary functions with respect to a simultaneously programmed axis motion. 0 = Output before the movement 1 = Output during motion 2 = Output at the end of the block 3 = No output to the PLC (hence no block change delay) Caution: The group assignment has a higher priority! All H functions must be output to the PLC while the axis/spindle is moving MD: AUXFU_H_SYNC_TYPE=1
Application example(s)
22240 AUXFU_F_SYNC_TYPE MD number Output timing of F functions Default setting: 3 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Synchronization of F auxiliary functions with respect to a simultaneously programmed axis motion. 0 = Output before the movement 1 = Output during motion 2 = Output at the end of the block 3 = No output to the PLC (hence no block change delay) Caution: The group assignment has a higher priority! All F functions must be output to the PLC at the end of the block. MD: AUXFU_F_SYNC_TYPE=2
Application example(s)
22250 AUXFU_D_SYNC_TYPE MD number Output timing of D functions Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Synchronization of D auxiliary functions with respect to a simultaneously programmed axis motion. 0 = Output before the movement 1 = Output during motion 2 = Output at the end of the block 3 = No output to the PLC (hence no block change delay) Caution: The group assignment has a higher priority! None of the D functions must be output to the PLC. MD: AUXFU_D_SYNC_TYPE=3
Application example(s)
1/H2/4-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
22252 AUXFU_DL_SYNC_TYPE MD number Output time of DL functions Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 5.2 Significance: Synchronization of D auxiliary functions with respect to a simultaneously programmed axis motion. 0 = Output before the movement 1 = Output during motion 2 = Output at the end of the block 3 = No output to the PLC (hence no block change delay) Caution: The synchronization type of the group, to which individual auxiliary functions can be assigned via the configuration, has higher priority! None of the DL functions are to be output to the PLC. MD: AUXFU_DL_SYNC_TYPE=3
Application example(s)
22254 AUXFU_ASSOC_M0_VALUE MD number Additional M fct. for program stop Default setting: 1 Minimum input limit: 6 Maximum input limit: 0x7FFF Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.4 Significance: This machine data specifies an additional, predefined M function which behaves in the same way as M0. The value of the machine data corresponds to the M auxiliary function number. The MD must not be set to any of the following values: 0, 1, 2, 3, 4, 5, 17, 19, 30, 40, 41, 42, 43, 44, 45, 70 It must also have a different setting to the value in MD 22256. Restriction: see MD 10715: M_NO_FCT_CYCLE MD 22256: AUXFU_ASSOC_M1_VALUE /FB/, K1, Mode Group, Channel, Program Operation, Subroutine Call with M/T Functions
22256 AUXFU_ASSOC_M1_VALUE MD number Additional M fct. for conditional stop Default setting: 1 Minimum input limit: 6 Maximum input limit: 0x7FFF Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.4 Significance: This machine data specifies an additional, predefined M function which behaves in the same way as M1. The value of the machine data corresponds to the M auxiliary function number. The MD must not be set to any of the following values: 0, 1, 2, 3, 4, 5, 17, 19, 30, 40, 41, 42, 43, 44, 45, 70 It must also have a different setting to the value in MD 22254. Restriction: see MD 10715: M_NO_FCT_CYCLE MD 22254: AUXFU_ASSOC_M0_VALUE /FB/, K1, Mode Group, Channel, Program Operation, Subroutine Call with M/T Functions
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/4-45
11.02 10.00
22300 AUXFU_AT_BLOCK_SEARCH_END MD number Output of auxiliary functions after block search Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 to 3.2 Significance: This machine data defines the output mode of auxiliary functions accumulated during a block search. 1: Unconditional output of the accumulated auxiliary functions at the end of a block search. 0: Output of accumulated auxiliary functions after actuation of NC start at the end of a block search.
1/H2/4-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Descriptions
5.1
5.1.1
Channel-specific signals
Signals to channel
DB 2130 DBX30.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Activate associated M01 Signal from PLC to channel (PLC> NCK) Signal(s) updated: Signal(s) valid from SW: 6.4 PLC signals to NCK that associated M01 (auxiliary function) must be activated. Deactivate associated M01 (auxiliary function). DB 2130, DBX 318.5
5.1.2
DB2130 DBB58,6065 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
M, S, T, D, H, F functions change Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW: 1.1 NCK An M, S, T, D, H or F function has been output to the interface with a new value together with the associated change signal at the beginning of an OB1 cycle. In this case, the change signal indicates that the appropriate value is valid. The change signals are reset by the basic PLC program at the beginning of the next OB1 cycle. The value of the data concerned is not valid.
DB2130 DBB6064 DBB6667 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
M, S, T, D, H, F functions Additional info Quick (high-speed acknowledgment) Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW: 4.1 NCK An M, S, T, D, H or F function has been output to the interface with a new value together with the associated change signal at the beginning of an OB1 cycle. In this case, the additional info Quick indicates that the auxiliary function is programmed for high-speed acknowledgment. The change signals are reset by the basic PLC program at the beginning of the next OB1 cycle. The value of the data concerned is not valid.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/5-47
10.00
DB2130 DBX59.0 to DBX59.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
M Fct. 15 not included in list Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW: 1.1 NCK M function is higher than 99 (with extended address = 0) or not included in the decoding list with an extended address > 0. This signal together with the associated M change signal is applied to the interface at the beginning of an OB1 cycle. Cause: Incorrect M function programmed. M function not configured in the decoding list of the PLC. Remedy, e.g. PLC sets Read-in disable Output of a PLC alarm M function is lower than 99 (with extended address = 0) or included in the decoding list with an extended address > 0.
DB2130 DBB6897 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
M functions 1 to 5 Extended address M functions 1 to 5 Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW: 1.1 NCK Up to 5 M functions programmed in an NC block are made available here simultaneously as soon as the M change signals are applied.
Value range of M functions: 0 to 9999 9999; integer Value range of extended address: 0 to 99; integer The M functions remain valid until they are overwritten by new M functions. Signal state 0 or signal After PLC power-up. transition 1 > 0 All auxiliary functions are deleted before a new function is entered. Application example(s) Decoding or evaluation of M functions that are not decoded as standard or via a list. The extended address allows the M function to be assigned to a channel other than the one in which the program is running. Special cases, errors, ... ... The extended address for M00 to M99 = 0.
DB2130 DBB98115 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
S functions 1 to 3 Extended address S functions 1 to 3 Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW 1.1 NCK Up to 3 S functions programmed in an NC block are made available here simultaneously as soon as the S change signals are applied. Value range of spindle speed: 0 to 999,999; integer Value range of extended address: 0 to 6; integer The S functions remain valid until they are overwritten by new S functions. After PLC power-up. All auxiliary functions are deleted before a new function is entered. Spindle speed control by the PLC. The extended address is used to program the spindle for which the S word is valid. E.g. S2=500
1/H2/5-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
T function 1 Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW: 1.1 NCK Signal state 1 or signal The T function programmed in an NC block is made available here as soon as the T transition 0 > 1 change signal is applied. Value range of T function: 099,999,999; integer The T function remains valid until it is overwritten by a new T function. Signal state 0 or signal After PLC power-up. transition 1 > 0 All auxiliary functions are deleted before a new function is entered. Application example(s) Control of automatic tool selection. Special cases, errors, ... ... When T0 is selected, the current tool is removed from the tool holder but not replaced by a new tool (default configuration by machine manufacturer).
D function 1 Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW: 1.1 NCK Signal state 1 or signal The D function programmed in an NC block is made available here as soon as the transition 0 > 1 D change signal is applied. Value range of D function: 0999; integer The D function remains valid until it is overwritten by a new D function. Signal state 0 or signal After PLC power-up. transition 1 > 0 All auxiliary functions are deleted before a new function is entered. Application example(s) Implementation of protective functions. Special cases, errors, ... ... D0 is reserved for deselecting the current tool offset.
DB2130 DBB140157 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
H functions 1 to 3 Extended address H functions 1 to 3 Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW: 1.1 NCK Up to 3 H functions programmed in an NC block are made available here simultaneously as soon as the H change signals are applied. Value range of H function: Floating point (according to MC5+format) Value range of extended address: 0 to 99; integer The H functions remain valid until they are overwritten by new H functions. After PLC power-up. All auxiliary functions are deleted before a new function is entered. Switching functions on the machine.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/5-49
10.00
DB2130 DBB158193 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
F functions 1 to 6 Extended address F functions 1 to 6 Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW: 1.1 NCK Up to 6 F functions (one path feed and up to 5 axis-specific feeds for positioning axes) are made available here simultaneously as soon as the F change signals are applied. Value range of F function: Floating point (according to MC5+format) Value range of extended address: 0 to 18; integer The extended address of the F function is generated from the feed mode (path feed or axis-specific feed) and the axis name. It is coded as follows: 0: Path feed; e.g.: F=1000 1 to 18: Machine axis number of positioning axis with axis-specific feedrate; e.g. FA[X1]=500 The F functions remain valid until they are overwritten by new F functions. After PLC powerup. All auxiliary functions are deleted before a new function is entered. Control of programmed F word by the PLC, e.g. through overwriting of the set feedrate override. MD: AUXFU_F_SYNC_TYPE Output time of the F functions
DB2130 DBB194206 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Dynamic M functions: M0 M99 Signal(s) from channel (NCK > PLC) Signal(s) updated: Job-controlled by Signal(s) valid from SW 1.1 NCK The dynamic M signal bits are set by decoded M functions. With a general auxiliary function output, dynamic M signal bits are acknowledged by the basic PLC program once the complete OB1 routine has been executed once. In the case of high-speed auxiliary function outputs, they are acknowledged within the same OB40 cycle once the PLC has recognized the auxiliary functions. Spindle clockwise/counterclockwise rotation, switch coolant ON/OFF
Application example(s)
DB 2130 DBX318.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Associated M01/M00 active Signal from channel (NCK >PLC) Signal(s) updated: Signal(s) valid from SW: 6.4 This bit indicates that an M00 or M01 auxiliary function is active if these associated (auxiliary) functions have been enabled/activated beforehand. No associated M00/M01 auxiliary functions active. DB 2130, DBX30.5
1/H2/5-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
5.2
Axis-specific signals
Value of F auxiliary function Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: Job-controlled Signal(s) valid from SW: 1.1 The values of the F auxiliary functions for positioning axes are stored here. The axis to which each value applies is determined by the extended address.
Value of M auxiliary function Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: Job-controlled Signal(s) valid from SW: 1.1 The values for the M3, M4 and M5 auxiliary functions are sent to the associated interface for the addressed spindle.
Value of S auxiliary function Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: Job-controlled Signal(s) valid from SW: 1.1 The values for the S auxiliary functions are sent to the associated interface for the addressed spindle.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/5-51
10.00
Notes
1/H2/5-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Example
6
The machine data of the necessary auxiliary functions must be defined for a machine tool with the following configuration:
Machine configuration
S Gear stages
Stages 15 for master spindle
S Cooling water
No. 1 No. 1 No. 2 No. 2 On Off On Off = M50 = M51 = M52 = M53
S M3, M4, M5, M70 and M1=3, M1=4, M1=5, M1=70 are assigned as
standard to auxiliary function group 2.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/6-53
10.00
The output period for auxiliary functions and the method by which they are synchronized with a programmed motion are determined by the following requirements: Spindle 1 (master spindle):
M40 to M45, M1=40 to M1=45 (group 9) are output as normal auxiliary functions prior to the motion.
Spindle 2:
M2=3, M2=4, M2=5, M2=70 (group 10) are output as high-speed functions prior to the motion. S2 values (group 11) are output as high-speed auxiliary functions prior to the motion.
Cooling water:
M50, M51 (group 12) and M52, M53 (group 13) are output as normal auxiliary functions prior to the motion.
General: A total of 21 auxiliary functions are distributed among all groups. $MN_AUXFU_MAXNUM_GROUP_ASSIGN=21 Spindle 1: Specification of group 2 deviating from defaults: $MN_AUXFU_GROUP_SPEC[1]=H22; (coding as hex value) Specification of group 3 deviating from defaults: $MN_AUXFU_GROUP_SPEC[2]=H22; (coding as hex value) Specification of group 9: $MN_AUXFU_GROUP_SPEC[8]=H21; (coding as hex value)
1/H2/6-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Description of 1st auxiliary function: M40 ... Description of 6th auxiliary function: M45 $MC_AUXFU_ASSIGN_TYPE[0]=M $MC_AUXFU_ASSIGN_EXTENSION[0]=0 $MC_AUXFU_ASSIGN_VALUE[0]=40 $MC_AUXFU_ASSIGN_GROUP[0]=9 : $MC_AUXFU_ASSIGN_TYPE[5]=M $MC_AUXFU_ASSIGN_EXTENSION[5]=0 $MC_AUXFU_ASSIGN_VALUE[5]=45 $MC_AUXFU_ASSIGN_GROUP[5]=9 Description of 7th auxiliary function: M1=40 ... Description of 12th auxiliary function: M1=45 $MC_AUXFU_ASSIGN_TYPE[6]=M $MC_AUXFU_ASSIGN_EXTENSION[6]=1 $MC_AUXFU_ASSIGN_VALUE[6]=40 $MC_AUXFU_ASSIGN_GROUP[6]=9 : $MC_AUXFU_ASSIGN_TYPE[11]=M $MC_AUXFU_ASSIGN_EXTENSION[11]=1 $MC_AUXFU_ASSIGN_VALUE[11]=45 $MC_AUXFU_ASSIGN_GROUP[11]=9 Spindle 2: Specification of group 10: $MN_AUXFU_GROUP_SPEC[9]=H22; (coding as hex value) Description of 13th auxiliary function: M2=3 $MC_AUXFU_ASSIGN_TYPE[12]=M $MC_AUXFU_ASSIGN_EXTENSION[12]=2 $MC_AUXFU_ASSIGN_VALUE[12]=3 $MC_AUXFU_ASSIGN_GROUP[12]=10 Description of 14th auxiliary function: M2=4 $MC_AUXFU_ASSIGN_TYPE[13]=M $MC_AUXFU_ASSIGN_EXTENSION[13]=2 $MC_AUXFU_ASSIGN_VALUE[13]=4 $MC_AUXFU_ASSIGN_GROUP[13]=10 Description of 15th auxiliary function: M2=5 $MC_AUXFU_ASSIGN_TYPE[14]=M $MC_AUXFU_ASSIGN_EXTENSION[14]=2 $MC_AUXFU_ASSIGN_VALUE[14]=5 $MC_AUXFU_ASSIGN_GROUP[14]=10 Description of 16th auxiliary function: M2=70 $MC_AUXFU_ASSIGN_TYPE[15]=M $MC_AUXFU_ASSIGN_EXTENSION[15]=2 $MC_AUXFU_ASSIGN_VALUE[15]=70 $MC_AUXFU_ASSIGN_GROUP[15]=10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/6-55
10.00
Specification of group 11: $MN_AUXFU_GROUP_SPEC[10]=H22; (coding as hex value) Description of 17th auxiliary function: S2= .... $MC_AUXFU_ASSIGN_TYPE[16]=S $MC_AUXFU_ASSIGN_EXTENSION[16]=2 $MC_AUXFU_ASSIGN_VALUE[16]=1 $MC_AUXFU_ASSIGN_GROUP[16]=11 Cooling water: Specification of group 12: $MN_AUXFU_GROUP_SPEC[11]=H21; (coding as hex value) Description of 18th auxiliary function: M50 $MC_AUXFU_ASSIGN_TYPE[17]=M $MC_AUXFU_ASSIGN_EXTENSION[17]=0 $MC_AUXFU_ASSIGN_VALUE[17]=50 $MC_AUXFU_ASSIGN_GROUP[17]=12 Description of 19th auxiliary function: M51 $MC_AUXFU_ASSIGN_TYPE[18]=M $MC_AUXFU_ASSIGN_EXTENSION[18]=0 $MC_AUXFU_ASSIGN_VALUE[18]=51 $MC_AUXFU_ASSIGN_GROUP[18]=12 Specification of group 13: $MN_AUXFU_GROUP_SPEC[12]=H21; (coding as hex value) Description of 20th auxiliary function: M52 $MC_AUXFU_ASSIGN_TYPE[19]=M $MC_AUXFU_ASSIGN_EXTENSION[19]=0 $MC_AUXFU_ASSIGN_VALUE[19]=52 $MC_AUXFU_ASSIGN_GROUP[19]=13 Description of 21th auxiliary function: M53 $MC_AUXFU_ASSIGN_TYPE[20]=M $MC_AUXFU_ASSIGN_EXTENSION[20]=0 $MC_AUXFU_ASSIGN_VALUE[20]=53 $MC_AUXFU_ASSIGN_GROUP[20]=13
1/H2/6-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
7
Name Reference
7.1
Interface signals
Byte.Bit
DB number Channel-specific 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130
30.5 58.0 58.1 58.2 58.3 58.4 59.0 59.1 59.2 59.3 59.4 60.0 60.1 60.2 60.4 605 60.6 61.0 61.1 61.2 61.4 61.5 61.6 62.0 62.1 62.2 62.4 62.5 62.6 63.0
Activate associated M01 M function 1 change M function 2 change M function 3 change M function 4 change M function 5 change M function 1 not included in list M function 2 not included in list M function 3 not included in list M function 4 not included in list M function 5 not included in list S function 1 change S function 2 change S function 3 change S function 1 quick S function 2 quick S function 3 quick T function 1 change T function 2 change T function 3 change T function 1 quick T function 2 quick T function 3 quick D function 1 change D function 2 change D function 3 change D function 1 quick D function 2 quick D function 3 quick E function 1 change
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/7-57
10.00
DB number Channel-specific 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130
Byte.Bit
Name
Reference
63.4 64.0 64.1 64.2 64.4 64.5 64.6 65.0 65.1 65.2 65.3 65.4 65.5 66.0 66.1 66.2 66.3 66.4 67.0 67.1 67.2 67.3 67.4 67.5 6869 7073 7475 7679 8081 8285 8687 8891 9293 9497 9899 100103 104105 106109 110111 112115 116117
E function 1 quick H function 1 change H function 2 change H function 3 change H function 1 quick H function 2 quick H function 3 quick F function 1 change F function 2 change F function 3 change F function 4 change F function 5 change F function 6 change M function 1 quick M function 2 quick M function 3 quick M function 4 quick M function 5 quick F function 1 quick F function 2 quick F function 3 quick F function 4 quick F function 5 quick F function 6 quick Extended address of M function 1 (dual) M function 1 (DInt) Extended address of M function 2 (dual) M function 2 (DInt) Extended address of M function 3 (dual) M function 3 (DInt) Extended address of M function 4 (dual) M function 4 (DInt) Extended address of M function 5 (dual) M function 5 (DInt) Extended address of S function 1 (dual) S function 1 (Real) Extended address of S function 2 (dual) S function 2 (Real) Extended address of S function 3 (dual) S function 3 (Real) Extended address of T function 1 (dual)
1/H2/7-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
DB number Channel-specific 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130 2130
Byte.Bit
Name
Reference
118119 120121 122123 124125 126127 128 129 130 131 132 133 134135 136 140 142145 146 148151 152 154157 158 160163 164 166169 170 172175 176 178181 182 184187 188 190193 194.0194.7 195.0195.7 196.0196.7 197.0197.7 198.0198.7 199.0199.7 200.0200.7 201.0201.7 202.0202.7 203.0203.7
T function 1 (Int) Extended address of T function 2 (dual) T function 2 (Int) Extended address of T function 3 (dual) T function 3 (Int) Extended address of D function 1 (dual) D function 1 (dual) Extended address of D function 2 (dual) D function 2 (dual) Extended address of D function 3 (dual) D function 3 (dual) Extended address of E function (dual) E function (REAL) Extended address of H function 1 (dual) H function 1 (Real format) Extended address of H function 2 (dual) H function 2 (Real format) Extended address of H function 3 (dual) H function 3 (Real format) Extended address of F function 1 (dual) F function 1 (Real format) Extended address of F function 2 (dual) F function 2 (Real format) Extended address of F function 3 (dual) F function 3 (Real format) Extended address of F function 4 (dual) F function 4 (Real format) Extended address of F function 5 (dual) F function 5 (Real format) Extended address of F function 6 (dual) F function 6 (Real format) Dynamic M function: M00M07 Dynamic M function: M08M15 Dynamic M function: M16M23 Dynamic M function: M24M31 Dynamic M function: M32M39 Dynamic M function: M40M47 Dynamic M function: M48M55 Dynamic M function: M56M63 Dynamic M function: M64M71 Dynamic M function: M72M79
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/7-59
11.02 10.00
Byte.Bit
Name
Reference
Dynamic M function: M80M87 Dynamic M function: M88M95 Dynamic M function: M96M99 Associated M00/M01 active
DB number Axis-specific 3161 3161 3161 DBD 78 DBD 86 DBD 88 Value of F function Value of M function Value of S function
Name
Reference
7.2
Number
Machine data
Identifier Name Reference
General ($MN_ ... ) 10713 10714 11100 11110 M_NO_FCT_STOPRE M_NO_FCT_EOP AUXFU_MAXNUM_GROUP_ASSIGN AUXFU_GROUP_SPEC[n], M function with preprocessing stop (w SW 6.3) M function for spindle active after RESET Number of auxiliary functions distributed among the AUXFU groups Auxiliary function group specification S1
Channel-specific ($MC_ ... ) 20110 20112 20270 20800 22000 22010 22020 22030 22035 22040 22050 22060 22070 22080 22100 22110 RESET_MODE_MASK START_MODE_MASK CUTTING_EDGE_DEFAULT SPF_END_TO_VDI AUXFU_ASSIGN_GROUP[n] AUXFU_ASSIGN_TYPE[n] AUXFU_ASSIGN_EXTENSION[n] AUXFU_ASSIGN_VALUE[n] AUXFU_ASSIGN_SPEC AUXFU_PREDEF_GROUP AUXFU_PREDEF_TYPE AUXFU_PREDEF_EXTENSION AUXFU_PREDEF_VALUE AUXFU_PREDEF_SPEC AUXFU_QUICK_BLOCKCHANGE AUXFU_H_TYPE_INT Def. of control initial setting after part program start Definition of control initial setting after power-up and on RESET or at parts program end Basic setting of tool cutting edge without programming Subprogram end to PLC Auxiliary function group Type of auxiliary function Auxiliary function extension Auxiliary function value Output specification (user-def. auxiliary function) Predefined auxiliary function groups Predefined auxiliary function type Predefined auxiliary function extension Predefined auxiliary function value Output specification (predefined auxiliary function) Block change without delay Type of H auxiliary functions K2 K2 W1
1/H2/7-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Channel-specific ($MC_ ... ) 22200 22210 22220 22230 22240 22250 22252 22254 22256 22300 AUXFU_M_SYNC_TYPE AUXFU_S_SYNC_TYPE AUXFU_T_SYNC_TYPE AUXFU_H_SYNC_TYPE AUXFU_F_SYNC_TYPE AUXFU_D_SYNC_TYPE AUXFU_DL_SYNC_TYPE AUXFU_ASSOC_M0_V ALUE AUXFU_ASSOC_M1_V ALUE AUXFU_AT_BLOCK_SEARCH_END Output time for M functions Output timing of S functions Output timing of T functions Output time for H functions Output timing of F functions Output timing of D functions Output time of DL functions Additional M function for program stop Additional M function for conditional stop Output of auxiliary functions after block search (not relevant with SW 4 and higher)
7.3
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/H2/7-61
10.00
Notes
1/H2/7-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.2 2.2.1 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.5.10 2.5.11 Mode group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mode group stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mode group reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-dependent technological applications . . . . . . . . . . . . . . . . . Mode groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Monitoring functions and interlocks of the individual modes . . . . . . Mode change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program execution without setpoint output . . . . . . . . . . . . . . . . . . . . Program execution in single block mode . . . . . . . . . . . . . . . . . . . . . . Program execution with dry run feedrate . . . . . . . . . . . . . . . . . . . . . . Skip part program blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Block search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Block search functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sequence for block searches of type 1, 2 and 4 (SW 4.3 and later) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Automatic start of an ASUB following block search (SW 6.1 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Cascaded block search (SW 6.1 and higher) . . . . . . . . . . . . . . . . . . Examples of block search with calculation . . . . . . . . . . . . . . . . . . . . . Block search in Program Test mode, SERUPRO . . . . . . . . . . . . . . . Stop at any point in the program for SERUPRO (SW 6.4 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Multiple starts with SERUPRO in different channels . . . . . . . . . . . . Carrying out SERUPRO in a group of channels (SW 6.4 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SERUPRO sequence without defining a search target beforehand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System variables updated by the SERUPRO sequence (SW 6.1 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/K1/1-5 1/K1/2-9 1/K1/2-9 1/K1/2-11 1/K1/2-12 1/K1/2-13 1/K1/2-15 1/K1/2-16 1/K1/2-18 1/K1/2-19 1/K1/2-20 1/K1/2-20 1/K1/2-22 1/K1/2-24 1/K1/2-25 1/K1/2-26 1/K1/2-27 1/K1/2-28 1/K1/2-31 1/K1/2-31 1/K1/2-33 1/K1/2-36 1/K1/2-41 1/K1/2-42 1/K1/2-44 1/K1/2-46 1/K1/2-47
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/i
2.5.12 2.5.14 2.5.15 2.5.16 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.6.10 2.6.11 2.6.12 2.6.13 2.6.14 2.6.15 2.7 2.7.1 2.7.2 2.7.3 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.9 2.9.1 2.10 2.10.1 2.10.2 2.10.3 2.11 2.11.1 2.11.2 3 4
NC functions supported in SERUPRO (SW 6.3 and higher) . . . . . . SERUPRO ASUB (SW 6.3 and higher) . . . . . . . . . . . . . . . . . . . . . . . Continue machining after SERUPRO search target found . . . . . . . Reapproach contour with controlled REPOS (SW 6.3 and higher) Program operation mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Initial settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Part program selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Start of part program or part program block . . . . . . . . . . . . . . . . . . . Parts program interruption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RESET command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Response to operator and program actions . . . . . . . . . . . . . . . . . . . . Start part program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Time diagram example for a program run . . . . . . . . . . . . . . . . . . . . . Repeating program sections (SW 4 and higher) . . . . . . . . . . . . . . . . Event-driven program calls (SW 6.1 and higher) . . . . . . . . . . . . . . . Asynchronous subroutines (ASUBs), interrupt routines . . . . . . . . . . Calling the ASUB outside program operation (SW 4 and higher) . . User-defined system ASUBs (SW 4 and higher) . . . . . . . . . . . . . . . Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Decoding single block SBL2 with implicit preprocessing stop (SW 6.3 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Single block suppression via SBLOF (SW 4.2 and higher) . . . . . . . Preventing single block suppression (SW 4.2 and higher) . . . . . . . Program control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Control via the operator interface and the PLC . . . . . . . . . . . . . . . . . Multiple skip levels (SW 5 and later) . . . . . . . . . . . . . . . . . . . . . . . . . . Use of a reduced interpolation buffer . . . . . . . . . . . . . . . . . . . . . . . . . Basic block display (SW 6.4 and higher) . . . . . . . . . . . . . . . . . . . . . . Execution from external source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Execute external subroutine (SW 4 and higher) . . . . . . . . . . . . . . . . Reset response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System settings for power-up, RESET/end of parts program, and parts program start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Subroutine call with M and T functions . . . . . . . . . . . . . . . . . . . . . . . . M function replacement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . T function replacement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Examples for M/T function replacement for tool change . . . . . . . . . Program runtime/workpiece counter (SW 5.2 and higher) . . . . . . . . Program runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workpiece counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/K1/2-50 1/K1/2-58 1/K1/2-61 1/K1/2-67 1/K1/2-69 1/K1/2-69 1/K1/2-70 1/K1/2-70 1/K1/2-71 1/K1/2-73 1/K1/2-73 1/K1/2-75 1/K1/2-76 1/K1/2-77 1/K1/2-78 1/K1/2-79 1/K1/2-80 1/K1/2-86 1/K1/2-90 1/K1/2-94 1/K1/2-97 1/K1/2-97 1/K1/2-98 1/K1/2-100 1/K1/2-101 1/K1/2-101 1/K1/2-102 1/K1/2-103 1/K1/2-104 1/K1/2-109 1/K1/2-110 1/K1/2-113 1/K1/2-113 1/K1/2-121 1/K1/2-122 1/K1/2-124 1/K1/2-125 1/K1/2-127 1/K1/2-127 1/K1/2-129 1/K1/4-131 1/K1/4-131 1/K1/4-131 1/K1/4-133 1/K1/4-143
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 Machine data for operator panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine data for processing programs from external (SW 4 and later) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/K1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Block search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ASUB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reset and starting response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic block display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting data for processing programs from external (SW 4 and later) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting data: Enable basic block display (SW 6.4 and later) . . . . . .
1/K1/4-145 1/K1/4-150 1/K1/4-153 1/K1/4-154 1/K1/4-164 1/K1/4-165 1/K1/4-166 1/K1/4-167 1/K1/4-167 1/K1/5-169 1/K1/5-169 1/K1/5-175 1/K1/5-192 1/K1/7-195 1/K1/7-195 1/K1/7-195 1/K1/7-195 1/K1/7-196 1/K1/7-197 1/K1/7-197 1/K1/7-198 1/K1/7-198 1/K1/7-199 1/K1/7-200 1/K1/7-201 1/K1/7-202 1/K1/7-202 1/K1/7-203 1/K1/7-204 1/K1/7-204 1/K1/7-204 1/K1/7-205 1/K1/7-207 1/K1/7-207 J
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.2 5.3 Mode group-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 7
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.1.1 7.1.2 7.2 7.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.2.6 7.2.7 7.3 7.4 7.5 7.5.1 7.5.2 7.5.3 7.5.4 7.6 General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General machine data for operator panel . . . . . . . . . . . . . . . . . . . . . . General machine data mode group/program operation . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic machine data of channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Block search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reset response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Auxiliary function settings of the channel . . . . . . . . . . . . . . . . . . . . . . Transformation definitions in channel . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific memory settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program runtime and workpiece counter (SW 5.2 and higher) . . . . Axis/spindle-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Analog inputs and outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DB11, ... Mode group signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DB21, ... Channel signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DB 31, ... Axis-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/iii
Notes
1/K1/iv
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 1 Brief description
Brief Description
Mode group
A mode group is a collection of machine axes, spindles and channels which are programmed to form a unit. In principle, a single mode group equates to an independent NC control (with several channels). A mode group:
Note One mode group and one channel are configured as standard.
When configuring the channels, placeholder channels can be provided in order to keep the machines of a series as uniform as possible. Only the channels which are actually used are then activated. To test or trial run a new parts program, there is a variety of options in the test phase for significantly reducing critical situations:
Program testing
S Program execution without setpoint outputs S Program processing in single-block mode S Program processing with dry run feedrate S Skip parts program blocks S Block search with or without calculation.
Block search (SW 4.3 and higher)
Block search provides the following program simulation functions for searching for particular program points: Type 1 without calculation at the contour Type 2 with calculation at the contour Type 4 with calculation at block end point Type 5 automatic start at selected program point with calculation of all required data from history
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/1-5
Mode Group, Channel, Program Operation, Reset Response (K1) 1 Brief description
03.02 10.00
Automatic start of an ASUB after block search Cascaded block search Cross-channel block search in Program Testing mode The term Program operation mode refers to the state where parts programs or parts program blocks are processed in AUTOMATIC or MDA mode. Program processing can be modified with PLC interface signals and commands. Initial settings can be programmed in channel-specific machine data for each channel. These initial settings affect, for example, G groups and auxiliary function output. A parts program can be selected only if the relevant channel is in the Reset state. Furthermore, all further program runs are handled by PLC interface signals and the corresponding commands.
S Start of parts program or parts program block S Parts program calculation and program control S RESET command, program status and channel status S Response to operator and program actions S Event-driven program calls (SW 6.1 and higher)
Asynchronous subprograms (ASUB), interrupt routines Block
SW 4 and higher Interrupt inputs allow the NC to interrupt the current processing operation in the NC so that it can react to more urgent events in interrupt routines or ASUBs.
With the single block function, the user can process a parts program block by block. There are 3 types of setting for the single block function:
S SLB1 := IPO single block S SLB2 := Decoding single block. S SLB3 := Stop in cycle
Basic block display (SW 6.4 and higher)
A socalled basic block display showing all blocks which will generate an action on the machine can be called in parallel to the existing block display. The actually approached end positions are shown as an absolute position. The positional data refer either to the workpiece coordinate system (WCS) or the settable zero system (SZS).
In certain cases, the memory of the NC may be insufficient to machine a complex workpiece. The Process from external function (EXTCALL) allows subroutines from an external memory (e.g. from HMI Advanced hard disk) to be called (EXTCALL) and processed.
1/K1/1-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 1 Brief description
Reset response
The control system response can be altered for G codes such as tool length compensation, transformation, coupled axis groupings, tangential follow-up and programmable synchronous spindle functions for certain system settings after
S Power up (power ON), S Reset/parts program end and S Parts program start
by means of machine data.
For some applications it can be advantageous to replace M and/or T functions by a subroutine call. This can be used, for example, to call the tool change routine. The relevant machine data can be used to define and control subroutines accordingly with M and/or T functions:
SW 5.2 and higher Information on program runtime and workpiece counts is provided in order to support the machine tool operator. The functions defined for this purpose are not identical to the functions of tool management and are intended primarily for NC systems without tool management. (please refer to Section 2.11 for a detailed description)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/1-7
Mode Group, Channel, Program Operation, Reset Response (K1) 1 Brief description
10.00
Notes
1/K1/1-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.1 Mode group
Detailed Description
2.1
Mode group
A mode group combines NC channels with axes and spindles to form a machining unit. A mode group contains all those channels that always have to operate in the same mode.
Note The following description is based on one mode group and one channel. Functions requiring several channels (e.g. axis exchange) are described in References: /FB/, K5, Mode Groups, Channels, Axis Exchange
The configuration of a mode group defines which channels are to be included in the group.
A mode group may therefore contain one or several channels. Axes and/or spindles are assigned to a channel. Machine data MD10010: ASSIGN_CHAN_TO_MODE_GROUP is parameterized to assign a channel to a mode group. If the same mode group is addressed in several channels, these together form a mode group.
Note The control system does not know modegroup-specific data. It is, however, also possible to make some channel-specific settings pertaining to the mode group.
Channel-specific assignments
Axes can be assigned to different channels which, in turn, are allocated to different mode groups. The axes can then be swapped between these channels (axis replacement). Axis replacement functions independently of the mode group.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-9
Mode Group, Channel, Program Operation, Reset Response (K1) 2.1 Mode group
Machine axes and/or spindles are assigned to a channel, with the following different operating characteristics:
S Geometry axes S Channel axes S Special axes S Master spindle S Auxiliary spindles and
auxiliary axes
can be operated within a path grouping. Using the master spindle, they can perform functions such as G96, G961, G331, G332 etc. that are not defined as geometry axes can traverse as path axes, synchronous axes, positioning axes, PLC axes and command axes. have no geometric relationship with one another. Geometry axes can perform functions using the master spindle. are all other auxiliary axes, in addition to the master spindle spindles/axes in the channel.
The command Geo axis replacement can be programmed to declare a channel axis as a geometry axis and define its geometry axis number. Which spindle in the channel will be the master spindle is defined using SETMS. With SW 4.4 and higher, it is possible to configure each axis existing in the channel as a spindle. The number of axes per channel depends on the control version. In order to optimize the performance utilization, the available channel configurations and associated axes depend on the hardware. In the case of the SINUMERIK 840D, the various hardware/software versions allow up to 12 axes/spindles per channel. Up to 31 axes or up to 20 spindles are allowed per NCU. For further information about axis configurations, such as axis containers, link, reciprocating, main run, rotary, linear, leading and following axes, and details of the various versions, please refer to: References: /FB/, K2, Axes, Coordinate Sys., Frames, Workpieces IWS /FB/, S1, Spindles , /BU/, ordering information, Catalog NC 60
Modegroup-specific signals to/from the mode group are transferred to DB11 on the user interface. In this way the mode group can be monitored by the PLC or NCK. The following table lists all modegroup-specific signals:
Modegroup signals (PLC => NCK) Mode group reset Mode group stop axes plus spindles Mode group stop Mode change Mode: JOG, MDA, AUTOM. Single block: Type A, Type B Machine function: REF, REPOS, TEACH IN, Modegroup signals (NCK => PLC) Mode group strobe: JOG, MDA, AUTOMATIC Machine function strobe: REF, REPOS, TEACH IN All channels (1 to 10 max.) in reset state Mode group ready Active mode: JOG, MDA, AUTOMATIC Digitizing Active machine function: REF, REPOS, TEACH IN var. INC, 10000 INC ......... 1 INC
1/K1/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.1 Mode group
If the configuration of a mode group is modified with respect to its assigned channels, the modification becomes active only after a POWER ON. Modifications are made in MD 10010: ASSIGN_CHAN_TO_MODE_GROUP. Mode group numbers must be assigned contiguously starting with 1.
Machine data
Channel gaps
Channels to which a mode group is assigned with MD10010: ASSIGN_CHAN_TO_MODE_GROUP are considered active. In SW 4 and higher, the number 0 can be assigned to channels instead of a mode group. The result is as follows:
S The non-activated channel does not require memory in the control S Series machines with similar designs can be kept uniform during
configuration. Only the channels which can actually be used by the machine tool are activated. (Mode group number greater than 0) Special case: Channel 1 must always exist. If ASSIGN_CHAN_TO_MODE_GROUP[0] = 0 is specified, the control automatically sets ASSIGN_CHAN_TO_MODE_GROUP[0] = 1 (mode group 1). Example configuration: ASSIGN_CHAN_TO_MODE_GROUP[0] = 1 ASSIGN_CHAN_TO_MODE_GROUP[1] = 2 ... ASSIGN_CHAN_TO_MODE_GROUP[3] = 0 ... ASSIGN_CHAN_TO_MODE_GROUP[8] = 1 ASSIGN_CHAN_TO_MODE_GROUP[9] = 2
; gap
2.1.1
IS BAG-Stop (DB11, ... DBX0.5), IS BAG Stop axes plus spindles (DB11, ... DBX0.6) can be used to issue a stop signal (comparable to NC stop) simultaneously for each channel of the mode group. Depending on the interface signal used, either only the axes or in addition the spindles of the channels are stopped.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-11
Mode Group, Channel, Program Operation, Reset Response (K1) 2.1 Mode group
12.00 10.00
2.1.2
Activating interface signal IS Mode group reset (DB11, ... DBX0.7) effects a channel-specific reset for each channel in the mode group. The channels can be in different program states when the signals is set. For this reason the channels will execute this channel-specific Reset at different times. The channel-specific Resets are not signaled in the channel-specific interface. A new channel-specific start command cannot be executed until the mode group Reset has been completed. This state is indicated by IS All channels in reset state (DB11, ... BX6.7).
Although the channels within a mode group may be in different states, they are always reset by the mode group Reset command. Once the mode group resets have been executed, all channels of the mode group are in the reset state. A new channel-specific start command cannot be executed until the mode group Reset has been completed.
Execution of command
Activating interface signal IS Mode group reset (DB11, ... DBX0.7) aborts all active part programs in the channels of the mode group. The following actions are carried out when IS Mode group Reset is triggered:
S Parts program preparation in the individual channels is stopped immediately. S The axes and spindles of the channels are decelerated along a configurable
braking ramp. SW 6.2 and higher The block change time can be set for various motion end criteria in the braking ramp for single axis interpolation. For further information on block change in the braking ramp, please refer to: References: /FB/, P2, Positioning Axes, block change
S Any pending auxiliary functions from the individual channels or current block
are not longer output.
S To this aim, position the preprocessing pointer on the interruption point; the
block pointers of the channels will then be reset to the beginning of the appropriate parts programs.
S All Reset alarms are deleted from the display. S The mode group reset is complete as soon as IS All channels in Reset
state (DB11, ... DBX6.7) is set, or on the basic machine of the channel, for example, the following machine data fulfill this Reset condition: MD 20110: RESET_MODE_MASK bit 0 is set, or MD 20150: GCODE_RESET_VALUES[n] is set to its initial state, or MD 20152: GCODE_RESET_MODE[n] is set, or SW 6.1 and higher MD 20108: PROG_EVENT_MASK the user ASUB is activated for operator panel reset. See also Subsection 2.6.12 Event-driven program calls.
The ready-to-operate status of the mode group is indicated by IS Mode group Ready (DB11, ... DBX6.3) displayed.
1/K1/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.2 Channel
2.2
Channel
Axis
A channel (see Chapter 3) constitutes an NC in which a parts program can be executed at a time. Machine axes, geometry axes and positioning axes are assigned to the channels according to the machine configuration and the current program status (AXIS CHANGE, GEO AXIS CHANGE, SETMS). Each channel is assigned its own path interpolator with program processing by the system. Each channel can run its own machining program which is controlled from the PLC. The following channel-specific functions make it possible for the channels to process parts programs independently:
S Each channel has its own NC Start, NC Stop, Reset S One feedrate and rapid traverse override per channel S Dedicated interpreter for each channel S Dedicated path interpolator for each channel
which calculates the path points such that all the machining axes of the channel are controlled simultaneously by the path axes
S Selection and deselection of tool cutting edges and their length and radius
compensation for a tool in a specific channel Further information about tool compensation References: /FB/, W1, Tool offset
S Display of channel-specific alarm reactions S Display of current machining state (axis position, current G functions,
auxiliary functions, current program block) of each channel
Channel configuration
Individual channel names can be assigned to the channels in MD 20000: CHAN_NAME (channel name). The various axes are then assigned to the available channels via machine data. For one axis/spindle, only one setpoint-determined channel can exist at a time. The axis/spindle actual value can be read by several channels at the same time. The axis/spindle must be registered with the relevant channel.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-13
Mode Group, Channel, Program Operation, Reset Response (K1) 2.2 Channel
12.00 10.00
The following channel-specific settings can also be made in the machine data:
The channel configuration cannot be changed online by reprogramming a parts program or altering the PLC user program. Changes can only be made by via the machine data. These changes only take effect after a POWER ON.
An axis container combines a group of axes in a container. These axes are referred to as container axes. This involves assigning a pointer to a container slot (ring buffer location within the relevant container) to a channel axis. One of the axes in the container is located temporarily in this slot. Each machine axis in the axis container must be assigned at all times to exactly one channel axis. Link axes can be assigned permanently to one channel or dynamically (by means of an axis container switch) to several channels of the local or other NCU. A link axis is nonlocal from the perspective of one of the channels belonging to the NCU to which the axis is not physically connected. The assignment between the link axes and a channel is implemented
Machine data
Interface signals
NCK channel 1 signals lie in DB21 of the user interface, those of channel 2 in DB22. The channel or channels can be monitored and controlled from by PLC or NCK. The channel signals are described in Chapter 5.
1/K1/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.2 Channel
2.2.1
Machine data MD 27800: TECHNOLOGY_MODE. Among other functions, this information is evaluated for HMI, PLC and standard cycles. Siemens supplies standard machine data for milling. If the machine tool is not a milling machine, but some other type, a different data/program block can be loaded by the HMI or PLC depending on the technology mode set in the machine data.
In SW 6.2 and higher, it is possible to control special spindle motions via an axial PLC interface as an alternative to FC18 and to start and stop them using VDI interface signals without executing a parts program. This option is available only if the channel status (see Subsection 2.3 under operating modes) is interrupted or Reset and the program status (see 2.6.6) interrupted or aborted. This acceptance state will occur in case of Reset and in JOG mode. A separate spindle start can be set for each spindle. The following spindle functions can be controlled by PLC via interface signals:
S Spindle stop (equivalent to M5) S Spindle start clockwise (equivalent to M3) S Spindle start counter-clockwise (equivalent to M4) S Select gear stage S Spindle positioning (corresponds to M19)
In the case of multi-channel operation, the spindle started by the PLC becomes active in the channel that is handling the spindle when the start command is received. For further information about the special spindle interface: References: /FB/, S1, Spindles
In SW 6.3 and higher, it is possible to decouple a particular axis/spindle in the main run from the channel behavior triggered by the NC program run. The PLC identifies the corresponding axis/spindle from the axial VDI signal IS PLC controlling axis (DB31, ... DBB28.7) = 1 Assume control, IS PLC controlling axis (DB31, ... DBB28.7) = 0 Return control The following functions can be controlled from the PLC:
S Cancel axis/spindle sequence (equivalent to delete distance-to-go) S Stop or interrupt an axis/spindle S Resume an axis/spindle operation (continue the sequence of motions) S Reset an axis/spindle to the initial state.
The exact functionality of independent single-axis operations is described in: References: /FB/, P2, Positioning Axes For further information about channel-specific signal exchange (PLCNCK): References: /FB/, P3, Basic PLC Program
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-15
Mode Group, Channel, Program Operation, Reset Response (K1) 2.3 Mode groups
12.00 10.00
2.3
Mode groups
A mode group operates in one of the modes AUTOMATIC, JOG or MDA
Multiple channels
Several channels of the same mode group can not be in different modes at the same time. If individual channels are assigned to different mode groups, a channel switchover activates the corresponding mode group. This allows mode changes to be initiated implicitly. The following operating modes are available:
AUTOMATIC
S Automatic processing of parts programs S Parts program test S All channels of the mode group can be active at the same time
JOG
S The axes can be traversed manually with the handwheel or the traversing
keys.
S Parts program test. S A maximum of 1 channel per mode group can be active (applies only to
TEACH IN)
1/K1/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.3 Mode groups
Selection
The user can select the desired operating mode by means of soft keys on the operator interface. This selection (AUTOMATIC, MDA or JOG) is passed via interface signals IS Mode strobe (DB11, ... DBX4.0 to DBX4.2) to the PLC, but not yet activated.
The chosen group operating mode is activated via the signals on interface Mode (DB11, ... DBX0.0 to DBX0.2). If several modes are selected at the same time the priority is as follows:
The current group operating mode is activated via the signals on interface Active mode (DB11, ... DBX6.0 to DBX6.2).
After mode selection, a machine function can be selected which is then valid globally for the whole mode group. Within JOG mode One of the following machine functions can be selected:
S REPOS, (repositioning),
Reapproach contour with controlled REPOS, see Subsection 2.5.16. Within MDA mode One of the following machine functions can be selected:
The selection of machine function TEACH IN, REPOS or REF via the operator interface is stored in IS Machine function strobe (DB11, ... DBX5.0 to DBX5.2). The chosen machine function TEACH IN, REPOS or REF is activated on interface Machine function (DB11, ... DBX1.0 to DBX1.2). The active machine function TEACH IN, REPOS or REF is displayed on interface Active machine function (DB11, ... DBX7.0 to DBX7.2).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-17
Mode Group, Channel, Program Operation, Reset Response (K1) 2.3 Mode groups
Operating states
The following three channel states can occur in each mode: 1. Channel reset The machine is in the initial state. This is defined by the machine manufacturers PLC program, e.g. after POWER ON or at the end of the program. 2. Channel active A program has started; program execution or reference point approach is in progress. 3. Channel interrupted The running program or reference point approach has been interrupted.
User-specific functions are available within the modes. These functions are not related to any particular technology or machine. A subset of the available functions can be selected in each mode, depending on the operating state. These functions are categorized as follows:
2.3.1
Different monitoring functions are active in individual operating modes. These monitoring functions are not related to any particular technology or machine. In a particular mode only some of the monitoring functions are active depending on the operating status. The channel state determines which monitoring functions are active in which mode and operating state.
A variety of interlocks can be active in the different operating modes. These interlocks are not related to any particular technology machine. Almost all the interlocks can be activated in every mode, depending on the operating status.
1/K1/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.3 Mode groups
2.3.2
Mode change
General
Switchover to another operating mode is requested and activated via the mode group interface (DB11, ...). A mode group will either be in AUTOMATIC, JOG or MDA mode, i.e. it is not possible for several channels in a mode group to accept different modes at the same time. What mode transitions are possible and how these are executed is configured machine-specifically in the PLC program.
Note The mode is not changed internally until the signal Channel status active is no longer pending. All channels must have entered a permissible operating mode before an error-free mode change can be performed.
The following table shows possible mode changes for one channel.
Table 2-1 Mode change AUTOMATIC from JOG AUTO MDA (MDI) Interrupt Reset X X X X X MDA (MDI) JOG without handwheel Interrupt Active AUTO
Reset
Interrupt
Reset X
Interrupt X
Interrupt
X X X
If an operating mode switchover request is rejected by the system, the error message Operating mode cannot be changed until after NC stop is output. This error message can be cleared without changing the channel status.
IS Operating mode switchover stop(DB11, ... D0.4) can prevent switchover of the operating mode. This suppresses the operating mode change request. The user must a configure a signal about the active disable for the operator. No signal is set by the system.
If all channels of the mode group are in Reset after an operating mode switchover from MDA to JOB, the NC switches from JOG to AUTO. In this state, the parts program commands START or INIT can be executed. If a channel of the mode group is no longer in the Reset state after an operating mode switchover, the part program command START is rejected in thiis situation and Alarm 16952 issued.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-19
Mode Group, Channel, Program Operation, Reset Response (K1) 2.4 Program test
10.00 10.00
2.4
Program test
Purpose
Several control functions are available for testing a new parts program. These functions are provided to reduce danger at the machine and time required for the test phase. Several program functions can be activated at the same time to achieve a better result.
Test options
S Program execution without setpoint outputs S Program processing in singleblock mode S Program processing with dry run feedrate S Skip parts program blocks S Block search with or without calculation.
2.4.1
Functionality
In the Program Testing status, a parts program is executed without the output of axis or spindle setpoints. The part program can be started and processed via the interface signal IS NC Start (DB21, ... DBX7.1), i.e. using auxiliary functions, G function outputs, etc.. The safety functions, for example software limit switch, work are limits remain valid. The only difference to normal program operation is that an internal axis disable is set for all axes (including spindles). The machine axes do not move, the actual values are generated internally from the setpoints that are not output. The programmed velocities remain unchanged. This means that the position and velocity information output on the operator interface is exactly the same as that output during normal parts program operation. The position control is not interrupted when this function is active, so the axes do not have to be referenced when the function is switched off.
Advantages
The user can check the programmed axis positions and auxiliary function outputs of a parts program. This program simulation can also be used as an extended syntax check.
Selection
This function is selected via the operator interface in the menu Program control. IS Program test selected (DB21, ... DBX25.7) is set on selection of the function. This does not activate the function.
1/K1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.4 Program test
Activation
This function is activated via IS Activate program test (DB21, ... DBX1.7)
Display
As a checkback for the active program test, the appropriate field on the operator interface is reversed and the IS Program test active (DB21, ... DBX33.7) set in the PLC.
Note The signals for exact stop (DB 3161, DBX60.6, DBX60.7) reflect the actual status on the machine. They are only canceled during program testing if the axis is pushed out of its set position (the set position remains constant during program testing). Using the Program testing active signal (DB21, ... DBX33.7), both the PLC program and the parts program can decide via the $P_ISTEST variable how to react or branch in response to these signals during testing. Program processing without axis motion can also be activated with the function dry run feedrate. With this function, parts program sections with a small programmed feedrate can be processed in a shorter time.
Tool management
Because of the axis disable, the assignment of a tool magazine is not changed during program testing. A PLC application must ensure that the integrity of the data in the tool management system and the magazine is not corrupted. You will find an example in the basic PLC program on the toolbox diskettes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-21
Mode Group, Channel, Program Operation, Reset Response (K1) 2.4 Program test
10.00 10.00
2.4.2
Functionality
The parts program can be started via IS NC Start (DB21, ... DBX7.1). When the function single block is activated, the parts program stops after every program block during processing. If cutter radius path compensation or tool nose radius compensation is active, processing stops after every intermediate block inserted by the control. The program status switches to Program status stopped. The channel status remains active. The next parts program block is processed on NC Start.
Advantages
The user can process a parts program block by block to check the individual machining steps. Once he has decided that a processed parts program block is correct, he can call the next block. This is done by triggering NC Start.
Caution
1/K1/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.4 Program test
Selection
Single-block mode is selected via the operator interface in the menu Program control. IS Single block selected (DB21, ... DBX24.4) is set on selection of the function. This does not activate the function.
Activation
This function is activated via IS Activate single block (DB21, ... DBX0.4)
Display
The status signal that single block mode is active is shown by inversion of the relevant field on the operator interface. As soon as the parts program processing routine has processed a parts program block as a result of single block mode, the IS Program status interrupted (DB21, ... DBX35.3) set in the PLC.
With SW 4 and higher, continuous program execution may be needed for certain operations even when single block mode is selected. MD 10702: IGNORE_SINGLEBLOCK_MASK specifies which routines must be processed without interruption.
S Internal ASUBs S User ASUBs S Intermediate blocks S Block search group blocks (action blocks) S Init blocks S Subroutines with DISPLOF S Non-reorganizable blocks S Non-repositionable blocks S Reposition blocks without travel information S Tool approach block.
Assignments between operations and bits of the machine data can be found in Section 4.2. For further information about action blocks in block searches with calculation, see Subsection 2.5.2 Processing specific program sections.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-23
Mode Group, Channel, Program Operation, Reset Response (K1) 2.4 Program test
2.4.3
Functionality
Danger Workpieces must not be machined when dry run feedrate is active because the altered feedrates might cause the permissible tool cutting rates to be exceeded and the workpiece or machine tool could be damaged.
Selection
Dry run feedrate is selected via the operator interface in the Program control menu. IS Dry run feedrate selected (DB21, ... DBX24.6) is set on selection of the function. This does not activate the function. In addition, the required dry run feedrate must be entered in the menu Setting data/JOG data.
Activation
This function is activated via IS Activate dry run feedrate (DB21, ... DBX0.6)
In SW 6.2 and higher, the effect of SD 42100: DRY_RUN_FEED can be controlled using a further setting data SD 42101: DRY_RUN_FEED_MODE. The following options are available for changing the dry run feedrate: 1. The maximum of the programmed feedrate and setting data SD 42101: DRY_RUN_FEED_MODE applies as the dry run feedrate. 2. The minimum of the programmed feedrate and setting data SD 42101: DRY_RUN_FEED_MODE applies as the dry run feedrate. 3. The value of SD 42101: DRY_RUN_FEED_MODE applies directly, irrespective of the programmed feedrate. A dry run feed can be selected in the automatic modes and activated on interruption of an automatic mode or end of a block. For further information on feedrate control, please see: References: /FB/, V1, Feedrates
Display
The status signal that dry run feedrate is active is shown by inversion of the relevant field on the operator interface.
1/K1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.4 Program test
2.4.4
Functionality
When testing new programs it is useful to be able to disable or skip certain parts program blocks during program processing.
Main program/Subroutine %100 N10 ... N20 ... Block in processing N30 ... /N40 ... /N50 ... N60 ... N70 ... N80 ... N90 ... N100 ... N110 ... N120 M30 Fig. 2-1 Skipping parts program blocks Skip blocks N40 and N50 when processing
Selection
The skip function is selected via the operator interface in the menu Program control. IS Skip block selected (DB21, ... DBX26.0) is set on selection of the function. This does not activate the function. In addition, a slash / must be written before the blocks to be skipped (see Fig. 2-1).
Activation
This function is activated via IS Activate skip block (DB21, ... DBX2.0). The Skip parts programs function remains active during block searches.
Display
The relevant field in the status line on the operator interface is shown in reverse video to indicate that the function Skip block has been activated.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-25
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5
Block search
To set the control system to a particular block of a subroutine, it is possible to simulate sections of the program using the function block Search. It can be selected whether or not the same calculations are to be performed during the block search as would be performed during normal program operation. The following types of program simulation are available:
Functionality
Overview
S Gear step change S Setpoint and actual value couplings for drives such as
Master-slave and electronic gear and axial master-value coupling
S Coupled motion in axis grouping and S Gantry axes S Tangential follow-up of individual axes S Superimposed motion interpolation S Travel to fixed stop S Synchronous spindle grouping
NC functions supported with SERUPRO ASUB (SW 6.3 and higher)
S Reference point approach S Tool management S Detect spindle power-up and spindle status
Continue machining after SERUPRO search target found (REPOS offset) Reapproach contour with controlled REPOS (SW 6.3 and later) Parts program expansions for SERUPRO (SW 6.2 and higher)
1/K1/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
03.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.1
The processing of specific program sections using program simulations is referred to as a Block Search. Block searches can be activated on the HMI operator panel with the appropriate soft key for the following functions:
S Block search with calculation at block end point (type 4 from SW 4.3 and
higher) Is used in any circumstances in order to approach a target position (e.g. tool change position). The end position of the target block or the next programmed position is approached using the type of interpolation valid in the target block. This is not true to contour. Only the axes programmed in the target block are moved. If necessary, a collision-free start position can be approached manually with JOGREPOS.
Note For further information about the block search function, please see References: /FB/, H2, Auxiliary Function Output to the PLC, behavior with block search
The block search is selected in AUTOMATIC mode on the operator interface HMI. The current block window appears with the target block. The window is displayed only if the search target has been found. The following applies to block search types 1 to 5: The active skip levels are evaluated when the search target is found. If the search target is located in a skipped block, it will not be located. In SW 6.3 and lower, the block search continues without error message. In SW 6.4 and higher, the block search is halted and alarm 15350: Search target not found output.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-27
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
10.00 10.00
2.5.2
Sequence for block searches of type 1, 2 and 4 (SW 4.3 and later)
Chronological sequence
S Activate search via input in HMI Advanced or HMI Embedded S Search target found, or alarm if target cannot be found S NC Start for output of action blocks S NC Start for program continuation.
Start search Search target found NC Start output action blocks Last action blocks NC Start output approach block Target block in main run
Block search active (DB21, ... DBX33.4) Action block active (DB21, ... DBX32.3) Approach block active (DB21, ... DBX32.4) Last action block active (DB21, ... DBX32.6) PLC action terminated (DB21, ... DBX1.6) Fig. 2-2 Chronological order of interface signals
Interface signal
In the PLC, the following interface signals are set as shown in the sequence displayed in figure 2-2:
S IS Block search active (DB21, ... DBX33.4) S IS Action block active (DB21, ... DBX32.3) S IS Action block active (DB21, ... DBX32.4) S IS Last action block active (DB21, ... DBX32.6) S IS PLC action terminated (DB21, ... DBX1.6)
Continuation mode after block search
After the block search, the program can be restarted via IS NC Start DB21, ... DBX7.1). If the axis is programmed for the first time after Block search with calculation at end of block, setting data SD 42444: TARGET_BLOCK_INCR_PROG of the incremental value can be added to the total value at the search target.
1/K1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Action blocks
Action blocks contain the actions accumulated during block search with calculation, e.g. auxiliary function outputs, and tool (T, D), spindle (S) and feed programming commands. During block search with calculation (contour or block end point), actions such as M function outputs are accumulated in socalled action blocks. These blocks are output on an NC start after search target found.
Note With the action blocks, the accumulated spindle programming (S value, M3/M4/M5, SPOS) becomes also active. The PLC user program must ensure that the tool can be operated and, if necessary, the spindle programming is reset via the PLC signal Spindle reset (DB31, ... DBX2.2) or the programmed spindle values are not output.
Single block processing: MD 10702: IGNORE_SINGLEBLOCK_MASK () By setting bit 3 =1, it is possible to prevent a stop after every action block in single-block mode. For further information about Single block mode, see Section 2.7 and Subsection 2.4.2 Program execution in single block mode.
Block search type 2 The IS Approach block active (DB21, ... DBX32.4) is only enabled with Block search with calculation on contour because a separate approach block is not generated with Block search with calculation at block end point (the approach block is the same as the target block). Block search type 4 The approach movement Search with calculation to block end point is performed using the type of interpolation valid in the target block. This should be G0 or G1, as appropriate. With other types of interpolation, the approach movement can be aborted with an alarm (e.g. circle end point error on G2/G3).
If an ASUB is started after Block search with calculation, the positions in the interpreter are synchronized. $P_EP returns the position at which the axes are actually located to the ASUB. The collective block search position can be scanned via system variable $AC_RETPOINT. This variable supplies the position as not modulo-converted and an existing number of rotations can be lost. Block search type 2 The ASUB must be exited with command REPOSA with Block search with calculation on contour. The axes are then automatically moved to the collected block search position. $P_EP then also returns to this value. Block search type 4 After Block search with calculation at block end point, automatic repositioning is not performed by the REPOS parts program command between Last action block active and continuation of parts program processing by NC Start. The start point of the approach movement is the current axis position on NC Start; the end point results from the processing of the parts program. No approach motion is generated by the system with Block search with calculation at block end point. $P_EP thus returns the position at which the axes were located by the ASUB or in JOG after the ASUB has been exited.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-29
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
To activate PLC actions after a block search, e.g. to permit starting of ASUBs or FCs at a defined position, SW4.3 and higher include an IS Last action block active DB21, ... DB32.6 The signal indicates that all actions have been executed and it is now possible to perform PLC actions (ASUB, FC) or operator actions (override, mode change with JOG/REPOS). This allows the PLC to perform another tool change, for example, before the start of the movement. Alarm 10208 is output per default at this moment to notify the operator that an NC Start is needed to continue program execution.
MD 11450
The machine data MD 11450: SEARCH_RUN_MODE allows you to set a different response. If machine data MD 11450: SEARCH_RUN_MODE=1, alarm 10208 is not output until the PLC sets interface signal PLC action ended (DB21, ... DBX1.6).
S Bit 0 = 0:
Bit 0 = 1 :
NC Stop after output of last action block (default setting) NC Stop after output of the last action block only if the PLC requests the latter with IS Last action block active. No automatic ASUB start after block search. Automatic start of user program (SW 6.1 and higher) /_N_CMA_DIR/_N_PROG_EVENT_SPF as ASUB. Output of auxiliary spindle functions (M3, M4, M5, M19, M70) takes place in the action blocks as before (SW 5.3 and higher). Output of auxiliary spindle functions and spindle setpoints suppressed after block search (e.g. output in ASUB). Cascaded block search is enabled (SW 6.1 and higher) (i.e. several search targets can be specified). Cascaded block search is disabled.
S Bit 1 = 0:
Bit 1 = 1:
S Bit 2 = 0:
Bit 2 = 1 :
S Bit 3=0 :
Bit 3 = 1:
The programmed spindle values are collected in the new block search system variables during block searches irrespective of the configuration.
S a block search and S output of IS Last action block active (DB21, ... DB32.6) = 1
It can thus be ensured that, independently of the block search target, the maximum admissible speed of the active tool is not exceeded. For a further explanation of spindle auxiliary functions and a description of the new block search system variables, please see: References: /FB/, S1, Spindles, Spindle auxiliary functions SSL.
1/K1/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.3
Automatic start of an ASUB following block search (SW 6.1 and higher)
Activation
The automatic ASUB start after block search is configured in the existing machine data MD 11450: SEARCH_RUN_MODE with bit 1 = 1 (TRUE).
S Bit 1 = 1:
With changing of the last action block, the user program /_N_CMA_DIR/_N_PROG_EVENT_SPF is started as an ASUB.
Start event
By which event this user program has been started can be determined by requesting the system variable $P_PROG_EVENT. If it is an ASUB start after a block search, the value 5 can be requested using the system variable $P_PROG_EVENT (SW 6 and higher).
Note For further information on how to parameterize certain events, please refer to Section 2.6 Program operation Event-controlled program calls.
Example
Sequence for the automatic start of an ASUB after block search: 1. Start block search (with/without calculation, at contour, at end-of-block point) 2. Stop after Search target found 3. NC Start for output of action blocks 4. Last action block is changed; 5. Automatic start of /_N_CMA_DIR/_N_PROG_EVENT_SPF as an ASUB 6. The NC will stop after changing the last ASUB block (REPOSA command) and output the alarm 10208 depending on MD 11450: SEARCH_RUN_MODE with bit 0.
2.5.4
Activation
The cascaded block search is configured in the existing machine data MD 11450: SEARCH_RUN_MODE with bit 3 = 0 (FALSE).
S Bit 3=0 :
Cascaded block search is enabled (SW 6.1 and higher) (i.e. several search targets can be specified).
For compatibility reasons, the cascaded block search can be disabled in MD 11450: SEARCH_RUN_MODE with bit 3 = 1 (TRUE). By default, the cascaded block search is set with bit 3 = 0.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-31
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
10.00 10.00
Functionality
The function Cascaded block search can be used to start another block search from the status Search target found. The cascading can be continued after each search target found as often as you want and can be used for the following block search functions:
S Block search with calculation to contour S Block search with calculation to block end point S Block search without calculation.
When the search target is reached, the program execution stops and the search target is displayed as a current block. Only if the search target has been found, another cascaded block search can be started from this status. After each search target found, a new block search can be repeated as often as you want. You can change search target specification and block search function prior to each block search start.
Example
S Reset S Block search up to search target 1 S Block search up to search target 2 S NC Start
Start search Search target 2 found
Start search
Block search active (DB21, ... DBX33.4) Action block active (DB21, ... DBX32.3) Last action block active (DB21, ... DBX32.6) Channel status Reset (DB21, ... DBX35.7) Channel status interrupted (DB21, ... DBX35.6)
Fig. 2-3
1/K1/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.5
200
Approach movement Target block N220
100
0 100
Fig. 2-4
X 400
200
300
Approach movement for search to block end point (target block N220)
Note Search to contour with target block N220 would generate an approach movement at the tool change point (start point of the target block).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-33
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
10.00 10.00
Block search on contour Example with automatic tool change after block search with active tool management: Points 1 to 3: 4. Points 5 to 10: Y 300 as example for block search type 4 Search to contour, block number N260 as example for block search type 4
Tool change-point (450.300)
Approach movement
0 100
Fig. 2-5
Note Search to block end point with target block N260 would result in alarm 14040 (circle end point error).
PROC WORKPIECE_1 ; Main program ... ;Machine contour section 1 with tool MILL_1 ... N100 G0 G40 X200 Y200 ; Deselect radius compensation N110 Z100 D0 ; Deselect length compensation ; End of contour section 1 ; ;Machine contour section 2 with tool MILL_1 N200 T=MILL_2; Preselect tool N210 WZW ; Call up tool change routine N220 G0 X170 Y30 Z10 S3000 M3 D1 ; Approach block, contour section 2 N230 Z5 ; Infeed N240 G1 G64 G42 F500 X150 Y50 ; Contour start point
1/K1/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
N250 Y150 N260 G2 J50 X100 Y200 N270 G1 X50 N280 Y50 N290 X150 N300 G0 G40 G60 X170 Y30 N310 Z100 D0 ; End of contour section 2 ... M30 PROC WZW ; Tool change routine ; N500 DEF INT TNR_AKTIV N510 DEF INT TNR_VORWAHL
; N520 TNR_AKTIV = $TC_MPP6[9998,1] ; Read T number of active ; tool N530 GETSELT(TNR_VORWAHL) ; Read T number of preselected ; tool ; ; Only execute tool change if tool not yet active N540 IF TNR_AKTIV == TNR_VORWAHL GOTOF ENDE N550 G0 G40 G60 G90 SUPA X450 Y300 Z300 D0 ; Tool change point ; approach N560 M6 ; Execute tool change ; ENDE: M17 PROC SUCHLAUF_ENDE SAVE ;ASUP for calling the tool change routine after block search N1000 DEF INT TNR_AKTIV N1010 DEF INT TNR_VORWAHL N1020 DEF INT TNR_SUCHLAUF ; Variable for active T number ; Variable for preselected ; T number ; Variable for T number determined ; T number
N1030 TNR_AKTIV = $TC_MPP6[9998,1] ; Read T number of active ; tool N1040 TNR_SUCHLAUF = $P_TOOLNO ; Read T number ; determined by search N1050 GETSELT(TNR_VORWAHL) ; Read T number of preselected ; tool N1060 IF TNR_AKTIV ==TNR_SUCHLAUF GOTOF ASUP_ENDE N1070 T = $TC_TP2[TNR_SUCHLAUF] ; T selection via tool name N1080 WZW ; Call tool change routine N1090 IF TNR_VORWAHL == TNR_SUCHLAUF GOTOF ASUP_ENDE N1100 T = $TC_TP2[TNR_VORWAHL] ; Restore T selection via ; tool name ASUP_ENDE: N1110 M90 ; Checkback to PLC N1120 REPOSA ; End of ASUB
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-35
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.6
Definition SERUPRO
Functionality
S For the current SERUPRO channel only S For all channels on the NCU S For all channels with the same workpiece name as the SERUPRO channel S For all channels with the same mode group as the SERUPRO channel.
All other channels started with SERUPRO are operated in the Self-Acting SERUPRO mode. Only the channel in which a target block has been selected can be started with a block search in SERUPRO mode.
Activation
SERUPRO is activated via PI service _N_FINDBL with PI service parameter searchMode set to 5. The operator panel interface is supplied with data via this PI service. SERUPRO uses REPOS to approach the target block. SERUPRO is operated on the MMC/HMI via the Prog.Test Contour soft key.
S The mode change is permitted during SERUPRO. S Reset will cancel SERUPRO, i.e. will deselect the internally selected
program test. POWER ON will enable SERUPRO again.
Program test mode can be deactivated only in the RESET channel state in software versions up to SW 5.3. MD 10707: SERUPRO_TEST_MASK allows the mode to be deactivated in the stopped state without the SERUPRO operation being affected. The default setting allows program testing to be deactivated only in the RESET state.
Note After program testing has been deactivated, a REPOS operation is initiated that is subject to the same restrictions as a SERUPRO approach process. Any impairment to performance can be avoided by means of an ASUB.
1/K1/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
The SERUPRO function may only be aborted in the AUTOMATIC mode in the program status (channel status RESET). If in normal mode only the PLC starts commonly several channels, then this can be simulated by SERUPRO in each channel. When MD 10708: SERUPRO_MASK bit 1 = 0, alarm 16942 Channel %1 Start program action %2<ALNX> not possible aborts the simulation if the parts program START is used.
Machine data MD 10708: SERUPRO_MASK can influence the SERUPRO behavior as follows: Stop at M0 during the search Bit 0 = 0 NC will stop at M0 during the search. Bit 0 = 1 NC will not stop at M0 during the search. Allow parts program START on alarm 16942 Bit 1 = 0 Alarm will abort the search on parts program START. Bit 1 = 1 Alarm is suppressed. A program uses the parts program Start(j) in channel i after the following call: The preselected program is started in channel j. Channel j begins to really start with moving axes. In channel j, Program test can be selected by the user beforehand. Channel j will now not select a search target. SW 6.2 or higher Enable or disable Group-SERUPRO function Bit 2 = 0 enables the function Group-SERUPRO. Bit 2 = 1 enables the function Group-SERUPRO. Before SW 6.4, use SERUPRO simultaneously in all channels, Bit 3 = 1 and search target found. Exception: A reset has aborted the search run or the channel has reached M30 without finding the search target.
Machine data MD 20112: START_MODE_MASK defines the basic setting of the control at the start of the parts program with respect to G codes (in particular, the active plane and settable zero offset), tool length compensation, transformation and axis links. In SW 6.3 and higher it is possible for the SERUPRO operation to use MD 22620: ENABLE_START_MODE_MASK_PRT to select a basic setting other than the normal parts program start. The new setting must be stored in MD 22620: START_MODE_MASK_PRT. The meaning of the bits of MD 22620 is identical to those in MD 20112: START_MODE_MASK. Example: At parts program start, the synchronous spindle coupling is retained at the beginning of the SERUPRO operation.
; Non-configured synchronous spindle coupling $MC_START_MODE_MASK = H400 $MC_START_MODE_MASK_PRT = H00 ; is disabled. ; remains active
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-37
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
10.00 10.00
The sequence of operations from 5. to 9. corresponds to one SERUPRO operation. 1. The SERUPRO function is enabled using the channel-specific PI service _N_FINDBL. 2. All parameters describing the search target (target block) must be stored in the OPI module SPARPF. 3. The searchMode parameter of the PI service has the following value: 5 for approaching the contour starting point of the target block. 4. The PI service _N_FINDBL is positively acknowledged immediately if all parameters are correct. There is no delay while the search target is located. 5. The NC will now start the selected program in Program test mode automatically. The axes will not be traversed. Auxiliary functions $A_OUT and the direct PLC I/O are output. The auxiliary functions of the target block are not output. 6. A large number of operator actions can be performed at this stage, for example: start, stop, axis replacement, deletion of distance-to-go, mode change, ASUBs, etc. The program and channel status on the interface (DB21, ... DBB35) or the system variable $AC_PROG are provided analogously to real operation. 7. The parts program command WAITM/WAITE/WAITMC will wait for the partner channels concerned. This will also take place if: the partner channels are in the SERUPRO mode; program test or real run. 8. Selection of program testing and dry run feedrate is rejected with the appropriate alarm 16935. 9. After the target block has been found, the NC stops at the beginning of the target block, deselects Program test internally and displays the Stop condition Search target found in its block display. 10. As required, the user can start an ASUB that is traversed really. Definition: This ASUB is referred to below as the SERUPRO ASUB. 11. The user presses Start: The spindles are started; then the path axes start a REPOS process leading them to the start-of-block point of the target block. The REPOS process has been implemented using a system ASUB and can be expanded via the function Editable ASUB. Definition: This process is called SERUPRO approach.
The VDI signal provided from the NCK channel (NCKPLC) IS Block search via Program Test is active (DB21, ... DBX318.1) has the following meaning and effect: In the internal mode Program test, the NC runs until the target block of the search block is changed in the main run and the program status changes to stopped. During this time, the IS Block search via Program Test is active is set to 1.
Cascaded SERUPRO: Following a SERUPRO block search, a further search can be started from the search target found state, making it possible to conduct an unlimited number of searches in a program loop.
1/K1/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
The ASUB stored in /_N_CMA_DIR/_N_PROG_EVENT_SPF is automatically started in SERUPRO approach with machine data MD 11450: SEARCH_RUN_MODE, Bit1 = 1 in the following sequence: 1. The SERUPRO operation has been performed completely. 2. The user presses Start in order to output the action blocks. 3. The last action block is loaded and automatic ASUB Start is initiated. 4. The NCK stops automatically before the REPOS parts program command Alarm 10208 Press NC Start to continue the program appears. 5. The user presses Start again. 6. The NCK executes the REPOS movement and continues the parts program at the target block.
Note The automatic ASUB start with MD 11450: SEARCH_RUN_MODE needs 2 starts to continue the program. The behavior is therefore similar to other types of search.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-39
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
S Synchronize program line currently processing with the main run. S Derive modal settings for SERUPRO in order, for example, to influence this
REPOS motion on approach to SERUPRO. Example 1: Position a Z axis by specifying an X axis setpoint. When block G1 F100 Z=$AA_IM[X] is interpreted, the preceding STOPRE block ensures synchronization with the main run. The correct setpoint of the X axis is thus read via $AA_IM to move the Z axis to the same position. Example 2: Read and correctly calculate an external zero offset.
N10 G1 X1000 F100 N20 G1 X1000 F500 N30 G1 X1000 F1000 N40 G1 X1000 F5000 N50 SUPA G1 F100 X200 N60 G0 X1000 N30 ; ; ; ; ; Move external zero offset to 200 ; ;
With an implicit STOPRE before N50, the NCK can read and correctly calculate the current zero offset. With a SERUPRO operation to search target N50, the axis is repositioned at the implicit STOPRE in the SERUPRO approach and the velocity calculated from N40 with F5000.
Situations in which interpreter issues an implicit preprocessing stop: 1. In all blocks in which one of the following variable access operations occurs: Programming of a system variable beginning with $A.. Redefined variable with attribute SYNR/SYNRW 2. With the following parts program commands: Parts program command MEACALC, MEASURE Programming of SUPA (suppress frames and online offsets) Programming of CTABDEF (start of curve table definition) Parts program command WRITE/DELETE (write/delete file) A sequence of such commands before first WRITE/DELETE command Parts program command EXTCALL Parts program command GETSELT, GETEXET Tool change and active fine tool offset FTOCON 3. With execution of following commands: Final processing of searches of types 1 and 2 (Block search without calculation and Block search at block end point) Block search type 2 (Block search at contour start point) functions analogously. Note: The SERUPRO approach with supposedly incorrect velocity is absolute when the reapproach velocity in REPOS can be specified explicitly.
If a spindle is programmed with M3/M4 and the target block contains an SPOS command, the spindle is switched over to SPOS on completion of the SERUPRO process (search target located). This is also indicated on the VDI interface.
1/K1/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.7
Stop at any point in the program for SERUPRO (SW 6.4 and higher)
After a workpiece has been completed, the operator wants to remachine a small area on the workpiece, e.g. because a tool has broken. The operator would continue the program via a block search at a point before the area to be remachined and repeat the machining operation. At the same time, he must know the parts program block at which the machining operation ends. The function Stop at any preselected point in program allows the operator to take this action. The parts program block at which the NC must stop automatically is selected via the MMC/HMI. The function is referred to below as the Stop routine and the parts program block at which machining must stop is referred to as the Stop block.
Stop routine
The following applies for PI service _N_FINDST (Abbr.: find stop): 1. The PI service activates the stop routine and may be called in Automatic mode and the Reset program state. 2. The PI service is accepted only if the NC has finished the SERUPRO operation, i.e. the NC has found a search target. 3. This PI service does not start a program. The following events abort the stop routine prematurely:
S Reset, S Block search and block search in SERUPRO program test mode.
Caution If the operator selects a stop block which is not executed in that particular situation, the NC runs the program to the program end. This is comparable to the following scenario: The stop block is skipped with GOTOF in the current processing sequence.
Stop block
The stop block is defined (from line 100) via OPI block SPARPF. Example: The block can be defined by
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-41
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Block end
S via PLC (MD 22622: DISABLE_PLC_START Bit 0 == 0) or S from another channel (MD 22622: DISABLE_PLC_START Bit 0 == 1)
the NC starts a search before the stop block in order to stop automatically at its block end. The stop routine is then deactivated again.
2.5.8
The SERUPRO function starts a parts program in the Program Test mode, and is comparable to a Start key used to initiate a program start in different channels. This is illustrated by the following example: Program Prog1Ch1.mpf of the 1st channel starts program Prog1Ch2.mpf in the 2nd channel 5 times in succession as follows:
S The 1st channel is started in normal mode with the Start key. S A block search must find two target blocks in the relevant programs. S The search target in the 2nd channel must not be reached until the
5th program run. The parts program command START of the 1st channel initiates a SERUPRO operation in the other channel. The search target in the 2nd channel must indicate that the target must not be reached until after the 5th start. To avoid inconsistencies, four complete runs of the parts program in the 2nd channel must be simulated. This search procedure is referred to as Group-Serupro and is activated in SW 6.4 and higher with MD 10708: SERUPRO_MASK, bit 2 = 1. See Subsection 2.5.9 Carrying out SERUPRO in a group of channels.
Required expansions in the OPI blocks SPARPF and SPARPI: The pass counter actual value invocCount of the main program level may be higher than 1 and include the number of necessary START( ) commands up to the search target. Variable plcStartReason in both blocks indicates which channel must be started by the PLC to ensure that the current channel actually starts. The following then applies to the example above
S invocCount = 5 S plcStartReason = 1
Multiple approach in all channels
All programs contain an M0 shortly before the program end. The program in channel n starts the channel n+1 until the 10th channel is reached. In normal mode, the PLC only starts the first channel. If M0 is to be approached with SERUPRO in all channels, then search target M0 must be entered in the SPARPF block in all channels. The following must be set
1/K1/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Example
Multiple starts with SERUPRO for 4 channels The control is initialized with machine data that take effect on POWER ON.
$MN_SERUPRO_MASK = 6 M17
The R parameters are 0 and the NCK GUD variables THE_CHAN_NO and FINISH are preset to zero. All channels have selected the following program:
DEF INT MYCHAN DEF INT NEXTCHAN DEF INT MAXCHAN MAXCHAN = 4 THE_CHAN_NO = THE_CHAN_NO +1 MYCHAN = THE_CHAN_NO IF MYCHAN == MAXCHAN NEXTCHAN= 0 ELSE NEXTCHAN = MYCHAN + 1 START( NEXTCHAN ) ENDIF IF FINISH == 1 IF R1 == 0 M0 ENDIF R1 = R1 + 1 ENDIF IF MYCHAN < MAXCHAN WAITE( NEXTCHAN ) ENDIF IF MYCHAN == 1 STOPRE FINISH = 1 ENDIF G0 G91 X10 IF MYCHAN < MAXCHAN START( NEXTCHAN ) ENDIF IF MYCHAN == 1 M0 ENDIF IF MYCHAN < MAXCHAN WAITE( NEXTCHAN ) ENDIF STOPRE THE_CHAN_NO = THE_CHAN_NO 1 M30
Remarks: The program starts the next channel twice. The user starts the program in the 1st channel and, after a brief period, all channels have run to M0. RESET is now issued in all channels, causing the NC to store the interruption pointer in block SPARPI on all channels.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-43
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Block SPARPI
Block SPARPI as NC interruption pointer contains the following values: Channel 1 Channel 2 Channel 3 Channel 4 invocCount=0 invocCount=2 invocCount=3 invocCount=5 plcStartReason=0 plcStartReason=1 plcStartReason=1 plcStartReason=1
This example illustrates that the number of passes of the individual channels is not immediately evident if only the program is analyzed.
2.5.9
Channel definitions
The start conditions of for the relevant channels are decisive for searching in a group of channels. The following definitions are made: An independent channel is a channel whose parts programs are started only via the PLC. A dependent channel is a channel whose parts programs are started only via the parts program command START from a different channel The PLC start in only permitted for program continuation (e.g. after Stop, M0). The original channel has started the dependent channel finally via the PLC.
Example:
Channel 1 has been started via PLC and starts the 2nd channel via the START parts program command. Channel 2 starts channel 3 via the START parts program command. This means that: Channel 1 is independent Channel 2 is dependent on the original channel 1 Channel 3 is dependent on the original channel 1
To perform a search correctly for a whole group of channels, the NCK must be restricted to normal operation. This is activated with machine data MD 22622: DISABLE_PLC_START, which can block starting via PLC for each channel. If MD 22622: DISABLE_PLC_START is set in a channel, the machine is Group-Serupro-capable and the following restrictions apply to normal operation:
S The parts program in the independent channel must wait for the end of all
channels that were started from this channel. Each dependent channel is checked at program end (M30/M2) to establish whether its original channel is still in operation (channel status not equal to reset, Program status not equal to aborted). Otherwise, the alarm 16948 is output.
1/K1/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Group-Serupro sequence
The program must be continued at the same point after a program abort. Complete GroupSerupro sequence: 1. Every SPARPF block in the 4 channels is parameterized with the search target. In this instance, SPARPI is simply copied complete to SPARPF. 2. The user starts SERUPRO with channel-specific PI service _N_FINDBL in the 1st channel. (Analogous to actuation of the Start key in real operation). 3. The NC sets the OPI/VDI variable seruproActive in the 1st channel 4. The NC simulates the program in the nth channel and starts SERUPRO in channel m in cases where the START(m) instruction must executed in the parts program of channel n. All channels started in this way form a SERUPRO channel group. 5. When all channels in the channel group have reached the search target, seruproActive is canceled in all of them. 6. Each channel can now execute SERUPRO approach separately.
Supplementary conditions
S Only one channel chosen by the user may be started via PLC with PI
service _N_FINDBL.
S Only channels which will finally be included in the channel group really need
a search target.
Note The MMC/HMI may use plcStartReason as an orientation as regards the channels to be parameterized, i.e. PI is permissible only for channels with plcStartReason==0.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-45
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.10
The channelspecific function Selfacting Serupro permits a SERUPRO sequence without prior definition of a search target. In addition, a special channel, the serurpoMasterChan, can be defined for each Self-Acting Serupro. The function SelfActing Serupro supports the block search SERUPRO acting in several channels.
Functionality
The process SelfActing Serupro is not intended to find a search target. If the search target is not reached, no channel is stopped. In certain situations, however, the channel is nevertheless stopped temporarily. In this case, the channel will wait for another channel. Examples are: Wait marks, couplings or axis change. A WAIT phase occurs: During such a WAIT phase, the NC checks the channel seruproMasterChan whether it has reached a search target. If no search target is reached, the WAIT phase is left. If the search target is reached, the SERUPRO process is also ended in the channel. The channel seruproMasterChan must naturally have been started in the normal SERUPRO mode. No WAIT phase occurs: SelfActing Serupro is ended by M30 of the parts program. The channel status is then in the Reset status again. A SERUPRO approach does not take place.
If a group of channels is only started with SelfActing Serupro, then all channels are ended with Reset. Exceptions: A channel waits for a partner channel which has not been started at all. A block search for all channels can be carried out as follows:
S The user or the MMC/HMI chooses the channels which must work together
(channel group).
S The user chooses an especially important channel from the channel group
for which he wants to select a search target explicitly (target channel).
S The MMC/HMI will then start SERUPRO on the target channel and
SelfActing Serupro in the remaining channels of the channel group. The process is completed if each channel concerned has deleted seruproActive.
1/K1/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Activation
SelfActing Serupro is activated via the PI service _N_FINDBL with PI service parameter searchMode set to 5. Prior to the PI service _N_FINDBL, the coding No search target must be specified in the OPI block SPARPF as follows:
2.5.11
System variables updated by the SERUPRO sequence (SW 6.1 and higher)
The SERUPRO sequence can be detected using the following system variables: $P_ISTEST $P_SEARCHL $AC_ASUP is TRUE (this also applies to program test) is set to 5 (block search in extended program test) bit 20 is set in the system ASUB after the search target has been found (SERUPRO sequence, point 11.) $P_ISTEST AND (5 == $P_SEARCHL) is detected reliably by SERUPRO. $AC_SEARCH is not supplied by the SERUPRO operation.
Note $P_SEARCHL is set at the beginning of the SERUPRO process and reset on Reset. $P_SEARCHL is therefore set in the SERUPRO ASUB and remains set and can be evaluated in the remainder of the parts program. In contrast, the $P_ISTEST variable is set only in the SERUPRO process and is thus suitable for search-specific adaptation of programs.
Synchronized action
In SW 6.2 and higher, SERUPRO can be scanned for is TRUE with system variable $AC_SERUPRO In SW 6.4 and higher, REPOS acknowledgments updated by SERUPRO can be scanned using:
Program-sensitive system variable $AC_REPROS_PATH_MODE $AA_REPROS_DELAY Description Type of repositioning MODE REPOS suppression is currently active for this axis.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-47
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
If SERUPRO is still active in the main run (SW 6.3 and higher)
Note A check is carried out to determine when the SERUPRO target block has already been found when system variables $P_ISTEST and $AC_SERUPRO are interpreted. If this is the case, an implicit preprocessing stop is inserted before the two system variables are evaluated. As a result, interpretation is halted and not continued again until SERUPRO is deactivated in the main run as well. The decision as to whether SERUPRO must be active or inactive is then made correctly.
S PROGSENSITIVE S REAL
A parts program reads system variables and saves the values in a buffer memory. The value of a system variable is dependent either on the preceding program block or on the current block. If this block is executed during the SERUPRO sequence, then no axis is really moved. This requires a system variable which includes the program processing status as a result of SERUPRO. This behavior is taken into account only by the socalled PROGSENSITIVE system variables which are updated continuously during the SERUPRO sequence. The actual status of the machine is supplied only by the real system variable. All classifications up to SW 6.4 are described below.
Program-sensitive system variable $AA_IM $P_AD $P_ADT $P_TOOLP $P_TOOLEXIST $P_D $P_H Real system variable $AA_LOAD and $VA_LOAD $AA_TORQUE and $VA_TORQUE $AA_POWER and $VA_POWER $AA_CURR and $VA_CURR $VA_VALVELIFT $VA_PRESSURE_A and $VA_PRESSURE_B $VA_DIST_TORQUE $AA_FXS $AN_SETUPTIME a. $AN_POWERON_TIME $TC_MAP3, $TC_MPP4 and $TC_MPP6 $TC_MOP2 and $TC_MOP4 Description Machine positions: Actual value in MCS Active tool compensations Active tool compensations transformed Last tool no. programmed TOT32000 Tool with T no. t exists Current D no. in ISO 2 language mode Current H no. in ISO 2 language mode Description Drive utilization with 611D only Drive torque setpoint with 611D only Drive active power with 611D only Axis/spindle actual curr. with 611D only Drive data with 611D hydr. module only Drive data with 611D hydr. module only Disturbing torque/max. motor torque Setpoint status travel to fixed stop Time since last controller power-up Tool management magazine data Residual service life and residual number of workpieces
1/K1/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
03.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
System values can be distinguished according to their behavior on SERUPRO To do this, the SERUPRO identifier is added to the description area of the variable description svar.inp. The following values can be assigned to this identifier:
Data is independent of SERUPRO Tracks the progress of the program on SERUPRO and may not display the real status of the machine Always detects the real machine status Has not yet been classified
The PROGSENSITIVE and REAL identifiers are of particular significance for the SERUPRO block search. For more detailed information about all known system variables, see References: /PGA/, Chapter 15 Tables List of system variables
Example
The program-sensitive system variable $AA_IM is preprocessed as follows: System variable: name = type = unit = readIpo = syncInfo = docu: $AA_IM DOUBLE POSN CO_SYNA_AA_IM_READ_ID SYNR Explanation: Variable identifier System variable type Unit Read or write in synchronized actions Description
Description in the Programming Guide, Advanced /PGA/: Use: $AA_IM[X] Actual value in machine coordinate system (MCS) :end
description: read = parts program, synchronized action, OPI preprocessing stop = TRUE write = FALSE axis identifier = GEOAX, CHANAX, MACHAX notAllowed = UNCLASSIFIED
SERUPRO = PROGSENSITIVE
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-49
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.12
Applications
During program test (not fully automatically) Setpoint and actual value linkages can be simulated These functions are simulated correctly subject to the relevant restrictions must be considered! Axis grouping with TRAILON and TRAILOF Gantry axis grouping traversal Tangential followup of individual axes Superimposed motion interpolation Autom. FXS and FOC in SW 6.3 and higher Synchronous spindle coupling with COUPON Axes controlled by the PLC in SW 6.4 and higher
S Coupled motion: S Gantry axes: S Tangential control: S Superimposed movement: S Travel to fixed stop: S Synchronous spindle: S Autonomous single-axis
operations:
The gear stage change (GSW) function requires the NCK to initiate physical movements in order to engage a new gear. A gear stage change is not necessary during the SERUPRO operation and is performed as follows: SW 6.1 and lower Fully automatic gear stage change is not supported. The user must make appropriate adaptations in the PLC and/or in the SERUPRO ASUB. During the SERUPRO process, the VDI interface is operated by the gear stage change. The PLC should be able to acknowledge the requested gear stage change with the new gear stage and engage the last gear stage after the SERUPRO process automatically. Some gears can only be changed controlled by the NC, since either the axis must oscillate or a certain position must be approached beforehand. SW 6.3 and higher The gear stage change can be suppressed selectively in MD 35035: SPIND_FUNCTION_MASK with bits 0 to 2 for DryRun, program testing and SERUPRO. The gear stage change must then be performed in REPOS; this will work even if the axis involved is to be in speed control mode at the target block. In other cases, the automatic gear stage change is denied with an alarm if, for example, the axis was involved in a transformation or coupling between the gear stage change and the target block. Note For further information about gear stage changes in DryRun, Program Test and SERUPRO modes, please refer to References: /FB/, S1, Spindles 2.6 Programming
1/K1/2-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Couplings
The SERUPRO process is a program simulation in Program Test mode with which setpoint and actual value couplings can still be simulated.
Coupled axes
The following axis links are compatible with the SERUPRO operation:
S Coupled motion TRAILON and TRAILOF (SW 6.3 and higher) S Gantry axes (SW 6.3 and higher) S Tangential control (SW 6.3 and higher) S The activatable and deactivatable master/slave link as long as activation
and deactivation is not selective (SW 6.3 and higher)
Note The following measure for accelerating the machining velocity is not operative for a master axis whose slave axes are configured in another channel MD 22601: SERUPRO_SPEED_FACTOR = positive
Coupled motion
The motion-synchronous action for coupled motion of an axis grouping with TRAILON and TRAILOF is supported by SERUPRO. For further information about coupled motion with TRAILON and TRAILOF, please refer to References: /FB/, M3, Axis Coupling and ESR /PGA/, Path behavior and Motion-synchronous actions
Gantry axes
Mechanically linked machine axes can be moved without a mechanical offset using the gantry axis function. This operation is simulated correctly with SERUPRO. For further information about the functionality of gantry axes, please refer to References: /FB/, G1, Gantry axes
Tangential control
The tangential control of individual axes is supported by SERUPRO. For further information about tangential control, please refer to References: /FB/, T3, Tangential control
Overlaid movement
If superimposed movements are used, only the block search via Program Test (SERUPRO) can be used, since the superimposed movements are interpolated accordingly in the main run. This applies in particular to $AA_OFF. During Program test, a velocity profile must be used which allows superimposed movements to be interpolated during the main run. It is thus not possible to interpolate at the maximum axis velocity. The axis velocity is set in Dry run feedrate mode via SD 42100: DRY_RUN_FEED. The velocity of the SERUPRO process is selected via MD 22600: SERUPRO_SPEED_MODE.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-51
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
12.00 10.00
Acceleration measures
The processing speed of the entire SERUPRO process can be substantially accelerated using the machine data below. MD 22600: SERUPRO_SPEED_MODE and MD 22601: SERUPRO_SPEED_FACTOR With MD 22600: SERUPRO_SPEED_MODE == 1, the SERUPRO process will run at the dry run feedrate. With MD 22600: SERUPRO_SPEED_MODE == 0, MD 22601: SERUPRO_SPEED_FACTOR is evaluated, and another acceleration is permitted. Dynamic monitoring functions are disabled in this mode. SPEEDFACTOR for channel axes in the main run Machine data MD 22600: SERUPRO_SPEED_MODE is effective for the following channel axes in the main run throughout the entire SERUPRO process:
Caution The NC as a discrete system generates a sequence of interpolation points. The velocity values configured in MD 22601: SERUPRO_SPEED_FACTOR must be such that all sections of the program can executed, i.e. they must not be so high that the machine is forced to operate at an excessive speed.
S Tapping and thread cutting are performed at the usual velocity for DryRun.
DryRun and SERUPRO affect the spindle/axis with the following G codes:
1/K1/2-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
In SW 6.2 and higher, the functionality of FXS is repeated automatically with REPOS and is designated as FXS REPOS. Every axis is taken into account and the torque last programmed before the search target is applied. Furthermore, the meaning of system variable $AA_FXS is redefined for SERUPRO as follows:
S $AA_FXS displays the current status of program simulation. S $VA_FXS always describes the real machine status.
The two system variables $AA_FXS and $VA_FXS have the same values continuously outside the SERUPRO function. The user can treat FXS and FOC as special commands in a SERUPRO ASUB.
Example of FXS
The following example shows the main program Travel to fixed stop: Main program fxsSerupro.mpf
DO $R0=0 N10 G0 G90 X0 Y0 Z0 FXS[X]=0 ; Delete FXS flag R0 ;
N15 ID=1 WHEN $AA_IW[X] > 45 DO FXS[X]=15 FXST[X]=22 ; N20 FXST[AX1] = 10.0 FXSW[AX1] = 25.0 N30 G1 G91 F1000 X30 ; WHEN $AA_IW[X] > 35 DO FXST[X] = 5 FXSW[X]=20 ; DO $R0=1 ; Enable FXS flag synchronously with N40 N40 FA[X]=100 POS[X]=200 FXS[X]=1 ; N100 F1000 Y20 N110 F2000 Z100 DO $R0=0 N200 FXS[X]=0 G90 X10 F1000 N250 F2000 Y10 Z10 ; ; ; Disable FXS flag synchronously with N200 ; : ;
DO $R0=1 ; Enable FXS flag synchronously with N300 N300 G91 FXST[X]=5 FXS[X]=1 POS[X]=300 FA[X]=100 ; : N350 G90 F1000 Y50 Z50 ; DO $R0=0 N400 FXS[X]=0 X0 F1000 N500 G0 G90 X0 Y0 Z0 N9999 M30 ; Disable FXS flag synchronously with N400 ; ; ;
ASUB fxsSeruproAsup.mpf
; N1000 when (R[0]==1) AND ($AA_FXS[X]==0) ; Evaluate FXS flag R0 whether during DO $R0=1 FXS[X]=1 FXST[X]=12 ; the Serupro process FXS has been enabled N2000 when (R[0]==0) AND ($AA_FXS[X]==1) ; or was deactivated DO $R0=0 FXS[X]=0 FXSW[X]=21 ; in order to enable or disable FXS N1020 REPOSA ; for the REPOSA block
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-53
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
SERUPRO approach does not automatically take account of the FXS instruction and travel with limit torque/force FOC (Force Control). If FXS Travel to fixed stop is programmed between the beginning of the program and the search target, the instruction is not executed by the NC. The actual status of the function does not change and the motion is only simulated up to the end point. The user can log the enabling/disabling of FXS in the parts program and enable or disable FXS in the SERUPRO ASUB (see point 10.)
S $AA_FOC represents the current status of program simulation. S $VA_FOC always describes the real machine status.
The FOC REPOS function behaves analogously to the FXS REPOS function. The functionality of FOC is repeated automatically with REPOS and designated FOC REPOS below. Every axis is taken into account and the torque last programmed before the search target is applied.
Condition
A continuously changing torque characteristic can not be implemented with FOC REPOS. Example: A program moves axis X from 0 to 100 and activates FOC every 20 increments for 10 increments at a time. This torque characteristic is usually generated with nonmodal FOC and cannot therefore be traced by FOC REPOS. FOC REPOS will traverse axis X from 0 to 100, with or without FOC, according to the last programming.
Note For further information about the SERUPRO block search in relation to FXS or FOC, please see References: /FB/, F1, Travel to fixed stop 2.2 General functionality.
The synchronous spindle operation with main spindle and any number of following spindles can be simulated in all existing channels with SERUPRO. For further information about synchronous spindles in SW 4 and higher, please refer to References: /FB/, S3, Synchronous Spindle
1/K1/2-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Restrictions up to SW 6.3
NCK functionality Master-slave for drives and SERUPRO Axis enables and SERUPRO Axis replacement and SERUPRO Electronic gear (EG)
Restrictions Selective enabling and disabling of the masterslave link with MASLON active Real servo enable missing during program testing Axes traversing as path axes before RELEASE are ignored on REPOS The electronic gear link is not simulated correctly with EGON, EGONSYN, EGONSYNE during program testing The link with LAEDON and LEADOF is not supported
The link status should only be updated without calculating the associated positions during block search. A system ASUB can be started automatically when the block search is finished. In this subroutine, the user can control the link status and the associated axis positions subsequently. The information needed can be read from additional block search system variables.
The following system variables are needed for the position offset between the axes to be coupled with the desired link status:
NCK variable in SW 6.1 and higher $P_SEARCH_MASLD[X] Slave* $P_SEARCH_MASLC[X] Slave* $AA_MASL_STAT[X] Slave*
Description Position offset between slave and master axis when the link is closed. Current status of a master-slave link was changed during block search. Current status of a master-slave link active.
Note This block search for the master-slave link is effective only if the position offset between the axes can be determined. In order to determine the programmed positions, the axes to be linked must be in the same channel at the time of the block search. If this is not the case, the block search is aborted with alarm 15395. Variables $P_SEARCH_MASLD, $P_SEARCH_MASLC and $AA_MASL_STAT are cleared on MASLON.
For further information on master-slave link please refer to: References: /FB/, TE3, Speed/Torque Coupling, Master-Slave
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-55
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
System ASUB
The system ASUB is called progevent.spf and must be available in the /_N_CMA_DIR directory. The contents might be as follows: progevent.spf ; X=master axis, Y=slave axis
N10 IF(($S_SEARCH_MASLC[Y]< >0) AND ($AA_MASL_STAT[Y]< >0)) N20 MASLOF(Y) N30 SUPA Y=$AA_IM[X]$P_SEARCH_MASLD[Y] N40 MASLON(Y) N50 ENDIF N60 REPOSA
The following machine data must be set to enable the ASUB to be started automatically: $MN_ASUP_START_MASK = H03 $MN_ASUP_START_PRIO_LEVEL = 100 $MN_SEARCH_RUN_MODE = H02
The axial IS Enable traversing, program testing (DB31, ... DBX3.7) affects axis enable signals when no control enables are to (or can) be issued at the machine and is active only during the program test or when SERUPRO is active. It is possible to issue this enable via the interface signal PLCNCK IS Enable traversing, program testing (DB31, ... DBX3.7). If the real servo enable is missing during program testing or SERUPRO, the effect on the axes/spindles is as follows:
S If the VDI signal IS Enable traversing, program testing (DB31, ... DBX3.7)
is canceled again, alarm 21612: Channel %1 axis %2 VDI signal servo enable reset during motion is activated.
Autonomous single-axis operations are axes controlled by the PLC that can also be simulated on SERUPRO. During SERUPRO operation, as in normal operation, the PLC can take over or give up control of an axis. If required, this axis can also be traversed using FC18. The PLC takes over control of the axis BEFORE the approach block and is responsible for positioning this axis. This is valid for all block search types. For further information about autonomous single-axis operations, please refer to References: /FB/, P2, Positioning Axes
After SERUPRO, an axis should be neutral. The user can suppress the REPOS movement for that axis completely in the SERUPRO ASUB. See Subsection 2.5.13.
Caution Axes which could be moved as path axes before the RELEASE command must also be capable of path axis motion in REPOS. The axis controlled by the PLC is still not repositioned (up to SW 7.1)!
1/K1/2-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
A programmable interrupt pointer available in SW 6.4 and higher can be used to prevent simulation of program point. Please refer to 2.5.7 Preventing program point for SERUPRO The functions that did not work properly up to SW 6.3, such as electronic gear and axial leading-value coupling can be used under certains conditions in SW 6.4 and higher with user-supported simulation and approach strategies for SERUPRO.
For simulation of EG, the following definitions apply: 1. Simulation always takes place with setpoint coupling. 2. If under SERUPRO there are only some, i.e. not all, leading axes, the simulation is aborted with alarm 16952 Reset Clear/No Start. This can occur with multi-channel couplings. 3. Axes that have only one encoder from the point of view of the NCK and are operated with external data, cannot be simulated correctly. These axes mut not be integrated in couplings.
Caution In oder to simulate a coupling correctly, it must be deactivated berforehand. This can be done with machine data MD 10708: SERUPRO_MASK.
The SERUPRO procedure simulates axis couplings always assuming that they are setpoint couplings. In this way, the end points are calculated for all axes that are used as target points for SERUPRO approach. The coupling is also active with Search target found. The path from the current point to the end point is carried out for SERUPRO approach with the active coupling.
LEADON
The following specifications apply for the simulation of leading-value couplings: 1. Simulation always takes place with setpoint coupling. 2. SERUPRO approach takes place with active coupling and a overlaid motion of the following axis in order to reach the simulated target point. The following axis that is moved solely by the coupling cannot always reach the target point. In SERUPRO approach, a overlaid linear motion is calculated for the following axis to appraoch the simulated point!
Note For further information on restarting axis couplings, see Subsection 2.5.15 Continue machining after SERUPRO search target found.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-57
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
12.00 10.00
2.5.14
SERUPRO ASUB
The following NC functions are supported by the user in the SERUPRO ASUB:
S Reference point approach: S Tool management: S Spindle ramp-up: S Determine spindle status:
Referencing via parts program G74 Tool change and magazine data On starting a SERUPRO ASUB Program new values at any point in the program before REPOSA
If the statement G74 (reference point approach) is programmed between the program start and the search target, this will be ignored by the NC. SERUPRO approach will not take into account this statement G74!
Tool management
If the tool management is active, the following setting is recommended: MD 18080: TOOL_MANAGEMENT_MASK, set BIT 20 = 0. The tool management command generated during the SERUPRO process is thus not output to the PLC! The tool management command has the following effect:
S The NC acknowledges the commands automatically. S No magazine data are changed. S The tool data are not changed.
Exception: The tool status of the tool enabled during the test mode can take the status active. In this case, the wrong tool can be mounted on the spindle after the SERUPRO process. Remedy: The user starts a SERUPRO ASUB that is traversed really. Prior to the start, the user can start an ASUB changing the correct tool. SERUPRO process: SERUPRO-ASUB: Functionality: The sequence from point 5 to 9. Functionality: The sequence of point 10.
Bit 11 must also be set to 1 in machine data MD 18080: TOOL_MANAGEMENT_MASK, because the ASUB may have to repeat a T selection. Systems with tool management and auxiliary spindle are not supported by SERUPRO!
1/K1/2-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Example
N560 TNR_AKTUELL = $TC_MPP6[9998,1] ; Read T number of the tool on the spindle N570 ENDIF ; ; N580 GETSELT(TNR_VORWAHL) ; Read T number of the preselected tool of the ; master spindle. ; Carry out tool change only ; if tool is not yet current N590 IF TNR_AKTUELL <> TNR_VORWAHL ; Approach tool change point N600 G0 G40 G60 G90 SUPA X450 Y300 Z300 D0 N610 M206 ; Execute tool change N620 ENDIF ; N630 M17 ;
ASUB for calling the tool change routine after block search type 5 PROC ASUPWZV2
N1000 DEF INT TNR_SPINDEL N1010 DEF INT TNR_VORWAHL N1020 DEF INT TNR_SUCHLAUF ; Variable for active T number ; Variable for preselected T number ; Variable for the T number determined during the block search
N1030 TNR_SPINDEL = $TC_MPP6[9998,1] ; Read T number of the tool on the spindle N1040 TNR_SUCHLAUF = $P_TOOLNO ; Read T no. determined by block search, i.e. this ; tool determines the current tool compensation N1050 GETSELT(TNR_VORWAHL) ; Read T number of the preselected tool
N1060 IF TNR_SPINDEL ==TNR_SUCHLAUF GOTOF ASUP_ENDE1 N1070 T = $TC_TP2[TNR_SUCHLAUF] ; T selection via tool name N1080 L6 ; Call tool change routine N1085 ASUP_ENDE1: ; N1090 IF TNR_VORWAHL == TNR_SUCHLAUF GOTOF ASUP_ENDE N1100 T = $TC_TP2[TNR_VORWAHL] ; Restore T preselection via tool name N1110 ASUP_ENDE: N1110 M90 N1120 REPOSA ; ; Checkback to PLC ; End of ASUB
In both programs PROC L6 and PROC ASUPWZV2, the tool change is programmed with M206 instead of M6. The ASUB program ASUPWZV2 uses various system variables that, on the one hand, know the program progress ($P_TOOLNO) and, on the other hand, represent the current status of the machine ($TC_MPP6[9998,1] ).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-59
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
12.00 10.00
Spindle ramp-up
When the SERUPRO ASUB is started, the spindle is not accelerated to the speed specified in the program because the SERUPRO ASUB is intended to move the new tool into the correct position at the workpiece after the tool change. A spindle ramp-up is performed as follows with the SERUPRO ASUB:
S SERUPRO operation has finished completely. S The user starts the SERUPRO ASUB via function block FC 9
in order to ramp up the spindle.
S The start after M0 in the ASUB does not change the spindle status. S SERUPRO ASUB automatically stops before the REPOS parts program
block.
S The user presses START. S The spindle accelerates to the status in the target block if the spindle was
not programmed differently in the ASUB.
Note Modifications for spindle REPOS: The transitions of speed control mode and positioning mode must be considered in the event of modifications for SERUPRO approach and spindle functionality. For further information about mode changes for spindles, please refer to References: /FB/, S1, Spindles 2.1 Spindle modes
The spindle status to apply at the target block is determined in the ASUB using $P_SEARCH_S $P_SEARCH_SDIR $P_SEARCH_SGEAR $P_SEARCH_SPOS $P_SEARCH_SPOSMODE The spindles can subsequently be programmed with the correct values at any point in the program before REPOSA in the SERUPRO ASUB.
Note Please note that these variables can also contain movements as command or PLC axes. $P_SEARCH_SPOS then contains the end point of the last command or PLC axis movement. $P_SEARCH_SPOSMODE can be used to detect a replaced axis.
1/K1/2-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.15
User information
Danger The REPOS procedure moves all axes in a block from the current position to the target start-of-block point. During this process, the NC cannot detect any collisions can detect possible collisions with the machine or the workpiece! Protection zones and software limits are monitored. The path axes are repositioned together in one block. The spindles and positioning axes are repositioned in the next block. Neutral axes are not repositioned in versions up to SW 6.3.
By setting the bits of machine data MD 11470: REPOS_MODE_MASK, you can control the behavior of the NC during repositioning.
The hold time is resumed at the point of interruption in the residual repositioning block. Reserved Prevent repositioning of individual axes via VDI signals. Reposition positioning axes in the approach block via program test (SERUPRO). Positioning axes in approach block on every REPOS. Modified feedrates and spindle speeds are already valid in the residual block. Otherwise, in next block.
S Bit 6 = 1 S 7=1
After SERUPRO, neutral axes and positioning spindles in the approach block are repositioned as command axis. The behavior of IS REPOSDELAY (DB31, .. DBX10.0) is read when REPOSA is interpreted. Axes that are neither geometry axes or orientation axes are then excluded by REPOS and not moved.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-61
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
07.02 10.00
At any point during processing, a parts program can be interrupted and an ASUP with REPOS started. For path axes, the REPOS mode can be controlled by the PLC via VDI signals to restart at the contour. This mode is programmed in the parts program and defines the approach response. For information see Subsection 2.5.16. The REPOS response on individual axes can also be controlled via VDI signals and is enabled with MD 11470: REPOS_MODE_MASK BIT 3 == 1. Path axes cannot be influenced individually. For all other axes that are not geometry axes, repositioning of individual axes can be prevent temporarily and also delayed. VDI signals can be used to enable or keep blocking individual channel axes that REPOS would like to traverse at a later time.
Danger Delete axial distance-to-go gives rise to the following risk for Prevent repositioning individual axis when MD 11470: REPOS_MODE_MASK (bit 0==1). As long as an axis is programmed incrementally after the interruption, the NC approaches positions different from those approached with no interruption (see example).
Axis A is positioned at 11 degrees before the REPOS operation; the programmed operation in the interruption block (target block for SERUPRO) specifies 27 degrees. Any number of blocks later, this axis is programmed to move incrementally through 5 degrees with N1010 POS[A]=IC(5) FA[A]=1000. On IS REPOSDELAY (DB31, ... DBX10.0), the axis does not traverse in the REPOS operation and is moved to 32 degrees in N1010. (The user may need to acknowledge the path from 11 to 27 degrees explicitly).
The REPOS response for SERUPRO approach with several axes is selected with MD 11470: REPOS_MODE_MASK BIT 3 == 1. The NC starts SERUPRO approach at a block which moves all positioning axes to the programmed end and all path axes to the target block. The user starts the individual axes by selecting the appropriate feedrate enables. The target block motion is then executed. Reposition in restart block Positioning axes are not repositioned in the distance-to-go block but in the restart block and not only affect the block search via program test on SERUPRO approach. When MD 11470: REPOS_MODE_MASK: Bit 3 = 1 Bit 4 = 1 for block search via program test (SERUPRO) for each REPOS
Note If neither bit 3 nor bit 4 is set, non-path axes are repositioned in the remaining block in this phase.
1/K1/2-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Further REPOS adaptations can be made by setting the bits in MD 11470: REPOS_MODE_MASK:
S Bit 5 = 1 S Bit 6 = 1
Modified feedrates and spindle speeds are already valid in the remaining block and are therefore preferred. This response refers to each REPOS procedure. Neutral axes and positioned spindles are repositioned after SERUPRO. Neutral axes that are not repositioned further must be considered NST REPOSDELAY (DB31, ... DBX10.0). This deletes the REPOS movement. Axes that are neither geometry or orientation axes are not controlled with IS REPOSDELAY (DB31, ... DBX10.0). So these axes are acluded from the REPOS procedure and are not moved.
S Bit 7 = 1
The axial pretriggered VDI signal axis/spindle (PLCNCK) IS REPOSDELAY (DB31, ... DBX10.0) is used, with the edge of IS REPOSMODEEDGE (DB21, ... DBX31.4) to traverse the REPOS offset for this axis only after the next time it has been programmed. Whether this axis is currently subject to a REPOS offset, can be queried via synchronized actions in SW 6.4 and higher with $AA_REPOS_DELAY.
Caution IS REPOSDELAY (DB31, ... DBX10.0) has no effect on machine axes that form a path. IS Path axis (DB31, ... DBX76.4) determines whether an axis is a path axis.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-63
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
Note In the current ASUB, IS REPOSMODEEDGE (DB21, ... DBX31.4) does not affect the final REPOS, unless this signal applies to the REPOS blocks. In Case A, the signal is only allowed in stop mode.
SERUPRO approach can be used with IS REPOSMODEEDGE (DB21, ... DBX31.4) and the associated signals in the following phases:
S Between
From: to:
Search target found and Start SERUPRO ASUB SERUPO ASUB stops automatically before REPOS Target block is being executed
S While the SERUPRO ASUB is being executed, e.g. in the program section
before the REPOS operation, IS REPOSMODEEDGE (DB21, ... DBX31.4) has no effect on SERUPRO approach.
IS REPOSDELAY (DB31, ... DBX10.0) axis/spindle* Machine axes which form a path are not affected by this axial IS. * These signals are available in the relevant HMI/MMC or PLC DB. IS REPOSDELAY (DB31, ... DBX72.0) axis/spindle
1/K1/2-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
The NCK stops after the braking ramp. After the PLC has specified the REPOSPATHMODE, the NCK accepts in time 3 the REPOSPATHMODE with the 0/1 edge from REPOSMODEEDGE Repos Path Mode Ack remains set until the ASUP is triggered. Time 4 The REPOS command is started in the ASUP. Time 5 The remaining block of the ASUP is used again Time 6
Note If IS REPOSMODEEDGE (DB21, ... DBX31.4), is not yet acknowledged with IS REPOSMODEEDGEACKN (DB21, ... DBX319.0), a RESET in this situation causes the program to abort and the REPOS that is to be used to control the REPOSPATHMODE can no longer take place.
Command is started with ASUP Reapproach from REPOS is terminated. Residual block starts output ASUB N30
N20 N10
preselect RMN Stop of the parts program Start of the parts program
REPOSPATHMODE 4 REPOSMODEEDGE
REPOSMODEEDGEACKN
Fig. 2-6
REPOS sequence in parts program with timed acknolwedgement signals from NCK
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-65
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
07.02 10.00
REPOS Path Mode Ack is canceled on activation Time 6 of the remaining block. The parts program block N30 that follows the one in Time 2 is continued. IS REPOS Delay Ack (DB31, ... DBX70.2) is defined as analog. IS REPOS offset valid (DB31, ... DBX70.0)=1, if IS REPOS Path Mode Ack 0 to 2 (DB21, ... DBX319.1319.3)=4 (RMN).
When the SERUPRO operation is finished, the user can read out the REPOS offset via the axis/spindle VDI signal (NCKPLC) IS REPOS offset (DB31, ... DBX70.0) The effects of this signal on the relevant axis are as follows: Value 0: Value 1: The axis does not have to traverse the REPOS offset. The axis will traverse the REPOS offset.
Scope: IS REPOS Delay Ack (DB31, ... DBX70.0) is supplied at the end of the SERUPRO process. The REPOS offset is invalidated at the start of a SERUPRO ASUB or the automatic ASUB start. Updating the REPOS offset within the valid scope: The axis can be moved in JOG mode between the SERUPRO end and Start. The user moves the axis manually through the REPOS offset to set IS REPOS offset (DB31, ... DBX70.0) to value 0. The axis can also be moved via FC18 within the valid scope, during which IS REPOS offset (DB31, ... DBX70.0) is updated continuously. Displaying the scope: The valid scope of the REPOS offset is displayed with IS REPOS offset valid (DB31, ... DBX70.1). It is indicated whether the REPOS offset calculation was valid or invalid: Value 0: Value 1: REPOS offset calculated correctly for this axis. REPOS offset not calculated correctly for this axis.
REPOS offset after axis exchange To simplify operation of all axes, the current controlled axis is reassembled after an exchange for each channel with IS REPOS DEFERRAL Chan (DB21, ... DBX319.5). Value 0 Value 1 All axes currently controlled by this channel dont have a REPOS offset of their REPOS offsets are not valid. Other.
The axial VDI signal NCKPLC NST Path axis (DB31, ... DBX76.4) makes the appropriate path axis signals available for the relevant axis type. This signal shows the status of the current block to be executed during block change. Subsequent status changes are ignored. Once the SERUPRO operation is ended with Search target found, IS Path axis (DB31, ... DBX76.4) refers to the target block.
1/K1/2-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
2.5.16
During SERUPRO approach, a REPOS operation is initiated in order to reapproach the contour. A large number of axes which the user can control by means of interface signals is frequently moved. The operator panel interface supplies the offsets per channel axis which REPOS intends to traverse. Restart of individual path axes can be controlled by the PLC and therefore has priority over the actual RMI, RMB and RME commands in the parts program.
Like RMI, RMB and RME, RMN (REPOS Mode Next) is redefined for SERUPRO approach (SW 6.3 and higher). After an interruption, the reapproach block is not started again completely with RMN, but is merely executed as follows from the next path point: At the time REPOSA is interpreted, position (B) is referenced in order to find point C at the interruption block with the shortest distance to B. The reapproach block moves from B to C to the end position.
A Actual position during search. B Position reached with JOG keys after SERUPRO process. C SERUPRO approach moves from B to C because C is the nearest point to B in target block 23.
A B
Fig. 2-7
SERUPRO approach with RMN offers the opportunity of using the application shown in Fig. 2-7: If a program abort is forced by RESET at any point when the program is advancing from block 2 to 3,
S RMN is used to approach the abort location by the shortest route in order to
process just the distance to go from C3 and 34. The user starts a SERUPRO process at the interruption block and uses the JOG keys to move in front of the problem component of the target block.
S B2, 23, 34 are always approached with RMI and RMB and the target
block thus repeated once completely.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-67
Mode Group, Channel, Program Operation, Reset Response (K1) 2.5 Block search
REPOS-Mode selection
The 3 bits of channel-specific VDI signal PLCNCK) IS REPOSPATHMODE02 (DB21, ... DBX31.031.2) can be selected with the 3 bits of the relevant function RMB, RMI, RME or RMN.
Reapproach point
RMNOTDEF RMB RMI RME RMN REPOS mode not redefined Reapproach start or end of block Reapproach interruption point Reapproach end of block Reapproach next point on path corresponds to RMNOTDEF corresponds to RMB corresponds to RMI corresponds to RME corresponds to RMN
REPOSPATHMODE (DB21, ... DBX31.031.2)=0 REPOSPATHMODE (DB21, ... DBX31.031.2)=1 REPOSPATHMODE (DB21, ... DBX31.031.2)=2 REPOSPATHMODE (DB21, ... DBX31.031.2)=3 REPOSPATHMODE (DB21, ... DBX31.031.2)=4
With IS REPOSPATHMODE02 (DB21, ... DBX31.031.2) = 0 nothing is overwritten and the current program is valid. The interface signal responds to the level of the corresponding mode.
Note RMN is a general REPOS extension and is not restricted to SERUPRO. RMI and RMB are identical with respect to SERUPRO. IS REPOSPATHMODE02 (DB21, ... DBX31.031.2) is used to influence the path as a whole. The path axes cannot be changed individually. The behavior of the other axis types can be changed individually with IS REPOSDELAY (DB31, ... DBX10.0). This REPOS offset is not applied immediately, but only when it is next programmed. For further information about programming the reapproach point, please refer to References: /PGA/, Path traversing behavior Reapproach contour
The valid REPOS mode of the interrupted block can be read via synchronized actions using the system variables $AC_REPOS_PATH_MODE= 0: not defined 1: RMB 2: RMI 3: RME 4: RMN Reapproach not defined Reapproach at start. Reapproach to interrupt point. Reapproach to block end point. Reappraoch to geometrical next path point of interrupted block.
1/K1/2-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
2.6
Definition
The term Program operation mode refers to the state where parts programs or parts program blocks are processed in AUTOMATIC or MDA mode.
Channel control
Every channel can be controlled by means of interface signals from the PLC. These can be either mode group-specific or channel-specific interface signals. An overview of these signals is given in Chapter 5 of this Description of Functions.
Status messages
Each channel reports its current program operation status to the PLC with interface signals. These signals are divided up into mode group-specific and channel-specific signals. An overview of these signals is given in Section 7.5 Interface signals in this Description of Functions.
2.6.1
Initial settings
Initial settings
Initial settings can be programmed in channel-specific machine data for each channel. These initial settings affect, for example, G groups and auxiliary function output.
The timing for output of auxiliary functions can be predetermined via machine data AUXFU_x_SYNC_TYPE (MD 22200, 22210, 22220, 22230, 22240, 22250, 22260), (output timing for M, S, T, H, F, D, E functions). For more detailed information see: References: /FB/, H2, Output of Auxiliary Functions to PLC
G groups
An initial setting can be predefined with MD 20150: GCODE_RESET_VALUES (initial setting of G groups) for each of the existing G groups. This initial setting is automatically active during program start or in Reset until it is deselected by a G command from the same G group. The MD 22510: GCODE_GROUPS_TO_PLC (G codes that are output to NCKPLC interface on block change/RESET) activates the output of G codes to the PLC interface. For a list of the G groups together with their G functions and explanations see: References: /PG/, Programming Guide: Fundamentals
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-69
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
2.6.2
Channel status
A parts program can only be selected if the channel is concerned in the Reset state.
2.6.3
There are two possible START commands for initiating processing of a parts program or parts program block:
S With the NC instruction START, program processing in the first channel can
be started from the second channel, for example (for further information see Chapter Channel synchronization). The START command can only be executed in AUTOMATIC and MDA modes. The relevant channel must be in the state Channel status reset (DB21, ... DBX35.7) or Channel status interrupted (DB21, ... DBX35.6).
The parts program can be enabled by the START command for processing in the channel only on the condition that certain signal states exist on the machine.
S IS Mode group ready must be present (DB11, ... DBX4.4) S IS Mode group reset must not be present (DB11, ... DBX0.7) S IS Activate program test must not be present (DB21, ... DBX1.7) S IS NC Start disable must not be present (DB21, ... DBX7.0) S IS NC stop at block limit must not be present (DB21, ... DBX7.2) S IS NC Stop must not be present (DB21, ... DBX7.3) S IS NC Stop axes plus spindle must not be present (DB21, ... DBX7.4) S IS Channel must not be present (DB21, ... DBX7.7) S IS EMERGENCY STOP must not be applied (DB10, DBX56.1) S No axis or NCK alarm must be active
For a further explanation of the individual signals see Chapter 5.
1/K1/2-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
Execution of command
The parts program or parts program block is automatically processed and IS Channel status active (DB21, ... and IS Program status running (DB21, ... DBX35.0) are set. The program is processed until the end of the program has been reached or the channel is interrupted or aborted by a STOP or RESET command.
Alarms
Under certain conditions the START command will have no effect and on of the following alarms will be triggered:
S 10200 No NC Start permitted with active alarm S 10202 No NC Start permitted with active command (see /DA/) S 10203 No NC Start permitted for non-referenced axes.
2.6.4
Channel status
The STOP command is executed only if the channel concerned is in the Channel active status (DB21, ... D35.5).
STOP commands
There are various commands which stop processing of the program and set the channel status to interrupted. These are:
S IS NC stop at block limit (DB21, ... DBX7.2) S IS NC stop (DB21, ... DBX7.3) S IS NC Stop axes plus spindle (DB21, ... DBX7.4) S IS Single block (DB21, ... DBX2.0) S Programming command M00 or M01.
For explanations of the interface signals see Chapter 5. For explanations of the parts program instructions see: References: /PG/, Programming Guide: Fundamentals
Execution of command
After execution of the STOP command, IS Program status interrupted (DB21, ... DBX35.3) is set. Processing of the interrupted program can continue from the point of interruption with the command START.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-71
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
The following actions are executed when the STOP command is triggered:
S Parts program processing is stopped at the next block limit (with NC stop at
block limit, M00/M01 or single block), processing is stopped immediately with the other STOP commands.
S Any auxiliary functions of the current block not yet output by this point are no
longer output.
S The axes of each channel are brought to a standstill along a braking ramp
and parts program processing is then stopped.
S Overstore
References: References: References: References: /BA/, Operators Guide /BA/, Operators Guide /BA/, Operators Guide /PG/, Programming Guide: Fundamentals
S power ON, block search S Repositioning (machine function REPOS) S Orientable tool retraction S Interrupt routine (see Subsection 2.5.12) S DRF function, workpiece zero offset
References: /FB/ H1, Jogging with the handwheel
1/K1/2-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
2.6.5
RESET command
Channel status
The RESET command can be executed in every channel state. This command is aborted by another command.
Reset commands
S IS Mode group Reset (DB11, ... DBX0.7) S IS Reset (DB21, ... DBX7.7)
For a further explanation of the individual signals see Chapter 5. A RESET command can be used to interrupt an active parts program or a parts program block (in MDA). IS Channel status reset (DB21, ... DBX35.7) is set after execution of the Reset command. The parts program cannot be continued at the point of interruption. All the axes of the channel go into exact stop unless they are in follow-up mode. The same applies to the spindles configured in the channel. The following actions are executed when the RESET command is triggered:
S Parts program preparation is stopped immediately. S Axes and, if they exist, spindles in the channel are decelerated along a
braking ramp.
S Any auxiliary functions that have not yet been output at this point are not
longer output.
S The block indicator is reset to the beginning of the parts program. S The Reset alarms (channel-specific, axis-specific, spindle-specific) are
cleared from the display.
2.6.6
Program status
The status of the selected program is flagged to the interface for each channel. The PLC can then trigger the responses and interlocks configured by the manufacturer depending on the status at the interface. The program status is only shown in AUTOMATIC and MDA modes. In all other modes the program status is aborted or interrupted.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-73
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
Program states
S IS Program status aborted (DB21, ... DBX35.4) S IS Program status interrupted (DB21, ... DBX35.3) S IS Program status stopped (DB21, ... DBX35.2) S IS Program status wait (DB21, ... DBX35.1) S IS Program status running (DB21, ... DBX35.0)
For a further explanation of the individual signals see Chapter 5.
The program status can be modified by activating different commands or interface signals. The following table shows the resulting program status when these signals are set (status before the signal is set > Program status running).
Table 2-2
Effect on program status Program processing statuses Commands Aborted X X X X X X X X X X X X X X X Interrupted Stopped Wait Running
IS Reset IS NC stop IS NC stop at block limit IS NC stop axes and spindles IS Read-in disable IS Feed hold, channel-sp. IS Feed hold, axis-sp. Feedrate override = 0% IS Spindle stop M02/M30 in a block M00/M01 in a block IS Single block IS Delete distance-to-go Auxiliary functions output to PLC but not yet acknowledged Wait instruction in program
1/K1/2-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
2.6.7
Channel status
The current channel status is signaled at the interface. The PLC can then trigger certain responses and interlocks configured by the manufacturer depending on the status at the interface. The channel status is displayed in all operating modes.
Channel statuses
S IS Channel status Reset (DB21, ... DBX35.7) S IS Channel status interrupted (DB21, ... DBX35.6) S IS Channel status active (DB21, ... DBX35.5)
For a further explanation of the individual signals see Chapter 5.
The channel status can be modified through the activation of various commands or interface signals. The following table shows the resulting channel status when these signals are set (status before the signal is set > Channel status active). The Channel status active signal is obtained when a parts program or parts program block is being executed or when the axes are traversed in JOG mode.
Table 2-3
Effect on channel status Resulting channel status Commands Reset X X X X X X X Interrupted Active
IS Reset IS NC stop IS NC stop at block limit IS NC stop axes and spindles IS Read-in disable IS Feed hold, channel-sp. IS Feed hold, axis-sp. Feedrate override = 0% IS Spindle stop M02/M30 in a block M00/M01 in a block IS Single block IS Delete distancetogo Auxiliary functions output to PLC but not yet acknowledged Wait instruction in program
X X X X X X X
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-75
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
2.6.8
The following table shows the channel and program states that result after certain operator and program actions. The lefthand side of the table shows the channel and program statuses and the mode groups from which the initial situation can be selected. Various operator/ program actions are listed on the righthand side of the table, the number of the situation after the action has been carried out is shown in brackets after each action.
Table 2-4 Situation Responses to operator or program actions Channel status R 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 x x x x x x x x x x x x x x x x x x x x x x x U x x x x x x x x x x x x x x x x x x x x x x A N Program status U S W A x x x x x x A x x x Active mode M J RESET (4) RESET (5) RESET (6) NC Start (13); Mode change (5 or 6) NC Start (14); Mode change (4 or 6) Direction key (15); Mode change (4 or 5) NC Start (14) NC Start (15) NC Start (13); Mode change (10 or 11) NC Start (16); Mode change (9 or 11) Direction key (17); Mode change (9 or 10) NC Start (13); Mode change (10 or 11) NC Stop (12) NC Stop (7); at block end (5) NC Stop (8); at JOG end (6) NC Stop (10); at block end (10) NC Stop (11); at JOG end (11) Reset (4); wait for other channel (18) Operator or program action (Situation after the action)
1/K1/2-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
2.6.9
Table 2-5 Sequence
1 2 3
Load program (via the operator interface or parts program) Select AUTOMATIC mode Program preselection Channel preselected Preselected channel in Reset state User identifier for program preselection sufficient NC start disable not set Reference point approached with all axes Program processing M02/M30/Reset None End of program
5 6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-77
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
2.6.10
NC START (from PLC, MMC, COM, X user language) NC STOP (from PLC, MMC, COM, X user language) IS NC START DISABLE IS Readin disable IS Axis controller enable IS Feed STOP IS Spindle controller enable IS Spindle STOP IS Program status running IS Program status interrupted IS Program status stopped (from NCK) (DB21, ...DBX35.2) IS Program status aborted (from NCK) (DB21, ... DBX35.4) IS Traversing command X axis (from NCK) (DB31, ... DBB68) IS Exact stop fine (from NCK) IS Spindle stationary (from NCK) IS Spindle in set range (from NCK) (DB31, ... DBX60.7) (DB31, ... DBX61.4) (DB31, ... DBX83.5) Program: N10 G01 G90 X100 M3 S1000 F1000 M170 If N20 M0 If ..... (DB21, ... DBX7.0) (DB21, ... DBX6.0) (DB31, ... DBX2.1) (DB31, ... DBX8.3) (DB31, ... DBX2.1) (DB31, ... DBX8.3) (DB21, ... DBX35.0) (DB21, ... DBX35.3)
Combined logically by PLC user program Aux. function M170 terminated by PLC user program i.e. block N10 ended (auxiliary function output during traversal) Program stopped with read-in disable Program aborted with RESET
Spindle ramp-up
Axis running
Fig. 2-8
1/K1/2-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
2.6.11
Basic information
Program sections which have already been programmed are frequently needed again. Instead of using subroutines, you can repeat existing program sections in any order. The advantage compared with copying blocks is that you save memory and can make modifications easily. Changes to positions only need to be made at one point.
Labels
Labels are used within a program to identify a block or a program section. References: /PG/, Programming Guide: Fundamentals
Repetition
S Repeat a block S Repeat area starting at a label S Repeat an area between two labels S Repeat an area between a label and the end label
Reference: /PGA/, Programming Guide Advanced
Activation
Example
; Drilling positions 2
; Change drill and drilling cycle ; Load tap M6 and threading cycle ; Repeat program section once from Pos 1 up to ; end label ; Change drill and drilling cycle ; Load tap M6 and threading cycle ; Repeat program section once from Pos 2 up to ; end label
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-79
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
2.6.12
Application
In the case of certain events, an implied user program is to start. The user can thus make initial settings of functions or initializations via parts program commands.
The machine data MD 20108: PROG_EVENT_MASK can be set channel-specifically which of the following events will enable the user program:
Parts program start Parts program end Operator panel reset Power-up (of the NC control)
The user program must be stored under the fixed path name /_N_CMA_DIR/_N_PROG_EVENT_SPF. The same protection mechanisms can be enabled as can generally be activated for cylinders (protection levels for writing, reading etc.). MD 20108: PROG_EVENT_MASK is ignored in the simulation run.
In the user program, the system variable $P_PROG_EVENT can be used to request the event which has enabled the parts program.
Event
Table 2-6 Sequence
Channel selection: Reset status Mode selection: AUTO or AUTO and Overstore or MDA or TEACH IN NC Start MD 20112: START_MODE_MASK /_N_CMA_DIR/_N_PROG_ EVENT_SPF
Select channel and mode Channel: in reset status and mode: as per selection
2 3 4 5 6
Start NCK Initialization sequence with evaluation of MD 20112 Implied call of the path name as a subroutine Processing of the data part of the main program Processing of the program part of the main program
1/K1/2-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
Event
Table 2-7 Sequence
Channel selection: Reset status Mode selection: AUTO or AUTO and Overstore or MDA or TEACH IN NC Start MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES MD 20152: GCODE_RESET_MODE /_N_CMA_DIR/_N_PROG_ EVENT_SPF MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES MD 20152: GCODE_RESET_MODE
Select channel and mode, channel: in active status and mode: as per selection
2 3
Block is changed Control enabled Reset sequence with evaluation of MD 20110 and MD 20150 and MD 20152
4 5
Implied call of the path name as an ASUB Control enabled Reset sequence with evaluation of MD 20110 and MD 20150 and MD 20152. Significance: The G code setting is continued to be set via machine data.
Event
Table 2-8 Sequence
1 2 3
Select channel and mode: Optional Reset MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES MD 20152: GCODE_RESET_MODE /_N_CMA_DIR/_N_PROG_ EVENT_SPF MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES MD 20152: GCODE_RESET_MODE
Control enabled Reset sequence with evaluation of MD 20110 and MD 20150 and MD 20152
4 5
Implied call of the path name as an ASUB Control enabled Reset sequence with evaluation of MD 20110 and MD 20150 and MD 20152. Significance: The G code setting is continued to be set via machine data.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-81
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
Event
Table 2-9 Sequence
Power-up
Sequence with Power-up Command Supplementary Conditions (must be satisfied before the command) after power-up Control enabled after Power-up: Reset sequence with evaluation Control enables the reset sequence of MD 20110 and MD 20150 and MD 20152 after power-up Comments
1 2
Reset MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES MD 20152: GCODE_RESET_MODE /_N_CMA_DIR/_N_PROG_ EVENT_SPF MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES MD 20152: GCODE_RESET_MODE
3 4
Implied call of the path name as an ASUB Control enabled Reset sequence with evaluation of MD 20110 and MD 20150 and MD 20152. Significance: The G code setting is continued to be set via machine data.
Chronological sequences
With parts program start and parts program end (SW 6.3 and higher):
Time sequence of Program status and Channel status of the VDI signals (DB21DB30, ... DBB35) on processing a parts program with event-controlled program call for parts program start and parts programend:
Program status DB2130 Running , ... DBX35.0) Stopped , ... DBX35.2) Aborted , ... DBX35.4) Channel status DB2130 Active , ... DBX35.5) Interrupted , ... DBX35.6) Reset , ... DBX35.7)
Fig. 2-9
Time sequence of the interface signals for program status and channel status
1/K1/2-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
Operator panel reset Program status DB2130 Running , ... DBX35.0) Stopped , ... DBX35.2) Aborted , ... DBX35.4) Channel status DB2130 Active , ... DBX35.5) Interrupted , ... DBX35.6) Reset , ... DBX35.7)
Fig. 2-10
Time sequence of the interface signals for program status and channel status
Software modification
Notice The signal charts for the program state and channel state have been altered between SW 6.2 and SW 6.3 for Parts program start and parts program end and for Operator panel reset. SW 6.2 and lower: IS Program status aborted (DB21, ... DBX35.4) is terminated independent of Program status halted (DB21, ... DBX35.2) change from 1 to 0. Channel status Reset (DB21, ... DBX35.7) is termianted independent of Channel status interrupted (DB21, ... DBX35.2) change from 1 to 0. SW 6.3 and higher (see also chronological charts): Program status aborted (DB21, ... DBX35.4) and Channel status Reset (DB21, ... DBX35.7) is not assumed until _N_PROG_EVENT_SPF has ended. Neither the Program aborted state (DB21, ... DBX35.4) nor the Channel reset state (DB21, ... is assumed between program end and start of the program event. DBX35.7). The same applies between operator panel reset and the start of the program event.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-83
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
S is run with the lowest priority and can therefore be interrupted by the user
ASUB.
S The display can be suppressed in the current block display using the
DISPLOF attribute in the PROC statement.
S Single block stop can be disabled using the command SBLOF attribute or
via MD 10702: IGNORE_SINGLEBLOCK_MASK with bit 0. MD 10702: IGNORE_SINGLEBLOCK_MASK with bit 0. No sequences for start/end of parts program are passed:
S If a user ASUB is started from the reset status, the described sequences for
the event for start/end of parts program are not passed.
1/K1/2-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
For MD 20108: PROG_EVENT = H0F, i.e. call of _N_PROG_EVENT_SPF with parts program start, parts program end, operator panel reset and power-up: PROC PROG_EVENT DISPLOF Sequence for parts program start
IF ($P_PROG_EVENT == 1) N 10 MY_GUD_VAR = 0 N 20 M17 ENDIF ; Initialize GUD variable
M17
Note For block search: By setting MD 11450: SEARCH_RUN_MODE, bit 1 = TRUE, /_N_CMA_DIR/_N_PROG_EVENT_SPF will also implicitly enable automatic ASUB start after block search when changing the last action block. For further explanations, please refer to Section 2.4 Program test Automatic start of an ASUB after block search. For further information regarding the power-up of the control, please see References: /IAD/, Chapter 5 Turning on and Power-up
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-85
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
2.6.13
Overview
Interrupt inputs allow the NC to interrupt the current processing operation in the NC so that it can react to more urgent events in interrupt routines or ASUBs. Identical functionality is identified by the terms ASUB and Interrupt routines. For the purposes of simplification, only the term interrupt routine will be used from now on.
S Interrupt routines are normal parts programs which are started by interrupt
events (interrupt inputs, process or machine status) related to the machining process or the relevant machine status. Any parts program block currently being executed will be interrupted by the routine if it is not specifically declared to be locked against interruption. It is possible to continue the subroutine at the point of interruption at a later stage.
S Where several interrupt routines exist, the have to be given different levels
of priority so that incoming activation signals arriving at the same time can be placed in a certain order.
Note With software versions up to and including version 3, interrupt routines can be called only if the mode group is in program operation mode, i.e. in cases where parts program blocks are being processed in either AUTOMATIC or in MDA mode. With SW 4 and higher, this restriction no longer fully applies. For the conditions under which interrupt routines can be called additionally in SW 4, please refer to 2.6.14.
1/K1/2-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
Main program/Subroutine %100 N10 SETINT ... N20 ... Block in processing N30 ... N40 ... N50 ... N60 ... N70 ... N80 ... N90 ... N100 ... N110 ... N120 M30 Return possible Event (input switches) Assign a routine to an event and switch to ready
Interrupt routine
M17
Fig. 2-11
Parameterization by SETINT
An interrupt signal must be assigned to the parts programs via the NC instruction SETINT. This turns the parts program into an interrupt routine. The following parameters can be used in the SETINT instruction:
S LIFTFAST: When the interrupt signal arrives, a Fast retraction of the tool
from the contour is executed before the interrupt routine starts. The direction of the retraction is defined by the NC address ALF. If mirroring is active for machining with frames, MD 21202: LIFTFAST_WITH_MIRROR can be used to control whether the retraction direction is also mirrored with lift fast. The traversing path for rapid retraction is stored for the 3 geometry axes in MD 21200: LIFTFAST_DIST (traversing path for rapid retraction from contour). When LIFTFAST (rapid retraction) is parameterized, the maximum axis acceleration for positioning operations (MD 32300: MAX_AX_ACCEL) is reduced by the factor set in MD 20610: ADD_MOVE_ACCEL_RESERVE (acceleration margin for overlaid motions).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-87
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
Interrupt signals
A total of 8 interrupt signals are available. All inputs can be controlled via the PLC. The first four interrupt signals are controlled via the 4 rapid NC inputs on the NCU module (X121). The signal state of the rapid NC inputs can be read out via the PLC interface (DB10). Transmission of the rapid NC input signals to the interrupt signals can be disabled via the PLC interface (DB10).
4 rapid NC inputs
PLC interface
4 interrupt signals
4 interrupt signals
Fig. 2-12
Interrupt signals
For further information about PLC control of the rapid NC inputs (interrupt signals) see: References: /FB/, A4, Digital and Analog NCK I/Os.
Reorganization
In addition to decelerating the axes, the previously decoded calculation blocks are calculated back to the interruption block. I.e. all the variables, frames and G codes are assigned the value that they would have at the point of interruption if the parts program had not been previously decoded. These values are put in the buffer so that they can be called up again when the interrupt routine is completed. Exceptions where reorganization is not possible:
S In thread cutting blocks S With complex geometries (e.g. spline, radius compensation).
1/K1/2-88
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
The Interrupt program is automatically started on completion of reorganization. It is treated by the system like a normal subroutine (displayed on the operator interface, nesting depth etc.)
After the end identifier (M02, M30, M17) of the Interrupt routine has been processed, the axis traverses as standard to the end position programmed in the parts program block following the interruption block. A REPOS instruction must have been programmed at the end of the interrupt routine if return positioning to the point of interruption is required, e.g. REPOSL M17
Parts program: PROGNAME N10 ... N20 Y20 N30 X60 End point of interrupt routine N40 ... N104 N50 M30 Path of interrupt routine Path with REPOSL N101 N20 N30 Point of interruption N40 Interrupt routine: INTER N101 ... N102 ... N103 ... N104 REPOSL M17
Fig. 2-13
For more information about the REPOS instruction (e.g. syntax) see: References: /PG/, Programming Guide: Fundamentals
SAVE command
If the SAVE command has been used to define the interrupt routine, the G codes, frames and transformations previously active in the interrupted parts program become operative again as soon as the interrupt routine is ended.
Interrupt disable
The DISABLE command can be set to protect parts program sections from being interrupted by an interrupt routine. The assignment interrupt signal <>parts program is maintained but the interrupt routine does not respond to the 0/1 signal transition. The DISABLE command can be reset with the ENABLE command. Interrupt routines are not activated until the next 0/1 transition of the interrupt signal.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-89
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
Clear assignment
The assignment interrupt signal <> parts program is cleared when the following happens:
2.6.14
In SW 4 and higher, ASUBs/interrupt routines can also be enabled in the program states or operating modes listed below, in addition to AUTOMATIC mode and MDA: JOG, JOG REF MDA Teach In, MDA Teach In REF, MDA Teach In JOG, MDA REF, MDA JOG AUTOMATIC, stopped, ready Not referenced.
If an interrupt routine is activated in JOG or REF mode, it will interrupt any jogging and referencing operations in progress.
Start conditions
Individual basic frames can be deleted with MD 11602: ASUP_START_MASK can be set to enable ASUBs for conditions under which ASUBs are otherwise locked by a default setting. Stop by means of Stop key, M0, M01 Not all axes are referenced yet Readin disable is active.
If the default setting remains valid, the response is the same as for SW version 3.
If MD 11602: ASUP_START_MASK is set such that the ASUB may not be started automatically, the routine can still be activated by the Start key. Any rapid retraction that may be parameterized is always started.
Priorities
The MD 11604: ASUP_START_PRIO_LEVEL can be set to define the priority level up to which the settings in MD 11602: ASUP_START_MASK must be effective (1128, 1 corresponds to highest priority). The priority specified in the MD covers all priority levels from 1 up to the specified level.
1/K1/2-90
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
MD11600: BAG_MASK can be set to control the effect of mode group signals (mode group reset, mode group stop axes and spindles, mode group switchover disable) on mode group channels in which interrupt routines are currently being processed. See Section 4.2, General machine data. The machine data also defines whether the internal program processing mode applies only to the one channel in which the interrupt routine has been activated or to all channels in the mode group. If via MD11600: BAG_MASK, the channel in which the interrupot is running has left the BAG, the BAG signals BAG-RESET, BAG-STOP and BAG-STOPALL are not active in this channel. So the ASUP of BAG signals can proceed unhindered.
NC response
The following table describes the NC response in the individual operational states:
Table 2-10 Status of NC Program is active Start of ASUB Interrupt, (PLC) Control system reaction Rapid retraction or stop axes Interruption of program for duration of ASUB Approach to interruption point if ASUB contains REPOS Continuation of parts program. (Corresponds to SW 3) The ASUB is executed like a main program. RESET (without M30) is executed at the end of the ASUB. The next control system status depends on machine data MD 20110: RESET_MODE_MASK and MD 20112: START_MODE_MASK. References: /FB/, K2, Workpiece-Related Actual Value System ASUB is executed. The channel resumes the stopped state at the end of the routine. REPOS in ASUB: Processing of the ASUB ceases prior to the approach block. The approach movement can be initiated with the Start key. Once the ASUB has been executed, processing of the interrupted program is resumed. (As with SW 3) Control system assumes the status internal program processing mode for the addressed channel (not evident externally) and then activates the ASUB. The selected operating mode remains valid. The original status is resumed after execution of the ASUB (M17). Stop processing, evaluate setting in MD11602: ASUP_START_MASK and MD 11604: ASUP_START_PRIO_LEVEL, internal switchover to internal program p g execution mode if appropriate, pp p activate ASUB, restore t status t t prior i to t ASUB start. t t A Any LIFTFAST defined d fi d with ith SETINT is not activated in JOG mode.
RESET
Interrupt, (PLC)
Interrupt, (PLC)
JOG AUTO Teach In, AUTO Teach Reference pnt. MDA JOG, MDA Teach In, MDA Teach reference pnt.
Interrupt, (PLC)
Interrupt, (PLC)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-91
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
Table 2-10 Status of NC Manual mode, channel running Processing of INITIAL.INI, Block search, alarm which cannot be reset by an NC start, digitizing activated, channel in error state Start of ASUB Interrupt, (PLC) Control system reaction The current active motion is stopped. The distance-to-go is deleted. The remaining sequence of operations is the same as for Manual mode, channel stopped. The signal Interrupt request not possible is generated. See 5 Signal Descriptions. ASUB cannot be started
Activation options
With SW 4 and higher, ASUBs can also be activated by using synchronized actions to set outputs that enable the input of the interrupt indirectly by shortcircuit. Example: 1. Define number of active digital I/Os FASTIO_DIG_NUM_INPUTS=3 FASTIO_DIG_NUM_OUTPUTS=3 2. Generate a shortcircuit with the following MDs FASTIO_DIG_SHORT_CIRCUIT[0]=H0102B102 FASTIO_DIG_SHORT_CIRCUIT[1]=H0202B202 3. Hardware assignment of external NC input byte for NC program interrupt SETINT_ASSIGN_FASTIN=2 ; better to use 1 byte more than needed 4. SETINT (1) PRIO=1 SYNCASUP; Define input as ASUB trigger 5. IDS=1 EVERY $$AC_PATHN>=0.5 DO $A_OUT_[9]=1 References: /FBSY/, Synchronized Actions
REPOS
In the case of ASUBs that could only be called from MDA or AUTOMATIC in SW 3, it was always possible to call REPOS at the end of an ASUB to reposition on the interruption point. With the new options provided in SW 4, ASUB sequences may be generated for which there is no unambiguous return to an interruption point in the block processing sequence. System variable: $P_REPINF can be used to scan the ASUB to determine whether a REPOS is possible.
Value 0
Meaning Repositioning with REPOS is not possible because: Not called in ASUB ASUB was executed from RESET state ASUB was executed from JOG state Repositioning with REPOS possible in ASUB
1/K1/2-92
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
If an ASUB is started after the collecting blocks have been output, the NCK will stop before executing the REPOSA block, and the IS ASUB is stopped (DB21, ... DBX318.0) is set.
Note In this situation, ASUB Done is not yet set by the FC9 block. In the case of ASUBs ending without REPOS, the signals ASUB Done and ASUB is stopped occur at the same time. For further explanations regarding a description of the signals at the VDI interface, please refer to: Chapter 5 Signal Descriptions
Read-in disable
The MD 20116: IGNORE_INHIBIT_ASUP instructs the control that user ASUBs for specified interrupt channels must be executed completely even through a read-in disable is active. For running ASUB programs, the VDI signal IS Read-in disable (DB21, ... DBX6.1) can be ignored depending on MD 11604: ASUP_START_MASK. How the ASUB is further processed, depends on the programmed block end (RET or REPOS).
The MD 20117: IGNORE_SINGLEBLOCK_ASUP instructs the control that user ASUBs for specified interrupt channels must be executed completely even through single block processing mode is selected.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-93
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
2.6.15
Preconditions
The SW supplied with the NCK contains preprogrammed processes (internal ASUPs) for implementation of the RET and REPOS functions. With SW 4 and higher, the machine manufacturer can replace these standard routines with ones of his own.
MD 11610: ASUP_EDITABLE is set to determine which system routines are to be replaced by user-defined routines.
Value 0 1 2
Meaning The user-defined routine stored in _N_ASUP_SPF in directory _N_CUS_DIR is not activated for either RET or REPOS. Response as for SW 3. The user-defined routine is activated for RET, the routine provided in the system is activated for REPOS. The user-defined routine is activated for REPOS, the routine provided in the system is activated for RET.
User SW
_N_ASUP_SPF
ASUP_EDITABLE
NCK system SW
System ASUB RET System ASUB REPOS
User RET
User REPOS
Fig. 2-14
1/K1/2-94
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
One routine named _N_ASUP_SPF can be loaded to directory _N_CUS_DIR. This routine must implement the actions required by the user for: RET when MD 11610 is set to 1 REPOS when MD 11610 is set to 2.
$AC_ASUP
Bit RET REPOS 1 1 1 1 1 1 19 18 17 16 15 14 13 1 1 1 12 11 10 1 * * 1 9 8 7 1 1 1 6 5 4 3 2 1 0
*) If bit 9 is set, then the branch is determined by MD 20114: MODESWITCH_MASK: Bit 0 in MD 20114 is set: RET Bit 0 in MD 20114 is not set: REPOS
Meaning of bits
Bit 0 1
Meaning User interrupt ASUB with Blsync Continuation: Freely selectable REORG or RET User interrupt ASUB; The position at which the routine was stopped is stored for continuation with REPOS. Continuation: Freely selectable REORG or RET User interrupt ASUB from channel status Ready Continuation: Freely selectable REORG or RET User interrupt ASUB in a manual mode and in channel status not Ready Continuation: Freely selectable REORG or RET User interrupt ASUB; The current position as the interrupt occurred is stored for continuation with REPOS. Continuation: Freely selectable REORG or RET Abortion of subroutine repeat Continuation: With system ASUB REPOS Activation of decoder single block Continuation: With system ASUB REPOS Activation of delete distance-to-go Continuation: With system ASUB RET Activation of axis synchronization Continuation: With system ASUB REPOS Mode change Continuation: With system ASUB REPOS or RET depending on MD 11610 Program continuation during Teach In or after Teach In deactivation Continuation: With system ASUB RET Overstore selection Continuation: With system ASUB REPOS Alarm with reaction correction block with REPOS Continuation: With system ASUB REPOS
2 3
5 6 7 8 9 10 11 12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-95
Mode Group, Channel, Program Operation, Reset Response (K1) 2.6 Program operation mode
07.02 10.00
Bit 13 14 15 16 17 18 19
Meaning Retraction motion with G33 and stop Continuation: With system ASUB RET Activation of dry run feedrate Continuation: With system ASUB REPOS Deactivation of dry run feedrate Continuation: With system ASUB REPOS Activation of skip block Continuation: With system ASUB REPOS Deactivation of skip block Continuation: With system ASUB REPOS Activate machine data Continuation: With system ASUB REPOS Activate user data Continuation: With system ASUB REPOS
If a user-defined routine is to be used, i.e. if a value other than 0 is programmed in MD 11610: ASUP_EDITABLE, a protection level can be defined for user-specific routine _N_ASUP_SPF. The protection level can be set to values between 0 and 7 and must be entered in MD 11612: ASUP_EDIT_PROTECTION_LEVEL. For further information about protection levels, please read References: /IAD/, Installation and StartUp Guide, System of Protection
Bit 0 in machine data 10702: IGNORE_SINGLEBLOCK_MASK determines whether internal ASUBs or ASUBs defined by the user must be processed without interruption after every block even when single block processing is selected: Bit 0 is set: Bit 0 is not set: Internal ASUBs are not interrupted in every block. Internal ASUBs are interrupted in every block.
Danger The machine manufacturer is responsible for the contents of ASUB routines used to replace ASUP.SYF supplied by Siemens.
1/K1/2-96
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.7 Block
2.7
Block
With the single block function, the user can process a parts program block by block. There are 3 types of setting for the single block function:
SW 4 and higher
1. In many situations and with certain blocks, it is not desirable that machining should stop. 1st example: Change after jogging if reorganization or repositioning not possible, MD 10702, bits 6 and 7. If machining stops at the end of block in a block which cannot be reorganized or repositioned, JOG mode cannot be selected. 2nd example: Change after jogging on a STOPRE block, MD 10702, bits 6 and 7 When changing from AUTO to JOG while a STOPRE block is active, the remaining block and one or (on Decode single block) two STOPRE blocks follow after continuation apart from system ASUB2. A logic operation which always triggers a parts program start in single block and then always changes to JOG mode remains indefinitely at the STOPRE block. 3rd example: DISPOF: Deactivate block display, MD 10702, bits 6 and 7 When DISPOF was programmed in a subroutine the block display is suppressed. The operator must continuously press start up to the end of the subroutine. 2. When single block is deactivated there is no stop at end of block. 3. When STOPRE blocks are displayed, the main run and preprocessing are synchronized in the decoding single block.
2.7.1
Decoding single block SBL2 with implicit preprocessing stop (SW 6.3 and higher)
The advance processing of parts program blocks can result in loss of reference between the current block display referred to the main run status on the NCK and the variable values displayed on the HMI. The operator display then shows implausible variable values. Using channel-specific setting data SD 42200: SINGLEBLOCK2_STOPRE a preprocessing stop is executed on every block when SBL2 is active. This suppresses preprocessing of parts program blocks and maintains the relationship between the current block display and the variable values display.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-97
Mode Group, Channel, Program Operation, Reset Response (K1) 2.7 Block
Note This variant of SBL2 does not maintain an accurate contour. In other words, as a result of the preprocessing stop, a different contour may be generated than the one created without single block mode or with SBL1. Application: Debug mode for testing parts programs.
2.7.2
SBLOF
Programs identified by the language command SBLOF are executed completely in one block as with every type of single block. SBLOF is also valid in subroutines which are called. Example for subroutine without stop in single block:
PROC BEISPIEL SBLOF G1 X10 RET
The return command determines whether or not the program halts at the end of the subroutine: Return jump with M17 Stop at the end of the subroutine Return jump with RET No stop at the end of the subroutine
In the program
SBLOF must appear on its own in a block. With effect from this block, single block is deactivated until the next programmed SBLON or until the end of the active subroutine level. If SBLOF is active, this also applies in subroutines which are called. Example: The area between N20 and N60 is executed as one step in single block mode.
N10 G1 X100 F1000 N20 SBLOF N30 Y20 N40 M100 N50 R10=90 N60 SBLON N70 M110 N80 ... ; Deactivate single block
Asynchronous subroutines
The asynchronous subroutines ASUP1.SYF and ASUP2.SYF, which are started internally in the system on Reorg/REPOS, have to be executed step by step in software versions up to SW 4. In SW 4 and higher, the system ASUB can be executed in one step by programming SBLOF. Example: ASUP.SPF:
N10 SBLOF N20 IF $AC_ASUP == H200 N30 RET N40 ELSE N50 REPOSA N60 ENDIF N70 RET
1/K1/2-98
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.7 Block
Supplementary conditions
S The current block display can be suppressed in cycles using DISPLOF. S If DISPLOF is programmed together with SBLOF, the cycle call continues to
be displayed on single block stops within the cycle.
S The default setting for the response of asynchronous programs with single
block, which is defined in MD 20117: IGNORE_SINGLEBLOCK_ASUP, can be overwritten in a specific program with SBLOF.
Examples
CYCLE1 is processed for an active single block, i.e. the Start key must be pressed once for machining with CYCLE1. Example 2: An ASUB, which is started by the PLC in order to activate a modified zero offset and tool offsets, is to be executed invisibly.
N100 PROC NV SBLOF DISPLOF N110 CASE $P_UIFRNUM OF 0 GOTOF _G500 1 GOTOF _G54 2 GOTOF _G55 3 >GOTOF _G56 4 GOTOF _G57 DEFAULT GOTOF END N120 _G54: G54 D=$P_TOOL T=$P_TOOLNO N130 RET N140 _G54: G55 D=$P_TOOL T=$P_TOOLNO N150 RET N160 _G56: G56 D=$P_TOOL T=$P_TOOLNO N170 RET N180 _G57: G57 D=$P_TOOL T=$P_TOOLNO N190 RET N200 END: D=$P_TOOL T=$P_TOOLNO N210 RET
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-99
Mode Group, Channel, Program Operation, Reset Response (K1) 2.7 Block
07.02 10.00
2.7.3
As a function of MD 10702: IGNORE_SINGLEBLOCK_MASK, setting bits 0 to 12 = 1 can suppress stopping at the end of the block during the following machining processes. Program processing must not stop after single blocks in the case of the following even if
SBL processing is selected:
1. An internal Asub 2. A user Asub 3. Subroutines with the attribute DISPLOF 4. Intermediate blocks 5. Block search group blocks 6. Init blocks 7. Blocks which are not reorganizable 8. Blocks which are not repositionable 9. A reapproach block which contains no traversing information. 10. A prerun/main run/synchronization block, due to Reorg 11. At a Tool selection block. 12. At a GET block 13. During a single block type 2 (SW 6.4 and higher) If an ASUB is activated during the single block, for example, execution of the ASUB is completed. The deceleration movement does not take place until after the end of the ASUB or the first Ipo block in which single block suppression is not activated. If the velocity is too large for the deceleration to be performed in this block (with continuous-path mode G64 active), further block changes must be enabled. For decoding single block, MD 10702 is only effective with internal ASUB, user ASUB and subroutines with the attribute DISPLOF. In these cases, it is already clear at the time of interpretation that the block belongs to one of the above categories. In these cases, further blocks can be generated.
SBLON in ASUB
The single block stop for an internal ASUB or user ASUB programmed with MD 10702: IGNORE_SINGLEBLOCK_MASK can be activated again by programming SBLON in the ASUB. This functionality can be suppressed again with MD 20117: IGNORE_SINGLEBLOCK_ASUP, which disables the command SBLON.
Supplementary conditions
S Block search approach blocks S Block not in ASUB; DISPLOF, SBLOF S Non-reorganizable and non-repositionable blocks S Blocks which are not generated in the interpreter, e.g. intermediate blocks
1/K1/2-100
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
2.8
Program control
2.8.1
Selection
Different functions are available under the soft key Program control. Selection affects an interface signal in the PLC. These signals are to be understood as selection signals from the operator interface, and do not activate the selected function.
Activation
These signal states must be transferred to another area of the data block to activate the selected function. With program control by the PLC the signals are to be set directly.
Feedback
Table 2-11
The activated functions are partly signalled back to the PLC from the NCK.
Program control Selection signal DB21, ... DBX26.026.7 DB21, ... DBX27.027.1 DB21, ... DBX24.6 DB21, ... DBX25.3 Activation signal DB21, ... DBX2.02.7 DB21, ... DBX31.631.7 DB21, ... DBX0.6 DB21, ... DBX6.6 DB21, ... DBX318.6 Feedback signal
Function SKP skip blocks 0 to 7 SKP skip blocks 8 to 9 DRY dry run feedrate ROV Rapid traverse override Single block with stop after: SBL1 each machine function. SBL2 each block SBL3 stop in cycle M01 programmed stop 1 MFct programmed Stop 2 DRF selection PRT program test
Preselection of SBL1, SBL2 or SBL3 via program control display of HMI DB21, ... DBX27.4 HMI operator panel HMI operator panel DB21, ... DBX24.5 DB21, ... DBX24.4 DB21, ... DBX24.3 DB21, ... DBX25.7 DB21, ... DBX0.4 OPI variable: suppProgFunc bit0 and bit1 DB21, ... DBX0.5 DB21, ... DBX30.5 DB21, ... DBX0.3 DB21, ... DBX1.7 DB21, ... DBX32.5 DB21, ... DBX318.5 DB21, ... DBX33.3 DB21, ... DBX33.7 DB21, ... DBX32.6
References:
/LIS/, Lists Interface signals /BA/ Operators Guide Machine Operating Area
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-101
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
2.8.2
It is possible to skip blocks which are not to be executed every time the program runs. Blocks to be skipped are indicated in the parts program by an oblique / before the block number. The skip levels in the parts program are specified by/0 to /7. Only one skip level can be specified in a parts program block. MD 9423: MAX_SKP_LEVEL defines the number of skip levels. Example: Blocks which are not to be executed every time the program runs can be skipped as follows (e.g. program running in blocks): / ; Skip block, (DB21, ... DBX2.0) 1st skip level / N005 ; Skip block, (DB21, ... DBX2.0) 1st /0 N005 ; Skip block, (DB21, ... DBX2.0) 1st /1 N010 ; Skip block, (DB21, ... DBX2.1) 2nd /2 N020 ; Skip block, (DB21, ... DBX2.2) 3rd /3 N030 ; Skip block, (DB21, ... DBX2.3) 4th /4 N040 ; Skip block, (DB21, ... DBX2.4) 5th /5 N050 ; Skip block, (DB21, ... DBX2.5) 6th /6 N060 ; Skip block, (DB21, ... DBX2.6), 7th /7 N070 ; Skip block, (DB21, ... DBX2.7) 8th skip level The 8 skip levels /0 to /7 are activated by the PLC setting the PLC > NCK interface signals.
2 new skip levels are added to make 10 in total (/0 to /9) Example: /8 N080 ; Skip block, (DB21, ... DBX31.6), /9 N090 ; Skip block, (DB21, ... DBX31.7) 9th skip level 10th skip level
The function is activated from the HMI via the Program control menu in the Machine operating area for skip levels
S /0 to /7 via interface MMC > PLC (DB21 to DB30) in DBB26. S /8 to /9 via interface MMC > PLC (DB21, ... DBX27.027.1).
References: /BA/ Operators Guide Machine Operating Area
Note The levels to be skipped can only be changed when the control is in the Stop/Reset state.
1/K1/2-102
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
2.8.3
Introduction
The channel-specific interpolator executes prepared blocks from the interpolation buffer during the parts program run. The maximum number of blocks requiring space in the interpolation buffer at any given point in time is defined by memory-configuring MD 28060: MM_IPO_BUFFER_SIZE. For some applications it may be meaningful not to use the full buffer capacity in order to minimize the interval between preparation and interpolation.
Solution
With the setting data SD 42990: MAX_BLOCKS_IN_IPOBUFFER the number of blocks in the interpolation buffer can be dynamically limited to a value lower than MM_IPO_BUFFER_SIZE (minimum of 2 sets). Value of the setting data SD 42990: MAX_BLOCKS_IN_IPOBUFFER:
Value <0
Effect No interpolation buffer limit active. The max. possible interpolation buffer as set in MD 28060: MM_IPO_BUFFER_SIZE is activated. The minimum permissible interpolation buffer with 2 blocks is activated. The interpolation buffer is activated with no more than the maximum specified number of blocks. The interpolation buffer is activated with the number of blocks specified in MD 28060:
MM_IPO_BUFFER_SIZE.
Note If SD 42990: MAX_BLOCKS_IN_IPOBUFFER is set in the parts program, the limitation of the interpolation buffer takes effect immediately when the block with the SD is executed by the interpreter at the preprocessing stage, i.e. the limitation of the IPO buffer may take effect a few blocks before the intended activation point (see also MD 28070: MM_NUM_BLOCKS_IN_PREP). To avoid premature activation and make the limitation of the IPO buffer take effect in synchronism with the block, a STOPRE (preprocessing stop) must be programmed before the SD is set in the parts program.
Validity
SD 42990: MAX_BLOCK_IN_IPOBUFFER has global, channel-specific validity and can also be modified in a parts program. This modified value is maintained at program end. If this setting data is to be reset again on defined events, an event-controlled program must be created to do this. This setting data could als be set to a predefined value on RESET, for example. For information see Subsection 2.6.12.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-103
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
Application
The interpolation buffer limitation can be used whenever the number of blocks between block preparation and interpolation must be minimized, e.g. when actual positions in the parts program must be read and processed for other purposes.
Example
N10 ... N20 ... ........... N100 $SC_MAX_BLOCKS_IN_IPOBUFFER = 5 ; Limit IPO buffer to 5 NC blocks N110 ... N120 ... ............ N200 $SC_MAX_BLOCKS_IN_IPOBUFFER = 1 ; Cancel limit on IPO buffer N210 ... ............
2.8.4
A so-called basic block display showing all blocks which will generate an action on the machine can be called in parallel to the existing block display. The actually approached end positions are shown as an absolute position. The positional data refer either to the workpiece coordinate system (WCS) or the settable zero system (SZS). The number of Look Ahead display blocks stored in the display buffer depends on the number of prepared blocks in the NCK preprocessing buffer in the relevant processing state. If a preprocessing stop is processed, the number of display blocks is reduced to zero and increases again after the stop is acknowledged. In the case of REORG events (e.g. mode change, ASUB start), the display blocks stored for Look Ahead are deleted and preprocessed again afterwards.
Processed values
S selected tool S feed and spindle speed S position values actually approached.
Exceptions: Deviations may occur when tool radius compensation is active. With modulo axes, the basic block display shows the programmed value which might also lie outside the modulo range.
Note Positions are always shown in either the WCS or the SZS. The basic block display function can be activated or deactivated via setting data SD 42750: ABSBLOCK_ENABLE.
1/K1/2-104
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
The basic block display can be configured via the following machine data:
NCK machine data for basic block display MD 28400: MM_ABSBLOCK MD 28402: MM_ABSBLOCK_BUFFER_CONF[2] Machine data display MD 9004: DISPLAY_RESOLUTION MD 9011: DISPLAY_RESOLUTION_INCH MD 9010: SPIND_DISPLAY_RESOLUTION Significance: activate basic block display size of display buffer position values to be set: for metric measurements for inch measurements for spindle display resolution coordinate system to be set MD 9424: MA_COORDINATE_SYSTEM for actual value display in WCS or SZS
These display machine data are copied to NCK machine data MD 17200: GMMC_INFO_UNIT[0] to MD 17200: GMMC_INFO_UNIT[3], allowing them to be accessed from the NCK.
Activation
The basic block display is activated by MD 28400: MM_ABSBLOCK by means of a POWER ON. If MD 28400: MM_ABSBLOCK is set to 1, a channel-specific display buffer (FIFO) Size of the display buffer (FIFO) parameterized in (MD 28060: MM_IPO_BUFFER_SIZE + MD 28070: MM_NUM_BLOCKS_IN_PREP) multiplied by 128 bytes is set up at boot. This corresponds to a size of 6KB in the machine data default setting. Optimize size of display buffer: The memory requirement can be optimized by entering a value between 128 and 512. The display blocks preprocessed in the display buffer are transferred to the HMI via a configurable upload buffer. The maximum size of the upload buffer is calculated by multiplying (MD 28402: MM_ABSBLOCK_BUFFER_CONF[0] + MD 28402: MM_ABSBLOCK_BUFFER_CONF[1] + 1) with the block length configured in MD 28400: MM_ABSBLOCK. The value configured here is the number of blocks located before the current block in MD 28402: MM_ABSBLOCK_BUFFER_CONF[0] and after the current block in MD 28402: MM_ABSBLOCK_BUFFER_CONF[1].
Supplementary conditions
When the length of a display block configured in MD 28400: MM_ABSBLOCK is exceeded, this display block is truncated accordingly. This is represented by string ... at the end of the block. In the case of precompiled cycles (MD 10700: PREPROCESSING_LEVEL > 1), the display block contains only axis positions. Additional boundary conditions for the basic block display:
S The basic block display is deactivated during block search with or without
computation.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-105
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
Diameter values shown in the basic block display and position display may be needed as a radius for internal calculation. These values can be controlled by the following methods:
S MD 27100: ABSBLOCK_FUNCTION_MASK
Bit0 = 1 Traverse axis setpoints are always shown as diameter values in the basic block display.
With active compressor and G/Code group 30 not equal to COMPOF, two display blocks are generated. The
S First contains the G/Code of the active compressor. S The second contains the string ... as character for missing display blocks.
Example: G0 X10 Y10 Z10 ; Block which is still to be processed for basic block display COMPCAD ; Compressor for optimized surface quality (CAD-Prog.) on ... ; String as character for missing display blocks. To avoid bottlenecks in the NCK performance, the basic block display is deactivated automatically. A display block containing the string ... is generated as character for missing display blocks. All display blocks are always created in the single block.
S Axis positions
(sequence as specified in MD 20070: AXCONF_MACHAX_USED).
S Macros are expanded. S Skip identifiers and comments are omitted. S Block number and labels are transferred from the original block, but omitted
if DISPLOF is active.
1/K1/2-106
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
HMI display machine data MD 9004: DISPLAY_RESOLUTION MD 9011: DISPLAY_RESOLUTION_INCH MD 9010: SPIND_DISPLAY_RESOLUTION MD 9424: MA_COORDINATE_SYSTEM
Access in NCK machine data MD 17200: GMMC_INFO_NO_UNIT[0] MD 17200: GMMC_INFO_NO_UNIT[1] MD 17200: GMMC_INFO_NO_UNIT[2] MD 17200: GMMC_INFO_NO_UNIT[3]
Programmed axis positions are displayed as absolute positions in the coordinate system (WKS / SZS) selected via MD 9424: MA_COORDINATE_SYSTEM.
Note The modulo offset is omitted for modulo axes which means that positions outside the modulo range can be displayed. It also means that the basic block display differs from the position display in which values are always moduloconverted.
Examples
Comparisons between display block (original block) and basic block display: 1. Programmed positions are displayed absolutely. Addresses AP/RP are shown with their programmed values.
Original block: N10 G90 X10.123 N20 G91 X1 > > Display block: N10 X10.123 N20 X11.123
2. Address assignments (non-DIN addresses) are displayed in the form <address> = <constant>.
Original block: N110 R1 = 67.5 R2 = 7.5 N130 Z = R1 RND = R2 Display block: > N130 Z67.5 RND = 7.5
3. Address indices (address extensions) are displayed as constants <address > [ <constant>] = <constant>
Original block: N220 DEF AXIS AXIS_VAR N240 FA[ AXIS_VAR] = R2 Display block: > N240 FA[X] = 1000
4. DIN addresses without address extension are displayed in the form <din_adresse> <constant> .
Original block: N410 DEF REAL FEED = 1.5 N420 F = FEED Display block: > N420 F1.5
The following applies for H functions: The value programmed in each case is displayed regardless of the output method to the PLC (MD 22110: AUXFU_H_TYPE_INT).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-107
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
5. For the tool selection via T command, display information in the form of T<value> or T=<string> is generated. If an address extension has been programmed, this is displayed as well. If several spindles have been configured or if the Tool change function via toolholder (MD 20124: TOOL_MANAGEMENT_TOOLHOLDER) is active, then the T number is always output with address extension. If no address extension has been programmed, the number of the master spindle or the master toolholder is used instead (T<spindel_nummer/tool_holder>= ). 6. The following rule applies to spindle programming via S, M3, M4, M5, M41 M45 and M70 (or MD 20094: SPIND_RIGID_TAPPING_M_NR) with respect to address extension: If an address extension has been programmed, this is displayed as well. If several spindles have been configured, the address extension is always displayed as well. If no address extension has been programmed, the number of the master spindle is used (S<spindel_nummer>=). 7. Indirect G code programming in form G[ <group> ] =< > is substituted by the corresponding G code.
Original block: N510 R1=2 N520 G[8]= R1 Display block: > N520 G54
8. Modal G codes that do not generate an executable block are collected and output with the display block of the next executable block if permitted by the syntax (DIN block). If this is not the case (e.g. predefined subroutine call TRANSMIT), a separate display block containing the modified G codes is placed in front of the next executable block.
Original block: N610 G64 N620 TRANSMIT Display block: G64 N620 TRANSMIT
>
9. For parts program lines in which the addresses F und FA occur, a display block is always generated (including for MD 22240: AUXFU_F_SYNC_TYPE = 3).
Original block: N630 F1000 N640 X100 Display block: F630 F1000 N640 X100
>
10. The display blocks generated for the block display are derived directly from the programmed parts program blocks. If intermediate blocks (e.g. tool radius compensation G41/G42, radius/chamfer RNDM, RND, CHF, CHR) are generated in the course of contour preprocessing, these are assigned the display information from the parts program block on which the motion is based.
Original block: N710 Y157.5 G42 N720 Z67.5 RND=7.5 Display block: N710 Y157.5 G42 N720 Z67.5 RND=7.5
>
11. With the EXECTAB command (processing a table of contour elements), the block generated by EXECTAB is shown in the display block.
Original block: N810 EXECTAB (KTAB[5]) Display block: N810 G01 X46.147 Z25.38
1/K1/2-108
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
2.8.5
Application
Individual machining steps for producing complex workpieces may involve program sequences that require so much memory that they cannot be stored in the NC memory. This type of program can be selected and executed from an external device in Execution from external source mode. This external device takes the following form with HMI Advanced and, with SW 6.2 and higher, with HMI Embedded:
HMI Advanced: Local hard disk or a Network drive HMI Embedded: (ab SW 6.2) ATA card or a Network drive
In principle, any program that is accessible via the directory structure of the data management system of the HMI operator interface can be selected and retroloaded.
Extensions
Deselection by next program in the NC memory: If a program has been selected for Execution from external source via the HMI, this selection remains valid after Reset / parts program end. The Process from external mode is not deselected until another program stored in the NC memory is selected for execution.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-109
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
2.8.6
EXTCALL
The external subroutine is called with parts program command EXTCALL with specified <path and optional> <program name> Program command EXTCALL is capable of reloading a program in Execution from external source mode via the HMI. The external programs must be accessible via the directory structure on the HMI operator interface. They can be stored on the following data media: HMI Advanced: Local hard disk or network drive
HMI Embedded: ATA card or network drive (with HMI SW 6.2 and higher)
SD 42700 EXT_PROG_PATH
The call path can be set flexibly in SD 42700: EXT_PROG_PATH. SD 42700: EXT_PROG_PATH contains a path name which, together with the programmed subroutine identifier, represents the absolute path name of the program to be called. If an external subroutine is called without an absolute path name, HMI Advanced runs through the same search path as applied when a subroutine is called from the NC main memory.
Call
An external subroutine is called by means of parts program command EXTCALL. The subroutine name programmed in EXTCALL and setting data SD 42700: EXT_PROG_PATH result in the program path by means of a string of characters comprising
S the character / as a separator (if a path has been specified via SD 42700:
EXT_PROG_PATH)
1/K1/2-110
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
Examples
Program to be reloaded is stored on the local hard disk of HMI Advanced: 1. SD 42700: EXT_PROG_PATH = _N_WKS_DIR/_N_WST1
Main program _N_MAIN_MPF (stored in the NC memory and selected for processing) :N010 PROC MAIN N020 .... N030 EXTCALL ROUGHING N040 ..... N050 M30 Subroutine _N_ROUGHING_SPF (stored in the HMI memory under workpieces>WST1) N010 PROC ROUGHING N020 G1 F1000 N030 X= ... Y= ... Z= ... N040 ..... .... .... N999999 M17
Program to be reloaded is stored on network drive or ATA card 2. EXTCALL Windows path name Call for network drive (HMI Embedded or HMI Advanced) e.g. EXTCALL \\R4711\Workpieces\Contour.1.spf Call for ATA card (HMI Embedded) e.g. EXTCALL C:\Workpieces\Contour.2.spf
Note An absolute path must always be specified in HMI Embedded. For further information about using HMI Embedded /Advanced, please see: References: /BEM/, HMI Embedded, Section 6.9 Processing from network, Sections 6.10 Processing from ATA card and 6.11 EXTCALL /BAD/, HMI Advanced, Access to external network drive/ computer
The HMI receives the program path of the subroutine to be called in the channel-specific OPI variable mmcCmdPrep. As a means of identifying that a new mmcCmdPrep signal has been transferred, NCK-specific OPI variable mmcCmdPrepCounter is incremented. HMI then starts downloading the requested subroutine and acknowledges this operation in channel-specific OPI variable mmcCmdQuitPrep. The FIFO buffer for processing the program is set up in NCK directory /_N_SYF_DIR. The buffer name is generated by the NCK and sent to the HMI together with the subroutine path in mmcCmdPrep. If a subroutine level is operating in Process from external mode, then variable extProgFlag in the OPI block SPARPP for the current program pointer is set accordingly.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-111
Mode Group, Channel, Program Operation, Reset Response (K1) 2.8 Program control
External subroutine calls are aborted and the respective FIFO (reload) buffer erased by a RESET or POWER ON. A program selected for Process from external remains selected for Process from external after a Reset. A POWER ON deletes the selection. Default program MPF0 is selected instead.
Note In Execution from external source mode, programs must not contain any branch instructions such as GOTOF, GOTOB, CASE, FOR, LOOP, WHILE, or REPEAT. Subroutine calls, including nested EXTCALL calls, may be used. In SW 6.3 and higher, IF ELSE ENDIF CONSTRUCTS are supported.
1/K1/2-112
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.9 Reset response
2.9
Reset response
2.9.1
System settings for power-up, RESET/end of parts program, and parts program start
Concept
The control system response can be altered for G codes such as tool length compensation, transformation, coupled axis groupings, tangential follow-up and programmable synchronous spindle functions after
S Power up (POWER ON), S Reset/parts program end and S Parts program start
by means of machine data MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES and, in SW 4.4 and higher, its extension MD 20152: GCODE_RESET_MODE (definition of control initial setting with Reset) and MD 20112: START_MODE_MASK (definition of control initial setting after parts program start). For certain applications (e.g. grinding) it is advisable not to capture the reset position of individual functions until parts program start. This is possible by setting MD 20110, 20150, 20152 and MD 20112.
Table 2-12 Change system settings by means of MD Status Power up (POWER ON) RESET/parts program end Can be changed in MD MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES MD 20110: RESET_MODE_MASK MD 20150: GCODE_RESET_VALUES MD 20152: GCODE_RESET_MODE MD 20110: START_MODE_MASK and MD 20112: RESET_MODE_MASK
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-113
Mode Group, Channel, Program Operation, Reset Response (K1) 2.9 Reset response
Procedure
Bit 0=1
Transformation active acc. to MD 20140 Geometry axis replacement active acc. to MD 20118 with MD 20050
Bit 2=1 Bit 6=1 MD 20110 Bit 2 and bit 6 The tool length compensation selected before POWER ON remains active
Bit 2=0 Tool length compensation active acc. to MD 20120 , MD 20121 and MD 20130
OFF OFF
G codes Coupled groups Tangential follow-up Synchronous spindle coupling Axial rotational feed Geometry axis assignment Master value coupling Basic frame Electronic gear Master spindle Master tool holder
MD 20150: GCODE_RESET_VALUES uncoupled is not activated is not activatetd off and setting for path and synchronized axes back to master spindle acc. to MD 20050: AXCONF_GEOAX_ASSIGN_TAB is not activated is deselected is not activated initial setting acc. to MD 20090: SPIND_DEF_MASTER_SPIND initial setting acc. to MD 20124: TOOL_MANAGEMENT_TOOLHOLDER
RESET/ parts program end Fig. 2-15 System settings after power up
1/K1/2-114
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.9 Reset response
Bit 0=1
G codes according to MD 20152 and MD 20150 MD 20110, bits 617 are evaluated; i.e. the function assigned to the relevant bits either assumes its reset setting or retains its current setting (see tables below).
Parts program start G codes Tool length compensation Transformation Coupled motion Tangential follow-up Synchronous spindle Geometry axis assignment Master value coupling Axial revolutional feedrate reserved (basic frame) Master spindle Master tool holder acc. to MD 20150 OFF OFF OFF from OFF acc. to MD 20050 OFF OFF OFF acc. to MD 20090 OFF The settings activated by RESET become valid.
Interpretation of 1st parts program block Fig. 2-16 System settings after RESET/parts program end and parts program start
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-115
Mode Group, Channel, Program Operation, Reset Response (K1) 2.9 Reset response
Selection of RESET and powerup response RESET_MODE_MASK Definition of control initial setting after power up and reset/parts program end Bit 0 = 0 Transformation not active Tool length compensation not active Bit 0 = 1 Transformation active acc. to MD 20140: TRAFO_RESET_VALUE Tool length compensation active acc. to MD 20120: TOOL_RESET_VALUE, MD 20121: TOOL_PRESEL_RESET_V ALUE and MD 20130: CUTTING_EDGE_RESET_VALUE, if bits 2 and 6 in MD 20110 = 1, tool length compensations selected at POWER ON, otherwise TLC acc. to MD 20120, 20121, 20130 G codes according to MD 20150: GCODE_ RESET_VALUES No coupled-axis groupings active No tangential follow-up active Non-configured Synchronous spindle deactivated Geometry axis assignment acc. to MD 20118, MD 20050 No master value coupling active Axial revolutional feedrate off Basic frame is deselected When a synchronous spindle coupling is configured, the coupling is set as a function of MD 21330: COUPLE_RESET_MODE_1. GCODES acc. to MD 20150, 20152
G codes according to MD 20150: GCODE_RESET_VALUES No coupled-axis groupings active No tangential follow-up active Non-configured Synchronous spindle coupling is switched off Geometry axis assignm. acc. to MD 20050 No master value coupling active Axial revolutional feedrate off Basic frame is deselected RESET/ progr. end The current settings are retained. With the next parts program start, the following initial setting is activated: G codes acc. to MD 20150: GCODE_RESET_VALUES Tool length compensation not active Transformation not active No coupled-axis groupings active No tangential follow-up active Basic frame is deselected Geometry axis assignm. acc. to MD 20050 Axial revolutional feedrate off Table 2-14 Bit 0 = 1 Initial setting after power up and RESET/end of parts program see above Bit 0 = 0 Initial setting after power up and RESET/end of parts program see above
Effect of MD 20110: RESET_MODE_MASK Bits 0...6 Bit 1 = 1 No D, T, M output on tool selection; with active tool management irrelevant Bit 1 = 0 D, T, M output on tool selection; with active tool management irrelevant Bit 2 = 1 If bit 0=1 and bit 6 =1, the tool offset of the last active tool is active after POWER ON (irrelevant with active tool management) Bit 2 = 0 No tool offset active after POWER ON (no effect when tool management active) Bit 3 = 1 Use active tool or tool offset from last test program terminated in test mode Bit 3 = 0 Use active tool or tool offset from last program terminated before program testing activated Bit 4 = 1 Current plane is retained, as of SW 5 replaced by MD 20152 index 5 see below Bit 4 = 0 Plane acc. to MD 20150: GCODE_ RESET_ VALUES; as of SW 5 replaced by MD 20152 index 5 see below Bit 5 = 1 Current settable frame is retained, as of SW 5 replaced by MD 20152 index 7 see below Bit 5 = 0 Frame acc. to MD 20150: GCODE_ RESET_ VALUES; as of SW 5 replaced by MD 20152 index 7 see below Bit 6 = 1 active tool offset is retained
Bit 6 = 0 TO acc. to MD 20120: TOOL_RESET_VALUE, MD 20121: TOOL_PRESEL_RESET_VALUE, MD 20130: CUTTING_ EDGE_RESET_VALUE; Output of D, T, M to PLC, depending on bit 1
1/K1/2-116
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.9 Reset response
Effect MD 20110: RESET_MODE_MASK Bits 7 ...12 Bit 8 = 1 Coupled-motion groupings are retained Bit 9 = 1 Tangential correction is retained Bit 10 = 1 Non-configured synchronous spindle coupling remains active Bit 10 = 0 Bit 11 = 1 Current setting for revolutional feedrate is retained Bit 11=0 Bit 12 = 1 Modified geometry axis assignment is retained
Bit 12 = 0 Modified geometry axis assignment is deleted according to MD 20050, depending on MD 20118 (because of compatibility)
Non-configured Revolutional synchronous feedrate is no spindle coulonger valid pling is switched off
Effect of MD 20110: RESET_MODE_MASK Bits 13...17 (SW 6.4 and higher bits 16 to 17) Bit 14 = 1 The current setting of the basic frame is retained. Bit 14 = 0 Basic frame is deselected Bit 15 = 1 The active electronic gears are deactivated Bit 15 = 0 The active electronic gears are retained Bit 16 = 1 The current setting of the master spindle is retained. Bit 16 = 0 Initial setting for the master spindle acc. to MD 20090 Bit 17 = 1 The current setting of the master tool holder is retained. Bit 17 = 0 Initial setting for the master tool holder acc. to MD 20124
Active guide value coupling is retained Bit 13 = 0 Guide value coupling is separated
Up to SW 6.3 the master spindle setting was reset to the configured value on M30/RESET. Two cases can apply depending on the setting of bit 0 of MD 20110: RESET_MODE_MASK: Bit 0 = 0: Bit 0 = 1: No init blocks are generated. (Default: The current settings are retained) Init blocks are generated. The settings activated by RESET become valid.
In SW 5 and higher, MD 20152: GCODE_RESET_MODE replaces bits 4 and 5 from MD 20110: RESET_MODE_MASK. There is also an extension of the setting options: In SW 4 and lower, the following applied for bits 4 and 5 of MD 20110: RESET_MODE_MASK: Bit 4: Control of level Bit 5: Control of configurable frames In SW 5 and higher, every G code group in MD 20150: GCODE_RESET_VALUES[i] can be controlled directly with the additional MD 20152: GCODE_RESET_MODE[i].
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-117
Mode Group, Channel, Program Operation, Reset Response (K1) 2.9 Reset response
Note The previous setting in machine data MD20110: RESET_MODE_MASK no longer applies! The corresponding bits of this MD are tagged as reserved. Write operations involving these bits are automatically redirected to the corresponding array elements of MD20150: GCODE_RESET_MODE and an alarm (4502) is output. When reading MD20110: RESET_MODE_MASK, the information is read from the corresponding array elements of MD20150: GCODE_RESET_MASK and written to MD20110: RESET_MODE_MASK.
The basic setting of the control system at parts program start, e.g. G codes (especially active plane and active settable zero offset), active tool length compensation, transformation and axiscoupling, is determined according to the following table. By setting a bit in MD 20112: START_MODE_MASK, the Reset action of the relevant function can be delayed until the start of the parts program.
Application
Table 2-16 Bit 1 = 1 No D, T, M output on tool selection; with active tool management irrelevant
Effect of MD 20112: START_MODE_MASK Bits 1 ..0.7 Bit 2 = 1 reserved Bit 3 = 1 reserved Bit 4 = 1 Plane acc. to MD 20150: GCODE_RESET_VALUES Bit 5 = 1 Frame acc. to MD 20150: GCODE_RESET_VALUES Bit 6 = 1 TO acc. to MD 20120: TOOL_RESET_VALUE, MD 20121: TOOL_PRESEL_RESET_ VALUE, and MD 20130: CUTTING_ EDGE_RESET_VALUE; Output of D, T, M to PLC, depending on bit 1 Bit 6 = 0 Active tool length offset is retained Bit 7 = 1 Transformation acc. to MD 20140: TRAFO_RESET_VALUE
Bit 2 = 0 reserved
Bit 3 = 0 reserved
1/K1/2-118
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.9 Reset response
Table 2-17
Effect of MD 20112: START_MODE_MASK Bits 8 ..0.12 Bit 9 = 1 Tangential follow-up from deactivated Bit 10 = 1 Non-configured synchronous spindle coupling is switched off Bit 11 = 1 reserved Bit 12 = 1 Geometry axis assignment is deleted according to MD 20050, depending on MD 20118 (because of compatibility) Bit 12 = 0 Modified geometry axis assignment is retained
Bit 11 = 0 reserved
Effect MD 20112: START_MODE_MASK Bits 13...17 (SW 6.4 and higher bits 16 to 17) Bit 14 = 1 reserved for Basic frame Bit 15 = 1 reserved for electronic gears Bit 16 = 1 Initial setting for master spindle acc. to MD 20090: SPIND_DEF_MA STER_SPIND Bit 16 = 0 current setting of the master spindle (SETMS) is retained Bit 17 = 1 Only if MD 20124: TOOL_MANAGEMENT_TOOLHOLDER > 0: Initial setting for the master tool holder acc. to MD 20124. Otherwise setting for master spindle. Bit 17 = 0 current setting of the Master tool holder (SETMS) is retained
Note
The channel-specific machine data in the table have the following meanings. Details are specified in Subsection 4.4.3. MD 20120: TOOL_RESET_VALUE Definition of tool (T number), whose assigned tool length compensation values must be taken into account on RESET and power up according to MD 20110: RESET_MODE_MASK are to be taken into account. MD 20121: TOOL_PRESEL_RESET_VALUE Definition of tool (T number) as preselected tool whose assigned tool length compensation values must be taken into account on RESET and power up according to MD 20110: RESET_MODE_MASK are to be taken into account.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-119
Mode Group, Channel, Program Operation, Reset Response (K1) 2.9 Reset response
MD 20130: CUTTING_EDGE_RESET_VALUE Definition of edge number (D number) of tool in $MC_TOOL_RESET_VALUE MD 20140: TRAFO_RESET_VALUE Definition of transformation data block (TRAORI, TRAANG, SW 4 and higher: TRANSMIT) MD 20150: GCODE_RESET_VALUES Initial settings of G groups MD 20152: GCODE_RESET_MODE GCODE initial setting on RESET MD 20152 defines for each entry in MD 20150: GCODE_RESET_VALUES whether the setting in MD 20150: GCODE_RESET_VALUES is applied again on a reset/end of parts program (entry in MD 20152=0), or whether the current setting is retained (entry in MD 20152=1). MD 21330: COUPLE_RESET_MODE_1 Cancellation of an axis coupling MD 20050 AXCONF_GEOAX_ASSIGN_TAB Assignment of geometry axis to channel axis active with MD 20110/20112 on bit 12 MD 20118 GEOAX_CHANGE_RESET active with MD 20110/20112 on bit 12 Example: 1. Activate RESET setting on RESET: MD 20110 = H01 (Bit 0) MD 20112 = 0 2. Transformation is retained on reset/parts program start: MD 20110 = H81 (Bit 0 + Bit 7) MD 20112 = 0 3. Tool length compensation is retained beyond reset/parts program start: MD 20110 = H41 (Bit 0 + Bit 6) MD 20112 = 0 4. Active plane (bit 4) and settable frame (bit 5) are retained beyond reset and are reset on parts program start: MD 20110 = H31 (Bit 4 + Bit 5) MD 20112 = 30
Note For bit 5 and bit 6: If the tool length compensation or a frame is active on parts program start/MDA start, due to the configuration of MD 20110/MD 20112, the first programming instruction for axes must use absolute dimensions (because of the offset response). Exception: MD 42442/MD 42440 has been used to suppress the offset response on G91.
1/K1/2-120
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.10 Subroutine call with M and T functions
2.10
General
For some applications it can be advantageous to replace M and/or T functions by a subroutine call. This can be used, for example, to call the tool change routine. The machine data below can be used to define and control subroutines accordingly with M and/or T functions:
Machine data for M function MD 10715: M_NO_FCT_CYCLE MD 10716: M_NO_FCT_CYCLE_NAME MD 10718: M_NO_FCT_CYCLE_PAR Machine data for T function MD 10717: T_NO_FCT_CYCLE_NAME MD 10719: T_NO_FCT_CYCLE_MODE SR name for T function replacement Parameterization of T function replacement Significance: M function to be replaced by SR SR name for M function replacement M function replacement with parameter transfer (SW 6.3 and higher)
During block searches, subroutine calls with M and T functions behave in the same way as standard subroutine calls. Mapping M and T programming onto cycle calls works in both ISO-dialect-mode and in Siemens-mode.
A subroutine call must not be superimposed on M functions with predetermined meaning. In the case of a conflict, alarm 4150 is generated. M functions with predetermined meaning:
S M0 to M5,
M17, M30, M19, M40 to M45,
S MD 10814: EXTERN_M_NO_MAC_CYCLE (macro call M fct.) S MD 20095: EXTERN_RIGID_TAPPING_M_NR (default setting M29)
Exception: Subroutines configured in MD 22560: TOOL_CHANGE_M_CODE for tool changes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-121
Mode Group, Channel, Program Operation, Reset Response (K1) 2.10 Subroutine call with M and T functions
2.10.1
M function replacement
Assign subroutine
Using machine data MD 10715: M_NO_FCT_CYCLE and MD 10716: M_NO_FCT_CYCLE_NAME, it is possible to assign a subroutine with name to an M function. Subroutine calls using an M function are referred to below as M function replacement. The M functions with predetermined meaning shown in Fig. 2.10 must not have a subroutine call superimposed on them.
Start subroutine
If the M function defined in MD 10715: M_NO_FCT_CYCLE[n] is included in a parts program block, the subroutine defined in MD 10716: M_NO_FCT_CYCLE_NAME[n] is started at the end of the block. When the M function is occurs again in the subroutine, it is not replaced by a subroutine call. Exception: The replacement is made in the ASUB even if it has been started in a replaced subroutine. Using system variable $C_ME it is possible to interrogate the address extension of the substituted M function in the replaced subroutine.
Supplementary conditions
1/K1/2-122
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.10 Subroutine call with M and T functions
MD 10718
Note Values passed to the cycle have not yet been executed and must therefore be programmed again in the cycle. Configuring errors in MD 10718: M_NO_FCT_CYCLE_PAR are signaled at boot with alarm 4150.
Boundary condition: Programming of the M function replacement with parameter transfer is restricted in the respect that both address extension as well as M function value must be programmed as constants. Indirect programming is rejected with alarm 14017. Permissible programming variants: M<m function value> M=<m function value> M[<address extension>]=<m function value> <m function value> and <address extension> are constants. Impermissible programming variants: M=<variable_1> M[<variable_2>]=<variable_1>
Examples
Configuring examples:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-123
Mode Group, Channel, Program Operation, Reset Response (K1) 2.10 Subroutine call with M and T functions
2.10.2
T function replacement
Assign subroutine
The MD 10717: T_NO_FCT_CYCLE_NAME is used to assign a subroutine to a T command. Each block containing a T command is executed first before the subroutine is called. The T value is not output, the T word must be programmed again in the cycle.
Call subroutine
If a T function is programmed in a parts program block, the subroutine defined in MD 10717: T_NO_FCT_CYCLE_NAME[n] is called at the end of the block. Subroutine calls using an T function are referred to below as T function replacement. The subroutine is supplied with the following parameters via system variables in the cycle: $C_ME $C_T_PROG $C_T $C_TE $C_TS_PROG $C_TS $C_D_PROG $C_D $C_DL_PROG $C_DL : Address extension of substituted M function : TRUE if address T has been programmed : Value of address T (integer) : Address extension of address T : TRUE if address TS has been programmed : Value of address TS (string, with tool management only) : TRUE if address D has been programmed : Value of address D : TRUE if address DL has been programmed : Value of address DL
Values passed to the cycle have not yet been executed and must therefore be programmed again in the cycle.
Supplementary conditions
S A maximum of one T function may be configured. S The following applies to blocks containing a T function replacement:
No modal subroutine call may be active or No subroutine return jump may be programmed or No parts program end may be programmed.
1/K1/2-124
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 2.10 Subroutine call with M and T functions
The T function replacement has been extended such that machine data MD 10719: T_NO_FCT_CYCLE_MODE can be set do define when D or DL and T are programmed in the same block whether
S D or DL must be passed as the parameter to the T replacement cycle or S whether they must be executed before the T replacement cycle is called.
MD 10719
Parameterization of T function replacement with machine data MD 10719: T_NO_FCT_CYCLE_MODE as follows: Value 0: Value 1: As earlier, the D or DL number is passed directly to the cycle (default setting) The D or DL number is calculated directly in the block
This function is active only if the tool change has been configured with M function (MD 22550: TOOL_CHANGE_MODE = 1); the D or DL values are otherwise always transferred.
2.10.3
M6 not active
Tool change with M6 active and MD 10719 T_NO_FCT_CYCLE_MODE = 0 behavior as in earlier versions.
MD 10719: T_NO_FCT_CYCLE_MODE = 0 MD 10717: T_NO_FCT_CYCLE_NAME = MY_T_CYCLE ; T replacement cycle N210 D1 N220 G90 G0 X100 Y100 Z50 N230 D2 X110 Z0 T5 N240 M6 ; ; D1 is active ; D1 remains active, programmed D2 is made ; available to T replacement cycle as variable ; New tool is selected
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-125
Mode Group, Channel, Program Operation, Reset Response (K1) 2.10 Subroutine call with M and T functions
Tool change with M6 active and MD 10719 T_NO_FCT_CYCLE_MODE = 1 Behavior in SW 6.4 and higher
MD 22550: TOOL_CHANGE_MODE = 1 MD 10719: T_NO_FCT_CYCLE_MODE = 1 MD 10717: T_NO_FCT_CYCLE_NAME = MY_T_CYCLE ; T replacement cycle N310 D1 N320 G90 G0 X100 Y100 Z50 N330 D2 X110 Z0 T5 N340 M6 ; ; D1 is active ; D2 is activated, D2 is not passed ; to T replacement cycle as variable ; T5 is activated.
Tool change with M6 active and MD 10719 T_NO_FCT_CYCLE_MODE = 1 Behavior in SW 6.4 and higher A replacement cycle for T and M6 has been configured. In addition, parameter transfer to the M6 replacement cycle has been configured with MD 10718: M_NO_FCT_CYCLE_PAR. If M6 is now programmed with D or DL in the block, the D or DL numbers are also passed as parameters to the M6 replacement cycle when machine data MD 10719 T_NO_FCT_CYCLE_MODE = 1.
MD 22550: TOOL_CHANGE_MODE = 1 MD 10719: T_NO_FCT_CYCLE_MODE = 1 MD 10717: T_NO_FCT_CYCLE_NAME = MY_T_CYCLE ; T replacement cycle N410 D1 N420 G90 G0 X100 Y100 Z50 N4130 D2 X110 Z0 T5 M6 ; ; D1 is active ; D1 remains active, D2 and T5 are passed to M6 ; replacement cycle as variables
PROC SUB_M6
... N110 IF $C_T_PROG == TRUE N120 T[ $C_TE ] = $C_T N130 ENDIF N140 M[$C_ME] = 6 N150 IF $C_D_PROG == TRUE N160 D = $C_D N170 ENDIF N190 M17 ; Scan whether address T has been programmed ; Make T selection ; Execute tool change ; Scan whether address D has been programmed ; Make D selection
1/K1/2-126
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.11 Program runtime/workpiece counter (SW 5.2 and higher)
2.11
Introduction
To assist the operator on the machine tool, information on the program runtime and for part counting are provided. The functions defined for this purpose are not identical to the functions of tool management and are intended primarily for systems without tool management The desired information must be specified in defined machine data and can be manipulated via system variables in the NC and/or PLC program. The information is available to the MMC via the operator panel $ PLC interface. A dedicated display screen for the SINUMERIK 802D control is provided for program runtime and workpiece counter.
2.11.1
Program runtime
Functionality
The Program runtime function presents timers in system variables which can be used in particular for monitoring technological processes. Access to these timers is read-only. The following timers are defined as NCKspecific system variables and are always active:
Name $AN_SETUP_TIME
Meaning Time since the last control power-up with default values (Cold start in min.) Time since the last normal control powerup (Warm start in min.)
Description Counts the time since the last control power-up with default values. It is automatically reset to the default values each time the control is powered up. Counts the time since the last normal control power-up. It is automatically reset to the default values on each normal control power-up.
$AN_POWERON_TIME
Several timers are available as channel-specific system variables and can be activated via a channel machine data. Each active runtime measurement is interrupted automatically by a program status Program running and an active override = 0. The behavior of the activated timers for active dry run feedrate and program testing can be specified using machine data.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-127
Mode Group, Channel, Program Operation, Reset Response (K1) 2.11 Program runtime/workpiece counter (SW 5.2 and higher)
07.02 10.00
$AC_CYCLE_TIME
$AC_CUTTING_TIME
Condition
All timers are reset to the default values each time the control is powered up and can be read independent of their activation.
Activation
The timers for normal control power-up and control power-up with default values are always active. All other timers must be activated channel-specifically in machine data 27860: $MC_PROCESSTIMER_MODE. These timers are automatically activated with the standard machine data for the SINUMERIK 802D control.
Examples
1. Activating the runtime measurement for the active NC program (no measurement with active dry run feedrate and program testing): $MC_PROCESSTIMER_MODE = H2 2. Activating the measurement for the tool action time (measurement also with dry run feedrate and program testing): $MC_PROCESSTIMER_MODE = H34 3. Activating the measurement for the total runtime and the tool action time (measurement also with program test): $MC_PROCESSTIMER_MODE = H25
1/K1/2-128
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 2.11 Program runtime/workpiece counter (SW 5.2 and higher)
2.11.2
Workpiece counter
The workpiece counter function prepares counters which can be used in particular for internal counting of workpieces on the control. These counters exist in the form of channel-specific system variables with read-only and read/write access and have a value range from 0 to 999 999 999. The channel machine data can be used to influence the timer activation, the reset time and the counting algorithm. The following counters are available:
Name $AC_REQUIRED_PARTS Meaning Number of workpieces required (workpiece setpoint) Description Determination of the number of workpieces at which the counter for the current workpieces is reset ($AC_ACTUAL_PARTS). The generation of the display alarm workpiece setpoint reached and the channel VDI signal workpiece setpoint reached can be activated via MD. Specifies the total number of all workpieces produced since the start time. Is automatically reset to the default values only when the control is powered up. Records the number of all workpieces produced since the start time. Automatically reset when the workpiece setpoint ($AC_REQUIRED_PARTS) is reached (whereby it is assumed: $AC_REQUIRED_PARTS 0). Allows the user to define how the workpieces are counted. An alarm output can be defined on matching $AC_REQUIRED_PARTS. Must be reset manually by the user.
Functionality
$AC_TOTAL_PARTS
Total number of workpieces produced (total actual) Number of actual workpieces (actual)
$AC_ACTUAL_PARTS
$AC_SPECIAL_PARTS
Note The workpiece counter function is independent of the tool management functions. All counters can be read and written from the MMC.
Supplementary condition
All counters are reset to the default values each time the control is powered up and can be read and written independent of their activation. If the counter $AC_REQUIRED_PARTS = 0, no ID check is performed with the counter pulse for $AC_ACTUAL_PARTS or $AC_SPECIAL_PARTS even if the MD bit is set.
Activation
Each counter is activated via a channel machine data. All workpiece counters are declared as inactive in the default machine data set. The counters are activated by default for the SINUMERIK 802D.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/2-129
Mode Group, Channel, Program Operation, Reset Response (K1) 2.11 Program runtime/workpiece counter (SW 5.2 and higher)
07.02 10.00
Examples
1. Activating the workpiece counter $AC_REQUIRED_PARTS: $MC_PART_COUNTER = H3 $AC_REQUIRED_PARTS is active display alarm with $AC_REQUIRED_PARTS $AC_SPECIAL_PARTS 2. Activating the workpiece counter $AC_TOTAL_PARTS: $MC_PART_COUNTER = H10 $MC_PART_COUNTER_MCODE[0] = 80 $AC_TOTAL_PARTS is active; counter is increased by 1 with each M02. $MC_PART_COUNTER_MCODE[0] has no meaning. 3. Activating the workpiece counter $AC_ACTUAL_PARTS: $MC_PART_COUNTER = H300 $MC_PART_COUNTER_MCODE[1] = 17 $AC_TOTAL_PARTS is active; the counter is increased by 1 with each M17. 4. Activating the workpiece counter $AC_SPECIAL_PARTS: $MC_PART_COUNTER = H3000 $MC_PART_COUNTER_MCODE[2] = 77 $AC_SPECIAL_PARTS is active; the counter is increased by 1 with each M77. 5. Deactivating the workpiece counter $AC_ACTUAL_PARTS: $MC_PART_COUNTER = H200 $MC_PART_COUNTER_MCODE[1] = 50 $AC_TOTAL_PARTS is not active; remainder without significance. 6. Activating all counters in examples 14: $MC_PART_COUNTER = H3313 $MC_PART_COUNTER_MCODE[0] = 80 $MC_PART_COUNTER_MCODE[1] = 17 $MC_PART_COUNTER_MCODE[2] = 77 $AC_REQUIRED_PARTS is active display alarm with $AC_REQUIRED_PARTS $AC_SPECIAL_PARTS $AC_TOTAL_PARTS is active; counter is increased by 1 with each M02. $MC_PART_COUNTER_MCODE[0] has no meaning. $AC_ACTUAL_PARTS is active; the counter is increased by 1 with each M17. $AC_SPECIAL_PARTS is active; the counter is increased by 1 with each M77.
The machine data provided determine the response at POWER ON. A mode change or an NC reset does not affect the values of the counters. The function Workpiece counter is a standard function (not an option). The new channel machine data MD 27880: PART_COUNTER and MD 27882: PART_COUNTER_MCODE are described in detail in Section 4.4.
1/K1/2-130
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 4.1 Machine data for operator panel
Supplementary Conditions
For the number of channels and mode groups, please refer to the following documentation: References: /BU/, Order Document, Catalog NC 60
The function Rapid lift with ASUBs is also available for SINUMERIK 810D CCU1 in SW 3.2 (08.99) and higher.
4.1
9421 MA_AXES_SHOW_GEO_FIRST MD number Display geo axes of channel first Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective immediately Protection level: 4/4 Unit: Data type: BYTE Applies from SW 2 Significance: If the value of machine data MD 9421: MA_AXES_SHOW_GEO_AXES = 1, the geo axes of the channel are displayed first. Note: (SW 6.1 and higher) This functionality is available with HMI Embedded and HMI Advanced. Application example(s) Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-131
Mode Group, Channel, Program Operation, Reset Response (K1) 4.1 Machine data for operator panel
12.00 10.00
9422 MA_PRESET_MODE MD number PRESET / basic offset in JOG. 0 no SK, 1 PRESET, 2 Preset actual value memory Default setting: 1 Minimum input limit: 0 Maximum input limit: 2 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5, System frame in SW 6.1 and higher Significance: This machine data defines the RESET / basic offset function in JOG mode. Basic configuration for the RESET function: 0: No soft key, 1: The old PRESET in the Machine operating area (default) 2: Preset actual value memory NCK without system frame: Can only be set when G500 is active in basic offset 1, otherwise error message. NCK with system frame: Can always be set in the system frame. The basic frame is not used with G500 in the system frame. 3: NCK with/without system frame: Can be set in the currently active frame. Note: (SW 6.1 and higher) The PRESET function in JOG mode is available with HMI Embedded and HMI Advanced. Related to ....
9423 MA_MAX_SKP_LEVEL MD number Define number of skippable program levels Default setting: 1 Minimum input limit: 1 Maximum input limit: 8 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.1 Significance: This data defines the number of program levels which can be skipped in the parts program with / . The additional skip levels in the parts program are specified by/0 to /7. Note: (SW 6.1 and higher) This functionality is available with HMI Embedded and HMI Advanced. / N005 : Block is skipped when MD9423=1 or higher. /3 N030 : Block is skipped when MD9423=4 or higher. /7 N070 : Block is skipped when MD9423=8 or higher. This machine data MD 9423: MA_MAX_SKP_LEVEL must be entered even if only one mode group is configured.
Application example(s)
Note All CTM operator panel machine data are described in the Description of Functions for turning in ManualTurn, and all CMM operator panel machine data in the Description of Functions for milling in ShopMill, see References: /FBMA/, Description of Functions ManualTurn /FBSP/, Description of Functions ShopMill
1/K1/4-132
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
4.2
10010 ASSIGN_CHAN_TO_MODE_GROUP[n] MD number Channel valid in mode group Default setting: 1/0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 1.1 Significance: The channel is assigned to a mode group with this MD. Input value 1 => Assigned to 1st mode group Input value 2 => Assigned to 2nd mode group etc. In SW 4 and higher, it is permissible to assign no mode group number to individual channels (channel gaps), in order to allow uniform configuration of similar machine designs. In this case, the number 0 is assigned to the channel instead of a mode group number greater than or equal to 1. The channel is not activated, but is treated as an active channel in counts. e.g. ASSIGN_CHAN_TO_MODE_GROUP[0] = 1 ASSIGN_CHAN_TO_MODE_GROUP[1] = 1 ASSIGN_CHAN_TO_MODE_GROUP[2] = 0 ; gap ASSIGN_CHAN_TO_MODE_GROUP[3] = 1 Note: By definition it is not permissible to set Channel 1 inactive. The 1st channel must always be active. Application example(s) Select desired channel via MMC and set ASSIGN_CHAN_TO_MODE_GROUP = 1. Special cases, errors, ... This MD also has to be entered if only one mode group exists.
10280 PROG_FUNCTION_MASK MD number Compare commands > and < compatible to SW 6.3 Default setting: 0 Minimum input limit: 0x1 Maximum input limit: 0x1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Bit mask for parameterizing different parts program commands Bit0: 0 Processing of compare commands > and < as in SW 6.3 and lower Parts program data of REAL type are represented internally in IEEE format with 64 bits. An intrinsic characteristic of this type of representation is that decimal numbers are mapped imprecisely if the 52-bit mantissa is not sufficient to represent the number in powers of two. Remedy: All compare commands (==, < >, >=, <=, , > and <) are checked for a relative equality of 1212. SW 6.4 and higher: Setting bit 0 deactivates this operation for comparisons for Greater Than ( > ) and Smaller Than ( < ), thus making it compatible with SW 6.3.
Bit0:
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-133
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
10617 FRAME_SAVE_MASK MD number Response of frames to subroutine return jump with SAVE Default setting: 0 Minimum input limit: 0 Maximum input limit: 0x3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.1 Significance: This machine data defines which frames must be restored on return from a subroutine with a SAVE attribute. Bit 0: Settable frames G54 to G599
Bit 0 =0: If the same G code is active on return from the subroutine as in the subroutine call, then the active settable frame is retained. If this is not the case, the settable frame at the instant the subroutine was called is reactivated. Bit 0 =1: Compatibility with systems up to SW 5.3 On return from a subroutine the basic frame at the instant the subroutine was called is reactivated. Bit 1: Basic frames $P_CHBFR[ ] and $P_NCBFR[ ]
Bit 1 = 0: The active basic frame is retained on return from a subroutine. Bit 1 = 1: Compatibility with systems up to SW 5.3 On a return from a subroutine, the basic frame at the instant the subroutine was called is reactivated.
Related to ....
10702 IGNORE_SINGLEBLOCK_MASK MD number Do not stop after single block Default setting: 0 Minimum input limit: 0 Maximum input limit: 0xFFFF Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.2 Significance: Program processing must not stop after single blocks in the case of the following even if SBL processing is selected: Bit 0 In no block of an internal ASUB: RETURN, REPOS Bit 1 In no block of a user ASUB (applies only in connection with MD 20117: IGNORE_SINGLEBLOCK_ASUP) Bit 2 In no intermediate blocks Bit 3 In block search group block Bit 4 In Init blocks Bit 5 In no block of a subroutine with DISPLOF Bit 6 In no block that cannot be reorganized Bit 7 In no block that cannot be repositioned Bit 8 In residual block without traversing information Bit 9 In preprocessing/main run synchronization block repeated due to an interruption Bit 10 At a Tool selection block. Bit 11 At an explicit U_N_Dimplicit GET block Bit 12 In single block type 2 (SBL2) with SBLON block (SW 6.4 and higher). Related to .... MD 20117: IGNORE_SINGLEBLOCK_ASUP
1/K1/4-134
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
10707 PROG_TEST_MASK MD number Program test modes Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.1 Significance: Bit-coded mask for program test operation Bit 0 Effect: ________________________________________________________________________ 0 Program test can be deselected only in the RESET state 1 Program test cannot be deselected in program state Bit 1 to bit 31 are not yet used.
Caution: After program testing has been deactivated, a REPOS operation is initiated that is subject to the same restrictions as a SERUPRO approach process. These restrictions can be avoided by means of an ASUB.
10708 SERUPRO_MASK MD number Block change modes Default setting: 0 Minimum input limit: 0 Maximum input limit: 15 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.1, in SW 6.4 and higher Bit 3 Significance: Bit-coded screen form for block search via Program Test (acronym SERUPRO). SERUPRO means SEarch Run by PROgram test, i.e. the program test is run from the start of the program up to the search target. Note: Program Test will not move any axes. The block search SERUPRO is enabled via the PI service _N_FINDBL mode parameter == 5. Bit 0 = 0 Bit 0 = 1 Bit 1 = 0 Bit 1 = 1 A stop is carried out in the case of M0 during the search phase. No stop is carried out in the case of M0 during the search phase. Alarm 16942 will abort the search phase in the case of the parts program command START. Alarm 16942 is suppressed. Caution: A Starts program command in the search process will under certain circumstances start the other channel really! This channel can be switched to program test mode beforehand.
Extension in SW 6.2 and higher Group SERUPRO activated Bit 2=1 Bit 2=1 Search for multiple starts with SERUPRO (GroupSerupro). Search for multiple starts with SERUPRO (GroupSerupro).
Extension in SW 6.4 and higher SERUPRO end not simultaneous. Bit 3 = 0 forces all channels that have started SERUPRO to terminate SERUPRO at the same time unless they were aborted per reset, or the channel has reached M30 without finding the search target. This means: All channels that find the search target (alos self-acting SERUPRO) terminate SERUPRO at the same time. All channels that have started SERUPRO terminat SERUPRO at the same time. Exception: A reset has aborted the search run or the channel has reached M30 without finding the search target. Behavior up to SW 6.4. Caution: Replacement of axes between these channel is not permiited! In thsi state, axis replacement can produce unexpected target positions if a channel has already been shut down while another channel is still in simulation mode. Bit 4 to bit 31 are not yet used.
Bit 3 = 1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-135
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
11.02 10.00
10710 MD number
PROG_SD_RESET_SAVE_TAB[n] (setting data to be updated). Setting data to be updated Index : 0...9 The values of the SD listed in this table are stored in nonvolatile memory, i.e. remain valid after POWER ON. The setting data whose MMC-numbers were entered in the backup list are written after the parts program into the (buffered) active file system on Reset. Programmable setting data are: 42000 $SC_THREAD_START_ANGLE SF 42400 $ SC_PUNCH_DWELLTIME (PDELAYON) 42800 $SC_SPIND_ASSIGN_TAB SETMS 43210 $SA_SPIND_MIN_VELO_G25 G25 43220 $SA_SPIND_MAX_VELO_G26 G26 43230 $SA_SPIND_MAX_VELO_LIMS LIMS 43300 $SA_ASSIGN_FEED_PER_REV_SOURCE (FPRAON) 43420 $SA_WORKAREA_LIMIT_PLUS G26 43430 $SA_WORKAREA_LIMIT_MINUS G25 43510 $SA_FIXED_STOP_TORQUE FXST 43520 $SA_FIXED_STOP_WINDOW FXSW 43700 $SA_OSCILL_REVERSE_POS1 OSP1 43710 $SA_OSCILL_REVERSE_POS2 OSP2 43720 $SA_OSCILL_DWELL_TIME1 OST1 43730 $SA_OSCILL_DWELL_TIME2 OST2 43740 $SA_OSCILL_VELO FA 43750 $SA_OSCILL_NUM_SP ARK_CYCLES OSNSC 43760 $SA_OSCILL_END_POS OSE 43770 $SA_OSCILL_CTRL_MASK OSCTRL 43780 $SA_OSCILL_IS_ACTIVE OS Default setting: 0 Minimum input limit: 0 Maximum input limit: *** Changes effective after POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 1.1 Fig. Setting data backed up SRAM
NCK power up
Parts programs
Application example(s)
The value of SD 43420: WORKAREA_LIMIT_PLUS (working area limitation plus) and SD43430: WORKAREA_LIMIT_MINUS (working areas limitation minus) is to be stored in the battery-backed RAM after every RESET, M02, M30 or M17. PROG_SD_RESET_SAVE_TAB[0] = 43420 PROG_SD_RESET_SAVE_TAB[1] = 43430
1/K1/4-136
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
10715 M_NO_FCT_CYCLE MD number M function to be replaced by subroutine Default setting: 1 Minimum input limit: 0 Maximum input limit: 10 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 5.2 Significance: M number via which a subroutine is called. A maximum of 10 M functions can be configured. Only one M function replacement can be operative per block. The subroutine name is stored in MD 10716: M_NO_FCT_CYCLE_NAME[n]. If the M function defined in MD 10715: M_NO_FCT_CYCLE[n] is included in a parts program block, the subroutine defined in MD 10716: M_NO_FCT_CYCLE_NAME[n] is started at the end of the block. If the M function is programmed again in the subroutine, it is not replaced again by a subroutine call. MD 10715: M_NO_FCT_CYCLE[ ] works in both Siemens mode G290 and in external language mode G291. A subroutine call must not be superimposed on M functions with predetermined meaning. In the case of a conflict, alarm 4150 is generated. M0 to M5, M17, M30, M19, M40 to M45, M function fro changing spindle/axis mode acc. to MD 20094: SPIND_RIGID_TAPPING_M_NR (default: M70), M function for nibbling/punching acc. to configuration via MD 26008: NIBBLE_PUNCH_CODE if activated via MD 26012: PUNCHNIB_ACTIVATION. For applied external language (MD 18800: MM_EXTERN_LANGUAGE) M96 and M99 additionally. Exception: The M function parameterized in MD 22560: TOOL_CHANGE_M_CODE for tool change. Subroutines configured in MD 10716: M_NO_FCT_CYCLE_NAME[n] and MD 10717: T_NO_FCT_CYCLE_NAME must not be active simultaneously in the same block (parts program line), i.e. no more than one M/T function replacement may be operative per block. Neither an M98 nor a modal subroutine call may be programmed in the block with the M function replacement. Neither is a subroutine return jump nor a parts program end allowed. In the case of a conflict, alarm 14016 is generated. MD 10716: M_NO_FCT_CYCLE_NAME, MD 10718: M_NO_FCT_CYCLE_PAR, MD 10717: T_NO_FCT_CYCLE_NAME
Related to ....
10716 M_NO_FCT_CYCLE_NAME MD number Subroutine name for M function replacement Default setting: Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: STRING Applies from SW 5.2 Significance: Cycle name for call via M function defined with MD 10716: M_NO_FCT_CYCLE_NAME[n]. Related to .... MD 10715: M_NO_FCT_CYCLE, MD 10718: M_NO_FCT_CYCLE_PAR, MD 10717: T_NO_FCT_CYCLE_NAME
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-137
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
06.01 10.00
10717 T_NO_FCT_CYCLE_NAME MD number Subroutine name for T function replacement Default setting: Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: STRING Applies from SW 5.2 Significance: Cycle name for tool change routine for calls via T function. If a T function is programmed in a parts program block, the subroutine defined in MD 10717: T_NO_FCT_CYCLE_NAME[n] is called at the end of the block. The programmed T number can be scanned in the cycle via system variable $C_T or $C_T_PROG as a decimal value and via $C_TS or $C_TS_PROG as a string (with tool management TMMO only). MD 10717: T_NO_FCT_CYCLE_NAME is active in both Siemens mode G290 and in external language mode G292. MD 10716: M_NO_FCT_CYCLE_NAME and MD 10717: T_NO_FCT_CYCLE_NAME must not be active simultaneously in the same block (parts program line), i.e. no more than one M/T function replacement may be operative per block. Neither an M98 nor a modal subroutine call may be programmed in the block with the T function replacement. Neither is a subroutine return jump nor a parts program end allowed. In the case of a conflict, alarm 14016 is generated. MD 10715: M_NO_FCT_CYCLE MD 10716: M_NO_FCT_CYCLE_NAME
Related to ....
10718 M_NO_FCT_CYCLE_P AR MD number M function replacement with parameters Default setting: 1 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3 Significance: If an M function replacement has been configured with MD 10715: M_NO_FCT_CYCLE[n] / MD 10716: M_NO_FCT_CYCLE_NAME[n], it is possible to specify a parameter transfer per system variable (analogous to T function replacement) using MD 10718: M_NO_FCT_CYCLE_P AR. The parameters stored in the system variables always refer to the parts program line in which the M function to be replaced is programmed. The following system variables are available: $C_ME : Address extension of substituted M function $C_T_PROG : TRUE if address T has been programmed $C_T : Value of address T (integer) $C_TE : Address extension of address T $C_TS_PROG : TRUE if address TS has been programmed $C_TS : Value of address TS (string, with tool management only) $C_D_PROG : TRUE if address D has been programmed $C_D : Value of address D $C_DL_PROG : TRUE if address DL has been programmed $C_DL : Value of address DL MD 10715: M_NO_FCT_CYCLE MD 10716: M_NO_FCT_CYCLE_NAME
Related to ....
1/K1/4-138
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
03.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
10719 T_NO_FCT_CYCLE_MODE MD number Parameterization of T function replacement Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.4 Significance: This machine data is set to define whether D or DL is passed as a parameter to the T replacement cycle (default), or must be executed before the T replacement cycle is called, when D or DL and T are programmed in the same block. Value 0: As in earlier versions, the D or DL number is passed to the cycle (default setting) Value 1: The D or DL number is calculated directly in the block This function is active only if the tool change has been configured with M function (MD 22550: TOOL_CHANGE_MODE = 1); the D or DL values are otherwise always transferred. MD 10717: T_NO_FCT_CYCLE_NAME
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-139
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
11450 SEARCH_RUN_MODE MD number Control response and output of spindle auxiliary functions after block search Default setting: 0 Minimum input limit: 0 Maximum input limit: 0x1F Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.3, bit 3, in SW 6.1 and higher extended Significance: SW 4.3 and higher: The machine data defines the control behavior after completion of the block search. SW 5.3 and higher: The extension with regard to the data type from BYTE to DWORD The extension with bit 2 defines whether the spindle auxiliary functions are to be output after a block search. SW 6.1 and higher: Automatic start of ASUB after block search with bit 1 = 1 and cascaded block search with bit 3 = 0. The following bits can be used to influence the behavior after block search during the action blocks: Bit 0 = 0 Standard response (SW 4.3 and higher) NC Stop after output of the last action block; VDI signal Last action block active is set; Alarm 10208 is output. NC Stop after the last action block has been output; VDI signal Last action block active is set; the alarm 10208 is only output if the PLC requests this by setting the VDI signal PLC action completed. Application: PLC starts an ASUB after block search. Note: To continue the program, NC Start is required which should only be displayed after the end of the ASUB. Automatic start of /_N_CMA_DIR/_N_PROG_EVENT_SPF as an ASUB. The spindle auxiliary functions (M3, M4, M5, M19, M70 and S) are output as previously in the action blocks. The output of the spindle auxiliary functions in the action blocks is suppressed. The values programmed for the spindle and accumulated during block search can be output later (e.g. in an ASUB). To this aim, the program data are stored in the system variables $P_SEARCH_S, $P_SEARCH_SDIR, $P_SEARCH_SGEAR, $P_SEARCH_SPOS, $P_SEARCH_SPOSMODE.
Bit 0 = 1
Expansions of functionality to bit 3 in SW 6.1 and higher Bit 3=0 Bit 3=1 Application References Cascaded block search enabled. (multiple search target specification possible). Cascaded block search is disabled
Bits 4 to 31 are not yet in use. PLC starts an ASUB after block search. The note for the operator, that an NC Start is necessary to continue the program, should not be displayed until after the ASUB end. /FB/, S1, Spindle auxiliary functions, no output of spindle auxiliary functions after block search
1/K1/4-140
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
11470 REPOS_MODE_MASK MD number Repositioning properties Default setting: 0 Minimum input limit: 0 Maximum input limit: 0xFFFF Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3, bits 6 and 7 in SW 6.4 and higher Significance: The bits in this machine data can be used to control the response of the NC during repositioning. Bit 1 | 0 Effect: ________________________________________________________________________ 0 | 0 Normal reaction to mode group signals in all group channels (as for SW 3) All channels switched over to a program operation mode in response to interrupt. The dwell time is repeated completely in the Reset block. 0 | 1 The hold time is resumed at the point of interruption in the repositioning reset block. 1 | 0 Reserved 1 | 1 Reserved 2 | 0 The VDI signals have no effect on repositioning (same response as before) 2 | 1 Prevent repositioning of individual axes via VDI signals. 3 | 0 Repositioning of positioning axes not in the approach block during SERUPRO. 3 | 1 Positioning axes are repositioned on every REPOS in the approach block during block search by program test (SERUPRO). 4 | 0 Repositioning of positioning axes not on every REPOS in the approach block 4 | 1 Positioning axes are repositioned on every REPOS in the approach block during block search by program test (SERUPRO). 5 | 0 Modified feedrates and spindle speeds are not valid until the next block after residual block. 5 | 1 Modified feedrates and spindle speeds are valid immediately in the residual block. 6 | 0 Neutral axes and positioned spindles are not repositioned after SERUPRO in the approach block. 6 | 1 Neutral axes and positioned spindles are not repositioned after SERUPRO in the approach block as command axes. 7 | 0 The behavior of IS REPOSDELAY (DB31, .. DBX10.) is not changed. 7 | 1 The behavior of IS REPOSDELAY (DB31, .. DBX10.) is read if REPOSA is interpreted. Axes that are neither geometry or orientation axes are then excluded by REPOS and not moved.
11600 BAG_MASK MD number Defines mode response in relation to ASUBs Default setting: 0 Minimum input limit: 0 Maximum input limit: 0x3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.1 Significance: The machine data described the effect of the VDI signals on the channels of a mode group with reference to the ASUBs/interrupt routines. Bit 1 | 0 Effect: ________________________________________________________________________ 0 | 0 Normal reaction to mode group signals in all group channels (as for SW 3) All channels switched over to a program operation mode in response to interrupt. 0 | 1 No reaction of other mode group VDI signals on a channel in which an interrupt routine is being executed. (mode group RESET, mode group STOP single type A and B, mode selection). (available soon) 1 | 0 Reserved 1 | 1 An internal operating mode switchover takes place only in those channels which have received an interrupt request. 3 |0 3 |1 No reaction of mode group Vdi signals to a channel is which an ASUB is running (mode group Reset, mode group Stop, single type A and B, mode selection). An internal operating mode switchover takes place only in the channel which has received an interrupt request. (only if bit 0 is set).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-141
Mode Group, Channel, Program Operation, Reset Response (K1) 4.2 General machine data
10.00 10.00
11602 ASUP_START_MASK MD number Ignore stop conditions for ASUB Default setting: 0 Minimum input limit: 0 Maximum input limit: 0x7 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.1 Significance: If an ASUB is started and its priority is higher than specified in ASUP_START_PRIO_LEVEL, subsequent stop reasons are ignored. This means that the ASUB starts independently although the NCK is stopped. Stop reasons: Bit 0 : The active program has been halted with the stop key, M01 or single-block. If NCK is in Reset state a ASUB is started immediately. (No ASUB can be started in RESET/JOG without this bit.) Bit 1 : ASUB may start even if all axes have not been referenced Bit 2: The start is allowed even if the read-in disable is active, i.e. the blocks of the ASUB program are loaded and executed immediately. The MD IGNORE_INHIBIT_ASUP is therefore ineffective. The MD response is equivalent to the MD assignment IGNORE_INHIBIT_ASUP = FFFFFFFF. If not bit is set the ASUB is selected internally but not processed until the read-in disable is canceled. Further bits: Reserved. Related to .... ASUP_START_PRIO_LEVEL, IGNORE_INHIBIT_ASUP References
11604 ASUP_START_PRIO_LEVEL MD number Priorities for ASUP_START_MASK effective Default setting: 0 Minimum input limit: 0 Maximum input limit: 128 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.1 Significance: This machine data defines the ASUB priority from which machine data ASUP_START_MASK is to be applied. MD ASUP_START_MASK is applied from the level specified here up to maximum ASUB priority level 1. Related to .... ASUP_START_MASK References
11610 ASUP_EDITABLE MD number Activation of a userspecific program (ASUB) for RET and REPOS Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.2 Significance: This MD determines whether user-specific routine: _N_ASUP_SPF stored in directory _N_CUS_DIR must be used to process RET and REPOS instead of routines provided by the system. Value: Significance: 0 Routine _N_ASUP_SPF is not activated for either RET or REPOS. 1 User-specific routine _N_ASUP_SPF is executed for RET, REPOS activates the Routine supplied by the system 2 User-specific routine _N_ASUP_SPF is executed for REPOS, REPOS activates the Routine supplied by the system 3 User-specific routine _N_ASUP_SPF is executed for both RET and REPOS Routine _N_ASUP_SPF Related to .... MD 11612: ASUP_EDIT_PROTECTION_LEVEL References /IAD/ Installation and StartUp Guide 840D
1/K1/4-142
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 4.3 Machine data for processing programs from external (SW 4 and later)
11612 ASUP_EDIT_PROTECTION_LEVEL MD number Protection level of user-specific ASUB for RET and/or REPOS Default setting: 2 Minimum input limit: 0 Maximum input limit: 7 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.2 Significance: Protection level of user-specific ASUP for RET and/or REPOS The data is effective only if MD 11610: ASUP_EDITABLE is set to a value other than 0. This machine data defines the protection level of the program _N_ASU_CUS. MD irrelevant for ... ASUP_EDITABLE set to 0 Related to .... ASUP_EDITABLE
17200 GMMC_INFO_NO_UNIT MD number Global HMI info (without physical unit) Default setting: Value MD no. Minimum input limit: Value MD no. Maximum input limit: Value MD no. Changes effective after POWER ON Protection level: 0/7 Unit: Data type: DOUBLE Applies from SW 6.4 Significance: The global display machine data: MD 9004: DISPLAY_RESOLUTION MD 9011: DISPLAY_RESOLUTION_INCH MD 9010: SPIND_DISPLAY_RESOLUTION MD 9424: MA_COORDINATE_SYSTEM are stored by the HMI in NCK machine data MD 17200: GMMC_INFO_NO_UNIT[0] to MD 17200: GMMC_INFO_NO_UNIT[3], allowing them to be accessed from the NCK. These display machine data are updated by the HMI and evaluated by the NCK on parts program start.
17201 GMMC_INFO_NO_UNIT_ST ATUS MD number Global HMI status info (without physical unit) Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 0/7 Unit: Data type: BYTE Applies from SW 6.4 Significance: The meaning of the machine data is as follows: Value 0: Entry unassigned. Value 1: Entry assigned.
4.3
Machine data for processing programs from external (SW 4 and later)
18360 MM_EXT_PROG_BUFFER_SIZE MD number Reload buffer (DRAM) size for a program level with Execution from external source Default setting: 30 Minimum input limit: 30 Maximum input limit: 1000000 Changes effective after POWER ON Protection level: 2/7 Unit: Function: Processing HD Data type: DWORD Applies from SW 4.2 (HMI Advanced) Significance: Size of FIFO buffer for one program level (main program or subroutine) processed in the Execute from external source mode (reload mode) (DRAM memory in KB). Memory is reserved for MD 18360: MM_EXT_PROG_BUFFER_SIZE program levels. If there is insufficient DRAM available, alarm 4077 is generated. Related to .... MD 18362: MM_EXT_PROG_NUM Number of external program levels (DRAM) References /PGA/ Programming Guide, Advanced, Chapter 2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-143
Mode Group, Channel, Program Operation, Reset Response (K1) 4.3 Machine data for processing programs from external (SW 4 and later)
03.02 10.00
18362 MM_NUM_EXT_PROG MD number Number of external program levels (DRAM) Default setting: 1 Minimum input limit: 0 Maximum input limit: 13 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 4.2 Significance: Number of program levels in the NCK that can operate simultaneously in Process from external. DRAM is reserved in MD 18360: MM_EXT_PROG_BUFFER_SIZE for each program level. If there is insufficient DRAM available, alarm 4077 is generated. Related to .... MD 18360: MM_EXT_PROG_BUFFER_SIZE FIFO buffer size for one program level
1/K1/4-144
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
4.4
20000 CHAN_NAME MD number Channel name Default setting: CHAN1/ Minimum input limit: Maximum input limit: CHAN2 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: STRING Applies from SW 1.1 Significance: The channel name can be defined in this MD. The channel name is only used for the display on the MMC.
20108 PROG_EVENT_MASK MD number Eventdriven program calls Default setting: 0 Minimum input limit: 0x0 Maximum input limit: 0xF Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.1 Significance: Parameterization of events in response to which user program /_N_CMA_DIR/_N_PROG_EVENT_SPF is called implicitly: Bit = 0: ProgEvent deactivated Bit = 1: ProgEvent activated Bit 0: Bit 1: Bit 2: Bit 3 : Parts program start Parts program end Operator panel reset Power-up (NC Start initiates ProgEvent) (Program end initiates ProgEvent) (RESET initiates ProgEvent) (NC boot initiates ProgEvent)
20109 PROG_EVENT_MASK_PROPERTIES MD number ProgEvents properties Default setting: 0 Minimum input limit: 0x0 Maximum input limit: 0x1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3 Significance: Parameterization of other properties of eventdriven program calls (abbreviated to ProgEvent), i.e. MD 2018: PROG_EVENT_MASK is parameterized further. Bit 0 = 0: Bit 0 = 1: An ASUB started from the RESET channel state is followed by a ProgEvent. An ASUB started from the RESET channel state is not followed by a ProgEvent.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-145
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
10.00
20114 MODESWITCH_MASK MD number Setting for REPOS Default setting: 0 Minimum input limit: 0 Maximum input limit: 0xFFFF Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 3.2 Significance: After program interruption in MDA mode (e.g. in order to carry out a measurement on the workpiece and to correct the tool wear values or after tool break) the tool can be manually withdrawn from the contour by changing into JOG mode. In this case, the control stores the coordinates of the position of the interruption and indicates the path differences traversed by the axes in JOG mode as REPOS offset. When MDA mode is selected again, the axis is repositioned on the contour. This response can be canceled by means of this machine data. Bit 0 (LSB) = 0: When MDA is deselected (JOG, JOGREF, JOGREPOS, MDAREF and MDAREPOS) in the stopped state, the REPOS system ASUB is selected. Bit 0 (LSB) = 1: When MDA is deselected (JOG, JOGREF, JOGREPOS, MDAREF and MDAREPOS) in the stopped state, the REPOS system ASUB is not selected. Bit 1 (LSB) = 0: If the NCK stops program execution at a parts program block in which repositioning is not possible, an attempt to switch to a manual mode generates alarm 16916. Bit 1 (LSB) = 1: If the NCK stops program execution at a parts program block in which repositioning is not possible, an attempt to switch to a manual mode does not generate an alarm. Related to ....
20160 CUBIC_SPLINE_BLOCKS MD number Number of blocks for C spline Default setting: 8 Minimum input limit: 4 Maximum input limit: 9 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Number of motion blocks across which a spline section is calculated with the cubic spline (C spline) function. The larger the value, the closer the generated contour is to the ideal mathematical cubic spline. However, the higher the value, the longer the block search calculation time. References /PA/, Programming Guide Fundamentals
20170 COMPRESS_BLOCK_PATH_LIMIT MD number Maximum traversing length of NC block for compression Default setting: 1.0 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: The machine data defines the maximum traversing length of a block that can be compressed. Longer blocks interrupt the compression and are traversed in the normal way. Related to .... MD 33100: COMPRESS_POS_TOL (maximum tolerance with compression) References /PA/, Programming Guide Fundamentals
1/K1/4-146
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
20610 ADD_MOVE_ACCEL_RESERVE MD number Acceleration reserve for overlaid movements Default setting: 0.2 Minimum input limit: 0 Maximum input limit: 0.9 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: The value of this machine data is multiplied by the setting in MD 32300: MAX_AX_ACCEL (max. axis acceleration). The result is an acceleration value. The max. axis acceleration is reduced by this acceleration value when the function Fast retraction from the contour is active. This is done so that there is sufficient reserve for the velocity control for the overlaid movement during fast retraction. References /PA/, Programming Guide Fundamentals
21000 CIRCLE_ERROR_CONST MD number Circle end point monitoring constant Default setting: 0.01 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/7 Unit: mm Data type: DOUBLE Applies from SW 1.1 Significance: This machine data defines the permissible absolute circle difference. In circle programming, the radii from the programmed center point to the starting point and to the end point are usually not equal (the circle is overdefined). The maximum permissible difference between these two radii which is accepted without an alarm being triggered is defined by the larger value in the following data: CIRCLE_ERROR_CONST Start radius multiplied by MD 21010: CIRCLE_ERROR_FACTOR i.e. the tolerance is a fixed value (CIRCLE_ERROR_CONST) for small circles and proportional to the start radius for large circles. Application example(s) CIRCLE_ERROR_CONST = 0.01 10 m m CIRCLE_ERROR_FACTOR = 0.001 With these MDs and a radius of 10mm, the constant has an effect, with > 10mm, the proportional factor has an effect. MD 21010: CIRCLE_ERROR_FACTOR (circle end point monitoring factor)
Related to ....
21010 CIRCLE_ERROR_FACTOR MD number Circle end point monitoring factor Default setting: 0.001 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/7 Unit: factor Data type: DOUBLE Applies from SW 1.1 Significance: Factor for permissible radius difference. Defines the factor for large circles by which the starting and end radius can deviate from each other. (See also MD 21000: CIRCLE_ERROR_CONST circle end point monitoring constant)
21200 LIFTFAST_DIST MD number Traversing path for fast retraction from the contour Default setting: 0.1 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/7 Unit: mm Data type: DOUBLE Applies from SW 1.1 Significance: The machine data determines the absolute length of the traverse movement for fast retraction. The direction of the traverse movement is defined in the parts program by the command ALF. References /PA/, Programming Guide Fundamentals
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-147
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
10.00
21202 LIFTFAST_WITH_MIRROR MD number Lift fast with mirror Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 5 Significance: 1: The direction of retraction is also mirrored if an active mirror is applied to the contour. The mirror is only related to the direction component vertical to the tool direction. 0: The mirror is not applied to the retraction direction. References V1, Velocities and Accelerations for Lift Fast
21210 SETINT_ASSIGN_FASTIN MD number NCK input bytes for interrupts Default setting: 1 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: HEX Data type: DWORD Applies from SW 2 ext. in 5 Significance: Hardware assignment of high-speed input byte for NC program interrupt Bits 0 to 7: Number of input used Bits 16 to 23 Mask of signals which the channel is not to evaluate Bits 24 to 31 Mask of signals which are to be evaluated inverted. Bit set: Interrupt triggered by falling edge. Possible inputs: 1: Onboard inputs of the 840D (4 high-speed + 4 bits via VDI command) 25: External digital inputs (highspeed NCK I/O or VDI command) 1228129: Comparator byte (resulting from high-speed analog inputs or VDI command
22500 GCODE_OUTPUT_TO_PLC MD number G functions to PLC, (up to SW 3.1) Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: 0: No output of G codes to the PLC 1: Programmed G codes are output to the PLC. The G codes most recently programmed in the block are output. Output is limited to 8 G codes.
22510 MD number
GCODE_GROUPS_TO_PLC G codes that are output to the NCK/PLC interface on block change/Reset, (SW 3.2 and higher) Default setting: 0000 0000, ... Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 3.2 Significance: Specification of G code that are output to the NCK/PLC interface on block change/Reset. The interface is updated after every block change and Reset. Special cases, errors, ... It cannot be guaranteed that a PLC user program will have a block-synchronous connection between the active NC block and the applied G codes at any given time. Example: Continuous-path mode with very short blocks.
1/K1/4-148
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
27800 TECHNOLOGY_MODE MD number Technology in channel Default setting: 0 Minimum input limit: 0 Maximum input limit: 255 Changes effective after NEW_CONF Protection level: 2/7 Unit: Data type: BYTE Applies from SW 4.2 Significance: This machine data allows a machining technology to be specified on a channel-dependent basis. MD=0 Milling MD=1 Turning MD=2 Grinding MD=3 Nibbling MD=4 ...(Add other technologies if required) Application example(s) Among other functions, this information is provided for evaluation by the HMI, MMC, PLC and standard cycles.
27860 PROCESSTIMER_MODE MD number Activation of program runtime measurement Default setting: 0x0 Minimum input limit: 0x0 Maximum input limit: 0x07F Changes effective after Reset Protection level: 2/7 Unit: Data type: BYTE Applies from SW 5.2 Significance: The following runtime measurements are performed automatically: Bit 0 = 1 Measurement of total NC program runtime active ($AC_OPERATING_TIME) Bit 1 = 1 Measurement of current NC program runtime active ($AC_CYCLE_TIME) Bit 2 = 1 Measurement of tool operating time ($AC_CUTTING_TIME) Bit 3 Reserved Bit 4/5 only when bit 0 or 1 or 2 = 1 Bit 4=0 Bit 4 = 1 Bit 5 = 0 Bit 5 = 1 No measurement at active dry run feedrate Measurement at active dry run feedrate No measurement in program test mode Measurement in program test mode.
Bit 6 only when bit 1 = 1 Bit 6=0 Delete $AC_CYCLE_TIME even with start via ASUB and PROG_EVENTs Bit 6 = 1 $AC_CYCLE_TIME is not deleted with start via ASUB and PROG_EVENTs parts program end. Bit 7 Reserved
27880 PART_COUNTER MD number Activation of the workpiece counters Default setting: 0x0 Minimum input limit: 0x0 Maximum input limit: 0x0FFF Changes effective after Reset Protection level: 2/7 Unit: Data type: DWORD Applies from SW 5.2 Significance: This MD can be used to configure the workpiece counters: Bit 0 = 1 $AC_REQUIRED_PARTS counter is active Bit 1 = 0 Alarm/VDI output on $AC_REQUIRED_PARTS = $AC_ACTUAL_PARTS Bit 1 = 1 Alarm/VDI output on $AC_REQUIRED_PARTS = $AC_SPECIAL_PARTS Bit 4 = 1 Bit 5 = 1 Bit 6=1 $AC_TOTAL_PARTS counter is active $AC_TOTAL_PARTS counter is incremented by 1 on M2/M30. $AC_TOTAL_PARTS is incremented by 1 on the M command from MD MC_PART_COUNTER_MCODE[0] incremented by value of 1. $AC_ACTUAL_PARTS counter is active $AC_ACTUAL_PARTS counter is incremented by 1 on M2/M30. $AC_ACTUAL_PARTS counter is incremented by 1 on the M command from MD MC_PART_COUNTER_MCODE[1] incremented by value of 1.
Bit 12 = 1 Activate counter $AC_SPECIAL_PARTS Bit 13 = 0 $AC_SPECIAL_PARTS counter is incremented by 1 on M2/M30 Bit 13 = 1 $AC_SPECIAL_PARTS counter is incremented by 1 on the M command from MD MC_PART_COUNTER_MCODE[2] incremented by value of 1.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-149
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
10.00
27882 PART_COUNTER_MCODE[ ] MD number Workpiece counting via M command Default setting: 2 Minimum input limit: 0 Maximum input limit: 99 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE[3] Applies from SW 3.2 Significance: The workpiece counters are incremented by 1 on output of the following M command at the VDI interface: $MC_PART_COUNTER_MCODE[0] for $AC_TOTAL_PARTS $MC_PART_COUNTER_MCODE[1] for $AC_ACTUAL_PARTS $MC_PART_COUNTER_MCODE[2] for $AC_SPECIAL_PARTS Note: Only relevant if counting via M command has been activated.
4.4.1
Block search
20128 COLLECT_TOOL_CHANGE MD number Collect tool changes during block search Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective immediately Protection level: 1/1 Unit: Data type: BOOLEAN Applies from SW 4.3 Significance: This MD is only relevant when tool management is active. It determines whether the tool change M code defined by MD 22560: TOOL_CHANGE_M_CODE is accumulated during block search with calculation. 1: 0: Tool change M code is accumulated Tool change M code is not accumulated
The tool determined in the block search is displayed and interpreted as the current tool; the T number output is unaffected. The tool offset data determined by the NCK are effective. There is no change in the magazine data, etc. The tool change M code is not accumulated without tool management if it is not assigned to an auxiliary function group. MD 22560: TOOL_CHANGE_M_CODE
Related to ....
1/K1/4-150
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
22600 SERUPRO_SPEED_MODE MD number Velocity with block search type 5 Default setting: 1111 1111, ... Minimum input limit: Maximum input limit: Changes effective immediately Protection level: 2/2 Unit: Data type: DWORD Applies from SW 6.1 Significance: This machine data specifies the block search mode: SERUPRO in detail. SERUPRO means SEarch Run by PROgram Test, i.e. the axes are traversed in Program Test mode from the program start up to the search target. Note: Program Test will not move any axes. The block search SERUPRO is enabled via the PI service _N_FINDBL mode parameter == 5. Bit 1 | 0 Effect: ________________________________________________________________________ 0 | 0 The axis traverses at the dry run feedrate set in MD 22601: SERUPRO_SPEED_FACTOR in program test mode. Dynamic limitations for axes are effective. 0 |1 The axis traverses at the velocity corresponding to dry run feedrate in program test mode. Dynamic limitations for axes are effective. The axis traverses at the programmed velocity in program test mode. Dynamic limitations for axes are effective. Not assigned are not yet used.
1 |0
1 |1
A Starts program command in the search process will under certain circumstances start the other channel really! MD 22601: SERUPRO_SPEED_FACTOR (velocity factor of search type 5) SD 42100: DRY_RUN_FEED (dry run feed)
22601 SERUPRO_SPEED_FACTOR MD number Velocity factor for block search type 5 Default setting: 10.0 Minimum input limit: Maximum input limit: Changes effective immediately Protection level: 2/2 Unit: Data type: DOUBLE Applies from SW 6.1 Significance: SERUPRO means SEarch RUn by PROgram Test, i.e. the axes are traversed in Program Test mode from the program start up to the search target. Note: Program Test will not move any axes. This machine data is only relevant if the first two bits of MD 22600: SERUPRO_SPEED_MODE are set to zero. The sign of the machine data has the following meaning: Positive: MD 22601: SERUPRO_SPEED_FACTOR specifies the factor with which the dry run feedrate is multiplied. Negative: Axis motions are not executed at all. Zero: Programmed end points are approached in an interpolation cycle. Dynamic limitations of axes are always ignored. MD 22600: SERUPRO_SPEED_MODE (velocity with block search type 5) SD 42100: DRY_RUN_FEED (dry run feed)
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-151
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
22621 ENABLE_START_MODE_MASK_PRT MD number Enables MD 22620: START_MODE_MASK_PRT for SERUPRO search run Default setting: 0x0, 0x0, ... Minimum input limit: 0 Maximum input limit: 0x1 Changes effective after Reset Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3 Significance: The machine data MD 22620: START_MODE_MASK_PRT is enabled via this machine data. In the initial setting of MD 22621: ENABLE_START_MODE_MASK_PRT if Bit 0 = =0 MD 22620: START_MODE_MASK_PRT is inactive. Bit 01 If search run by program test (SERUPRO) is started from RESET (PI service _N_FINDBL with mode parameter == 5), Set machine data MD 22620: START_MODE_MASK_PRT replaces Set machine data MD 20112: START_MODE_MASK. Related to .... This allows you to set a different response to PLC start for search run start. MD 20112: START_MODE_MASK Initial function setting. MD 22620: START_MODE_MASK_PRT Initial setting on special NC Start after booting and on RESET.
22622 DISABLE_PLC_START MD number Allow parts program start via PLC Default setting: 0x0, 0x0, ... Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/2 Unit: Data type: DWORD Applies from SW 6.4 Significance: This machine data is only activated is machine data MD 10708: SERUPRO_MASK, bit 2 = 1. Bit 0 = =0 A parts program can only be started via the PLC in this channel. Starting per parts program command START is interlocked. Bit 0 = =1 In this channel, a parts program can only be started per parts program command START from a differnet channel. Starting per PLC is interlocked. MD 10708: SERUPRO_MODE_MASK program test modes.
Related to ....
1/K1/4-152
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
4.4.2
ASUB
20116 IGNORE_INHIBIT_ASUP MD number Process ASUB in spite of readin disable Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after NEW_CONF Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.2 Significance: An interrupt channel is assigned to each bit of this mask. Bit 0 is equivalent to interrupt channel 1, bit 1 to interrupt channel 2, etc. Bit x is set: A user ASUB triggered via the interrupt channel (x+1) is processed completely, in spite of the active read-in disable. User ASUBs are linked to an interrupt channel with the parts program command SETINT or PI service _N_ASUP__. The interrupt channel is then activated via the PLC or the highspeed inputs and the ASUB is executed. If ASUP_START_MASK bit 2 = 1, IGNORE_INHIBIT_ASUP is ineffective, i.e. the NCK responds as if IGNORE_INHIBIT_ASUP = FFFFFFFF. Bit x is not set: The assigned ASUB is selected, but is not processed until the read-in disable is canceled. IGNORE_SINGLEBLOCK_ASUP , ASUP_START_MASK
Related to ....
20117 IGNORE_SINGLEBLOCK_ASUP MD number ASUB in spite of SBL processing Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after NEW_CONF Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.2 Significance: In spite of selected SBL processing mode, a user ASUB is processed completely for the interrupt channel with the set bit. Bit 0 is assigned to interrupt channel 1. Bit 1 is assigned to interrupt channel 2. If single block stop is suppressed in the user ASUB, then it cannot be activated with SBLON. SBLON can be activated again if the single block stop is suppressed in the system ASUB or user ASUB with MD 10702: IGNORE_SINGLEBLOCK_MASK bit 0 = 0 or bit 1 = 0. The MD is not effective for single block type 2 Related to .... MD20116 IGNORE_INHIBIT_ASUP MD10702 IGORE_SINGLEBLOCK_MASK
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-153
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
03.02 10.00
4.4.3
20110 RESET_MODE_MASK MD number Definition of control system initial setting on Reset Default setting: 0x0, 0x0, ... Minimum input limit: 0 Maximum input limit: 0x3FFFF Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 2.0 up to bit 17 in SW 6.4 and higher Significance: Definition of control basic setting after powerup and RESET parts program end with respect to G-Codes (especially active plane and settable zero offset), tool length correction and transformation by setting the following bits: Bit 0: (LSB) Reset mode Bit 1: Suppress aux. funct. output on tool selection Bit 2: Select reset response after POWER ON (e.g. tool offset) Bit 3: Select reset response after end of test mode with reference to active tooloffsets. This bit is relevant only if bits 0 and 6 (0x41) are set. It defines the reference for current setting for the active tool lengthoffset; the program active on end of Program Test the program active before executing Program Test Bit 4: Up to SW 4.4 reset response G code current plane; in SW 5 and higher reserved, setting via MD 20152: GCODE_RESET_MODE Bit 5: Up to SW 4.4 reset response G code settable zero offset; in SW 5 and higher reserved, setting via MD 20152: GCODE_RESET_MODE Bit 6: Reset response active tool length compensation Bit 7: Reset response active kinematic transformation Bit 8: Reset response coupled-motion axes Bit 9: Reset response tangential correction Bit 10: Reset response synchronous spindle Bit 11: Reset response revolutional feedrate Bit 12: Reset response Geoaxis replacement Bit 13: Reset response Guide value coupling Bit 14: Reset response Basic frame Bit 15: Reset response Electronic gear Bit 16: Reset response Master spindle (SW 6.4 and higher) Bit 17: Reset response Master tool holder (SW 6.4 and higher) Bits 4 to 11, 16 and 17 are evaluated only when bit 0 = 1. The remaining bits are not assigned. Meaning of each bit: Bit 0 = 0: Corresponds to response of SW 1 Initial setting after power-up: G codes acc. to MD 20150: GCODE_RESET_VALUES; GCODE_RESET_VALUES; Tool length compensation not active Transformation not active No coupled motion groupings active No tangential followup active Axial revolutional feedrate off Axial revolutional feedrate off Geometry axis assignment according to MD 20050 Guide value coupling not active Path revolutional feedrate with master spindle (default) Continued on next page.
1/K1/4-154
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
03.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
RESET_MODE_MASK Definition of control system initial setting on Reset Initial setting on reset or end of program: the current settings are retained; with the next parts program start, the following reset state is in effect: G codes acc. to MD 20150: GCODE_RESET_VALUES; GCODE_RESET_VALUES; Tool length compensation not active Transformation not active No coupled motion groupings active No tangential follow-up active Axial revolutional feedrate off Axial revolutional feedrate off Geometry axis assignment according to MD 20050 Guide value coupling not active Bit 0 = 1: Initial setting after power-up: G codes acc. to MD 20150: GCODE_RESET_VALUES; Tool length compensation active acc. to MD 20120: TOOL_RESET_VALUE and MD 20130: CUTTING_EDGE_RESET_VALUE If bit 2 =1 and bit 6 = 1, then TLC is active at POWER ON. Transformation active acc. to MD 20140: TRAFO_RESET_VALUE Transformation not active No coupled-motion groupings active No tangential follow-up active Axial revolutional feedrate off Axial revolutional feedrate off Geometry axis assignment according to MD 20050 Guide value coupling not active Bit 0 = 1: Initial setting on reset or end of program: G codes: Setting via MD 20152 Depending on RESET_MODE_MASK, bit 4 to 14 the current settings are retained or the basic settings stored in the MDs are set for the following: Active plane Settable zero offset Tool length compensation Transformation etc. Depending on bits 8 and 9 the current settings of coupled-motion axes and tangentially axes are either deactivated or retained. Synchronous spindle link configured: The link is deselected depending on the setting in MD 21330: COUPLE_RESET_MODE_1. Synchronous spindle link not configured: Depending on the setting of bit 10 the link is deactivated or retained Depending on the setting of bit 14 the basic frame is retained or deactivated. COUPLE_RESET_MODE_1. Bit 1 = 0: Aux. funct. output (D, T, M) to PLC on tool selection according to MD 20120: TOOL_RESET_VALUE, MD 20130: CUTTING_EDGE_RESET_VALUE, MD 20121: TOOL_PRESEL_RESET_V ALUE and MD 22550: TOOL_CHANGE_MODE. When the tool management function is active, bit 1 has no meaning. Bit 1 = 1: Suppress aux. funct. output to PLC on tool selection. When the tool management function is active, bit 1 has no meaning. Bit 2 = 0: No tool offset after POWER ON active (no effect when tool management active) Bit 2 = 1: If bit 0 and bit 6 = 1, the tool offset of the last active tool is active (no effect when tool management active) Bit 3 = 0: End of test mode: Current setting for active tool length compensation is retained (bits 0 and 6 enabled) refers to the program which was active before activation (!) of test mode. Bit 3 = 1: End of test mode: Current setting for active tool length compensation is retained (bits 0 and 6 enabled) refers to the program which was active at the end (!) of test mode. Continued on next page.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-155
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
03.02 10.00
RESET_MODE_MASK Definition of control system initial setting on Reset Bit 4 = 0: SW 4.4 and lower: Initial setting for G code current plane after Reset/part program end MD 20150: GCODE_RESET_VALUES; in SW 5 and higher reserved, setting via MD 20152: GCODE_RESET_MODE Bit 4 = 1: SW 4.4 and lower: The current setting for G code current plane is retained beyond reset/end of parts program; in SW 5 and higher reserved, setting via MD 20152: GCODE_RESET_MODE Bit 5 = 0: SW 4.4 and lower: Initial setting for G code settable zero offset after reset/end of parts program according to MD 20150: GCODE_RESET_VALUES; in SW 5 and higher reserved, setting via MD 20152: GCODE_RESET_MODE Bit 5 = 1: SW 4.4 and lower: The current setting for G code current plane is retained beyond reset/end of parts program; in SW 5 and higher reserved, setting via MD 20152: GCODE_RESET_MODE Bit 6 = 0: Initial setting for active tool length compensation according to parts program end acc. to MD 20120: TOOL_RESET_VALUE and MD 20130: CUTTING_EDGE_RESET_VALUE; If MD 22550: TOOL_CHANGE_MODE=1, the tool specified in MD 20121: TOOL_PRESEL_RESET_V ALUE is preselected. When the tool management function is active, MD 20120 is not used but MD 20122: TOOL_RESET_NAME; Bit 6 = 1: Current setting for active tool length compensation is retained beyond reset/end of parts program. Bit 7 = 0: Initial setting for active transformation after reset/parts program end according to MD 20140: TRAFO_RESET_VALUE; Bit 7 = 1: Current setting for active transformation is retained beyond reset/parts program end and parts program start; Bit 8 = 0: Coupled-motion groupings are deactivated after reset/end of parts program Bit 8 = 1: Coupled-motion groupings remain active after reset/end of parts program. Bit 9 = 0: Tangential correction is deactivated on reset/end of parts program. Bit 9 = 1: Tangential correction is retained after reset/end of parts program. Bit 10 = 0: Non-configured synchronous spindle link is deactivated on reset/parts program end. Bit 10 = 1: Non-configured synchronous spindle link remains active on reset/parts program end. Bit 11 = 0: With reset/end of parts program, the setting data MD 43300: ASSIGN_FEED_PER_REV_SOURCE is set to 0 for all inactive axes/spindles, i.e. traversing is no longer at revolutional feedrate, and the setting for path and synchronous axes is reset to the master spindle (default setting). Bit 11 = 1: Current setting for revolutional feedrate is retained after reset/end of part program. With start of parts program, the setting data MD 43300: ASSIGN_FEED_PER_REV_SOURCE is set to 0, i.e. traversing is no longer at revolutional feedrate, and the setting for path and synchronous axes is reset to the master spindle (default setting). Bit 12 = 0: When machine data $MC_GEOAX_CHANGE_RESET is enabled, a modified geometry axis assignment is cleared on Reset or parts program end. The default setting in the machine data for geometry axis assignment becomes active. Bit 12 = 1: A modified geometry axis assignment remains active after RESET/end of parts program. Bit 13 = 0: Master/slave couplings are separated on RESET/end of parts program. Bit 13 = 1: Master/slave couplings remain active after RESET/end of parts program. Bit 14 = 0: The basic frame is deselected. Bit 14 = 1: The current setting of the basic frame is retained. Bit 15 = 0: Active electronic gears are retained on RESET/end of parts program Bit 15 = 1: Active electronic gears are deactivated on RESET/end of parts program Bit 16 = 0: SW 6.4 and higher Initial setting for the master spindle acc. to MD 20090: SPIND_DEF_MASTER_SPIND Bit 16 = 1: The current setting of the master spindle (SETMS) is retained. If MD 20124: TOOL_MANAGEMENT_TOOLHOLDER=0, this bit also has an effect on the response of bit 6. Continued on next page.
1/K1/4-156
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
20110 MD number
Related to ....
RESET_MODE_MASK Definition of control system initial setting on Reset Bit 17 = 0: Initial setting for the master tool holder acc. to MD MD 20124: TOOL_MANAGEMENT_TOOLHOLDER Bit 17 = 1: The current setting of the master tool holder (SETMTH) is retained. (Bit 17 is only significant if tool management is active and MD 20124: TOOL_MANAGEMENT_TOOLHOLDER > 0). Otherwise the master spindle takes its setting from bit 16 (tool management active). This bit also has an effect on the response of bit 6. MD 20120: TOOL_RESET_VALUE (tool whose assigned length compensation is selected during power-up (Reset/parts program end)) MD 20130: CUTTING_EDGE_RESET_VALUE (cutting edge whose assigned length is selected during power-up (Reset/end of parts program) MD 20150: GCODE_RESET_VALUES (initial setting of G groups [G group no.]). MD 20152: in SW 5 and higher, extension for MD 20110 with reference to G codes MD 20140: TRAFO_RESET_VALUE (transformation data set that is selected during powerup (Reset/end of parts program)). MD 20112: START_MODE_MASK (definition of control system initial setting after POWER ON and reset. MD 20118: GEOAX_CHANGE_RESET (allow automatic geometry change) MD 43300: ASSIGN_FEED_PER_REV_SOURCE (revolutional feedrate for positioning axes/spindles) MD 20050: AXCONF_GEOAX_ASSIGN_TAB (assignment between geometry axis and channel axis)
Important If the tool management function is used, then bit 14 in MD 20310 TOOL_MANAGEMENT_MASK must be set.
20112 START_MODE_MASK MD number Determination of the basic control setting at NC start after boot and at RESET Default setting: 0x400,0x400, ... Minimum input limit: 0 Maximum input limit: 0x7FFFF Changes effective after RESET Protection level: 1 / 1 Unit: Data type: DWORD Applies from SW 4.3 up to bit 17 in SW 6.4 and higher
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-157
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
03.02 10.00
START_MODE_MASK Determination of the basic control setting at NC start after boot and at RESET Definition (by setting the following bits) of control basic setting at the start of the parts program with respect to G codes (in particular, active plane and active settable zero offset), active tool length compensation, transformation and axis couplings: Bit 0: Not assigned; START_MODE_MASK is evaluated every time a part program is started. Bit 1 = 0: Aux. funct. output (D, T, M) to PLC on tool selection according to MD 20120: TOOL_RESET_VALUE, MD 20130: CUTTING_EDGE_RESET_VALUE, MD 20121: TOOL_PRESEL_RESET_V ALUE and MD 22550: TOOL_CHANGE_MODE. No effect when tool management active. Bit 1 = 1: Suppress aux. funct. output to PLC on tool selection. No effect when tool management active. Bit 2 Not assigned (reserved). Bit 3 Not assigned (reserved). Bit 4 = 0: The current setting for G code current plane is retained. Bit 4 = 1: Basic setting for G code current plane according to MD 20150: GCODE_RESET_VALUES. Bit 5 = 0: Current setting for G code settable zero offset is retained. Bit 5 = 1: Initial setting for G code settable zero offset acc. to MD 20150: GCODE_RESET_VALUES. Bit 6 = 0: The current setting for active tool length compensation is retained. When the tool management function is active, the tool selected is always the tool currently located in the active toolholder (spindle). If the tool located in the spindle is disabled, it is automatically replaced by a suitable spare tool. If no such tool exists, an alarm is output. Bit 6 = 1: Initial setting for active tool length compensation according to MD 20120: TOOL_RESET_VALUE. MD 20130: CUTTING_EDGE_RESET_VALUE, MD 20123: USEKT_RESET_VALUE and MD 20132: SUMCORR_RESET_VALUE. If MD 22550: TOOL_CHANGE_MODE=1, the tool specified in MD 20121: TOOL_PRESEL_RESET_V ALUE is preselected. When the tool management function is active, MD 20120 is not used but MD 20122: TOOL_RESET_NAME instead. Bit 7 = 0: The current setting for the active transformation is retained. Bit 7 = 1: Initial setting for active transformation acc. to MD 20140: TRAFO_RESET_VALUE. Bit 8 = 0: Coupled-axis groupings are retained. Bit 8 = 1: Coupled-axis groupings are separated. Bit 9 = 0: Tangential followup remains active. Bit 9 = 1: Tangential correction is deactivated. Bit 10 = 0: Non-configured synchronous spindle link remains active. Bit 10 = 1: Non-configured synchronous spindle link is deactivated. Bit 11 Reserved (starting response: Revolutional feedrate) Bit 12 = 0: A modified geometry axis assignment remains active on parts program start. Bit 12 = 1: A modified geometry axis assignment is deleted on parts program start depending on MD 20118 GEOAX_CHANGE_RESET. Bit 13 = 0: Master/slave couplings remain active. Bit 13 = 1: Master/slave couplings are separated. Bit 14: Reserved (starting response Basic frame) Bit 15: Reserved (starting response Electronic gear) SW 6.4 and higher Bit 16 = 0: Initial setting for the master spindle acc. to MD 20090: SPIND_DEF_MASTER_SPIND Bit 16 = 1: The current setting of the master spindle (SETMS) is retained. Bit 17 = 0: The current setting of the master tool holder (SETMTH) is retained. (It is only significant if tool management is active.) Bit 17 = 1: Only if MD 20124: TOOL_MANAGEMENT_TOOLHOLDER > 0: Basic setting for the master tool holder acc. to MD 20124: TOOL_MANAGEMENT_TOOLHOLDER Otherwise, the setting for the master spindle applies. Continued on next page.
1/K1/4-158
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
03.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
START_MODE_MASK Determination of the basic control setting at NC start after boot and at RESET MD 20050: AXCONF_GEOAX_ASSIGN_TAB (assignment between geometry axis and channel axis) MD 20110: RESET_MODE_MASK (definition of control system initial setting after reset/parts program end) MD 20118: GEOAX_CHANGE_RESET (configuration of geometry axes on Reset/parts program end/parts program start) MD 20120: TOOL_RESET_VALUE (tool whose assigned length compensation is selected during the boot procedure (Reset/parts program end/parts program start)) MD 20121: TOOL_PRESEL_RESET_V ALUE (preselected tool whose length compensation is selected during power-up (Reset/parts program end/start) MD 20122: TOOL_RESET_NAME (definition of tool with which length compensation is selected during power-up (Reset/parts program start) MD 20123: USEKT_RESET_VALUE (the value of MC 20123: USEKT_RESET_VALUE depending on MD 20110: according to MD 20110: RESET_MODE_MASK after booting/RESET/parts program start and according to MD 20112: START_MODE_MASK on parts program start) the value of MD 20123: USEKT_RESET_VALUE is preselected) MD 20124: TOOL_MANAGEMENT_TOOLHOLDER (toolholder number) MD 20130: CUTTING_EDGE_RESET_VALUE (cutting edge whose assigned length com pensation is selected on booting (RESET/parts program end) MD 20132: SUMCORR_RESET_VALUE (effective total offset with which the tool length compensation is selected on booting (Reset/parts program end) according to MD 20110: RESET_MODE_MASK and on parts program start according to MD 20112: START_MODE_MASKSTART_MODE_MASK. MD 20140: TRAFO_RESET_VALUE (transformation data set that is selected during booting (Reset/parts program end/parts program start)). MD 20150: GCODE_RESET_VALUES (initial setting of G groups [G group no.]). booting (Reset/parts program end/parts program start)). MD 22620: START_MODE_MASK_PRT Initial setting on special NC Start after booting and on RESET
20118 GEOAX_CHANGE_RESET MD number Allow automatic geometry axis change Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective after RESET Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 2.0 Significance: 0: The current configuration of the geometry axes remains unchanged on Reset and on program start. With this setting, the response is identical to older software versions without geometry axis replacement. 1: The current configuration of the geometry axes remains unchanged on Reset or parts program end depending on MD 20110: RESET_MODE_MASK and, on program start, depending on MD 20112: START_MODE_MASK or is switched to the initial state defined by MD 20050: AXCONF_GEOAX_ASSIGN_TAB. Related to .... MD 20050: AXCONF_GEOAX_ASSIGN_TAB MD 20110: RESET_MODE_MASK MD 20112: START_MODE_MASK
20120 MD number
TOOL_RESET_VALUE Tool whose tool length compensation is selected during power-up (Reset/parts program end) Default setting: 0 Minimum input limit: 0 Maximum input limit: 32000 Changes effective after RESET Protection level: 2 Unit: 1 Data type: DWORT Applies from SW 2.0 Significance: Definition of tool for which tool length compensation is selected during boot or on reset or parts program end as a function of MD 20110: RESET_MODE_MASK and, on program start, depending on MD 20112: START_MODE_MASK. MD irrelevant for ... MD 20110: RESET_MODE_MASK, bit 0 = 0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-159
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
10.00
20121 MD number
TOOL_PRESEL_RESET_VALUE Preselected tool whose length compensation is selected during power-up (Reset/parts program end). Default setting: 0 Minimum input limit: 0 Maximum input limit: 32000 Changes effective after RESET Protection level: 2 Unit: 1 Data type: DWORT Applies from SW 3.3 Significance: Definition of preselected tool for which tool length compensation is selected during PowerUp or on reset or parts program end as a function of MD 20110: RESET_MODE_MASK and, on program start depending on MD 20112: START_MODE_MASK. This MD is valid only when the tool management function is not active. MD irrelevant for ... MD 20110: RESET_MODE_MASK, bit 0 = 0
20130 MD number
CUTTING_EDGE_RESET_VALUE Cutting edge whose tool length compensation is selected during power-up (Reset/parts program end) Default setting: 0 Minimum input limit: 0 Maximum input limit: 9 Changes effective after RESET Protection level: 2 Unit: 1 Data type: DWORT Applies from SW 2.0 Significance: Definition of cutting edge for which tool length compensation is selected during PowerUp or on reset or parts program end as a function of MD 20110: RESET_MODE_MASK and, on program start, depending on MD 20112: START_MODE_MASK. MD irrelevant for ... MD 20110: RESET_MODE_MASK, bit 0 = 0
20140 TRAFO_RESET_VALUE MD number Active transformation on RESET Default setting: 0 Minimum input limit: 0 Maximum input limit: 8 Changes effective after RESET Protection level: 2 Unit: 1 Data type: BYTE Applies from SW 2.0 Significance: Definition of transformation data block which is selected during PowerUp and or RESET or parts program end as a function of MD 20110: RESET_MODE_MASK and, on program start, depending on MD 20112: START_MODE_MASK. Number of transformation data block (1 ...8) corresponding to MD TRAFO_TYPE_1 to TRAFO_TYPE_8. Permissible transformations: TRACYL, TRAANG, for SW 4 and higher, also TRANSMIT MD irrelevant for ... MD 20110: RESET_MODE_MASK, bit 0 = 0
1/K1/4-160
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
20150 MD number
Default setting: see below Minimum input limit: 0.0 Maximum input limit: plus Changes effective after RESET Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Specification of a G code which becomes effective on run-up and reset or at parts program end depending on MD 20110: RESET_MODE_MASK (up to SW 4) and MD: GCODE_RESET_MODE (SW 5 and higher) and at parts program start depending on the setting in MD 20112 START_MODE_MASK. The index of the G codes in the respective groups must be programmed as the default value. For a list of the G groups with the G functions they contain, please refer to References: /PA/, Programming Guide, Advanced. Title Group Default setting on 840D/810D/FM-NC GCODE_RESET_VALUES[0] 1 1 (G00) GCODE_RESET_VALUES[1] 2 0 (inactive) GCODE_RESET_VALUES[2] 3 0 (inactive) GCODE_RESET_VALUES[3] 4 2 (START FIFO) GCODE_RESET_VALUES[4] 5 0 (inactive) GCODE_RESET_VALUES[5] 6 1 (G17) GCODE_RESET_VALUES[6] 7 1 (G40) GCODE_RESET_VALUES[7] 8 1 (G500) GCODE_RESET_VALUES[8] 9 0 (inactive) GCODE_RESET_VALUES[9] 10 1 (G60) GCODE_RESET_VALUES[10] 11 0 (inactive) GCODE_RESET_VALUES[11] 12 1 (G601) GCODE_RESET_VALUES[12] 13 2 (G71) GCODE_RESET_VALUES[13] 14 1 (G90) GCODE_RESET_VALUES[14] 15 2 (G94) GCODE_RESET_VALUES[15] 16 1 (CFC) GCODE_RESET_VALUES[16] 17 1 (NORM) GCODE_RESET_VALUES[17] 18 1 (G450) GCODE_RESET_VALUES[18] 19 1 (BNAT) GCODE_RESET_VALUES[19] 10 1 (ENAT) GCODE_RESET_VALUES[20] 21 1 (BRISK) GCODE_RESET_VALUES[21] 22 1 (RTCPOF) GCODE_RESET_VALUES[22] 23 1 (CDOF) GCODE_RESET_VALUES[23] 24 1 (FFWOF) GCODE_RESET_VALUES[24] 25 1 (ORIWKS) GCODE_RESET_VALUES[25] 26 2 (RMI) GCODE_RESET_VALUES[26] 27 1 (ORIC) GCODE_RESET_VALUES[27] 28 1 (WALIMON) GCODE_RESET_VALUES[28] 29 1 (DIAMOF) GCODE_RESET_VALUES[29] 30 1 (COMPOF) GCODE_RESET_VALUES[30] 31 1 (inactive) GCODE_RESET_VALUES[31] 32 1 (inactive) GCODE_RESET_VALUES[32] 33 1 (FTCOF) GCODE_RESET_VALUES[33] 34 1 (OSOF) GCODE_RESET_VALUES[34] 35 1 (SPOF) GCODE_RESET_VALUES[35] 36 1 (PDLAYON) GCODE_RESET_VALUES[36] 37 1 (FNOORM) GCODE_RESET_VALUES[37] 38 1 (SPF1) GCODE_RESET_VALUES[38] 39 1 (CPRECOF) GCODE_RESET_VALUES[39] 40 1 (CUTCONOF) GCODE_RESET_VALUES[40] 41 1 (LFOF) : : GCODE_RESET_VALUES[46] 47 1 (LFTXT) : : GCODE_RESET_VALUES[48] 49 1 (CP) 2 (PTP) : : GCODE_RESET_VALUES[59] 60 1 (not defined) G91 (instead of G90) must be active as the default setting in G group 14. GCODE_RESET_VALUES[13] = 2
Application example(s)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-161
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
06.01 10.00
20152 GCODE_RESET_MODE MD number G code basic setting at RESET Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after RESET Protection level: 2/7 Unit: Data type: BYTE Applies from SW 5 Significance: MD 20152 is operative only if MD 20110, bit 0 = 1. Definition of control initial setting on reset/end of parts program with reference to G codes. 0: The initial setting of the G group is set according to the entry in MD 20150: GCODE_RESET_VALUES 1: The current G group setting is retained on reset/end of parts program. Example: Read initial setting for the 6th G group (current plane) from MD 20150: GCODE_RESET_VALUES on every reset/end of parts program MD 20150: GCODE_RESET_VALUES[5]=1 ;Reset value of 6th G group is G17 MD 20152: GCODE_RESET_MODE[5]=0 ;Initial setting for 6th G group after ;reset/end of parts program corresponds ;to GCODE_RESET_VALUES[5] If the current setting for the 6th G group is to be retained beyond reset/end of parts program then: MD 20150: GCODE_RESET_VALUES[5]=1 ;Reset value of 6th G group is G17 MD 20152: GCODE_RESET_MODE[5]=1 ;Current setting for 6th G group ;is retained after reset/end of part ;program Related to .... MD 20150: GCODE_RESET_VALUES MD 20110: RESET_MODE_MASK MD 20112: START_MODE_MASK
22620 START_MODE_MASK_PRT MD number Initial setting at special NC Start after booting and at RESET Default setting: 0x400,0x400, ... Minimum input limit: 0 Maximum input limit: 0x7FFF Changes effective after RESET Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3 Significance: This machine data is enabled by MD 22621: ENABLE_START_MODE_MASK_PRT. In the initial setting of the control, MD 22621: ENABLE_START_MODE_MASK_PRT is inactive. If MD 22620: START_MODE_MASK_PRT is enabled for search run by program test (SERUPRO) then, when the search run by program test is started, this machine data replaces machine data MD 20112: START_MODE_MASK. This allows you to set a different response to PLC start for search run start. The meaning of the bit assignments in MD 22620: START_MODE_MASK_PRT is identical to MD 20112: START_MODE_MASK and is as follows: Bits: Bit 0: Not assigned; START_MODE_MASK is evaluated every time a part program is started. Bit 1 = 0: Aux. funct. output (D, T, M) to PLC on tool selection according to MD 20120: TOOL_RESET_VALUE, MD 20130: CUTTING_EDGE_RESET_VALUE, MD 20121: TOOL_PRESEL_RESET_V ALUE and MD 22550: TOOL_CHANGE_MODE. No effect when tool management active. Bit 1 = 1: Suppress aux. funct. output to PLC on tool selection. No effect when tool management active. Bit 2 Not assigned (reserved). Bit 3 Not assigned (reserved). Bit 4 = 0: The current setting for G code current plane is retained. Bit 4 = 1: Basic setting for G code current plane according to MD 20150: GCODE_RESET_VALUES. Bit 5 = 0: Current setting for G code settable zero offset is retained. Bit 5 = 1: Initial setting for G code settable zero offset acc. to MD 20150: GCODE_RESET_VALUES.
1/K1/4-162
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
Related to ....
START_MODE_MASK_PRT Initial setting at special NC Start after booting and at RESET Bit 6 = 0: The current setting for active tool length compensation is retained. When the tool management function is active, the tool selected is always the tool currently located in the active toolholder (spindle). If the tool located in the spindle is disabled, it is automatically replaced by a suitable spare tool. Bit 6 = 1: Initial setting for active tool length compensation according to MD 20120: TOOL_RESET_VALUE, MD 20130: CUTTING_EDGE_RESET_VALUE, MD 20123: USEKT_RESET_VALUE and MD 20132: SUMCORR_RESET_ VALUE. If MD 22550: TOOL_CHANGE_MODE=1, the tool specified in MD 20121: TOOL_PRESEL_RESET_V ALUE is also preselected. When the tool management function is active, MD 20120 is not used but MD 20122: TOOL_RESET_NAME instead. Bit 7 = 0: The current setting for the active transformation is retained. Bit 7 = 1: Initial setting for active transformation after RESET/parts program end according to MD 20140: TRAFO_RESET_VALUE. Bit 8 = 0: Coupled-axis groupings are retained. Bit 8 = 1: Coupled-axis groupings are separated. Bit 9 = 0: Tangential correction remains active. Bit 9 = 1: Tangential correction is deactivated. Bit 10 = 0: Non-configured synchronous spindle link remains active. Bit 10 = 1: Non-configured synchronous spindle link is deactivated. Bit 11 Not assigned (reserved). Bit 12 = 0: A modified geometry axis assignment remains active on parts program start. Bit 12 = 1: A modified geometry axis assignment is deleted on parts program start depending on MD 20118 GEOAX_CHANGE_RESET. Bit 13 = 0: Master/slave couplings remain active. Bit 13 = 1: Master/slave couplings are separated. Bit 14: Reserved (starting response Basic frame) MD 20050: AXCONF_GEOAX_ASSIGN_TAB (assignment between geometry axis and channel axis) MD 20110: RESET_MODE_MASK (definition of control system initial setting after RESET/parts program end) MD 20112: START_MODE_MASK Initial function setting MD 20118: GEOAX_CHANGE_RESET (configuration of geometry axes on RESET/parts program end/parts program start) MD 20120: TOOL_RESET_VALUE (tool whose assigned length compensation is selected during the boot procedure (RESET/parts program end/parts program start)) MD 20121: TOOL_PRESEL_RESET_V ALUE (preselected tool whose length compensation is selected during powerup (RESET/parts program end/parts program start) MD 20122: TOOL_RESET_NAME (definition of tool with which length compensation is selected during power-up (Reset/parts program start) MD 20123: USEKT_RESET_VALUE (the value of MC 20123: USEKT_RESET_VALUE is preselected depending on MD 20110: RESET_MODE_MASK after booting/ RESET/parts program start and depending on MD 20112: START_MODE_MASK on parts program start) MD 20124: TOOL_MANAGEMENT_TOOLHOLDER (toolholder number) MD 20130: CUTTING_EDGE_RESET_VALUE (cutting edge whose assigned length is selected during power-up (Reset/end of parts program) MD 20132: SUMCORR_RESET_VALUE (effective total offset with which the tool length compensation is selected on booting (Reset/parts program end) according to MD 20110: RESET_MODE_MASK on parts program start according to MD 20112: START_MODE_MASK) MD 20110: RESET_MODE_MASK on parts program start according to MD 20112: START_MODE_MASKSTART_MODE_MASK. MD 20140: TRAFO_RESET_VALUE (transformation data set that is selected during booting (RESET/parts program end/parts program start)). MD 20150: GCODE_RESET_VALUES (initial setting of G groups [G group no.]). booting (RESET/parts program end/parts program start)). MD 22621: ENABLE_MODE_MASK_PR T enables MD 22620: START_MODE_MASK_PRT for SERUPRO search run.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-163
Mode Group, Channel, Program Operation, Reset Response (K1) 4.4 Channel-specific machine data
4.4.4
27100 ABSBLOCK_FUNCTION_MASK MD number Parameterization of basic block display Default setting: 0x0 Minimum input limit: 0 Maximum input limit: 0x1 Changes effective after NEW_CONF Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Parameterization of basic block display function Bit 0 = 1: Positions values of traverse axis are always displayed as diameter value. Application example(s) Among other functions, this information is provided for evaluation by the HMI, MMC, PLC and standard cycles.
28400 MM_ABSBLOCK MD number Activate basic block display Default setting: 2 Minimum input limit: 0 Maximum input limit: 512 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3 Significance: The meaning of the machine data is as follows: Value 0: Basic block display deactivated. 1: Basic block display activated. A display buffer of the size defined in (MD 28060: MM_IPO_BUFFER_SIZE plus MD 28070: MM_NUM_BLOCKS_IN_PREP) * 128 bytes is set up. 128: Basic block display activated. A display buffer of the size defined in MD 28060: MM_IPO_BUFFER_SIZE plus MD 28070: MM_NUM_BLOCKS_IN_PREP * < value > is set up. Related to .... SD 42750: ABSBLOCK_ENABLE (enable basic block display) MD MM_ABSBLOCK_BUFFER_CONF[2] (dimension size of upload buffer)
Maximum input limit: 8 MD 28060 plus MD 28070 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.3 Significance: Dimension size of upload buffer MD 28402: MM_ABSBLOCK_BUFFER_CONF[0]: Number of blocks after the current block MD 28402: MM_ABSBLOCK_BUFFER_CONF[1]: Number of blocks before the current block Recommended default setting: MD 28402: MM_ABSBLOCK_BUFFER_CONF[1] MD 28402: MM_ABSBLOCK_BUFFER_CONF[5] The machine data is checked for the following upper and lower limits at boot: MD 28402: MM_ABSBLOCK_BUFFER_CONF[0]: 8 MD 28402: MM_ABSBLOCK_BUFFER_CONF[1]: MD 28060 plus MD 28070 MD 28060: MM_IPO_BUFFER_SIZE + MD 28070: MM_NUM_BLOCKS_IN_PREP Alarm 4152 is output if these limits are violated. MD MM_ABSBLOCK_BUFFER (activate basic block display)
Related to ....
1/K1/4-164
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.5 Axis/spindle-specific machine data
4.5
30600 FIX_POINT_POS MD number Fixed value positions of axes with G75 Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: The fixed point positions (max. 2) for each axis which can be approached when G75 is programmed are entered in these machine data. Application example(s) Travel to 2nd fixed point: G75 X1=0 FP=2 (a dummy value, here 0, must be defined for the axis). References /PA/, Programming Guide Fundamentals
33100 COMPRESS_POS_TOL MD number Maximum deviation with compensation Default setting: 0.1 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON, Protection level: 7/7 Unit: mm, degrees New Conf (SW4.2 and higher) Data type: DOUBLE Applies from SW 1.1 Significance: The value specifies the maximum permitted path deviation for each axis with compression. The larger the value, the more short blocks can be compressed into a long block. The maximum number of compressible blocks is limited by the size of the spline buffer (currently 10 blocks). Fig. Y axis COMPRESS_POS_TOL for Y axis COMPRESS_POS_TOL for X axis
Position values
X axis
References /PA/, Programming Guide Fundamentals
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-165
Mode Group, Channel, Program Operation, Reset Response (K1) 4.6 Channel-specific setting data
4.6
42000 THREAD_START_ANGLE SD number Start angle for thread Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective immediately Protection level: MMCMD: 9220 Unit: degrees Data type: DOUBLE Applies from SW 1.1 Significance: The offset between the individual thread turns in multiple-turn thread cutting can be set in this machine data. This setting data can be altered with the command SF in the parts program. The default setting is activated on NC RESET. References /PA/, Programming Guide Fundamentals Related to MD 10710 $MN_PROG_SD_RESET_SAVE_TAB
42200 SINGLEBLOCK2_STOPRE SD number Activate debug mode for SBL2 Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after: immediate Protection level: 7/7 Unit: Data type: BOOLEAN Applies from SW 6.3 Significance: Value of SD 42200: SINGLEBLOCK2_STOPRE = TRUE: A preprocessing stop is executed on every block when SBL2 (single block with stop after every block) is active. This suppresses preprocessing of parts program blocks. This variant of SBL2 does not maintain an accurate contour. In other words, as a result of the preprocessing stop, a different contour may be generated than the one created without single block mode or with SBL1. Application: Debug mode for testing parts programs. References /PGA/, Programming Guide Advanced
42444 TARGET_BLOCK_INCR_PROG SD number Continuation mode after block search with calculation Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after: immediate Protection level: 7/7 Unit: Data type: BOOLEAN Applies from SW 4.3 Significance: If initial programming of an axis is carried out incrementally after Search with calculation at end of block, the incremental value is added to the value totalled up to the search target according to setting data SD 42444: TARGET_BLOCK_INCR_PROG SD 42444: = TRUE: incremental value is added to the totalled position SD 42444: = FALSE: incremental value is added to the current actual value. The setting data is evaluated in conjunction with the output of the action blocks on NC start.
42990 MAX_BLOCKS_IN_IPOBUFFER SD number Control of max. number of blocks in interpolation buffer Default setting: 1 Minimum input limit: Maximum input limit: Changes effective after: immediate Unit: Data type: INTEGER Applies from SW 6.3 Significance: This setting data can limit the maximum number of blocks in the interpolation buffer. In this case, the maximum number is defined by MD 28060: MM_IPO_BUFFER_SIZE. A negative setting means that the number of blocks in the IPO buffer is not effectively limited and the number if specified solely by MD 28060: MM_IPO_BUFFER_SIZE (default setting). Related to .... MD 28060: MM_IPO_BUFFER_SIZE
1/K1/4-166
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
03.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 4.8 Setting data: Enable basic block display (SW 6.4 and later)
4.7
Setting data for processing programs from external (SW 4 and later)
42700 EXT_PROG_PATH SD number Name of an external program path for subroutine call EXTCALL Default setting: Minimum input limit: Maximum input limit: Changes effective immediately Protection level: 7/7 Unit: Data type: STRING Applies from SW 4.2 (HMI Advanced) Significance: The name of the external program path can be specified here for subroutine call EXTCALL. The total path comprises the string of SD 42700: EXT_PROG_PATH + programmed subroutine name Example: /_N_WKS_DIR/_N_WKST1_DIR /ROUGHING_SPF References /PGA/ Programming Guide, Advanced, Chapter 2
4.8
Setting data: Enable basic block display (SW 6.4 and later)
42750 ABSBLOCK_ENABLE SD number Enable basic block display Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective immediately Protection level: 7/7 Unit: Data type: BOOLEAN Applies from SW 6.4 Significance: The meaning of this setting data is as follows: Value 0: Disable basic block display Value 1: Enable basic block display Related to .... MD 28400: MM_ABSBLOCK
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/4-167
Mode Group, Channel, Program Operation, Reset Response (K1) 4.8 Setting data: Enable basic block display (SW 6.4 and later)
10.00
Notes
1/K1/4-168
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.1 Mode group-specific signals
Signal Descriptions
5.1
DB11, ... DBX0.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to ....
AUTOMATIC mode Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 AUTOMATIC mode is selected by the PLC program. AUTOMATIC mode is not selected by the PLC program. if Operating mode switchover inhibit (DB11, ... DBX0.4) signal = 1 IS Active AUTOMATIC mode (DB11, ... DBX6.0)
DB11, ... DBX0.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to ....
MDA mode Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically MDA mode is selected by the PLC program. MDA mode is not selected by the PLC program.
if IS Operating mode switchover inhibit (DB11, ... D0.4) signal = 1 IS Active MDA mode (DB11, ... DBX6.1)
DB11, ... DBX0.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to ....
JOG mode Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically JOG mode is selected by the PLC program. JOG mode is not selected by the PLC program.
if Operating mode switchover inhibit (DB11, ... DBX0.4) signal = 1 IS Active JOG mode (DB11, ... DBX6.2)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-169
Mode Group, Channel, Program Operation, Reset Response (K1) 5.1 Mode group-specific signals
10.00
DB11, ... DBX0.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Fig.
Mode switchover disable Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The current active mode (JOG, MDA or AUTOMATIC) of the mode group cannot be changed. The machine functions selected within a mode group can be changed. The mode of the mode group can be changed.
Mode selection Mode AUTOMATIC Mode type disable Mode MDA (MDI)
DBX0.4 = 0
NC
Mode JOG
DB11, ... DBX0.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Mode group stop Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 An NC stop is activated for all the channels of the mode group. The channel status of all the active channels changes to interrupted. All the channels in channel status RESET remain in that state. Programs that are running at this point are immediately interrupted (at the earliest possible point, even within a block) and the program status changes to stopped. All the moving axes of the mode group are decelerated according to their acceleleration characteristics without contour violation. The program can be restarted with NC start. None of the spindles of that mode group are affected. Channel status and program run are not affected. All the axes of a mode group that are not triggered by a program or a program block (e.g. axes traversing because traverse keys on machine control panel are being operated) decelerate to rest with mode group stop.
DB11, ... DBX0.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Mode group stop axes plus spindles Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 An NC stop is activated for all the channels of the mode group. The channel status of all the active channels changes to interrupted. All the channels in channel status RESET remain in that state. Programs that are running at this point are immediately interrupted (at the earliest possible point, even within a block) and the program status changes to stopped. All moving axes and spindles are decelerated to zero speed according to their acceleration ramp without contour violation. The program can be restarted with NC start.
1/K1/5-170
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.1 Mode group-specific signals
DB11, ... DBX0.6 Data block Signal state 0 or signal transition 1 > 0 Special cases, errors, ...
Mode group stop axes plus spindles Signal(s) to mode group (PLC > NCK) Channel status and program run are not affected. All the axes and spindles of a mode group that are not triggered by a program or a program block (e.g. axes traversing because traverse keys on machine control panel are being operated, spindles are being controlled by the PLC) decelerate to rest with Mode group stop plus spindles.
DB11, ... DBX0.7 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Signal state 0 or signal transition 1 > 0 Related to .... Special cases, errors, ...
Mode group reset Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 A Reset is activated for all the channels of the mode group. All channels are then in channel status Reset. All the current programs go into program status aborted. All moving axes and spindles are decelerated to zero speed according to their acceleration ramp without contour violation.The initial setting are set (e.g. for G functions). The alarms for the mode group are cleared if they are not POWER ON alarms. Channel status and program run are not affected by this signal. IS Channel reset (DB21, ... DBX7.7) IS All channels in reset state (DB11, ... DBX6.7) An alarm which cancels IS Mode group ready ensures that all the channels in the mode group are no longer in the Reset state. In order to switch to another operating mode, a mode group reset (DB11, ... DBX0.7) must then be initiated.
DB11, ... DBX1.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... References
Machine function TEACH IN Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Machine function TEACH IN is activated in JOG mode for the mode group. Machine function TEACH IN is not activated. If JOG mode is not active. /BA/, Operators Guide
DB11, ... DBX1.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s)
Machine function REPOS Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Machine function REPOS is activated in JOG mode for the mode group. Machine function REPOS is not activated. If JOG mode is not active. Because of an error during parts program operation (e.g. tool breakage) the axis is traversed from the place of error in JOG mode. The axis can then be returned manually to the exact previous position with machine function REPOS so that the program can be continued in AUTOMATIC mode. /BA/, Operators Guide
References
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-171
Mode Group, Channel, Program Operation, Reset Response (K1) 5.1 Mode group-specific signals
10.00
DB11, ... DBX1.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... References
Machine function REF Signal(s) to mode group (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Machine function REF is activated in JOG mode for the mode group. Machine function REF is not activated. If JOG mode is not active. /FB/, R1, Reference Point Approach
DB11, ... DBX4.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Selected mode AUTOMATIC Signal(s) from mode group (MMC > PLC) Signal(s) updated: cyclically AUTOMATIC mode is selected by the MMC. AUTOMATIC mode is not selected by the MMC.
DB11, ... DBX4.1 Data block Edge evaluation: Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Selected mode MDA Signal(s) from mode group (MMC > PLC) Signal(s) updated: cyclically MDA mode is selected by the MMC. MDA mode is not selected by the MMC.
DB11, ... DBX4.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Selected mode JOG Signal(s) from mode group (MMC > PLC) Signal(s) updated: cyclically JOG mode is selected by the MMC. JOG mode is not selected by the MMC.
DB11, ... DBX5.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 References
Selected machine function TEACH IN Signal(s) from mode group (MMC > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Machine function TEACH IN is selected in the mode group by the MMC. Machine function TEACH IN is not selected by the MMC. /BA/, Operators Guide
1/K1/5-172
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.1 Mode group-specific signals
DB11, ... DBX5.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Selected machine REPOS function TEACH IN Signal(s) from mode group (MMC > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Machine function REPOS is selected in the mode group by the MMC. Machine function REPOS is not selected by the MMC. If an error occurs during parts program operation (e.g. tool breakage) the axis is traversed from the place of error in JOG mode in order to be able to replace the tool. The axis can then be returned manually to the exact previous position with machine function REPOS so that the program can be continued in AUTOMATIC mode. /BA/, Operators Guide
References
DB11, ... DBX5.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 References
Selected machine function REF Signal(s) from mode group (MMC > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Machine function REF is selected in the mode group by the MMC. Machine function REF is not selected by the MMC. /FB/, R1, Reference Point Approach
DB11, ... DBX6.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Active mode AUTOMATIC Signal(s) from mode group (NCK > PLC) Signal(s) updated: cyclically AUTOMATIC mode is active. AUTOMATIC mode is not active.
DB11, ... DBX6.1 Data block Edge evaluation: Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Active mode MDA Signal(s) from mode group (NCK > PLC) Signal(s) updated: cyclically MDA mode is active. MDA mode is not active.
DB11, ... DBX6.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Active mode JOG Signal(s) from mode group (NCK > PLC) Signal(s) updated: cyclically JOG mode is active. JOG mode is not active.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-173
Mode Group, Channel, Program Operation, Reset Response (K1) 5.1 Mode group-specific signals
10.00
DB11, ... DBX6.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Mode group ready Signal(s) from mode group (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 This signal is set after POWER ON when all voltages are present. The mode group is now ready and parts programs can be processed and axes traversed in the individual channels. The mode group is not ready. Possible causes: A serious axis or spindle alarm is active Hardware fault Mode group incorrectly configured (machine data) If the mode group ready signal changes to the 0 state the axis and spindle drives are decelerated with max. braking current to zero speed the signals from the PLC to the NCK are set to the inactive state (initial setting). An alarm that cancels the IS Mode group ready ensures that all channels of the mode group are no longer in the reset state. In order to switch to another operating mode, a mode group reset (DB11, ... DBX0.7) must then be initiated.
DB11, ... DBX6.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
All channels in Reset state Signal(s) from mode group (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 All the channels that belong to this mode group are in the Channel status reset state (DB21, ... DBX7.7). At least one of the channels in the mode group is not in Channel status reset (DB21, ... DBX7.7). IS Channel status Reset (DB21, ... DBX7.7)
DB11, ... DBX7.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 References
Active machine function TEACH IN Signal(s) from mode group (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Machine function TEACH IN is active in the mode group. Machine function TEACH IN is not active. /BA/, Operators Guide
DB11, ... DBX7.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Active machine function REPOS Signal(s) from mode group (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Machine function REPOS is active in the mode group. Machine function REPOS is not active. If an error occurs during parts program operation (e.g. tool breakage) the axis is traversed from the place of error in JOG mode in order to be able to replace the tool. The axis can then be returned manually to the exact previous position with machine function REPOS so that the program can be continued in AUTOMATIC mode. /BA/, Operators Guide
References
1/K1/5-174
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB11, ... DBX7.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 References
Active machine function REF Signal(s) from mode group (NCK > PLC) Signal(s) updated: cyclically Machine function REF is active in the mode group. Machine function REF is not active. /FB/, R1, Reference Point Approach
5.2
Channel-specific signals
DB21, ... DBX0.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Special cases, errors, ...
Activate single block Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The program is processed in single-block mode in AUTOMATIC and MDA modes. No effect A new program can first be tested in single-block mode in order to monitor the individual program steps more exactly. Intermediate blocks can be inserted if cutter radius path compensation is selected. Single-block mode can only be applied to a series of G33 blocks if dry run feedrate is selected. Calculation blocks are not processed in single step mode if single decoding block mode is active. IS Program status interrupted (DB21, ... DBX35.3) Section 2.4
DB21, ... DBX0.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Activate M01 Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 M01 programmed in the parts program leads to a programmed stop when processed in AUTOMATIC or MDA mode. M01 programmed in the parts program does not lead to a programmed stop. IS M01 selected (DB21, ... DBX24.5) IS M0/M01 active (DB21, ... DBX32.5)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-175
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
10.00
DB21, ... DBX1.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
PLC action ended Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 4.3 Axis disable is set internally for all axes (not spindles). Therefore the machine axes do not move when a parts program block or a parts program is being processed. The axis movements are simulated on the operator interface with changing axis position values. The axis position values for the display are generated from the calculated setpoints. The parts program is processed in the normal way. SW 6.1 and higher it is possible to manipulate the control response by setting bit 1 = 1 in machine data MD 11450: SEARCH_RUN_MODE such that alarm 10208 is generated after the last action block has been output. Tool management: Because of the axis disable, the assignment of a tool magazine is not changed during program testing. A PLC application must ensure that the integrity of the data in the tool management system and the magazine is not corrupted (see the example on the toolbox diskette). Parts program processing is not affected by the function program test IS Program testing active (DB 2122, DBX33.7)
DB21, ... DBX1.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Activate program test Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Axis disable is set internally for all axes (not spindles). Therefore the machine axes do not move when a parts program block or a parts program is being processed. The axis movements are simulated on the operator interface with changing axis position values. The axis position values for the display are generated from the calculated setpoints. The parts program is processed in the normal way. Tool management: Because of the axis disable, the assignment of a tool magazine is not changed during program testing. A PLC application must ensure that the integrity of the data in the tool management system and the magazine is not corrupted (see the example on the toolbox diskette). Parts program processing is not affected by the function program test IS Program test selected (DB21, ... DBX25.7) IS Program testing active (DB 2122, DBX33.7)
DB21, ... DBX2.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Skip block Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Blocks marked in the parts program with an oblique (/) are skipped. If there is a series of skip blocks, this signal is only active if it is pending before decoding of the first block of the series, ideally before NC start. The marked parts program blocks are not skipped. A series of blocks will only be processed if the signal is in the 0 state before the first block is decoded. IS Skip block selected (DB21, ... DBX26.0) IS Program status stopped (DB21, ... DBX35.2)
1/K1/5-176
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX6.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Read-in disable Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Data transfer of the next block into the interpolator is disabled. This signal is only active in modes AUTOMATIC and MDA. Data transfer of the next block into the interpolator is enabled. This signal is only active in modes AUTOMATIC and MDA. In a case where an auxiliary function has to have been executed before the next block can be processed (e.g. for a tool change), automatic block change must be inhibited with read-in disable.
N20 T
N21 GXM
N20 T T
N21 M
Read block into buffer memory Block processed Read-in disable signal Data transfer Contents of interpolator Output of auxiliary function
Data transfer to interpolator Read-in disable for tool change Scan location for readin enable Cancel read-in disable
Related to .... IS Program status running (DB21, ... DBX35.0)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-177
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
10.00
DB21, ... DBX6.4 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Special cases, errors, ...
Program level abort Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 On each signal transition 0 > 1 the current program level being processed (subroutine level, asynchronous subroutine level, save routine) is immediately aborted. Processing of the parts program continues one level higher after the exit point. No effect The main program level cannot be aborted with this IS, only with IS Reset.
DB21, ... DBX7.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
NC start disable Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 IS NC start and the START command from the parts program have no effect. IS NC start and the START command from the parts program have an effect. This signal is used to suppress renewed program processing because, for example, there is no lubricant. IS NC Start DB21, ... DBX7.1)
DB21, ... DBX7.1 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
NC Start Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 AUTOMATIC mode: The selected NC program is started or continued or the auxiliary functions placed in the memory during program interruption are output. If data is transferred from the PLC to the NC during program status program interrupted, these are calculated immediately on NC start. MDA mode: The entered block information or parts program blocks are released for execution. No effect IS NC Start disable (DB21, ... DBX7.0)
DB21, ... DBX7.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
NC Stop at block limit Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The current NC program is stopped after the current parts program block has been processed. Otherwise as for IS NC Stop DB21, ... DBX7.3. No effect IS NC Stop (DB21, ... DBX7.3) IS NC Stop axes plus spindle (DB21, ... DBX7.4) IS Program status stopped (DB21, ... DBX35.2) IS Channel status interrupted (DB21, ... DBX35.6)
1/K1/5-178
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX7.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
NC Stop Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The current NC program is stopped immediately, the current block is not completed. Only the axes are stopped. These are brought to a controlled stop without contour violation. Distances-to-go are not completed until a start signal is given. The program status switches to stopped, the channel status switches to interrupted. If incremental distances are being traversed in JOG, this movement is aborted. The remaining increments are completed following a renewed NC Start. No effect If the NC program has been stopped, auxiliary functions, for example, can be put into the memory. They are then executed on the next NC start. On NC start the program is continued at the point of interruption. If auxiliary functions were put into the memory when the program was interrupted, only these become active on the first NC start. On the second NC start the program is then continued.
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-179
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
10.00
DB21, ... DBX7.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Special cases, errors, ...
NC Stop axes plus spindles Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The current NC program is stopped immediately, the current block is not completed. Distances-to-go are not completed until a start signal is given. The axes and the spindles are stopped. They are brought to a controlled stop. The program status switches to stopped, the channel status switches to interrupted. No effect Channel status reset Program status aborted All axes and spindles that were not caused to move by a program or program block (e.g. axes are moved by traversing keys on machine control panel) are not decelerated to zero speed with NC stop axes plus spindles. If the NC program has been stopped, auxiliary functions, for example, can be put into the memory. They are then executed on the next NC start. On NC start the program is continued at the point of interruption. If auxiliary functions were put into the memory when the program was interrupted, only these become active on the first NC start. On the second NC start the program is then continued. The signal NC stop axes plus spindles must be pending for at least on PLC cycle. If data were transferred to the NC after NC stop axes plus spindles (e.g. tool offset), these are calculated immediately on NC start. Spindles are not stopped on MD 35040: SPIND_ACTIVE_AFTER_RESET=1.
Signal NC Stop axes Signal NC Start Program running Axis running Spindle running Block processed
Related to .... IS NC Stop at block limit (DB21, ... DBX7.2) IS NC Stop (DB21, ... DBX7.3) IS Program status stopped (DB21, ... DBX35.2) IS Channel status interrupted (DB21, ... DBX35.6)
1/K1/5-180
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX7.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Reset Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The channel is reset. The initial settings are set (e.g. G functions). The alarms for the channel are cleared if they are not POWER ON alarms. The Reset signal must be issued by the PLC (e.g. through gating with the Reset key on the MCP). The signal is only evaluated by the selected channel. The program status changes to aborted, the channel status changes to Channel status Reset. No effect IS Mode group Reset (DB11, ... DBX0.7) IS Channel status Reset (DB21, ... DBX35.7)
DB21, ... DBX24.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
M01 selected Signal(s) from channel (MMC > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Program control Activate M01 has been selected on the operator interface. This does not activate the function. Program control Activate M01 has not been selected via the operator interface. IS Activate M01 (DB11, ... DBX0.5) IS M00/M01 active (DB21, ... DBX33.5)
DB21, ... DBX25.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Program test selected Signal(s) from channel (MMC > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: yes Program control Program test has been selected via the operator interface. This does not activate the function. Program control Program test has not been selected via the operator interface. IS Activate program test (DB21, ... DBX1.7) IS Program test active (DB21, ... DBX33.7)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-181
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
10.00
DB21, ... DBX31.031.2 DB21, ... DBX31.031.2 DB21, ... DBX31.031.2 DB21, ... DBX31.031.2 DB21, ... DBX31.031.2 Data block Edge evaluation: no Signal state 1
RMNOTDEF RMB RMI RME RMN Signal(s) to channel (PLC > NCK) as well as (MMC > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.3 IS REPOSPATHMODE02 (DB21, ... DBX31.031.2) can be used to select one of the functions for the reapproach point RMB, RMI, RME or RMN based on the following codes: DB21, ... DBX31.031.2 = 1 RMB Reapproach at start of block DB21, ... DBX31.031.2 = 2 RMI Reapproach at interruption point. DB21, ... DBX31.031.2 = 3 RME Reapproach at end of block DB21, ... DBX31.031.2 = 4 RMN Reapproach at next point on path DB21, ... DBX31.031.2 = 0 RMNOTDEF The REPOSMode is not redefined. No settings are overwritten and the current program is valid. IS REPOSPATHMODE02 (DB21, ... DBX31.031.2) affects the path as a whole. The path axes cannot be changed individually. The behavior of the other axis types can be changed individually with IS REPOSDELAY (DB31, ... DBX10.0). IS REPOSDELAY (DB31, ... DBX10.0)
Related to ....
DB21, ... DBX31.4 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
Related to ....
REPOSMODEEDGE Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 6.3 The level signals of IS REPOSPASTHMODE02 (DB21, ... DBX31.031.2) and IS REPOSDELAY (DB31, ... DBX10.0) are adopted at the NC. The levels relate to the current block in the main run. The level signals of IS REPOSPASTHMODE02 (DB21, ... DBX31.031.2) and IS REPOSDELAY (DB31, ... DBX10.0) are aborted at the NC. To manipulate the SERUPRO approach, JOG can be temporarily shifted to the following areas while SERUPRO is in progress: Between Search target found and Start SERUPRO ASUB From SERUPOASUP stops automatically before REPOS to Target block deactivated. IS REPOSMODEEDGEACKN (DB21, ... DBX319.0)
DB21, ... DBX32.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Fig. Application example(s) References
Action block active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically The action block is being executed. No action block active.
The chronological sequence of interface signals is shown in Subsection 2.4.5. Corresponding applications examples are described in Section 6.1. /BA/, Operators Guide
1/K1/5-182
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX32.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
M00/M01 active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The parts program block has been processed, the auxiliary functions have been output and M00 is stored in the working memory M01 is stored in the working memory and IS Activate M01 is active The program status changes to stopped. With IS NC Start DB21, ... DBX7.1 On program abort as a result of Reset
Data transfer to working memory Block processed NC block with M00 M change signal (1 PLC cycle time) IS M00/M01 active IS Channel state active (even when
axes are moved in JOG mode)
Related to .... IS Activate M01 (DB21, ... DBX0.5) IS M01 selected (DB21, ... DBX24.5)
M00
DB21, ... DBX32.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Fig. Application example(s) References
Last action block active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically The last action block is being executed. The last action block is not being executed.
The chronological sequence of interface signals is shown in Subsection 2.4.5. Corresponding applications examples are described in Section 6.1. /BA/, Operators Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-183
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
10.00
DB21, ... DBX33.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Fig. Application example(s)
Block search active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The Block search function is active. It has been selected via the operator interface and started by means of IS NC Start. Search target found. The chronological sequence of interface signals is shown in Subsection 2.4.5. The block search function makes it possible to jump to a certain block within a parts program and to starts processing of the parts program at this block. Appropriate application examples of block search at end point and block search on contour are described in Section 6.1. /BA/, Operators Guide
References
DB21, ... DBX33.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
M02/M30 active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 NC block with M02 or M30 (or M17 if a subroutine has been started) has been fully executed; if traversing motions are also programmed in this block, the signal is not output until the target position is reached. The program has been aborted by a Reset, the program status changes to aborted. When the MDA mode or the machine function REF or PRESET is selected After Acknowledge EMERGENCY STOP (DB 10 DBX56.2) No program end or abort Status after power-up of control system Start of an NC program
M02
Data transfer to working memory Block processed NC block with M02 M change signal (1 PLC cycle time) IS M02/M30 active
1/K1/5-184
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX33.5 Data block Application example(s) Special cases, errors, ...
M02/M30 active Signal(s) from channel (NCK > PLC) The PLC can detect the end of program processing with this signal and react appropriately. Functions M02 and M30 have equal priority. IS M02/M30 active is applied statically at the end of a program. Not suitable for automatic follow-on functions such as workpiece counting, bar advance, etc. M02/M30 must be programmed in a separate block and the word M02/M30 or the decoded M signal used for these functions. The last block of a program must not contain any auxiliary functions that cause read-in stop or any S values that must be operative with functions other than M02/M30.
DB21, ... DBX33.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 References
Transformation active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The NC command TRAORI (activate transformation) is programmed in the NC parts program. This block has been processed by the NC and the transformation is now activated. No transformation active. /PA/, Programming Guide Fundamentals
DB21, ... DBX33.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Program test active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Program control Program test is active. Axis disable is set internally for all axes (not spindles). Therefore the machine axes do not move when a parts program block or a parts program is being processed. The axis movements are simulated on the operator interface with changing axis position values. The axis position values for the display are generated from the calculated setpoints. The parts program is processed in the normal way. Program control Program test is not active. IS Activate program test (DB21, ... DBX1.7) IS Program test selected (DB21, ... DBX25.7)
DB21, ... DBX35.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Program status running Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The parts program has been started with IS NC start and is running. The running program has been halted with IS Read-in disable (DB21, ... DBX6.1). Program stopped with M00/M01 or NC stop or mode group change. The block is processed if single block mode is set. Program end reached (M02/M30) Program abort with Reset No block currently in memory (e.g. with MDA) Current block cannot be processed The parts program has been started with IS NC start and is running.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-185
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
10.00
Related to ....
Program status running Signal(s) from channel (NCK > PLC) IS Program status running does not change to 0 if workpiece machining is stopped by the following events: Output of feed disable or spindle disable IS Input disable Feedrate override to 0% Spindle and axis monitoring respond Position setpoints set in NC program for axes in follow-up mode, for axes without servo enable or for parking axes. IS Readin disable (DB21, ... DBX6.1)
DB21, ... DBX35.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 References
Program status wait Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The current program has encountered the program command WAIT_M or WAIT_E in an NC block. The Wait condition specified in the WAIT command for the channel or channels has not yet been fulfilled. Program status wait is not active. /PA/, Programming Guide Fundamentals
DB21, ... DBX35.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Program status stopped Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The NC parts program has been stopped by NC stop, NC stop axes plus spindles, NC stop at block limit, programmed M00 or M01 or single block mode. Program status stopped is not active IS NC Stop (DB21, ... DBX7.3) IS NC Stop axes plus spindle (DB21, ... DBX7.4) IS NC Stop at block limit (DB21, ... DBX7.2)
DB21, ... DBX35.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Special cases, errors, ...
Program status interrupted Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 When changing from AUTOMATIC or MDA mode (when program status stopped is active) after JOG the program status switches to interrupted. The program can be continued at the point of interruption in AUTOMATIC or MDA mode when NC start is operated. Program status interrupted is not active. IS Program status interrupted signifies that the parts program can be continued after an NC start.
1/K1/5-186
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX35.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Program status aborted Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The program has been selected but not started or the current program was aborted with Reset. Program status interrupted is not active. IS Reset (DB21, ... DBX7.7)
DB21, ... DBX35.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Channel status active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 In this channel a parts program is currently being processed in AUTOMATIC or MDA or at least one axis is being traversed in JOG mode. Channel status interrupted or Channel status Reset is active.
DB21, ... DBX35.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Channel status interrupted Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The NC program in AUTOMATIC or MDA or a traversing movement in JOG has been interrupted by NC stop, NC stop axes plus spindles, NC stop at block limit, programmed M00 or M01 or single-block mode. After an NC start the parts program or the interrupted traversing movement can be continued. Channel status active or Channel status Reset is active.
DB21, ... DBX35.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Channel status reset Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The signal changes to 1 as soon as the channel goes into Reset, i.e. no processing taking place. The signal changes to 0 if anything if processing is taking place in the channel, e.g.: processing of a parts program block search TEACH IN active overstore active etc.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-187
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
10.00
DB21, ... DBX36.4 Data block Edge evaluation: Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Interrupt processing active Signal(s) from channel (NCK > PLC) Signal(s) updated: Signal(s) valid from SW: 4.1 One or several channels in the mode group are not in the desired operating state as the result of an active interrupt routine. The signal is not set if an interrupt routine is running in a program operation mode. All channels are operating in the desired mode. MD BAG_MASK
DB21, ... DBB208267 Data block Edge evaluation: no Signal state <>0
Active G function of groups 1 to 60 Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 A G function or mnemonic identifier of the G group is active. The active G function can be determined from the value (starting with 1). 1 = 1st G function of the G group 2 = 2nd G function of the G group 3 = 3rd G function of the G group : Please refer to the Programming Guide for a list of possible G groups and their functions. No G function or G group mnemonic identifier is active. The active G group is stored in binary code in the relevant byte. The following place value applies: Bit place value 7 6 5 4 128 64 32 16 3 8 2 4 1 2 0 1
References
Example: G90 0 1 0 1 1 0 1 0 In contrast to auxiliary functions, G functions are not have to be acknowledged when output to the PLC, i.e. processing of the parts program is continued immediately after the G function has been output. /PA/, Programming Guide Fundamentals
1/K1/5-188
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX318.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Fig.: Typical sequence of an ASUB with REPOSA
ASUB is stopped Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 5.3 The signal is set to 1 if the control stops automatically prior to the end of the ASUB. The IS ASUB is stopped is only supplied in the case Interrupt in a program mode and channel status stopped. Start and Reset will set the IS ASUB is stopped to 0.
ASUB with REPOSA The event that brings the control to the Stopped status occurs. Example: Stop key
Control system stopped, ASUB is then started by the FC. ASUB with REPOSA is triggered in the status AUTOMATIC mode stopped
If the interrupt program is completed with REPOSA, the following sequence is typical: Pressing the Stop key, StopAll key or an alarm will stop the parts program. The control system will change to the program status Stopped. The PLC triggers an ASUB via the block FC9. Before reapproaching the contour, the control system stops and changes to the program status Stopped. The IS ASUB is stopped is set. The user presses Start. The IS Asup is stopped is reset, and the reapproach movement is started. With the end of the reapproach movement, the FC9 signal ASUB Done is set, and the path of the interrupted parts program is continued.
DB21, ... DBX318.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Block search via Program Test is active Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.1 The PI service for _N_FINDBL, parameter 5, will enable SERUPRO. Time for the active signal status: In the internal mode Program test, the NC runs until the target block of the search block is changed in the main run and the program status changes to stopped. The NCK will stop at the beginning of the target block and will internally deselect Program test again. NCK will now display the Stop condition Search target found. The SERUPRO function may only be enabled in the AUTOMATIC mode in the program status Aborted.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-189
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX319.0 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
REPOSMODEEDGEACKN Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.3 The interface signal detected by the NCK, IS REPOSMODEEDGE (DB21, ... DBX31.4), is acknowledged with IS REPOSMODEEDGEACKN (DB21, ... DBX319.0) if level signals from IS REPOSMODE02 (DB21, ... DBX31.031.2) and IS REPOSDELAY (DB31, ... DBX10.0) were transferred to the NC. The levels relate to the current block in the main run. SERUPROASUP stops automatically before REPOS and IS REPOSMODEEDGE (DB21, ... DBX31.4) is not active on approach SERUPRO. IS REPOSMODEEDGE (DB21, ... DBX31.4)
Signal state 0 Fig.: Sample sequence for REPOS acknowledgements In the parts program
Repos Path Mode Quitt02 Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.4 IS Repos Path Mode Ack02 (DB21, ... DBX31.0319.3) can be used to select one of the functions for the reapproach point RMB, RMI, RME or RMN based on the following codes: DB21, ... DBX319.1319.3 = 1 RMB Reapproach at start of block DB21, ... DBX319.1319.3 = 2 RMI Reapproach at interruption point. DB21, ... DBX319.1319.3 = 3 RME Reapproach at end of block DB21, ... DBX319.1319.3 = 4 RMN Reapproach at next point on path DB21, ... DBX319.1319.3 = 0 RMNOTDEF The non-defined ReposMode is acknowledged to the PLC.
Command is started with ASUP Reapproach from REPOS is terminated. Remaining block starts Output ASUB N30
N20 N10
Preselect RMN Stop of the parts program Start of the parts program
Signal timing for acknowledgement by the NCK REPOSPATHMODE 4 REPOSMODEEDGE
REPOSMODEEDGEACKN
Related to ....
References
T 3 4 5 IS REPOSPATHMODE02 (DB21, ... DBX31.031.2) IS REPOSMODEEGGE (DB21, ... DBX31.4) ISREPOSMODEEGGEACKN (DB21, ... DBX319.0) IS Repos Delay Ack (DB31, ... DBX70.2 Section for block search, Reapproach after SERUPRO target found
1/K1/5-190
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.2 Channel-specific signals
DB21, ... DBX319.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Repos DEFERAL Chan Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.4 All axes that are controlled by this channel are either not a REPOS shift or their REPOS shifts are invalid. Miscellaneous IS Repos offset (DB31, ... DBX70.0)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-191
Mode Group, Channel, Program Operation, Reset Response (K1) 5.3 Axis-specific signals
07.02 10.00
5.3
Axis-specific signals
DB 31, ... DBX10.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Special cases, errors, ...
REPOSDELAY Signal(s) to channel (PLC > NCK) as well as (MMC > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.3 The REPOS offset for this axis is not applied until it is next programmed. The REPOS offset for this axis is not active. Please note the following special cases: If axes are always programmed absolutely, then IS REPOSDELAY has the same significance for operations with or without offset. Machine axes which form a path are not affected by IS REPOSDELAY. IS REPOSPATHMODE02 (DB21, ... DBX31.031.2) IS Repos Delay Ack (DB31, ... DBX70.2) IS REPOSDELAY (DB31, ... DBX72.0) Signal (MMC > PLC)
Related to ....
DB 31, ... DBX70.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
REPOS offset Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.3 A REPOS offset must be applied for the appropriate axis. No REPOS offset need be applied for the appropriate axis. IS REPOS offset valid (DB31, ... DBX70.1)
DB 31, ... DBX70.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s)
REPOS offset valid Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.3 The range of validity of the REPOS offset is indicated by value 1. The REPOS offset calculation is valid. A value of zero indicates that the REPOS offset calculation is invalid. Update REPOS offset in range of validity: The axis can be moved in JOG mode between the SERUPRO end and Start. The operator moves the REPOS offset to a value of zero. IS Repos offset (DB31, ... DBX70.0)
Related to ....
DB 31, ... DBX70.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Application example(s) Related to ....
REPOS Delay Ack Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.4 The REPOS shift of the axis to be programmed next is acknowledged. This signal behaves like IS Repos Path Mode Quitt02 (DB21, ... DBX319.1319.3). The value zero acknowledges that the REPOS shift is not active for this axis. This signal is cancelled on activation of the remaining block. See sequence of REPOS acknowledgments in the parts program and signal sequence of IS Repos Path Mode Ack02 (DB21, ... DBX319.1319.3). IS REPOSDELAY (DB31, ... DBX10.0)
1/K1/5-192
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 5.3 Axis-specific signals
DB 31, ... DBX72.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Special cases, errors, ...
REPOSDELAY Signal(s) from channel (MMC > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.4 The REPOS offset for this axis is not applied until it is next programmed. The REPOS offset for this axis is not active. Please note the following special cases: If axes are always programmed absolutely, then IS REPOSDELAY has the same significance for operations with or without offset. Machine axes which form a path are not affected by IS REPOSDELAY. IS REPOSPATHMODE02 (DB21, ... DBX31.031.2) IS REPOSDELAY (DB31, ... DBX10.0) Signal (PLC > NCK) IS Repos Delay Ack (DB31, ... DBX70.2)
Related to ....
DB 31, ... DBX76.4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0
Path axis Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 6.4 The current state of a block to be executed for a path axis is displayed with value 1. Once the SERUPRO operation is ended with search target found, IS Path axis with value zero refers to the target block.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/5-193
Mode Group, Channel, Program Operation, Reset Response (K1) 5.3 Axis-specific signals
10.00
Notes
1/K1/5-194
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 7.1 General machine data
Example
6
A number of different, context-specific examples of block searches can be found in the the relevant sections of this document.
Reference
For machine data not explained in this Description of Functions, the corresponding Description of Functions is indicated in the Reference column (e.g. /K1/ means that this machine data is described in Part K1 of the Description of Functions)
7.1
7.1.1
Number MMC machine data ($MM_ ... ) ADV 9421 9422 EMB 9421 9422
Identifier
Name
Doc. Refer to
EMB EMBEDDED (SW 6.1 and higher) Display geo axes of channel first PRESET / basic offset in JOG. 0: No SK, 1: PRESET, 2: Preset actual value memory 3: Set actual value in currently active frame This data defines the number of program levels which can be skipped in the parts program with / . IM2/IM4 IM2/IM4
9423
9423
MA_MAX_SKP_LEVEL
IM2/IM4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/7-195
Mode Group, Channel, Program Operation, Reset Response (K1) 7.1 General machine data
7.1.2
Number
General ($MN_ ... ) 10010 10280 10617 10700 10702 10707 10708 10710 10713 10715 10716 10717 10718 10719 11450 ASSIGN_CHAN_TO_MODE_GROUP[n] PROG_FUNCTION_MASK FRAME_SAVE_MASK PREPROCESSING_LEVEL IGNORE_SINGLEBLOCK_MASK PROG_TEST_MASK SERUPRO_MASK PROG_SD_RESET_SAVE_TAB[n] M_NO_FCT_STOPRE M_NO_FCT_CYCLE M_NO_FCT_CYCLE_NAME T_NO_FCT_CYCLE_NAME M_NO_FCT_CYCLE_P AR T_NO_FCT_CYCLE_MODE SEARCH_RUN_MODE Channel valid in mode group [channel no.]: 0, 1 Compare commands > and < compatible to SW 6.3 Behavior of frames on subroutine return jump with SAVE (SW 6.1 and higher) Program preprocessing level Prevent single block stop Program test modes (SW 6.1 and higher) Block search modes (SW 6.1 and higher) Setting data to be updated [Index]: 0...9 M function with preprocessing stop (SW 6.3 and higher) M function to be replaced by SR SR name for M function replacement Name of tool change cycle for T function (SW 5.2 and higher) M function replacement with parameter transfer (SW 6.3 and higher) Parameterization of T function replacement (SW 6.4 and higher) Control system response and output of the spindle auxiliary functions after block search (SW 5.3 and higher) Repositioning properties (SW 6.3 and higher) Mode group response to ASUB Ignore stop conditions for ASUB Priorities for ASUP_START_MASK effective Activation of a user ASUB for RET/REPOS Protection level of user-specific ASUB for RET and/or REPOS Global HMI info (without physical unit) Global HMI status info (without physical unit) FIFO buffer size for one program level Number of external program levels (DRAM) H2 FBFA FBFA FBFA FBFA FBFA V2
11470 11600 11602 11604 11610 11612 17200 17201 18360 18362
REPOS_MODE_MASK BAG_MASK ASUP_START_MASK ASUP_START_PRIO_LEVEL ASUP_EDITABLE ASUP_EDIT_PROTECTION_LEVEL GMMC_INFO_NO_UNIT GMMC_INFO_NO_UNIT_ST ATUS MM_EXT_PROG_BUFFER_SIZE MM_NUM_EXT_PROG
1/K1/7-196
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
03.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 7.2 Channel-specific machine data
7.2
7.2.1
Number
Channel-specific ($MC_ ... ) 20000 20050 20060 20070 20080 20090 20100 20108 20109 20114 20116 20117 20160 20170 20210 20220 20230 20240 20250 20270 20400 20430 20440 20500 20600 20610 CHAN_NAME AXCONF_GEOAX_ASSIGN_TAB[n] AXCONF_GEOAX_NAME_T AB[n] AXCONF_MACHAX_USED[n] AXCONF_CHANAX_NAME_T AB[n] SPIND_DEF_MASTER_SPIND DIAMETER_AX_DEF PROG_EVENT_MASK PROG_EVENT_MASK_PROPERTIES MODESWITCH_MASK IGNORE_INHIBIT_ASUP IGNORE_SINGLEBLOCK_ASUP CUBIC_SPLINE_BLOCKS COMPRESS_BLOCK_PATH_LIMIT CUTCOM_CORNER_LIMIT CUTCOM_MAX_DISC CUTCOM_CURVE_INSERT_LIMIT CUTCOM_MAXNUM_CHECK_BLOCKS CUTCOM_MAXNUM_DUMMY_BLOCKS CUTTING_EDGE_DEFAULT LOOKAH_USE_VELO_NEXT_BLOCK LOOKAH_NUM_OVR_POINTS LOOKAH_OVR_POINTS[n] CONST_VELO_MIN_TIME MAX_PATH_JERK ADD_MOVE_ACCEL_RESERVE Channel name Assignment between geometry axis and channel axis [GEOaxis no.]: 0...2 Geometry axis name in channel [GEOaxis no.]: 0...2 Machine axis number valid in channel [channel axis no.]: 0...7 Channel axis name in channel [channel axis no.]: 0...7 Initial setting of master spindle in channel Geometry axis with transverse axis function Event-driven program calls (SW 6.1) Properties of ProgEvents (SW 6.3 and higher) Setting for REPOS Process user ASUBs completely in spite of read-in disable Process user ASUBs completely in spite of single-block processing Number of blocks for C spline Maximum traversing length of NC block for compression Max. angle for intersection calculation with tool radius compensation Maximum value with DISC Maximum angle for intersection calculation with tool radius compensation Blocks for predictive contour calculation with tool radius compensation Max. no. of dummy blocks with no traversing movements Basic setting of tool cutting edge without programming Look Ahead to programmed following block velocity No. of override switch points for Look Ahead Compensation switch caracteristics for Look Ahead [characteristic no.]: 0...1 Minimum time with constant velocity Path-related maximum jerk Acceleration reserve for overlaid movements W1 W1 W1 W1 W1 W1 B1 B1 B1 B2 B2 K2 K2 K2 K2 S1 P1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/7-197
Mode Group, Channel, Program Operation, Reset Response (K1) 7.2 Channel-specific machine data
Number Channel-specific ($MC_ ... ) 20700 20750 20800 21000 21010 21100 21110 21200 21210 21202 21250
Identifier
Name
Reference
REFP_NC_START_LOCK ALLOW_GO_IN_G96 SPF_END_TO_VDI CIRCLE_ERROR_CONST CIRCLE_ERROR_FACTOR ORIENTATION_IS_EULER X_AXIS_IN_OLD_X_Z_PLANE LIFTFAST_DIST SETINT_ASSIGN_FASTIN LIFTFAST_WITH_MIRROR START_INDEX_R_PARAM
NC start disable without reference point G0 logic in G96 Subprogram end to PLC Circle end point monitoring constant Circle end point monitoring factor Angle definition for orientation programming Coordinate system for automatic Frame definition Traversing path for fast retraction from the contour NCK input bytes for interrupts Lift fast with mirror Number of first channel-specific R parameter
R1 V1 H2
F2 K2
S7
7.2.2
Number
Block search
Identifier Name Reference
Channel-specific ($MC_ ... ) 20128 22600 22601 22621 COLLECT_TOOL_CHANGE SERUPRO_SPEED_MODE SERUPRO_SPEED_FACTOR ENABLE_START_MODE_MASK_PRT Collect tool changes during block search Velocity at block search type 5 (SW 6.1 and higher) Velocity at block search type 5 (SW 6.1 and higher) Enables MD 22620: START_MODE_MASK_ PRT for SERUPRO search run (SW 6.3 and higher) Permit part program start via PLC (SW 6.4 and higher)
22622
DISABLE_PLC_START
7.2.3
Reset response
Number
Identifier
Name
Reference
Channelspecific ($MC_ ... ) 20110 20112 20118 RESET_MODE_MASK START_MODE_MASK GEOAX_CHANGE_RESET Definition of control system initial setting on RESET Determination of the basic control setting at NC start after boot and at RESET Allow automatic geometry axis change
1/K1/7-198
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 7.2 Channel-specific machine data
Identifier TOOL_RESET_VALUE TOOL_PRESEL_RESET_V ALUE CUTTING_EDGE_RESET_VALUE TRAFO_RESET_VALUE GCODE_RESET_VALUES[n] GCODE_RESET_MODE MAXNUM_GCODES_EXT START_MODE_MASK_PRT
Name Tool whose tool length compensation is selected during power-up (Reset/parts program end) Preselected tool whose length compensation is selected in ramp-up (Reset/TP End) Determination of the tool cutting edge in ramp-up (Reset/TP End) Active transformation on RESET: Initial setting of G groups [G group no.]: 0...59 G code basic setting at RESET Reset response of the external G groups (SW 6.3 and higher) Initial setting on special NC Start after booting and on RESET (SW 6.3 later)
Reference
FBFA
7.2.4
Number Channel-specific ($MC_ ... ) 22000 22010 22020 22030 22200 22210 22220 22230 22240 22250 22260 22300 22400 22410 22500 22510 22550 22560
Identifier
Name
Reference
AUXFU_ASSIGN_GROUP[n] AUXFU_ASSIGN_TYPE[n] AUXFU_ASSIGN_EXTENSION[n] AUXFU_ASSIGN_VALUE[n] AUXFU_M_SYNC_TYPE AUXFU_S_SYNC_TYPE AUXFU_T_SYNC_TYPE AUXFU_H_SYNC_TYPE AUXFU_F_SYNC_TYPE AUXFU_D_SYNC_TYPE AUXFU_E_SYNC_TYPE (available soon) AUXFU_AT_BLOCK_SEARCH_END S_VALUES_ACTIVE_AFTER_RESET F_VALUES_ACTIVE_AFTER_RESET GCODE_OUTPUT_TO_PLC GCODE_GROUPS_TO_PLC TOOL_CHANGE_MODE TOOL_CHANGE_M_CODE
Auxiliary function group [aux. func. no. in channel]: 0...49 Auxiliary function type [aux. func. no. in channel]: 0...49 Auxiliary function extension [aux. func. no. in channel]: 0...49 Auxiliary function value [aux. func. no. in channel]: 0...49 Output timing for M functions Output timing of S functions Output timing of T functions Output timing for H functions Output timing of F functions Output timing of D functions Output timing of E functions. Output of auxiliary functions after block search S function active after RESET F function active after RESET G functions to PLC G codes that are output to the NCK/PLC interface on block change/RESET New tool offset for M function M function for tool change
H2 H2 H2 H2 H2 H2 H2 H2 H2 H2 H2 S1 V1
W1 W1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/7-199
Mode Group, Channel, Program Operation, Reset Response (K1) 7.2 Channel-specific machine data
10.00
7.2.5
Number Channel-specific ($MC_ ... ) 24100 24110 24120 24200 24210 24220 24300 24310 24320 24400 24410 24420 24430 24432 24434 24440 24442 24444 24450 24452 24454 24460 24462 24464 24500 24510 TRAFO_TYPE_1
Identifier
Name
Reference
Definition of transformation 1 in channel Axis assignment for transformation [axis index]: 0...7 Assignment between GEO axis and channel axis for transformation 1 [GEO axis no.]: 0...2 Definition of transformation 2 in channel Axis assignment for transformation 2 [axis index]: 0...7 Assignment between GEO axis and channel axis for transformation 2 [GEO axis no.]: 0...2 Definition of transformation 3 in channel Axis assignment for transformation 3 [axis index]: 0...7 Assignment between GEO axis and channel axis for transformation 3 [GEO axis no.]: 0...2 Definition of transformation 4 in channel Axis assignment for transformation 4 [axis index]: 0...7 Assignment between GEO axis and channel axis for transformation 4 [GEO axis no.]: 0...2 Definition of transformation 5 in channel Axis assignment for transformation [axis index]: 0...7 Assignment between GEO axis and channel axis for transformation 5 [GEO axis no.]: 0...2 Definition of transformation 6 in channel Axis assignment for transformation 6 [axis index]: 0...7 Assignment between GEO axis and channel axis for transformation 6 [GEO axis no.]: 0...2 Definition of transformation 7 in channel Axis assignment for transformation 7 [axis index]: 0...7 Assignment between GEO axis and channel axis for transformation 7 [GEO axis no.]: 0...2 Definition of transformation 8 in channel Axis assignment for transformation 8 [axis index]: 0...7 Assignment between GEO axis and channel axis for transformation 8 [GEO axis no.]: 0...2 Offset vector of 5axis transformation 1 [axis no.]: 0...2 Position offset of rotary axes 1/2 for 5-axis transformation 1 [axis no.]: 0...1
TRAFO_AXES_IN_1[n] TRAFO_GEOAX_ASSIGN_TAB_1[n] TRAFO_TYPE_2 TRAFO_AXES_IN_2[n] TRAFO_GEOAX_ASSIGN_TAB_2[n] TRAFO_TYPE_3 TRAFO_AXES_IN_3[n] TRAFO_GEOAX_ASSIGN_TAB_3[n] TRAFO_TYPE_4 TRAFO_AXES_IN_4[n] TRAFO_GEOAX_ASSIGN_TAB_4[n] TRAFO_TYPE_5 TRAFO_AXES_IN_5[n] TRAFO_GEOAX_ASSIGN_TAB_5[n] TRAFO_TYPE_6 TRAFO_AXES_IN_6[n] TRAFO_GEOAX_ASSIGN_TAB_6[n] TRAFO_TYPE_7 TRAFO_AXES_IN_7[n] TRAFO_GEOAX_ASSIGN_TAB_7[n] TRAFO_TYPE_8 TRAFO_AXES_IN_8[n] TRAFO_GEOAX_ASSIGN_TAB_8[n] TRAFO5_PART_OFFSET_1[n] TRAFO5_ROT_AX_OFFSET_1[n]
1/K1/7-200
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 7.2 Channel-specific machine data
Identifier
Name
Reference
Sign of rotary axis 1/2 for 5axis transformation 1 [axis no.]: 0...1 Definition of pole limit for 5axis transformation 1 Pole end angle tolerance for interpolation for 5-axis transformation 1 Vector of base tool with activation of 5-axis transformation 1 [axis no.]: 0...2 Vector of kinematic offset for 5-axis transformation 1 [axis no.]: 0...2 Offset vector of 5-axis transformation 2 [axis no.]: 0...2 Position offset of rotary axes 1/2 for 5-axis transformation 2 [axis no.]: 0...1 Sign of rotary axis 1/2 for 5-axis transformation 2 [axis no.]: 0...1 Definition of pole limit for 5-axis transformation 2 Pole end angle tolerance for interpolation for 5-axis interpolation 2 Vector of base tool with activation of 5-axis transformation 2 [axis no.]: 0...2 Vector of kinematic offset for 5-axis transformation 2 [axis no.]: 0...2
F2 F2 F2 F2
24560
TRAFO5_JOINT_OFFSET_1[n]
F2
24600 24610
TRAFO5_PART_OFFSET_2[n] TRAFO5_ROT_AX_OFFSET_2[n]
F2 F2
24620
TRAFO5_ROT_SIGN_IS_PLUS_2[n]
F2
F2 F2 F2
24660
TRAFO5_JOINT_OFFSET_2[n]
F2
7.2.6
Number Channel-specific ($MC_ ... ) 25000 28000 28010 28020 28030 28040
Identifier
Name
Reference
Percentage of IPO buffer for log file enable Memory size for REORG (DRAM) Number of blocks for local user variables for REORG (DRAM) Number of local user variables (DRAM) Number of local user variables per program (DRAM) Memory size for local user variables (DRAM)
S7 S7 S7 S7 S7
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/7-201
Mode Group, Channel, Program Operation, Reset Response (K1) 7.3 Axis/spindle-specific machine data
Number Channel-specific ($MC_ ... ) 28050 28060 28070 28080 28090 28100 28400 28402 28500 28510
Identifier
Name
Reference
MM_NUM_R_PARAM MM_IPO_BUFFER_SIZE MM_NUM_BLOCKS_IN_PREP (available soon) MM_NUM_USER_FRAMES MM_NUM_CC_BLOCK_ELEMENTS MM_NUM_CC_BLOCK_USER_MEM MM_ABSBLOCK MM_ABSBLOCK_BUFFER[2] MM_PREP_TASK_STACK_SIZE MM_IPO_TASK_STACK_SIZE
Number of channel-specific R parameters (SRAM) Number of NC blocks in IPO buffer (DRAM) Number of blocks for block preparation (DRAM) Number of settable Frames (SRAM) Number of block elements for compile cycles (DRAM) Size of block memory for compile cycles (DRAM) Dimension basic block display Dimension size of upload buffer Stack size of preparation task (DRAM) Stack size of IPO task (DRAM)
S7 S7 S7 S7 S7
S7 S7
7.2.7
Identifier
Name
Reference
Activate the runtime measurement Activate the workpiece counter Workpiece counting via M command
7.3
Number
Axis/spindle-specific ($MA_ ... ) 30550 30600 33100 AXCONF_ASSIGN_MASTER_CHAN FIX_POINT_POS COMPRESS_POS_TOL Reset position of channel for axis change Fixed value positions of axes with G75 Maximum deviation with compensation K5
1/K1/7-202
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode Group, Channel, Program Operation, Reset Response (K1) 7.4 Channel-specific setting data
7.4
Number
Channel-specific ($SC_ ... ) 42000 42010 42100 42200 42444 42700 42750 42990 THREAD_START_ANGLE THREAD_RAMP_DISP DRY_RUN_FEED SINGLEBLOCK2_STOPRE TARGET_BLOCK_INCR_PROG EXT_PROG_PATH ABSBLOCK_ENABLE MAX_BLOCKS_IN_IPOBUFFER Start angle for thread Starting and deceleration distance of feed axis in thread cutting Dry run feed Activate debug mode for SBL2 (SW 6.3 and higher) Set up mode after block search with calculation (SW 4.3 and higher) Name of an external program path for subroutine call EXTCALL Enable basic block display (SW 6.4 and higher) Control of max. number of blocks in interpolation buffer V1 V1 V1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/7-203
Mode Group, Channel, Program Operation, Reset Response (K1) 7.5 Interface signals
10.00
7.5
Interface signals
In the tables below a crossreference always indicates where the interface signal or group of interface signals is described (e.g. /R1/ for Description of Functions R1). Signals which are described in detail in Chapter 5 and intuitive signals do not have a reference. You will find a complete list of all interface signals in References: /LIS/, Lists
7.5.1
DB number
Byte.Bit
Name
Reference
7.5.2
The mode group DB signals from PLC NCK are described in Subsection 3.5.1 of this Description of Functions. The mode group DB signals from NCK PLC are described in Subsection 3.5.2 of this Description of Functions.
Byte.Bit
Name
Reference
AUTOMATIC mode MDA mode JOG mode Mode group switchover disable Mode group stop Mode group stop axes plus spindles Mode group RESET TEACH IN machine function Machine function REPOS Machine function REF
11
1/K1/7-204
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 7.5 Interface signals
Byte.Bit
Name
Reference
Selected mode AUTOMATIC Selected mode MDA Selected mode JOG TEACH IN machine function selected Selected machine REPOS function TEACH IN Selected machine function REF Active mode AUTOMATIC Active mode MDA Active mode JOG Mode group ready All channels in Reset state TEACH IN machine function active Active machine function REPOS Active machine function REF
11
11
11
7.5.3
DB number To channel 21
Byte.Bit
Name
Reference
Activate DRF Activate single block Activate M01 Activate dry run feed Activate referencing PLC action ended Activate program test Skip blocks /0 to /7 NC Start disable NC Start NC Stop at block limit NC Stop NC Stop axes plus spindles Reset REPOSPATHMODE02 (SW 6.3 and higher) REPOSMODEEDGE (SW 6.3 and higher)
H1
V1 R1
21
21 21
21 21
* These signals to the mode group are also available from HMI/MMC to NCK.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/7-205
Mode Group, Channel, Program Operation, Reset Response (K1) 7.5 Interface signals
Byte.Bit
Name
Ref.
DRF selected Single block selected M01 selected Dry run feedrate selected Feed override for rapid traverse selected Program test selected Skip block selected Skip block selected Skip block selected Block skip active /8 Block skip active /9 Action block active Approach block active M00/M01 active Last action block active Referencing active Block search active M02/M30 active Transformation active Program test active Program status: Running Program status: Wait Program status: Stopped Program status: Interrupted Program status: Aborted Channel status: disable active Channel status: Interrupted Channel status: Reset Number of active G function of G function group 1 (binary) Number of active G function of G function group 2 (binary) Number of active G function of G function group 3 (binary) Number of active G function of G function group ... (binary) Number of active G function of G function group n1 (binary) Number of active G function of G function group n (binary) ASUB is stopped (SW 5.3 and higher) Block search via program test is active (SW 6.1 and higher) REPOSMODEEDGEACKN (SW 6.3 and higher) Repos Path Mode Quitt02 (SW 6.4 and higher) Repos DEFERAL Chan (SW 6.4 and higher)
H1
V1 V1
21
DBX25.3 DBX25.7
21 21 21 21 21 21
21
R1
21
21
21 21 21 21 21 21 21 21 21 21 21
DBB 208 DBB 209 DBB 210 DBB ... DBB266 DBB 208 DBX318.0 DBX318.1 DBX319.0 DBX319.1 DBX319.3 DBX319.5
1/K1/7-206
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
07.02 10.00
Mode Group, Channel, Program Operation, Reset Response (K1) 7.6 Alarms
7.5.4
Byte.Bit
Name
Reference
DBX10.0
REPOS offset (SW 6.3 and higher) REPOS offset valid (SW 6.3 and higher) REPOS Dalay Quitt (SW 6.4 and higher) REPOSDALAY (SW 6.4 and higher) Path axis (SW 6.4 and higher)
7.6
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K1/7-207
Mode Group, Channel, Program Operation, Reset Response (K1) 7.6 Alarms
10.00
Notes
1/K1/7-208
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (Part 1) Axes, Coordinate Systems, Frames (K2)
1 Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 1.2 1.3 2 Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coordinate systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/K2/1-5 1/K2/1-5 1/K2/1-7 1/K2/1-9 1/K2/2-13 1/K2/2-13 1/K2/2-14 1/K2/2-15 1/K2/2-15 1/K2/2-15 1/K2/2-19 1/K2/2-19 1/K2/2-20 1/K2/2-21 1/K2/2-22 1/K2/2-23 1/K2/2-26 1/K2/2-29 1/K2/2-29 1/K2/2-30 1/K2/2-32 1/K2/2-34 1/K2/2-35 1/K2/2-36 1/K2/2-38 1/K2/2-40 1/K2/2-41 1/K2/2-42 1/K2/2-43 1/K2/2-43 1/K2/2-44 1/K2/2-46 1/K2/2-54 1/K2/2-54 1/K2/2-57 1/K2/2-58 1/K2/2-59
Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.1.10 2.1.11 2.2 2.2.1 2.2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Geometry axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Replaceable geometry axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Special axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Path axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Positioning axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Main axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Synchronous axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Link axes (SW 5 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Zeros and reference points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reference points in working space . . . . . . . . . . . . . . . . . . . . . . . . . . . Position of coordinate systems and reference points . . . . . . . . . . . . Coordinate systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine coordinate system (MCS) . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic coordinate system (BCS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Additive offsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic zero system (BZS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Settable zero system (SZS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configurable SZS (SW 6.4 and higher) . . . . . . . . . . . . . . . . . . . . . . . Workpiece coordinate system (WCS) . . . . . . . . . . . . . . . . . . . . . . . . . Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Rough and fine offsets (translations) . . . . . . . . . . . . . . . . . . . . . . . . . Frame rotations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SCALE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MIRROR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Frames and switchover of geometry axes (SW 5 and higher) . . . . Channel-specific system frames (SW 6.1 and later) . . . . . . . . . . . . Configuring the current system frames (SW 6.1 and higher) . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/i
2.4.9 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.5 2.5.1 2.5.2 3
NCU global basic frames (SW 5 and higher) . . . . . . . . . . . . . . . . . . . Channel-specific basic frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Frames active in the channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FRAME chaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Frames with G91 (SW 4 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . Suppression of frames with G53, G153 and SUPA (SW 6.1 and later) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operating states and frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workpiece-related actual-value system . . . . . . . . . . . . . . . . . . . . . . . Use of workpiece-related actual-value system . . . . . . . . . . . . . . . . . Special reactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/K2/2-62 1/K2/2-63 1/K2/2-63 1/K2/2-67 1/K2/2-71 1/K2/2-72 1/K2/2-74 1/K2/2-77 1/K2/2-77 1/K2/2-79 1/K2/3-81 1/K2/3-81 1/K2/3-82 1/K2/3-82 1/K2/3-82 1/K2/4-83 1/K2/4-83 1/K2/4-88 1/K2/4-94 1/K2/4-94 1/K2/4-99 1/K2/4-100 1/K2/5-101 1/K2/5-101 1/K2/5-101 1/K2/5-101 1/K2/5-101 1/K2/5-102 1/K2/5-102 1/K2/5-102 1/K2/5-102 1/K2/6-105 1/K2/6-105 1/K2/6-107 1/K2/6-108 1/K2/7-111 1/K2/7-111 1/K2/7-111 1/K2/7-111 1/K2/7-111
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 3.2 3.3 3.4 Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coordinate systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workpiece-related actual value system/reset response . . . . . . . . . .
Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.3.1 4.4 4.5 Operator panel machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axes/coordinate system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Signal Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.1.1 5.1.2 5.1.3 5.2 5.2.1 5.2.2 5.2.3 Axis/spindle-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coordinate systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workpiece-related actual-value system . . . . . . . . . . . . . . . . . . . . . . . Channel-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coordinate systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workpiece-related actual-value system . . . . . . . . . . . . . . . . . . . . . . .
Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.1.1 7.1.2 7.1.3 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coordinate systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workpiece-related actual-value system . . . . . . . . . . . . . . . . . . . . . . .
1/K2/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General machine data for operator panel . . . . . . . . . . . . . . . . . . . . . . Axes/coordinate systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/iii
Notes
1/K2/iv
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Brief Description
1.1
Axes
Machine axes
Machine axes are the axes that actually exist on a machine tool.
Channel axes
Every geometry axis and every special axis is assigned to a channel and therefore a channel axis. Geometry axes and additional axes are always traversed in their channel.
Geometry axes
The three geometry axes always make up a fictitious rectangular coordinate system, the basic coordinate system (BCS). By using FRAMES (offset, rotation, scaling, mirroring), it is possible to image geometry axes of the workpiece coordinate system (WCS) on the BCS.
Special axes
In contrast to geometry axes, no geometrical relationship is defined between the special axes.
Path axes
Path axes are interpolated together (all the path axes of a channel have a common path interpolator). All the path axes of one channel have the same acceleration phase, constant travel phase and delay phase.
Positioning axes
Positioning axes are interpolated separately (each positioning axis has its own axis interpolator). Each positioning axis has its own feedrate and acceleration characteristic.
Synchronous axes
Synchronous axes are interpolated together with path axes (all path axes and synchronous axes of one channel have a common path interpolator). All path axes and all synchronous axes of a channel have the same acceleration phase, constant travel phase and deceleration phase.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/1-5
10.00
Axis configuration
The figure below shows the assignment between the geometry axes, special axes, channel axes and machine axes as well as the names of the individual axis types. MD 20050 AXCONF_GEOAX_ASSIGN_TAB, MD 20060 AXCONF_GEOAX_NAME_TAB, MD 20070 AXCONF_MACHAX_USED, MD 20080 AXCONF_CHANAX_NAME_TAB, MD 10000 AXCONF_MACHAX_NAME_TAB, MD 35000 SPIND_ASSIGN_TO_MACHAX.
The Replaceable geometry axes function allows the geometry axes in a grouping to be replaced by other channel axes. Axes that are initially configured as synchronous special axes in a channel can replace any selected geometry axis in response to a program command.
Link axes are axes which are physically connected to another NCU and which are controlled by its position control system. Link axes can be assigned dynamically to channels of another NCU. Link axes are not local axes from the perspective of a particular NCU. The axis container concept is used for the dynamic modification of the assignment to an NCU. Axis replacement with GET and RELEASE from the parts program is not available for link axes across NCU boundaries. The link axes are described in References: /FB/ B3 Several Operator Panels and NCUs
An axis container is a circular buffer data structure in which local axes and/or link axes are assigned to channels. The entries in the circular buffer can be shifted cyclically. In addition to the direct reference to local axes or link axes, the link axis configuration in the logical machine axis image also allows references to axis containers. Such a reference consists of:
S An axis container number and S a slot (circular buffer location within the corresponding container)
The entry in a circular buffer location contains:
1/K2/1-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
1.2
Coordinate systems
MKS
S It is defined by the machine axes. S The machine axes can be perpendicular to each other to form Cartesian
system or arranged in any other way.
S The names of the machine axes can be defined. S The machine axes can be linear or rotary axes.
BCS
The basic coordinate system (BCS) has the following properties:
S The geometry axes form a perpendicular Cartesian coordinate system. S The BCS is derived from a kinematic transformation of the MCS.
BZS
The basic zero system (BZS) is the basic coordinate system with a basic offset.
SZS
The settable zero system (SZS) is the workpiece coordinate system with a programmable frame from the viewpoint of the WCS. The workpiece zero is defined by the settable frames G54 ... G599.
WCS
S It is made up of geometry axes and special axes. S Geometry axes always form a perpendicular Cartesian coordinate system S Special axes form a coordinate system without any geometrical relation
between the special axes.
S The names of the geometry axes and special axes can be defined. S The workpiece coordinate system can be translated, rotated, scaled or
mirrored with FRAMES (TRANS, ROT, SCALE, MIRROR). Multiple translations, rotational movements etc. are also possible.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/1-7
10.00
WOE
S At a time defined in the PLC, a predefined additional zero offset between the
basic and the workpiece coordinate systems is activated.
S The magnitudes of the offsets can be set by the following for each of the
axes involved: PLC Operator panel Parts programs
S Activated offsets take effect at the instant the first motion block of the
relevant axes is processed after offset activation. The offsets are superimposed on the programmed path (no interpolation). The velocity at which the work offset external is shifted is as follows: Programmed F value plus 1/2 JOG velocity. The work offset external is traversed at the end of G0 blocks.
S The activated offsets are retained after RESET and end of program. S After POWER ON, the last active offset is still stored in the control but must
be reactivated by the PLC.
1/K2/1-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1.3
Frames
Mirroring
Scaling
Rough offset
Fig. 1-1
FRAME components
A FRAME is a closed calculation rule that translates one Cartesian coordinate system into another. A FRAME consists of the following components:
S Offset
Rough offset: > Programmable with TRANS, > ATRANS (additive translation component) and > CTRANS (zero offset for several axes) > G58 (axial zero offset). Fine offset: > Programmable with CFINE and > G59 (axial zero offset).
> Programmable with ROT, AROT and > with ROTS, AROTS and CROTS in SW 5.3 and higher > Programmable with SCALE and ASCALE > Programmable with MIRROR and AMIRROR
The rough and fine offsets, scaling and mirroring can be programmed for geometry and special axes. A rotation can also be programmed for geometry axes.
The translation component of FRAMES comprises: Rough offset with TRANS, ATRANS and CTRANS: Defined by the tool setter. The access rights can be restricted via MMC input. The programmable offsets for all geometry axes and special axes are programmed with TRANS. Fine offset with CFINE: Can be defined by the operator via the MMC within certain input limits.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/1-9
10.00 10.00
G58 and G59 can be programmed to replace the rough and fine offsets of the programmable frame on an axial basis. These functions can only be used if the fine offset is configured. Rough offset with G58: G58 changes only the absolute translation component (rough offset) for the specified axis; the total of additively programmed translations (fine offset) is retained. Fine offset with G59: G59 is used for axial overwriting of the additively programmed translations for the specified axes which were programmed with ATRANS.
Frame rotations
S Rotation with ROT defines the individual rotations for all geometry axes. S Solid angles with ROTS, AROTS, CROTS define the orientation of a plane
in space.
S Frame rotation with TOFRAME defines a frame with a Z axis pointing in the
tool direction.
Scaling
SCALE is used to program the programmable scale factors for all geometry axes and special axes. ASCALE must be programmed if a new scaling is to be based on a previous scaling, rotation, translation or mirroring.
MD10610: MIRROR_REF_AX can be used to define the axis in relation to which mirroring will be performed. MD10610 = 0: Mirroring is performed around the programmed axis. MD10610 = 1 or 2 or 3: Depending on the input value, mirroring is mapped onto the mirroring of a specific reference axis and rotation of two other geometry axes.
Frame chaining
The current Frame consists of the total basic frame, the settable FRAME, SW 6.1 and higher the 4 system frames and the programmable FRAME. The current total frame is calculated according to the following formula: $P_ACTFRAME =$P_SETFRAME : $P_EXTFRAME : $P_PARTFRAME : $P_ACTBFRAME : $P_IFRAME : $P_TOOLFRAME : $P_PFRAME
1/K2/1-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Incremental programming with G91 is defined such that the compensation value is traversed additively to the incrementally programmed value when a zero offset is selected. With the setting data SD 42440: FRAME_OFFSET_INCR_PROG is used to set the following:
S Value = 1
Zero offset is retracted on FRAME and incremental programming of an axis (= default setting)
S Value = 0
Only the programmed path is traversed.
Suppression of frames
Current zero offset (ZO) Current frame, incl. basic frame Current ZO, incl. programmed offsets
For the rotary indexing machine technology, for example, it is necessary to initialize frames for various channels from one channel. These cross-channel frames are referred to below as NCU global basic frames. The NCU global basic frames:
S Can be read and written from all channels. S Can only be activated in the channels. S Up to 16 NCU global base frames are available.
Global frames can be used to apply offsets, scale factors and mirroring operations to channel and machine axes. All base frames (up to 16 global and 16 channel-specific) are concatenated to produce the complete base frame. The standard configuration is designed for at least one base frame per channel. Settable frames can be defined as either NCU global or channel-specific.
Channel coordination
With NCU global frames, the user must ensure channel coordination and activation of the frames (e.g. using the WAITMC command), to allow the frames to be calculated at the desired point in the program. Cross-channel activation of frames is not supported.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/1-11
10.00 10.00
Notes
1/K2/1-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Detailed Description
2.1 Axes
2
Special axes
Geometry axes
Channel axes
Path axes Feedrate defining path axes FGROUP ( ) Kinematic transformation Linear axes Rotary axes Orientation axes Synchr. axes
Spindle axes Gantry axes Coupled-motion axes Guide value coupling axes
Machine axes
Fig. 2-1
Machine axes
Fig. 2-2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-13
10.00
2.1.1
Machine axes
Meaning
Machine axes are the axes that actually exist on a machine tool.
+Y
S +TM B
+X +Z
Fig. 2-3
Application
S Geometry axes X, Y, Z S Orientation axes A, B, C S Loader axes S Tool turrets S Axes for tool magazine S Axes for automatic tool changer S Spindle sleeves S Axes for pallet changers S etc.
1/K2/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.1.2
Meaning
Channel axes
Each geometry axis and each special axis is assigned to a channel. Geometry axes and additional axes are always traversed in their channel.
2.1.3
Meaning
Geometry axes
The three geometry axes always make up a fictitious rectangular coordinate system. By using FRAMES (offset, rotation, scaling, mirroring), it is possible to image geometry axes of the workpiece coordinate system (WCS) on the BCS.
Application
Geometry axes are used to program the workpiece geometry (the contour). Plane selection G17, G18 and G19 (DIN 66217) always refers to the three geometry axes. That is why it is advantageous to name the three geometry axes X, Y and Z.
2.1.4
Meaning
The Replaceable geometry axes function allows the geometry axes in a grouping to be replaced by other channel axes. Axes that are initially configured as synchronous special axes in a channel can replace any selected geometry axis in response to a program command.
Example
On a machine with two Z axes, Z1 and Z2, either of the Z axes can be programmed as the geometry axis in response to an instruction in the parts program. Axis replacement is activated by the program command GEOAX([n, channel axis name]...) n=0: n=1, 2, 3: GEOAX( ): Channel axis name: In order to remove an axis from the geometry axis-grouping Index of geometry axis Establishes the basic setting defined via MD for the assignment of channel axes to geometry axes Name of channel axis which is to operate as a geometry axis.
Activation
A channel axis which has been designated a geometry axis can only be addressed under its geometry axis name. The geometry axes names themselves remain unchanged. Geometry axes can be replaced either individually or as a group in one command.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-15
10.00 10.00
Supplementary conditions
As a basic rule, any channel axis designated as a geometry axis can be replaced by another channel axis. In this case, the following restrictions apply:
S Rotary axes may not be programmed as geometry axes. S A geometry axis which has the same name as a channel axis cannot be
replaced by another channel axis (alarm message). Nor can an axis of this type be removed from the geometry axis grouping. It cannot change its position within the geometry axis grouping.
S Both axes in each of the axis pairs involved in the replacement operation
must be block-synchronized.
S The following functions may not be active when geometry axes are
replaced: Transformation Spline interpolation Tool radius compensation Tool fine compensation
S Any active DRF offset or work offset external will remain operative. They
both act on channel axes. The channel axis assignment is not affected by the replacement of geometry axes.
All frames, protection zones and working area limitations are deleted. They may need to be reprogrammed after the replacement operation. The system response to replacement of geometry axes is therefore identical to its response to a change (switch on/off, switchover) in a kinematic transformation.
Any active tool length compensation remains operative and is applied to the new geometry axes after replacement. The system treats tool length compensations as not yet applied for all geometry axes
S which have been newly added to the geometry axis grouping S which have changed their positioning within the geometry axis grouping
Geometry axes which retain their position within the geometry axis grouping after a replacement operation also retain their status with respect to tool length compensation.
RESET
MD 20110: RESET_MODE_MASK Bit 12: Reset behavior of the modified geometry axis assignment Bit 12 = 0 When machine data $MC_GEOAX_CHANGE_RESET is enabled, a modified geometry axis assignment is cleared on Reset or on parts program end. The basic setting defined in the MD for the geometry axis assignment becomes active. A modified geometry axis assignment remains active after a Reset/parts program end.
Bit 12 = 1
1/K2/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
MD 20118: GEOAX_CHANGE_RESET FALSE: The current configuration of the geometry axes remains unchanged on reset and program start. With this setting, the response is identical to older software versions without geometry axis replacement. The configuration of the geometry axes remains unchanged or is switched to the basic state defined in machine data AXCONF_GEOAX_ASSIGN_TAB on Reset and parts program end (according to machine data $MC_RESET_MODE_MASK) and on parts program start (according to machine data $MC_START_MODE_MASK).
TRUE:
Program start
Analogously to the Reset response, the behavior on Start is determined by: MD 20112: START_MODE_MASK Bit 12: Behavior of the modified geometry axis assignment Bit 12 = 0 Bit 12 = 1 A modified geometry axis assignment remains active on parts program start. A modified geometry axis assignment is deleted on parts program start.
When the Reference point approach mode is selected, the geometry axis configuration defined by the machine data is automatically set.
M code
The PLC is informed of a replacement of geometry axes by means of GEOAX( ) through the optional output of an M code which is set in MD 22532: GEOAX_CHANGE_M_CODE.
Note If this machine data is set to one of the values 0 to 6, 17, 30, then no M code is output.
Transformation changeover
The following interrelationships must be noted with respect to kinematic transformation and geometry axis replacement:
S When the transformation is deactivated, the MD-defined basic setting for the
geometry axis configuration becomes valid again.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-17
10.00 10.00
Should it be necessary to modify the geometry axis assignment in connection with transformations, then another new transformation must be configured. For this purpose, there are a total of 8 simultaneously available transformations in the channel. A maximum of two transformations are available simultaneously per channel from the following transformation groups:
S Orientation transformations
(3-axis, 4-axis, 5-axis and nutation transformation)
Example
In the following example, it is assumed that there are 6 channel axes with channel axis names XX, YY, ZZ, U, V, W and three geometry axes with names X, Y, Z. The basic setting is defined in machine data such that the geometry axes are imaged on the first three channel axes, i.e. on XX, YY and ZZ. GEOAX( ) ;The geometry axis assignment defined via ;MD AXCONF_GEOAX_ASSIGN_TAB becomes ;effective, i.e. XX, YY and ZZ become ;geometry axes. ;Traverse all axes in rapid traverse to position 0. ;Channel axis U becomes the 1st geometry axis, ;V the second and W the third. ;Channel axis XX becomes the first geometry axis, ;ZZ becomes the third geometry axis. The second geometry axis remains unchanged. ;Semicircle in the XY plane. Channel axes ;XX and V traverse. ;Channel axis W becomes the 2nd geometry;axis. The first and third geometry axes ;remain unchanged. ;Full circle in the XY plane. Channel axes XX and ;W traverse. ;The geometry axis assignment defined via ;MD AXCONF_GEOAX_ASSIGN_TAB becomes ;effective, i.e. XX, YY and ZZ become ;geometry axes. ;U, V and W become the first, second and ;third geometry axes. ;Channel axes U, V, W each traverse to ;position 10, XX traverses to position 25. ;V is removed from the geometry axis grouping ;again. U and W remain geometry-axes. The second geometry axis is no longer assigned.
1/K2/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
GEOAX(1, U, 2, V, 3, W)
;U, V and W become the first, second and ;third geometry axes, i.e. U and W remain ;unchanged. ;V becomes the third geometry axis. As a result, ;W, which was previously the 3rd geometry axis, is ;removed from the geometry axis grouping. ;The second geometry axis is no longer assigned.
GEOAX(3, V)
2.1.5
Meaning
Special axes
In contrast to geometry axes, no geometrical relationship is defined between the special axes. Note: Geometry axes have an exactly defined relationship in the form of a right-angled coordinate system.
Special axes are part of the basic coordinate system (BCS). With FRAMES (translation, scaling, mirroring), special axes of the workpiece coordinate system can be mapped on the basic coordinate system.
Application
2.1.6
Meaning
Path axes
Path axes are interpolated together (all the path axes of a channel have a common path interpolator). All the path axes of one channel have the same acceleration phase, constant travel phase and delay phase. The feedrate programmed under address F (path feedrate) applies to all the path axes programmed in a block, with the following exceptions:
S An axis has been programmed that has been defined as having no control
over the path velocity with instruction FGROUP see Chapter Synchronous Axes
Application
Path axes are used to machine the workpiece with the programmed contour.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-19
10.00 10.00
2.1.7
Meaning
Positioning axes
Positioning axes are interpolated separately (each positioning axis has its own axis interpolator). Each positioning axis has its own feedrate and acceleration characteristic. Positioning axes can be programmed in addition to path axes (even in the same block). Path axis interpolation (path interpolator) is not affected by the positioning axes. Path axes and the individual positioning axes do not necessarily reach their block end points at the same time. Instructions POS and POSA are used to program positioning axes and define block change criteria:
S POS:
Block change takes place when the path axes and positioning axes have reached their block end points. block end point. Positioning axes continue to traverse beyond block limits to their block end point.
S POSA: Block change takes place when the path axes have reached their
S Only receive their block end points from the PLC S Can be started at any time (not at block limits) S Do not affect the processing of current parts programs
Application
The following are typical applications of positioning axes:
1/K2/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
2.1.8
Main axes
Meaning
A main axis is an axis that is interpolated by the main run. This interpolation can be started:
S From the PLC via special function blocks in the PLC basic program
as competing positioning axis or also called PLC axis.
Channel control
Application
In SW 6.3 and higher, certain axes in the main run can be be decoupled at the the channel response triggered by the NC program sequence and controlled from the PLC. These axes are also interpolated in the main run and respond independently for the channel and program sequence. A PLC-controlled axis can then be controlled indeendently by the NC. This affects
S the sequence for cancelling the axis (equivalent to delete distance-to-go) S stopping or interrupting the axis S continuing the axis (continue motion) S resetting the axis to its basic status
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-21
10.00
2.1.9
Synchronous axes
Meaning
Synchronous axes are components of the path axes which are not referenced in order to calculate the tool path velocity. They are interpolated together with path axes (all path axes and synchronous axes of one channel have a common path interpolator). All path axes and all synchronous axes of a channel have the same acceleration phase, constant travel phase and deceleration phase. The feedrate (path feedrate) programmed under address F applies to all the path axes programmed in a block but not to the synchronous axes. Synchronous axes take the same time to cover the programmed path as the path axes.
FGROUP command
The instruction FGROUP determines whether the axis is a feed-determining path axis (used in calculation of path velocity) or a synchronous axis (not used in calculation of path velocity).
Example
N05 G00 G94 G90 M3 S1000 X0 Y0 Z0 N10 FGROUP(X,Y) N20 G01 X100 Y100 F1000 Axes X and Y are path axes Axis Z is a synchronous axis Progr. feedrate 1000 mm/min Feedrate of axis X = 707 mm/min Feedrate of axis Y = 707 mm/min Axis X is a path axis Axis Y is a synchronous axis Progr. feedrate 1000 mm/min Feedrate of axis X = 1000 mm/min Feedrate of axis Y is automatically set to 500 mm/min because only half the path has to be traversed.
Note The channel axis name must be used for the FGROUP command (defined by MD: AXCONF_CHANAX_NAME_TAB).
Application
S the programmed feedrate is to apply on the path (all three programmed axes
are path axes) or
S the programmed feedrate is to apply on the circle (two axes are path axes
and the infeed axis is a synchronous axis).
1/K2/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.1.10
Axis configuration
The figure below shows the assignment between the geometry axes, special axes, channel axes and machine axes as well as the names of the individual axis types. The assignment is made in the MD (see Chapter 4).
MD 20060: AXCONF_GEOAX_NAME_TAB MD 20050: AXCONF_GEOAX_ASSIGN_TAB
Channel2 Channel1 1st geometry axis [0] 2nd geometry axis [1] 3rd geometry axis [2] X Y Z
Channel2 Channel1 1 2 3
MD 20080: AXCONF_CHANAX_NAME_TAB
MD 20070: AXCONF_MACHAX_USED
Channel2 Channel1 1st channel axis [0] 2nd channel axis [1] 3rd channel axis [2] 4th channel axis [3] 5th channel axis [4] 6th channel axis [5] 7th channel axis [6] 8th channel axis [7] ... ... ... X Y Z B MACH C
Channel2 Channel1 1 2 3 4 5 6 0 0
...
...
MD 10000: AXCONF_MACHAX_NAME_TAB
MD 35000: SPIND_ASSIGN_TO_MACHAX
1st machine axis [0] 2nd machine axis [1] 3rd machine axis [2] 4th machine axis [3] 5th machine axis [4] 6th machine axis [5] 7th machine axis [6] 8th machine axis [7] ... ...
X1 Y1 Z1 B1 W1 C1
0 0 0 0 0 1 0 0
...
...
...
Fig. 2-4 Axis configuration
Note The geometry axes must be assigned to the channel axes in ascending order leaving no gaps.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-23
10.00 10.00
Three geometry axes are assigned to the channel axes in the MD.
S All channel axes that are not assigned to the three geometry axes are
special axes.
S The channel axes are assigned to machine axes. S The spindles are also assigned to machine axes.
Channel axis gaps SW 5.1
In SW 5 and higher, not every channel axis per MD 20080: AXCONF_CHANAX_NAME_TAB has to be assigned to a machine axis (local or link axis) via MD 20070: AXCONF_MACHAX_USED. If the actual machine in the application has a specific machine axis which is assigned to the channel axis, values entered in MD 20070: AXCONF_MACHAX_USED refer to the logical machine axis map MD 10002: AXCONF_LOGIC_MACHAX_TAB, otherwise 0 is entered. Application: Consistent, semi-defined channel axis names for various machine versions of a manufacturers machine series. Advantages: Standard basic configurations for different machines, easy reconfiguration when expanding a machine, portability of programs.
Channel axis gaps must be declared explicitly in MD 11640: ENABLE_CHAN_AX_GAP. If you omit to do this, a 0 entry in MD 20070: AXCONF_MACHAX_USED terminates the assignment of further machine axes to channel axes. References: /FB/, B3 Several Operator Panels and NCUs (Distributed Systems) in SW 5 and higher
1/K2/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Example
In the following example, a machine tool channel axis is specified without a real machine axis. The shaded structures are available in SW 5 and higher.
MD 20080: AXCONF_CHANAX_NAME_TAB
MD 20070: AXCONF_MACHAX_USED
Channel2 1st channel axis [0] 2nd channel axis [1] 3rd channel axis [2] 4th channel axis [3] 5th channel axis [4] 6th channel axis [5] 7th channel axis [6] 8th channel axis [7] ... Channel1 X Y Z B MACH C C1 ... 6 CT1_SL2
Gap
$MN_AXCONF_LOGIC_MACHAX_T AB 1 2 3 4 5
...
31
NCU1
Z1 X1 Y1 B1
Local machine axes Container1 NC4_ ... NC1_AXn NC2_ ... NC3_ ... 1st machine axis [0] 2nd machine axis [1] 3rd machine axis [2] 4th machine axis [3] 5th machine axis [4] 6th machine axis [5] 7th machine axis [6] 8th machine axis [7] ... X1 Y1 Z1 B1 C1 ...
MD 10000: AXCONF_MACHAX_NAME_TAB
NC2_AXn
C
Link axis
Fig. 2-5
Note The gaps count as axes with reference to the number of channel axes and their indices. If you attempt to define a channel axis gap as a geometry axis with MD 20050: AXCONF_GEOAX_ASSIGN_TAB, the attempt is denied without an alarm. The use of channel axes in MD 24120 ff.: TRAFO_GEOAX_ASSIGN_TAB1...8 and MD 24110 ff.: TRAFO_AXES_IN1...8, to which no machine axes are assigned via MD 20070: AXCONF_MACHAX_USED (gap) generates alarm 4346 or 4347.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-25
10.00
2.1.11
S The axis must be configured appropriately by machine data. S The link axis option must be installed.
NCU 1
611D 1
NCU 2
611D 2
Channel 1
A1
Channel 1
B1
Channel 2 A2 B2
A3
Link communication
Fig. 2-6
The link axes are described in References: /FB/ B3, Several Operator Panels and NCUs in SW 5 and higher
Note The link axis functionality is currently not available with the SINUMERIK 840Di.
1/K2/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
An axis container is a circular buffer data structure in which local axes and/or link axes are assigned to channels. The entries in the circular buffer can be shifted cyclically. In addition to the direct reference to local axes or link axes, the link axis configuration in the logical machine axis image also allows references to axis containers. Such a reference consists of:
S A container number and S a slot (circular buffer location within the corresponding container)
The entry in a circular buffer location contains:
NC2_AX3 6 Link axis without container CT1_SL1 7 Axis container 1 slot 1 CT3_SL2 8 Axis container 3 slot 2
Channel 1
...... 31 Logical machine axis image Internal axis view of the NCK Assigned to NCU
$MC_AXCONF_MACHAX_USED
1 2 3
$MN_AXC_AXCONF_ASSIGN_T AB1
Axis container 2
1 2 3
$MN_AXC_AXCONF_ASSIGN_T AB2
1 2 3
$MN_AXC_AXCONF_ASSIGN_T AB3
Fig. 2-7
Mapping of channel axes onto axis containers via logical machine axis image
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-27
10.00
Axis container entries contain local machine axes or link axes from the perspective of an individual NCU. The entries in the logical machine axis image $MN_AXCONF_LOGIC_MACHAX_TAB of an individual NCU are fixed.
Note The axis container functionality is currently not available with the SINUMERIK 840Di.
The axis container function is described in References: /FB/ B3, Several Operator Panels and NCUs in SW 5 and higher
1/K2/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
Axes, Coordinate Systems, Frames (K2) 2.2 Zeros and reference points
2.2
2.2.1
S Machine zero M
The machine zero M defines the machine coordinate system MCS. All other reference points refer to the machine zero.
S Workpiece zero W
The workpiece zero W defines the workpiece coordinate system in relation to the machine zero M. The programmed parts program blocks are executed in the workpiece coordinate system WCS.
S Reference point R
The position of reference point R is defined by cam switches. Reference point R calibrates the position measuring system. The reference point must be approached every time the control system is switched on. The control can only then work with the measuring system and transfer all position values to the coordinate systems.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-29
Axes, Coordinate Systems, Frames (K2) 2.2 Zeros and reference points
12.00 10.00
R M W T
Fig. 2-8
The zero of the coordinate system MCS corresponds to M and the zero of the WCS corresponds to W. In the working space of the machine the reference point is defined as R and the toolholder reference point with T.
2.2.2
Control POWER ON
X
Machine coordinate system (MCS) Workpiece length Workpiece coordinate system (WCS)
Spindle
W Z
Machine zero
Workpiece zero
Fig. 2-9
1/K2/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
Axes, Coordinate Systems, Frames (K2) 2.2 Zeros and reference points
Machine zero
L
1
M Z
Fig. 2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-31
10.00
2.3
Meaning
Coordinate systems
DIN 66217 specifies the use of clockwise, rectangular (Cartesian) coordinate systems for machine tools.
+Y
+B
+X +A
S S S S S
Machine Coordinate System Basic Coordinate System Basic Zero System Settable Zero System Workpiece Coordinate System
The coordinate systems are determined by the kinematic transformation and the FRAMES. Fig. 2-12 shows this relationship. A kinematic transformation is used to derive the BCS from the MCS. If no kinematic transformation is active, the BCS is the same as the MCS. The basic frame maps the BCS onto the BZS. An activated settable FRAME G54...G599 converts the BZS to the SZS. The WCS, which is the basis for programming, is defined by the programmable FRAME.
1/K2/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Frame chain
WCS
Frame for cycles, programmable FRAME System frame for TOROT (TOFRAME), workpieces G54 ... G599 settable frame, channel-specific or NCU global Chained array of basic frames, channel-specific and/or NCU global Chained system frames for transformations, PAROT, PRESET, scratching, external zero offset Handwheel (DRF) offset, superimposed movement, [work offset external] Kinematic transformation
SZS
BZS
BCS MCS
Fig. 2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-33
10.00
2.3.1
Fig. 2-13
+X
M +Z
Fig. 2-14
The Preset function can be used to define a new control zero in the machine coordinate system. The preset values act on machine axes. The axes do not move with Preset.
Warning After Preset, the reference points are invalid! If possible do not use this function.
1/K2/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.3.2
The BCS and the MCS always coincide when the BCS can be mapped onto the MCS without kinematic transformation (e.g. TRANSMIT/face transformation, 5-axis transformation and up to three machine axes). On such machines, machine axes and geometry axes can have the same names.
+Y
MCS = BCS
+X
The BCS and the MCS do not coincide when the BCS is mapped onto the MCS with kinematic transformation (e.g. TRANSMIT/face transformation, 5-axis transformation or more than three axes). On such machines the machine axes and geometry axes must have different names.
YBCS Kinematic transformation
YMCS
XMCS
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-35
10.00 10.00
Machine kinematics
The workpiece is always programmed in a two or three-dimensional, right-angled coordinate system (WCS). However, such workpieces are being programmed ever more frequently on machine tools with rotary axes or linear axes not perpendicular to one another. Kinematic transformation is used to represent coordinates programmed in the workpiece coordinate system (rectangular) in real machine movements. References: /FB/, F2, 5-axis transformation /FB/, M1, Kinematic transformation
2.3.3
Additive offsets
The work offset external is an axial offset: Unlike with frames, no components for rotation, scaling and mirroring are possible.
+Y
+Z
+X
Fig. 2-17
S PLC
By describing system variables
S By the NC program
Assignment to system variables $AA_ETRANS[axis]
The 0/1 edge of the PLC signal Accept external zero offset (DB31, ... DBX3.0) activates the offset values defined previously.
1/K2/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Effect of activation
The offset for an axis becomes active when the first motion block for this axis is executed after the offset is activated. Example for possible sequence:
G0 X100 X150 X200 ; A new work offset external is activated ; by the PLC during this movement ; due to G0 programming, the new work offset external ; is traversed at the end of the block (X200) if no ; velocity reserve exists (override 100%).
SW 6.1 and higher The work offset external applied via system frame is applied immediately. Channel-specific system frames can be configured via MD 28082: MM_SYSTEM_FRAME_MASK.
Programming
Setting a new offset: Via axis-specific system variables $AA_ETRANS[axis]=Ri Reading: The following instruction reads the axis-specific active offset value. Ri=$AA_ETRANS[axis] Note
S The value read can be different from the value set if the value set has not
been activated. The value read is a previously set value if the last value set has not yet been activated.
S The system frame for the work offset external exists only if it has been
configured.
DRF offset
The DRF (Differential Resolver Function) offset allows an additional incremental zero offset to be set using the handwheel. It acts in the basic coordinate system on geometry and special axes. This function can be used, for example, to compensate for tool wear within a programmed block. The DRF offset is read
Runup
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-37
12.00 10.00
The activated values remain active after RESET and program end. Reset response of channel-specific system frames with SW 6.1 and higher as follows: When MD 24006: CHSFRAME_RESET_MASK, Bit 1 = 1 system frame for work offset external is active after RESET. When MD 24006: CHSFRAME_RESET_MASK, Bit 1 = 0 the work offset external in the active system frame is deleted in the data management. In SW 6.3 and higher, the following frames are active after RESET: System frame for MD 24006: CHSFRAME_RESET_MASK, Bit 4 = 1 Workpiece zero points MD 24006: CHSFRAME_RESET_MASK, Bit 5 = 1 Cycles
Suppression
The NC program instruction SUPA suppresses the work offset external while the block is being processed. The command G74 (reference point approach) and the equivalent operator actions in reference point approach mode suppress the work offset external for the duration of reference point approach. With G74, i.e. Automatic or MDA mode, the previously active work offset external automatically becomes active again with the next traverse motion in the block. After a mode change from reference point approach mode, the VDI signal for the referenced axes must set for reactivation.
2.3.4
BZS
+Y
+Z
+X
Fig. 2-18
1/K2/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Basic offset
The basic offset defines the coordinate transformation between the BCS and BZS. It can be used, for example, to define the pallet zero point. The basic offset comprises:
S Zero offset S DRF offset S Overlaid movement S Chained system frames S Chained basic frames
z Y WCS x Workpiece 2
MCS= BCS
BZS
Basic frame
Fig. 2-19
S The user can change the basic offset from the parts program by means of
an operator action and from the PLC.
S If the basic offset is to take effect immediately, an ASUB can be started via
the PLC using FC9 in order to execute the appropriate G code.
Machine Manufacturer Recommendation: Use offsets starting at the 3rd basic offset. The 1st and 2nd basic offset are provided for setting the actual value and for the work offset external.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-39
2.3.5
SZS
The settable zero system (SZS) is the workpiece coordinate system WCS with a programmable frame (viewed from the perspective of the WCS). The workpiece zero is defined by settable FRAMES G54...G599.
+Y
+X
Fig. 2-20
Programmable offsets act on the settable zero system. All programmable offsets refer to the settable zero system.
The display machine data MD 9424: MA_COORDINATE_SYSTEM can be set to specify whether the WCS actual values must be displayed in the WCS or SZS. The coordinate system continues to be known as the WCS in the display.
Display for 0:
100 0 0 100
Display for 1:
100 0 10 110
1/K2/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.3.6
Application
The function of the SZS coordinate system is to display actual values and move the axes during a cycle interruption. Cycles utilize frames in the frame chain to perform their functions. They insert translations or rotations either in the
WCS
$P_CYCFRAME $P_PFRAME
SZS
ACS
Fig. 2-21
WCS
$P_CYCFRAME
SZS
$P_PFRAME
ACS
Fig. 2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-41
In SW 6.3 and lower, geometry axes traverse in the WCS in jog mode. In SW 6.4 and higher, axes can be traversed manually in the SZS coordinate system as well. Using variable $AC_JOG_COORD it is possible to switch between manual traverse in the WCS or SZS.
y WCS x SZS $P_CYCFRAME $P_PFRAME
Fig. 2-23
2.3.7
WCS
+Z
+X
+Z Fig. 2-24
1/K2/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.4
Frames
2.4.1
Overview
Mirroring
Scaling
Rough offset
Fig. 2-25
A FRAME is a closed calculation rule that translates one Cartesian coordinate system into another. A FRAME consists of the following components:
S Offset
Rough offset: > Programmable with TRANS, > ATRANS (additive translation component) and > CTRANS (zero offset for several axes) > G58 (axial zero offset). Fine offset: > Programmable with CFINE and > G59 (axial zero offset).
> Programmable with ROT, AROT and > with ROTS, AROTS and CROTS in SW 5.3 and higher > Programmable with SCALE and ASCALE > Programmable with MIRROR and AMIRROR
For further explanations regarding the programming of FRAMES, please refer to: References: /PG/, Programming Guide: Fundamentals
The rough and fine offsets, scaling and mirroring can be programmed for geometry and special axes. A rotation can also be programmed for geometry axes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-43
+X
Basic offset
+Y
+Z
BZS
+X
+Z
Fig. 2-26
2.4.2
S Rough offset
Defined by the tool setter. The access rights can be restricted via MMC input.
S Fine offset
Can be defined by the operator via the MMC within certain input limits. The fine offset option is set with MD 18600: MM_FRAME_FINE_TRANS. The rough and fine offsets together represent the total offset.
The programmable offsets for all geometry axes and special axes are programmed with TRANS. An additive programmable offset is programmed with ATRANS, and the zero offset for several axes with CTRANS.
1/K2/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Rough offset
G58: The absolute component can be modified via TRANS, CTRANS; this resets the additive component ATRANS to zero. G58 changes only the absolute translation component (rough offset) for the specified axis; the total of additively programmed translations (fine offset) is retained. G58 X... Y... Z... A... ... ; Modify absolute component
Fine offset
The fine offset can be configured in the following variants with MD 18600: MM_FRAME_FINE_TRANS: 0: 1: The fine offset cannot be entered or programmed. G58 and G59 are not possible. Fine offset for all frames, G58 and G59 can be entered or programmed.
G59 is used for axial overwriting of the additively programmed translations for the specified axes which were programmed with ATRANS. G59 X... Y... Z... A... ... ; Modify additive component
Example
N1 N5 N10 N15
TRANS X10 Y10 Z10 ATRANS X5 Y5 G58 X20 G59 X10 Y10
Explanation of example
; Absolute default ; Total translation X15 Y15 Z10 ; Total translation X25 Y15 Z10 ; Total translation X30 Y20 Z10
Table 2-2
Absolute component X10 Y10 Z10 X20 Y10 Z10 X20 Y10 Z10 N1
= Total translation X15 Y15 Z10 X25 Y15 Z10 X30 Y20 Z10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-45
The absolute component of the translation is stored in the rough offset component and the additive translation component is stored in the fine offset component. The table below shows the effect of various program commands on the absolute and additive translation.
Command TRANS X10 ATRANS X10 CTRANS(X,10) 10 Unchanged 10 Coarse or absolute offset Fine or additive offset Unchanged Fine (old) + 10 0 Comment Absolute offset for X Additive offset for X Offset for X; (if appropriate: Further axis, value) Deselection of offset Fine offset in X Progr. Offset in X Progr. Fine offset in X Overwrites absolute offset for X Overwriting additive offset for X
0 0 10 Unchanged 10 Unchanged
0 10 Unchanged 10 Unchanged 10
Table 2-3
2.4.3
Frame rotations
Orientations in space can be defined via frame rotations for specific applications as follows:
S Rotation with
ROT defines individual rotations for all geometry axes. It is possible to define any spatial orientation using three rotations.
ROTS, AROTS, CROTS for orientation of a plane in space. Specification of maximum two solid angles. TOFRAME defines a frame with a Z axis pointing in the tool direction. programmed frame unchanged. Only the rotation component is overwritten.
Rotation ROT
ROT defines the programmable individual rotations for all geometry axes. Any spatial orientation can be defined on the basis of three rotations. To ensure that written angles are returned unambiguously, it is absolutely essential to apply the defined value ranges. If more than one rotation is programmed in a block, MD 10600: FRAME_ANGLE_INPUT_MODE (input mode of rotation for FRAME) is set to define the rotations about the three geometry axes. The order in which these rotations are programmed within the block is irrelevant.
MD 10600
1/K2/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Rotation about X
z y
Rotation about Z
x x=x
Sequence Z, X, Z of rotations according to Euler angle: 1. First a rotation about Z is performed (ROT Z...) 2. Then the rotation about X is performed (ROT X...) 3. Finally another rotation about Z is performed (ROT Z...)
Fig. 2-27
The angles are defined uniquely only within the following value ranges: 0 X < 180 180 Y 180 180 Z 180
Rotation about X
x=x y y
Sequence Z, Y, X of rotations according to RPY: 1. First a rotation about Z is performed (ROT Z...) 2. Then the rotation about Y is performed (ROT Y...) 3. Finally the rotation about X is performed (ROT X...)
Fig. 2-28
The angles are defined uniquely only within the following value ranges: 180 X 180 90 < Y < 90 180 Z 180
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-47
10.00 10.00
Note When frame rotation components are read and written, the value range limits must be observed to ensure that the same results are obtained for read or write, or repeat write operations. When rotations that are larger than the specified angles are entered, these are converted to a mode of representation that does not exceed the specified range limits. The setting RPY is recommended for rotations programmed in parts programs at the control (not with work preparation and/or postprocessor).
1/K2/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
ROT, AROT
N10 ROT Y... N20 AROT X... N30 AROT Z... In workpiece drawings, see Section 2.4 Frames oblique surfaces are generally described by way of solid angles, i.e. the angles which the intersection lines of the oblique plane form with the main planes (XY, YZ, ZX planes), see Fig. 2-29.
The commands ROTS, AROTS and CROTS are used to program rotations of the tool table/workpiece using solid angles. For further details about programmable rotations ROT, AROT, ROTS, AROTS and CROTS, please see: References: /PG/, Programming Guide: Fundamentals
Solid angles
The orientation of a plane in space is defined unambiguously by specifying two solid angles. The third solid angle is derived from the first two. Therefore, a maximum of 2 solid angles may be programmed, e.g. in the form ROTS X10Y15. If a third solid angle is specified, an alarm will be triggered. It is permissible to specify a single solid angle. The rotations which are performed with ROTS or AROTS in this case are identical to those for ROT and AROT. An extension of the existing functionality arises only in cases where exactly two solid angles are programmed. The specification of the solid angle does not define the orientation of the two-dimensional coordinate system within the plane (i.e. the angle of rotation around the surface normal vector). The position of the coordinate system is thus determined so that the rotated first axis lies in the plane which is surrounded by the first and third axes of the non-rotated coordinate system, i.e.
S When programming X and Y the new X-axis lies in the old ZX plane. S When programming Z and X the new Z-axis lies in the old YZ plane. S When programming Y and Z the new Y-axis lies in the old XY plane.
If the required coordinate system does not correspond to this basic setting, then an additional rotation must be performed with AROT.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-49
10.00 10.00
MD 10600
The programmed solid angles are converted into the equivalent RPY or Euler angles at input, depending on MD 10600: FRAME_ANGLE_INPUT_MODE. These then appear also in the display.
If exactly two solid angles are programmed, a rotated plane is defined as follows in SW 5.3 and higher:
S Both programmed axes define a plane, S the non-programmed axis define the associated third axis of a righthand
coordinate system. It is thus also unambiguously defined which of the two programmed axes is the first and which is the second axis (the definition corresponds to the plane definition with G17/G18/G19). The angle programmed with the axis letter of an axis of the plane then gives the axis around which the other axis of the plane must be rotated to move this into the line of intersection which the rotated plane forms with the plane surrounded by the other and the third axis. Should one of the two programmed angles tend to zero, the defined plane becomes the plane which results when only one axis is programmed (e.g. also with ROT or AROT).
Y
X
Oblique plane
Fig. 2-29
The diagram above shows an example where X and Y are programmed. Y here gives the angle by which the X axis must rotate around the Y axis to bring the X axis to the line of intersection formed by the oblique plane and the XZ plane. The same principle applies for the programmed value of the angle X.
Note In the shown position of the oblique plane the value of Y is positive, that of X on the other hand negative.
1/K2/2-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
TOFRAME
TOROT
The NC command TOROT overwrites only the rotation component in the programmed frame, leaving the remaining components unchanged. The rotation defined by TOROT is the same as that defined with TOFRAME. TOROT is like TOFRAME independent of the availability of an orientational toolholder. This NC command is also especially useful for orientation transformations (3, 4, 5-axis transformations).
Note NC command TOROT ensures consistent programming with active, orientational toolholders for every type of kinematic. See also the description of NC command PAROT in /FB/, W1, Orientational Toolholders, Machine with Rotatable Table.
The FRAMES generated by TOFRAME or TOROT can be written to their own, separate system frame $P_TOOLFR. Bit 3 in MD 28082: MM_SYSTEM_FRAME_MASK must be set for this purpose. The programmable frame is then retained unchanged. Changes occur when the programmable frame is processed elsewhere. For further details, see Subsection 2.4.7 Channel-specific system frames.
Activation
If a rotating frame is already active before NC command TOFRAME or TOROT is activated, the newly defined frame should deviate as little as possible from the old frame. This is the case, for example, if a defined frame needs to be modified slightly because the tool orientation cannot be set freely on account of Hirth-toothed rotary axes. NC command TOFRAME or TOROT uniquely defines the Z direction of the new frame. The rotation around the Z axis is at first unimportant. With setting data SD 42980: TOFRAME_MODE this free rotation can be determined so that the newly defined frame deviates as little as possible from a previously active frame.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-51
10.00 10.00
SD 42980
This setting data determines the direction of the X or Y axis for frame definition using TOFRAME or TOROT. In all cases where the setting data is unequal to zero, an active frame remains unchanged if the Z direction of the old and the new frame are identical. The values 0 to 3 have the following meanings: SD 42980 = 0 Corresponds to the existing SW 5.2 and lower. The orientation of the coordinate system is determined by the value of machine data MD 21110: X_AXIS_IN_OLD_X_Z_PLANE. SD 42980 = 1 The new X direction is chosen to lie in the XZ plane of the old coordinate system. In this setting the angle difference between the old and new Y axis will be minimal. SD 42980 = 2 The new Y direction is chosen to lie in the YZ plane of the old coordinate system. In this setting the angle difference between the old and new X axis will be minimal. SD 42980 = 3 The value chosen is the mean value of the two settings which would have been chosen with 1 and 2.
Linking of frames
If the value 1000 is added to the above values of the setting data, then the tool frame is chained to an active basic frame and any settable frames. The behavior is thus compatible to earlier SW (before 5.3).
Value of setting data SD 42980 = 1 and SD 42980 = 2 These set frames are achieved by rotating the coordinate system about the new Z axis from any X and Y axis position
S This applies for the case that the old and new Z direction enclose an angle
of less than 90 degrees. When the frames are set by the value of setting data SD 42980 = 1
S the angle enclosed by the new and old X axes is less than 90 degrees.
The same applies for the Y axis (the axes concerned point approximately in the same direction) for frames by the setting data value SD 42980 = 2. If the two Z directions form an angle of more than 90 degrees, however, the conditions of an angle < 90 degrees between the old and new axes can no longer be met simultaneously for both X and Y. In this case priority is given to the X direction, i.e. a mean value is taken from the direction for SD 42980 = 1 and the negative direction for SD 42980 = 2.
1/K2/2-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Example
... ... N90 $SC_TOFRAME_MODE=1 N100 ROT Z45 N110 TCARR=1 TCOABS T1 D1 N120 TOROT ... ... N100 describes a rotation by 45 degrees in the XY plane. It is assumed that the toolholder activated in N110 rotates the tool by 30 degrees around the X axis, i.e. the tool lies in the YZ plane and is rotated by 30 degrees relative to the Z axis. As a result the Z axis of the frame newly defined in N120 also points in this direction (independently of the value in setting data SD 42980: TOFRAME_MODE in N90). Fig. 2-30 illustrates the scenario for $SC_TOFRAME_MODE = 1: The old and new X axes X and X coincide in the projection in the direction of the old Z axis. The old and new Y axes Y and Y form an angle of 8.13 degrees (right angles are generally not retained in the projection!).
Y X, X Y 8.13
Z, Z
Fig. 2-30
For SD 42980: TOFRAME_MODE = 2, similarly, Y and Y would coincide and X and X would form an angle of 8.13 degrees. For SD 42980: TOFRAME_MODE = 3 the pairs X/X and Y/Y would each form an angle of 4.11 degrees.
Note The named angles (8.13 and 4.11 degrees) are the angles which the projections of the axes form in the XY plane. They are not the spatial angles of these axes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-53
10.00 10.00
2.4.4
SCALE
SCALE is used to program the programmable scale factors for all geometry axes and special axes. ASCALE must be programmed if a new scaling is to be based on a previous scaling, rotation, translation or mirroring.
2.4.5
MIRROR
MIRROR is used to program the programmable mirrors for all geometry axes and special axes.
+X
MIRROR X +Z
X +X
(mirrored)
MIRROR Z
+Z
AMIRROR must be programmed if a new mirroring is to be based on a previous mirroring, rotation, translation or scaling.
In SW 4 and lower, the specified value of the coordinate axis, e.g. the value 0 for AMIRROR X0, is not evaluated, but the AMIRROR has a toggle function, i.e. AMIRROR X0 activates the mirror and a further AMIRROR X0 deactivates it.
1/K2/2-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
The MD 10612: MIRROR_TOGGLE = 0 can be used to specify that the programmed values are evaluated. A value of 0, i.e. AMIRROR X0, deactivates the mirroring of the axis, and values not equal to 0 cause the axis to be mirrored if it is not already mirrored. It is possible to read or write mirrors component by component independent of MD 10612: MIRROR_TOGGLE.
MD 10610 = 1 or 2 or 3: Depending on the input value the mirroring is mapped onto a mirroring of a specific reference axis and rotation of two other geometry axes.
Mirroring of Y axis
Z Px P x
P Starting point
P Y Destination point
MIRROR_REF_AX = 1: X is the reference axis for mirroring (default behavior SW 4 and lower) Mirroring of the Y axis is mapped onto: An X axis mirror and a rotation of the Z axis through 180 degrees.
Fig. 2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-55
Px
P x
Y P Starting point
P Z
X Destination point
MIRROR_REF_AX = 1: X is the reference axis for mirroring (default behavior SW 4 and lower) Mirroring of the Z axis is mapped onto: An X axis mirror, a rotation of the X axis through 180 degrees and a rotation of the Z axis through 180 degrees. Fig. 2-33 Example of effect of MD 10610: MIRROR_REF_AX on mirroring of the Z axis
S Programmed zero offset (TRANS) do not affect indexing axes. S Scale changes (SCALE) do not affect indexing axes. S Change of direction (MIRROR) does not affect indexing axes. S DRF offset does not affect an axis. S External zero offset does not affect an axis. S Online tool offset does not affect an axis. S Synchronized action offset does not affect an axis. S Compile cycle offset does not affect an axis.
Axial frames and tool length offsets are not considered for
S PLC axes for compatibility reasons if the bit is not set. S Command axes if the bit is set.
1/K2/2-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
2.4.6
Workpiece geometry
The workpiece geometry is described by a coordinate system that is formed by the geometry axes. A channel axis is assigned to each geometry axis and a machine axis is assigned to each channel axis (unique assignment). An axial frame exists for each machine axis and for each frame (basic frame, settable frame, programmable frame). When a new machine axis is assigned to a geometry axis, the axial frame components of the machine axis, such as translations (rough and fine), scales and mirrors of the appropriate frame are applied. The new geometry in the channel is then generated by the new contour frames resulting from the geometry axes (up to three in number). The current valid frames are calculated again on the geometry axis switchover and a resulting complete frame is generated. The data management frames are not included unless they are activated. For examples on the channel axis to be converted to a geometry axis and on the 5-axis orientation transformation, see Section 6.3 Examples, Frames.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-57
2.4.7
System frames
All write operations to system frames must be executed using system functions. For cycle programmers, it has been made possible to write the frame using the variables below. All system frames in the data management are enabled either directly by the system function (TOROT, PAROT) or by a G function for Settable zero offset (G500, G54.. G599 statement).
Table 2-4 Bit 0 1 2 3 4 5 VB 1 0 0 0 0 1 System frames per channel via $MC_MM_SYSTEM_FRAME_MASK System functions For PRESET and scratching (Set-Frame) For work offset external (Ext-Frame) With orientational toolholder (Part-Frame) TCARR and PAROT Frame rotation in tool direction (Tool-Frame) TOROT and TOFRAME Frame for workpiece reference points (Work-Piece-Frame) Frame for cycles (Cycle frame) Variable $P_SETFR $P_EXTFR $P_PARTFR $P_TOOLFR $P_WPFR $P_CYCFR
VB:
1/K2/2-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.4.8
For TCARR and PAROT For PRESET and scratching For work offset external For TOROT and TOFRAME For workpiece reference points (SW 6.3 and higher) For cycles (SW 6.3 and higher)
This system frame is a standard frame and should always remain configured with bit 0 as this is the prerequisite setting for operating PRESET and scratching. This system frame is activated per default with MD 28082: MM_SYSTEM_FRAME_MASK activated with bit 0 = 1.
Note For the various measurement methods associated with scratching, please refer to: References: /FB/, M5, Measurements, Workpiece and tool measurements
The work offset external can be managed and enabled via a system frame. This system frame is configured with MD 28082: MM_SYSTEM_FRAME_MASK and activated with bit 1 = 1. If the appropriate bit is set in the machine data, the system function will only use the system frame, disabling the existing functionality. The values of the work offset external are written directly to the reserved frame by the PLC (OPI) or in the parts program with $AA_ETRANS[axis]. The activation is carried out as previously via the IS Accept external yero offset (DB31, ... DBX3.0) by the PLC. The existing functionality of the work offset external is described in more detail in Subsection 2.3.3 Additive offsets.
If a level change of the axis signal from 0 to 1 is detected, the movement is stopped immediately, the preprocessing is reorganized and the current system frame, and the system frame in the data management, are written and activated with the axis value of $AA_ETRANS[axis]. As a result, the zero offset is first applied in order to then continue the interrupted motion. With active G91 and MD 42440: FRAME_OFFSET_INCR_PROG = 0 the work offset external is always applied immediately with the approach block.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-59
10.00 10.00
The zero offset external acts on the absolute translation absolutely (coarse offset) of the current system frame. A multiple activation of an work offset external does not act additively, and only the rough portion of the translation is overwritten with the value $AA_ETRANS[axis].
The system frame for TCARR and PAROT is configured with MD 28082: MM_SYSTEM_FRAME_MASK and activated with bit 2 = 1. MD 20184: TOCARR_BASE_FRAME_NUMBER is only evaluated if the system frame for TCARR and PAROT has not been configured. With kinematic systems of the types P and M, TCARR will enter the table offset of the orientational toolholder (zero offset resulting from the rotation of the table) as a translation into the system frame. PAROT converts the system frame such that a partoriented WCS results. The system frames are stored in the SRAM and therefore remain stored after Reset. The system frames also remain active in the case of a mode change. For the display, the G codes PAROT and TOROTOF, TOFRAME are each assigned to a separate G code group.
Note For further explanations on the functions TCARR, TOROT and PAROT on machines with rotating work table, see: References: /FB/, W1, Tool offset, orientable toolholder /PGA/, Tool compensations
The system frame for TOROT and TOFRAME is configured with MD 28082: MM_SYSTEM_FRAME_MASK and activated with bit 3 = 1. This system frame is located before the programmable frame in the frame chain. The SZS coordinate system is located before the programmable frame. When a system frame is configured for TOROT and TOFRAME, the programmable frame is retained unchanged. If the programmable frame is processed further, however, the following changes in relation to the programmed version occur with or without a system frame:
1/K2/2-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
PAROTOF will delete the rotation in the system frame. The current $P_PARTFRAME and the data management frame are also deleted. TR = 0 additionally deletes the translation. TOROTOF will delete the system frame for TOROT and TOFRAME. The current $P_PARTFRAME and the data management frame are also deleted.
Workpiece reference points can be set and read in the current system frame $P_WPFRAME if the frame has been activated via MD 28082: MM_SYSTEM_FRAME_MASK when bit 4 = 1. If the current system frame is not configured via MD 28082: MM_SYSTEM_FRAME_MASK, all previously set workpiece reference points are cleared in the current system frame $P_WPFRAME.
Cycles can be set and read in the current system frame $P_CYCFRAME if it has been activated via MD 28082: MM_SYSTEM_FRAME_MASK when bit 5 = 1 If the current system frame is not configured via MD 28082: MM_SYSTEM_FRAME_MASK, then the current system frame $P_CYCFRAME turns to a zero frame.
For future system frame functions, in SW 6.4 and higher, bit 6 is reserved in machine data MD 28082: MM_SYSTEM_FRAME_MASK. For this reason, bit 6 must not be configured and activated.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-61
10.00 10.00
2.4.9
$P_NCBFR[n]
$P_UIFR[n]
Programming
Channel axis identifiers and machine axis identifiers can be used as axis identifiers in frame program commands. The programming of geometry axis identifiers is denied with an alarm. Rotations cannot be used on global frames. The programming of a rotation is denied with alarm: 18310 Channel %1 Block %2 Frame: Rotation not allowed. It is possible to chain global frames and channel-specific frames. The resulting frame contains all frame components including the rotations for all axes. The assignment of a frame with rotation components to a global frame is denied with alarm Frame: Rotation not allowed.
1/K2/2-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.4.10
$P_CHBFR[n]
$P_UBFR
Programming
Settable frames or basic frames can be read and written by an operator action or from the PLC:
2.4.11
$P_NCBFRAME[n]
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-63
10.00 10.00
The modified frame is activated only in the channel in which the frame was programmed. If the frame is to be modified for all channels of an NCU, $P_NCBFR[n] and $P_NCBFRAME[n] must be written simultaneously. The other channels must then activate the frame, e.g. with G54. Whenever a basic frame is written, the complete basic frame is calculated again.
$P_CHBFRAME[n]
$P_BFRAME
$P_ACTBFRAME
$P_ACTBFRAME
BZS
$P_CHBFRAME[n], n configurable via $MC_MM_NUM_BASE_FRAMES
$P_CHBFRAME[0] = $P_BFRAME
$P_NCBFRAME[0]
$P_ACTBFRAME = $P_NCBFRAME[0] : ... $P_NCBFRAME[n] : $P_CHBFRAME[0] : ... $P_CHBFRAME[n] Fig. 2-34 Chained array of basic frames
1/K2/2-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
$P_CHBFRMASK $P_NCBFRMASK
System variables $P_CHBFRMASK and $P_NCBFRMASK can be used to select which basic frames to include in the calculation of the total basic frame. The variables can only be programmed in the program and read via the operator panel interface. The value of the variables is interpreted as a bit mask and specifies which basic frame array element of $P_ACTBFRAME is included in the calculation. $P_CHBFRMASK can be used to define which channel-specific basic frames are included, and $P_NCBFRMASK can be used to define which NCU global basic frames are included in the calculation. When the variables are programmed, the total basic frame and the total frame are calculated again. After a reset and in the default setting, the value of $P_CHBFRMASK = $MC_CHBFRAME_RESET_MASK and $P_NCBFRMASK = $MN_NCBFRAME_RESET_MASK. e.g. $P_NCBFRMASK = H81 $P_CHBFRMASK = H11 ; $P_NCBFRAME[0] : $P_NCBFRAME[7] ; $P_CHBFRAME[0] : $P_CHBFRAME[4]
For details of the relationship between coordinate systems and chained array of basic frames, please see: Subsection 2.4.12 FRAME chaining
$P_IFRAME
$P_TOOLFRAME $P_WPFRAME
Current system frame for TAROT and TOFRAME (SW 6.1 and higher), tool reference points (SW 6.3 and higher)
The current system frame can be read and written in the parts program via these system variables.
$P_PFRAME
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-65
$P_CYCFRAME
$P_ACTFRAME
$P_NCBFR[n]
:
Activated via G500, G54 ...G599
$P_UIFR[n]
Input via program, e.g. $P_NCBFRAME[1]=CTRANS(X,10) $P_IFRAME Input via program, e.g. $P_IFRAME=CTRANS(X,10) : $P_TOOLFRAME : $P_WPFRAME : : $P_PFRAME : $P_CYCFRAME
Fig. 2-35
SW 6 and lower
$P_ACTFRAME corresponds to $P_ACTBFRAME : $P_IFRAME : $P_PFRAME SW 6.1 and higher $P_ACTFRAME corresponds to $P_SETFRAME : $P_EXTFRAME : $P_PARTFRAME : $P_ACTBFRAME : $P_IFRAME : $P_TOOLFRAME : $P_PFRAME SW 6.3 and higher $P_ACTFRAME corresponds to $P_SETFRAME : $P_EXTFRAME : $P_PARTFRAME : $P_ACTBFRAME : $P_IFRAME : $P_TOOLFRAME : $P_WPFRAME : $P_PFRAME : $P_CYCFRAME : SW 6.4 and higher See Fig. 2-35 / 2-36 Frame chain with current frames $P_ACTFRAME corresponds to $P_PARTFRAME : $P_SETFRAME : $P_EXTFRAME : $P_ACTBFRAME : $P_IFRAME : $P_TOOLFRAME : $P_WPFRAME : $P_PFRAME : $P_CYCFRAME :
1/K2/2-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.4.12
FRAME chaining
The current FRAME is composed of the total basic frame, the settable FRAME, the system frames and the programmable FRAME. In SW 6.1 and higher, the current complete frame results from the following formula: $P_ACTFRAME= $P_SETFRAME : $P_EXTFRAME : $P_PARTFRAME : $P_ACTBFRAME : $P_IFRAME : $P_TOOLFRAME : $P_PFRAME In SW 6.4 and higher, the current complete frame results from the following formula: $P_ACTFRAME= $P_PARTFRAME : $P_SETFRAME : $P_EXTFRAME : $P_ACTBFRAME : $P_IFRAME : $P_TOOLFRAME : $P_WPFRAME : $P_PFRAME : $P_CYCFRAME
Frame chain
WCS current $P_PFFRAME : $P_CYCFRAME $P_TOOLFRAME : $P_WPFRAME
WCS SZS
$P_IFRAME
BZS
$P_ACTBFRAME $P_PARTFRAME : $P_SETFRAME : $P_EXTFRAME Handwheel (DRF) offset, superimposed movement, [work offset external] Kinematic transformation
BCS MCS
Fig. 2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-67
INVFRAME
Inverse frame
The parts program provides a function which calculates the inverse frame from another frame. The concatenation between a frame and its inverse frame always produces a zero frame. FRAME INVFRAME( FRAME ) The inversion function can be used to transform a frame into another coordinate system. To enter a calculated measurement frame in the WCS into any of the other frames within a frame chain, for example, the following calculations need to be performed: The new total frame is a chain of the old total frame and the calculated frame.
n <> 0:
TMP = $P_PARTFRAME : $P_SETFRAME : $P_EXTFRAME :$P_NCBFRAME[0..k] : $P_CHBFRAME[0..n1] k = $MN_MM_NUM_GLOBAL_BASE_FRAMES
Example
A frame calculated, for example, via a measuring function, must be entered in the current SETFRAME such that the new total frame is a chain of the old total frame and the measurement frame. The SETFRAME is calculated accordingly by means of frame inversions.
DEF INT RETVAL DEF FRAME TMP $TC_DP1[1,1]=120 $TC_DP2[1,1]=20 $TC_DP3[1,1]= 10 $TC_DP4[1,1]= 0 $TC_DP5[1,1]= 0 $TC_DP6[1,1]= 2 T1 D1 g0 x0 y0 z0 f10000 G54 ; ; ; Type ;0 ; (z) Length compensation vector ; (y) ; (x) ; Radius ; ; ;
1/K2/2-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
; Invalidate all input values ; Approach 1st measuring point ; Save measuring point 1 ; Approach 2nd measuring point ; Save measuring point 2 ; Approach 3rd measuring point ; Save measuring point 3 ; Approach 4th measuring point ; Save measuring point 4 ; Set setpoint position of corner to (0, 0, 0) ; ; ;
$AC_MEAS_CORNER_SET ANGLE = 90; Input setpoint angle of intersection $AC_MEAS_WP_SET ANGLE = 30 ; Input setpoint workpiece position angle $AC_MEAS_ACT_PLANE = 0 ; G17 is the measurement plane ; Select a tool ; ; ; Set measurement type to corner 1 ; Perform calculation ;
if $AC_MEAS_WP_ANGLE <> 30 ; Scan known setpoint workpiece position angle setal(61000 + $AC_MEAS_WP_ANGLE) endif if $AC_MEAS_CORNER_ANGLE <> 90 ; Scan known setpoint angle of intersection setal(61000 + $AC_MEAS_CORNER_ANGLE) endif ; Transform measured frame and write to ; $P_SETFRAME such that a total frame ; is produced that comprises a chain of the old ; total frame and the measurement frame. $P_SETFRAME = $P_ACTFRAME : $AC_MEAS_FRAME : INVFRAME($P_ACTFRAME) : $P_SETFRAME $P_SETFR = $P_SETFRAME g1 x0 y0 g1 x10 y10 x0 y0 m30 ; Write system frame in data management ; Approach the corner ; Machine rectangle rotated through 30 degrees ; ; ; ;
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-69
ADDFRAME
This temporary frame is included in the ADDFRAME( FRAME, STRING ) function with the parameter settings shown in Table 2-5.
Table 2-5 Function value Parameter 1: Parameter 2: Effect of INT ADDFRAME( FRAME, STRING ) Type FRAME STRING Meaning Additive measured or calculated frame Strings for current frames: $PCYCFRAME, $P CYCFRAME , $P_PFRAME, $P_PFRAME , $P_WPFRAME, $P_WPFRAME , $PTOOLFRAME, $P TOOLFRAME , $P_IFRAME, $P_IFRAME , $PCHBFRAME[0..16], $ [ ] , $P_NCBFRAME[0..16], $ _ [ ], $PPARTFRAME, $ $P_EXTFRAME, $ $P_SETFRAME, $ Strings for data management frames: $PCYCFR, $P CYCFR , $P_WPFR, $P_WPFR , $PTOOLFR, $P TOOLFR , $P_UIFFR[0..99], $P_UIFFR[0..99] , $PCHBFR[0..16], $ [ ] , $P_NCBFR[0..16], $ _ [ ], $PPARTFR, $ $P_EXTFR, $ $P_SETFR, $ Function value INT 0: OK 1: Specified target (string) is wrong 2: Target frame is not configured 3: Rotation in frame is not permitted
The ADDFRAME ( ) function calculates the target frame specified by the STRING. The target frame is calculated such that the new total frame comprises a chain of the old total frame and the transferred frame.
Example
ERG = ADDFRAME( TMPFRAME, $P_SETFRAME ) The new total frame is calculated to be:
Dynamic response
If a current frame has been specified as a target frame, then the new total frame becomes active at the preprocessing stage. If the target frame is a data management frame, then the frame is not operative until it is explicitly activated in the parts program. The ADDFRAME () does not set any alarms, but returns the error codes via the return value. The cycle can react according to the error codes.
1/K2/2-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
2.4.13
Preconditions
Incremental programming with G91 is defined such that the compensation value is traversed additively to the incrementally programmed value when a zero offset is selected.
Applications
For applications such as scratching it is important that only the programmed path is traversed incrementally. (The activated zero offset should not be traversed).
Sequence
S Scratch workpiece with tool tip S Save the actual position (set actual value) in the basic frame (basic offset)
after reducing it by the tool offset
Example 2
Example 3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-71
Tool offset
With the setting data SD 42442: TOOL_OFFSET_INCR_PROG it can be set whether the changed tool length is retracted with FRAME and incremental programming of an axis, or whether only the programmed path is traveled, see also /FB/, W1, Tool offset, G91 extension.
Condition
If the response is set such that the offset remains active beyond program end and RESET (MD 20110: RESET_MODE_MASK, Bit 5=1), and if an incremental path is programmed in the first parts program block, the offset is always retracted additively to the programmed path. This applies up to and including SW 4.3. With higher software versions the corresponding setting is to be set with MD 20152 Index 7. See Table 2-14 Note With this configuration, parts programs must always begin with absolute programming.
2.4.14
Suppression of frames with G53, G153 and SUPA (SW 6.1 and later)
The current frames can be suppressed as shown in Fig. 2-37 using the following statements:
Current zero offset (ZO) Current frame, incl. basic frame Current ZO, incl. programmed offsets
Behavior Nonmodal suppression of the frames: System frame for cycles Programmable frame System frame for TOROT and TORFRAME, workpieces Active settable frame Nonmodal suppression of the frames: System frame for cycles Programmable frame System frame for TOROT and TORFRAME, workpieces Active settable frame All channel-specific and NCU global basic frames As G153 and system frames for PRESET, scratching, work offset external, PAROT handwheel offsets (DRF), [ext. zero offset], superimposed movement Modal activation of the G500 frame. The G500 frame should be a zero frame. Disabling (deletion) of the handwheel offsets (DRF)
G153
SUPA
G500 DRFOF
1/K2/2-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
SUPA
G153 G53
WCS current Frame for cycles, programmable FRAME System frame for TOROT (TOFRAME), workpieces, cycles G54 ... G599 settable frame, channel-specific or NCU global Chained array of basic frames, channel-specific and/or NCU global Chained system frames for transformations, PAROT, PRESET, scratching, external zero offset Handwheel (DRF) offset, superimposed movement, [work offset external] Kinematic transformation
WCS SZS
BZS
BCS MCS
Fig. 2-37
Suppression of frames
Frame suppression commands SUPA, G153 and G53 cause a displacement in the
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-73
10.00 10.00
2.4.15
Control system response to coordinate transformations Power ON Deleted Permanent, depending on MD 20150: GCODE_RESET_VALUES (default G500) Retained, depending on MD 20110: RESET_ MODE_MASK, Bit 0 and Bit 14. Individual basic frames can be deleted with MD 10615: NCBFRAME_POWERON_ MASK and MD 24004: CHBFRAME_POWERON_ MASK. Retained, individual system frames can be deleted on Power ON depending on MD 24008: CHSFRAME_POWERON_ MASK. Permanent, but has to be activated again. The system frame is retained. Deleted Reset, program end Deleted Retained, depending on MD 20110: RESET_ MODE_MASK / MD 20152: GCODE_RESET_MODE. Retained, depending on MD 20110: RESET_ MODE_MASK, bits 0 and 14, and on MD 10613: NCBFRAME_ RESET_MASK, and on MD 24002: CHBFRAME_ RESET_MASK. Parts program start Deleted Retained, depending on MD 20112: START_MODE_MASK Is retained
Retained, individual system frames can be deleted on Power ON depending on MD 24006: CHSFRAME_RESET_ MASK and MD 20150: GCODE_RESET_VALUES Is retained System frame for ext. zero offset is active after RESET. Is retained
Is retained
Is retained
DRF offset
Is retained
POWER ON
Frame Programmable frame Settable frames Complete basic frame
The table below shows the response of the frames after POWER ON:
Behavior Deleted Retained, depending on MD 20110: RESET_MODE_MASK Retained, depending on MD 20110: RESET_MODE_MASK, bits 0 and 14. Individual basic frames can be deleted with MD 10615: NCBFRAME_POWERON_MASK and MD 24004: CHBFRAME_POWERON_MASK. Retained, individual system frames can be deleted on Power ON depending on MD 24008: CHSFRAME_POWERON_MASK (system frames should be deleted in the data management as a priority). Permanent, but has to be activated again. The system frame is retained. Deleted
System frames (SW 6.1 and higher) Zero offset external (WOE) DRF offset
1/K2/2-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Mode change
In jog mode, only the frame components of the current frame are referenced for geometry axes if a rotation is active. All other axial frames are ignored. The response for PLC axes and command axes can be defined in MD 32074: FRAME_OR_CORRPOS_NOTALLOWED.
The reset response of basic frames is defined via MD 20110: RESET_MODE_MASK. The system frames are retained in the data management after a Reset. Activation of individual system frames can be configured as follows via machine data MD 24006: CHSFRAME_RESET_MASK: Bit 0: Bit 1: Bits 2 + 3: System frame for PRESET and scratching is active after Reset System frame for ext. zero offset is active after RESET. Are not evaluated.
SW 6.3 and higher Bit 4: Bit 5: System frame for workpiece reference points is active after RESET. System frame for cycles is active after RESET.
The table below shows the response of the frames after RESET, end of program:
Frame Programmable frame Settable frames Complete basic frame Deleted Retained, depending on MD 20110: RESET_MODE_MASK and MD 20152: GCODE_RESET_MODE. Retained, depending on MD 20110: RESET_MODE_MASK bits 0 and 14, and on MD 10613: NCBFRAME_ RESET_MASK, and on MD 24002: CHBFRAME_ RESET_MASK. Retained, individual system frames can be deleted on Power ON depending on MD 24006: CHSFRAME_RESET_ MASK and MD 20150: GCODE_RESET_VALUES[ ]. Retained. Retained. Behavior
System frames (SW 6.1 and higher) Zero offset external (WOE) DRF offset
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-75
MD 20112: START_MODE_MASK is not relevant to the basic frames and is not evaluated.
behavior Deleted Retained, depending on MD 20112: START_MODE_MASK Is retained Retained Is retained Retained.
There is no special treatment for global frames. If a frame is modified in an ASUB, it is retained in the program. On reapproach with REPOS, a modified frame is included, provided the modification was activated in the ASUB.
S G function group 8 (settable zero offset), S G function group 52 (frame rotations of a rotational workpiece), S G function group 53 (frame rotation in direction of tool),
then the relevant frames are restored. The active basic frame is not altered on the return jump, the programmable zero offset is restored.
The response of the settable zero offset and basic frame with restorable SAVE attribute on a subroutine return jump can be set via machine data MD 10617: FRAME_SAVE_MASK.
S Programmable frame:
This frame is restored again on a subroutine return jump.
1/K2/2-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.5
Definition
The term workpiece-related actual-value system designates a series of functions that permit the user:
S To retain the valid settings for the following after end of program for the next
parts program: Active plane Settable frame (G54G57), Kinematic transformation, Active tool length correction
2.5.1
S Axis positions are displayed with reference to the origin of the WCS.
The effects of switching over to the MCS via the operator panel are as follows:
Switchover to MCS
S Axis positions are displayed with reference to the origin of the MCS.
The following diagram shows the interrelationships between the machine coordinate system MCS and the workpiece coordinate system WCS for product level SW 2.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-77
WCS
Frame for cycles, programmable FRAME System frame for TOROT (TOFRAME), workpieces, cycles G54 ... G599 settable frame, channel-specific or NCU global Chained array of basic frames, channel-specific and/or NCU global Chained system frames for transformations, PAROT, PRESET, scratching, external zero offset, Handwheel (DRF) offset, superimposed movement, [work offset external] Kinematic transformation
SZS
BZS
BCS MCS
BCS = Basic coordinate system WCS = Workpiece Coordinate System SZS = Settable zero system
Fig. 2-38
References:
/PG/, Programming Guide: Fundamentals /FB/, W1, Tool offset /FB/, H2, Start-up /FB/, M1, Kinematic transformation /FB/, M3, Coupled motion and master/slave coupling /FB/, T3, Tangential control
1/K2/2-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.5.2
Special reactions
Overstoring in RESET state of: Frames (zero offsets) Active plane Activated transformation Tool offset
Overstoring
MMC inputs
S Active frame (zero offsets, operating area parameter) S Active tool length compensation (operating area parameter)
are changed by operator action on the operator panel, the take effect in the display after the following steps have been followed:
S Reset
Zero offset by overstoring (see above) Tool offset by overstoring
If the actual value in the WCS is read from $AA_IW after activation of a frame (zero offset) or of a tool offset,
the activated changes are already contained in the result read even if the axes have not yet been traversed with the activated changes. The actual values in the settable zero system (SZS) can be read from the parts program for each axis using the variable $AA_IEN[axis]. The actual values in the basic zero system (BZS) can be read from the parts program for each axis using the variable $AA_IBN[axis].
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/2-79
10.00 10.00
Actual-value display
The programmed contour is always displayed in the WCS. The following offsets are added to the MCS: Kinematic transformation DRF offset/work offset external Active frame Active tool offset of the current tool.
In SW4.3 (840D) or SW2.3 (810D) and higher, the actual values can be displayed via the PLC in the WCS, SZS, BZS or MCS. The PLC can define which coordinate system corresponds to the workpiece coordinate system on a machine. On MMC power-on the MCS is preset. With the signal DB19 DBB0.7 MCS/WCS switchover, it is also possible to switch from the PLC to the WCS.
Transfer to PLC
The auxiliary functions (D, T, M) are output to PLC (or not) when tool length compensation is selected, depending on MD 20110/20112 bit 1. The associated signals are described in Chapter 5.
Note If the WCS is selected by the PLC, it is still possible to switch between WCS and MCS for the mode by means of an operator action. However, on a mode and/or area change, the WCS selected by the PLC is read and activated. References: /FB/, K1, Mode Group Channels, Program Operation, Reset Response
1/K2/2-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Supplementary Conditions
3.1
Axes
Availability
The Screw interpolation 2D+6 function is not included in the export version of the SINUMERIK 840DE/810DE. A total of 5 axes/spindles can be configured on the SINUMERIK 840D/840Di/810D. Up to 9 axes/spindles can be operated in the maximum possible configuration of the SINUMERIK 840Di. The scope of possible configurations for the SINUMERIK 840D is as follows:
S NCU572 hardware: Up to 9 axes/spindles are available up to SW 5.2. S NCU572.3 hardware: Up to 12 axes/spindles are available from SW 5.3. S NCU573.3 hardware: Up to 31 axes/spindles are available from SW 5.3.
Note In SINUMERIK 840D, the following axes/spindles are permitted, depending on the HW/SW: Per channel Up to 12 axes/spindles are permitted Per NCU A maximum of 31 axes or a maximum of 20 spindles are permitted For further information about other axis and spindle configurations, see References: /BU/, Order Document, Catalog NC 60
If you are using DMP compact modules, when configuring axes with
S NCU 573.3, the number of axes, including the DMP modules, is limited to
31. If, for example, a DMP compact module is used for 31axis software, 30 axes will be available.
Programming
An axis can be programmed only if it physically exists on the NCU. Attempts to program an axis of the wrong type is rejected with alarm 14092 Channel %1 block %2 axis %3 is wrong axis type. In SW 5.1 and higher, for example, a link axis cannot be programmed as a channel axis.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/3-81
Axes, Coordinate Systems, Frames (K2) 3.4 Workpiece-related actual value system/reset response
10.00 10.00
3.2
Coordinate systems
Availability
The Zero offset external function is available with SW 2 and higher for control systems with the NCU 570, NCU 571, NCU 572 and NCU 573 in the basic versions. The basic frame and fine offset are available with SW 4 and higher.
3.3
Frames
The NCU global frames function is available in the basic version with SW 5 and higher.
The G91 function expanded via SD 42440: FRAME_OFFSET_INCR_PROG is available in SW 4 and higher for controls with NCU 571, NCU 572, NCU 573 and NCU 573.2 in the appropriate basic version.
3.4
Availability
The Workpiece-related actual-value system function is available in the basic version with SW 2 and higher. The option of defining the initial control setting for parts program start is available as a basic version function from SW 3. The control of all G codes with MD 20152: GCODE_RESET_MODE is possible in SW 5 and higher.
1/K2/3-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Axes, Coordinate System, Frames (K2) 4.1 Operator panel machine data
4.1
Note
MD 9242 to MD 9245
9242 MA_STAT_DISPLAY_BASE MD number Numerical basis for representation of moving joint STAT Default setting: 10 Minimum input limit: 2 Maximum input limit: 16 Changes effective immediately Protection level: 1/1 Unit: Data type: signed ushort, USHORT Applies from SW 6.1 Significance: This machine data defines the numerical system (bin, dec, hex) for representation of the STAT position of moving joints with special kinematics and robots. Possible settings are: 02: 10: Application example(s) Special cases, errors, ... Related to .... 16: Representation as binary value with STAT = B00001101 Representation as decimal value with STAT = 13 Representation as hexadecimal value with STAT = H0D
9243 MA_TU_DISPLAY_BASE MD number Numerical basis for representation of rotary axis position TU Default setting: 10 Minimum input limit: 2 Maximum input limit: 16 Changes effective immediately Protection level: 1/1 Unit: Data type: signed ushort, USHORT Applies from SW 6.1 Significance: The availability in the Machine operating area is dependent on the access level. This machine data defines the numerical system (bin, dec, hex) for representation of the TU position of rotary axes with robots. Possible settings are: 02: 10: Related to .... 16: Representation as binary value with TU = B00001101 Representation as decimal value with TU = 13 Representation as hexadecimal value with TU = H0D
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-83
Axes, Coordinate System, Frames (K2) 4.1 Operator panel machine data
12.00 10.00
9244 MA_ORIAXIS_EULER_ANGLE_NAME MD number Display of orientation axes as Euler angle Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective immediately Protection level: 1/1 Unit: Data type: signed ushort, USHORT Applies from SW 6.1 Significance: The availability in the Machine operating area is dependent on the access level. This machine data defines whether the axis identifier of the orientation axes is the Euler angle name or the channel axis name. Possible settings are: 0: 1: Related to .... Orientation axis name is the geo axis name from the channel block with index 3 to 5. Orientation axis name is the name of the Euler angle from the general machine data.
9245 MA_PREST_FRAMEIDX MD number Value storage scratching and PRESET Default setting: 1 Minimum input limit: 1 Maximum input limit: 10 Changes effective immediately Protection level: 1/1 Unit: Data type: signed ushort, USHORT Applies from SW 6.1 Significance: Index of the basic frame to which the scratch and PRESET functions enter their values. The index must be within the limits specified by channel-specific machine data MD 28081: MM_NUM_BASE_FRAMES (number of basic frames). The machine data is not relevant if the values of scratch and PRESET are entered in the system frame and the system frame is active. Related to ....
9247 USER_CLASS_BASE_ZERO_OFF_P A MD number Availability of basic offset in Parameters operating area Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 1/1 Unit: Data type: signed char, CHAR Applies from SW 5.3 Significance: The machine data MD 9247: USER_CLASS_BASE_ZERO_OFF_PA can be used to set the access level from which the soft key Base ZO is displayed in the Zero offset window in the Parameters operating area. At the same time, the base frames also appear hidden/ unhidden in the Zero offset window and in the Active ZO + offsets window. Related to ....
9248 USER_CLASS_BASE_ZERO_OFF_MA MD number Availability of basic offset in Machine operating area Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 1/1 Unit: Data type: signed char, CHAR Applies from SW 5.3 Significance: The machine data MD 9248: USER_CLASS_BASE_ZERO_OFF_MA can be set to select the access level from which soft key Base ZO is displayed in the Scratching screen in the Machine operating area and/or G500 can be entered in the zero offset field. The PRESET function is also displayed depending on this MD. The operator can thus no longer change the values of the base zero offset without the appropriate access authorization. Related to ....
1/K2/4-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
Axes, Coordinate System, Frames (K2) 4.1 Operator panel machine data
Note
MD 9400 to MD 9402
9249 USER_CLASS_VERT_MODE_SK MD number Provide protection for vertical area soft keys Default setting: 77777777 Minimum input limit: 0 Maximum input limit: 77777777 Changes effective immediately Protection level: 3/4 Unit: Hex Data type: BYTE Applies from SW 6.1 Significance: The machine data MD 9249: USER_CLASS_VERT_MODE_SK can be set to provide appropriate protection for vertical area soft keys. Note: (SW 6.1 and higher) This functionality is available only with HMI Embedded. Related to ....
9400 TOOL_REF_GEO_AXIS1 MD number Absolute dimension tool length compensation geometry axis 1 Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective immediately Protection level: 3/4 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: MD 9400: TOOL_REF_GEO_AXIS1 can be set to define the absolute dimension in the Tool Offsets or Calculate Offset screen of the Parameters area for the geometry axis. The appropriate geometry axis 1 is selected with the toggle key; the absolute dimension can then be edited via the numeric keypad. When the OK soft key is selected, the current position and this absolute dimension are computed for the selected tool parameter. The following applies: Position absolute dimension = input value. Related to ....
9401 TOOL_REF_GEO_AXIS2 MD number Absolute dimension tool length compensation geometry axis 2 Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective immediately Protection level: 3/4 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: MD 9401: TOOL_REF_GEO_AXIS2 can be set to define the absolute dimension in the Tool Offsets or Calculate Offset screen of the Parameters area for the geometry axis. The appropriate geometry axis 2 is selected with the toggle key; the absolute dimension can then be edited via the numeric keypad. When the OK soft key is selected, the current position and this absolute dimension are computed for the selected tool parameter. The following applies: Position absolute dimension = input value. Related to ....
9402 TOOL_REF_GEO_AXIS3 MD number Absolute dimension tool length compensation geometry axis 3 Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective immediately Protection level: 3/4 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: MD 9402: TOOL_REF_GEO_AXIS3 can be set to define the absolute dimension in the Tool Offsets or Calculate Offset screen of the Parameters area for the geometry axis. The appropriate geometry axis 3 is selected with the toggle key; the absolute dimension can then be edited via the numeric keypad. When the OK soft key is selected, the current position and this absolute dimension are computed for the selected tool parameter. The following applies: Position absolute dimension = input value. Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-85
Axes, Coordinate System, Frames (K2) 4.1 Operator panel machine data
10.00
9424 MA_COORDINATE_SYSTEM MD number Coordinate system for actualvalue display Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5 Significance: By setting this MD it is determined whether the actual values for the WCS displayed in the three actual value windows (small, wide, large) are shown as before (MA_COORDINATE_SYSTEM=0) or in the settable zero system (SZS) including the programmed zero offsets (MA_COORDINATE_SYSTEM= 1). The coordinate system continues to be known as the WCS. Bit0 = 0 Related to .... Bit0 = 1 WCS SZS (settable zero system)
9425 MA_SCRATCH_DEFAULT_MODE MD number Tool offset computation for geometry axes with scratching Default setting: 0 Minimum input limit: 0 Maximum input limit: 222222 Changes effective immediately Protection level: 3/4 Unit: Data type: DOUBLE Applies from SW 5.3 Significance: MD 9425: MA_SCRATCH_DEFAULT_MODE can be parameterized to preset the tool offset directions for scratching in the Machine operating area. The directions of computation can be set as follows: Wear for 3 geometry axes with following meaning: Without = 0, + = 1, = 2 3 places basic offsets 3 geometry axes 1 to 3 The appropriate value is selected through toggling in the Scratching screen. Note: (SW 6.1 and higher) This functionality is available only with HMI Embedded. Related to ....
9440 ACTIVE_SEL_USER_DATA MD number Active data (frames) are immediately operative after editing Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5 Significance: Active data (frames) are immediately operative after editing. Related to ....
9449 WRITE_TOA_LIMIT_MASK MD number Applicability of MD 9203 to edge data and location-dependent offsets Default setting: 7 Minimum input limit: 0 Maximum input limit: 7 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5.2 Significance: The applicability of machine data MD 9203: MD 9203: USER_CLASS_WRITE_FINE to WEAR can be set via this data: Bit0 = 1 Bit1 = 1 Bit2 = 1 Applied to edge data, wear values Applied to SC data (locationdependent offsets, wear values) Applied to EC data (locationdependent offsets, setup values)
Default setting 7: Applied to all data Note: (SW 6.1 and higher) This functionality is available only with HMI Advanced.
Related to ....
1/K2/4-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
Axes, Coordinate System, Frames (K2) 4.1 Operator panel machine data
9450 MM_WRITE_TOA_FINE_LIMIT MD number Limit value for wear fine Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective immediately Protection level: 3/4 Unit: Length Data type: DOUBLE Applies from SW 4.2 Significance: When entering the tool wear fine, the difference between the previous value and the new value may not exceed the limit entered here. Related to .... MD 9202: USER_CLASS_WRITE_TOA_WEAR
9451 MM_WRITE_ZOA_FINE_LIMIT MD number Limit value for offsets fine Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective immediately Protection level: 3/4 Unit: Length Data type: DOUBLE Applies from SW 4.2 Significance: When entering the offset fine, the difference between the previous value and the new value may not exceed the limit entered here. Related to .... MD 9210: USER_CLASS_WRITE_ZOA
9459 PA_ZOA_MODE MD number Display mode of zero offset Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective immediately Protection level: 3/4 Unit: Length Data type: BYTE Applies from SW 6.1 Significance: Display mode of zero offset as before or for HMI Embedded 0 Same screen mode as SW 5 and lower 1 Screen mode for HMI Embedded in SW 6.1 and higher Note: (SW 6.1 and higher) This functionality is available only with HMI Embedded. Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-87
10.00
4.2
10000 AXCONF_MACHAX_NAME_T AB MD number Machine axis name Default setting: Minimum input limit: one letter Maximum input limit: 15 characters 1st machine axis ... X starting with a letter 2nd machine axis ... Y 3rd machine axis ... Z Changes effective after POWER ON Protection level: 2 Unit: Data type: STRING Applies from SW 1.1 Significance: The name of the machine axis is entered in this MD Special cases, errors, ...... D The entered machine axis name must not conflict with the name and assignment of geometry axes (MD 20060: AXCONF_GEOAX_NAME_TAB, MD 20050: AXCONF_GEOAX_ASSIGN_TAB) and channel axes (MD 20080: AXCONF_CHANAX_NAME_TAB, MD 20070: AXCONF_MACHAX_USED). D The entered machine axis name must not be the same as the names entered for Euler angles (MD 10620: EULER_ANGLE_NAME_TAB), names specified for directional vectors (MD 10640: DIR_VECTOR_NAME_TAB), names given to intermediate point coordinates in the case of CIP (MD 10660: INTERMEDIATE_POINT_NAME_T AB) and the names of interpolation parameters (MD 10650: IPO_PARAM_NAME_TAB). D The machine axis name entered must not be given any of the following reserved address letters: D Tool offset (D function) E Reserved F Feedrate (F function) G Preparatory function H Auxiliary function (H function) L Subprogram call M Miscellaneous function (M function) N Subblock P Subprogram number of passes R Arithmetic parameters S Spindle speed (S function) T Tool (T function) D Vocabulary words (e.g. DEF, SPOS etc.) and predefined identifiers (e.g. ASPLINE, SOFT) are also illegal. D The use of axis designations consisting of a valid address letter (A, B, C, I, J, K, Q, U, V, W, X, Y, Z), followed by an optional numerical extension (199) gives slightly better block cycle times than a general designation. D If no designation is assigned to a machine axis, the predefined name applies (AXn for the nth machine axis). Related to .... MD 20060: AXCONF_GEOAX_NAME_TAB (geometry axis name in channel [GEO axis no.] MD 20080: AXCONF_CHANAX_NAME_TAB (channel axis name in channel [channel axis no.]
1/K2/4-88
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
10600 FRAME_ANGLE_INPUT_MODE MD number Input type for rotation with Frame Default setting: 1 Minimum input limit: 1 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: FRAME_ANGLE_INPUT_MODE is set to determine the properties of the rotations (ROT and AROT) around the three geometry axes if more than one rotation is programmed in a block. The order in which these rotations are programmed within the block is irrelevant. A computation of the rotations can be set according to: Euler angle with FRAME_ANGLE_INPUT_MODE = 2 (see Fig. 2-27): Calculation of the rotation according to the Euler angle is performed in the following order: 1st Rotation about Z (ROT Z ...) 2nd Rotation about X (ROT X ...) 3rd Rotation about Y (ROT Y ...) RPY with FRAME_ANGLE_INPUT_MODE = 1 (see Fig. 2-28): Calculation of the rotation according to RPY is performed in the following order: 1st Rotation about Z (ROT Z ...) 2nd Rotation about Y (ROT Y ...) 3rd Rotation about X (ROT X ...) Special cases, errors, ...... If parts programs are programmed with rotations on the control (not via work preparation and/or postprocessor), Siemens recommends the RPY setting. FRAME_ANGLE_INPUT_MODE = 0 corresponds to 1 References /PA/, Programming Guide Fundamentals
10602 FRAME_GEOAX_CHANGE_MODE MD number Frames and switchover of geometry axes Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: INT Applies from SW 5.2 Significance: Geometry axes can be switched over in the following situations: Selection and deselection of transformations Geometry axis switchover GEOAX() The current complete frame is then calculated as follows: 0: 1: The current complete frame is deleted. The current complete frame is calculated again when the geometry axes are switched over. The translations, skaling and mirrorings of the new geometry axes are effective. The rotations of the old geometry axes are retained. The current complete frame is calculated again when the geometry axes are switched over. The translations, skaling and mirrorings of the new geometry axes are effective. If rotations are active before the switchover in the current base frames, the current settable frame or the programmable frame, the switchover is canceled with alarm. The current complete frame is deleted when selecting and deselecting transformations. With the GEOAX ( ) command, the frame is calculated again. The translations, skaling and mirrorings of the new geometry axes become effective. The rotations of the old geometry axes are retained.
2:
3:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-89
10.00
10610 MIRROR_REF_AX MD number Reference axis for mirroring (MIRROR) frame element Default setting: 1 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 1.1 or 5.1 Significance: SW 1.1 and higher (see Fig. 2-31 for illustration) Mirroring (MIRROR and AMIRROR) about a certain axis (X) can always be mapped to: Mirroring in this specific axis (X) Mirroring in a different axis (Y) and rotation in a different axis (Z) Rotation in 2 axes (X and Y) Mirroring functions in the control are always mapped by one specific method for system variables and display purposes. This is done by always referring (MIRROR and AMIRROR) to a defined reference axis. It does not matter, whether the programmed mirroring is active in the refernce axis or in a different axis. The reference axis must always be one of the three geometry axes. SW 5.1 and higher: 0: 1, 2, 3: Mirroring without normalization Mirroring is always performed in the specified axis. Mirroring with normalization: Mirroring of a geometry axis can always be related to a defined reference axis.
1: X is the reference axis for mirroring (default response up to and including SW 4) Mirroring of the X axis is unique. Mirroring of the Y axis is mapped onto: An X axis mirror and a rotation of the Z axis through 180 degrees. See Fig. 2-32 Mirroring of the Z axis is mapped onto: An X axis mirror and a rotation of the X axis through 180 degrees and a rotation of the Z axis through 180 degrees. See Fig. 2-33 2: Y is the reference axis for mirroring Mirroring of the X axis is mapped onto: A Y axis mirror and a rotation of the Z axis through 180 degrees. Mirroring of the Y axis is unique Mirroring of the Z axis is mapped onto: A Y axis mirror and a rotation of the X axis through 180 degrees 3: Z is the reference axis for mirroring Mirroring of the X axis is mapped onto: A Z axis mirror and a rotation of the Z axis through 180 degrees. a rotation of the X axis through 180 degrees Mirroring of the Y axis is mapped onto: A Z axis mirror and a rotation of the X axis through 180 degrees. Mirroring of the Z axis is unique.
10612 MIRROR_TOGGLE MD number Mirror toggle Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: CHAR Applies from SW 5.1 Significance: 1: Programmed axis values are not evaluated. Toggle switch response: The command MIRROR X0 activates the function; the next MIRROR X0 deactivates it again. 0: Programmed axis values are always evaluated. <value> 0 The axis is mirrored if it is not already mirrored. <value> = 0 Mirroring is deactivated.
1/K2/4-90
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
10613 NCBFRAME_RESET_MASK MD number RESET response of the NCU global base frames Default setting: 0xFFFF Minimum input limit: 0 Maximum input limit: 0xFFFF Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: INT Applies from SW 5.1 Significance: Bit mask for the reset response of the NCU global base frames calculated in the channel. The following applies: Bit0 = 1 and bit14 = 1 (MD 20110: RESET_MODE_MASK) The complete base frame on reset is formed by concatenating all NCU global base frame array elements whose bit is 1 in the bit mask. Bit0 = 1 and bit14 = 0 (MD 20110: RESET_MODE_MASK) The complete base frame is deselected on reset. Related to ....
10615 NCBFRAME_POWERON_MASK MD number POWER ON response of global base frames Default setting: 0 Minimum input limit: 0 Maximum input limit: 0xFFFF Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 5.2 Significance: This machine data defines whether global base frames are deleted on POWER ON. i.e. Offsets set to 0. Scalings set to 1. Mirroring deactivated. The selection can be made separately for the individual base frames. Bit 0 corresponds to base frame 0, bit 1 to base frame 1, etc. Value=0: Base frame is retained on POWER ON. Value=1: Base frame is reset on POWER ON.
Related to ....
10650 IPO_PARAM_NAME_TAB MD number Name of interpolation parameters Default setting: I, J, K Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: STRING Applies from SW 1 Significance: List of designations of interpolation parameters The rules defined in $MC_AXCONF_CHANAX_NAME_TAB for axis designations apply for selecting the designations of interpolation parameters. The designations must be selected such that they do not conflict with other names (axes, Euler angle, normal vector, directional vector, interpolation parameters). Related to .... INTERMEDIATE_POINT_NAME_T AB References PA
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-91
10.00
10660 INTERMEDIATE_POINT_NAME_TAB MD number Name of intermediate point coordinates for G2/G3 Default setting: I1, J1, K1 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: STRING Applies from SW 1 Significance: List of designations of intermediate point coordinates. The rules defined in $MC_AXCONF_CHANAX_NAME_TAB for axis designations apply for selecting the designations of interpolation parameters. The designations must be selected such that they do not conflict with other names (axes, Euler angle, normal vector, directional vector, interpolation parameters). Related to .... IPO_PARAM_NAME_TAB References PA
11640 ENABLE_CHAN_AX_GAP MD number Channel axis gaps allowed Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 2 Unit: Data type: DWORD Applies from SW 5.2 Significance: Value: 1 The machine data allows the configuration of channel gaps in machine data $MC_AXCONF_MACHAX_USED (assignment of value 0). The following MD assignment is thus allowed: $AXCONF_MACHAX_USED[0] = 1 $AXCONF_MACHAX_USED[1] = 2 $AXCONF_MACHAX_USED[2] = 0 $AXCONF_MACHAX_USED[3] = 3 $AXCONF_MACHAX_USED[4] = 0 CAUTION: If a geometry axis is to be mapped onto a channel axis gap with $MC_AXCONF_GEOAX_ASSIGN_TAB[1]= 3, the controller response is the same as $MC_AXCONF_GEOAX_ASSIGN_TAB[1]= 0. The geometry axis is thus deleted! Transformation machine data cannot be assigned a channel axis number which is configured as a gap. Value: 0 Functionality same as SW 4, i.e. channel axis gap is denied with alarm 4000. Description of Functions: M1, F2 ; 1st MA is 1st axis in channel ; 2nd MA is 2nd axis in channel ; Channel gap ; 3rd MA is 3rd axis in channel
References
18600 MM_FRAME_FINE_TRANS MD number Fine offset for all settable FRAMES and the basic frame Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Modification effective after POWER ON; Protection level: 2 / 7 Unit: SRAM is formatted on modification Data type: INT Applies from SW 4.3 Significance: 1: Fine offset for settable frame; the definition of a base frame is possible by input on the MMC or via the program. 0: The fine offset cannot be entered or programmed. If fine offset is deactivated approx. 10 KB SRAM are saved (depending on MD 28080: MM_NUM_USER_FRAMES). Related to .... References PA
1/K2/4-92
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
18601 MM_NUM_GLOBAL_USER_FRAMES MD number Number of globally predefined user frames Default setting: 0 Minimum input limit: 0 Maximum input limit: 100 Modification effective after POWER ON; Protection level: 2 / 7 Unit: SRAM is formatted on modification Data type: INT Applies from SW 5.1 Significance: [Value]: The value is the number of array elements for the predefined array $P_UIFR[ ]. [Value] > 0: All settable frames are global. MD 28080: MM_NUM_USER_FRAMES is ignored. Battery-backed memory is reserved for this purpose. Related to .... References
18602 MM_NUM_GLOBAL_BASE_FRAMES MD number Number of global base frames Default setting: 0 Minimum input limit: 0 Maximum input limit: 16 Modification effective after POWER ON; Protection level: 2 / 7 Unit: SRAM is formatted on modification Data type: INT Applies from SW 5.1 Significance: [Value]: The value is the number of array elements for the predefined array $P_NCBFR[ ]. Battery-backed memory is reserved for this purpose. Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-93
10.00
4.3
4.3.1
20050 AXCONF_GEOAX_ASSIGN_TAB MD number Assignment of geometry axis to channel axis Default setting: Minimum input limit: 0 Maximum input limit: 1st geometry axis ... 1 (0 means that the geometry axis is 5 (FMNC/810D), 8 (840D) 2nd geometry axis ... 2 not assigned to any channel axis) 3rd geometry axis ... 3 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: In this MD you can enter to which channel axis the geometry axis is assigned. The assignment is made channel-specifically for all geometry axes. If no assignement is affected fo a geometry axis, this geometry axis does not exist and cannot be programmed (with the name defined in AXCONF_GEOAX_NAME_TAB). Note: The channel axes must be assigned to the geometry axes in continuous ascending sequence. Special cases, errors, ...... It is advisable to assign the (three) geometry axes to the first three channel axes.
20060 AXCONF_GEOAX_NAME_TAB MD number Geometry axis name in channel Default setting: Minimum input limit: Maximum input limit: 1st geometry axis ... X one letter 16 characters starting with a letter 2nd geometry axis ... Y 3rd geometry axis ... Z Changes effective after POWER ON Protection level: 2 Unit: Data type: STRING Applies from SW 1.1 Significance: In this MD the names of the three geometry axes for the channel are entered separately. Geometry axes can be programmed in the parts program using the names specified here. Special cases, errors, ...... D The specified geometry axis name must not conflict with the designation and assignment of the machine and channel axis names. D The specified geometry axis name must not clash with the names for Euler angles (MD 10620: EULER_ANGLE_NAME_TAB), names specified for directional vectors (MD 10640: DIR_VECTOR_NAME_TAB), names given to intermediate point coordinates in the case of CIP (MD 10660: INTERMEDIATE_POINT_NAME_T AB) and the names of interpolation parameters (MD 10650: IPO_PARAM_NAME_TAB). D The specified geometry axis name must not include any of the following reserved address letters: D Tool offset (D function) E Reserved F Feedrate (F function) G Preparatory function H Auxiliary function (H function) L Subprogram call M Miscellaneous function (M function) N Subblock P Subprogram number of passes R Arithmetic parameters S Spindle speed (S function) T Tool (T function) D Vocabulary words (e.g. DEF, SPOS etc.) and predefined identifiers (e.g. ASPLINE, SOFT) are also illegal. D The use of axis designations consisting of a valid address letter (A, B, C, I, J, K, Q, U, V, W, X, Y, Z), followed by an optional numerical extension (199) gives slightly better block cycle times than a general designation. D Identical names may be given to geometry axes assigned to different channels. Related to .... MD 10000: AXCONF_MACHAX_NAME_TAB (machine axis name [axis no.]) MD 20080: AXCONF_CHANAX_NAME_TAB (channel axis name in channel [channel axis no.])
1/K2/4-94
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
20070 AXCONF_MACHAX_USED MD number Machine axis name valid in channel Default setting: Minimum input limit: 0 Maximum input limit: 1st channel axis ... 1 (0 means that the geometry axis is 5 (FMNC/810D), 31 (840D) 2nd channel axis ... 2 not assigned to any channel axis) 3rd channel axis ... 3 more channel axes ... 0 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 1.1 Significance: The MD assigns a machine axis to a channel axis/special axis. The assignment is made channel-specifically for all channel axes. A machine axis that is not assigned to a channel is not active, i.e. the axis control is not computed, the axis is not shown on the screen and cannot be programmed in any channel. In SW 5 and higher, it is permissible, for reasons of configuration consistency, to assign no machine axes to a channel axis. In this case, the MD is set to 0 for the channel axis. MD 11640: ENABLE_CHAN_AX_GAP must be set to 1 (channel axis gaps allowed). In SW 5 and higher, machine data MD 20070: AXCONF_MACHAX_USED does not point directly to the machine axes created with MD 10000: AXCONF_MACHAX_NAME_TAB, but to the logical machine axis image defined with MD 10002: AXCONF_LOGIC_MACHAX_TAB. MD 10002: AXCONF_LOGIC_MACHAX_TAB points: directly to a local machine axis on the NCU, to the machine axis of another NCU indirectly to an axis container with local or remote machine axes. If the default values AX1, ..., AX31 are entered in MD 10002: AXCONF_LOGIC_MACHAX_T AB, the NCU responds in the same way as up to SW 4, i.e. machine data MD 20070: AXCONF_MACHAX_USED points to the corresponding local machine axis. Every geometry axis must be assigned to a channel axis and a machine axis so that it can be programmed. If a machine axis is assigned to several channels by means of AXCONF_MACHAX_USED, then the number of the channel from which the axis must be programmed must be entered in MD 30550: AXCONF_ASSIGN_MASTER_CHAN. The list of entries must not contain any gaps up to SW 4 (see above for SW 5). In contrast, the machine axes used may contain gaps. e.g.: Permissible:AXCONF_MACHAX_USED [0] = 3 ; 3rd MA is 1st axis in channel AXCONF_MACHAX_USED [1] = 1 ; 1st MA is 2nd axis in channel AXCONF_MACHAX_USED [2] = 5 ; 5th MA is 3rd axis in channel AXCONF_MACHAX_USED [3] = 0 ; Last entry Error for SW 4, permissible for SW 5: AXCONF_MACHAX_USED [0] = 1 ; 1st MA is 1st axis in channel AXCONF_MACHAX_USED [1] = 2 ; 2nd MA is 2nd axis in channel AXCONF_MACHAX_USED [2] = 0 ; Gap in the list ... AXCONF_MACHAX_USED [3] = 3 ;... of the channel axes For the axes activated in the channel, axis designations must be assigned in the corresponding list locations of AXCONF_CHANAX_NAME_TAB. This MD defines which axis can be used and exchanged in which channel for the Axis/spindle exchange function. MD 30550: AXCONF_ASSIGN_MASTER_CHAN (initial setting of channel for axis changeover) MD 20080: AXCONF_CHANAX_NAME_TAB (channel axis name in channel [channel axis no.]) MD 10002 :AXCONF_LOGIC_MACHAX_TAB MD 11640: ENABLE_CHAN_AX_GAP Description of Functions B3
References
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-95
10.00
20080 AXCONF_CHANAX_NAME_TAB MD number Channel axis name/special axis name in channel Default setting: Minimum input limit: Maximum input limit: 1st machine axis ... X1 one letter or space 15 characters starting with a letter 2nd machine axis ... Y1 3rd machine axis ... Z1 Changes effective after POWER ON Protection level: 2 Unit: Data type: STRING Applies from SW 1.1 Significance: The FM-NC/810D has five channel axes, the 840D has eight channel axes. In this MD you can set the name of the channel axis/special axis. The first three channel axes are normally occupied by three assigned geometry axes (see also MD 20050: AXCONF_GEOAX_ASSIGN_TAB). The remaining channel axes are also designated special axes. The channel axis/special axis is always displayed on the screen in the workpiece coordinate system with the name set in this MD. Special cases, errors, ...... D The specified channel axis name/special axis name must not conflict with the designation and assignment of the machine and geometry axis names. D The specified channel axis name must not conflict with names of the Euler angle (MD 10620: EULER_ANGLE_NAME_TAB), names specified for directional vectors (MD 10640: DIR_VECTOR_NAME_TAB), names given to intermediate point coordinates in the case of CIP (MD 10660: INTERMEDIATE_POINT_NAME_T AB) and the names of interpolation parameters (MD 10650: IPO_PARAM_NAME_TAB). D The specified channel axis name must not include any of the following reserved address letters: D Tool offset (D function) E Reserved F Feedrate (F function) G Preparatory function H Auxiliary function (H function) L Subprogram call M Miscellaneous function (M function) N Subblock P Subprogram number of passes R Arithmetic parameters S Spindle speed (S function) T Tool (T function) D Vocabulary words (e.g. DEF, SPOS etc.) and predefined identifiers (e.g. ASPLINE, SOFT) are also illegal. D The use of axis designations consisting of a valid address letter (A, B, C, I, J, K, Q, U, V, W, X, Y, Z), followed by an optional numerical extension (199) gives slightly better block cycle times than a general designation. D For channel axes to which geometry axes are assigned (normally the first three channel axes), no special name must be entered in this MD.
22532 GEOAX_CHANGE_M_CODE MD number M code for replacement of geometry axes Default setting: 0 Minimum input limit: 0 Maximum input limit: 99999999 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 4 Significance: Number of M code that is output at the VDI interface when a geometry axis is replaced. No M code is output if the machine data is set to one of values 0 to 6, 17, 30. There is no monitoring for conflicts between such a generated M code and other functions.
1/K2/4-96
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
24000 FRAME_ADD_COMPONENTS MD number Separate programming/modification of additive programmable frame components Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BOOL Applies from SW 5.1 Significance: 0: Additive translations programmed with ATRANS are stored in the frame together with the absolute translation (programmed with TRANS). G58, G59 are not possible. 1: The total of additive translations is stored in the fine offset of the programmable frame. The absolute and additiv translations can be modified independently of each other. G58, G59 are possible.
24002 CHBFRAME_RESET_MASK MD number Reset response of channel-specific base frames Default setting: 0xFFFF Minimum input limit: 0 Maximum input limit: 0xFFFF Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 5.1 Significance: Bit mask for the reset response of the channel-specific base frames calculated in the channel. The following applies: Bit0 = 1 and bit14 = 1 (MD 20110: RESET_MODE_MASK) The complete base frame on reset is formed by concatenating all channel-specific base frame array elements whose bit is 1 in the bit mask. Bit0 = 1 and bit14 = 0 (MD 20110: RESET_MODE_MASK) The complete base frame is deselected on reset.
24004 CHBFRAME_POWERON_MASK MD number POWER ON response of channel-specific base frames Default setting: 0 Minimum input limit: 0 Maximum input limit: 0xFFFF Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 5.2 Significance: This machine data defines whether channel-specific base frames are deleted on POWER ON. The selection can be made separately for the individual base frames. Bit 0 corresponds to base frame 0, bit 1 to base frame 1, etc. 0 1 Base frame is retained on POWER ON. Base frame is deleted on POWER ON.
24006 CHSFRAME_RESET_MASK MD number Reset response of the channel-specific system frames Default setting: 0x1 Minimum input limit: 0x0 Maximum input limit: 0x0000007F Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.1, bit 6 in SW 6.4 and higher Significance: Bit mask for the reset response of the channel-specific system frames calculated in the channel. The following applies: Bit0: System frame for PRESET and scratching is active after RESET. Bit1: System frame for work offset external is active after RESET. Bit2: Irrelevant, further behavior depends on : MD 20150: GCODE_RESET_VALUES[ ]. Bit3: Irrelevant, further behavior depends on : MD 20150: GCODE_RESET_VALUES[ ]. Bit4: System frame for workpiece ref. points is active after RESET (SW 6.3 and higher). Bit5: System frame for cycles is active after RESET (SW 6.3 and higher). Bit6: Reserved, reset response dependent on MD 20110: RESET_MODE_MASK (SW 6.4 and higher). Related to .... MD 28082: SYSTEM_FRAME_MASK (configuring screen for channel-specific system frames)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-97
24008 CHSFRAME_POWERON_MASK MD number Delete system frames with POWER ON Default setting: 0x1 Minimum input limit: 0x0 Maximum input limit: 0x0000007F Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.1, bit 6 in SW 6.4 and higher Significance: This machine data is used to define whether channel-specific system frames are reset in the data management in the case of POWER ON, i.e. offsets and rotations are set to 0, scalings to 1. Mirroring is deactivated. The selection can be made separately for the individual system frames. When bit = 1 is set, the following applies: Bit 0: System frame for PRESET and scratching is kept in the case of POWER ON. Bit 1: System frame for work offset external is kept in the case of POWER ON. Bit 2: System frame for TCARR and PAROT is kept in the case of POWER ON. Bit 3: System frame for TOROT and TOFRAME is kept in the case of POWER ON. Bit 4: System frame for workpiece reference points is retained on POWER ON (SW 6.3 and higher). Bit 5: System frame for cycles is retained on POWER ON (SW 6.3 and higher). Bit 6: System frame for transformation is deleted on POWER ON (SW 6.4 and higher). Related to .... MD 28082: SYSTEM_FRAME_MASK (configuring screen for channel-specific system frames)
24010 PFRAME_RESET_MODE MD number RESET mode for programmable frame Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.3 Significance: 0: Programmable frame is set on RESET according to MD 20110: RESET_MODE_MASK. 1: Programmable frame is retained on RESET.
24020 FRAME_SUPRESS_MODE MD number Positions for frame suppression Default setting: 0x0 Minimum input limit: 0 Maximum input limit: 0x0000003 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Bit screen for configuring positions for frame suppressions (SUPA, G153, G53). The following applies: 0: Positions for display (OPI) are without frame suppression. 1: Position variables are without frame suppression.
24030 FRAME_ACS_SET MD number SZS coordinate system setting Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.4 Significance: The following applies: 0: SZS is derived from the WCS transformed with $P_CYCFRAME and $P_PFRAME 1: SZS is derived from the WCS transformed with $P_CYCFRAME
28081 MM_NUM_BASE_FRAME MD number Number of channel-specific base frames Default setting: 1 Minimum input limit: 0 Changes effective after POWER ON Protection level: 2 / 7
1/K2/4-98
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
MM_NUM_BASE_FRAME Number of channel-specific base frames Applies from SW 5.1 [Value]: The value is the number of array elements for the predefined array $P_CHBFR[ ]. Battery-backed memory is reserved for this purpose.
28082 MM_SYSTEM_FRAME_MASK MD number Configuration screen form for channel-specific system frames Default setting: 0x1 Minimum input limit: 0x0 Maximum input limit: 0x0000007F Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 6.1, bit 6 reserved in SW 6.4 and higher Significance: Bit screen form for configuring channel-specific system frames taken into account in the channel. The following applies: Bit0: System frame for PRESET and scratching. Bit1: System frame for work offset external. Bit2: System frame for TCARR and PAROT. Bit3: System frame for TOROT and TOFRAME. Bit4: System frame for workpiece reference points (SW 6.3 and higher). Bit5: System frame for cycles (SW 6.3 and higher). Bit6: Reserved (SW 6.4 and higher).
4.4
32074 FRAME_OR_CORRPOS_NOTALLOWED MD number Adapting active frames Default setting: 0x0 Minimum input limit: 0 Maximum input limit: 0x3FF Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 4.1 as of SW 7.1 Bit 10 and 11 Significance: This machine data defines whether a frame is not permitted on traversing the associated axis and whether the main run offsets are permissible for this axis. Bit == 0: Frame or offset values are permitted. Bit 0 = 1 Programmed zero offset (TRANS) prohibited for indexing axis. Bit 1 = 1 Change of scale (SCALE) prohibited for an indexing axis. Bit 2 = 1 Change of direction (MIRROR) prohibited for an indexing axis. Bit 3 = 1 DRF offset prohibited for an axis. Bit 4 = 1 External zero offset prohibited for an axis. Bit 5 = 1 Online tool correction prohibited for an axis. Bit 6 = 1 Synchronized action offset prohibited for an axis. Bit 7 = 1 Compile cycles offset prohibited for an axis. Consider axial frame for PLC axes or command axes. Bit 8 = 1 Axial frame is considered for PLC axes and for PLC axes that are geometry axes, the tool length offset is considered. Bit 8 = 0 Axial frame and tool length offset are not considered for PLC axes (bit evalua tion therefore for reasons of compatibility). Bit 9 = 1 Axial frame and tool length offset are not considered for command axes. Bit 9 = 0 Axial frame is considered for command axes and forcommand axes that are geometry axes, the tool length offset is not taken into account. Alarm 14420: Channel %1Block %2 Indexing axis %3 Frame not allowed. Remedy: Modify machine data CORR_FOR_AXIS_NOT_ALLOWED.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/4-99
4.5
42440 FRAME_OFFSET_INCR_PROG SD number Zero offsets are traversed on incremental programming Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BOOLEAN Applies from SW 4.3 Significance: 0: In the case of incremental programming of an axis, after changing the frame, only the programmed position delta is traversed. Zero offsets in FRAMES are only traversed with absolute position specification. 1: In the case of incremental programming of an axis, after changing the frame, changes in the zero offsets are traversed. (standard response up to SW 3) Related to .... SD 42442: TOOL_OFFSET_INCR_PROG
42980 TOFRAME_MODE SD number Determination of the direction of X and Y axes for frame definition Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after RESET Protection level: 7 Unit: Data type: DWORD Applies from SW 5.3 Significance: This setting data determines the direction of the X or Y axis for frame definition using TOFRAME or TOROT. With these frame definitions, the Z direction is defined unambiguously, and the rotation round the Z axis is first not fixed. This setting data can be used to define the free rotation such that the newly defined frame deviates from a previously active frame as little as possible. In all cases where the setting data is unequal to zero, an active frame remains unchanged if the Z directions of the old and the new frame are identical. 0: The orientation of the coordinate system is determined by the value of the machine data X_AXIS_IN_OLD_X_Z_PLANE. 1: The new X direction is chosen to lie in the XZ plane of the old coordinate system. In this setting the angle difference between the old and new Y axis will be minimal. 2: The new Y direction is chosen to lie in the YZ plane of the old coordinate system. In this setting the angle difference between the old and new X axis will be minimal. 3: The value chosen is the mean value of the two settings which would have been chosen with 1 and 2. If the value 1000 is additionally added to the values specified, the tool frame is concatenated with possibly active basic frames and settable frames. The behavior is thus compatible to earlier SW (before 5.3).
1/K2/4-100
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Description
5.1
5.1.1
Axis/spindle-specific signals
Axes
None
5.1.2
Coordinate systems
None
5.1.3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/5-101
10.00
5.2
Channel-specific signals
5.2.1
Axes
None
5.2.2
DB 31, ... DBX3.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ...... Special cases, errors, ...... Related to ....
Zero offset Signal(s) Signal(s) updated: Signal(s) valid from SW: 2.0 The values of the work offset external set axis-specifically, i.e. preselected, for one axis is taken as the new value for calculating the total zero offset between the basic and the workpiece coordinate systems. The values of the work offset external set axis-specifically, i.e. preselected, for one axis is not taken as the new value for calculating the total zero offset between the basic and the workpiece coordinate systems. The previous value is still valid. $AA_ETRANS[axis] equals zero for all axes. Signal zero after booting (POWER ON). $AA_ETRANS[axis]
5.2.3
DB 2128 DBB 61
Number of active G function of G function group 1 (binary) /K1/, /K2/ Number of active G function of G function group 2 (binary) /K1/, /K2/
1/K2/5-102
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Number of active G function of G function group 3 (binary) /K1/, /K2/ Number of active G function of G function group 4 (binary) /K1/, /K2/ Number of active G function of G function group 5 (binary) /K1/, /K2/ Number of active G function of G function group 6 (binary) /K1/, /K2/ Number of active G function of G function group 7 (binary) /K1/, /K2/ Number of active G function of G function group 8 (binary) /K1/, /K2/
Number of active G function of G function group n1 (binary) /K1/ Number of active G function of G function group n (binary) /K1/
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/5-103
10.00
Notes
1/K2/5-104
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Examples
6.1
Example
6
Axis configuration for a three-axis milling machine with rotary table:
Axes
S S S S
1st machine axis: X1 2nd machine axis: Y1 3rd machine axis: Z1 4th machine axis: B Linear axis Linear axis Linear axis Rotary table (for turning for machining from different sides) Rotary axis for tool magazine (tool revolver) (Spindle) (1st channel) (1st channel) (1st channel) (1st channel) (1st channel) (1st channel)
+Y
S1/C +TM B
+X +Z
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/6-105
10.00
Machine data
AXCONF_GEOAX_NAME_T AB[0] = X AXCONF_GEOAX_ASSIGN_TAB[0] = 1 AXCONF_GEOAX_NAME_T AB[1] = Y AXCONF_GEOAX_ASSIGN_TAB[1] = 2 AXCONF_GEOAX_NAME_T AB[2] = Z AXCONF_GEOAX_ASSIGN_TAB[2] =3 AXCONF_CHANAX_NAME_T AB[0] = X AXCONF_MACHAX_USED[0] = 1 AXCONF_CHANAX_NAME_T AB[1] = Y AXCONF_MACHAX_USED[1] = 2 AXCONF_CHANAX_NAME_T AB[2] = Z AXCONF_MACHAX_USED[2] = 3 AXCONF_CHANAX_NAME_T AB[3] = B AXCONF_MACHAX_USED[3] = 4 AXCONF_CHANAX_NAME_T AB[4] = machine tool AXCONF_MACHAX_USED[3] = 5 AXCONF_CHANAX_NAME_T AB[5] = SP1 AXCONF_MACHAX_USED[4] = 6 SPIND_ASSIGN_TO_MACHAX[AX1] = 0 AXCONF_MACHAX_NAME_T AB[0] = X1 SPIND_ASSIGN_TO_MACHAX[AX2] = 0 AXCONF_MACHAX_NAME_T AB[1] = Y1 SPIND_ASSIGN_TO_MACHAX[AX3] = 0 AXCONF_MACHAX_NAME_T AB[2] = Z1 SPIND_ASSIGN_TO_MACHAX[AX4] = 0 AXCONF_MACHAX_NAME_T AB[3] = B SPIND_ASSIGN_TO_MACHAX[AX5] = 0 AXCONF_MACHAX_NAME_T AB[4] = W1 SPIND_ASSIGN_TO_MACHAX[AX6] = 1 AXCONF_MACHAX_NAME_T AB[5] = C1 MD 30300: IS_ROT_AX[3] = 1 MD 30300: IS_ROT_AX[4] = 1 MD 30300: IS_ROT_AX[5] = 1 MD 30310: ROT_IS_MODULO[3] = 1 MD 30310: ROT_IS_MODULO[4] = 1 MD 30310: ROT_IS_MODULO[5] = 1 MD 30320: DISPLAY_IS_MODULO[3] = 1 MD 30320: DISPLAY_IS_MODULO[4] = 1 MD 20090: SPIND_DEF_MASTER_SPIND = 1
MD No.
MD 10000: AXCONF_MACHAX_NAME_TAB[n] MD 20050: AXCONF_GEOAX_ASSIGN_TAB[n] MD 20060: AXCONF_GEOAX_NAME_TAB[n] MD 20070: AXCONF_MACHAX_USED[n] MD 20080: AXCONF_CHANAX_NAME_TAB[n] MD 35000: SPIND_ASSIGN_TO_MACHAX[n]
1/K2/6-106
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
6.2
Example
Coordinate systems
Configure 1 global base frame for 1 NCU with 2 channels. Each channel can describe the base frame, the other channel detects the change (after reactivation of the base frame). Both channels can read the base frame and each channel can activate the global base frame for itself. Machine data:
$MN_AXCONF_MACHAX_NAME_T AB[0] = X1 $MN_AXCONF_MACHAX_NAME_T AB[1] = X2 $MN_AXCONF_MACHAX_NAME_T AB[2] = X3 $MN_AXCONF_MACHAX_NAME_T AB[0] = X4 $MN_AXCONF_MACHAX_NAME_T AB[1] = X5 $MN_AXCONF_MACHAX_NAME_T AB[2] = X6 $MN_MM_NUM_GLOBAL_BASE_FRAMES = 1 $MC_MM_NUM_BASE_FRAMES = 1 ;NCU global base frame ;Channel base frame ;Machine axis identifier
Channel 1 $MC_AXCONF_CHANAX_NAME_T AB[0] = X $MC_AXCONF_CHANAX_NAME_T AB[1] = Y $MC_AXCONF_CHANAX_NAME_T AB[2] = Z $MC_AXCONF_MACHAX_USED[0] = 1 $MC_AXCONF_MACHAX_USED[1] = 2 $MC_AXCONF_MACHAX_USED[2] = 3 $MC_AXCONF_GEOAX_NAME_T AB[0] = X $MC_AXCONF_GEOAX_NAME_T AB[1] = Y $MC_AXCONF_GEOAX_NAME_T AB[2] = Z $MC_AXCONF_GEOAX_ASSIGN_T AB[0] = 1 $MC_AXCONF_GEOAX_ASSIGN_T AB[1] = 2 $MC_AXCONF_GEOAX_ASSIGN_T AB[2] = 3
Channel 2 $MC_AXCONF_CHANAX_NAME_T AB[0] = X $MC_AXCONF_CHANAX_NAME_T AB[1] = Y $MC_AXCONF_CHANAX_NAME_T AB[2] = Z $MC_AXCONF_MACHAX_USED[0] = 4 $MC_AXCONF_MACHAX_USED[1] = 5 $MC_AXCONF_MACHAX_USED[2] = 6 $MC_AXCONF_GEOAX_NAME_T AB[0] = X $MC_AXCONF_GEOAX_NAME_T AB[1] = Y $MC_AXCONF_GEOAX_NAME_T AB[2] = Z $MC_AXCONF_GEOAX_ASSIGN_T AB[0] = 4 $MC_AXCONF_GEOAX_ASSIGN_T AB[1] = 5 $MC_AXCONF_GEOAX_ASSIGN_T AB[2] = 6
Program X in channel 1 N.. N100 $P_NCBFR[0] = CTRANS( x, 10 ) ; Activate NCU global base frame N...
Program Y in channel 2 ; NCU global base frame also active in 2nd channel N510 G500 X10 ; Activate base frame N520 $P_CHBFRAME[0] = CTRANS( x, 10 ) ; Current frame for channel 2 is activated with an offset
N130 $P_NCBFRAME[0] = CROT(X, 45) ; current NCU global base frame is activated with : one rotation ; Alarm 18310, as rotations are not allowed with ; global frames. N...
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/6-107
10.00
6.3
Example 1
Frames
The channel axis is to become a geometry axis through geometry axis substitution. The substitution is to give the programmable frame a translation component of 10 in the X axis. The current settable frame is to be retained: FRAME_GEOX_CHANGE_MODE = 1 $P_UIFR[1] = CROT(x,10,y,20,z,30) G54 TRANS a10 GEOAX(1,a) ; Frame is retained after geometry axis ; substitution. ; Settable frame is activated. ; Axial offset of a is also ; substituted. ; a becomes X axis; ; $P_ACTFRAME= ; CROT(x,10,y,20,z,30):CTRANS(x10)
Example 2
Channel axes 4, 5 and 6 become the geometry axes of a 5-axis transformation. The geometry axes are thus all substituted before the transformation. The current frames are changed when the transformation is activated. The axial frame components of the channel axes which become geometry axes are taken into account when calculating the new WCS. Rotations programmed before the transformation are retained. The old WCS is restored when the transformation is deactivated. The most common application will be that the geometry axes do not change before and after the transformation and that the frames are to stay as they were before the transformation. Machine data: $MN_FRAME_GEOAX_CHANGE_MODE = 1 $MC_AXCONF_CHANAX_NAME_TAB[0] = CAX $MC_AXCONF_CHANAX_NAME_TAB[1] = CAY $MC_AXCONF_CHANAX_NAME_TAB[2] = CAZ $MC_AXCONF_CHANAX_NAME_TAB[3] = A $MC_AXCONF_CHANAX_NAME_TAB[4] = B $MC_AXCONF_CHANAX_NAME_TAB[5] = C $MC_AXCONF_GEOAX_ASSIGN_TAB[0] = 1 $MC_AXCONF_GEOAX_ASSIGN_TAB[1] = 2 $MC_AXCONF_GEOAX_ASSIGN_TAB[2] = 3 $MC_AXCONF_GEOAX_NAME_TAB[0] = X $MC_AXCONF_GEOAX_NAME_TAB[1] = Y $MC_AXCONF_GEOAX_NAME_TAB[2] = Z $MC_TRAFO_GEOAX_ASSIGN_TAB_1[0] = 4 $MC_TRAFO_GEOAX_ASSIGN_TAB_1[1] = 5 $MC_TRAFO_GEOAX_ASSIGN_TAB_1[2] = 6 $MC_TRAFO_AXES_IN_1[0] = 4 $MC_TRAFO_AXES_IN_1[1] = 5 $MC_TRAFO_AXES_IN_1[2] = 6 $MC_TRAFO_AXES_IN_1[3] = 1 $MC_TRAFO_AXES_IN_1[4] = 2
1/K2/6-108
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Program: $P_NCBFRAME[0] = ctrans(x,1,y,2,z,3,a,4,b,5,c,6) $P_CHBFRAME[0] = ctrans(x,1,y,2,z,3,a,4,b,5,c,6) $P_IFRAME = ctrans(x,1,y,2,z,3,a,4,b,5,c,6):crot(z,45) $P_PFRAME = ctrans(x,1,y,2,z,3,a,4,b,5,c,6):crot(x,10,y,20,z,30) TRAORI ; Trafo sets GeoAx(4,5,6) ; $P_NCBFRAME[0] = ctrans(x,4,y,5,z,6,cax,1,cay,2,caz,3) ; $P_ACTBFRAME = ctrans(x,8,y,10,z,12,cax,2,cay,4,caz,6) ; $P_PFRAME = ctrans(x,4,y,5,z,6,cax,1,cay,2,caz,3): ; crot(x,10,y,20,z,30) ; $P_IFRAME = ctrans(x,4,y,5,z,6,cax,1,cay,2,caz,3):crot(z,45) TRAFOOF; Deactivation of transformation sets GeoAx(1,2,3) ; $P_NCBFRAME[0] = ctrans(x,1,y,2,z,3,a,4,b,5,c,6) ; $P_CHBFRAME[0] = ctrans(x,1,y,2,z,3,a,4,b,5,c,6) ; $P_IFRAME = ctrans(x,1,y,2,z,3,a,4,b,5,c,6):crot(z,45) ; $P_PFRAME = ctrans(x,1,y,2,z,3,a,4,b,5,c,6):crot(x,10,y,20,z,30)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/6-109
10.00
Notes
1/K2/6-110
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Interface signals
Axes
DB number
Bit, byte
Name
Reference
7.1.2
Coordinate systems
DB number
Bit, byte
Name
Reference
7.1.3
DB number Channel-specific 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... ... 21, ...
Bit, byte
Name
Reference
T function modification D function modification T function D function Number of active function group 1 Number of active function group 2 ... Number of active function group 29
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/7-111
7.2
7.2.1
Machine data
General machine data for operator panel
Number MMC machine data ($MM_ ... ) ADV 9242 9243 9244 9245 9247 9248 9247 9248 9249 9400 9401 9402 9424 9424 9425 9440 9449 9450 9451 9450 9451 9459 9440 EMB
Identifier
Name
Doc. Refer to
ADV ADVANCED, MA_STAT_DISPLAY_BASE MA_TU_DISPLAY_BASE MA_ORIAXES_EULER_ANGLE_NAME MA_PRESET_FRAMEIDX USER_CLASS_BASE_ZERO_OFF_P A USER_CLASS_BASE_ZERO_OFF_MA USER_CLASS_VERT_MODE_SK TOOL_REF_GEO_AXIS1 TOOL_REF_GEO_AXIS2 TOOL_REF_GEO_AXIS3 MA_COORDINATE_SYSTEM MA_SCRATCH_DEFAULT_MODE ACTIVE_SEL_USER_DA TA WRITE_TOA_LIMIT_MASK MM_WRITE_TOA_FINE_LIMIT MM_WRITE_ZOA_FINE_LIMIT PA_ZOA_MODE
EMB EMBEDDED (SW 6.1 and higher) Numerical basis for display of moving joint STAT Numerical basis for display of rotary axis position TU Display of orientation axes as Euler angle Value storage scratching and PRESET Availability of basic offset in Parameters operating area Availability of basic offset in Parameters operating area Provide protection for vertical area soft keys Absolute dimension tool length compensation geometry axis 1 Absolute dimension tool length compensation geometry axis 2 Absolute dimension tool length compensation geometry axis 3 Coordinate system for actualvalue display Tool offset computation for geometry axes with scratching Active data (frames) are immediately operative after editing Applicability of MD 9203 to edge data and locationdependent offsets Limit value for wear fine Limit value for offset fine Display mode of zero offset IM4 IM4 IM4 IM4 IM2/IM4 IM2/IM4 IM2 IM2 IM2 IM2 IM2/IM4 IM2 IM2/IM4 IM4 IM2/IM4 IM2/IM4 IM2
1/K2/7-112
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
7.2.2
Number
Axes/coordinate systems
Identifier Name Reference
General ($MN_ ... ) 10000 10600 10602 10610 10612 10613 10615 10650 10660 11640 18600 18601 18602 AXCONF_MACHAX_NAME_T AB FRAME_ANGLE_INPUT_MODE FRAME_GEOAX_CHANGE_MODE MIRROR_REF_AX MIRROR_TOGGLE NCBFRAME_RESET_MASK NCBFRAME_POWERON_MASK IPO_PARAM_NAME_TAB INTERMEDIATE_POINT_NAME_T AB ENABLE_CHAN_AX_GAP MM_FRAME_FINE_TRANS MM_NUM_GLOBAL_USER_FRAMES MM_NUM_GLOBAL_BASE_FRAMES Machine axis name Input type for rotation with Frame Frames and switchover of geometry axes Reference axis for FRAME element mirroring Toggle mirroring RESET response of global base frame POWER ON response of global base frames Name of interpolation parameters Name of intermediate point coordinates for G2/G3 Channel axis gaps allowed Fine offset for all setable FRAMES and the basic frame Number of globally predefined user frames Number of global base frames
Channel-specific ($MC_ ... ) 20050 20060 20070 20080 22532 22534 24000 24002 24004 24006 24008 24010 24020 24030 28081 28082 AXCONF_GEOAX_ASSIGN_TAB AXCONF_GEOAX_NAME_T AB AXCONF_MACHAX_USED AXCONF_CHANAX_NAME_T AB GEOAX_CHANGE_M_CODE TRAFO_CHANGE_M_CODE FRAME_ADD_COMPONENTS CHBFRAME_RESET_MASK CHBFRAME_POWERON_MASK CHSFRAME_RESET_MASK CHSFRAME_POWERON_MASK PFRAME_RESET_MODE FRAME_SUPPRESS_MODE FRAME_ACT_SET MM_NUM_BASE_FRAMES MM_SYSTEM_FRAME_FRAMES Assignment geometry axis to channel axis Geometry axis name in channel Machine axis number valid in channel Channel axis name/special axis name in channel M code for replacement of geometry axes M code for transformation changeover Separate programming/modification of additively programmable frame components (SW 5.1 and higher) RESET response of the channelspecific basic frames (SW 5.1 and higher) POWER ON response of the channelspecific basic frames (SW 5.2 and higher) RESET response of the channelspecific system frames (SW 6.1 and higher) Delete system frames with POWER ON (SW 6.1 and higher) RESET mode for programmable frame (SW 6.3 and higher) Positions for frame suppression (SW 6.4 and higher) SZS coordinate system setting (SW 6.4 and higher) Number of channel-specific basic frames (SW 5.1 and higher) Configuration screen form for channel-specific system frames (SW 6.1 and higher) M1
Axis-specific ($MA_ ... ) 32074 35000 FRAME_OR_CORRPOS_NOTALLOWED SPIND_ASSIGN_TO_MACHAX FRAME or HL offset are allowed Assignment spindle to machine axis S1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/7-113
7.3
Number
Setting data
Identifier Name Reference
Channel-specific ($SC_ ... ) 42440 42980 FRAME_OFFSET_INCR_PROG TOFRAME_MODE Traversing of zero offset with incremental programming (SW 4.3 and higher) Determination of the direction of X and Y axes for frame definition (SW 5.3 and higher)
7.4
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103 or HMI Advanced.
7.5
System variable
System variables Name DRF offset (differential resolver function) Offset value work offset external Overlaid motion for programmed axis Settable frames, activated via G500, G54...G599 Channel basic frames, activated via G500, G54...G599 System frame for PRESET and scratching in data management (SW 6.1 and higher) System frame for work offset external in data management (SW 6.1 and higher) System frame for TCARR and PAROT in data management (SW 6.1 and higher) System frame for TOROT and TOFRAME in data management (SW 6.1 and higher) System frame for workpiece reference points (SW 6.3 and higher) System frame for cycles (SW 6.3 and higher) System frame for transformation (SW 6.4 and higher) NCU basic frames, activated via G500, G54...G599 1st basic frame in channel activated after G500, G54...G599. Corresponds to $P_CHBFR[0]. Current system frame for PRESET and scratching (SW 6.1 and higher) Reference
$AC_DRF[axis] $AA_ETRANS[axis] $AA_OFF[axis] $P_UIFR[n] $P_CHBFR[n] $P_SETFR $P_EXTFR $P_PARTFR $P_TOOLFR $P_WPFR $P_CYCFR $P_TRAFRAME $P_NCBFR[n] $P_UBFR $P_SETFRAME
1/K2/7-114
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
System variables $P_EXTFRAME $P_PARTFRAME $P_TOOLFRAME $P_WPFRAME $P_CYCFRAME $P_TRAFRAME $P_CHBFRAME[n] $P_NCBFRAME[n]
Name Current system frame for work offset external (SW 6.1 and higher) Current system frame for TCARR and PAROT with orientational toolholder (SW 6.1 and higher) Current system frame for TOROT and TOFRAME (SW 6.1 and higher) Current system frame for workpiece reference points (SW 6.3 and higher) Current system frame for cycles (SW 6.3 and higher) Current system frame for transformation (SW 6.4 and higher) Current basic frame in channel, 0 to 15 NCU basic frames can be configured via MD28081: MM_NUM_BASE_FRAMES Current NCU basic frame, 0 to 15 NCU basic frames can be configured via MD18602: MM_NUM_GLOBAL_BASE_FRAMES Current chained total basic frame Current first basic frame in the channel. Corresponds to $P_CHBFRAME Current settable frame Current programmable frame Current total frame Number of active frame $P_UIFR Bit mask for definition of NCU global basic frames Bit mask for definition of channel-specific basic frames
Reference
$AA_ETRANS[X]
is an axis-specific system variable of the DOUBLE type. The default setting in the system for this variable is zero. Values set by the user are activated by IS Work offset external (DB3161, ... DBX3.0).
$P_CHBFR[n] (basic frame in channel that is activated after G500, G54..G599) $P_CHBFRAME[n] (current basic frame in channel) $P_NCBFR[n] (NCU global basic frame that is activated after G500, G54..G599) $P_NCBFRAME[n] (current NCU global basic frame) $P_ACTBFRAME (current chained total basic frame) $P_NCBFRMASK (bit mask for definition of NCU global basic frame). $P_CHBFRMASK (bit mask for definition of channelsspecific basic frame)
For further details about frames and system variables, please see Reference: /PGA/, Programming Guide Advanced Chapter 6 Frames or Chapter 15 List of System Variables.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K2/7-115
10.00 10.00
Notes
1/K2/7-116
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.01 10.00
Communication (K4)
1/K4/1-3 1/K4/1-3 1/K4/2-5 1/K4/2-5 1/K4/2-6 1/K4/2-7 1/K4/2-8 1/K4/2-9 1/K4/2-9 1/K4/2-10 1/K4/2-10 1/K4/2-11 1/K4/2-13 1/K4/2-15 1/K4/2-16 1/K4/2-16 1/K4/2-16 1/K4/2-17 1/K4/2-19 1/K4/3-21 1/K4/4-23 1/K4/4-23 1/K4/4-24 1/K4/4-24 1/K4/4-25 1/K4/4-27 1/K4/4-28 1/K4/4-28
Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.2 2.3 2.4 2.5 2.6 2.6.1 2.6.2 2.7 2.8 2.8.1 2.8.2 2.8.3 2.8.4 Serial interfaces (RS232) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HMI Embedded with SW 6.1 and later (MMC 100) . . . . . . . . . . . . . . HMI Advanced, SW 6.1 and higher (MMC 101103) . . . . . . . . . . . . Parallel interface (Centronics) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Universal Serial Bus USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PS/2 keyboard/mouse interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . External floppy disk drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MPI/DP interface (RS485) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communication nodes and networking rules . . . . . . . . . . . . . . . . . . . Structuring and parameterization of logical address . . . . . . . . . . . . . General fundamentals about PROFIBUS DP . . . . . . . . . . . . . . . . . . SINUMERIK 840Di with PROFIBUS DP drives . . . . . . . . . . . . . . . . Cyclical communication with PROFIBUS DP interface . . . . . . . . . . I/O address space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the logic I/O address space . . . . . . . . . . . . . . . . . . . . . . Configure SINUMERIK 840Di for PROFIBUS DP drives . . . . . . . . .
3 4
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 4.5 4.6 4.7 XON character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XOFF character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . End of transmission character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Special bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Baud rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/i
10.00
1/K4/4-29 1/K4/4-29 1/K4/4-30 1/K4/5-31 1/K4/5-31 1/K4/5-32 1/K4/6-33 1/K4/6-33 1/K4/6-33 1/K4/6-34 1/K4/6-34 1/K4/6-34 1/K4/6-35 1/K4/7-37 1/K4/7-37 J
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 6.2 6.3 6.4 6.5 6.6 Parameters for serial printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameters for archiving with PG/PC . . . . . . . . . . . . . . . . . . . . . . . . . Parameters for DIN programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tape input/output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Import of machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Import of binary data (FDD, MSD) . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/K4/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 1.1
Brief Description
1.1 External data communications connector
1
HMI Embedded and PCU 20 Conn. X9 for COM1/V.24/TTY and Connector X11 for COM2/V.24) HMI Advanced with PCU 50 (COM1/V24/AG or TTY and COM2 for RS232). MMC 100 (connector X6) MMC 101103 (connectors X6, X7) HMI Advanced and PCU 50 (LPT1) MMC 101103 (connector X8) Connector X40 for USB interface HMI Advanced with PCU 50 OP010, OP012/15 two USB interfaces.
Communication methods
The following communication equipment is available on the control depending on whether the PCU 20 or PCU 50 (MMC module) component is installed:
S I/O for USB (Universal Serial Bus) with HMI Embedded and PCU 20
HMI Embedded and PCU 20 Connector X6 for PS/2 interface HMI Advanced with PCU 50 for two separate PS/2 interfaces. HMI Embedded and PCU 20 connector X800 MPI/DP interface HMI Advanced with PCU 50 connector MPI/DP interface for connecting, e.g. a machine control panel. HMI Embedded and PCU 20 Connector X805 for RJ45 interface HMI Advanced with PCU 50 for RJ45 Interface to (connector Ethernet). MMC (AT design) in ISA adapter (as option only). HMI Embedded and PCU 20 Connector X400 for LVDS interface HMI Advanced with PCU 50 LVDS interface for TFT display. HMI Advanced and PCU 50 (PGA connector).
S Option for connecting an external floppy disk drive with HMI Advanced and
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/1-3
10.00
Serial RS232
The serial interfaces are provided as standard for the purpose of importing or exporting data to and from programming devices or PCs using data transfer programs (e.g. PCIN). Example: Import of parts programs of machine data.
Parallel LPT1
The parallel interface is primarily intended as a printer port. A streamer can also be connected for data backup purposes (e.g. OEM_applications).
HMI Embedded with PCU 20 (connector X40) and HMI Advanced with PCU 50 feature an optional USB interface (Universal Serial Bus) for serial data transfer, e.g. to a printer with USB port. In the case of HMI Advanced with PCU 50, a second USB port, e.g. for a USB mouse, is fitted on the front of the operator panel (OP010, OP012 or OP015).
A keyboard or mouse can be connected additionally with HMI Embedded and PCU 20 (connector X6). Two individual PS/2 ports for a trackball keyboard and a mouse are available with HMI Advanced and PCU 50.
MPI/DP RS485
HMI Embedded with PCU 20 and HMI Advanced with PCU 50 can both communicate with the machine control panel (MCP) or with other I/O devices (nodes, stations) via the MPI/DP interface.
e.g. receive messages from PLC. e.g. access to drive parameters e.g. set parameters using SimoCom U Tool
PROFIBUS DP, which meets the requirements of European fieldbus standard EN 50170 Part 2, supports communication on this RS485 serial interface.
With HMI Advanced and PCU 50 (MMC101103) it is possible to connect a 3.5 floppy disk drive externally to facilitate data communication between the machine and, for example, the production planning department.
Network cards
HMI Embedded with PCU 20 and HMI Advanced with PCU 50 can be connected to a local network (LAN) via the Ethernet RJ45 interface. Extension box as option for MMC Network cards (e.g. Ethernet) can be inserted in the ISA_extension box (option for MMC). These cards can be used, for example, to import programs directly from the master computer to the NC. However, OEM_configuring of the MMC is required before such cards can be used. The card functionality is not an integral component of the system.
Note
For OEM_users only.
1/K4/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Detailed Description
2.1
The serial interfaces are available at the following connectors with HMI Embedded and PCU 20, HMI Advanced with PCU 50 and with the MMC modules:
Connector COM1/RS232 Connector COM2/RS232 Connector COM1/RS232 Connector COM2 Connector LPT1/Printer Connector X 6 Connector X 6 Connector X 7 Connector X 8
S MMC 100
Serial interface (RS 232) MMC 101103 1st serial interface (RS 232) 2nd serial interface (RS 232) Parallel interface (Centronics)
Maximum length
Connection
RS232 driver + 12V
75188
12V
75189
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/2-5
2.1.1
The serial interface COM1 or COM2 with HMI Embedded and PCU 20 (X6 with MMC 100 COM1) can be set as follows in 3 parameter sets:
COM1/COM2 parameters for DIN programs COM1/COM2 parameters for serial printer
COM1 or COM2
The serial interface to be used for initiation of a file transfer is selected in the following display machine data with HMI Embedded: MD 9309: V24_USER_LINE, MD 9319: V24_PRINTER_LINE and MD 9329: V24_PG_PC_LINE
File types
The serial interface for HMI Embedded with PCU 20 (MMC 100) is used to transfer the following file types:
Abbreviation/ Extension BIN BOT COM CPA DIR GIA GUD IKA INI LUD MPF OPT RPA SEA SPF SYF TEA UFR WPD
File type Binary files SIMODRIVE 611D boot files Comment file Compiler configuring data Directory Gear interpolation data User data (global) Interpolatory compensation Initialization data User data (local) Parts programs Options R parameter with value assignment Addresses with value assignment Subprogram System files NC machine data Offset external (WOE) Workpiece directory
Meaning of abbreviation Binary Files BOOT Files Comment File Compiler Projecting Data Directory Gear Interpolation Data Global User Data Interpolative Compensation Initializing Data Local User Data Main Program File Options R Parameter Active Setting Data Active Sub Program File System Files Testing Data Active User Frame Work Piece Directory
1/K4/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Parameterization
The following parameters can be altered: Device types: Baud rates: Parity: Data bits: Stop bits: Characters for RTS/CTS or XON/XOFF 300, 600, 1200, 2400, 4800, 9600 None, even, odd 7 or 8 1 or 2 XON XOFF Text end Start with XON Program beginning with LF Block end with CR LF Stop with transmission end character Evaluate DSR signal Leader and trailer Tape format Time monitoring
Special functions
Upper and lower case can be used for entering the HEX number. Display on the screen is in lower case, e.g. whether 1A or 1a is entered, the display is always 1a. These parameters are stored internally as machine data and can be altered both via the parameter screen form and in the machine data area. For a description of parameters/machine data, please refer to Chapter 4, Data Descriptions.
2.1.2
Interfaces COM1/RS232/AG and COM2 with HMI Advanced (X6 and X7 with MMC101103) can be set in two parameter sets
COM1 parameters for DIN programs COM2 parameters for archiving with PG/PC
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/2-7
Parameterization
The following parameters can be altered via the operator interface under SERVICES-INTERFACES:
S Interface assignment (COM1, COM2) S Protocol (Xon, Xoff, RTS/CTS) S Parity S Stop bit S Number of data bits S Baud rate S Archive format (binary format (PC format),
tape format with LF only, tape format with CR+LF)
2.2
Connection
Parallel interface
Maximum length
A connecting lead (e.g. for printer) of a maximum length of 2.5m may be connected to the interface.
Parameterization
Address
1/K4/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.3
Maximum length
Parameterization
The USB interface cannot be parameterized. HMI Embedded with PCU 20 and HMI Advanced with PCU 50 feature a second USB interface on the operator panel front. The two USB interfaces use different USB channels. The connector pin assignment is shown in Table 2-1 below.
Table 2-1 Pin 1 2 3 4 Name VCC Data + Data GND Assignment of USB interface (high current 500 mA) Type V I/O I/O V Meaning + 5V supply voltage USB data (channeldependent) USB data + (channeldependent) System ground (reference potential)
2.4
PS/2-Trackballkeyboard interface
It is possible to operate an external trackball keyboard with PS/2 port on HMI Advanced with PCU 50 (keyboard connector).
Parameterization
The PS/2 interface cannot be parameterized. The connector pin assignment for a trackball keyboard is shown in Table 2-2 below:
Table 2-2 Pin 1 2 3 4 5 6 Assignment of PS/2 trackball keyboard interface Type I/O I/O V V I/O I/O Meaning Keyboard data cable Trackball data cable System ground (reference potential) 5V supply voltage (current-limited) Keyboard clockline Trackball clockline
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/2-9
An external mouse with PS/2 port can be connected with HMI Embedded and PCU 20 (connector X6) and HMI Advanced with PCU 50 (mouse connector). The connector pin assignment for a PS/2 mouse is shown in Table 2-3 below:
Table 2-3 Pin 1 2 3 4 5 6 Assignment of PS/2 mouse interface Type I/O V V I/O Meaning Data cable Not assigned System ground (reference potential) 5V supply voltage (current-limited) Clockline Not assigned
2.5
HMI Advanced
A floppy disk drive interface (without power supply for the drive) is available at the 34-pin plug connector (X9 of MMC 101103) floppy interface of HMI Advanced with PCU 50. The interface is specifically provided for the connection of a 3.5 diskette unit.
Maximum length
A connecting lead of a maximum length of 0.5m may be connected to the interface. The lead is included in the scope of supply of the diskette drive.
Parameterization
2.6
An MPI/DP bus system can be operated via the serial RS485 interface of HMI Embedded with PCU 20 (connector X800) and HMI Advanced with PCU 50 (connector MPI/DP). The PROFIBUS DP, which is compliant with the European field bus standard, supports communication on an MPI bus via a serial RS485 interface. Data can be transferred on this interface via a cable or optical fiber.
1/K4/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.6
The connector pin assignment for this MPI/DP interface is shown in Table 2-4 below:
Table 2-4 Pin 1,2 3 4 Assignment of MPI/DP interface of PCU 50 Name NC MPSS_A RTS_AS Type I/O I Meaning Not assigned Signal line A of MPI module Control signal for receive data stream. Signal 1 active if directly connected interface module is sending. Return line (GND) of 5V supply. Current load by load connected between 2P5 and 2M max. 90mA. 5V supply current load as for 2M Not assigned Signal line B of MPI module RTS signal of MPI module On connector housing
2M
6 7 8 9 Shield
V I/O I
2.6.1
HMI Embedded with PCU 20 (connector X800) and HMI Advanced with PCU 50 (connector MPI/DP) feature a serial RS485 interface which can operate as an MPI bus to allow communication between components
S handheld unit (distributor box connector X4) S machine control panel (connector X20) S NCU 561.2573.2/3/4 (connector X101)
be determined. Other nodes such as SIMODRIVE 611 digital drives, or stations such as a SIMATIC S7 PLC, a programming device (PG) or a handheld programming unit (HPU) as a start-up tool can be operated on this MPI bus. A CPU program must be set up in the PLC for every component coupled to the MPI/DP bus.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/2-11
10.00
Each node on the MPI bus must have a bus address between 0 and 31. It is included in the network through the assignment of an MPI bus address to each CPU program.
Node PG 740 programming device HMI Advanced operator panel SIMATIC S7 PLC AS314 Machine control panel SINUMERIK 840D NCU Handheld unit Handheld programming unit PG HMI
CPU program 0 1 2 6 13 15 11
Networking rules
The following basic rules for setting up an MPI network must be observed: 1. The bus line must be terminated at both ends by switching in/activating the terminating resistor in the MPI connector.
Note
S No more than two terminators may be activated. S Bus terminating resistors are integral components of the HHU/HPU
devices. For this reason, the bus terminators on the distributor boxes must not be activated.
2. At least one terminator must be connected to a 5V voltage supply. This is automatically the case when the MPI connector with active terminating resistor is connected to a live device. 3. Spur lines (cables leading from bus segment to node) should be as short as possible and not exceed 5m. Unused spurs must be removed.
Note Avoid using spur lines and piggyback connectors whenever possible.
4. Each MPI node must be inserted before it is activated. When an MPI node is removed, the link must be deactivated before the connector is removed. 5. One HHU and one HPU, or a maximum of two of these components, can be connected per bus segment. Alternatively, a machine control panel (MCP) can be combined with an HHU or a PHG. 6. The maximum permissible cable lengths are listed below: MPI (187.5 kbaud): Maximum total cable length 1000m (without repeaters) MPI (187.5 kbaud): Maximum total cable length 2000m (with repeaters) per bus segment: Maximum total cable length 200m
1/K4/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Example
HHU
MCP
on
off
on
SINUMERIK 840D
off Drive SIMODRIVE 611 digital on
Fig. 2-1
The data transfer rate on the MPI/DP bus of the SINUMERIK 840D must be set to 1.5 Mbaud. The same applies to all other nodes who data transfer rate is set manually directly on the device using appropriate DIP switches.
2.6.2
Every MPI/DP bus node is networked via CPU programs. In this way, it is assigned a physical bus address (default address 6 for MCP, 15 for HHU, HPU 11, etc.). Bus addresses are logically addressed by means of GD circuit parameter settings. The bus address in the relevant GD circuit is converted in the control system by the basic PLC program. The table below shows the relationship between bus addresses and GD circuit.
Table 2-5 Bus address/GD circuit relationship GD circuit 1 2 3 4 8 5
Several MPI/DP bus addresses can be grouped in a GD circuit. They are always physically addressed via GD circuits. Every machine control panel must be addressed with its own GD circuit. The bus address, and thus also the relevant GD circuit, is set via the DIP-FIX switch (S3) on the rear panel. A 4-way DIP switch (S2) is provided on the HHU for this purpose.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/2-13
10.00 10.0
Parameterization
Logical addressing of components takes place in the basic PLC program and must always be parameterized to match the parameters of the relevant device. The communication parameters of each node are defined and activated via the basic PLC program in function block FB1. In addition to the first MCP, a second MCP or a HHU can be active simultaneously as an additional operator component. The PLC program must be adapted accordingly for the synchronization of more than one operator component.
Note To be able to utilize a HHU alternately or simultaneously to the MCP on an automation system, the user (machine manufacturer) must adapt the PLC program accordingly.
MCP simulation is available for the HPU; this must be parameterized with FB1 as an MCP for the HPU.
Parameterization of PLC
S Startup and synchronization (OB 100) S Cyclical mode (OB 1) S Process interrupt handling (OB 40)
The user (machine manufacturer) must call the relevant section of the basic program for these three function blocks. The communication parameters of the MCP are denoted MCPx... (where x = 1 or 2) in function block FB1.
Configurations
With HMI Embedded and PCU 20 and with HMI Advanced and PCU 50 it is possible to operate a PROFIBUS DP via the MPI/DP interface (RS 485) to permit communication with the following I/O devices:
S PLC and
SIMODRIVE 611 digital
Acyclic communication: Access to drive parameters e.g. data exchange with SIMATIC OP
Note A detailed description of the basic PLC program and function block FB 1 can be found in: References: /FB1/, Description of Functions: P3 Basic PLC Program Section: FB 1: RUN_UP Basic program, start-up section
For further information about starting up the MPI interface, please see: References: /IAD/, /HBI/, Installation & StartUp Guide, MPI / OPI Settings 840Di Manual, Chapter 5 MPI Components.
1/K4/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.7
General
PROFIBUS DP is an international, open field bus standard which is defined in European field bus standard EN 50170 Part 2. The PROFIBUS DP is optimized for high-speed, time-critical data transmission at field level. The components communicating via the PROFIBUS DP are categorized as either master or slave components. Cyclical and non-cyclic data exchanges between a master and the slaves assigned to it take place via the field bus. The available modes of communication are described below:
S Cyclical communication
Useful data for cyclical operations are referred to as Parameter Process Data Objects (PPO). They are divided into two areas within a message frame Parameter area (PKW (parameter identifier value)) Process data area (PDA (process data)
Cyclical DP communication using SIMODRIVE 611 universal drives offers the following functionality: Cyclical standard DP operation (a new cycle is begun when the old cycle has finished) Setpoint/actual value transfer using PDA Isochronous functionality (isochronous mode)
S Non-cyclic communication
Access to drive parameters Parameter setting via the SimoCom U tool Data exchange with SIMATIC operating panel (SIMATIC OP)
PROFIBUS DP nodes
In the content of PROFIBUS DP, a distinction is made between the following basic device types:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/2-15
2.8
2.8.1
Communication
The SINUMERIK 840Di control system is provided with a PROFIBUS DP interface for connecting the I/O devices. Communication between the SINUMERIK 840Di (NC and PLC) as the master and the slave components via PROFIBUS DP is characterized by:
S Configurable, equidistant DP cycle (cyclical communication) S Synchronization of DP slaves via the DP master using a Global Control
message in every DP cycle (isochronous mode)
2.8.2
DP Slaves
A slave is a PROFIBUS node that is supplied by a master. It is addressed from the bus. PROFIBUS addresses are possible within the range between 0 and 125. A max. of 126 slaves is theoretically possible on a master. The PROFIBUS address 126 is reserved for start-up and 127 is reserved as the broadcast address.
Slot
The individual (real or virtual) modules of a slave can be accessed via slots (1 slot = 1 module = 1 data block = an agreed functionality). A slot may contain input and/or output data. A max. of 255 slots is possible per slave. The slot number is an integer in a slave between 0 and 254 and starts at 0 in ascending order. Gaps are permitted. The slot with number 0 is reserved for the slave itself. The diagnostic slot with a special code represents the slave itself. A slot is a consisten data area from the point of view of the bus configuration. A slave on PROFIBUS DP can have several slots of the same and/or different kind. Slots without I/Os are permitted, e.g. diagnostic slots.
1/K4/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.8
2.8.3
Logical address
The mapping of the cyclic data of the slaves in the logic address space is preset from a PROFIBUS SDB (system data block). For each slot, a logic basic address is defined in the address space under which the data of the slot are assigned. The assignment of logic base address and PROFIBUS address is via the PROFIBUS SDB (system data block). Furthermore, each slave in the logic address space is assigned a diagnostic address.
Configuration
The PROFIBUS addresses are defined in the configuration tool HW Config of the SIMATIC Manager. HW Config ensures that no overlaps of assigned address ranges occur for slots and diagnosis. For SIMODRIVE 611 universal drives, the PROFIBUS address of the relevant slaves are generated using this Step 7 module HW Config. For further information about configuring distributed I/O devices, see: References: Getting Started with STEP7, Chapter 11 Creating distributed I/Os using PROFIBUS DP.
S PLC slaves
The addressing in the logic I/O address space is carried out via programming in the PLC user program.
S NC slaves
The addressing in the logic I/O address space is carried out via programming in the NC machine data.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/2-17
The coexistence of PLC and NC in a common I/O address space is ensured by parameterizing subareas for the individual functions. The NC can use address 272 only (compare the conditions of MD 13050: DRIVE_LOGIC_ADRESS). The joint use of input addresses of PLC and NC is possible. Each slave can have several subareas of the address space. A possible address space distribution diagram is shown in Fig. 2-2.
SINUMERIK 840Di X axis Y axis Z axis NCK digital I/O NCK analog I/O Diagnostic address
256 272
Input area
Output area
1023
Fig. 2-2
The I/O devices connected to PROFIBUS DP (such as SIMODRIVE 611 universal drives, I/O modules) will be allocated in a logic I/O address space. The addressing type slave/slot will be established for the PROFIBUS DP areas.
S The individual modules of a slave can be accessed via slots. A slot may
contain input and/or output data.
S The whole I/O device (slave, e.g. drive SIMODRIVE 611 universal) is
addressed as a slot 0 on PROFIBUS.
S The assignment of the individual slots to the logic address space is carried
out via a PROFIBUSSDB. The logic address space covers the range from 0 to 1023.
Note By default, the PROFIBUS diagnostic address 1023 is assigned to the SINUMERIK 840Di and is therefore not available for other nodes on PROFIBUS.
1/K4/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.8.4
SINUMERIK 840Di
DP master
Slot 0
Slot 0
I/O address:
I/O address:
332 332
Fig. 2-3
Errors in the address space distribution (overlap of ranges) are detected during power up by comparing the machine data one with another and with the PROFIBUS SDB.
The drives (axes and spindles) of the NC are allocated in the logic I/O address space using machine data as follows.
Axis MD CTRLOUT_SEGMENT_NR CTRLOUT_MODULE_NR CTRLOUT_NR ENC_SEGMENT_NR ENC_MODULE_NR ENC_INPUT_NR Default value =5 =n =1 =5 =n =1 Meaning PROFIBUS DP (not displayed) Index to DRIVE_LOGIC_ADDRESS Drive selection PROFIBUS DP (not displayed) Index to DRIVE_LOGIC_ADDRESS 1st or 2nd encoder
These MD represent the joining element to describe the bus configuration in the PROFIBUS SDB (system data block).
DRIVE_LOGIC_ADDRESS[0] DRIVE_LOGIC_ADDRESS[1] DRIVE_LOGIC_ADDRESS[] =272 =292 =272+n*20 Base address for drive 1 Base address for drive 2 Base address of drive n
MD 13060: (drive message type for drives connected to PROFIBUS) DRIVE_TELEGRAM_TYPE[0] =102 Message frame type DRIVE_TELEGRAM_TYPE[1] =102 Message frame type DRIVE_TELEGRAM_TYPE[n] =102 Message frame type
For different drives and different message frame types, the assigned address areas can be of different sizes. Input and output areas have optional, but the same start addresses and must match the address of the PROFIBUS DP configuration.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/2-19
ENC_TYPE 0
CTRLOUT_TYPE = 1
ENC_MODULE_NR DRIVE_LOGIC_ADDRESS[n] (I/O address of the set/actual value of the appropriate drive) =1 =2 =3 272 292 312 ... =m 272+ (n*20) f 1
CTRLOUT _MODULE_NR
=1 =2 =3
=m
Fig. 2-4
For non-Siemens drives, the other bits in machine data MD 13070: DRIVE_FUNCTION_MASK bits 4 to 8
are assigned a meaning. By configuring these new bits, you can adapt certain non-standardized PROFIBUS control and/or status bits for SIMODRIVE 611 universal included in the Profidrive profile. Linear drives To allow operation of linear drives, or drive types of non-Siemens slave devices (which do not, for example, support acyclic communication or signal a drive type), a new machine data MD 13080: DRIVE_TYPE_DP has been added.
Rigidity control (DSC) The new machine data make it possible to fine calibrate non-Siemens drives, including combinations with PROFIBUS DP and the DSC function: MD 32644: STIFFNESS_DELAY_TIME MD 37602: PROFIBUS_OUTVAL_DELAY_TIME DSC delay Setpoint delay time
Note If Feedforward control variant MD 32620: FFW_MODE = 3 has already been used on an 840Di, the start-up setting in MD 32810: EQUIV_SPEEDCTRL_TIME should be reconfigured when upgrading to SW 6.3 or later as the values Ti and To will automatically be taken into account. These values must be corrected in EQUIV_SPEEDCTRL_TIME.
1/K4/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Supplementary Conditions
Parameters
When transmitting data via the serial interfaces it is important to ensure that both communications partners have the same parameter settings: this applies in particular to the baud rate and number of stop bits.
Cable
The cable with the order no. 6FX2 0021AA011BF0 is used for the connection to a PC or PG. If a printer with a serial input is to be connected, the cable must be equipped with a modem eliminator connector or a standard serial printer cable must be used.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/3-21
10.00
Notes
1/K4/3-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
12.00 10.00
4
Abbreviation USER PRINTER PG_PC
The three parameter sets for the serial interface X6 on the MMC 100 standard component are stored in three machine data groups which are described in more detail below.
With SW 5 and higher the three machine data groups are each expanded by data 9309, 9319 and 9329.
Note From SW 6.1 and higher: (MMC 100 is the same as HMI Embedded)
4.1
XON character
V24_USER_XON V24_PRINTER_XON V24_PG_PC_XON XON character Minimum input limit: 00 Maximum input limit: FF (suitable from 01) (suitable up to 1F) Changes effective immediately Protection level: 2 Unit: Hex Data type: BYTE Applies from SW 1.1 Significance: XON character: This is the character with which transmission is initiated. It only has an effect with device type XON/OFF. If the special function Start with XON is activated, the program waits for an XON character from the connected device before starting. The device control character (DEVICE CONTROL 1 (XON) or DC 1 is 11H as standard. This is the default value. Input: As number in Parameters display under XON (hex).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/4-23
10.00
4.2
XOFF character
V24_USER_XOFF V24_PRINTER_XOFF V24_PG_PC_XOFF XOFF character Minimum input limit: 00 Maximum input limit: FF (suitable from 01) (suitable up to 1F) Changes effective immediately Protection level: 3/4 Unit: Hex Data type: BYTE Applies from SW 1.1 Significance: XOFF character: This is the character with which transmission is stopped. It only has an effect with device type XON/OFF. The device control character 3 (DEVICE CONTROL 3 (XOFF) or DC 3 is 13H as standard. This is the default value. Input: As number in Parameters display under XOFF (hex).
4.3
V24_USER_EOF V24_PRINTER_EOF V24_PG_PC_EOF Endoftransmission character Minimum input limit: 00 Maximum input limit: FF (suitable from 01) (suitable up to 1F) Changes effective immediately Protection level: 3/4 Unit: Hex Data type: BYTE Applies from SW 1.1 Significance: This is the character with which transmission is stopped. The default setting is 1A: DOS character for file end in text files. Input: As number in Parameters display under End of transmission. The character has an effect when Stop with end of transmission character is marked with a cross.
1/K4/4-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
4.4
Special bits
V24_USER_CONTROLS V24_PRINTER_CONTROLS V24_PG_PC_CONTROLS Special bits 01001100 Minimum input limit: 00000000 01001100 10000000 Changes effective immediately Protection level: 3/4 Data type: BYTE Significance:
Applies from SW 1.1 The special functions that can be activated in the Parameters display are stored in these special bits. If the bit is set: Special function is active. Stored in the machine data as a bit with following assignment: Bit 0 Start with XON Bit 1 Program start with LF Bit 2 Block end with CR LF Bit 3 Stop with end of transmission character Bit 4 Evaluate DSR signal Bit 5 Leader and trailer Bit 6 Tape format Bit 7 Time monitoring Input: Activation in Parameters display under Special functions An explanation of the special bits is given below.
Bit 0
Bit 1
Bit 2
Block end with CR LF Active: CR characters (carriage return, hexadecimal OD) are inserted in tape format output. CR characters are removed from input in tape format. Inactive: Additional characters are not inserted.
Bit 3
Stop with end of transmission character Active: End of transmission character is evaluated. Inactive: End of transmission character is not evaluated (required for binary data transmission).
Bit 4
Evaluate DSR signal Active: Transmission is interrupted if DSR signal (connection 6 on X6 or X7 connector (applies to MMC 101103 only) is missing. Inactive: DSR signal has no effect.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/4-25
10.00
Bit 5
Leader and trailer Active: Leader ignored during input Output 120x0(hex) during output (feed before and after data) Inactive: Both leader and trailer are read in. No leader 0(hex) on output.
Bit 6
Tape format Active: Programs read in acc. to DIN 66025, e.g. SINUMERIK 3/8 programs: SINUMERIK 3/8: Start activated by % file name, %MPFxxx or %SPFxxx. Inactive: Archives read in in SINUMERIK 840D/810D archive format.
Bit 7
Time monitoring Active: If there are transmission problems, transmission is aborted after 10 seconds. Time monitoring is controlled by a timer which is reset on every transmitted character. Inactive: Transmission is not aborted.
1/K4/4-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
4.5
Device type
9304 V24_USER_RTS 9314 V24_PRINTER_RTS 9324 V24_PG_PC_RTS MD number Device type Default setting: 1 Minimum input limit: 0 (XON/XOFF) Changes effective immediately Protection level: 3/4 Data type: BYTE Significance:
Applies from SW 1.1 Transmission control support exists for two different device types: XON/OFF and RTS/ CTS. 1: XON/XOFF Control characters XON (DC1, DEVICE CONTROL 1) and XOFF (DC3) offer one type of transmission control. As soon as the buffer of the I/O device is full it transmits XOFF, as soon as it can receive data again it transmits XON. 0: RTS/CTS The signal RTS (Request To Send) controls the transmission of the data transmission equipment. Active: Data to be sent, passive: Do not exit send mode until all transferred data have been sent. Signal CTS (Clear To Send) flags the ready to send state of the data transmission equipment as the acknowledgment signal for RTS. Input: Selection in Parameters display under Device type.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/4-27
10.00
4.6
Baud rate
9305 V24_USER_BAUD 9315 V24_PRINTER_BAUD 9325 V24_PG_PC_BAUD MD number Baud rate Default setting: 5 Minimum input limit: 0 Maximum input limit: 6 9600 baud Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW Significance: This is the modulation rate in baud, a unit of rate of data transmission. Input: By selection in Parameters display under Baud rate. 0: 300 baud 1: 600 baud 2: 1200 baud 3: 2400 baud 4: 4800 baud 5: 9600 baud 6: 19200 baud with SW 3.1 and higher
4.7
Data bits
9306 V24_USER_DATABITS 9316 V24_PRINTER_DATABITS 9326 V24_PG_PC_DATABITS MD number Data bits Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 8 data bits Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW Significance: Number of data bits for asynchronous transmission. Input: By selection in Parameters display under Data bits 0: 7 data bits 1: 8 data bits
1/K4/4-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
4.8
Parity
9307 V24_USER_PARITY 9317 V24_PRINTER_PARITY 9327 V24_PG_PC_PARITY MD number Parity Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 No parity Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW Significance: Parity bits are used to detect errors: The parity bits are added to the coded characters to make the number of places set to 1 an odd number (odd parity) or an even number (even parity). Input: By selection in Parameters display under Parity 0: No parity 1: Even parity 2: Odd parity
4.9
Stop bits
9308 V24_USER_STOPBIT 9318 V24_PRINTER_STOPBIT 9328 V24_PG_PC_STOPBIT MD number Stop bits Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 1 stop bits Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 1.1 Significance: Number of stop bits for asynchronous transmission. Input: By selection in Parameters display under Stop bits 0: 1 stop bits 1: 2 stop bits
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/4-29
10.00
4.10
RS232 interface
9309 V24_USER_LINE 9319 V24_PRINTER_LINE 9329 V24_PG_PC_LINE MD number RS232 interface (COM1/COM2) Default setting: 1 Minimum input limit: 1 Maximum input limit: 2 COM1 Changes effective immediately Protection level: 3/4 Unit: Data type: BYTE Applies from SW 5 Significance: Selection of RS232 interface via which a file transfer must be initiated. Input: Selection in Parameters display under RS232 interface 1: COM1 2: COM2
1/K4/4-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Descriptions
Hardware interfaces
For a description of the hardware design of the interfaces, please refer to References: /BH/ Operator Components Manual
5.1
Serial interfaces
Assignment
The pin assignments of serial interfaces X 6 and X 7 (X 7 on MMC 101-103 only) comply with the standard which generally governs PC equipment: RS232 defines the meaning of the individual leads which are listed below together with their ID codes.
Connection 1 2 3 4 5 6 7 8 9
Meaning Carrier detect Receive data Transmit data Data terminal ready Signal ground Data set ready Request to send Clear to send Ring indicator
Type of connection Input Input Output Output Signal ground Input Output Input Input
Level
The level of the serial interface is governed by the V.28 standard. The standard ICs 75188 and 75189 which operate on 12V are used as drives and receivers.
Control
The control circuit on the MMC 100 is compatible with interface controller type 16450. The control switch on the MMC 101103 is compatible with interface controllers 16450 and 16550.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/5-31
10.00
5.2
Parallel interface
Assignment
The pin assignments of the parallel interface X8 (MMC 101103 only) comply with the standard which generally governs PC equipment: 25-pin D subminiature female connector. The connector assignment is given in the table below.
Connection 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Designation STROBE DATA 0 DATA 1 DATA 2 DATA 3 DATA 4 DATA 5 DATA 6 DATA 7 ACKNLG BUSY PE SLCT ADF Error INIT SLCTIN GND GND GND GND GND GND GND GND
Type of connection Output Bidirectional Bidirectional Bidirectional Bidirectional Bidirectional Bidirectional Bidirectional Bidirectional Input Input Input Input Output Input Output Output Signal ground Signal ground Signal ground Signal ground Signal ground Signal ground Signal ground Signal ground
Printer data bit 0 Printer data bit 1 Printer data bit 2 Printer data bit 3 Printer data bit 4 Printer data bit 5 Printer data bit 6 Printer data bit 6
Acknowledge from printer Busy from printer Paper error Select from printer Autofeed printer Error from printer Initialize printer Select to printer Signal ground
Signal ground Signal ground Signal ground Signal ground Signal ground Signal ground Signal ground
1/K4/5-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 6.2
Example
6
Both communications partners must have the same parameter settings before transmission can take place. The parameters on the left in the examples are entered, for example, in selection fields on the operator panel under SERVICES/DATA/V.24_SET on the MMC 100. The parameters on the right are activated by entering an X in the checkboxes. An X means that the function is activated.
6.1
6.2
With this setting, files can be archived and read in in SINUMERIK 840D/810D format. For transparent transmission (MSD, FDD files), Stop with end of transmission character must not be selected (PG does not stop automatically when saving). Other settings are possible with ASCII data. They must correspond to those on the programmer. Cable 6FX 20021AA01 is used for this purpose.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/6-33
10.00
6.3
X X X X
With this setting, programs can be read in according to DIN or from System 3/8 (start with %).
6.4
Tape input/output
Leader and trailer must be marked with an X with tape reader and puncher. If the tape reader is controlled via CTS, Start with XON must also be marked. The tape reader can be stopped when the tape is inserted by pressing INPUT START/STOP. Device type Baud rate Stop bits Parity Data bits XON XOFF End of trans. RTSCTS 9600 2 none 8 00 00 00 Start with XON Program start with LF End of block with CR LF Stop with end of transmission character Evaluate DSR signal Leader and trailer Tape format Time monitoring
X X
X X X
6.5
1/K4/6-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 6.6
6.6
00
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/6-35
10.00
Notes
1/K4/6-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
7
Name Doc. Refer to EMB EMBEDDED (SW 6.1 and higher) XON character XOFF character Transmission character Special bits Device type (linecontrolled) Baud rate (300, 600, 1200, 2400, 4800, 9600, 19200) Data bits Parity bits Stop bits RS232 interface (COM1/COM2) IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2
Machine data
Identifier User parameter (USER
Number Operator panel data ($MM_ ... ) ADV EMB 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319
Name
Doc. Refer to
ADV ADVANCED, PRINT_USER_XON PRINT_USER_XOFF PRINT_USER_EOF PRINT_USER_CONTROLS PRINT_USER_RTS PRINT_USER_BAUD PRINT_USER_DATABITS PRINT_USER_PARITY PRINT_USER_STOPBIT PRINT_USER_LINE
EMB EMBEDDED (SW 6.1 and higher) Printer: XON character Printer: XOFF character Printer: Transmission character Printer: Special bits Printer: Device type (linecontrolled) Printer: Baud rate (300, 600, 1200, 2400, 4800, 9600, 19200) Printer: Data bits Printer: Parity bits Printer: Stop bits RS232 interface (COM1/COM2) IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/K4/7-37
10.00
Number Operator panel data ($MM_ ... ) ADV EMB 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329
Name
Doc. Refer to
ADV ADVANCED, V24_PG_PC_XON V24_PG_PC_XOFF V24_PG_PC_EOF V24_PG_PC_CONTROLS V24_PG_PC_RTS V24_PG_PC_BAUD V24_PG_PC_DATABITS V24_PG_PC_PARITY V24_PG_PC_STOPBIT V24_PG_PC_LINE
EMB EMBEDDED (SW 6.1 and higher) PG: XON character PG: XOFF character PG: Transmission character PG: Special bits PG: Device type (linecontrolled) PG: Baud rate (300, 600, 1200, 2400, 4800, 9600, 19200) PG: Data bits PG: Parity bits PG: Stop bits RS232 interface (COM1/COM2) IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2 IM2
1/K4/7-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 EMERGENCY STOP actuators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EMERGENCY STOP sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EMERGENCY STOP acknowledgment . . . . . . . . . . . . . . . . . . . . . . .
1/N2/1-3 1/N2/2-5 1/N2/2-6 1/N2/2-7 1/N2/2-8 1/N2/5-11 1/N2/5-11 1/N2/5-11 1/N2/5-11 1/N2/7-13 1/N2/7-13 1/N2/7-13 1/N2/7-13 1/N2/7-14 J
3 4 5
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 General signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 7
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/N2/i
10.00 10.00
Notes
1/N2/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
Standard EN 2922
In accordance with the basic safety requirements of the EC Machinery Directive, stipulated in Subsection 6.1.1 of EN 2922 with respect to EMERGENCY STOP, machines must be equipped with an EMERGENCY STOP facility.
Exceptions
S Machines where an EMERGENCY STOP facility would not reduce the risk,
either because the shutdown time would not be reduced or because the measures required to be taken would not be suitable for controlling the risk.
S Activation of EMERGENCY STOP sequence in the NC via a PLC input. S The EMERGENCY STOP procedure on the NC reduces the speed of all
axes and spindles as quickly as possible.
S All machine functions controlled by the PLC can be brought into a safe state
which can be configured by the machine manufacturer.
S After the EMERGENCY STOP state has been canceled, it is not necessary
to reference axes or synchronize spindles (positions are automatically corrected).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/N2/1-3
10.00
Notes
1/N2/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Detailed Description
Important It is the duty of the machine manufacturer to observe national and international standards (see the notes on standards in the following paragraph). The SINUMERIK FM-NC and 840D/810D support the machine manufacturer in the implementation of the EMERGENCY STOP function in accordance with the specifications in this Description of Functions. The responsibility for the EMERGENCY STOP function (its triggering, procedure and acknowledgment) rests exclusively with the machine manufacturer.
Note Particular reference should be made to the following standards for the EMERGENCY STOP function: D EN 292 Part 1 D EN 292 Part 2 D EN 418 D EN 60204 Part 1: 1992 Section 10.7 VDE 0113 Part 1 is only valid for a transitional period and will be superseded by EN 60204.
S Normal operation.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/N2/2-5
10.00
2.1
EN 418 standards
EN 418 stipulates that EMERGENCY STOP actuating components must be designed such that they are easy to operate by operating personnel or others who may need to make use of them. The following list includes some possible types of actuator:
S Mushroom-head pushbutton switches S Wires/cables, cords, rods S Puller grips S In special cases: foot-operated switches without protective covers.
All EMERGENCY STOP switches must be mechanically selflatching and installed within easy reach.
The Siemens machine control panel (MCP) for FM-NC and 840D/810D is equipped with a mushroom-head pushbutton switch with positive opening operation referred to below as the EMERGENCY STOP pushbutton.
For details about connecting the EMERGENCY STOP pushbutton, please see hardware configuring guide. References: /BH/ Operator Components Manual
EMERGENCY STOP at NC
Actuation of the EMERGENCY STOP pushbuttons or a signal derived directly from the button must be taken to the control system (PLC) as a PLC input. In the PLC user program, this PLC input must be taken to IS EMERGENCY STOP (DB10 DBX56.1) in the NC. The reset of the EMERGENCY STOP button, or a signal generated directly from its reset, must be communicated to the programmable controller (PLC) in the form of a PLC input signal. In the PLC user program, this PLC input must be taken to IS Acknowledge EMERGENCY STOP (DB10 DBX56.2) in the NC.
1/N2/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
2.2
EN 418 standard
Following actuation of the operating part of an EMERGENCY STOP switch, the EMERGENCY STOP must automatically act in the best possible way to avoid or reduce the risk. Best possible way means that the smallest delay rate and the correct stop category (defined in EN 60204) can be specified according to the estimated risk.
Sequence in the NC
The predefined (in EN 418) sequence of internal functions implemented to reach the EMERGENCY STOP state is as follows in the control system: 1. Parts program execution is interrupted. All axes and spindles are braked along a braking ramp defined in MD 36610: AX_EMERGENCY_STOP_TIME. A steep braking ramp (short AX_EMERGENCY_TIME setting) results in rapid deceleration at maximum braking current (setpoint speed input = 0). 2. IS Mode group ready (DB11, ... DBX6.3) DBX6.3) is reset. 3. IS EMERGENCY STOP active (DB10 DBX106.1) is set. 4. Alarm 3000 is set. 5. On expiry of a delay that is set for specific axes/spindles in MD 36620: SERVO_DISABLE_DELAY_TIME (cutout delay servo enable), the controller enables (FMNC: the controller enable relay) are disabled. It must be noted in this respect that the setting in SERVO_DISABLE_DELAY_TIME is at least as high as the setting for AX_EMERGENCY_STOP_TIME. 6. All axes and spindles are switched internally to follow-up mode (no position control active).
The sequence of EMERGENCY STOP functions on the machine is determined solely by the machine manufacturer. Attention should be paid to the following points in connection to the procedure on the NC:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/N2/2-7
10.00
Important The responsibility for interrupting the power supply rests with the machine manufacturer.
S The PLC I/Os (digital and analog I/Os) are not affected by the procedure on
the NC. If individual outputs are required to attain a particular state or voltage level in the event of an EMERGENCY STOP, the machine manufacturer must include functions for this purpose in the PLC user program.
S The NCK I/Os (high-speed digital I/Os) are not affected by the procedure on
the NC. If individual outputs must assume a specific state in the case of EMERGENCY STOP, the machine manufacturer must transfer this state to the NC via IS DB10 DBB4 to 7 in the PLC user program.
Important If the internal functions in the NC should not be executed in the predetermined sequence in the event of an EMERGENCY STOP, then IS EMERGENCY STOP (DB10 DBX56.1) must not be set at any time up to the point that an EMERGENCY STOP defined by the machine manufacture in the PLC user program is reached. As long as the EMERGENCY STOP interface signal has not been set and no other alarm exists, all interface signals are effective in the NC. Any EMERGENCY STOP state defined by the manufacturer (including axis/spindle-specific and channel-specific) can therefore be assumed.
2.3
EN 418 standard
The EMERGENCY STOP switch may only be reset by manual actuation of the operating part. The reset of the EMERGENCY STOP operating part must not trigger a restart command. It should not be possible to start the machine until all actuated EMERGENCY STOP operating parts have been individually and deliberately reset.
The EMERGENCY STOP state is reset only if IS Acknowledge EMERGENCY STOP (DB10 DBX56.2) followed by IS Mode group reset (DB11, ... DBX0.7) are set. It must be noted in this respect that IS Acknowledge EMERGENCY STOP and IS Reset must be set (together) for a long enough period for IS EMERGENCY STOP active (DB10 DBX106.1) to be reset (see Fig. 2-1).
1/N2/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
IS EMERGENCY STOP DB10 DBX56.1 IS Acknowledge EMERGENCY STOP DB10 .DBX56.2 IS EMERGENCY STOP active DB10 DBX106.1 RESET interface signal DB21, ...DBX7.7 1 2 3
Fig. 2-1
2 3
IS Acknowledge EMERGENCY STOP has no effect IS Reset has no effect IS Acknowledge EMERGENCY STOP and RESET reset EMERGENCY STOP active Reset EMERGENCY STOP
S The servo enable (FM-NC: controller enable relay) is enabled. S Follow-up mode is canceled for all axes and position control mode resumed. S IS Position control active is set. S IS Mode group ready is set. S IS EMERGENCY STOP active interface signal is reset S Alarm 3000 is canceled. S Parts program processing is interrupted for all channels.
PLC + NCK I/Os
The PLC user program must switch the PLC and NCK I/Os to the correct state for operation of the machine.
Reset
IS Reset (DB21, ... DBX7.7) alone cannot reset the EMERGENCY STOP status (see figure below).
Power OFF/ON
Power OFF/ON resets the EMERGENCY STOP state unless IS EMERGENCY STOP (DB10 DBX56.1) is still set.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/N2/2-9
10.00
Notes
1/N2/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Supplementary Conditions
The following standards must be observed in all cases: EN 292 EN 418 EN 60204
3
J
4
J
Signal Descriptions
5.1
General signals
EMERGENCY STOP Signal(s) to NC (PLC > NC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The NC is switched to the EMERGENCY STOP state and the EMERGENCY STOP procedure is started on the NC (see Section 2.2). D The NC is not in the EMERGENCY STOP state. D The EMERGENCY STOP state is (still) active, but can be reset with IS Acknowledge EMERGENCY STOP and mode group reset interface signals. IS Acknowledge EMERGENCY STOP (DB10 DBX56.2) IS EMERGENCY STOP active (DB10 DBX106.1)
DB 10 DBX56.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/N2/5-11
10.00
DB 10 DBX56.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Acknowledge EMERGENCY STOP Signal(s) to NC (PLC > NC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The EMERGENCY STOP state is reset only if IS Acknowledge EMERGENCY STOP (DB10 DBX56.2) followed by IS Mode group reset (DB11, ... DBX0.7) are set. It must be noted in this respect that IS Acknowledge EMERGENCY STOP and IS Reset must be set (together) for a long enough period for IS EMERGENCY STOP active (DB10 DBX106.1) to be reset. Resetting the EMERGENCY STOP state has the following effects: D The controller enable (FM-NC: the controller enable relay) is activated D Follow-up mode is canceled for all axes and position control mode is activated D IS Position control active is set D IS Mode group ready is set D IS EMERGENCY STOP active is reset D Alarm 3000 is canceled D Parts program processing is interrupted for all channels.
2 3
IS Reset (DB21, ... DBX7.7) cannot reset the EMERGENCY STOP status. IS EMERGENCY STOP (DB10 DBX56.1) IS EMERGENCY STOP active (DB10 DBX106.1) IS Mode group reset (DB10 DBX0.7)
DB 10 DBX106.1 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Related to ....
EMERGENCY STOP active Signal(s) to NC (PLC > NC) Signal(s) updated: cyclically The NC is in the EMERGENCY STOP state.
1/N2/5-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Example
None
6
J
7
Name Reference
7.1
Interface signals
Bit, byte
DB number General 10 10 10
7.2
Number
Machine data
Identifier Name Reference
Drive machine data ($MD_ ... ) 1404 PULSE_SUPPRESSION_DELA Y Time for pulse suppression DB1
Axis-specific ($MA_ ... ) 36610 36620 AX_EMERGENCY_STOP_TIME SERVO_DISABLE_DELAY_TIME Length of the braking ramp for error states Cutout delay servo enable A3 A2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/N2/7-13
10.00
7.3
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
1/N2/7-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 2.4 Transverse axis definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diameter programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Conversion of diameter values to internal radius values . . . . . . . . . Conversion of internal radius values to diameter values . . . . . . . . .
1/P1/1-3 1/P1/2-5 1/P1/2-5 1/P1/2-6 1/P1/2-7 1/P1/2-7 1/P1/4-9 1/P1/4-9 1/P1/7-11 1/P1/7-11 1/P1/7-11 1/P1/7-11 1/P1/7-11 J
3 4 5 6 7
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P1/i
10.00
Notes
1/P1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
Geometry axes can be defined as transverse axes via a machine data. Measurements for transverse axes are programmed either in radius or diameter format. The diameter programmed is activated/deactivated by means of G commands DIAMON, DIAMOF. When diameter programming is selected:
S All offsets are entered, programmed and displayed in radius format. S Programmed end positions are converted to internal radius values. S Absolute interpolation parameters (e.g. I, J, K) for G2/G3 programming are
converted to internal radius values.
S Measurements produced in the WCS with the aid of touch-trigger probes are
stored in diameter format.
S Setpoints and actual values can be read in diameter format in the WCS with
the aid of system variables. When radius programming is selected, the above data are always entered, programmed, stored internally, read and displayed in radius format.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P1/1-3
10.00
Notes
1/P1/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Detailed Description
2.1
General
Longitudinal axis is the term generally used in the turning technology to describe the Z axis; the term transverse axis is used to described the X axis. Measurements for a transverse axis are generally specified in diameter format (double the path dimension of other axes). G commands can be used to switch between diameter and radius programming.
X Transverse axis
M W D1 D2 Z Longitudinal axis
Fig. 2-1
Channel-specific MD 20100: DIAMETER_AX_DEF (geometry axis with transverse axis function) can be used to define geometry axes as face axes. One transverse axis can be defined for each channel.
The geometry axis whose position determines the master spindle speed in connection with G96/G961 (constant cutting rate) and G97/G971 (constant speed) must be defined as a transverse axis or else alarm 10870 No transverse axis defined will be generated.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P1/2-5
10.00
2.2
Diameter programming
Transverse axes can be programmed on the basis of diameter or radius. The program commands DIAMON and DIAMOF can be used to activate or deactivate diameter programming for the transverse axis of a channel. DIAMON and DIAMOF belong to G group 29 and are modally active. The initial setting is defined in MD 20150: GCODE_RESET_VALUES [28] (initial setting of G groups). If DIAMON is used to activate diameter programming for an axis which has not been defined as a transverse axis, then alarm 16510 No transverse axis defined is output.
JOG mode
If DIAMON is active, then the increments entered for machine functions INC (incremental dimension) and handwheel traverse in JOG are interpreted and traversed as diameter values for the associated transverse axis.
If the DIAMON function is activated for a transverse axis, then the position, distance-to-go and REPOS offset are displayed as diameterrelated data when the workpiece coordinate system (WCS). This information is always displayed as radius-related data in the machine coordinate system (MCS). The format used in the service displays for axis, FDD and MSD is always radius.
Offsets
All offsets (e.g. tool offsets, programmable and settable frames, work offset external, DRF and preset offsets) are always entered, programmed and displayed as radius values (even if they are active in the transverse axis and command DIAMON is active).
Working area limitations, software limit switch, feed values Positioning axes
These data are always entered, programmed and displayed as radius values.
If a geometry axis that has been defined as a transverse axis by means of machine data is operated as a positioning axis in the parts program in response to command POS [U] or POSA [U], then any diameter programming active for the axis will remain operative until it is deselected again. When POSA [U] is active, the program advances to the next NC block even if the position has not yet been reached.
1/P1/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.3
The following quantities for a transverse axis are converted to internal radius values (i.e. the programmed values are halved) when diameter programming is active:
2.4
In connection with the functions below, the internal radius values of a transverse axis are converted into diameter values (e.g. radius values are doubled) and stored when diameter programming is active:
S Measurements taken in the WCS with the functions MEAS, MEASW. S Setpoints and actual values read in the WCS with the system variables
$P_EP[x] or $AA_IW[x]. (For measurement or reading in the MCS, the calculated values are stored as radius values).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P1/2-7
Transverse Axes (P1) 2.4 Conversion of internal radius values to diameter values
10.00
Notes
1/P1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Supplementary Conditions
3
SINUMERIK 810D SW 1 SINUMERIK 840D SW 2
20100 DIAMETER_AX_DEF MD number Geometry axis with transverse axis function Default setting: Minimum input limit: Maximum input limit: 16 characters Changes effective after POWER ON Protection level: 2 Unit: Data type: STRING Applies from SW 1.1 Significance: The MD is used to define a geometry axis as a transverse axis. One transverse axis can be defined for each channel. The axis identifier of an active geometry axis that has been defined via channel-specific MD 20050: AXCONF_GEOAX_ASSIGN_TAB[n] or MD 24120: TRAFO_AX_GEOAX_ASSIGN_TAB_1[n] (SW 4 and higher) and MD 20060: AXCONF_GEOAX_NAME_TAB[n] must be specified. When space characters are entered or when the axis identifier is specified for an axis which is not defined as a geometry axis, activation of the diameter programming for Alarm 16510 No face axis present and alarm 10870 No transverse axis defined when G96/G961 and G97/G971 are programmed. Related to .... MD 20050: AXCONF_GEOAX_ASSIGN_TAB[n] (assignment of geometry axis to channel axis) MD 20060: AXCONF_GEOAX_NAME_TAB[n] (geometry axis in channel) MD 24120: TRAFO_AX_GEOAX_ASSIGN_TAB_1[n] (assignment between geometry axis and channel axis for transformation 1)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P1/4-9
10.00
Notes
1/P1/4-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Descriptions
None
5
J
Example
None
6
J
7
Name Reference
7.1
Number
Machine data
Identifier
Channel-specific ($MC_ ... ) 20050 20060 20100 20150 AXCONF_GEOAX_ASSIGN_TAB[n] AXCONF_GEOAX_NAME_T AB[n] DIAMETER_AX_DEF GCODE_RESET_VALUES[n] Assignment of geometry axis to channel axis Geometry axis name in channel Geometry axis with transverse axis function Reset G groups K1 K2 K2
7.2
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P1/7-11
10.00
Notes
1/P1/7-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.03 10.00
SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (Part 1) PLC Basic Program (P3)
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.6 2.6.1 2.6.2 2.6.3 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 Key data of PLC CPUs for FM-NC, 840D and 810D . . . . . . . . . . . . Reserving resources (timer, FC, FB, DB, peripherals) . . . . . . . . . . . Starting up hardware configuration of PLC CPUs . . . . . . . . . . . . . . . Starting up the PLC program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the basic program for FM NC, 810D, 840D . . . . . . . . . . . . Application of basic program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Version codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC series start-up, PLC archives: . . . . . . . . . . . . . . . . . . . . . . . . . . . Software upgrades . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I/O modules (FM, CP modules) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Linking PLC CPUs to FM-NC, 810D, 840D . . . . . . . . . . . . . . . . . . . . Properties of PLC CPUs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interface on 810D and 840D with integrated PLC . . . . . . . . . . . . . . . PLC interface on FM-NC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagnostics buffer on PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interface structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC/NCK interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC/MMC interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC/MCP/HHU interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure and functions of the basic program . . . . . . . . . . . . . . . . . . Start-up and synchronization of NCK PLC . . . . . . . . . . . . . . . . . . . . . Cyclic operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Time alarm processing (OB 35) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Process alarm processing (OB40) . . . . . . . . . . . . . . . . . . . . . . . . . . . . Response to NC failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functions of basic program called from user-program . . . . . . . . . . . Symbolic programming of user program with interface DB . . . . . . . M decoding acc. to list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/P3/1-5 1/P3/2-7 1/P3/2-7 1/P3/2-14 1/P3/2-15 1/P3/2-20 1/P3/2-20 1/P3/2-21 1/P3/2-23 1/P3/2-24 1/P3/2-24 1/P3/2-25 1/P3/2-27 1/P3/2-28 1/P3/2-28 1/P3/2-30 1/P3/2-30 1/P3/2-30 1/P3/2-32 1/P3/2-33 1/P3/2-35 1/P3/2-35 1/P3/2-41 1/P3/2-44 1/P3/2-49 1/P3/2-50 1/P3/2-50 1/P3/2-52 1/P3/2-52 1/P3/2-53 1/P3/2-54 1/P3/2-56 1/P3/2-58 1/P3/2-63
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/i
10.03 10.00
2.7.10 2.8 3
Configurability of machine control panel, handheld unit . . . . . . . . . . SPL for Safety Integrated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/P3/2-66 1/P3/2-73 1/P3/3-75 1/P3/3-75 1/P3/3-75 1/P3/3-77 1/P3/3-77 1/P3/3-78 1/P3/3-78 1/P3/3-80 1/P3/3-88 1/P3/4-89 1/P3/4-89 1/P3/4-102 1/P3/4-109 1/P3/4-115 1/P3/4-138 1/P3/4-143 1/P3/4-147 1/P3/4-152 1/P3/4-155 1/P3/4-159 1/P3/4-163 1/P3/4-164 1/P3/4-167 1/P3/4-168 1/P3/4-171 1/P3/4-179 1/P3/4-182 1/P3/4-184 1/P3/4-185 1/P3/4-188 1/P3/4-193 1/P3/4-197 1/P3/4-200 1/P3/4-209 1/P3/4-217 1/P3/4-224
Supplementary Conditions and NC VAR Selector . . . . . . . . . . . . . . . . . . . . 3.1 3.1.1 3.1.2 3.1.3 3.2 3.2.1 3.2.2 3.2.3 Supplementary conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming and parameterizing tools . . . . . . . . . . . . . . . . . . . . . . . SIMATIC documentation required . . . . . . . . . . . . . . . . . . . . . . . . . . . . Relevant SINUMERIK documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . NC VAR selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Startup, installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Block Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 4.11 4.12 4.13 4.14 4.15 4.16 4.17 4.18 4.19 4.20 4.21 4.22 4.23 4.24 4.25 4.26 FB 1: RUN_UP Basic program, start-up section . . . . . . . . . . . . . . . . FB 2: Read GET NC variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FB 3: PUT Write NC variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FB 4: PI_SERV General PI services . . . . . . . . . . . . . . . . . . . . . . . . . . FB 5: Read GUD variable GETGUD . . . . . . . . . . . . . . . . . . . . . . . . . . FB 7: PI_SERV2 General PI services . . . . . . . . . . . . . . . . . . . . . . . . . FB 9: M : N operating unit changeover . . . . . . . . . . . . . . . . . . . . . . . . FB 10: Safety relay (SI relay) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FB 11: Brake test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FB 29: Signal recorder and data trigger diagnostics . . . . . . . . . . . . . FC 2: GP_HP Basic program, cyclical section . . . . . . . . . . . . . . . . . FC 3: GP_PRAL Basic program, interrupt-controlled section . . . . . FC 5: GP_DIAG basic program, diagnostic alarm (only FM-NC) . . FC 7: TM_REV Transfer block for tool change with revolver . . . . . FC 8: TM_TRANS Transfer block for tool management . . . . . . . . . FC 9: ASUB Start-up of asynchronous subprograms . . . . . . . . . . . . FC 10: AL_MSG Error and operating messages . . . . . . . . . . . . . . . FC 12: AUXFU Call interface for user with auxiliary functions . . . . FC 13: BHGDisp Display control for handheld unit . . . . . . . . . . . . . . FC 15: POS_AX Positioning of linear and rotary axes . . . . . . . . . . . FC 16: PART_AX Positioning of indexing axes . . . . . . . . . . . . . . . . . FC 17: Y Delta Star/delta switchover . . . . . . . . . . . . . . . . . . . . . . . . . FC 18: SpinCtrl Spindle control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FC 19: MCP_IFM Transmission of MCP signals to interface . . . . . FC 21: Transfer PLC NCK data exchange . . . . . . . . . . . . . . . . . . . . . FC 22: TM_DIR Direction selection for tool management . . . . . . . .
1/P3/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.03 10.00
FC 24: MCP_IFM2 Transmission of MCP signals to interface PLC/NCK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FC 25: MCP_IFT Transfer of MCP/OP signals to interface . . . . . . FC 26: HPU_MCP Transfer of HPU/HT6 signals to the interface . FC 19, FC 24, FC 25, FC 26 Source code description . . . . . . . . . .
1/P3/4-226 1/P3/4-230 1/P3/4-234 1/P3/4-240 1/P3/5-243 1/P3/5-243 1/P3/5-243 1/P3/5-244 1/P3/5-247 1/P3/6-251 1/P3/6-251 1/P3/6-251 1/P3/6-253 1/P3/6-254 1/P3/7-257 1/P3/7-258 1/P3/7-258 1/P3/7-259 1/P3/7-260 1/P3/7-261 1/P3/7-263 1/P3/7-264 1/P3/7-265 1/P3/8-267 1/P3/8-268 1/P3/8-270 1/P3/8-271 1/P3/8-271 1/P3/8-273 1/P3/8-273 1/P3/8-275 1/P3/8-276 1/P3/8-276 1/P3/8-278 1/P3/8-279 1/P3/8-280
Signal/Data Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.2 5.3 5.4 Interface signals NCK/PLC, MMC/PLC, MCP/PLC . . . . . . . . . . . . . Decoded M signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Message signals in DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 6.2 6.3 6.4 FB/FC assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DB assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Assigned timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory requirements of basic PLC program for FM-NC, 810D, 840D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Useful Tips on Programming with STEP7 . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.2.1 7.2.2 7.2.3 7.3 7.4 7.5 Copying data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ANY and POINTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Use of POINTER and ANY in FC if POINTER or ANY is available as parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Use of POINTER and ANY in FB if POINTER or ANY is available as parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . POINTER or ANY variable for transfer to FC or FB . . . . . . . . . . . . . Multi-instance DB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Determining offset addresses for data block structures . . . . . . . . . .
Coupling two FM-NC Modules to one PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.1 8.2 8.3 8.3.1 8.3.2 8.3.3 8.4 8.5 8.5.1 8.5.2 8.5.3 8.5.4 Coupling two FM-NCs with one PLC . . . . . . . . . . . . . . . . . . . . . . . . . . Coupling with the components MMC/MSTT/OP . . . . . . . . . . . . . . . . Interface structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC/NCK interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC/MMC interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC/MCP/HHU interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Function of the basic program for two FM-NCs . . . . . . . . . . . . . . . . Special features of blocks when using two FM-NCs . . . . . . . . . . . . FB1: RUN_UP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FB2...5: Read/write NC variables, PI services, GUD variables . . . FC 15, 16, 18: POS_AX, PART_AX, SpinCtrl . . . . . . . . . . . . . . . . . . FC 9: ASUB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/iii
10.03 10.00
8.6 8.7 9
Machine Data, Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.1 9.1.1 9.1.2 9.2 Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/P3/iv
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
General
The basic program organizes the exchange of signals and data between the PLC user program and the NCK (Numerical Control Kernel), MMC (Man Machine Communication) and MCP (Machine Control Panel) areas. A distinction is made between the following groups for signals and data:
S They contain commands transmitted from the PLC to the NCK (such as
start or stop) and status information from the NCK (such as program running, interrupted, etc.).
PLC functions that have to be executed as a function of the workpiece program are triggered by auxiliary functions in the workpiece program. If the auxiliary functions are used to start execution of a block, the type of auxiliary function determines whether the NCK has to wait before executing the function (e.g. during a tool change) or whether the function is executed in parallel to machining of the workpiece (e.g. for tool preparation on milling machines with chain-type magazines). The data transfer must be as fast and yet as reliable as possible, in order to minimize the influence on the NC machining process. Data transfer is therefore controlled by alarms and acknowledgments. The basic program evaluates the signals and data, acknowledges this to the NCK and transfers the data to the application interface at the start of the cycle. Where the data do not require user acknowledgment, this does not affect NC machining.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/1-5
10.00
An event-driven signal exchange PLC > NCK takes place whenever the PLC passes a request to the NCK (e.g. traversal of an auxiliary axis). In this case, the data transfer is also controlled by acknowledgment. When performed from the user program, this type of signal exchange is triggered using a function block (FB) or function call (FC). The associated FBs (Function Blocks) and FCs (Function Calls) are supplied together with the basic program.
Messages
User messages are acquired and conditioned by the basic program. A defined bit field is used to transfer the message signals to the basic program. The signals are evaluated there and entered in the PLC diagnostics buffer on the occurrence of the message events. Where an operator panel (e.g. MMC 100) is provided, the messages are transferred to and displayed on the OP.
Warning The function of the machine is largely determined by the PLC program. Every PLC program in the working memory can be edited with the programming device.
1/P3/1-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
PLC Basic Program (P3) Key data of PLC CPUs for FM-NC, 840D and 810D
Detailed Description
2.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-7
PLC Basic Program (P3) 2.1 Key data of PLC CPUs for FM-NC, 840D and 810D
11.03 10.00
810D and 840D Integrated PLC CPU3152DP 6ES7 3152AF00 0AB0 Integrated PLC CPU3152DP Master/Slave 6ES7 3152AF01 0AB0 96 , 160, 224, 288, 352, 416, 480KB (dependent on option) Up to 96 kbytes No 2048/ 4096 with PLC operating system 03.10.13 or later 128 64 8 1, 10, 20, 35, 40, 8082, 8587, 100, 121122 0255 0255 1399 16KB 24KB
1. Key CPU data Memory for user + basic program 64, 96, 128KB 64, 96 128, 160, 192, 224, 256, 288KB (dependent on option) Like user memory No 2048
128 64 8 1, 10, 20, 35, 40, 8082, 85, 87, 100, 121122 1127 1127 1127 16KB 16KB
128 64 8 1, 10, 20, 35, 40, 8082, 8587, 100, 121122 1127 1127 1127 16KB 24KB
FC FC DB Max. data block length Max. block length FC, FB Inputs/outputs (address capacity) digital analog Inputs/outputs (addressing) digital analog Row 0 is integrated in the NC. Rows 1 to 3 are available for I/O devices
768 64 Since row 0 is not available for I/O devices: From I/O byte 32 From PI/PO byte 384
1024/1024 64 Through optional configuring of I/O devices: From I/O byte 0 From PI/PO byte 272
1024/1024 64 Through optional configuring of I/O devices: From I/O byte 0 From PI/PO byte 272
Execution time bit instructions (I/O) word instructions PDIAG (Alarm S,SQ) PROFIBUS Number of PROFIBUS slaves
0.3 ms/kA 14 ms/kA No Master Min. 16, max. 64 Size SDB 2000 <= 8KB
0.3 ms/kA 14 ms/kA Yes Master/Slave Min. 16, max. 64 Size SDB 2000 <= 32KB Yes 26
PBC (programmable block communication) Consistent data to standard slave via SFC 14, 15
No Omitted
No 26
1/P3/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
PLC Basic Program (P3) Key data of PLC CPUs for FM-NC, 840D and 810D
810D and 840D Integrated PLC CPU3152DP 6ES7 3152AF00 0AB0 Integrated PLC CPU3152DP Master/Slave 6ES7 3152AF01 0AB0 24 Yes 1 840D Integrated PLC 314C2DP Master/Slave 6FC5 3146CF00 0AB0 96, 160, 224, 288, 352, 416, 480 KB (dependent on option) to 96 KB No 4096 256 256 8 1, 10, 20, 35, 40, 8082, 8587, 100, 121122 0255 0255 1399 16KB 24KB
2. I/O expansion I/O modules PROFIBUS DP modules Interfaces (MPI) Type of control Feature 24 Omitted 1 840 Di Integrated PLC 3152DP Master/Slave 6ES7 3152AF030AB0 64, 96, 128, 160, 192, 224, 256, 288KB 24 Yes 1 810D Integrated PLC 3152DP Master/Slave 6ES7 3152AF030AB0 64, 96, 128, 160, 192, 224, 256, 288KB
Data block memory Memory submodule Bit memories Timers Counters Clock memories Program/data blocks OB
Like user memory No 4096 128 64 8 1, 10, 20, 35, 40, 8082, 8587, 100, 121122 0255 0255 1399 16KB 24KB
Like user memory No 4096 128 64 8 1, 10, 20, 35, 40, 8082, 8587, 100, 121122 0255 0255 1399 16KB 24KB
FC FC DB Max. length of data block Max. block length FC, FB Inputs/outputs (address capacity) digital analog Inputs/outputs (addressing) Row 0 is integrated in the NC. Rows 1 to 3 are available for I/O devices
1024/1024 64 Through optional configuring of I/O devices: From I/O byte 0 onwards from PI/PO byte 272 onwards PROFIBUS only 0.3 ms/kA 14 ms/kA Yes Master
1024/1024 64 Through optional configuring of I/O devices: From I/O byte 0 onwards from PI/PO byte 272 onwards 0.3 ms/kA 14 ms/kA Yes Master/Slave
1024/1024 64 Through optional configuring of I/O devices: From I/O byte 0 onwards from PI/PO byte 272 onwards 0.1 ms/kA 0.251.2 ms/kA Yes Master/Slave
digital analog
Execution time Bit commands (I/O) Word commands PDIAG (Alarm S,SQ) PROFIBUS
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-9
PLC Basic Program (P3) 2.1 Key data of PLC CPUs for FM-NC, 840D and 810D
840 Di Integrated PLC 3152DP Master/Slave 6ES7 3152AF030AB0 At least 16, max. 64 Size SDB 2000 <= 32KB Yes 26
810D Integrated PLC 3152DP Master/Slave 6ES7 3152AF030AB0 At least 16, max. 64 Size SDB 2000 <= 32KB Yes 26
840D Integrated PLC 314C2DP Master/Slave 6FC5 3146CF00 0AB0 At least 16, max. 32 Size SDB 2000 <= 32KB Yes 32
PBC (programmable block communication) Consistent data to standard slave via SFC 14, 15 2. I/O expansion I/O modules, central PROFIBUS DP modules Interfaces (MPI)
24 Yes 1
24 Yes 1
840 Di Integrated PLC 3172DP Master/Slave 6FC5 3172AJ100AB0 786 KB max. 256 kByte No 32768 512 512 8 1, 10, 2021, 3235, 40, 5557, 80, 82, 8587, 100, 121122; 02048 02048 12048 32KB 64KB
810D
840D Integrated PLC 3172DP Master/Slave 6FC5 3172AJ101AB0 786 KB max. 256 kByte No 32768 512 512
1. Key CPU data Memory for user + basic programs Data block memory Memory submodule Bit memories Timers Counters Clock memories Program/data blocks OB
8 1, 10, 2021, 3235, 40, 5557, 80, 82, 8587, 100, 121122; 02048 02048 12048 32KB 64KB
FC FC DB Max. length of data block Max. block length FC, FB Inputs/outputs (addressing volume in bytes) digital / analog Incl. reserved area Process image Caution: The inputsoutputs above 4096 are reserved for integrated drives.
1/P3/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
PLC Basic Program (P3) Key data of PLC CPUs for FM-NC, 840D and 810D
840 Di Integrated PLC 3172DP Master/Slave 6FC5 3172AJ100AB0 Row 0 is integrated in the NC. Rows 1 to 3 are available for I/O devices Through optional configuring of I/O devices: From I/O byte 0 onwards from PI/PO byte 272 onwards PROFIBUS only <= 0.031 ms/kA 0.1 ms/kA Yes Master/Slave max. 125 Yes 128
810D
840D Integrated PLC 3172DP Master/Slave 6FC5 3172AJ101AB0 Through optional configuring of I/O devices: From I/O byte 0 onwards from PI/PO byte 272 onwards <= 0.103 ms/kA 0.1 ms/kA Yes Master/Slave max. 125 Yes 128
Inputs/outputs (addressing)
digital analog
Execution time Bit commands (I/O) Word commands PDIAG (Alarm S,SQ) PROFIBUS Number of PROFIBUS slaves PBC (programmable block communication) Consistent data to standard slave via SFC 14, 15 2. I/O expansion I/O modules, central PROFIBUS DP interfaces Interfaces (MPI)
24 1 1
Since the content of SDB 2000 and other associated SDBs must be stored by the PLC operating system in internal data structures in the SRAM which can also be accessed by the PROFIBUS ASIC, SDBs that are less than 32KB may also be rejected on loading. It is not possible to specify the size of SDB 2000 exactly. It cannot be determined whether the configuration is legal until the SDB container has been loaded to the CPU. The values shown above must be taken as guide values only. If the configuration is illegal, a general reset request is issued when the SDBs are loaded. The cause of the configuring error can be found in the diagnostic buffer on completion of the general reset. With SW 3.5 and higher on the 840D, version 6 (version code 35.06.03) is installed with PLC 314 and version 3 (version code 35.03.03) with PLC 3152DP or later. These versions are compatible with the corresponding SIMATIC CPU300. All modules and software packages that are approved for these versions and CPUs on the SIMATIC are therefore suitable. Modules that can generally only be installed in subrack 0 are the exception (modules FM NC and FM 357 are also exceptions). The version code in the version display comprises the following information up to SW 3.6: NC version, PLC version of SIMATIC-CPU, internal incrementation. The version code in the version display comprises the following information with SW 3.6 and higher: PLC version of SIMATIC-CPU, incrementation of transferred firmware, internal incrementation.
PLC versions
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-11
PLC Basic Program (P3) 2.1 Key data of PLC CPUs for FM-NC, 840D and 810D
11.03 10.00
PLC 3152DP with order number 6ES7 3152AF000AB0: 04.02.14 PLC 3152DP with MLFB 6ES7 3152AF010AB0: 03.10.23 PLC 314: 07.02.12
If you scroll to the end of the version display in NCK SW 3.7, you will see details of the PLC currently installed and the associated version of the PLC operating system. e.g. S7 PLC_3152DP System 03.10.23 You can read off the module ID of the installed PLC module in the next column. The following PLC module IDs are currently in use:
Module ID
PLC module
Designation of software version/ operating system 07.02.12 04.02.14 03.10.23 03.10.23 12.30.09 10.60.17 20.71.01 4.20.35 20.70.01
0208 1008 1100 1200 1400 2200 MCI 1 (840Di) MCI 2 (840Di) 2100
PLC 314 PLC 3152DP with ASPC 2 Step C PLC 3152DP with ASPC 2 Step D PLC 3152DP with ASPC 2 Step E PLC 314C2DP with IBC 16 PLC 3172DP with IBC 32 PLC 3152DP with ASPC 2 Step E PLC 3172DP with IBC 32
6ES7 314-1AE0-0AB0 6ES7 315-2AF00-0AB0 6ES7 315-2AF01-0AB0 6ES7 315-2AF01-0AB0 or 6ES7 315-2AF03-0AB0 FW1.2 6ES7 314-6CF00-0AB0 FW 1.0.2 6ES7 317-2AJ10-0AB0 FW 2.1 6ES7 315-2AF03-0AB0 FW 1.0 6ES7 317-2AJ10-0AB0 FW 2.1
FM-NC Feat re Feature 1. Key CPU data Memory for user + basic program Memory submodule Bit memories Timers Counters Clock memories Program/data blocks OB 24KB Yes 2048 128 64 8 1, 10, 20, 35, 40, 8085, 100, 120123 1127 1127 1127 8KB 48KB Yes 2048 128 64 8 1, 10, 20, 35, 40, 8085, 100, 120123 1127 1127 1127 8KB CPU 314 CPU 315
1/P3/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
PLC Basic Program (P3) Key data of PLC CPUs for FM-NC, 840D and 810D
FM-NC Feature Inputs/outputs (address capacity) digital analog Execution time bit commands (I/O) word commands 2. I/O expansion I/O modules PROFIBUS L2DP modules Interfaces (MPI) Interfaces (OPI) FM-NC NCUs per IM 32 Omitted 1 Omitted 1 32 Omitted 1 Omitted 1 CPU 314 CPU 315
Type of control Interfaces (OPI) 3. Functions of basic program Scope: Axes/spindles Channels Mode groups Functions: Status/control signals M decoders (M0099) (M00 99) G group decoders Aux. function distributors Alarm-driven aux. fnc. transfer Move axes/spindles from PLC Async. subprogram interface Error/operating p g messages g MCP and d handheld h dh ld unit it signals via NCK Reading/writing of NC variables PI services Tool management Star/delta switchover Display control Handheld unit
FM-NC Omitted
810 D Omitted
840D 1
5 1 1
5 2 1
31 10 10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-13
PLC Basic Program (P3) 2.2 Reserving resources (timer, FC, FB, DB, peripherals)
10.03 10.00
2.2
Timers
FC, FB, DB
FC0 to FC29 and FB0 to FB29 are reserved for the basic program. Data blocks DB1 to DB62 and DB71 to DB80 are reserved. Data blocks from not activated channels, axes / spindles, tool management are free for the user. FC30 to FC35 and DB81 to DB89 are reserved for ShopMill / ShopTurn instructions. In the case of PLC 3172DP, a further range of numbers is reserved in FC, FB and DB for Siemens applications. For FC and FB respectively, 1000 to 1023 are reserved. For DB, 1000 to 1099 are reserved.
I/O range:
The PLC 317 has an I/O address volume of 8192 bytes each for input and outputs. The address ranges from 4096/4096 are reserved here for integrated drives. Diagnostic address for modules can be placed in the top address range as suggested by STEP7. Address range 256 to 271 is reserved for the NC module and future extensions.
1/P3/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.3
General procedure
NCU CCU1 810D CPU CCU2 810D CPU CCU1 810DE CPU CCU2 810D CPU SINUMERIK 810DE Light CCU1 module with system software (export) SINUMERIK 810D CCU2 module with system software (standard) SINUMERIK 840DE NCU 561.2 without system software SINUMERIK 840D NCU 571 (export version)
MLFB 6FC5 4100AA000AA0 6FC5 4100AA010AA0 6FC5 4100AY010AA0 6FC5 4100AX020AA0 6FC5 4100AY000AA0
Selection from STEP7 hardware catalog 810D/840D with PLC314 810D/840D with PLC314 810D/840D with PLC314 810D/840D with PLC314 810D/840D with PLC314
6FC5 4100AX021AA0
6ES7 3152AF010AB0
6FC5 3560BB110AE0
6ES7 3152AF010AB0
6FC5 3570BA100AE0
6ES7 3141AE010AB0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-15
PLC Basic Program (P3) 2.3 Starting up hardware configuration of PLC CPUs
10.00
SINUMERIK 840D NCU 571 (export version) with PROFIBUS DP SINUMERIK 840D NCU 571.2 (export version) with PROFIBUS DP SINUMERIK 840DE NCU 571.2 without system software SINUMERIK 840D NCU 572 SINUMERIK 840D NCU 572 SINUMERIK 840D NCU 572 SINUMERIK 840D NCU 572 SINUMERIK 840D NCU 572.2 with PROFIBUS DP SINUMERIK 840D/DE NCU 572.2 without system software SINUMERIK 840D/DE NCU 572.3 without system software SINUMERIK 840D NCU 572 (export version) SINUMERIK 840D NCU 572 (export version) SINUMERIK 840D NCU 572 (export version) with PROFIBUS DP SINUMERIK 840D NCU 572 (export version) with PROFIBUS DP SINUMERIK 840D NCU 572.2 (export version) with PROFIBUS DP SINUMERIK 840D NCU 572 with digitizing SINUMERIK 840D NCU 572.2 with digitizing and PROFIBUS DP SINUMERIK 840D/DE NCU 572.2 without system software SINUMERIK 840D NCU 572 (export version) with digitizing SINUMERIK 840D NCU 572.2 (export version) with digitizing and PROFIBUS DP SINUMERIK 840D NCU 573 SINUMERIK 840DE NCU 573 (export version) SINUMERIK 840D NCU 573 with digitizing SINUMERIK 840D NCU 573 (export version) with digitizing SINUMERIK 840D NCU 573 with PROFIBUS DP
6FC5 3570BA110AE0
6ES7 3152AF000AB0
6FC5 3570BA111AE0
6ES7 3152AF010AB0
810D/840D with PLC3152AF01 810D/840D with PLC3152AF01 810D/840D with PLC314 810D/840D with PLC314 840D with PLC3152AF00 840D with PLC3152AF00 810D/840D with PLC3152AF01 810D/840D with PLC3152AF01 810D/840D with PLC3152AF01 810D/840D with PLC314 810D/840D with PLC314 840D with PLC3152AF00
6FC5 3570BB110AE0
6ES7 3152AF010AB0
6FC5 3570BA200AE0 6FC5 3570BA201AE0 6FC5 3570BA210AE0 6FC5 3570BA211AE0 6FC5 3570BA211AE1 6FC5 3570BB210AE0
6ES7 3141AE010AB0 6ES7 3141AE010AB0 6ES7 3152AF000AB0 6ES7 3152AF000AB0 6ES7 3152AF010AB0 6ES7 3152AF010AB0
6FC5 3570BB220AE0
6ES7 3152AF010AB0
6FC5 3570BY211AE0
6ES7 3152AF000AB0
6FC5 3570BY211AE1
6ES7 3152AF010AB0
6FC5 3570BB240AE0
6ES7 3152AF010AB0
6FC5 3570BY240AE0
6ES7 3141AE010AB0
6FC5 3570BY241AE0
6ES7 3152AF010AB0
810D/840D with PLC314 810D/840D with PLC314 810D/840D with PLC314 810D/840D with PLC314
6FC5 3570BA320AE1
6ES7 3152AF000AB0
1/P3/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 2.3
SINUMERIK 840D NCU 573 (export version) with PROFIBUS DP SINUMERIK 840D NCU 573 with PROFIBUS DP SINUMERIK 840D NCU 573 (export version) with PROFIBUS DP SINUMERIK 840D NCU 573.2 (Pentium Pro) up to 12 axes with PROFIBUS DP SINUMERIK 840D NCU 573.2 (Pentium Pro) up to 31 axes with PROFIBUS DP SINUMERIK 840D/DE NCU 573.2 without system software SINUMERIK 840D/DE NCU 573.2 Pentium II without system software SINUMERIK 840D NCU 573.2 (Pentium Pro) for digitizing with PROFIBUS DP SINUMERIK 840D/DE NCU 573.2 without system software SINUMERIK 840D NCU 573.2 (Pentium Pro) (export version) for 12 axes with PROFIBUS DP SINUMERIK 840D NCU 573.2 (Pentium Pro) (export version) for 31 axes with PROFIBUS DP SINUMERIK 840D NCU 573.2 (Pentium Pro) (export version) for digitizing with PROFIBUS DP SINUMERIK 840Di SINUMERIK 840Di with PK bus SINUMERIK 840D NCU 572.3 SINUMERIK 840D NCU 572.3 SINUMERIK 840D NCU 573.3 SINUMERIK 840D NCU 573.3
6FC5 3570BY320AE1
6ES7 3152AF000AB0
6FC5 3570BA321AE0
6ES7 3152AF010AB0
6FC5 3570BA331AE0
6ES7 3152AF010AB0
6FC5 3570BB330AE0
6ES7 3152AF010AB0
6FC5 3570BB330AE1
6ES7 3152AF010AB0
6FC5 3570BA311AE0
6ES7 3152AF010AB0
6FC5 3570BB310AE0
6ES7 3152AF010AB0
6FC5 3570BY321AE0
6ES7 3152AF010AB0
6FC5 3570BY331AE0
6ES7 3152AF010AB0
6FC5 3570BY311AE0
6ES7 3152AF010AB0
6FC5 2200AA001AA0
6ES7 3152AF030AB0 6ES7 3152AF030AB0 With BESY 03.10.23: 6ES7 3152AF010AB0 With BESY 12.30.07: 6ES7 3152AF030AB0 6ES7 3152AF010AB0 With BESY 12.30.07: 6ES7 3152AF030AB0
SINUMERIK 840D NCU 572.4 SINUMERIK 840D NCU 573.4 SINUMERIK 810D CCU3
840Di with PLC3152AF03 840Di with PLC3152AF03, PK bus 810D/840D with PLC3152AF01 810D/840D with PLC3152AF03 810D/840D with PLC3152AF01 810D/840D with PLC3152AF03 (as of STEP7 V5.0 and Toolbox 05.03.05) 810D/840D with PLC314C2DP 810D/840D with PLC314C2DP 810D/840D with PLC3152AF03
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-17
PLC Basic Program (P3) 2.3 Starting up hardware configuration of PLC CPUs
10.00
810D/840D with PLC3152AF03 810D/840D with PLC3152AF03 (as of STEP7 V5.0 and Toolbox 05.03.05) 810D/840D with PLC314C2 DP (as of STEP7 V5.1 SP3 and higher and Toolbox 06.03.02 and higher) 810D/840D with PLC314C2 DP (as of STEP7 V5.1 SP3 and higher and Toolbox 06.03.02 and higher) 810D/840D with PLC3172 DP (as of STEP7 V5.2 SP1 and Toolbox 06.03.02) 840Di with PLC3172 DP (as of STEP7 V5.2 SP1 and Toolbox 06.03.02)
6FC53570BB120AE0
6ES7 3146CF000AB0
6FC53560BB120AE0
6ES7 3146CF000AB0
6FC53570BB350A E0
6ES7 3172AJ000AB0
6FC5 2220AA021AA0
6ES7 3172AJ000AB0
Note On the SINUMERIK 810D or 840D, SIMATIC row 0 is integrated in the NC. The components installed in this row are as follows: The integrated PLC in slot 2 (PLC 314 or PLC 3152DP) An IM 360 in slot 3 The FM NCU in slot 4 (with a PLC 314, this FM NCU must also be defined when NC SW 3.5 or later is installed and when other MPI (K bus) nodes are contained in rows 1 to 3 (e.g. FM modules with K bus connection). The properties of the FM NCU must not be changed, as process interrupts (e.g. auxiliary functions) of the NCU may, in this case, no longer function.
1/P3/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 2.3
Fig. 2-1
(only valid for SINUMERIK 810D up to SW 3.x and FM-NC) If the MCP or HHU has to be configured (deviation from standard), an additional SIMATIC 300 station should be added to the machine project for each operator component. Any type of CPU must be inserted in location 2 on row 0 in this station by means of the hardware configuration (HW config.). The desired MPI address of the operator component must be set as the MPI address. MPI network (1) can then be marked in the SIMATIC manager. The global data can then be activated via menu item Extras. The rest of the procedure is described in detail in the Installation and StartUp Guide. Detailed information on the configuration of the machine control panel, handheld unit is contained in Subsection 2.6.10 of this document.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-19
10.00
2.4
2.4.1
Installation
With SW 6.1 and higher, the installation is performed by a WINDOWS compliant setup program for the basic program, hardware selection in STEP7 (SINUMERIK 810D/840D option package) and the NC-Var Selector. To start the installation, run setup.exe in the main CD directory. You can then choose which components to install. After the installation you can select the basic program library directly from STEP 7 (gp8x0d61, 61 is the main basic program version). You can check the basic program version in the object properties of the library or in the comment field of the program folder. With SW 3.7 or 4.2 and higher, the installation is performed by INSTALL.BAT (INSTALL1.BAT, INSTALL4.BAT) (doubleclick). This program installs the basic program and additional files for the appropriate STEP7 version. With the automatic installation in STEP7 V3 and higher, the TYP, GSD and Meta files in the hardware catalog are also augmented and updated. The hardware components of the SINUMERIK system are then also available for hardware configuration under STEP 7. You no longer need to unpack the files as described below. The basic program is supplied in packed format as a Project for STEP7 V1.x or as a library for STEP7 V2.x and its successor versions delivered in packed form.
General
The source programs of the OBs including standard parameterization, interface symbols and DB templates for handheld unit and M decoding functions are enclosed in the SIMATIC project or SIMATIC library of the basic program. STEP7 must be installed before the basic program.
STEP7 V1.x
The basic program is stored as a packed file with the name GP840D.EXE (or GP810D.EXE and GPFM-NC.EXE) in the main directory on the diskette. The basic program (GP840D.exe) must be copied to the main directory (root) of a drive (e.g. c:\) and then called. The project structure required for the basic program is generated automatically. The catalog name of the basic program is GP840Dxy.S7A. In this case, xy stands for the basic program version.
1/P3/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Note When STEP7 V1 is used, the GP840Dxy.S7A catalog must be copied to the root directory. Any existing catalog with the same name GP840Dxy.S7A must be deleted beforehand.
The basic program is stored as a packed file with the name GP840D.EXE in directory S7V2.840 or S7V2.810 or S7V2 on the basic program diskette. The basic program (GP840D.exe) must be copied to subcatalog S7LIBS of STEP7 V2 (step7_v2) or subsequent versions thereof and then called. The library structure required for the basic program is generated automatically. The catalog name of the basic program is GP840Dxy. In this case, xy stands for the basic program version. The file MET.EXE must be copied into the basic catalog of STEP7 and called from there via the DOS window with MET.EXE O.
Note The name GP840D specified above refers to the basic program of the SINUMERIK 840D. The basic program is named GP810D on the SINUMERIK 810D and GPFM-NC on the FM-NC. With effect from SW 4.2, the basic program for 810D and 840D is combined. It is now called GP8x0D.
2.4.2
Note
The catalog structures of a project and the procedure for creating projects and user programs are described in the relevant SIMATIC documentation. A network to the PLC must be activated for the machine CPU program under menu items Edit, Configuration. This is done in the Services, Parameterize menu followed by selection of the MPI parameters. Default settings:
STEP7 V1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-21
10.00
The following must be copied into the CPU program for the machine-specific program files: 1. The basic program blocks (FCs, FBs, DBs, OBs, SFCs, SFBs and UDTs as well as SDB 210) must be copied (in menu File, Manage project in STEP7 program editor). SDB 210 is provided only on 810D and FM-NC systems. 2. File GPOB840D.AWL (or GPOB810D.AWL or GPOBFM-NC.AWL) and other STL (AWL) files if appropriate must also be copied from the basic program catalog into the CPU program. The OBs contained in this file are the basis for the user program with the associated basic program calls. Existing user blocks must be copied as STL files into the newly created CPU program (catalog name CPU1.S7D) and compiled. 3. We also recommend that the symbolic names are transferred with the files from the basic program package using the symbol editor.
STEP7 V2
The basic program blocks are copied using the SIMATIC manager via File/ Open/Library. The following parts must be copied from the library: AP-off: FCs, FBs, DBs, OBs, SFC, SFB, UDT and the SDB container. SDB 210 is stored in the SDB container for 810D and FM-NC. The SDB container exists solely for these control variants. The source files (SO): GPOB810D or GPOB840D or GPOBFM-NC, possibly MDECLIST, BHG_DB and others The symbol table (SY).
No interdependencies exist between the basic program (including older program versions) and currently valid versions of STEP7 (STEP7 V1 to 3).
1/P3/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 2.4
2.4.3
Version codes
The basic program version including the control type is output in the version display of the MMC with SW 4 (NCK, PLC) and higher. In earlier versions of the basic program, the PLC version is stored in data block DB 17 on the data double word DBD 0. A HEX number must be set as the data format. The following example shows how V3.2 is displayed: DB17.DBD0: 0332_0100
Basic program
The program version is coded in display decades 3 and 4 (bold print). The two left-aligned decades contain the control type of this basic program. The other decades contain a development code. The control type is coded as follows:
Type of control
User program
With SW 4 and higher, the user can also display the version code of his own user program on the MMC. For this purpose, a data of type STRING containing a maximum of 54 characters must be defined in any data block. The data can contain a text of the users choice. Parameter assignments for this string are made via a pointer in FB 1. Parameterization requires a symbolic definition of the data block. For further details, see Block Description of FB 1.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-23
10.00
2.4.4
Machine program
The machine manufacturer creates the machine program using the library routines supplied with the basic program. The machine program contains the logic operations and sequences on the machine. The interface signals to the NC are also controlled in this program. More complex communications functions with the NC (e.g. read/write NC data, tool management acknowledgments, etc. are activated and executed via FCs and FBs of the basic program). The machine program can be created in different creation languages (e.g. STL, LAD, CSF, S7 HIGRAPH, S7GRAPH, SCL). The complete machine program must be generated and compiled in the correct sequence. This means that blocks that are called by other blocks must generally be compiled before the blocks which call them. If blocks that are called by other blocks are subsequently modified in the interface (VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT, VAR) as the program is developed, then the call block and all blocks associated with it must be compiled again. This general procedure applies analogously to instance data blocks for FBs. If this sequence of operations is not observed, time-stamp conflicts occur when the data are retranslated into STEP7. In some cases, therefore, it may not be possible to retranslate blocks, creating problems, for example, with the Block status function. It is moreover advisable to generate blocks in ASCIISTL by means of the STEP7 editor when they have been created in the ladder diagram or in single statements (incremental mode).
2.4.5
Data backup
The PLC CPU does not store symbolic names, but only the data type descriptions of the block parameters (VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT, VAR) and the data types of the global data blocks. Without the associated project for this machine, therefore, blocks cannot be retranslated meaningfully (e.g. for the Block status function or on subsequently required modifications to PLC CPU programs). It is therefore necessary to keep a backup copy of the STEP7 project located in the PLCCPU on the machine. This is extremely useful for servicing purposes and saves time and problems. If the STEP7 project exists and has been created according to the instructions given above, then symbols can be processed in the PLCCPU on this machine. It may also be advisable to store the machine source programs as STL files in case they are required for any future upgrade. The source programs of all organization blocks and all instance data blocks should always be available.
1/P3/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 2.4
2.4.6
After the blocks have been loaded to the PLC CPU, a series archive can be generated via the MMC operator interface to back up data on the machine. To ensure data consistency, this backup must be created immediately after block loading when the PLC is in the Stop state. It does not replace the SIMATIC project backup as the series archive saves binary data only, and does not back up, e.g. symbolic information. No CPU DBs (SFC 22 DBs) and SDBs created in the CPU and still not stored. With toolbox version 06.03.03 and STEP 7 V5.1 or later, the PLC series archive can be generated directly from the appropriate SIMATIC project. To do this, select menu commands Options > Settings and the Archive tab in STEP 7. This contains an entry SINUMERIK (*.arc) which must be selected to create a series start-up file. After selection of the archive, select menu options File> Archive. The relevant series archive will then be generated. If the project contains several programs, the program path can be selected. A series archive is set up for the selected program path. All blocks contained in the program path are incorporated into the archive, except for CPU DBs (SFC 22 DBs).
Automation:
The process of generating a series archive can be automated (comparable to command interface of STEP 7, V5.1 and higher). This automatic generation function is an extension of the command interface. It offers the following functions: The functions (shown here in VB script) are not available until server instantiations and Magic have been called: Const S7BlockContainer = 1138689, S7PlanContainer = 17829889 Const S7SourceContainer = 1122308 set S7 = CreateObject(Simatic.Simatic.1) rem Instantiate command interface of STEP7 Set S7Ext = CreateObject(SimaticExt.S7ContainerExt) Call S7Ext.Magic() Functions: Function Magic(bstrVal As String) As Long Function MakeSeriesStartUp(FileName As String, Option As Long, Container As S7Container) As Long
Descriptions:
Function Magic(bstrVal As String) As Long Call gives access to certain functions. The function must be called once after server instantiation. The value of bstrVal can be empty. This initiates a check of the correct Step7 version and path name in Autoexec. The functions are enabled when 0 is returned. Return (1) = incorrect Step7 version Return (2) = no entry in Autoexec.bat Function MakeSeriesStartUp(FileName As String, Option As Long, Container As S7Container) As Long
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-25
11.02
Parameter option: 0: Normal series startup file with general reset Bit 0 = 1: Series startup file without general reset. When project contains SDBs, this option is inoperative. A general reset is then always executed. Bit 1 = 1: Series startup file with PLC restart (supported with MMC SW 6.2 and higher) Return value: 0 = OK 1 = Function not available, call Magic function beforehand 2 = File name cannot be generated 4 = Parameter container invalid or block container empty 5 = Internal error (save request rejected by Windows) 6 = Internal error (problem with STEP7 project) 7 = Write error on generating series startup file (e.g. floppy disk full)
Use in script:
If S7Ext.Magic() < 0 Then Wscript.Quit(1) End If Set Proj1 = s7.Projects(new) set S7Prog = Nothing Set s7prog = Proj1.Programs.Item(1) if there is only one program For i = 1 to S7Prog.Next.Count Set Cont = S7Prog.Next.Item(i) Check block container If (Cont.ConcreteType = S7BlockContainer) Then Exit For End if Next Error = S7Ext.MakeSeriesStartUp(f:\dh\arc.dir\PLC.arc, 0, Cont)Now error evaluation
1/P3/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.4.7
Software upgrade
Software upgrades
Whenever you update the PLC or NCK software, always first bring the PLC to its initial state. This initial clear state can be achieved by means of a general PLC reset. With a reset of this kind, all existing blocks are deleted. Generally speaking, the new basic program must be incorporated when a new NC software version is installed. The basic programs blocks must be loaded into the user project for this purpose. OB 1, OB 40, OB 100, FC 12 and DB 4 should not be loaded if these blocks are already included in the user project. These blocks may have been modified by the user. The new basic program must be linked with the user program. This must be done by the following method: 1. Generate the text or source file of all user blocks before copying the basic program. 2. Then copy the new basic program blocks to this machine project (for a description, see Subsection Application of basic program) 3. All user programs *.awl must then be retranslated in the correct order! (See also Subsection Machine program). This newly compiled machine program must then be loaded to the PLC CPU by means of STEP7. It is normally sufficient to recompile the organization blocks (OB) and the instance data blocks of the machine program, however. That means you only need to generate sources for the organization blocks and the instance data blocks (before upgrading).
General reset
A description of how to perform a general PLC reset is described in the Installation and StartUp Guide. However, a general reset does not delete the contents of the diagnostics buffer nor the node address on the MPI bus. Another possible general reset method is described below. This method must be used when the normal general reset process does not work. The procedure is as follows:
No. 1 2
Action Control system is switched off PLC switch setting 3 (MRES) and switch control on again or perform hardware reset. Set PLC start-up switch to position 2 (STOP) and back to position 3 (MRES). Set PLC start-up switch to position 2 or 0
Effect
NC variables
The latest NC VAR selector can be used for each NC software version (even earlier versions). The variables can also be selected from the latest list for earlier NC software versions. The data content in DB 120 (default DB for variables) does not depend on the software version, i.e. selected variables in an older software version must not be reselected when the software is upgraded.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-27
10.00 10.00
2.4.8
2.4.9
Troubleshooting
This Section describes problems which may occur, their causes and remedies and should be read carefully before hardware is replaced.
1/P3/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 2.4
mer in the STEP7 editor by means of connection Direct_PLC. A number of node addresses must be displayed here. If they are not displayed, then the MPI cable is defective/not inserted. In Windows 95 versions of STEP7, the hardware must be checked in the control panel; the PC/programmer interface configuration should also be checked as well. Separate all MPI cables to other components. Create the link Direct_PLC with the programmer. Correct the MPI address. After the Reset or reloading of the PLC program, the system may run up normally again. Even in this case, the contents of the diagnostics buffer should be sent to the Development Office.
The STEP7 software for the MPI card may also be incorrectly configured.
A system data block SDB 0 has been loaded with a modified MPI address. This has caused an MPI bus conflict due to dual assignment of addresses A system error has occurred in the PLC. Measures: The diagnostic buffer on the PLC must be read to analyze the system error in detail. To access the buffer, the PLC must be stopped (e.g. set switch S4 to position 2). The diagnostics buffer can then be read out with STEP7. Relay the information from the diagnostics buffer to the Hotline / Development Service. A general reset must be carried out if requested after the hardware reset. The diagnostics buffer can then be read with the PLC in the Stop state.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-29
PLC Basic Program (P3) 2.5 Linking PLC CPUs to FM-NC, 810D, 840D
11.02 10.00
2.5
General
2.5.1
The SINUMERIK 810D/840D/840Di PLC CPUs are based on standard SIMATIC CPUs in the S7300 family. As a result, they generally possess the same functions. Functional deviations are shown in the table above. Owing to differences in their memory system as compared to the S7 CPU, certain functions are not available (e.g. blocks on memory card, project on memory card).
Note With the current SIMATIC CPUs, the PLC is not automatically started after voltage failure and recovery when a PLC Stop is initiated via software operation. In this instance, the PLC remains in the Stop state with an appropriate diagnostic entry for safety reasons. You can start the PLC only via software operation Execute a restart or by setting the switch to Stop and then RUN. This behavior is also integrated in the current versions of the SINUMERIK PLC.
2.5.2
As the 810D and 840D systems have an integrated PLC, signals can be exchanged between the NCK and PLC directly via a dual port RAM (Fig. 2-2). Data are generally exchanged with the operator panel (OP), machine control panel (MCP) and handheld unit (HHU) on the 840D via the operator panel interface (OPI1)), the COM module being responsible for data transport. All devices specified above can also be operated on the multipoint interface (MPI) in the case of the 840 D. With the 810D, data communication with the operator panel (OP), machine control panel (MCP) and handheld unit (HHU) takes place only via the MPI.
1/P3/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 2.5
PLC Basic Program (P3) Linking PLC CPUs to FM-NC, 810D, 840D
The programming device is connected directly to the PLC via the MPI (multipoint interface).
PLC (AS314) FC, FB Machine progr. DB User interf. Basic progr. DPR DB Internal interf.
NCK 840D
VDI decod. Op. sys. P bus K bus MPI PG, HHU mC OPI OP, MCP NC funct. mC PLC module COM module DPR MCP External comm.
PLC I/Os
Fig. 2-2 1)
PLC/NCK interface
The NCK/PLC data exchange (see Fig. 2-2) is organized by the basic program in the PLC. The status information (such as, for example, Program running stored in the internal DPR1) are copied to data blocks by the basic program at the beginning of the cycle (OB 1), which the user can then access (user interface). The user also enters NC control signals (e.g. NC start) in the interface data blocks, and these are also transferred to the NC at the start of the cycle. Auxiliary functions are transferred to the PLC in dependence on the workpiece program. The basic program first evaluates these (alarm-driven) and then transfers them to the user interface at the start of OB1. If the relevant NC block contains auxiliary functions that require the interruption of the NC machining process (e.g. M06 for tool change), the basic program halts the execution of the block on the NC for one PLC cycle. The user can then use the read disable interface signal to halt the block execution until the tool change has been completed. If, on the other hand, the relevant NC block does not contain auxiliary functions requiring the interruption of the NC machining process (e.g. M08 for cooling on), the transfer of these rapid auxiliary functions is enabled directly in OB 40, so that the block execution is only marginally influenced by the transfer to the PLC.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-31
PLC Basic Program (P3) 2.5 Linking PLC CPUs to FM-NC, 810D, 840D
10.00
The evaluation and enabling of the G functions transferred from the NCK are also alarm-driven, however they are transferred directly to the user interface. Where a G function is evaluated at several points in the PLC program, differences in the information of the G function within one PLC cycle may arise. In the case of NC actions which are triggered and assigned with parameters from the PLC (e.g. traverse concurrent axes), the triggering and parameter assignment is performed using FCs and FBs, not interface data blocks. The FCs and FBs belonging to the actions are supplied together with the basic program. The FCs must be loaded by the user and called in the PLC program of the machine manufacturer (machine program). For an overview of blocks FC, FB and DB, classed according to basic and extended functions, please refer to Section 6.4.
OP/PLC interface
Data are exchanged between the OP and PL via the OP/NC serial bus, COM module and C bus. The COM module transfers the data intact from one bus segment to another. It merely converts the baud rate. The OP is always the active partner (client) and the PLC is always the passive partner (server). Data transmitted or requested by the OP are read from and written to the OP/PLC interface area by the PLC operating system (timing: Cycle control point). From the viewpoint of the PLC application, the data are identical to I/O signals.
Data are exchanged between the MCP/PLC and HHU/PLC via the serial bus MCP, HHU/NC, COM module and NCK. The NCK transfers the MCP/HHU signals to and fetches them from the internal NC/NCK dual port RAM. On the PLC side, the basic program handles communication with the user interface. The parameters of the function call define the operand areas (e.g. I/O) and the start addresses.
1)
The data exchange between MCP/PLC, HHU/PLC takes place via the MPI interface on the PLC. The Communication with global data (GD)1) service is used for this purpose (see also STEP7 Users Guide). The PLC operating system handles the transfer of signals from and to the user interface. The STEP7 configuring tool Communication configuration is used to define both GD parameters as well as operand areas (e.g. I/O) and their initial addresses. In SW 2.2 and higher, data exchange is possible as on the 840D.
2.5.3
Physical interface
The FM-NC operating characteristics are the same as those of an AS-300 FM (function module) with C bus connection. Data can therefore be exchanged between the AS300CPU and FM-NC via the P bus and the C bus (Fig. 2-3).
1/P3/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
PLC Basic Program (P3) Linking PLC CPUs to FM-NC, 810D, 840D
Communication with operator and machine control panels takes place via the MPI interface of the S7300 CPU. From an external viewpoint, the PLC CPU and the FM CPU are addressed directly.
FM-NC P bus
Op. sys. mC VDI decod. NC funct.
K bus
external comm.
MPI
From the users view, the interface to the NCK is identical to that on the 840D.
Data are exchanged between the OP and PLC directly via the MPI interface on the PLC. As with the SINUMERIK 840D, the OP is always the active partner (client) and the PLC is always the passive partner (server). Data transmitted or requested by the OP are also read from and written to the OP/PLC interface area by the PLC operating system. Data are exchanged between the MCP/PLC and HHU/PLC via the MPI interface on the PLC. The Communication with global data (GD)1) service is used for this purpose (for details, see STEP7 Users Guide). The PLC operating system handles the transfer of signals from and to the user interface. The STEP configuring tool Communication configuration is used to define both GD parameters as well as operand areas (e.g. I/O) and their initial addresses.
1)
2.5.4
General
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-33
PLC Basic Program (P3) 2.5 Linking PLC CPUs to FM-NC, 810D, 840D
11.02
Alarms/ Messages
The event ID is the first item to be interpreted in the diagnostics buffer. The basic program generates the following alphanumeric combinations in the first two decades of the event ID: A1 : Alarm set A0 : Alarm deleted B1 : Message set B0 : Message deleted The next two decades in the event ID corresponds to the two left-hand decades of the alarm/message number. This 2-decade number of the event ID must be converted from the displayed hex value to a decimal. Field info 1/2/3 must also be evaluated. In this case, only the lower 2 decades of info 1 and info 3 represent valid information about the message number. All the numbers in info 1/2/3 are hexadecimal numbers and must be converted to decimals before the message number can be compiled. The center decades are derived from info1 and the two right-hand decades from info3. (e.g. event ID = B133, info 1/2/3 = 2900 0 9 represents a set message with number 510009). The meaning of the message number is defined by the machine manufacturer. Only the two right-hand decades of the event ID with hex values 28, 29 indicate an error which has been generated by the basic program. The messages stored in the diagnostic buffer can be read out on the MMC with the associated message texts.
1/P3/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02
2.6
Interface structure
The PLC user interfaces on the 840D, 810D and FM-NC are identical except for the data volume. Mapping in interface data blocks is required on account of the large number of signals. These are global data blocks from the viewpoint of the PLC program. During system start-up, the basic program creates these data blocks from current NC machine data (no. of channels, axes, etc.). The advantage of this approach is that the minimum amount of PLC RAM required for the current machine configuration is used.
2.6.1
General
PLC/NCK interface
The PLC/NCK interface comprises a data interface on one side and a function interface on the other. The data interface contains status and control signals, auxiliary functions and G functions, while the function interface is used to transfer jobs from the PLC to the NCK. The data interface is subdivided into the following groups:
Data interface
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-35
10.00
Function interface
The function interface is formed by FBs and FCs. Fig. 2-4 illustrates the general structure of the interface between the PLC and the NCK.
DB 2 MMC DB 9 NC
Messages
NC
Data interface
DB 19 MMC
DB ... Axis/spindle ... DB32 Axis/Spindle 2NCK Signals to DB31 Axis/Spindle Signals to1NCK
Signals from NCK Signals to axis Signals from NCK Signals from axis
Function interface
Start ASUB
Start concurring axis/spindle
Fig. 2-4
PLC/NCK interface
In addition to the standard signals exchanged between the PLC and NCK, an interface DB for compile cycles is also generated when required (DB 9). The signals, which are dependent on the compile cycles, are transmitted cyclically at the start of OB 1.
1/P3/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02
Signals PLC/NC
S Signals for modifying the high-speed digital I/O signals of the NC S Keyswitch and emergency stop signals
Signals NC/PLC
The group of signals from the NC to PLC includes:
S Actual values of the digital and analog I/O signals of the NC S Ready and status signals of the NC
Also output in this group are the handwheel selection signals from the MMC and the status signals of the MMC. The signals for handwheel selection are decoded by the basic program and entered in the machine/axis-specific interface.
DB 10 Byte 0, 1 47 855 5659 60 6467 6896 Decoding handwheel selection 97103 104/105 106109 110117 122127 Axis interface/ geoaxis interface in channel 130145 146163 166185 186189 190193 194209 210225 Control digital NCK inputs (on-board inputs) Control digital NCK outputs (on-board outputs) Reserve Key switch, emergency STOP Actual values of digital NCK inputs (on-board inputs) Setpoints of digital NCK outputs (on-board outputs) Reserve Handwheel selection MMC status signals Basic program status signals Status signals Software cam Control digital NCK inputs (external inputs) Control digital NCK outputs (external outputs) Control analog NCK inputs (external inputs) Control analog NCK outputs (external outputs) Actual values of digital NCK inputs (external inputs) Setpoints of digital NCK outputs (external outputs) Actual values of analog NCK inputs (external inputs) Setpoints of analog NCK outputs (external outputs) MMC BP NCK
Fig. 2-5
PLC/NC interface
The following must be noted with respect to the digital and analog inputs and outputs of the NCK:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-37
11.02
Inputs:
S All input signals or input values of the NCK are also transferred to the PLC. S The transfer of signals to the NC parts program can be suppressed by the
PLC. Instead, a signal or value can be specified by the PLC.
S The PLC can also transfer a signal or value to the NCK even if there is no
hardware for this channel on the NCK side. Outputs:
S All signals or values to be output are also transferred to the PLC. S The NCK can also transfer signals or values to the PLC even if there is no
hardware for this channel on the NCK side.
S The values transferred by the NCK can be overwritten by the PLC. S Signals and values from the PLC can also be output directly via the NCK I/O
devices.
Note When implementing digital and analog NCK I/Os, you must observe the information in the following references: References: /FB/, A4, Digital and Analog NCK I/Os
The operating mode signals input from the machine control panel or the MMC are transferred to the operating mode group (mode group). The mode signals are valid for all NC channels of the mode group on the FM-NC, 810D and 840D. On 840D systems, several mode groups can optionally be defined in the NCK. The mode group reports its current status to the PLC.
DB 11 Byte 03 Control signals BP for mode selection Mode selection 4/5 Select. signals from MMC 6/7 Active mode MCP Fig. 2-6 PLC/mode group signals (e.g. mode group 1)
MMC
NCK
1/P3/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02
There are three groups of signals on the interface (see Fig. 26). These are:
The auxiliary functions and G functions are entered in the interface data blocks in two ways. First, they are entered with the change signals.
S The M signals M00M992) (they are transferred from the NCK with extended address 0) are also decoded and the associated interface bits set for the duration of one cycle.
S In the case of the G functions, the group is additionally decoded and the G
functions which are active in the relevant group are entered in the interface data block.
S The S values are additionally entered together with the related M signals
(M03, M04, M05) in the spindle-specific interface. The axis-specific feedrates are also entered in the appropriate axis-specific interface. When the tool management function is activated in the NCK, the assignment of spindle or revolver and the loading/unloading points are entered (DB7173) in separate interface DBs. The triggering and parameter assignment of NCK functions is performed by means of PLC function calls. The following function calls are available, for example:
S Position a linear axis or rotary axis, S Position an indexing axis, S Start a prepared asynchronous subprogram (ASUB), S Read/write of NC variables, S Update magazine assignment.
Part of the above functions are described in separate function documentation or in Chapter 4 of this documentation.
1) 2)
The MMC signals are entered via the operating system of the PLC The M signals M0 to M99 are transferred by the NCK with the extended address 0.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-39
11.02
MCP
DB 21/22 Byte 07 811 Program control control Protection zones exact stop Traverse signals GEO axes Program control by MMC Program/channel Status GEO axes status Output of auxiliary functions to PLC change signals M, S, T, D, E, H, F values Decoded M signals (M 0M 99) Active G functions Status signals Protection zones Axis/spindle interface M, S, F distributor Control signals
MMC
3239
Status signals
4056
5867 68193
Auxiliary/G functions
NC Channel
Fig. 2-7
The axis-specific and spindle-specific signals (Fig. 2-8, on following page) can be subdivided into the following groups:
1/P3/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02
Byte 011
Axis signals Limit switch Spindle signals Control signals Drive signals Control signals
Technology grinding
Control signals
Axis, spindle,
drive 1 1
1 = values of M, S and F distributors of basic program Fig. 2-8 Interface between PLC and axes/spindles/drives
2.6.2
PLC/MMC interface
General
The following groups of function are required for the PLC/MMC interface:
Machine operation
All operator inputs which lead to response actions on the machine are checked by the PLC. Operator actions are usually performed on the machine control panel. However, it is also possible to perform some operator actions on the MMC (e.g. mode selection, INC mode selection).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-41
11.02 10.00
The PLC operating system enters the operating signals arriving from the MMC straight into the interface data blocks (see Figs. 2-5, 2-6, 2-7, 2-8). In standard cases, the basic program, which decodes the operating signals, allows the operator actions to be performed on the machine control panel (provided the operator actions are available) or on the MMC. If required, the user can switch off the operation via MMC through a parameter MMCToIF of FB1.
PLC messages
The signaling functions are based on the system diagnostic functions integrated in the operating system of the AS 300. These have the following characteristics:
S The PLC operating system enters all important system states and state transitions in a diagnostics status list. Communication events and I/O module diagnostics data (for modules with diagnostic functions) are also entered.
S Diagnostics events which lead to a system stop are also entered with a time
stamp in a diagnostics buffer (circular buffer) in the chronological order of their occurrence.
S An SFC (system function call) can also be used to enter messages in the
diagnostics buffer from the user program.
S The events are coded and entered in the diagnostics buffer. The message
texts must be stored on the OP or MMC. An FC (FC10) for message acquisition is prepared in conjunction with the basic program. This FB records the events, subdivides them into signal groups and reports them to the MMC via the diagnostics buffer. The structure of message acquisition is outlined in Fig. 2-9. The features include the following:
1/P3/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02
S Bit fields for events related to the VDI interface are combined in a single
data block (DB2) with bit fields for user messages.
S The scope of the user bit fields (user area) is defined as standard as
10 areas with 8 bytes each, but can also be adjusted to suit the requirements of the machine manufacturer via basic program parameters in FB 1.
Acknowledgment procedures
The following acknowledgment procedures are implemented for the error and operating messages: Operating messages are intended for the display of normal operating states as information for the user. Acknowledgment signals are therefore not required for this type of message. An entry is made in the diagnostic buffer for incoming and outgoing messages. The MMC maintains an uptodate log of existing operating messages using the identifiers operating message arrived and operating message departed. Error messages are used to display error states on the machine which generally lead to a machine stoppage. Where several errors occur in rapid succession, it is important to be able to distinguish their order of occurrence for troubleshooting purposes. This is indicated, on the one hand, by the sequence of their entry in the diagnostics buffer and on the other, by the time stamp which every entry receives. If the cause of the error disappears, the error message is only deleted if a the user has acknowledged the message (e.g. by pressing a key on the machine control panel). In response to this signal, the FC message acquisition examines which of the reported errors have disappeared and enters these in the diagnostics buffer with the entry error departed. This enables the MMC to also maintain an up-to-date log of existing error messages. The time of day indicating the time of error occurrence remains available for messages which are still pending (in contrast to a received interrogation).
User program
The user PLC program merely needs to call the basic program block FC 10 with appropriate parameter settings in the cyclic program section (see Chapter 4) and to set or reset the bit fields in DB2. All further necessary measures are implemented by the basic program and MMC.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-43
11.02
Change signals Bit fields Message acquisition Channel 1 Feed disable Read disable NC start disable SFC WR_USMSG Feed/ spindle disable Parameters
Channel n Axis/spindle 1
Fig. 2-9
2.6.3
PLC/MCP/HHU interface
General
On the SINUMERIK 840D/810D and FM-NC, the machine control panel (MCP) is connected on the same bus that connects the OP with the NC. The advantage of this is that only one bus cable is required to connect the operator unit. The handheld unit (HHU) can be connected to the MPI of the PLC or to the operator panel interface (OPI) (840D only). However, since the OP bus on the 840D supports higher baud rates, two different types of bus topology are provided.
Topology 840D
On the 840D, the machine control panel is connected to the OPI bus segment (transmission rate 1.5 Mbaud) as an active node (Fig. 210). Where the connection of further keys and displays is required for customized operator panels, an additional keyboard (machine control panel without operating unit) can be used. 64 pushbuttons, switches, etc. and 64 display elements can be connected via ribbon cable. The signals arriving from the machine control panel are copied by the COM module into the DPR (dual port RAM) for transfer to the NC. The NC in turn transmits them to the PLC (VDI task). The basic program of the PLC enters the incoming signals in the input image. The NC-related signals are generally distributed by the basic program to the VDI interface. This can be modified by the user if required. The signals (displays) from the PLC to the machine control panel (MCP) are transferred in the opposite direction.
1/P3/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02
The signals of the handheld unit (HHU) are transferred either via the operator panel interface in the same way as via the machine control panel or by means of the GD service (GD = Global Data) of the MPI interface. The PLC operating system enters the HHU data, for example, in the input image and transfers the display values, e.g. from the output image, back to the HHU. The corresponding parameters are set via the system data block SDB 210 which is generated with the STEP7 tool Communication configuration.
6
1.5Mbaud
COM 13 13
HHU DPR FW
MCP-Sig.
NC
VDI task
DPR
PG
15
FB
2
187.5 kbaud
MCP-Sig.
PLC
Fig. 2-10
On the FM-NC and 810D, the machine control panel, handheld unit and OP are connected to the MPI (multipoint Interface) of the AS 300 (Fig. 2-10). The transmission rate in this configuration amounts to 187.5kbaud. The PLC operating system copies the incoming signals straight to the user interface (e.g. input image) at the cycle control point. Transfer to the VDI interface is performed, as on the 840D, by the user program or by a standard routine of the basic program.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-45
10.00
IM 314
NCU
OpSy 0 PG 15 2
13 P bus K bus
Fig. 2-11
Bus addresses
The default bus addresses for the standard configurations are entered in Figs. 2-10 and 2-11. In addition to the bus addresses, the implicit communication service (global data) also requires the definition of a GD circle number. The following should be taken into account when allocating the bus addresses (node no.):
Bus station Operator panel (OP) Machine control panel/ keyboard interface COM module Programming device/PC (e.g. for start-up)
Table 2-3
PLC bus segment: Setting range 131 Fixed depending on PLC address Permanent 2 3 0 Default setting Note
Bus station PLC COM module Programming device/PC (e.g. for startup) FMs on the K bus
131
1/P3/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02
During start-up, the FMs with K bus connection are determined by the AS CPU and default Cbus addresses then assigned (node NO. FM= Addr. AS CPU + current no.). The FMs are then informed of these addresses via the P bus. The S7-Config configuration tool can be used to assign an individual node number to the AS 314.
Note On the FM-NC, the K bus address in product versions 1 and 2 is set permanently to 13. The hsa bus parameter (highest station address) is derived from the highest station address defined in the default setting or during configuration. This can only be allocated in increments of 15, 31, 653 and 126. S7-config. derives ttr2) from parameter hsa. Since the setting options on the machine control panel are limited, the setting for ttr1) is fixed on the MCP. Since the ttr must be the same for all bus stations, extreme caution should be exercised that none of the bus stations has an address > 15.
1) 2)
Can be set with SW 3.2 and higher ttr = permissible target rotation time (ttr = (hsa + 8) * 256 * bit time)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-47
10.00
The permissible bus addresses for the FM-NC are shown in the following table:
Bus station Operator panel Machine control panel/keyboard interface COM module Programming device/PC (e.g. for startup)
Perm. setting range 115 015 Fixed depending on PLC address Permanent 1
Standard setting
The signals from the machine control panel are routed as standard via the I/O area (Fig. 2-12). A distinction is made between NC and machine-specific signals. NC-specific key signals are normally distributed by FC 19 to the various mode group, NCK, axis and spindle-specific interfaces. The reverse applies to the status signals, which are routed to the machine control panel interface.
Customized keys, which can be used to trigger a wide range of machine functions, must be evaluated directly by the user program. The user program also routes the status signals to the output area for the LEDs.
IB n Key signals
Mode groups INC mode Feed/spindle override Direction keys Key switch Customized keys Current mode Current INC mode Feed/spindle/NC status Active arrow key Status of customized keys
FC 19
AB m
LEDs
AD o
AD p
Standard setting: 840D > n = 07, m = 07, o = 8, p = 12 810D > n = 07, m = 07, p = 12 FMNC > n = 118125, m = 120127, p = 108 Fig. 2-12 Interface to and from machine control panel
1/P3/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 2.7
PLC Basic Program (P3) Structure and functions of the basic program
2.7
General
S Start-up and synchronization (OB 100) S Cyclical mode (OB 1) S Process interrupt handling (OB 40)
Each section of the basic program as illustrated in Fig. 2-13 must be called by the user in OBs 1, 40 and 100.
OB 100 Cold restart OB 1 Cyclical machining
FB 1 Start-up User program FC 2 GPOB 1 NCK Mode group Channel Axis Spindle
User program
FC (9/15/16/18)
ASUB, con. axes/ spindles
OB 40
Process alarm
Fig. 2-13
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-49
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
11.02
2.7.1
The basic program must be loaded with the S7 tool when the PLC is in the Stop state. This guarantees that all blocks in the basic program will be correctly initiated when they are next called. An undefined state may otherwise develop on the PLC (e.g. all PLC LEDs flashing).
Startup
The synchronization of NCK and PLC is performed during start-up. The system and user data blocks are checked for integrity and the most important basic program parameters are verified for plausibility. In cases of error, the basic program outputs an error identifier to the diagnostics buffer and switches the PLC to STOP. A warm restart is not provided, i.e. following system initialization, the operating system runs organization block OB 100 and always commences cyclical execution at the start of OB 1.
Synchronization
The PLC is synchronized with the MMC and NCK during power-up.
Sign of life
Following an orderly start-up and the first complete OB1 cycle (basic setting cycle), the PLC and NCK continually exchange sign-of-life characters. If the signoflife signal from the NCK fails to arrive, the PLC/NCK interface is neutralized and the signal NCK CPU ready in DB 10 is set to zero (see Subsection 2.7.5).
2.7.2
General
Cyclic operation
The NCK-PLC interface is processed completely in cyclical mode. From a chronological viewpoint, the basic program runs ahead of the user program. In order to minimize the execution time of the basic program, only the control/status signals are transmitted cyclically; transfer of the auxiliary functions and G functions only takes place on request. The following functions are performed in the cyclical part of the basic program:
S Transmission of the control/status signals S Distribution of the auxiliary and G functions S M decoding (M0099) S M, S, F distribution S Transmission of the machine control panel signals via the NCK (on the 840D
only)
1/P3/2-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 2.7
PLC Basic Program (P3) Structure and functions of the basic program
A shared feature of the control and status signals is that they are bit fields. The basic program updates them at the start of OB 1. The signals can be subdivided into the following groups:
S General signals S Mode group-specific signals such as operating modes S Channel-specific signals such as program and feed modifications S Axis and spindle-specific signals such as feed disable
Auxiliary and G functions
The auxiliary and G functions have the following characteristics:
S Transfer to the PLC is block-synchronous (referred to a parts program block) S Transfer is acknowledge-controlled S The acknowledgment times have an immediate effect on the execution time
of NC blocks containing auxiliary functions requiring acknowledgment. The value range is presented in the following table:
Function
Structure 1st Value 2nd Value G function M group Spindle no. Magazine no. H group Axis no. M word S word T word D word H word F word
Value range 1st Value 2nd Value 02551) 099 06 099 099 099 018 099.999.999 Floating point2) 065535 0255 Floating point Floating point Word Word Word Byte Word Word
Data type 1st Value 2nd Value Byte DWord DWord Word Byte DWord DWord
The M, S, T, H, D and F values are passed from the NCK to the auxiliary/G function distributor, which outputs them together with the accompanying change signals to CHANNEL DB interface (see documentation Lists of SINUMERIK 840D, 810D, FM-NC). The function value and the extended address are transferred to the appropriate data word. The accompanying modification signal is activated to 1 for one PLC cycle. When the modification signal is reset, the acknowledgment is passed to the NCK. The acknowledgment of high-speed auxiliary functions is given by the basic program immediately the basic program detects the auxiliary function. In addition to distribution of the auxiliary and G functions, selected signals are processed as described in the following paragraphs.
M decoder
M functions can be used to pass both switching commands and fixed point values. Decoded dynamic signals are output to the CHANNEL DB interface for the standard M functions (M00 to M99); the signal length = 1 cycle time.
1) 2)
Relative number passed for each G group In STEP7 format (24 bit mantissa, 8 bit exponent).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-51
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
11.02
G group decoder
In the case of the G functions passed from the NCK, the groups are decided and each G number is entered in the corresponding interface byte of the CHANNEL DB, i.e. all active G functions are entered in the channel DBs. The entered G functions are retained even after the NC program has terminated or aborted.
Note During system start-up, all of the G group bytes are initialized with the value 0.
M, S, F distributor
The M, S, F, distributor is used to enter spindle-specific M words M(1 ...6)=[3,4,5], S words and F words for axial feeds in the appropriate spindle and axis data blocks. The criterion for distribution is the extended address, which is passed to the PLC for M words, S words and axial F words. On the 840D, the MCP signals are transferred to the NCK via the serial bus (MPI) and from there to the PLC. A function call from the basic program transfers the signals to the interface of inputs and outputs specified by basic program parameters. The status signals for controlling the LEDs on the machine control panel are passed in the opposite direction. The system has already been described in Subsection 2.3.2. The acquisition and processing of the user error and operational messages is performed by an FC in the basic program.
User messages
2.7.3
General
2.7.4
General
1/P3/2-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
2.7.5
Response to NC failure
General
During cyclical operation, the PLC continuously monitors the NC availability by querying the sign-of-life character. If the NCK is no longer reacting, then the NCK PLC interface is neutralized and IS NCK CPU ready in the signals from NC group (DB 10.DBX 104.7) is reset. The signals which are passed from the NCK to the PLC are initialized with default settings (as described below). The PLC itself remains active so that it can continue to control machine functions.
The signals which are transferred from the NCK to PLC are divided into the following groups:
S Status signals from the NCK, channels, axes and spindles S Modification signals of the auxiliary functions S Values of the auxiliary functions S Values of the G functions
Status signals: The status signals from the NCK, channels, axes and spindles are reset. Change signals of the auxiliary functions: The change signals of the auxiliary functions are also reset. Values of the auxiliary functions: The values of the auxiliary functions are retained so that it is possible to trace which were the last functions to be triggered by the NCK. Values of the G functions: The values of the G functions are reset (i.e. initialized with the value 0).
The signals which are sent from the PLC to the NCK are divided into control signals and tasks that are transferred by FCs to the NCK. Control signals: The control signals from the PLC to the NCK are frozen; cyclical updating by the basic program is suspended. Jobs from the PLC to the NCK: The FCs and FBs, which are used to pass jobs to the NCK must no longer be processed by the PLC user program, as this could possibly lead to incorrect checkback signals. During run-up of the control, a job (e.g. reading NCK data) must not be activated in the user program until the NCK CPU ready is set.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-53
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
2.7.6
General
In addition to the modules of the basic program, which are called at the start of OBs 1, 40 and 100, functions are also provided which can be called at a suitable point in the user program and supplied with parameters. These functions can be used, for example, to pass the following jobs from the PLC to the NCK:
S Traverse concurrent axes (FC 15, FC 16), S Start asynchronous subprograms (ASUBs) (FC 9), S Select NC programs and NC blocks (FB 4), S Control of spindle (FC 18), S Read/write variables (FB 2, FB 3).
Note The following note will later help you to check and diagnose a function call (FCs, FBs of basic program). These are FCs and FBs which are controlled by a trigger signal (e.g. via parameter Req, Start, ...) and which supply an execution acknowledgment as an output parameter (e.g. via parameter Done, NDR, Error, ...). A variable compiled of other signals which produce the trigger for the function call should be set. Start conditions may be reset only as a function of the states of parameters Done, NDR and Error. This control mechanism may be positioned in front of or behind the function call. If the mechanism is placed after the call, the output variables can be defined as local variables (advantage: Reduction of global variables, flags, data variables and time-related advantages over data variables). The trigger parameter must be a global variable (e.g. flag, data variable). Jobs that have been activated by the user program (Parameter Req, Start, ... := TRUE) must be reset to zero for the parameters named in OB 100. A POWER OFF/ON could result in a state in which jobs are still active.
Concurrent axes
S They can be traversed either from the PLC or from the NC. S They can be started from a function call on the PLC in all operating modes. S The start is independent of NC block boundaries.
Function calls are available for positioning (FC 15) and indexing axes (FC 16).
1/P3/2-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
FC 15 PosAx Start AxisNo IC Inch HWheelOv Pos FRate Input parameters InPos Activ StartErr Error
Starting parameters
ASUBs
Asynchronous subprograms (ASUBs) can be used to activate any selected function in the NC. Before an asynchronous subprogram can be started from the PLC, it must be ensured that it is available and prepared by the NC program or by FB 4 PI services (ASUB). ASUBs can only be started in MDA or Automatic mode with running parts program. Once prepared in this way, it can be started at any time from the PLC. The NC program running on the channel in question is interrupted by the asynchronous subprogram. The asynchronous subprogram is started by FC 9.
FC 9 ASUB Start ChanNo IntNo Ref
Note If an asynchronous subprogram has not been prepared by an NC program or by FB 4 (ASUB) (e.g. if no interrupt no. has been assigned), a start error is output.
ReadNC variables
Variables of the NCK can be read with FB GET while values can be entered in NCK variables with FB PUT. The NCK variables are addressed via identifiers at inputs Addr1 to Addr8. The identifiers (symbols) point to address data which must be stored in a global DB. To allow generation of this DB, PC software is supplied with the basic program with which the desired variables can be selected from a table which is also supplied. The selected variables are first collected in a second, project-related list. Command Generate DB creates an *.STL file which must be linked to the program file for the machine concerned and compiled together with the machine program (see also Section 3.2).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-55
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
1 to 8 values can be read or written with a read or write job. If necessary, the values are converted (e.g. the NCK floating point values (64 bits) are converted to the PLC format (32 bits with 24 bit mantissa and 8 bit exponent) and vice versa). A loss of accuracy results from the conversion from 64 bits to 32 bit REAL. The maximum precision of 32 bit REAL numbers is approximately 10 to the power of 7. FB 2 and FB 3 are described in Chapter 4 of this documentation.
FB 2 GET Req NumVar Addr1 to 8 Unit1 to 8 Column1 to 8 Line1 to 8 RD Error NDR State FB 3 PUT Req NumVar Addr1 to 8 Unit1 to 8 Column1 to 8 Line1 to 8 SD8 Error Done State
2.7.7
General
Note With basic program SW 3.2 and higher, files NST_UDT.STL and TM_UDT.AWL are stored on the basic program diskette supplied with the system. The compiled UDT blocks from these two files are stored in the CPU program of the basic program. A UDT is a data type defined by the user that can, for example, be assigned to a data block generated in the CPU. Symbolic names of virtually all the interface signals are defined in these UDT blocks. The UDT numbers 2, 10, 11, 19, 21, 31, 71, 72, 73 are used. The assignments have been made as follows:
Table 2-4 UDT number UDT 2 UDT 10 UDT 11 UDT 19 UDT 21 UDT assignments Assignment to interface DB DB 2 DB 10 DB 11 DB 19 DB 21 to DB 30 Meaning Alarms/Messages NCK signals Mode group signals MMC signals Channel signal
1/P3/2-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
UDT assignments Assignment to interface DB DB 31 to DB 61 DB 71 DB 72 DB 73 Meaning Axis/spindle signals Tool management: Load/unload Tool management: Change in spindle Tool management: Change in revolver
In order to program the interface signals as symbols, the data blocks of the interface must first be assigned symbolically with the symbol editor. For example, symbol AxisX is assigned to operand DB31 with data type UDT 31 in the symbol file. After this input, the STEP7 program can be programmed in symbols for this interface. Note Programs generated with an earlier software version that utilize the interface DBs described above can also be converted into symbol programs. To do so, however, a fully qualified instruction is needed for data accessing in the earlier program (e.g. U DB31.DBX 60.0 this command is converted to AxisX.E_SpKA when the symbolics function is activated in the editor).
Description
Abbreviated symbolic names of the interface signals are defined in the two STL files NST_UDT.AWL and TM_UDT.AWL. In order to create the reference to the names of the interface signals, the name is included in the comment after each signal. The symbolic names, commands and absolute addresses can be viewed by means of a STEP7 editor command when the UDT block is opened.
Note Unused bits and bytes are listed, for example, with the designation f56_3. 56 3 Specifies the relevant byte address of the relevant data block. This number corresponds to the bit number in this byte.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-57
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
English versions of the UDT interfaces are available in SW 4.4 and higher under NST_UDTB.AWL and TM_UDTB.AWL. Only the English versions will continue to be developed in future versions. The following procedure is necessary in order to convert the previously used German symbols into the English language: If you are working without sources, you only need to compile the NST_UDTB.AWL and TM_UDTB.AWL blocks. The new symbols are then immediately visible. If you are using sources, the sources must first be compiled with the previous UDTs (NST_UDT.AWL and TM_UDT.AWL). It is then necessary to compile NST_UDTB.AWL and TM_UDTB.AWL. After this step, you need to initiate a reverse compilation into the sources in accordance with the previous source setup. The interface symbols are then permanently converted to English.
2.7.8
Description of functions
When the M decoding according to list function is activated via the BP parameter of FB1 ListMDecGrp, up to 256 M functions with extended address can be decoded by the basic program. The assignment between the M function with extended address and the bit to be set in the signal list is defined in the decoding list. The signals are grouped for this purpose. The signal list contains 16 groups with 16 bits each as decoded signals. There is only one decoding list and one signal list, i.e. this is a cross-channel function. The M functions are decoded. Once they are entered in the decoding list, then the associated bit in the signal list is set. When the bit is set in the signal list, the read-in disable in the associated NC channel is set simultaneously by the basic program. The read-in disable in the channel is reset once the user has reset all the bits output by this channel and thus acknowledged them. The output of an M function decoded in the list as a high-speed auxiliary function does not result in a read-in disable. In the following, Fig. 2-14 shows the structure of the M decoding according to list function.
1/P3/2-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
DB 75
Userprogram FC X
Decoding list
N10 M3=17
DB 76 Signal list
Read-in disable Machining status/ control signals Read-in disable w1 w1 N30 M40=55 Read-in disable DB21 FC Y
Fig. 2-14
There must be an entry in decoding list DB 75 for every group of M functions to be decoded. A maximum of 16 groups can be created. 16 bits are available in each group in the list of decoded signals. The assignment between the M function with extended address and the bit to be set in the signal list is specified via the first and last M functions in the decoding list. The bit address is generated correspondingly from the first M function (MFirstAdr) to the last M function (MLastAdr) from bit 0 up to maximum bit 15 for each group. Each entry in the decoding lists consists of 3 parameters, each of which are assigned to a group. The source file for the decoding list (MDECLIST:AWL) is supplied with the basic program.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-59
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
Assignment of groups Extended M address MSigGrp[1].MExtAdr MSigGrp[2].MExtAdr ... MSigGrp[16].MExtAdr First M address in group MSigGrp[1].MFirstAdr MSigGrp[2].MFirstAdr ... MSigGrp[16].MFirstAdr Last M address in group MSigGrp[1].MLastAdr MSigGrp[2].MLastAdr ... MSigGrp[16].MLastAdr
Type and value range for signals Type Value range 0 to 99 0 to 99,999,999 0 to 99,999,999 Notes Extended M address First M address in group Last M address in group
Example
DATA_BLOCK DB 75 TITLE = VERSION: 0.0 STRUCT MSigGrp : ARRAY [1 .. 16 ] OF STRUCT MExtAdr : MFirstAdr : MLastAdr : END_STRUCT; END_STRUCT ; BEGIN MSigGrp[1].MExtAdr := MSigGrp[1].MFirstAdr := MSigGrp[1].MLastAdr := MSigGrp[2].MExtAdr := MSigGrp[2].MFirstAdr := MSigGrp[2].MLastAdr := 0; L#0; L#0; 0; L#0; L#0; INT ; DINT ; DINT ;
Signal list
Data block DB 76 is set up when the function is activated. A bit is set in the appropriate group in DB 76 for an M signal decoded in the list.
1/P3/2-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
At the same time, a read-in disable is set (as described above) in the channel in which the M function has been output.
Activation of function
The number of groups to be evaluated is specified in basic program parameter ListMGDecGrp (see also description of FB1). The decoding function is activated if this value is between 1 and 16. Before activation of decoding, the decoding list DB75 must be transferred to the PLC followed by a restart.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-61
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
Example
The following table 2-7 contains the parameters for the programming example below:
Table 2-8 Group Extended M address 1 2 3 2 3 40 Example parameters Decoding list (DB 75) First M address 1 12 55 Last M address in group 5 23 55 Signal list DB 76 DBX0.0 to DBX0.4 DBX2.0 to DBX3.3 DBX4.0
DATA_BLOCK DB 75 TITLE = VERSION: 0.0 STRUCT MSigGrp : ARRAY [1 .. 16 ] OF STRUCT MExtAdr : MFirstAdr : MLastAdr : END_STRUCT ; END_STRUCT ; BEGIN MSigGrp[1].MExtAdr := MSigGrp[1].MFirstAdr := MSigGrp[1].MLastAdr := MSigGrp[2].MExtAdr := MSigGrp[2].MFirstAdr := MSigGrp[2].MLastAdr := MSigGrp[3].MExtAdr := MSigGrp[3].MFirstAdr := MSigGrp[3].MLastAdr := END_DATA_BLOCK 2; L#1; L#5; 3; L#12; L#23; 40; L#55; L#55; INT ; DINT ; DINT ;
1/P3/2-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
2.7.9
General
The user has the option of storing PLC-specific machine data in the NC. He can process these data while the PLC is running up (OB100). This feature allows, for example, user options, machine expansions, machine configurations, etc. to be implemented. The interface for reading the data is located in DB20. However, DB20 is set up by the basic program during power-up only when user machine data are used, i.e. sum of BP parameters UDInt, UDHex and UDReal is greater than zero. The size of the individual areas and thus also the total length of DB20 is set by PLC machine data (in general machine data: MAXNUM_USER_DATA_INT, MAXNUM_USER_DATA_HEX, MAXNUM_USER_DATA_FLOAT) and displayed for the user in BP parameters: UDInt, UDHex and UDReal. The BP stores data flush in DB20 in the following order: Integer MD, Hexa field MD, Real MD. Integer and real values are stored in S7 format in DB20. Hexadecimal data are stored in DB20 in the order in which they are input (use as bit fields).
DB 20 No. of UDInt User machine data Type INT No. of UDHex User machine data Type BYTE User machine data Type REAL No. of UDReal
Fig. 2-15
DB 20
Note If the number of PLC machine data used is increased later, then DB20 must be deleted beforehand. To prevent such extensions in use from having any effect on the existing user program, the data in DB20 should be accessed in symbolic form wherever possible, e.g. by means of a structure definition in the UDT.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-63
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
Alarms Delete DB 20 in PLC and restart DB length is not the same as the required DB length Alarm display and PLC STOP Delete DB 20 followed by Reset After cold restart
Example
The project in the example requires 4 integer values, 2 hexadecimal fields with bit information and 1 real value. Machine data:
14510 USER_DATA_INT[0] 14510 USER_DATA_INT[1] 14510 USER_DATA_INT[2] 14510 USER_DATA_INT[3] ... 14512 USER_DATA_HEX[0] 14512 USER_DATA_HEX[1] ... 14514 USER_DATA_FLOAT[0] 123 456 789 1011 12 AC 123.456
BP parameter (OB100): Call fb 1, db 7( MCPNum := 1, MCP1In := P#E0.0, MCP1Out := P#A0.0, MCP1StatSend := P#A8.0, MCP1StatRec := P#A12.0, MCP1BusAdr := 6, MCP1Timeout := S5T#700MS, MCP1Cycl := S5T#200MS, NCCyclTimeout := S5T#200MS, NCRunupTimeout := S5T#50S; BP parameters (scan during run):
1/P3/2-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
While the PLC is powering up, DB20 has been set up with a length of 28 bytes: DB 20
Table 2-10
Note ARRAY OF BOOL are always send to even-numbered addresses. For this reason, an array range of 0 to 15 must generally be selected in the UDT definition or all Boolean variables specified individually.
Although only a REAL value is used initially in the example, a field (with one element) has been created for the variable. This ensures that extensions can be made easily in the future without the symbolic address being modified. An entry is made in the symbol list to allow data access in symbolic form:
Alarms
Symbol UData DB 20 Operand Data type UDT 20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-65
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
Access operations in user program (list includes only symbolic read access operations):
... L L L L U U U U U U U U U L ... UData.UDInt[0]; UData.UDInt[1]; UData.UDInt[2]; UData.UDInt[3]; UData.UDHex0[0]; UData.UDHex0[1]; UData.UDHex0[2]; UData.UDHex0[3]; UData.UDHex0[4]; UData.UDHex0[5]; UData.UDHex0[6]; UData.UDHex0[7]; ... UData.UDHex0[15]; UData.UDReal[0];
2.7.10
General
The communications system integrated in the NC permits a maximum of 2 machine control panels and one handheld unit to exchange data with the 810D (SW 4 and higher) and the 840D. An SDB 210 is not required to transfer the signals of these components. The information given below is based on the assumption that no SDB 210 has been installed for the components concerned. The components are parameterized by calling basic program block FB 1 in OB 100.FB 1 stores its parameters in the associated instance DB (DB 7, symbolic name gp_par). Separate parameter sets are provided for each machine control panel and the handheld unit. The input/output addresses of the user must be defined in these parameter sets. These input and output addresses are also used in FC 19, FC 24, FC 25, FC 26 and FC 13. Addresses for status information, MPI or OPI (a GD parameter set must be set for the handheld unit rather than an MPI address) must also be defined (please also see Chapter 4, Description of FB 1). The time settings for timeout and cyclical forced retriggering can remain at the defaults.
Activation
Each component is activated either via the number of machine control panels (Parameter MCPNum) or, in the case of the handheld unit, parameter BHG := 2 (BHG := 1 signifies a link via the MPI interface in conjunction with an SDB 210). Whether a component is to be linked to the OPI or the MPI is determined by parameters MCPMPI and BHGMPI.
Handheld unit
The handheld unit addresses the MPI or OPI by means of a GD parameter set. These parameter values must be assigned according to the handheld unit settings. However, the parameter names on the handheld unit are the reverse of the parameter names in the basic program. All parameters of type Send on the handheld unit must be defined as type Rec (and type Rec as Send) in the basic program.
1/P3/2-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
Control signals
Parameters MCP1Stop, MCP2Stop and BHGStop can be used to stop communication with individual components (parameter setting = 1). This stop or activation of communication can be applied in the current cycle. However, the change in value must be implemented through the symbolic notation of the parameters and not by means of another FB 1 call. Example of how to stop data exchange with the 1st machine control panel: SET; S
gp_par.MCP1Stop;
Setting of the parameters MCP1Stop, MCP2Stop, BHGStop also results in a suppression of the alarms 40260 to 40262
With SW 4 and higher, an existing connection with a machine control panel (MCP) or handheld unit (HHU) can be separated. Another MCP or HHU component already connected to the bus (with another MPI or OPI address) can then be activated. The following procedure must be followed to switch addresses: 1. Stop communication with component to be decoupled via parameter MCP1Stop or MCP2Stop or BHGStop = 1. 2. After checkback in DB10 byte 104 (relevant bits 0, 1, 2 set to 0). Change in the bus address or GD parameter set of this unit to that of the new component. 3. In this PLC cycle, communication with the new component can now be activated again by means of parameter MCP1Stop or MCP2Stop or BHGStop = 0. 4. Communication with the new component is taking place when the checkback in DB10 byte 104 (relevant bits 0, 1, 2 is set to 1). As described in Section Control signals, all parameters must be programmed according to data type.
Configuration
There are basically two communications mechanisms for transferring data between the MCP/HHU and PLC. With the first mechanism, data are transported via the Comm module (840D/810D). The mechanism is parameterized completely via the MCP/HHU parameters in FB1. In the second case, data are transferred via the PLC operating system (FM-NC) through evaluation of SDB210(Global Data). The mechanism is parameterized via STEP7>Global Data. To allow the basic program to access these data and implement MCP/HHU failure monitoring, the addresses set via SDB210(Global Data) must be declared in the FB1 parameters in the basic program. An overview of the various interfacing options as a function of the NC type used is given below. In each case, the parameter set of FB1 and the valid status information that are relevant for the respective data transmission method are specified.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-67
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
If an error is detected due to a timeout monitor, a corresponding entry is made in the diagnostics buffer of the PLCCPU (errors 400260 to 400262). In this case, the input signals from the MCP or from the handheld unit (MCP1In/MCP2In or BHGIn) are initialized with 0. If it is possible to resynchronize the PLC and MCP/HHU, communication is resumed automatically and the error message reset by the BP.
OPI
COMM module
D P R int. PLC D P R
NCK
MCP
MCP
HHU
MPI
Fig. 2-16
Table 2-11
Relevant parameters (FB1) MCP HHU BHG=2 (transfer via COMM module) BHGIn BHGOut BHGStatSend BHGStatRec BHGInLen BHGOutLen BHGTimeout BHGCycl BHGRecGDNo BHGRecGBZNo BHGRecObjNo BHGSendGDNo BHGSendGBZNo BHGSendObjNo BHGMPI = FALSE (OPI), TRUE (MPI) BHGStop
MCPNum=1 or 2 (number of MCPs) MCP1In MCP1Out MCP1StatSend MCP1StatRec MCP1BusAdr MCP1Timeout MCP1Cycl MCP2In MCP2Out MCP2StatSend MCP2StatRec MCP2BusAdr MCP2Timeout MCP2Cycl
1/P3/2-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
Table 2-12
Status information Bit No. 4 Description Syntax error in GD packet: Error in parameter set (FB1) Sender: Time out Receiver: Time out
Available in MCP1StatSend MCP2StatSend HGStatSend MCP1StatSend MCP2StatSend BHGStatSend MCP1StatRec MCP2StatRec BHGStatRec
27
10
An error entry is also generated in the PLC diagnostics buffer for the timeout monitors (bits 10 and 27), resulting in the following error messages on the MMC:
COMM module
D P R int. PLC D P R
NCK
MCP
MCP
HHU
MPI
SDB210 for HHU Fig. 2-17 840D: MPI coupling for HHU
Relevant parameters (FB1): Communication between the PLC and HHU is implemented through configuring and subsequent loading of SDB210 (Global Data). To allow the basic program to access the HHU data and implement HHU failure monitoring, the addresses set via global data must be declared in FB1 parameters.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-69
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
Table 2-13
Relevant parameters (FB1) MCP HHU (parameterization via SDB210) BHG = 1 (transfer via SDB210)
The interface is parameterized via the relevant parameters in FB1 (see Table 2-11 )
BHGIn (as parameterized in SDB210) BHGOut (as parameterized in SDB210) BHGStatRec (as parameterized in SDB210) BHGTimeout (as parameterized in SDB210)
Status information (MCP1 and MCP2 see Table 2-12) Bit No. 10 Description Receiver: Time out,
An error entry is also generated in the PLC diagnostics buffer for the timeout monitors, resulting in the following error message on the MMC:
PLC CPU
NCK
MCP
MCP
HHU
MPI
Fig. 2-18
MPI coupling
Table 2-15
Relevant parameters (FB1) MCP HHU BHG=2 (transfer via Commmodule) BHGIn BHGOut BHGStatSend
1/P3/2-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
PLC Basic Program (P3) Structure and functions of the basic program
Table 2-15
Relevant parameters (FB1) MCP HHU BHGStatRec BHGInLen BHGOutLen BHGTimeout BHGCycl MCP2Stop BHGRecGDNo BHGRecGBZNo BHGRecObjNo BHGSendGDNo BHGSendGBZNo BHGSendObjNo BHGMPI = TRUE (MPI) BHGStop
Table 2-16
Status information Bit No. Description Syntax error in GD packet: Error in parameter set (FB1) Sender: Time out Receiver: Time out
Available in MCP1StatSendMCP2Stat 4 Send BHGStatSend MCP1StatSendMCP2Stat 27 SendB HGStatSend MCP1StatRec MCP2StatRec BHGStatRec 10
An error entry is also generated in the PLC diagnostics buffer for the timeout monitors (bits 10 and 27), resulting in the following error messages on the MMC:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-71
PLC Basic Program (P3) 2.7 Structure and functions of the basic program
10.00
PLC CPU
NCK
MCP
MCP
HHU
Fig. 2-19
Relevant parameters (FB1): Communication between the PLC and HHU is implemented through configuring and subsequent loading of SDB210 (Global Data). To allow the basic program to access the HHU data and implement HHU failure monitoring, the addresses set via global data must be declared in FB1 parameters.
Table 2-17 Relevant parameters (FB1), (all entries as parameterized in SDB210 global data) MCP MCPNum=1 or 2 (number of MCPs) MCP1In MCP1Out MCP1StatRec MCP1Timeout MCP2In MCP2Out MCP2StatRec MCP2Timeout HHU BHG=1 (MPI) BHGIn BHGOut BHGStatRec BHGTimeout
Status information (MCP1 and MCP2 see Table 2-12) Bit No. 10 Description Receiver: Time out,
An error entry is also generated in the PLC diagnostics buffer for the timeout monitors, resulting in the following error message on the MMC:
1/P3/2-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.8
Note SDB210 in BP of FM-NC The project in the basic program supplied for the FM-NC already contains an SDB 210. The parameter settings of this block are preprogrammed and can be used only to link up one MCP. The bus address of the MCP must be set to 6. Bus address 6 can only be used in conjunction with the SDB 210 integrated in the parts program. If another MCP/HHU is to be connected or if this bus address cannot be used, then the user must create his own SDB210 using STEP7 global data.
2.8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/2-73
10.00
Notes
1/P3/2-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
3.1
3.1
3.1.1
Supplementary conditions
Programming and parameterizing tools
Hardware
Programming devices or PCs with the following equipment are required for the PLCs installed on the FM-NC, 810D and 840D:
Minimum Processor RAM (MB) Hard disk, free capacity (MB) Interfaces Graphics Mouse Operating system 80486 32 200
MPI incl. Cable memory card VGA or TIGA Yes Windows 95/98/NT with STEP7 Version 4 Windows 95/98/NT or later with STEP7 Version 5.1 or later SVGA
The STEP7 package for the S7300 can be obtained and installed on equipment meeting the above requirements in cases where the package has not already been supplied with the programming device. This package allows the following functions to be implemented (more detailed information about available functions can be found in the SIMATIC catalogs and the STEP7 documentation):
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/3-75
10.00
Programming
S Editors and compilers for STL (complete scope of the language incl. SFB/
SFC calls), LAD, CSF
S Creation and editing of assignment lists (symbol editor) S Data block editor S Input and output of blocks ON/OFF line S Insertion of modifications and additions ON and OFF line S Transfer of blocks from programming device to the PLC and vice versa
Parameterizing
S Parameterizing tool HW Config for CPU and I/O device parameterization S Configuration tool Communication Configuration or setting the CPU
communication parameters
S Output of system data such as hardware and software version, memory capacity, I/O expansion/assignment
S Variable status/forcing (I/Os, flags, data block contents, etc.) S Status of individual blocks S Display of system states (ISTACK, BSTACK, system status list) S Display of system messages S PLC STOP/complete restart/overall reset triggering from the programming
device
S Compress PLC
Documentation
S Printout of individual or all blocks S Allocation of symbolic names (also for variables in data blocks) S Input and output of comments within each block S Printout of test and diagnostics displays S Hardcopy function S Crossreference list S Program overview S Assignment plan I/O/M/T/C/B/P/D
1/P3/3-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
S Allocation of the output statuses of individual blocks S Comparison of blocks S Rewiring S STEP 5 > STEP 7 converter
Option packages
Programming in S7-HIGRAPH, S7-GRAPH, SCL. These packages can be ordered via SIMATIC Sales and Marketing Offices. Special packages for configuring modules (e.g. CP3425 > NCM package)
3.1.2
3.1.3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/3-77
10.00
3.2
3.2.1
NC VAR selector
Overview
General
A catalog with an optional catalog name must be set up via the Windows-Explorer. The selected data of the VAR selector (data.VAR and data.AWL (STL)) must be stored in this catalog. An Insert, External source into the STEP7 machine project for the Data.AWL file must then be carried out via the STEP7 manager (V3 and higher). The source container must be selected in the manager for this purpose. This action stores this file in the project structure. Once the file has been transferred, these AWL (STL) files must be compiled with STEP7. The PC application NC VAR selector fetches the addresses of required NC variables and conditions them for accessing in the PLC program (FB 2/FB 3). This enables the programmer to select NC variables from the entire range of NC variables, to store this selection of variables, to edit them by means of a code generator for the STEP7 compiler and finally to store them as an ASCII file (*.AWL) in the machine CPU program. Fig. 31 illustrates this process.
Note The latest NC VAR selector can be used for each NC software version (even earlier versions). The variables can also be selected from the latest list for earlier NC software versions. The data content in DB 120 (default DB for variables) does not depend on the software version, i.e. selected variables in an older software version must not be reselected when the software is upgraded.
1/P3/3-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Project
Complete list Selected list
var_2
.var
.awl
Fig. 3-1
NC VAR Selector
After the NC VAR selector application has been started, a list of variables of an NC variant is selected (hard disk > File Ncv.mdb) and all the variables contained in this list displayed in a window. SW 6.3 includes the variable lists ncv*.mdb categorized according to: Variables of NC including machine and setting data: ncv_NcData.mdb Machine data of the 611D drive: ncv_611d.mdb Machine data of the 611D linear drive: ncv_611dLinear.mdb Machine data of the 611D drive, Performance 2: ncv_611d_P2.mdb Machine data of the 611D linear drive, Performance 2: ncv_611d_P2Linear.mdb Machine data of the hydraulic drive: ncv_Hydraulics.mdb The user can also transfer variables to a second list (another window). This latter selection of variables can then be stored in an ASCII file or edited as a STEP7 source file (.awl) and stored. Once he has generated a PLC data block by means of the STEP7 compiler, the programmer is able to read or write NCK variables via the basic program function blocks PUT and GET using the STEP7 file. The list of selected variables is also stored as an ASCII file (file extension .var). The variable list supplied with the NC VAR selector tool is appropriately adapted to the current NC software version. This list does not contain any variables (GUD variables) defined by the user. These variables are dealt with by the basic program by function block FB 5 (see Chapter 4 of this description).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/3-79
10.00
Note The latest version of the NC VAR selectors is capable of processing all previous NC software versions. It is not therefore necessary to install different versions of the NC VAR selectors in parallel.
The PC application NC VAR Selector requires Windows 95 (or later operating system). Assignment of names to variables is described in References: /LIS/, Lists, Section Variables or also in the help file of the varaibles (integrated in NC VAR selector)
3.2.2
Description of Functions
Overview
Fig. 3-2 illustrates how the NC VAR selector is used within the STEP7 environment.
NC VAR selector
STEP7
User data
Fig. 3-2
The NC VAR selector is used to generate a list of selected variables from a list of variables and then to generate an .awl file that can be compiled by the STEP7 compiler.
1/P3/3-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Note An *.awl file contains both the names or ALIAS names and the data for the address parameters of the NC variables. A data block generated from the file contains only the address parameters (10 bytes per parameter).
S To ensure that the parameterization of the GET/PUT (FB 2/3) blocks with
respect to NC addresses can be implemented with symbols, the freely assignable, symbolic name of the generated data block must be included in the STEP 7 symbol list.
After the NC VAR selector has been selected (started), the basic display with all input options (upper menu bar) appears on the screen (Fig. 3-3). All other displayed windows are placed within the general window.
Fig. 3-3
All operator actions associated with the project file (file of selected variables) are performed under this menu item (Fig. 3-3). The application can be terminated by selecting option End under menu item Project.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/3-81
10.00
A new project (new file for selected variables) can be set up under menu item Project. A window is displayed for the selected variables when NEW is selected (Fig. 3-4). The file selection for the NC variable list is then displayed after a prompt (applies only if the NC variable list is not already open).
Fig. 3-4
A project which already exists (variables have already been selected) can be opened by selecting Open under menu item Project (see Fig. 35). A file selection window is displayed allowing the appropriate project with extension .var to be selected.
Fig. 3-5
If, after selection of the project, new variables are to be added, a complete list of NCK variables must be selected (see: Selecting complete list). No complete list need be called if the user only wishes to delete variables from the project. Saving a project The variable list is stored via menu commands Project, Save or Save as .... Save stores the variable list under a path which is already specified. If the project path is not known, then the procedure is as for Save as ....
1/P3/3-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Save as ... displays a window in which the path for the project to be stored can be specified. Printing a project The command Print under menu item Project can be selected to print a project file. The number of lines per page are selected via menu command Print Setting (default is 77 lines). All operator actions such as
S transfer variables S delete variables S change alias names S search for variables
can be executed directly in this menu. These actions can also be canceled again under Edit.
Undoing actions
Operator actions relating to the creation of the project file (transfer variables, delete variables, change alias names) can be undone in this menu.
The basic list of all variables is saved in NC Var Selector path Data\Swxy (xy stands for SW no., e.g. SW 5.3:=xy=53). This list can be selected as an NC variables list. In SW 6.3 and higher, variable lists are available according to topic (see previous chapter).
A list of all the NC variables of an NC version is now selected and displayed via menu commands NC Variable List, Select (see Fig. 3-6).
Fig. 3-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/3-83
10.00
The field variables (e.g. axis area, T area data, etc.) are indicated by means of brackets ([.]). Additional information must be specified here. When the variables are transferred to the project list, the additional information required is requested. Displaying subsets When any table field is doubleclicked (with the exception of variable fields!), a window is displayed in which filter criteria can be preset (Fig. 3-6).
Fig. 3-7
S Display all data S Input area, block and name (incl. combinations) S Display MD/SE data number
It is also possible to use the following wildcards: * to extend search criterion to any length,
This is found:
Select variables
A variable is selected by means of a simple mouse click and transferred to the window of selected variables with a double click. This action can also be undone again under menu item Edit.
1/P3/3-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Alias name
The variables names provided can be up to 32 characters in length. To make variables clearly identifiable in the data block to be generated, several ASCII characters are added to the selected name. However, the STEP7 compiler recognizes only 24 ASCII characters as an unambiguous STEP7 variable. Since it cannot be precluded that variable names can only be differentiated by the last 8 character positions, Alias names are used for names which are too long. When a variable is selected, the length of the STEP7 name to be used is therefore checked. If it is longer than 24 characters, the user must input an additional name which is then used as the alias. In this case, the user must ensure that the alias name is unambiguous. The alias input can always be activated by the user in the Option menu. An alias name can then be entered every time a variable is transferred. It is also possible to edit alias names at a later point in time by doubleclicking on the S7 variable name field. This action can also be undone again under menu item Edit.
Fig. 3-8
Scrolling
A scroll bar is displayed if it is not possible to display all variables in the window. The remaining variables can be reached by scrolling (page up/down).
If variables are selected from multi-dimensional structures, then the column and/or line number as well as the area number must be entered so that the variables can be addressed (see Fig. 3-8). The required numbers can be found in the NC variables documentation. (Manufacturer Documentation Lists, Section Variables) By entering a zero (0) as the block number or the line or column index, it is possible to use the variable in the S7 PLC as a pointer to these data. When reading or writing these data via the functions PUT and GET, the optional parameters UnitX, ColoumnX and LineX must be filled with the necessary information.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/3-85
11.02 10.00
Fig. 3-9
Deleting variables
Variables are deleted in the window of selected variables by selecting the appropriate variables (single mouse click) and pressing the Delete key. No deletion action is taken with the doubleclick function. It is possible to select several variables for deletion (see under Selection of variables). This action can also be undone again under menu item Edit.
Note Deleting of variables results in a change of the absolute addresses of the pointer structures to the variables. When changing the Variable Selection, it is therefore absolutely necessary to generate one or several text files of all user blocks prior to the change. Only thus, it can be ensured that the assignment of the variables in FB GET or FB PUT is still correct even after recompilation.
Once variables have been selected, they can be stored under a project name. The files are stored on a project-specific basis. A window is displayed (Fig. 3-10) for the file to be stored. The project path and name for the file must be selected in the window.
1/P3/3-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
Fig. 3-10
Code generation
This menu item contains three selection options: 1. Settings (input of data block number to be generated) and other settings 2. Generate (create data block) 3. In the STEP7 project (transferring the data block to a STEP7 project)
Settings
Under this menu item, the DB number and the symbol for this DB number for which the code is created is entered. Under the Unit System tab, a selection is made how the the unit system variables are calculated in the PLC. Unter the Generate tab, the project creation is defined for the relevant target system.
Generate
Under this menu item, the STEP 7 file from the selected variable list with extension .awl is set. A file is generated when Select is clicked: An .awl file that can be used as an input for the STEP 7 compiler. A window is opened in which path and name for the .awl file to be generated must be specified for the file to be saved.
In a STEP7 project
The generated AWL file is transferred to a selectable SIMATIC project (program path) and compiled. Furthermore, the symbol can also be transferred. This function will be available as of STEP7 Version 5.1 and NC Var Selector 6.04.05. This process take some time due to the time require by STEP7. Before transfer of a new AWL file, the file window of the AWL file must be closed in the LAD/ FUP/AWL Editor.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/3-87
10.00
S The current language S The mode for the alias input (always / >24 characters).
3.2.3
Startup, installation
The Windows application NC Var selector is installed using the SETUP program supplied with the package.
1/P3/3-88
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
Block Descriptions
4.1
Description of functions
The synchronization of NCK and PLC is performed during start-up. The data blocks for the NC/PLC user interface are created with reference to the NC configuration defined in the machine data and the most important parameters verified for plausibility. In the event of an error, FB 1 passes an error identifier to the diagnostics buffer and switches the PLC to the STOP state. To enable an orderly start-up of the control, it is vital to synchronize the NCK and PLC, as these systems have their own types of powerup procedure. In the start-up routine, the CPUs therefore perform subsidiary start-up functions and exchange ID information to ensure that the procedure is functioning correctly. Since the start-up procedure is asynchronous, it is unavoidable that one CPU will have to wait in certain circumstances until the other has caught up. This is automatically managed by the basic program. The PLC 314 and PLC 315-2DP only know the start-up type cold restart. A warm restart is not provided, i.e. following system initialization, the operating system runs organization block OB 100 and always commences cyclical execution at the start of OB1. The user need only supply the FB 1 parameters that are relevant to his application. The preset values in the associated instance DB 7 do not need to be assigned. The block can only be called in OB 100.
Starting parameters
The output parameters in FB 1 provide the PLC user with information about the control system configuration. These data can also be accessed in the cyclic program section. There are 2 possible methods of access: 1. By means of direct access to data block DB 7 (instance of FB 1) in symbolic form (e.g. Lgp_par.MaxChan, in this case gp_par is the symbolic name of DB7). 2. Assignment of a flag, data element to the relevant parameter when FB 1 is parameterized (e.g. MaxChan:=MW 20). Information about the maximum number of channels can then be scanned in flag word 20 in the rest of the user program.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-89
PLC Basic Program (P3) 4.1 FB 1: RUN_UP Basic program, start-up section
10.00
Note An additional SDB 210 must be generated via the STEP7 application Communication Configuration for the operator components which are connected at the MPI. The corresponding procedure is explained in the Installation and StartUp Guide.
Caution The following applies only if a pointer parameter MCP1In, MCP1Out, MCP1StatSend, MCP1StatRec (or the parameter of the 2nd machine control panel and handheld unit) is to be assigned to a data block (the default settings for these pointers are inputs and outputs). The following applies for the assignment of pointer parameters MCP1In, MCP1Out, MCP1StatSend, MCP1StatRec (and the parameters of the 2nd machine control panel and the handheld unit) to data block elements: 1. The In parameter (e.g. MCP1In) for this operator component must be parameterized to a data block. 2. The parameterized DB number must be the same with the other parameters if the other pointers are parameterized to data blocks (the other parameters can point to inputs, outputs or flags). 3. It is note essential to parameterize all pointers of an operator component to data blocks.
FUNCTION_BLOCK FB 1 VAR_INPUT MCPNum: //0: no MCP //1: 1 MCP (default) //2: 2 MCP POINTER; //Start addr. input signals MCP 1 POINTER; //Start addr. output signals MCP 1 POINTER; //Status DW for transmission MCP 1 POINTER; //Status DW for receiving MCP 1 INT:=6; //default S5TIME:= S5T700MS; S5TIME:= S5T200MS; POINTER; //Start addr. input signals MCP 2 POINTER; //Start addr. output signals MCP 2 POINTER; //Status DW for transmission MCP 2 POINTER; //Status DW for receiving MCP 2 INT; S5TIME:= S5T700MS; S5TIME:= S5T200MS; BOOL:= FALSE; BOOL:= FALSE; BOOL:= FALSE; BOOL:= FALSE; BOOL:= FALSE; INT:=1;
MCP1In: MCP1In: MCP1StatSend: MCP1StatRec: MCP1BusAdr: MCP1Timeout: MCP1Cycl: MCP2In: MCP1In: MCP2StatSend: MCP2StatRec: MCP2BusAdr: MCP2Timeout: MCP2Cycl: MCPMPI: MCP1Stop: MCP2StopI: MCP1NotSend: MCP2NotSend
1/P3/4-90
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
BHG:
//Handheld unit interface //0: No HHU //1: HHU at MPI //2: HHU at OPI BHGIn: POINTER; //Transmit data of handheld unit BHGOut: POINTER; //Receive data of handheld unit BHGStatSend: POINTER; //Status DW for transmission HHU BHGStatRec: POINTER; //Status DW for reception HHU BHGInLen: BYTE:= B#16#6; //Input 6 bytes BHGOutLen: BYTE:= B#16#14; //Output 20 bytes BHGTimeout: S5TIME:= S5T700MS; BHGCycl: S5TIME:= S5T#100MS; BHGRecGDNo: INT:= 2; BHGRecGBZNo: INT:= 2; BHGRecObjNo: INT:= 1; BHGSendGDNo: INT:= 2; BHGSendGBZNo: INT:= 1; BHGSendObjNo: INT:= 1; BHGMPI: BOOL:= FALSE; BHGStop: BOOL:= FALSE; BHGNotSend: BOOL:= FALSE; NCCyclTimeout: NCRunupTimeout: ListMDecGrp: NCKomm: MMCToIF: HWheelMMC: MsgUser: UserIR: IRAuxfuT: IRAuxfuH: IRAuxfuE: UserVersion: END_VAR VAR_OUTPUT MaxBAG: MaxChan: MaxAxis: ActivChan: ActivAxis: UDInt: INT; UDHex: INT; UDReal: INT; END_VAR INT; INT; INT; ARRAY[1..10] OF BOOL; ARRAY[1..31] OF BOOL; S5TIME:= S5T#200MS; S5TIME:= S5T#50S; INT:=0; BOOL:= FALSE; BOOL:= TRUE; BOOL:= TRUE; //Handwheel selections via MMC INT:= 10; //No. of user areas in DB2 bool:= FALSE; //User programs in OB40, //Note local data expansion ! bool:= FALSE; bool:= FALSE; bool:= FALSE; Pointer; //Evaluate T function in OB40 //Evaluate H function in OB40 //Evaluate DL function in OB40 //Pointer to string variable that is output in //version display
INT;
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-91
PLC Basic Program (P3) 4.1 FB 1: RUN_UP Basic program, start-up section
10.00
The following table shows all formal parameters of the function RUN_UP for 810D, 840D.
Type Type Int Value range Notes 0 to 2 Number of active MCPs 0: No MCP installed Pointer I0.0 to I120.0 or F0.0 to F248.0 or DBn DBX0.0 to DBXm.0 Start address for input signals of the relevant machine control panel MCP1Out MCP2Out I Pointer Q0.0 to Q120.0 or F0.0 to F248.0 or DBn DBX0.0 to DBXm.0 Q0.0 to Q124.0, M0.0 to M252.0 or DBn DBX0.0 to DBXm.0 Start address for output signals of the relevant machine control panel MCP1StatSend MCP2StatSend I Pointer Start address for status double word for transmission to machine control panel: DW#16#08000000:T ime out, otherwise 0 Start address for status double word for data reception by machine control panel: DW#16#00040000:T imeout, otherwise 0 Bus address of machine control panel MCP1StatRec MCP2StatRec MCP1BusAdr MCP2BusAdr I Pointer Q0.0 to Q124.0, M0.0 to M252.0 or DBn DBX0.0 to DBXm.0 1...15 I I I I Int MCP1Timeout MCP2Timeout MCP1Cycl MCP2Cycl MCPMPI S5time S5time Bool Recommendation: 700 ms Cyclic sign-of-life monitoring for machine control panel Recommendation: 200 ms Time reference for cyclic updating of signals to machine control panel 1: All machine control panels connected to MPI bus (without GD parameterization), SW 4.x and higher 0: Start transfer of machine control panel signals 1: Stop transfer of machine control panel signals MCP1Stop MCP2Stop I Bool MCP1NotSend MCP2NotSend HHU I Bool 0: Send and receive operation activated 1: Receive machine control panel signals only (available soon) (SW 4 and higher) I Int HHU interface 0: No HHU 1: HHU to MPI with SDB 210 configuration (for SW 3.x) 2: HHU to OPI or MPI if FB1 parameter BHGMPI is also set to TRUE (SW 4.x and higher). I0.0 to I124.0, F0.0 to F252.0 or DBn DBX0.0 to DBXm.0 Q0.0 to Q124.0, F0.0 to F252.0 or DBn DBX0.0 to DBXm.0 Q0.0 to Q124.0, F0.0 to F252.0 or DBn DBX0.0 to DBXm.0 Start address Receive data of PLC from HHU Receive data of PLC from HHU Start address Transmit data of PLC to HHU Transmit data of PLC to HHU Start address for status double word for transmitting data to HHU: DW#16#08000000: Time out, otherwise 0
BHGIn
Pointer
BHGOut
Pointer
BHGStatSend
Pointer
1/P3/4-92
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
Signal BHGStatRec
Type I
Type Pointer
Value range Q0.0 to Q124.0, F0.0 to F252.0 or DBn DBX0.0 to DBXm.0 HHU default: B#16#6 (6 Byte) HHU default: B#16#6 (20 Byte)
Notes Start address for status double word for receiving data from HHU: DW#16#00040000: Time out, otherwise 0 Quantity of data received from handheld unit Quantity of data transmitted to handheld unit
BHGInLen BHGOutLen BHGTimeout BHGCycl BHGRecGDNo BHGRecGBZNo BHGRecObjNo BHGSendGDNo BHGSendGBZNo BHGSendObjNo BHGMPI
I I I I I I I I I I I
Byte Byte S5time S5time Int Int Int Int Int Int Bool
Recommendation: 700 ms Cyclical sign-of-life monitoring for handheld unit Recommendation: 100 ms Time reference for cyclical updating of signals to handheld unit HHU default: 2 HHU default: 2 HHU default: 1 HHU default: 2 HHU default: 1 HHU default: 1 Receive GD circle no. Receive GI no. Object number for receive GI Transmit GD circle no. Transmit GI no. Object number for transmit GI 1: Handheld unit coupled to MPI (without SDB 210 config.) Parameter HHU must be set to 2. 0: Transmission of Start handheld unit signals 1: Stop transmission of handheld unit signals 0: Send and receive operation activated 1: Receive handheld unit signals only (available soon) (SW 4 and higher)
BHGStop
Bool
BHGNotSend
Bool
NCCyclTimeout I I I S5time S5time Int Recommendation: 200 ms Cyclical sign-of-life monitoring NCK Recommendation: 50 s 0...16 Power-up monitoring NCK NCRunupTimeout ListMDecGrp Activation of extended M group decoding. 0 = not active 1 ...16: number of M groups NCKomm I Bool PLC NC communications services (FB 2/3/4/5/7: Put/Get/PI_SERV/GETGUD) True: Disable active MMCToIF I Bool Transmission of MMC signals to interface (modes, program control, etc.) True: Disable active True: Handwheel selection via MMC False: Handwheel selection via user program HWheelMMC I Bool MsgUser UserIR I I I I I Int 0...25 Quantity user areas for messages (DB2) Local data expansion OB40 required for processing of signals from user Evaluate T function in OB40 Bool Bool Bool Bool IRAuxfuT Default, false Default, false Default, false IRAuxfuH IRAuxfuE Evaluate H function in OB40 Evaluate DL function in OB40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-93
PLC Basic Program (P3) 4.1 FB 1: RUN_UP Basic program, start-up section
10.00
Signal Type I Type Value range Notes UserVersion Pointer Pointer to string variable. The associated string variable is output in the version display (max. 41 characters) (SW 4 and higher) Number of mode groups (SW 4 and higher) MaxBAG O O O O O O O O INT INT INT 1..10 1..10 1..31 MaxChan MaxAxis Number of channels (SW 4 and higher) Number of axes (SW 4 and higher) ActivChan ActivAxis UDInt ARRAY[1..10] OF BOOL ARRAY[1..31] OF BOOL Int Int Int Bit string for active channels (SW 4 and higher) Bit string for active axes (SW 4 and higher) Number of integer machine data in DB20 (SW 4 and higher) Number of hexadecimal machine data in DB20 (SW 4 and higher) Number of real machine data in DB20 (SW 4 and higher) UDHex UDReal
Declaration 810D
FUNCTION_BLOCK FB 1 VAR INPUT MCPNum: INT:=1; //0: No MCP //1: 1 MCP (default) //2: 2 MCPs
POINTER; POINTER; POINTER; S5TIME:= S5T700MS; POINTER; POINTER; POINTER; S5TIME:= S5T700MS; INT:= 0; //Handheld unit interface //0: No HHU //1: HHU at MPI POINTER; //Transmit data of handheld unit POINTER; //Receive data of handheld unit POINTER; //Status DW for reception HHU S5TIME:=S5T700MS; S5TIME:=S5T#200MS; S5TIME:=S5T#50S; INT:= 0; BOOL:= FALSE; BOOL:= TRUE; BOOL:= TRUE; //Handwheel selections via MMC INT:=10; //No. of user areas in DB2 bool:= FALSE //User programs in OB40, //Note local data expansion ! bool:= FALSE; bool:= FALSE; bool:= FALSE; Pointer; //Evaluate T function in OB40 //Evaluate H function in OB40 //Evaluate E function in OB40 //Pointer to string variable that is output in //version display
BHGIn: BHGOut: BHGStatRec: BHGTimeout: NCCyclTimeout: NCRunupTimeout: ListMDecGrp: NCKomm: MMCToIF: HWheelMMC: MsgUser: UserIR:
1/P3/4-94
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
END_VAR VAR OUTPUT MaxBAG: MaxChan: MaxAxis: ActivChan: ActivAxis: UDInt: INT; UDHex: INT; UDReal: INT; END_VAR INT; INT; INT; ARRAY[1..10] OF BOOL; ARRAY[1..31] OF BOOL;
Signal Type I I Type Int Value range Notes MCPNum MCP1In MCP2In 0 to 2 Number of active MCPs 0: No MCP installed Pointer I0.0 to I120.or0 F0.0 to F248.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q120.0 or F0.0 to F248.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, F0.0 to F252.0 or DBn.DBX0.0 to DBXm.0 1 ... 15 Start address for input signals of the relevant machine control panel 1) MCP1Out MCP2Out I Pointer Start address for output signals of the relevant machine control panel 1) MCP1StatSend MCP2StatSend I Pointer Start address for status double word for data transmission from machine control panel: DW#16#00080000:T imeout, otherwise 0 1) Start address for status double word for data reception by machine control panel: DW#16#00040000:T imeout, otherwise 0 1) Bus address of machine control panel MCP1StatRec MCP2StatRec MCP1BusAdr MCP2BusAdr I Pointer I I I I I Int MCP1Timeout MCP2Timeout MCP1Cycl MCP2Cycl MCPMPI MCP1Stop MCP2Stop S5time S5time Bool Bool Recommendation: 700 ms Cyclic sign-of-life monitoring for machine control panel Recommendation: 200 ms Time reference for cyclic updating of signals to machine control panel 1: All machine control panels connected to MPI bus (without GD parameterization) 0: Start transfer of machine control panel signals 1: Stop transfer of machine control panel signals 0: Send and receive operation activated 1: Receive machine control panel signals only (SW 4 and higher) Handheld unit interface 0 - No HHU 1 - HHU to MPI with SDB 210 configuration I0.0 to I124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Start address Receive data of PLC from HHU data from handheld unit 2) MCP1NotSend MCP2NotSend HHU I Bool
The Table below shows all formal parameters of the function RUN_UP for the 810D and 840D.
Int
BHGIn
Pointer
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-95
PLC Basic Program (P3) 4.1 FB 1: RUN_UP Basic program, start-up section
10.00
Signal BHGOut
Type I
Type Pointer
Value range Q0.0 to Q124.0, F0.0 to F252.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, F0.0 to F252.0 or DBn.DBX0.0 to DBXm.0 HHU default: B#16#6 (6 Byte) HHU default: B#16#6 (10 Byte)
Notes Start address Transmit data of PLC to HHU to HHU 2) Start address for status double word for sending data to handheld unit: DW#16#08000000: Timeout, otherwise 0 2) Start address for status double word for receiving data from handheld unit: DW#16#00040000: Timeout, otherwise 0 2) Quantity of data received from handheld unit Quantity of data transmitted to handheld unit
BHGStatSend
Pointer
BHGStatRec
Pointer
BHGInLen BHGOutLen BHGTimeout BHGCycl BHGRecGDNo BHGRecGBZNo BHGRecObjNo BHGSendGDNo BHGSendGBZNo BHGSendObjNo BHGMPI
I I I I I I I I I I I
BYTE Byte S5time S5time Int Int Int Int Int Int Bool
Recommendation: 700 ms Cyclical sign-of-life monitoring for handheld unit Recommendation: 100 ms Time reference for cyclical updating of signals to handheld unit HHU default: 1 HHU default: 2 HHU default: 1 HHU default: 2 HHU default: 1 HHU default: 1 Receive GD circle no. Receive GI no. Object number for receive GI Transmit GD circle no. Transmit GI no. Object number for transmit GI 1: Handheld unit coupled to MPI (without SDB 210 config.) Parameter HHU must be set to 2. 0: Start transfer of HHU signals 1: Stop transfer of HHU signals 0: Send and receive operation activated 1: Receive HHU signals only (SW 4 and higher)
BHGStop BHGNotSend
I I
Bool Bool
NCCyclTimeout I I I I S5time S5time INT Bool NCRunupTimeout ListMDecGrp NCKomm Recommendation: 200 ms Cyclical sign-of-life monitoring Monitoring NCK Recommendation: 50 s Power-up monitoring NCK 0...16 PLC NC communications services (FB 2/3/4/5/7: Put/Get/PI_SERV/GETGUD) 1: Active Transmission of MMC signals to interface (operating modes, program control, etc.) True: Active True: Handwheel selection via MMC False: Handwheel selection by user prog. 0...25 Quantity user areas for messages (DB2) MMCToIF I Bool
HWheelMMC MsgUser
I I
Bool Int
1/P3/4-96
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
Signal Type I I I I I Type Bool Bool Bool Bool Value range Notes UserIR Local data expansion OB40 required for processing of signals from user Evaluate T function in OB40 IRAuxfuT IRAuxfuH IRAuxfuE Evaluate H function in OB40 Evaluate DL function in OB40 UserVersion Pointer Pointer to string variable. The associated string variable is output in the version display (max. 54 characters) Number of mode groups Number of channels Number of axes MaxBAG O O O O O O O O INT INT INT 1..10 1..10 1..31 MaxChan MaxAxis ActivChan ActivAxis UDInt ARRAY[1..10] OF BOOL ARRAY[1..31] OF BOOL Int Int Int Bit string for active channels Bit string for active axes Number of integer machine data in DB20 Number of hexadecimal machine data in DB20 Number of Real machine data in DB20 UDHex UDReal 1) To ensure BP monitoring of the MCP(s), the addresses must be specified as set in SDB 210 on the 810D. The start address is set via SDB 210 on the 810D. On the supplied SDB 210, the start address is specified as IB 0 for input signals and QB 0 for output signals. If a different start address is required, then it must be programmed by means of the STEP7 Communication Configuration package. 2) To ensure that the handheld unit is monitored by the BP, the addresses must be specified on the 810D as they are set in SDB 210.
Declaration FM-NC
FUNCTION_BLOCK FB 1 MCPNum: INT:= 1; //0: No MCP //1: 1 MCP (default) //2: 2 MCP
POINTER; POINTER; POINTER; S5TIME:= S5T700MS; POINTER; POINTER; POINTER; S5TIME:= S5T700MS; INT:= 0; //Handheld unit interface //0: No HHU //1: HHU at MPI POINTER; //Transmit data of handheld unit POINTER; //Receive data of handheld unit POINTER; //Status DW for reception HHU S5TIME:= S5T700MS;
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-97
PLC Basic Program (P3) 4.1 FB 1: RUN_UP Basic program, start-up section
10.00
NCLaddr1: NCLaddr2: NCKSigDB2: NCCyclTimeout: NCRunupTimeout: ListMDecGrp: NCKomm: MMCToIF: HWheelMMC: MsgUser: UserVersion: UserDate: UserTime: END_VAR
INT:= 320; //I/O address of first FM-NC (default) INT:= 0; //I/O address of second FM-NC (default) INT:= 0; //NCK signal data block of 2nd FM-NC S5TIME:= S5T#200MS; S5TIME:= S5T#5MS; INT:= 0; BOOL:= FALSE; BOOL:= TRUE; BOOL:= TRUE; INT:= 10; DWORD:= 0; DWORD:= 0; DWORD:= 0; //Handwheel selections via MMC //No. of user areas in DB2 //V no. of user program (default) //V date of user program (default) //V. time of user program (default)
The following table shows all formal parameters of the function RUN_UP for the FM-NC.
Type Type Int Value range Notes 0 to 2 Pointer MCP1Out MCP2Out I Pointer MCP1StatRec MCP2StatRec I Pointer MCP1Timeout MCP2Timeout HHU I I S5time Int Number of active MCPs 0: No MCP installed I0.0 to I120.or0 Start address for F0.0 to F248.0 or input signals of the relevant DBn.DBX0.0 to DBXm.0 machine control panel 1) Q0.0 to Q120.0 or Start address for F0.0 to F248.0 or output signals of the relevant DBn.DBX0.0 to DBXm.0 machine control panel 1) Q0.0 to Q124.0, Start address for status double word for F0.0 to F252.0 or data reception by machine control panel: DBn.DBX0.0 to DBXm.0 control panel: DW#16#00040000: Timeout, otherwise 0 1) Recommendation: 700 ms Cyclic sign-of-life monitoring for machine control panel Handheld unit interface 0: No HHU 1: HHU at MPI BHGIn I Pointer I0.0 to I124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Start address Receive data of PLC from HHU data from handheld unit 2) Start address Transmit data of PLC to HHU to HHU 2) Start address for status double word for receiving from handheld unit: DW#16#00040000: Timeout, otherwise 0 2) BHGOut I Pointer
BHGStatRec
Pointer
BHGTimeout I S5time INT INT INT S5time S5time INT Recommendation: 700 ms Cyclical sign-of-life monitoring for handheld unit 320 (default) 0 (default) DB 81 to DB 127 Recommendation: 200 ms Recommendation: 5 min 0 NCLaddr1 NCLaddr2 NCKSigDB2 NCCyclTimeout NCRunupTimeout ListMDecGrp I I DB I I I I/O address of 1st FM-NC I/O address of 2nd FM-NC Signal DB of second FMNC Cyclical sign-of-life monitoring NCK Power-up monitoring NCK
1/P3/4-98
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
Signal NCKomm
Type I
Type Bool
Value range
Notes PLC NC communications services (FB 2/3/4/5:Put/Get/PI_SERV/GETGUD) 1: Active Transmission of MMC signals to interface (modes, program control, etc.) True: Active True: Handwheel selection via MMC False: Handwheel selection by user prog.
MMCToIF
Bool
I I I I I
Quantity user areas for messages (DB2) User version User date User time
1) For monitoring of MCPs by the BP, the addresses must be specified for the FM-NC as they are set in SDB210. The start address is set via SDB210 for the FM-NC. The start address for input signals is specified as 118 and for output signals as 120 on the supplied SDB210. If another start address is desired, then it must be input via the STEP7 package Communications Configuration. 2) To ensure that the handheld unit is monitored by the BP, the addresses as they are set in SDB 210 must be specified in the case of the FM-NC.
The following status information regarding communication with the machine control panels is output in the event of an error:
Available in: MCP1StatRec MCP2StatRec BHGStatRec Only SINUMERIK 840D: MCP1StatSend MCP2StatSend BHGStatSend
Description
27
In addition, an error entry is generated in the diagnostics buffer of the PLC, resulting in the following error messages on the MMC:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-99
PLC Basic Program (P3) 4.1 FB 1: RUN_UP Basic program, start-up section
10.00
810D call
A call example for the FB 1 in OB 100 is given below. This example is part of the diskette with the basic program for 810D.
ORGANIZATION_BLOCK OB 100 VAR_TEMP OB100_EV_CLASS : OB100_STRTUP : OB100_PRIORITY : OB100_OB_NUMBR : OB100_RESERVED_1 : OB100_RESERVED_2 : OB100_STOP : OB100_RESERVED_3 : OB100_RESERVED_4 : OB100_DATE_TIME : END_VAR BEGIN Call fb 1, db 7( MCPNum := 1, MCP1In := P#E0.0, MCP1Out := P#A0.0, MCP1StatSend.= P#A8.0, MCP1StatRec := P#A12.0, MCP1BusAdr := 14, MCP1Timeout := S5T#700MS, MCPMPI:= TRUE, NCCyclTimeout := S5T#200MS, NCRunupTimeout := S5T#50S); BYTE; BYTE; BYTE; BYTE; BYTE; BYTE; WORD; WORD; WORD; DATE_AND_TIME;
840D call
A call example for the FB 1 in OB 100 is given below. This example is part of the diskette with basic program for 840D.
ORGANIZATION_BLOCK OB 100 VAR_TEMP OB100_EV_CLASS : OB100_STRTUP : OB100_PRIORITY : OB100_OB_NUMBR : OB100_RESERVED_1 : OB100_RESERVED_2 : OB100_STOP : OB100_RESERVED_3 : OB100_RESERVED_4 : OB100_DATE_TIME : END_VAR BEGIN Call fb 1, db 7( MCPNum := 1, MCP1In := P#E0.0, MCP1Out := P#A0.0, MCP1StatSend := P#A8.0, MCP1StatRec := P#A12.0, MCP1BusAdr := 6, MCP1Timeout := S5T#700MS, MCP1Cycl := S5T#200MS, NCCyclTimeout := S5T#200MS, NCRunupTimeout := S5T#50S); BYTE; BYTE; BYTE; BYTE; BYTE; BYTE; WORD; WORD; WORD; DATE_AND_TIME;
1/P3/4-100
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
A call example for the FB 1 in OB 100 is given below. This example is an integral part of the diskette with the basic program for SINUMERIK FM-NC.
ORGANIZATION_BLOCK OB 100
VAR_TEMP OB100_EV_CLASS : OB100_STRTUP : OB100_PRIORITY : OB100_OB_NUMBR : OB100_RESERVED_1 : OB100_RESERVED_2 : OB100_STOP : OB100_STRT_INFO: OB100_DATE_TIME : END_VAR BEGIN Call fb 1, db 7( MCPNum := 1, MCP1In := P#E118.0, MCP1Out := P#A120.0, MCP1StatRec := P#A108.0, MCP1Timeout := S5T#700MS, NCCyclTimeout := S5T#200MS, NCRunupTimeout := S5T#5M, NCLaddr1 := 320, NCLaddr2 := 0, NCKSigDB2 := 0, UserVersion := DW#16#0, UserDate := DW#16#0, UserTime := DW#16#0); //INSERT USER PROGRAM HERE END_ORGANIZATION_BLOCK BYTE; BYTE; BYTE; BYTE; BYTE; BYTE; WORD; DWORD; DATE_AND_TIME;
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-101
10.00
4.2
Description of functions
Variable addressing
For some NC variables, it is necessary to select area no. and/or line or column from the NCVAR selector. A basic type can be selected for these variables, i.e. area/column/line are preset to 0. A basic type can be selected for these variables, i.e. area/column/line are preset to 0. The contents of the area number, line and column specified by the NC VAR selector are checked for a 0 in the FB. If a 0 is present, the value is transferred to the input parameter. Before calling the GET FB, the user must supply the desired parameter (UnitX/ColumnX/LineX).
Important After communication between the PLC and NC (read/write NC variables, FB2, 3, 5, or PI general services, FB4) has been aborted by power OFF, the start jobs must be deleted in the first OB1 run after cold restart or reset (signal: Req = 0). FB 2 can read NC variables only if basic program parameter NCKomm =1 has been set (in OB 100: FB 1, DB7). When channel-specific variables are read, only the variables of one channel may be addressed in a job (FB 2 call) via Addr1 to Addr8. In areas V and H, different logic axis numbers must not be assigned in one job. (Failure to observe this rule results in Error:= TRUE, State:= W#16#02).
1/P3/4-102
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
The same rules apply to channels 3 to 10 as illustrated as examples in the above table in groups 1 and 2.
Note Especially when reading several long strings, the number of usable variables can be less than 8.
Declaration
FUNCTION_BLOCK FB 2 VAR_INPUT Req : NumVar : Addr1 : Unit1 : Column1 : Line1 : Addr2 : Unit2 : Column2 : Line2 : Addr3 : Unit3 : Column3 : Line3 : Addr4 : Unit : Column4 : Line4 : Addr5 : Unit5 : Column5 : Line5 : Addr6 : Unit6 : Column6 : Line6 : Addr7 : Unit7 : Column7 : Line7 : Addr8 : Unit : Column8 : Line8 : FM-NCNo : END_VAR VAR_OUTPUT BOOL ; INT ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; int;1)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-103
10.00
1) On FM-NC only
1/P3/4-104
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
VAR_IN_OUT RD1 : RD2 : RD3 : RD4 : RD5 : RD6 : RD7 : RD8 : END_VAR ANY; ANY; ANY; ANY; ANY; ANY; ANY; ANY;
Signal Type I I Type Bool Int Value range Notes Req Job start with positive signal edge Number of variables to be read NumVar 1 to 8 (corresponds to use of Addr1 to Addr8) [DBName].[VarName] Addr1 to Addr8 Unit1 to Unit8 I I I I I Any Variable identifiers from NC Var selector Byte Area address, optional for variable addressing Column1 to Column8 Line1 to Line8 FM-NCNo1) Error NDR Word Word Int Column address, optional for variable addressing Line address, optional for variable addressing 0, 1=1 NCU, 2=2 NCUs
The following table shows all formal parameters of the function GET.
0, 1, 2 O O O Bool Bool Negative acknowledgment of job or execution of job impossible Job successfully executed. Data are available See error identifiers State Word Any RD1 to RD8 I/O P#Mm.n BYTE x... P#DBnr.dbxm.n BYTE x Target area for read data 1) On FM-NC only
Error identifiers
If it was not possible to execute a job, the failure is indicated by logic 1 on status parameter error. The error cause is coded at the block output State:
State Meaning Note WORD H 1 to 8 0 0 WORD L 1 2 3 Access error Error in job In high byte number of Var in which error occurred Incorrect compilation of Var. in a job Internal error, possible remedy: NC Reset Negative acknowledgment, job not executable Insufficient local user memory available 1 to 8 4 Read var. is longer than specified in RD1 (..RD8); in high byte number of var in which error occurred Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-105
10.00
WORD H 0 WORD L 5 Format conversion error FIFO full Error on conversion of var. type double: Var. is not within S7 REAL area Job must be repeated since queue is full 0 0 6 7 8 9 10 11 12 Option not set BP parameter NCKomm is not set 1 to 8 0 1 to 8 0 0 Incorrect target area (RD) Transmission occupied Error in variable addressing Address of variable invalid NumVar = 0 RD1 to RD8 may not be local data Job must be repeated Unit or column/line contains value 0 Check Addr (or variable name), area, unit Check parameter NumVar
State
Meaning
Note
Configuration steps
S Select variables with the NCVAR selector, S Store the selected variables in a file *.VAR in the desired project catalog
(*.S7D),
S Generate a STEP7 source file *.STL, S Generate a DB with the associated address data, S Enter the symbol for the generated DB in the symbol table so that it is possible to access the address parameters symbolically in the user program,
1/P3/4-106
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
Call example
Reading of three channel-specific machine data from channel 1, whose address specification are stored in DB120. Select data with NC VAR selector and store in file DB120.VAR; then create file DB120.AWL:
Range C[1] C[1] C[1] Block M M M Name Type char char int No. Byte 1 1 1 S7 Name MD 20070: AXCONF_MACHAX_USED[1] MD 20070: AXCONF_MACHAX_USED[2] 20070 20070 20090 C1AxConfMachAxUsed1 C1AxConfMachAxUsed2 C1SpindDefMasterSpind MD 20090: SPIND_DEF_MASTER_SPIND
S7 (ALIAS) names have been selected in order to A. incorporate the channel designation into the name and B. to remove the characters [ ] which are not legal in a STEP 7 symbol. Entry of the name in the S7 SYMBOL table (e.g. NCVAR for DB120):
Operand DB120
Data type
File DB120.AWL must be compiled and transferred to the PLC. Parameterization of FB 2 with instance DB 110:
DATA_BLOCK DB 110 FB 2 BEGIN END_DATA_BLOCK Function FC VariablenCall : VOID I 7.7; S A R A A R M 100.0: F 100.1; M 100.0: I 7.6; M 102.0; M 100.0: Req := NumVar := Addr1 := Addr2 := Addr3 := Error := NDR := State := RD1 := RD2 := RD3 := //Unassigned key on MCP //Activate Req //Done message NDR //End job //Acknowledge error manually //Error is present //End job F 100.0, 3, //Read 3 variables NCVAR.C1AxConfMachAxUsed1, NCVAR.C1AxConfMachAxUsed2, NCVAR.C1SpindDefMasterSpind, F102.0, F100.1, FW104, P#DB99.DBX0.0 BYTE 1, P#DB99.DBX1.0 BYTE 1, P#M110.0 INT 1); //Unassigned user DB, as instance for FB 2
Call fb 2, db 110(
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-107
10.00
Reading of two R parameters from channel 1, whose address specifications are stored in DB120 as the basic type. The R parameter number is parameterized via parameter lineX.
DATA_BLOCK DB 120 VERSION : 0.0 STRUCT C1_RP_rpa0_0: STRUCT SYNTAX_ID : area_&_unit : column : line : block type : NO. OF LINES : typ : length : END_STRUCT ; END_STRUCT ; BEGIN END_DATA_BLOCK CALL FB 2, DB 110 ( Req := NumVar := Addr1 := Line1 := Addr1 := Line2 := FM-NCNo := Error := NDR := State := RD1 := RD2 := M 0.0, 2, NCVAR C1_RP_rpa0_0, W#16#1, NCVAR C1_RP_rpa0_0, W#16#2, 1, //On FM-NC only F 1.0, F 1.1, FW 2, P#M 4.0 REAL 1, P#M 24.0 REAL 1);
BYTE := B#16#82; byte := B#16#41; word := W#16#1; word := W#16#0; byte := B#16#15; BYTE := B#16#1; byte := B#16#F; byte := B#16#8;
Data types
The data types of the NCK are listed in the NCVAR selector with the variables. The tables below give the assignments to the S7 data types.
NCK data type S7 data type double float REAL REAL DINT DINT long integer uint_32 int_16 DWORD INT uint_16 WORD WORD unsigned char CHAR or BYTE STRING BOOL string bool
Table 4-1
1/P3/4-108
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
4.3
Description of functions
Variable addressing
For some NC variables, it is necessary to select area no. and/or line or column from the NCVAR selector. A basic type can be selected for these variables, i.e. area/column/line are preset to 0. A basic type can be selected for these variables, i.e. area/column/line are preset to 0. The contents of the area number, line and column specified by the NC VAR selector are checked for a 0 in the FB. If a 0 is found, then the value from the input parameter is accepted. Before calling the PUT FB, the user must supply the desired parameter (UnitX/ColumnX/LineX). In order to define machine data and GUDs without a password, the protection levels of the data you want to access must be redefined to the lowest level. The procedure is described in the Installation Guide (in the section describing the protection level concept) and in the Programming Guide Advanced (protection levels for user data).
Important After communication between the PLC and NC (read/write NC variables, FB2, 3, 5, or PI general services, FB4) has been aborted by POWER OFF, the start jobs must be deleted in the first OB1 run after cold restart or reset (signal: Req = 0). FB 3 can write NC variables only if basic program parameter NCKomm has been set to 1 (in OB100: FB 1, DB7). When channel-specific variables are written, only variables from one and the same channel may be addressed via Addr1 to Addr8 in a job (FB 3 call). In areas V and H, different logic axis numbers must not be assigned in one job. (Failure to observe this rule results in Error:= TRUE, State:= W#16#02).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-109
10.00
The same rules apply to channels 3 to 10 as illustrated as examples in the above table in groups 1 and 2.
Note Especially when reading several long strings, the number of usable variables can be less than 8.
Declaration
FUNCTION_BLOCK FB 3 VAR_INPUT Req : NumVar : Addr1 : Unit1 : Column1 : Line1 : Addr2 : Unit2 : Column2 : Line2 : Addr3 : Unit3 : Column3 : Line3 : Addr4 : Unit : Column4 : Line4 : Addr5 : Unit5 : Column5 : Line5 : Addr6 : Unit6 : Column6 : Line6 : Addr7 : Unit7 : Column7 : Line7 : Addr8 : Unit : Column8 : Line8 : FM-NCNo: END_VAR BOOL ; INT ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; ANY ; BYTE ; WORD ; WORD ; INT;
1/P3/4-110
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
VAR_OUTPUT Error : Done : State : END_VAR VAR_IN_OUT SD1 : SD2 : SD3 : SD4 : SD5 : SD6 : SD7 : SD8 : END_VAR ANY; ANY; ANY; ANY; ANY; ANY; ANY; ANY; BOOL; BOOL; WORD;
The following table shows all formal parameters of the function PUT.
Type I I Type Bool Int Value range Notes Req Job start with positive signal edge Number of variables to be written NumVar 1 to 8 (corresponds to use of Addr1 to Addr8) [DBName].[VarName] Addr1 to Addr8 Unit 1 to Unit 8 I I I I I Any Variable identifiers from NC Var selector Byte Area address, optional for variable addressing Column address, optional for variable addressing Line address, optional for variable addressing 0, 1=1 NCU, 2=2 NCUs Column 1 to Column 8 Line 1 to Line 8 FM-NCNo1) Error Word Word Int 0, 1, 2
A A A Bool Bool Negative acknowledgment of job or execution of job impossible Job successfully executed. See error identifiers Data to be written Done State Word Any SD1 to SD8 I/O P#Mm.n BYTE x... P#DBnr.dbxm.n BYTE x 1) On FM-NC only
Error identifiers
If it was not possible to execute a job, the failure is indicated by logic 1 on status parameter error. The error cause is coded at the block output State:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-111
10.00
WORD H 1 to 8 0 0 WORD L 1 2 3 Access error Error in job In high byte number of Var in which error occurred Incorrect compilation of Var in a job Internal error, possible remedy: Check job, NC Reset Negative acknowledgment, job not executable 1 to 8 4 Data areas or data types do not match or string is empty FIFO full Check data to be written in SD1 to SD8; in high byte number of the Var in which error occurred Job must be repeated since queue is full 0 0 6 7 8 9 10 11 12 Option not set BP parameter NCKomm is not set SD1 to SD8 may not be local data Job must be repeated Unit or column/line contains value 0 Check Addr (or variable name), area, unit Check parameter NumVar 1 to 8 0 1 to 8 0 0 Incorrect target area (RD) Transmission occupied Error in variable addressing Variable addr. invalid or var. is read only NumVar = 0
State
Meaning
Note
Configuration steps
To write NC variables, the same configuration steps are required as for reading NC variables. It is useful to store the address data of all NC variables to be read or written in a DB.
Pulse diagram
Req Done Error 1 2 3 4 5
1 2
Activation of function Positive acknowledgment: Variables have been written Resetting of function activation after receipt of acknowledgment Signal change by FB If function activation is reset before the acknowledgment is received, the output signals are not updated, without influence on the sequences of the activated function Negative acknowledgment: Error has occurred. Error code in the output parameter State
1/P3/4-112
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
Call example
Writing of three channels-pecific machine data of channel 1: Select the three data with NCK VAR selector and store in the file DB120.VAR:
Range C[1] C[1] C[1] Block RP RP RP Name rpa[5] Type Byte 4 4 4 S7 Name double double double rpa_5C1RP rpa[11] rpa_11C1RP rpa[14) rpa_14C1RP
Symbol Operand Data type NCVAR DB120 DB120
File DB120.AWL must be compiled and transferred to the PLC. Call and parameterization of FB 3 with instance DB 111:
DATA_BLOCK DB 111 FB 3 BEGIN Function FC VariablenCall : VOID END_DATA_BLOCK I 7.7; S A R A A R M 100.0: M 100.1; M 100.0: I 7.6; M 102.0; M 100.0: //Unassigned key on MCP //Activate Req //Done message //End job //Acknowledge error manually //Error is present //End job //Unassigned user DB, as instance for FB 3
Call fb 3, db 111( Req := NumVar := Addr1 := Addr2 := Addr3 := FM-NCNo := Error := Done := State := SD1 := SD2 := SD3 := F 100.0, 3, //Write 3 variables NCVAR.rpa_5C1RP , NCVAR.rpa_11C1RP, NCVAR.rpa_14C1RP , 1, //On FM-NC only F102.0, F100.1, FW104, P#DB99.DBX0.0 REAL 1, P#DB99.DBX4.0 REAL 1, P#M110.0 REAL 1);
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-113
10.00
Writing of two R parameters of channel 1, whose address specifications are stored in DB 120 as the basic type. The R parameter number is parameterized via parameter lineX.
DATA_BLOCK DB 120 VERSION : 0.0 STRUCT C1_RP_rpa0_0: STRUCT SYNTAX_ID : area_&_unit : column : line : block type : NO. OF LINES : typ : length : END_STRUCT ; END_STRUCT ; BEGIN END_DATA_BLOCK CALL FB 3, DB 122 ( Req := NumVar := Addr1 := Line1 := Addr1 := Line3 := FM-NCNo := Error := Done := State := SD1 := SD2 := M 10.0, 2, NCVARC1_RP_rpa0_0, W#16#1, NCVARC1_RP_rpa0_0, W#16#2, //On FM-NC only 1, F 11.0, F 11.1, FW 12, P#M 4.0 REAL 1, P#M 24.0 REAL 1);
BYTE := B#16#82; byte := B#16#41; word := W#16#1; word := W#16#0; byte := B#16#15; BYTE := B#16#1; byte := B#16#F; byte := B#16#8;
1/P3/4-114
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
4.4
Description of functions
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-115
10.00
Declaration
FUNCTION_BLOCK FB 4 VAR_INPUT Req : PIService : Unit : Addr1 : Addr2 : Addr3 : Addr4 : WVar1 : WVar2 : WVar3 : WVar4 : WVar5 : WVar6 : WVar7 : WVar8 : WVar9 : WVar10 : FM-NCNo: END_VAR VAR_OUTPUT Error : Done : State : END_VAR BOOL; BOOL; WORD; BOOL; ANY; INT; ANY; ANY; ANY; ANY; WORD; WORD; WORD; WORD; WORD; WORD; WORD; WORD; WORD; WORD; INT;
//On
FM-NC only
The following table shows all formal parameters of the function PI_SERV.
Type I I I I I Type Bool Any Int Value range Notes Req Job request PIService Unit [DBName].[VarName] default is:PI[VarName] 1 ... PI service description1) Area number Addr1 to Addr4 Any [DBName].[VarName] 1 ... Reference to strings specification according to selected PI service Integers or word variables. Specification according to selected PI service (WVar10 SW 4 and higher) 0, 1=1 NCU, 2=2 NCUs WVar1 to WVar10 Word FM-NCNo2) Error I Int 0, 1, 2 A A A Bool Bool Negative acknowledgment of job or execution of job impossible Job successfully executed See error identifiers Done State Word 1) 2) See README file on basic program diskette supplied On FM-NC only
1/P3/4-116
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
Error identifiers
If it was not possible to execute a job, the failure is indicated by logic 1 on status parameter error. The error cause is coded at block output State. The error identifiers which may be encountered are as follows:
State 3 6 7 9
Meaning Negative acknowledgment, job not executable FIFO full Option not set Transmission occupied
Note Internal error, possible remedy: NC Reset Job must be repeated since queue is full BP parameter NCKomm is not set Job must be repeated
Pulse diagram
Req
1 2
4 Done Error 1 2 3 4 5 Activation of function Positive acknowledgment: PI service has been executed Reset function activation after receipt of acknowledgment Signal change by means of FB
If function activation is reset prior to receipt of acknowledgment, the output signals are not updated without the operational sequence of the activated function being affected Negative acknowledgment: Error has occurred. Error code in output parameter State
Overview PI services
The following Section shows an overview of the PI services that can be started from the PLC. The meaning and application of the general FB 4 input variables (Unit, Addr ..., WVar ...) depends on the individual PI service concerned.
Function Select program for processing for one channel Assign interrupt Activate block search Activate user frames Reconfiguration of marked machine data Execute cancel Delete tool Generate tool
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-117
11.02 10.00
Function Create cutting edge Create tool Empty location search for loading Prepare magazine location for loading, unload tool Position magazine location or tool Activate password Reset password
TMPOSM LOGIN x x LOGOUT MMCSEM CRCEDN DELECE TMFPBP TSEARC TMPCIT DIGION DIGIOF NCRES TMRASS TRESMO Semaphores for various PI services Create new cutting edge Delete a cutting edge Empty location search Complex search using search screen forms Set increment value for workpiece counter Digitizing on Digitizing off Initiate NC Reset Reset active status x (SW 4 and higher) x (SW 4 and higher) x (SW 4 and higher) x (SW 4 and higher) x (SW 4 and higher) x (SW 4 and higher) x x x (SW 5 and higher) x (SW 5 and higher) x (SW 6.3 and higher) x (SW 4 and higher)
ACTDEF
x: PI service is available
A program stored on the NCK is selected for processing for one channel. This is possible only if the file may be executed. The path name and program name must be entered as described in the Programming Guide (Chapter File and Program Management, Section Program memory). Please also refer to example of FB 4 for notation of path and program names.
Table 4-2
WPD MPF
1/P3/4-118
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
Table 4-2
Parameterization
Type ANY INT STRING STRING Value range PI.SELECT 1 to 10 Meaning Program selection Channel Path name Program name
Assign interrupt A program stored on the NCK is assigned an interrupt signal for a channel. This is possible only if the file may be executed. The path name and program name must be entered as described in the Programming Guide (Chapter File and Program Management, Section Program memory). Please also refer to example of FB 4 for notation of path and program names.
Table 4-4 Signal PIService Unit WVar1 WVar2 WVar3 WVar4 Addr1 Addr2 ANY INT INT INT INT INT STRING STRING Parameterization Type Value range PI.ASUP 1 to 10 1 to 8 1 to 8 0/1 0/1 Meaning Assign interrupt Channel Interrupt number Priority LIFTFAST BLSYNC Path name Program name
Note The SETINT instruction is also used to make the assignment. PI service ASUB may only be executed when the channel to be activated is in the Reset state. With an ASUB selection via FB 4 and subsequent ASUB start with FC 9, only PRIO 1 is possible. References: /PA/, Programming Guide
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-119
10.00
PI service: FINDBL
Function:
A channel is switched to block search mode and the appropriate acknowledgment then transmitted. The block search is then executed immediately by the NCK. The search pointer must already be in the NCK at this point in time. The search can be interrupted at any time by an NC RESET. Once the search is successfully completed, the normal processing mode is reactivated automatically. NC Start then takes effect from the located search target. The operator is responsible for providing a collisionfree approach path.
Table 4-5 Signal PIService Unit WVar1 ANY INT WORD Parameterization Type Value range PI.FINDBL 1 to 10 x Meaning Block search Channel Preprocessing mode
x: Defines preprocessing mode x=1 Without calculation x=2 With calculation x=3 With consideration of main block
Activate user frames User frames are loaded to the NCK. All necessary frame values must be transferred to the NCK beforehand through writing variables with FB 3.
Table 4-6 Signal PIService ANY Parameterization Type Value range PI.SETUFR Meaning User Frames spindle number converter Channel
Unit
INT
1 to 10
Reconfiguration The Reconfigure command permits the quasi-parallel activation of machine data that have been input sequentially by the user or the PLC. The command can be activated only with the control in the RESET state or after a program interrupt (NC stop at block limit). An FB 4 error checkback message is output if these conditions are not fulfilled (state = 3).
Table 4-7 Signal PIService Unit WVar1 ANY INT INT Parameterization Type Value range PI.CONFIG 1 1 Classification Meaning Reconfiguration
1/P3/4-120
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
Carry out Cancel The CANCEL command activates the Cancel function (according to key on MMC).
Table 4-8 Signal PIService ANY Parameterization Type Value range PI.CANCEL Meaning Cancel
Delete tool Deletes the tool assigned to the transferred T number with all cutting edges (in TO, in some cases TU, TUE and TG (type 400), TD and TS blocks).
Table 4-9 Signal PIService Unit WVar1 ANY INT INT Parameterization Type Value range PI.DELETO 1, 2 Meaning Delete tool TOA T number
Create tool
Generation of a tool with specification of a T number. The tool is entered as existing in the tool directory area (TV). The first cutting edge D1 (with zero contents) is created for tool offsets in the TO block. D1 (with zero contents) is also created for the OEM cutting edge data in the TUE block - if one is present. If a TU block exists, it contains the data block for the tool.
Table 4-10 Signal PIService Unit WVar1 ANY INT INT Parameterization Type Value range PI.CREATO 1, 2 Meaning Create tool TOA T number
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-121
10.00
Creation of the cutting edge with the next higher/next unassigned D number for the tool with the transferred T number in TO, TS (if present). The cutting edge for the OEM cutting edge data is set up simultaneously in the TUE block - if one is present.
Table 4-11 Signal PIService Unit WVar1 ANY INT INT Parameterization Type Value range PI.CREACE 1, 2 Meaning Create cutting edge TOA T number
Create tool
Creation of a tool with specification of an identifier, a duplo number and a T number (optional). The tool is entered as existing in the tool directory area (TV). The first cutting edge D1 (with zero contents) is created for tool offsets in the TO block. D1 (with zero contents) is also set up for the monitoring data in the TS block, and simultaneously with zero contents for the OEM cutting edge data in the TUE block - if one is present. The TD block contains the identifier, duplo number and number of cutting edges (=1) for the T number that is entered optionally or allocated by the NCK. If a TU block exists, it contains the data block for the tool. After execution of the PI, the T number for the created tool is stored in the TV block under TnumWZV. Note Before and after this PI service, the MMCSEM PI service must be called up with the associated parameter WVar1 for this PI service. See PI service MMCSEM for more information.
Table 4-12 Signal PIService Unit WVar1 WVar2 Addr1 ANY INT INT INT STRING max. 32 characters Parameterization Type Value range PI.TMCRTO 1, 2 Meaning Create tool TOA T number Duplo number Tool identifier
T number > 0 means that a T number must be input T number = 1 means that NCK must allocate a T number Example shows T number = 1 ==> T number allocated by NCK
1/P3/4-122
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
Searching for empty location for loading Location_number_where = -1, magazine_number_where = -1: Searches through all the magazines in the specified area (= channel) for an empty location for the tool specified by a T number. After execution of the PI, the magazine and locations numbers found during the search are listed in the configuration block of the channel (component magCMCmdPar1 (magazine number) and magCMCmdPar2 (location number)). Location_number_ID and magazine_number_ID can be set as search criteria or not (= -1). The PI is acknowledged positively or negatively depending on the search result. Location_number_where = -1, magazine_number_where = magazine number: A search is executed in the specified magazine for an empty location to load the tool specified by the T number. Location_number_ID and magazine_number_ID can be set as search criteria or not (= -1). The PI is acknowledged positively or negatively depending on the search result. Location_number_where = location number, magazine_number_where = magazine number: The specified location is checked to establish whether it is free for loading with the specified tool. Location_number_ID and magazine_number_ID can be set as search criteria or not (= -1). The PI is acknowledged positively or negatively depending on the search result. Command parameters 1 and 2 are located at source. Loading: If source is an internal loading magazine, then the command parameters are located at the destination (a real magazine). Unloading: Source is always a real magazine.
Note Before and after this PI service, the MMCSEM PI service must be called up with the associated parameter WVar1 for this PI service. See PI service MMCSEM for more information.
Table 4-13 Signal PIService Unit WVar1 WVar2 WVar3 WVar4 WVar5
Parameterization Type ANY INT INT INT INT INT INT Value range PI.TMFDPL 1, 2 Meaning Empty location for loading TOA T number Location number _Where Magazine_number _Where Location_number _ID Magazine number _ID
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-123
10.00
This PI service is used both to load and unload tools. Whether the PI initiates a loading or unloading operation depends on the assignment between the real locations and the from parameters and to parameters: Loading => from =loading point/station, unloading => to = loading point/station. PI service TMMVTL is used for all movements: 1) Loading and unloading (loading point <-> magazine) 2) Loading and unloading (loading point <-> buffer, e.g. spindle) 3) Relocation within a magazine 4) Relocation between different magazines 5) Relocation between a magazine and a buffer 6) Relocation within the buffer The following variables from block TM are used to monitor cases 1), 3), 4), 5): magCmd (area no. = TO unit, line = magazine number) magCmdState <- acknowledgment The following variables from block TMC are used to monitor cases 2), 6): magCBCmd (area no. = TO unit) magCBCmdState <- acknowledgment Loading function Prepares the specified real magazine for the specified channel for loading, i.e. traverses the magazine to the selected location for loading at the specified loading point/station (location_number_from, magazine_number_from) and inserts the tool. When location_number_to = -1, an empty location for the tool specified by a T number is first sought in the specified magazine and the magazine then traversed. After execution of the PI, the location number found during the search is listed in the TM area in component magCMCmdPar2 for the real magazine of the channel. With a location_number_to = -2 and a valid magazine number, the tool is loaded to the nearest empty position of the specified magazine. After execution of the PI, the number of the location for tool loading is listed in the TM area in component magCMCmdPar2 for the real magazine of the channel. Unloading function The tool specified with a tool number is unloaded at the specified loading point/station (location_number_to, magazine_number_to), i.e. the magazine is traversed to the position for unloading and the tool then removed. The magazine location for the tool is marked as being free in the TP block. The tool can be specified either via a T number or by means of the location and magazine numbers. The value -1 is entered at unused specification points.
1/P3/4-124
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
Note Before and after this PI service, the MMCSEM PI service must be called up with the associated parameter WVar1 for this PI service. See PI service MMCSEM for more information.
Parameterization Type ANY Value range PI.TMMVTL Meaning Make magazine location ready for loading, unload tool TOA T number Location_number_from Magazine_number_from Location_number_to Magazine_number_to
1, 2
PI service: TMPOSM
Function: (dependent on parameter assignment)
A magazine location, which has either been specified directly or which has been qualified via a tool located on it, is traversed to a specified position (e.g. in front of a load location) via the PI service. The PI service makes a magazine location, which can be qualified in various ways, traverse in front of a specified load location. The load location must be specified in the PI parameters location number_from and magazine number_from. The magazine location to be traversed can be qualified by the following: either
S the T number of the tool: The location where the tool is positioned traverses;
the parameters tool identifier, duplo number, location number_from and magazine number_from are irrelevant (i.e. values , -0001, -0001, -0001). or
S tool identifier and duplo number: The location where the tool is positioned
traverses; the parameters T number, location number_from and magazine number_from are irrelevant (i.e. value -0001each).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-125
10.00
or
PI service: LOGIN
Function:
Create password
Transfers the parameterized password to the NCK. The passwords generally consists of 8 characters. If required, blanks must be added to the string of the password.
Example
PI service: LOGOUT
Function:
Reset password
1/P3/4-126
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
Parameterization Type ANY INT Value range PI.LOGOUT 1 Meaning Reset password NCK
MMCSEM
10 semaphores are provided for each channel. These protect critical functions for the MMC/PLC. By setting the semaphore for the corresponding function number, several MMC/PLC units can be synchronized with it in cases where a function contains a critical section with respect to data to be fetched by the NCK. Semaphores are managed by the MMC/PLC. A semaphore value of 1stipulates a Test & Set operation for the semaphore of the specified function number. The return value of the PI service represents the result of this operation: Return value OK: Semaphore has been set, critical function can be called Return value REJECTED: Semaphore was already set, critical function cannot be called at the present time. The operation must be repeated later. Note On completion of the operation (reading data of this PI service) it is essential that the semaphore is enabled again.
Parameter:
WVar1=FunctionNumber This function number represents a PI service: 1: TMCRTO (create tool) 2: TMFDPL (search for empty location for loading) 3: TMMVTL (prepare magazine location for loading, unload tool) 4: TMFPBP (search for location) 5: TMGETT (search for tool number) 6: TSEARC (search for tool) 7 ... 10: Reserved WVar2=SemaphorValue 0: Reset semaphore 1: Test and set semaphore
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-127
10.00
Parameterization:
Table 4-18 Signal PIService Unit WVar1 WVar2 ANY INT INT Word Parameterization Type Value range PI.MMCSEM 1, 2 to 10 1 to 10 0, 1 Meaning Create new cutting edge Channel FunctionNumber SemaphoreValue
CRCEDN
Create tool edge by specifying the cutting edge number. If the T number of an existing tool is specified in parameter T number in the PI service, then a cutting edge is set up for this particular tool (in this case, parameter D number (number of cutting edge to be created) has a value range of 0000100009). If a positive T number is specified as a parameter and the tool for the T number entered does not exist, then the PI service is aborted. If a value of 00000 is entered for the T number (model of absolute D numbers), then the D number value range might extend from 00001 to 31999. The new cutting edge is set up with the specified D number. If the specified cutting edge already exists, then the PI service is aborted in both cases.
Parameterization:
Table 4-19 Signal PIService Unit WVar1 ANY INT INT Parameterization Type Value range PI.CRCEDN Meaning Create new cutting edge TOA T number of tool for which cutting edge must be created. A setting of 00000 states that the cutting edge should not refer to any particular tool (absolute D number). 1-9 or 01 - 31999 Edge number of tool cutting edge
WVar2
INT
1/P3/4-128
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
DELETE
If the T number of an existing tool is specified in parameter T number in the PI service, then a cutting edge is deleted for this particular tool (in this case, parameter D number (number of cutting edge to be created) has a value range of 0000100009). If a positive T number is specified as a parameter and the tool for the T number entered does not exist, then the PI service is aborted. If a value of 00000 is entered for the T number (model of absolute D numbers), then the D number value range might extend from 00001 to 31999. If the specified cutting edge does not exist, then the PI service is aborted in both cases.
Parameterization:
Table 4-20 Signal PIService Unit WVar1 ANY INT INT Parameterization Type Value range PI.DELETE Meaning Delete cutting edge TOA T number of tool for which the cutting edge must be deleted. A setting of 00000 states that the cutting edge should not refer to any particular tool (absolute D number) 1-9 or 01 - 31999 Edge number of cutting edge that must be deleted
WVar2
INT
TMFPBP
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-129
10.00
TSEARC
The PI service allows you to search for tools with specified properties within a search domain (in one or more magazines starting and ending at a specific location). The specified properties refer only to data of the tools and their cutting edges. The PI service is only available if tool management is activated. You can define a search direction and the number of hits for the PI service (e.g. one tool for the next tool with matching properties or all tools with the specified properties). The service returns a list of the internal T numbers for the tools found in the search. Search criteria can only be ANDed. If an application needs to define an OR operation for the search criteria, it must first execute a series of queries with ANDed criteria and then combine/evaluate the results of the individual queries. To assign the parameters of the PI service, the properties of the required tools are first defined via variable service in the TF block. This is achieved by selecting the relevant comparison criteria in the operand masks (parMaskT..) in the TF block (i.e. which tool data are to be compared?), entering the types of comparison logic (==, <, >, <=, >=, &&) in the comparison operator data (parDataT..), and entering the comparison values in the operand data. The PI service is then initiated and, after its successful return, the variable service from the TF block is used to read out the number of hits in the variable resultNrOfTools and the result list in the variable resultToolNr (i.e. the list of internal T numbers of the tools found in the search - resultNrOfTools quantity). The PI service must be encapsulated with a semaphore from its preparation until the successful return of the result. This is the only way to ensure exclusive access and the exclusive use of the TF block in conjunction with the TSEARC PI service. The function number provided for the semaphore feature (PI service MMCSEM) is the function number for TSEARC. If the service is configured incorrectly, a malfunction occurs. In all other cases, it will return a result, even if no tools are found (resultNrOfTools = 0). The search domain can be defined as follows in the parameters MagNrFrom, PlaceNrFrom, MagNrTo, PlaceNrTo:
MagNrFrom PlaceNrFrom WVar2 MagNrTo WVar3 PlaceNrTo Search area WVar1 #M1 #M1 #M1 #M1 #M1 WVar4 #P2 -1 -1 -1 -1 #P1 -1 -1 #P1 #P1 #M2 #M1 -1 -1 #M1 Locations starting at magazine #M1, location #P1 up to magazine #M2, location #P2 are searched All locations in magazine #M1 - and no others - are searched All locations starting at magazine #M1 are searched All locations starting at magazine #M1 and location #P1 are searched Locations in magazine #M1 starting at magazine #M1 and location #P1 in this magazine are searched
1/P3/4-130
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
PlaceNrFrom #P1 -1 -1 -1
PlaceNrTo -1 #P2 -1 -1
Search area Locations starting at magazine #M1, location #P1 up to magazine #M2 are searched Locations starting at magazine #M1 up to magazine #M2, location #P2 are searched Locations starting at magazine #M1 up to and including magazine #M2 are searched All magazine locations are searched
For a symmetrical search (see parameter SearchDirection), the search domain must only include one magazine (cases 2 and 5 in the table above). If another search domain is specified, the service will malfunction. A reference location must be specified in the parameters MagNrRef and PlaceNrRef for a symmetrical search (see parameter SearchDirection). The reference location is specified in the parameters MagNrRef and PlaceNrRef. The reference location is a buffer location (a location from the magazine buffer, i.e. change position, gripper ...) or a load point (a location from the internal loading magazine). The search is executed symmetrically with reference to the magazine location in front of the specified reference location. A multiple assignment to the magazine being searched must be configured in the TPM block for the reference location. If this is not the case, a malfunction occurs. If the magazine location in front of the reference location is outside the search domain, the service responds as if it has not found a matching location.
Note Before and after this PI service, the MMCSEM PI service must be called up with the associated parameter WVar1 for this PI service. See PI service MMCSEM for more information. The PI service is valid from NCK SW 4.2 and higher.
Parameterization:
Table 4-21 Signal PIService ANY Parameterization Type Value range PI.TSEARC Meaning Complex search using search screen forms TOA MagNrFrom Magazine number of magazine from which search must begin. PlaceNrFrom Location number of location in magazine MagNrFrom, at which search must begin.
Unit WVar1
INT INT
1, 2
WVar2
INT
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-131
10.00
Parameterization Type INT Value range Meaning MagNrTo Magazine number of magazine at which search must end. PlaceNrTo Location number of location in magazine MagNrTo, at which search must end. MagNrRef Magazine number of (internal) magazine, with reference to which the symmetrical search is to be performed. (this parameter is only relevant with a symmetrical search direction) PlaceNrRef Location number of location in magazine MagNrRef, with reference to which the symmetrical search is to be performed. This parameter is only relevant with a symmetrical search direction.
WVar4
INT
WVar5
INT
WVar6
INT
1/P3/4-132
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
Parameterization Type INT Value range 1, 2, 3 Meaning SearchDirection specifies the desired search direction. 1. Forwards from the first location of the search domain 2. Backwards from the last location of the search domain 3. Symmetrical with real magazine location positioned in front of the location specified by MagNrRef and PlaceNrRef. KindofSearch 0: Find all tool with this property cutting edge specifically 1: Search for the first tool found with this property (cutting edge specifically) 2: Browse all cutting edges to find all tool with this property 3: Browse all tools to search for the first tool found with this property
WVar8
INT
0, 1, 2, 3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-133
10.00
TMPCIT
Parameterization:
Signal PIService ANY Type Value range PI.TMPCIT Meaning Set increment value for workpiece counter TOA Spindle number; corresponds to the type index in the location data with spindle location type of the buffer magazine in channel.000 = main spindle Increment value; indicates the number of spindle revolutions after which the workpiece counter is incremented.
Unit WVar1
INT WORD
1 to 10 0 ... max.
WVar2
WORD
0 ... max.
TMRASS
Function:
Reset active status for worn tools. This PI service is used to search for all tools with the tool status active and disabled. The active status is then canceled for these tools. Potentially appropriate times for this PI service are the negative edge of VDI signal tool disable ineffective an end of program, or a channel reset. This PI service is intended mainly for the PLC, since it knows when the disabled tool is finally no longer to be used.
Parameterization:
Signal PIService Unit ANY INT Type Value range PI. TMRASS 1 to 10 Meaning Reset active status TO area
1/P3/4-134
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
This PI service resets the monitoring values of the designated edges of the designated tools back to their setpoint (initial) values. The service applies only to tools for which monitoring is already active. See NC command RESETMON.
Parameterization:
Signal PIService Unit WVar1 Type ANY INT WORD Value range PI. TRESMO 1 to 10 -max ..max Meaning Reset monitoring values TO area ToolNumber 0: Applies to all tools >0: Applies only to this tool <0: Applies to all sister tools of the specified T No D number >0: Monitoring of specified edge of specified tools is reset. 0: Monitoring of all edges of specified tools is reset. Monitoring types Type of monitoring to be reset. This parameter is binary coded. 1: Tool life monitoring is reset 2: Workpiece count monitoring is reset 4: Wear monitoring is reset 8: Sum offset monitoring is reset The values above can be added to reset com binations of monitoring functions 0: All active monitoring functions of the tool ($TC_TP9) are reset
WVar2
WORD
0 .. max.
WVar3
WORD
0 ..15
Digitizing on (DIGION)
Function: Select digitizing in the specified channel
Parameterization:
Signal PIService Unit ANY INT Type Value range PI.DIGION 1 to 10 Meaning Digitizing on Channel
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-135
10.00
Function:
Parameterization:
Signal PIService Unit ANY INT Type Value range PI.DIGIOF 1 to 10 Meaning Digitizing off Channel
Initiate NC Reset
NCRES
Function:
Initiates an NCK Reset. The Unit and WVar1 parameters must be assigned 0.
Parameterization:
Signal PIService Unit WVar1 ANY INT WORD Type Value range PI.NCRES 0 0 Meaning Initiate NC Reset 0 0
ACTDEF
A program stored on the NCK is selected for processing for one channel. This is possible only if the file may be executed. The path name and program name must be entered as described in the Programming Guide (Chapter File and Program Management, Section Program memory). Please also refer to example of FB 4 for notation of path and program names.
Parameterization:
Signal PIService Unit Addr1 Addr2 ANY INT STRING STRING Type Value range PI.ACTDEF 1 Path name GUD or macro Meaning Activate GUDs or macros
1/P3/4-136
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
Call example
Program selection in channel 1 (main program and workpiece program) Entry PI for DB 16 and STR for DB 124 with the S7 SYMBOL editor:
Parameterization:
Symbol PI STR DB16 DB124 Operand DB16 DB124 Data type
DATA_BLOCK DB 126 FB 4 BEGIN END_DATA_BLOCK DATA_BLOCK db 124 struct PName: Path: PName_WST : Path_WST : end_struct BEGIN END_DATA_BLOCK Function FC PICall : VOID call fb4,db126( I 7.7; S A R A A R M 0.0: M 1.1; M 0.0: I 7.6; M 1.0; M 0.0: Req := PIService := Unit := Addr1 := Addr2 :=
//Unassigned key on MCP //Activate Req //Done message //End job //Acknowledge error manually //Error is present //End job F0.0, PI.SELECT, 1, STR.Path, STR.PName,
// CHAN 1 //Main program selection //Addr1:=STR.Path_WST , //Addr2:=STR.PName_WST , //Workpiece program selection //On FM-NC only
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-137
10.00 10.00
4.5
Description of functions
The PLC user program can read a GUD variable (GUD = Global User Data) from the NCK or channel area using the FB GETGUD. Capital letters must be used for the names of GUD variables. Every FB 5 call must be assigned a separate instance DB from the user area. (multi-instance capability in SW 3.7 and higher). A job is started when FB 5 is called by means of a positive edge change at control input Req. This job includes the name of the GUD variable to be read in parameter Addr with data type STRING. The pointer to the name of the GUD variable is assigned symbolically with < DataBlockName >.<VariableName> Additional information about this variable is specified in parameters Area Unit Index1 and Index2 (see table of block parameters). When parameter CnvtToken is activated, a variable pointer (token) can be generated for this GUD variable as an option. This pointer is generated via the VAR selector (see Section 3.2) for system variables of the NC. Only this method of generating pointers is available for GUD variables. Once a pointer has been generated for the GUD variable, then it is possible to read and write via FB 2 and FB 3 (GET, PUT) with reference to the pointer. This is the only method by which GUD variables can be read. When FB 2 or FB 3 is parameterized, only parameter Addr1 ... Addr8 need to be parameterized for the variable pointer. GUD variable fields are an exception. In these, Line1 .. Line8 must also be parameterized with the field index of this variable. Successful completion of the read process is indicated by a logic 1 in status parameter Done. The read process extends over several PLC cycles (generally 1 to 2). The block can be called up in cyclic mode only. Any errors are indicated by Error and State.
Important After communication between the PLC and NC (read/write NC variables, FB2, 3, 5, or PI general services, FB4) has been aborted by POWER OFF, the start jobs must be deleted in the first OB1 run after cold restart or reset (signal: Req = 0). FB 5 can read GUD variables only if basic program parameter NCKomm has been set to 1 (FB 1, DB7 in OB100, see Section 4.1).
1/P3/4-138
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.5
Declaration
FUNCTION_BLOCK FB 5 KNOW_HOW_PROTECT VERSION: 3.0 VAR_INPUT Req: Addr: Area: Unit: Index1: Index2: CnvtToken: VarToken: FM-NCNo: END_VAR VAR_OUTPUT Error: bool; Done: bool; State: word; END_VAR VAR_IN_OUT RD: END_VAR BEGIN END_FUNCTION_BLOCK any; bool; any; byte; byte; INT; INT; BOOL ; ANY; INT; //Name string of variable //Area: NCK = 0, channel = 1 //Field index 1 //Field index 2 //Conversion to 10 byte token //Struct with 10 bytes for the variable token
/ On FM-NC only
//Name server
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-139
10.00
Signal Type I I Type Bool Any Value range Notes Req Job start with positive signal edge Addr [DBName].[VarName] GUD variable name in a variable of data type STRING Area address: 0: NCK variables 2: Channel variables Area I Byte Unit I Byte NCK area: Unit:=1 Channel area: Channel no. Index1 I Int Field index 1 of variable Variable has the value 0 if no field index is used. Field index 2 of variable Variable has the value 0 if no field index is used. Activate generation of a variable token Index2 I I I I Int CnvtToken VarToken Bool Any Int Address to a 10 byte token (see example) 0, 1=1 NCU, 2=2 NCUs FM-NCNo1) Error 0, 1, 2 O O O Bool Bool Job negatively acknowledged or not executable Job successfully executed See error identifiers Data to be written Done State RD Word Any I/O P#Mm.n BYTE x... P#DBnr.dbxm.n BYTE x 1) On FM-NC only
The following table shows all formal parameters of the function GETGUD.
Error identifiers
If it was not possible to execute a job, the failure is indicated by logic 1 on status parameter error. The error cause is coded at the block output State:
State WORT H 0 0 0 0 0 WORT L 1 2 3 4 6 Meaning Access error Error in job Negative acknowledgment, job not executable Data areas or data types do not tally FIFO full Incorrect compilation of Var. in a job Internal error, possible remedy: NC Reset Check data to be read in RD; Job must be repeated since queue is full Note
1/P3/4-140
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.5
State WORT H 0 0 0 0 0 WORT L 7 8 9 10 11 Meaning Option not set Incorrect target area (RD) Transmission occupied Error in addressing Address of variable invalid Note BP parameter NCKomm is not set RD may not be local data Job must be repeated Unit contains value 0 Check Addr (or variable name), area, unit
Configuration steps
To be able to read a GUD variable, its name must be stored in a string variable. The data block with this string variable must be defined in the symbol list so that parameter Addr can be assigned symbolically for FB GETGUD. A structure variable can be defined optionally in any data area of the PLC to receive the variable pointer (see specification in following example).
Pulse diagram
Req
1 2
4 Done Error 1 2 3 4 5 Activation of function Positive acknowledgment: Variables have been read Reset function activation after receipt of acknowledgment Signal change by means of FB
If function activation is reset prior to receipt of acknowledgment, the output signals are not updated without influence on the operational sequence of the initiated function Negative acknowledgment: Error has occurred. Error code in output parameter State
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-141
10.00
Call example
Reading of a GUD variable with the name GUDVAR1 as an integer variable. (See also table in FB 2: Assignment of NC data type in SIMATIC data type) Call and parameterization of FB 5 with instance DB 111:
DATA_BLOCK DB GUDVAR STRUCT GUDVar1 : STRING[32] := GUDVAR1; //Name is defined by user GUDVar1T : STRUCT SYNTAX_ID : area_&_unit : column : line : block type : NO. OF LINES : type : length : END_STRUCT ; END_STRUCT ; BEGIN END_DATA_BLOCK DATA_BLOCK DB 111 FB 5 BEGIN END_DATA_BLOCK //A user-defined channel variable from channel 1 must be read //with conversion into a variable pointer to allow subsequent //writing of a variable. Function FC Variable Call : I 7.7; S A R A A R M 100.0: M 100.1; M 100.0: I 7.6; M 102.0; M 100.0: VOID //Unassigned key on MCP //Activate Req //Done message //End job //Acknowledge error manually //Error is present //End job //Unused user DB as instance for FB 5 BYTE; byte; word; word; byte; BYTE; byte; byte; //Make assignment in symbol list
Call fb 5, db 111( Req := Addr := Area := Unit := Index1 := Index2 := CnvtToken := VarToken := FM-NCNo := Error := Done := State := RD := ); F 100.0, //Start edge for reading GUDVAR.GUDVar1, B#16#2, //Channel variable B#16#1, //Channel 1 0, //No field index 0, //No field index TRUE, //Conversion to 10 byte token GUDVAR.GUDVar1T, //On FM-NC only 1, F102.0, F100.1, FW104, P#DB99.DBX0.0 DINT 1
1/P3/4-142
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.6
4.6
Description of functions
A detailed description of the FB 7 is contained in the description of FB 4. The only difference to FB 4 is the number of WVar1 and subsequent parameters. In FB 7, WVar1 to WVar16 are defined in VAR_INPUT (FB4 has WVar1 to WVar10). All other parameters are identical to FB 4. This PI server can be used for all PI services previously implemented with FB 4. In addition, the PI services listed below can only be handled with FB 7.
Declaration
FUNCTION_BLOCK FB 7 Var_INPUT Req : PIService : Unit : Addr1 : Addr2 : Addr3 : Addr4 : WVar1 : WVar2 : WVar3 : WVar4 : WVar5 : WVar6 : WVar7 : WVar8 : WVar9 : WVar10 : WVar11 : WVar12 : WVar13 : WVar14 : WVar15 : WVar16 : FM-NCNo: END_VAR BOOL; ANY; INT; ANY; ANY; ANY; ANY; WORD; WORD; WORD; WORD; WORD; WORD; WORD; WORD; WORD; WORD ; WORD; WORD; WORD; WORD; WORD; WORD ; INT;
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-143
10.00
Signal Type I I I I I I O O O Type Bool Any Int Any Word Int Bool Bool Word Value range Notes Req Job request PIService Unit Addr1 to Addr4 WVar1 to WVar16 FM-NCNo (on FM-NC only) Error Done State [DBName].[VarName] default is:PI[VarName] 1 ... [DBName].[VarName] 1 ... 0, 1, 2 PI service description Area number Reference to strings specification according to selected PI service Integers or word variables. Specification according to selected PI service, 0,1=1 NCU, 2=2 NCUs Negative acknowledgment of job or execution of job impossible Job has been executed successfully. See error identifiers
The following table shows all formal parameters of the function PI_SERV.
The following Section shows an overview of the PI services that can be started from the PLC. The meaning and application of the general FB 7 input variables (Unit, Addr..., WVar...) depends on the individual PI service concerned.
PI service
Function FM-NC
TMFPBP
1/P3/4-144
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.6
TMFPBP
This service searches the magazine(s) named in the relevant parameters for an empty location which satisfies specified criteria (tool size and location type). The result of the empty location search can be fetched from variables magCMCmdPar1 (magazine number) and magCMCmdPar2 (location number) in block TMC when the service has functioned correctly. Since this PI services stores a result in variables magCMCmdPar1 and magCMCmdPar2, the service must be protected by the semaphore mechanism (PI service MMCSEM) with the function number for _N_TMFDPL in cases where several control units or PLCs are operating on one NC. The search area can be predefined in the following way by setting parameters MagazinNumber_From, LocNumber_From, MagazinNumber_To, LocNumber_To:
WVar1 #M1 #M1 #M1 #M1 #M1 #M1 #M1 #M1 #M1 -1 WVar2 WVar3 WVar4 #P1 #P2 -1 -1 -1 -1 -1 #P2 -1 -1 #P1 #P1 -1 -1 #P1 #P1 #P1 -1 -1 -1 #M1 #M2 #M1 -1 -1 #M1 #M2 #M2 #M2 -1 Only location #P1 in magazine #M1 is checked Locations starting at magazine #M1, location #P1 up to magazine #M2, location #P2 are searched All locations in magazine #M1 - and no others - are searched All locations starting at magazine #M1 are searched All locations starting at magazine #M1 and location #P1 are searched Locations in magazine #M1 starting at magazine #M1 and location #P1 in this magazine are searched Locations starting at magazine #M1, location #P1 up to magazine #M2, location #P2 are searched Locations starting at magazine #M1 up to magazine #M2, location #P2 are searched Locations starting at magazine #M1 up to and including magazine #M2 are searched All magazine locations are searched
Loc_Number_From
Magazine Number_To
Loc_Number_To
Search area
Note Before and after this PI service, the MMCSEM PI service must be called up with the associated parameter WVar1 for this PI service. See PI service MMCSEM for more information.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-145
10.00
Parameterization:
Table 4-22 Signal PIService Unit WVar1 ANY INT INT Parameterization Type Value range PI.TMFPBP 1 ... max. TOA Meaning Empty location search TOA MagazinNumber _From: Magazine number of magazine from which search must begin (start of search area) Loc_Number_From: Location number of location in magazine MagazinNumber_From at which search must begin MagazinNumber_T o: Magazine number of magazine at which search must end Loc_Number_T o: Location number of location in magazine MagazinNumber_To at which search must end MagazineNumber_ref: LocationNumber_ref: 0, 1 .. 7 0, 1 .. 7 0, 1 .. 7 0, 1 .. 7 0, 1 .. 7 0: Default 1: Forwards 2: Backwards 3: Symmetrical Number of required half locations to left Number of required half locations to right Number of required half locations in upward direction Number of required half locations in downward direction Number of desired location type Specifies the desired search direction 0: Empty location search strategy is set in $TC_MAMP2
WVar2
INT
WVar3
INT
WVar4
INT
WVar10
INT
WVar11 WVar12
INT INT
1/P3/4-146
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
4.7
Description of functions
This block enables you to switch between several control units (MMC operator panels and/or machine control panels (MCP)) that are linked via a bus system to one or several NCU control modules. For further details, please refer to publication: SINUMERIK 840D/840Di/810D/FM-NC Description of Functions Extended Functions (FB2), Several Operator Panels on Several NCUs, Distributed Systems (B3). The interface between the individual contorl units and the NCU (PLC) is the M : N interface in data block DB19 (see FB2 above, Chapter 5 Signal Description). FB 9 works with the signals from these interfaces. Apart from initialization, signoflife monitoring and error routines, the following basic functions are also performed by the block for control unit switchover:
Table 4-23 Tabulated overview of functions: Meaning MMC wants to go online to an NCU MMC is connecting to an NCU MMC is disconnecting from an NCU MMC must break connection to an NCU Change operating focus from one NCU to the other
Basic function MMC call waiting MMC coming MMC going Forced break Operating focus changeover to server mode Active/passive operating mode MCP switchover
Operator control and monitoring/monitoring only As an option, MCP can be switched over with the MMC
Active/passive operating mode: An online MMC can operate in two different modes: Active mode: Passive mode: Operator can control and monitor Operator can monitor (MMC header only)
After switchover to an NCU, this initially requests active operating mode in the PLC of the online NCU. If two MMCs are simultaneously connected online to one NCU, one of the two is always in active and the other in passive operating mode. The operator can request active mode on the passive MMC at the press of a button.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-147
11.02 10.00
MCP switchover
As an option, an MCP assigned to the MMC can be switched over at the same time. This can be done on condition that the MCP address is entered in parameter mstt_adress of MMC configuration file NETNAMES.INI and MCPEnable is set to true. The MCP of the passive MMC is deactivated so that there is only ever one active MCP on an NCU at one time.
Boot condition
To prevent the previously selected MCP from being activated again when the NCU is restarted, input parameters MCP1BusAdr = 255 (address of 1st MCP) and MCP1STOP =TRUE (deactivate 1st MCP) must be set when FB1 is called in OB100.
Enabling signals
When one MCP is switched over to another, any active feedrate or axis enabling signals may be transferred at the same time.
Important Keys actuated at the moment of switchover remain operative until the new MCP is activated (by the MMC which is subsequently activated). The override settings for feedrate and spindle also remain valid. To deactivate actuated keys, the input image of the machine control signals must be switched to non-actuated signal level on a falling edge of DB10.DBX104.0. The override settings should remain unchanged. Measures for deactivating keys must be implemented in the PLC user program. (See below: Example of override switchover)
Declaration of : function
FUNKTION_BLOCK FB9 VAR_INPUT Quit :BOOL; // Acknowledge alarms OPMixedMode:BOOL:= FALSE; // Mixed mode deactivated for OP without M to N capability! ActivEnable :BOOL:= TRUE; // Is not supported MCPEnable :BOOL:= TRUE; // Activate MCP switchover END_VAR VAR_OUTPUT Alarm1 :BOOL ; // Alarm: Error in MMC bus address, bus type! Alarm2 :BOOL ; // Alarm: No confirmation MMC1 offline! Alarm2 :BOOL ; // Alarm: MMC1 is not going offline! Alarm4 :BOOL ; // Alarm: No confirmation MMC2 offline! Alarm5 :BOOL ; // Alarm: MMC2 is not going offline! Alarm6 : BOOL ; // Alarm: Queuing MMC is not going online! Report : BOOL ; // Alarm: Signoflife monitoring ErrorMMC : BOOL ; // Error detection MMC END_VAR
1/P3/4-148
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
The following table shows all formal parameters of the MtoN function.
Table 4-24 Signal Quit OPMixedMode ActivEnable Formal parameters of M to N function Type I I I Type BOOL BOOL BOOL Acknowledge alarms Mixed mode deactivated for OP without M to N capability Function is not supported. Control panel switchover Interlocking via MMCx_SHIFT_LOCK in DB 19 Activate MCP switchover TRUE = MCP is switched over with operator panel. FALSE: = MCP is not switched over with operator panel. This can be used to permanently link an MCP. See also MMCx_MCP_SHIFT_LOCK in DB 19 Notes
MCPEnable
BOOL
O O O O O O O O
Alarm: Error in MMC bus address, bus type! Alarm: No confirmation MMC1 offline! Alarm: MMC1 is not going offline! Alarm: No confirmation MMC2 offline! Alarm: MMC2 is not going offline! Alarm: Queuing MMC is not going online! Message: Sign-of-life monitoring MMC Error detection MMC
Note The block must be called by the user program. The user must provide an instance DB with any number for this purpose. The call is not multi-instan-cecapable.
FB9 call CALL FB 9, DB 109 ( Quit := Error_Ackn, // e.g MCP reset OPMixedMode := FALSE, ActivEnable = TRUE, // MCPEnable := TRUE, // Enable MCP switchover Alarm1 := DB2.dbx188.0, // Error message 700.100 Alarm2 := DB2.dbx188.1, // Error message 700.101 Alarm3 := DB2.dbx188.2, // Error message 700.102 Alarm4 := DB2.dbx188.3, // Error message 700.103 Alarm5 := DB2.dbx188.4, // Error message 700.104 Alarm6 := DB2.dbx188.5, // Error message 700.105 Report :=DB2.dbx192.0);// Operating message 700.132
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-149
11.02 10.00
Note Input parameter MCPEnable must also be set to true to enable MCP switchover. The default value of these parameters is set in this way and need not be assigned specially when the function is called.
Alarm, error
The output parameters Alarm1 to Alarm6 and Report can be passed in the DB2 areas for MMC alarm and error messages. If execution of an MMC function has failed (for which an appropriate error message cannot be displayed), status parameter ErrorMMC is set to logic 1 (e.g. booting error when no connection is made).
CALL RUN_UP , gp_par ( MCPNum MCP1In MCP1Out MCP1StatRec MCP1StatRec MCP1BusAdr MCP1Cycl MCP1Stop NCCyclTimeout NCRunupTimeout
:= 1, := P#E 0.0, := P#A 0.0, := P#A 8.0, := P#A 12.0, := 255, // Address of 1st MCP := S5T#200MS, := TRUE, // MCP deactivated := S5T#200MS, := S5T#50S);
// Auxiliary flags used M100.0, M100.1, M100.2, M100.3 // Positive edge of MCP1Ready must check override and initiate measures for // activation of MCP block // This example applies to the feedrate override; interface and input bytes must be exchanged // for spindle override. U DB10.DBX 104.0; FN M 100.0; SPBN wei1; S M 100.2; R M 100.3; //MCP1Ready //Edge trigger flag 1 //Set edge trigger flag 1 //Reset edge trigger flag 2
// Save override L DB21.DBB 4; T EB 28; //Feedrate override interface //Buffer memory (free input or flag byte)
1/P3/4-150
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
wei1: U M 100.2; //Switchover O DB10.DBX 104.0; //MCP1Ready SPBN wei2; U DB10.DBX 104.0; //MCP1Ready FP M 100.1; //Edge trigger flag 2 SPB wei2; U M 100.2; //Switchover R M 100.2; //Reset edge trigger flag 1 SPB wei2; U M 100.3; //Comparison made SPB MCP; //Call MCP program // Route saved override to interface of switched MCP // until the override values match L EB28; T DB21.DBB 4; L EB 3; <>i; SPB wei2; S M100.3; //Route buffer memory //to override interface //Does it match override input byte //for feedrate ? //No, return //Yes, set auxiliary flag 2
// When override values match, call the MCP program again MCP: CALL MCP_IFM( ModeGrNo := B#16#1, ChanNo := B#16#1, SpindleIFNo := B#16#0, FeedHold := M 101.0, SpindleHold := M 101.1); wei2: NOP 0; //FC 19
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-151
PLC Basic Program (P3) 4.8 FB 10: Safety relay (SI relay)
11.02 10.00
4.8
Description of functions
The figure below shows only one acknowledgement input Ack1 and one delayed deactivation output Out1. The circuit for Ack2 and the other delayed outputs are identical. The parameter FirstRun is also missing in the function diagram. The mode of operation is desribed above.
1/P3/4-152
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.8
Network 2
: Title:
Simplified block diagram of saftey relay. In the diagram, timer T10 is used for the OFF delay.
Network 2: Comment:
Title:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-153
PLC Basic Program (P3) 4.8 FB 10: Safety relay (SI relay)
11.02 10.00
FUNCTION_BLOCK FB 10 VAR_INPUT In1 : BOOL := True ; //Input 1 In2 : BOOL := True ; //Input 2 In3 : BOOL := True ; //Input 3 Quit1 : BOOL ; //Quit 1 Signal Quit2 : BOOL ; //Quit 2 Signal TimeValue1 : TIME := T#0ms ; //TimeValue for Output 1 TimeValue2 : TIME := T#0ms ; //TimeValue for Output 2 TimeValue3 : TIME := T#0ms ; //TimeValue for Output 3 END_VAR VAR_OUTPUT Out0 : BOOL ; //Output without Delay Out1 : BOOL ; //Delayed Output to False by Timer 1 Out2 : BOOL ; //Delayed Output to False by Timer 2 Out3 : BOOL ; //Delayed Output to False by Timer 3 END_VAR VAR_INOUT FirstRun BOOL: //True by User after 1st Start of SPL END_VAR
The following table shows all formal parameters of the SI relay function.
Table 4-25 Signal In1 In2 In3 Quit1 Quit2 TimeValue1 TimeValue2 TimeValue3 Out0 Out1 Out2 Out3 FirstRun Formal parameters of SI relay function Type I I I I I I I I A A A A I/O Type BOOL BOOL BOOL BOOL BOOL TIME TIME TIME BOOL BOOL BOOL BOOL BOOL Input 1 Input 2 Input 3 AcknowledgeInput 1 AcknowledgeInput 2 Time value 1 for OFF delay Time value 2 for OFF delay Time value 3 for OFF delay Output undelayed Output delayed by TimeValue1 Output delayed by TimeValue2 Output delayed by TimeValue3 Activation of initial setting Notes
Note
The block must be called cyclically by the user program on starting the PLC program. The user must provide an instance DB with any number for this purpose. The call is multi-instance-capable.
1/P3/4-154
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
4.9
Description of functions
The braking operation check should be used for all axes which must be prevented from moving in an uncontrolled manner by a holding brake. This check function is primarily intended for the socalled vertical axes. The machine manufacturer can use his PLC user program to close the brake at a suitable moment in time (guide value every 8h similar to the SI test stop) and allow the drive to produce an additional torque/additional force equivalent to the weight of the axis. In error-free operation, the brake can produce the necessary braking torque/braking force and keep the axis at a virtual standstill. When an error occurs, the actual position value exits the parameterizable monitoring window. In this instance, the position controller prevents the axis from sagging and negatively acknowledges the mechanical brake test. The required parameter settings for NC and drive are described in References: /FBSI/ Description of Functions SINUMERIK Safety Integrated, Chapter 8 The brake test must always be started when the axis is at a standstill. For the entire duration of the brake test, the enable signals of the parameterized axis must be set to Enable (e.g. the Servo Disable, Feedrate Enable signals). The PLC controlling axis (DB Axis.DBX 28.7) must also be set to status 1 by the user program for the entire duration of the test. Before the PLC controlling axis signal is activated, the axis must be switched to neutral axisstatus (e.g. byte 8 must be set to channel 0 in the axis DB, activation signal must be set in the same byte, checkback about current status can be interrogated in byte 68). The block must not be started until the NC checkback via the appropriate bit (DB Axis DBX 63.1) has arrived. The direction in which the drive must produce its torque/force is specified by the PLC in the form of a traversing motion (e.g. via FC 18). The axis must be able to reach the destination of this movement without risk of collision if the brake is unable to produce the necessary torque/force.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-155
11.02 10.00
FUNCTION_BLOCK FB 11 VAR_INPUT Start : BOOL ; //Start for Braketest Quit : BOOL ; //Quit Error Bclosed : BOOL ; //brake closed input (single channel PLC) Axis : INT ; //testing axisno. TimerNo : TIMER ; //Timer from User TV_BTactiv : S5TIME ; //TimeValue > braketest activ TV_Bclose : S5TIME ; //TimeValue > close Brake TV_FeedCommand : S5TIME ; //TimeValue > force FeedCommand TV_FXSreached : S5TIME ; //TimeValue > Fixed stop reached TV_FXShold : S5TIME ; //TimeValue > test brake END_VAR VAR_OUTPUT CloseBrake : BOOL ; //Signal Close brake MoveAxis : BOOL ; //do move axis Done : BOOL ; Error : BOOL ; State : BYTE ; //Errorbyte END_VAR
The following table shows all formal parameters of the brake test function
Table 4-27 Signal Start Quit Bclosed AXIS TimerNo TV_BTactiv TV_Bclose Formal parameters of brake test function Type I I I I I I I Type BOOL BOOL BOOL INT TIMER S5TIME S5TIME Start brake test Acknowledge error Checkback input whether Close Brake is activated (singlechannel - PLC) Axis number of axis to be tested Timer from user program Monitoring time value -> brake test active, check of axis signal DBX71.0 Monitoring time value -> close brake. Check of input signal Bclosed after output CloseBrake has been set. Monitoring time value -> issue travel command. Check travel command after MoveAxis has been set. Monitoring time value -> fixed stop reached Monitoring time value -> test brake. Request for close brake. Request for initiate travel movement Test successfully completed Error has occurred. ErrorStatus Notes
TV_FeedCommand
S5TIME
I I O O O O O
1/P3/4-156
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Error identifiers
Table 4-28 State 0 1 2 3 4 5 6 7 8 9 10 11 No error Start conditions not fulfilled, e.g. axis not under closed-loop control/brake closed/axis disabled No NC checkback in Brake test active signal on selection of brake test No Brake applied checkback by input signal BClosed No travel command output (e.g. axis motion has not been started) Axis is not reaching fixed stop -> axis RESET has been activated. Travel disable/approach too slow -> fixed stop cannot be reached. TV FXSreached monitoring timeout. Brake is not holding at all (end position is reached)/approach velocity too high Brake opens during the holding period Error in brake test deselection Internal error PLC controlling axis signal not activated by the user program Error identifiers Meaning
Alarm no. Meaning Remedy 411101 Parameter axis not within permissible range Use the legal axis number
Note
The block must be called by the user program. The user must provide an instance DB with any number for this purpose. The call is multi-instance-capable.
UN M 111.1; //Request close Z axis brake from FB = A 85.0; //Control Z axis brake AUF O O FP UN S S S U U FP R Axis3; //Test on Z axis brake E 73.0; //Initiate brake test on Z axis M 110.7; //Brake test in progress M 110.0; M 111.4; //Error M 110.7; //Brake test in progress M 110.6; //Next step DBX 8.4; //Request neutral axis DBX 68.6; //Axis is neutral checkback M 110.6; M 110.1 M 110.6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-157
11.02 10.00
S R S U U FP R S
M 110.5; //Next step DBX 8.4; DBX 28.7; //Request PLC-controlled axis DBX 63.1; //PLC-controlled axis checkback M 110.5; M 110.2; M 110.5; M 111.0; //Start brake test for FB
CALL FB 11 , DB 211 (//Brake test block Start :=M 111.0, //Start brake test Quit :=E 3.7, //Acknowledge error with Reset key Bclosed := E 54.0, //Close brake initiated checkback Axis := 3, //Axis number of axis to be tested, Z axis TimerNo := T 110, //Timer number TV_BTactiv := S5T#200MS, //Monitoring time value: Brake test active DBX71.0 TV_Bclose := S5T#1S, //Monitoring time value: Brake closed TV_FeedCommand := S5T#1S, //Monitoring time value: Travel command OFF ssued TV_FXSreache := S5T#1S, //Monitoring time value: Fixed stop reached TV_FXShold := S5T#2S, //Monitoring time value: Test time Brake CloseBrake := M 111.1, //Request close brake MoveAxis := M 111.2, //Request initiate travel Done := M 111.3, //Test ended successfully Error := M 111.4, //Error State := MB 112); //Error status OPEN O O FP R UN U U FP R R Axis3; //Brake test on Z axis
M 111.3; //Test ended successfully M 111.4; //Error M 110.3; DBX 28.7; //Request PLC-controlled axis DBX 63.1; //PLC-controlled axis checkback M 111.0; //Start brake test for FB M 110.7; //Brake test in progress M 110.4; M 111.0; //Start brake test for FB M 110.7; //Brake test in progress
CALL SpinCtrl (//Move Z axis Start := M 111.2, //Start travel Stop := FALSE, Funct := B#16#5, //Mode: Axis mode Mode := B#16#1, //Traverse: Incremental AxisNo := 3, //Axis number of travel axis, Z axis E Pos := 5.000000e+000, //Distance: Minus 5 mm FRate := 1.000000e+003, //Feedrate: 1000 mm/min InPos := M 113.0, //Position reached Error := M 113.1, //Error State := MB 114); //Error status
1/P3/4-158
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.10 FB 29: Signal recorder and data trigger diagnostics
4.10
Signal recorder
The Diagnostics FB allows various diagnostic routines to be performed on the PLC user program. A diagnostic routine logs signal states and signal changes. In this diagnostic routine, function number 1 is assigned to the Func parameter. Up to 8 Boolean signals (parameters Signal_1 to Signal_8) are recorded in a circular buffer each time one of the signals changes. The current information of parameters Var1 (byte value), and Var2 and Var3 (integer values) is also stored in the circular buffer. The number of past OB 1 cycles is also stored in the buffer as additional information. This information enables the graphical evaluation of signals and values in OB 1 cycle grid. The first time the diagnostics FB is called in a new PLC cycle, the NewCycle parameter must be set to TRUE. If the diagnostics FB is called several times in the same OB 1 cycle, the NewCycle parameter must be set to FALSE for the second and subsequent calls. This prevents a new number of OB 1 cycles from being calculated. The circular buffer is set up by the user. The DB of the circular buffer must be passed to the diagnostics FB in the BufDB parameter. The circular buffer must use an array structure, as specified in the source code. The array can have any number of elements. A size of 250 elements is recommended. The ClearBuf parameter is used to clear the circular buffer and set the BufAddr pointer (I/O parameter) to the start. The associated instance DB for the FB is a DB from the user area.
Data trigger
The data trigger function is intended to allow triggering on specific values (or bits) at any permissible memory cell. The cell to be triggered is rounded with a bit mask (AndMask parameter) before the TestVal parameter is compared in the diagnostic block.
Note The source code for the function is available in the source container of the basic program library under the name Diagnose.awl. The instance DB and the circular buffer DB are also defined in this source block. The function call is also described in the function. The DB numbers and the call must be modified.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-159
PLC Basic Program (P3) 4.10 FB 29: Signal recorder and data trigger diagnostics
10.00
FUNCTION_BLOCK FB 29
VAR_INPUT Func : INT ; //Function number //0 = No Function, 1 = Signal recorder, 2 = Data trigger Signal_1 : BOOL ; Signal_2 : BOOL ; Signal_3 : BOOL ; Signal_4 : BOOL ; Signal_5 : BOOL ; Signal_6 : BOOL ; Signal_7 : BOOL ; Signal_8 : BOOL ; NewCycle : BOOL ; Var1 : BYTE ; Var2 : INT ; Var3 : INT ; BufDB : INT ; ClearBuf : BOOL ; DataAdr : POINTER ; //Area pointer to testing word TestVal : WORD ; //Value for triggering AndMask : WORD ; //AND- Mask to the testing word END_VAR VAR_OUTPUT TestIsTrue : BOOL ; END_VAR VAR_IN_OUT BufAddr : INT ; END_VAR
DATA_BLOCK DB 81
TITLE = //Ring buffer DB for FB 29 VERSION : 1.0 STRUCT Field : ARRAY [0 .. 249 ] OF STRUCT //Can be any size of this struct Cycle : INT ; //Delta cycle to last storage in buffer Signal_1 : BOOL ; //Signal names same as FB 29 Signal_2 : BOOL ; Signal_3 : BOOL ; Signal_4 : BOOL ; Signal_5 : BOOL ; Signal_6 : BOOL ; Signal_7 : BOOL ; Signal_8 : BOOL ; Var1 : BYTE ; Var2 : WORD ; Var3 : WORD ; END_STRUCT ; END_STRUCT ; BEGIN END_DATA_BLOCK
1/P3/4-160
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.10 FB 29: Signal recorder and data trigger diagnostics
Signal Type Type Value range Notes Func I Int 0, 1, 2 Function 0: Deactivate 1: Signal recorder 2: Data trigger Parameters for function 1 Signal_1 to Signal_8 NewCycle Var1 Var2 VAR BufDB ClearBuf BufAddr I I I I I I I I/O Bool Bool Byte Int Int Int Bool Int Bit signals checked for change See the Signal recorder description above Additional value Additional value Additional value Circular buffer DB no. Delete circular buffer DB and reset pointer BufAddr Target area for read data
The following table shows all formal parameters of the function Diagnostics
Parameters for function 2 DataAdr TestVal AndMask TestIsTrue I I I O Pointer Word Word Bool Pointer to word to be tested Comparison value See description Result of comparison
Configuration steps
Select function of diagnostics block. Define suitable data for the recording as signal recorder or data triggering. Find a suitable point or points in the user program for calling the diagnostics FB. Create a data block for the circular buffer (see call example). Call the diagnostics FB with parameters in the user program. In function 1, it is advisable to clear the circular buffer with the ClearBuf parameter. When the recording phase is complete (function 1), read out the circular buffer DB in STEP7 by opening the data block in the data view. You can now analyze the contents of the circular buffer DB (e.g. in a signal timing chart).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-161
PLC Basic Program (P3) 4.10 FB 29: Signal recorder and data trigger diagnostics
10.00
Call example
FUNCTION FC 99: VOID TITLE = VERSION : 0.0 BEGIN NETWORK TITLE = NETWORK CALL FB Func Signal_1 Signal_2 Signal_3 Signal_4 Signal_5 Signal_6 Signal_7 Signal_8 NewCycle Var1 BufDB ClearBuf END_FUNCTION 29, DB 80 ( := 1, := M 100.0, := M 100.1, := M 100.2, := M 100.3, := M 100.4, := M 100.5, := M 100.6, := M 100.7, := TRUE, := MB 100, := 81, := M 50.0);
1/P3/4-162
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.11 FC 2: GP_HP Basic program, cyclical section
4.11
Description of functions
Declaration
Call example
As far as the time is concerned, the basic program must be passed prior to the execution of the user program. It is therefore called first in OB 1. The following example contains the standard declarations for OB 1 and the calls for the basic program (FC2), the transfer of the machine control panel signals (FC19) and the acquisition of error and operating messages (FC10).
ORGANIZATION_BLOCK OB 1 VAR_TEMP OB1_EV_CLASS : OB1_SCAN_1 : OB1_PRIORITY : OB1_OB_NUMBR : OB1_RESERVED_1 : OB1_RESERVED_2 : OB1_PREV_CYCLE : OB1_MIN_CYCLE : OB1_MAX_CYCLE : OB1_DATE_TIME : END_VAR BEGIN CALL FC 2; //INSERT USER PROGRAM HERE CALL FC 19( ModeGroupNo := ChanNo := SpindleIFNo := FeedHold := SpindleHold := CALL FC 10( ToUserIF := Quit := END_ORGANIZATION_BLOCK //MCP signals to interface B#16#1, B#16#1, B#16#4, f22.0, db2.dbx151.0); //Mode group No. 1 //Channel no. 1 //Spindle interface number = 4 //Feed stop signal //modal //Spindle stop modal in message //data block //Call basic program as 1st FC BYTE; BYTE; BYTE; BYTE; BYTE; BYTE; INT; INT; INT; DATE_AND_TIME;
//Error and operational messages TRUE, I6.1); //Transfer signals from DB2 //to interface //Acknowledgment of error //messages via I 6.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-163
PLC Basic Program (P3) 4.12 FC 3: GP_PRAL Basic program, interrupt-controlled section
10.00
4.12
Description of functions
In the interrupt-driven part of the basic program, the block-synchronized transfers from the NCK to the PLC (auxiliary and G functions) are carried out. Auxiliary functions are subdivided into normal and high-speed auxiliary functions. The high-speed functions of an NC block are buffered and the transfer acknowledged to the NC. These are passed to the application interface at the start of the next OB1 cycle. Normal auxiliary functions are only acknowledged when they have existed for the duration of one cycle. This allows the application to issue a read disable to the NC. High-speed auxiliary functions programmed immediately one after the other, are not lost for the user program. This is ensured by a mechanism in the basic program. The G functions are evaluated immediately and passed to the application interface.
NC process alarms
If the interrupt is triggered by the NC (possible in each IPO cycle), a bit in the local data of OB 40 (GP_IRFromNCK) is set by the basic program. (only if FB 1 parameter UserIR := TRUE). This data is not set on other events (process interrupts through I/Os). This information makes it possible to branch into the associated interrupt routine in the user program in order to initiate the necessary action. To be able to implement high-speed, job-controlled processing of the user program for the machine, the following NC functions are available in the interrupt processing routine (OB 40 program section) for the PLC user program with SW 3.2 and higher:
S Selected auxiliary functions, S Tool change function for tool management option, S Position reached for positioning axes, indexing axes and spindles with activation via PLC,
1/P3/4-164
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.12 FC 3: GP_PRAL Basic program, interrupt-controlled section
Auxiliary functions
Generally, fast or acknowledging auxiliary functions are processed with or without interrupt control independently of any assignment. Basic program parameters in FB 1 can be set to define which auxiliary functions (T, H, DL) must be processed solely on an interrupt-driven basis by the user program. Functions which are not assigned via interrupts are only made available by the cyclic basic program as in earlier versions. The change signals of these functions are available in a PLC cycle. Even if the selection for the auxiliary function groups (T, H, DL) is made using interrupt control, only one interrupt can be processed by the user program for the selected functions. A bit is set channel-specifically in the local data GP_AuxFunction for the user program (if GP_AuxFunction[1] is set, then an auxiliary function is available for the 1st channel). The change signals and function value are available to the user in the associated channel DB. The change signal for this interrupt-controlled function is reset to zero in the cyclical basic program section after the execution of at least one full OB1 cycle (max. approx. two OB1 cycles).
Tool change
With the Tool management option, the tool change command for revolver and the tool change in the spindle is supported by an interrupt. The local data bit GP_TM in OB 40 is set for this purpose. The PLC user program can thus check the tool management DB (DB 72 or DB 73) for the tool change function and initiate the tool change operation.
Position reached
In the bit structure, GP_InPosition of the local data of OB 40 is specific to the machine axis (each bit corresponds to an axis/spindle, e.g. GP_InPosition[5] corresponds to axis 5). If a function has been activated via FC 15 (positioning axis), FC 16 (indexing axis) or FC 18 (spindle control) for an axis or spindle, the associated GP_InPosition bit makes it possible to implement instantaneous evaluation of the InPos signal of the FCs listed above. This capability can be used, for example, to obtain immediate activation of clamps for an indexing axis.
Declaration
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-165
PLC Basic Program (P3) 4.12 FC 3: GP_PRAL Basic program, interrupt-controlled section
10.00
Call example
As far as the time is concerned, the basic program must be passed prior to the execution of further interrupt-controlled user programs. It is therefore called first in OB 40. The following example contains the standard declarations for OB 40 and the call for the basic program.
ORGANIZATION_BLOCK OB 40 VAR_TEMP OB40_EV_CLASS : OB40_STRT_INF : OB40_PRIORITY : OB40_OB_NUMBR : OB40_RESERVED_1 : OB40_MDL_ID : OB40_MDL_ADDR : OB40_POINT_ADDR : OB40_DATE_TIME : //Assigned to basic program GP_IRFromNCK : BOOL; //Interrupt durch NCK fuer Anwender GP_TM : BOOL; //Tool management GP_InPosition : ARRAY [1..3] OF BOOL; //Axis-oriented for positioning axes, //Indexing axes, spindles GP_AuxFunction : ARRAY [1..10] OF BOOL; //Channel-oriented for //auxiliary functions GP_FMBlock : ARRAY [1..10] OF BOOL; //Channel-oriented for //Transfer to FM (available soon) //Further local user data may be defined from this point onwards END_VAR BEGIN CALL FC 3; //INSERT USER PROGRAM HERE END_ORGANIZATION_BLOCK BYTE; BYTE; BYTE; BYTE; BYTE; BYTE; INT; DWORD; DATE_AND_TIME;
1/P3/4-166
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.13 FC 5: GP_DIAG basic program, diagnostic alarm (only FM-NC)
4.13
Description of functions
Module faults are acquired in the diagnostic alarm controlled part of the basic program. In the FM-NC, NCK Reset is recorded by the PLC via the diagnostic alarm as a module failure. Once the response program has been initiated, another diagnostic alarm signals that the module fault has been eliminated.
Declaration
Call example
As far as the time is concerned, the basic program must be passed prior to the execution of further interrupt-controlled user programs. It must therefore be called first in OB82. The following example contains the standard declarations for OB 82 and the call for the basic program.
ORGANIZATION_BLOCK OB 82 VAR_TEMP OB82_EV_CLASS : OB82_PRIORITY : OB82_RESERVED_1 : OB82_MDL_ADDR : OB82_INT_FAULT : OB82_EXT_FAULT : OB82_EXT_VOLTAGE : OB82_NO_CONFIG : OB82_MDL_TYPE : OB82_COMM_FAULT : OB82_WTCH_DOG_FLT : OB82_PRIM_BATT_FLT : OB82_RESERVED_2 : OB82_PROC_FLT : OB82_RAM_FLT : OB82_FUSE_FLT : OB82_RESERVED_3 : END_VAR BEGIN CALL FC 5; //INSERT USER PROGRAM HERE END_ORGANIZATION_BLOCK BYTE ; BYTE ; BYTE ; INT ; BOOL ; BOOL ; BOOL ; BOOL ; BYTE ; BOOL ; BOOL ; BOOL ; BOOL ; BOOL ; BOOL ; BOOL ; BOOL ;
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-167
PLC Basic Program (P3) 4.14 FC 7: TM_REV Transfer block for tool change with revolver
10.00
4.14
Description of functions
After a revolver has been changed, the user will call this block. The revolver number (corresponding to interface number in DB 73) must be specified in parameter ChgdRevNo for this purpose. As this block is called, the associated Interface active bit in data block DB 73, word 0 of FC 7 is reset after parameter Ready := TRUE is returned. Block FC TM_REV may be started (with Start parameter = TRUE) only if an activation signal for the appropriate interface (DB 73, word 0) for this transfer has been supplied by the tool management function. Output parameter Ready is set to the value TRUE when the job has been executed correctly. The user must then set Parameter Start = FALSE or not call the block again. If parmeter Ready = FALSE, the error code in parameter Error must be interpreted. If the error code = 0, then this job must be repeated in the next PLC cycle (e.g. Start remains set to TRUE). This means that the transfer job has not yet been completed (see example FC 7 call and pulse diagram). The Start parameter does not need a signal edge for a subsequent job.
Warning It is not permissible to abort the transfer (e.g. by an external signal reset). The Start parameter must always retain the 1 signal until the Ready and/or Error parameters are <> 0.
Note For further details on tool management (also with regard to PLC) refer to the Description of Functions Tool Management. Furthermore, PI services for tool management are provided via the FB 4, FC 8 and FC 22 (see also corresponding Sections in this documentation). Machine data 20310 bit 12 must not be set to 1 for circular magazines.
1/P3/4-168
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.14 FC 7: TM_REV Transfer block for tool change with revolver
If a manual action is used to rotate the revolver, it is necessary to pass this information on to the tool management system. The asynchronous transfer function of FC 8 must be used to transfer the modified positions of the revolver. This must only occur once on the first manual rotation in the sequence. In this case, the following parameterization of the asynchronous transfer is needed via FC 8:
TaskIdent = 4 TaskIdentNo = channel NewToolMag = magazine number of revolver NewToolLoc = original location of tool OldToolMag = magazine number of buffer (spindle) = 9998 OldToolLoc = buffer number of spindle Status = 1
This measure also causes the same T command to be repeated at the tool management interface if the previous T is programmed again.
STL representation
FUNCTION FC 7 : //NAME :TM_REV VAR_INPUT Start: ChgdRevNo: END_VAR VAR_OUTPUT Ready: Error: END_VAR BEGIN END_FUNCTION BOOL; INT; BOOL; BYTE; void
The following table shows all formal parameters of the function TM_REV.
Type Type Value range Notes Start I I Bool Byte 1 = Start of transfer. ChgdRevNo Ready Error 1.. Number of revolver interface 1 = Transfer complete A A Bool Int 0..3 Error checkback 0: No error has occurred 1: No revolver present 2: Illegal revolver number in parameter ChgdRevNo 3: Illegal task (signal Interface active of selected revolver = FALSE)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-169
PLC Basic Program (P3) 4.14 FC 7: TM_REV Transfer block for tool change with revolver
10.00
Pulse diagram
Start
1 2
<> 0
Positive acknowledgment: Tool management has been transferred Reset function activation signal on arrival of acknowledgment Signal change by FC This signal chart is not permissible. The job must generally be ended since the new tool positions must be passed to the tool management in the NCK. Negative acknowledgment: Error has occurred. Error code in output parameter Error
Call example
CALL FC 7( //Tool management transfer block for revolver Start := ChgdRevNo := Ready := Error := a f 20.6; r f 20.5; jc m001; l db61.dbw 12; ow w#16#0; jn err; f001: err: r f 20.5 m 20.5, //Start := 1 => Initiation of transfer DB61.DBB 1, f 20.6, DB61.DBW 12); //Interrogate ready //Reset start //Jump if everything is OK //Error information //Evaluate error //Jump to error treatment if <> 0 //Commence run of remaining program //Reset start if error is present
1/P3/4-170
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
PLC Basic Program (P3) 4.15 FC 8: TM_TRANS Transfer block for tool management
4.15
Description of functions
In the case of changed tool positions or status changes, the user will call FC TM_TRANS. This FC is parameterized with parameter TaskIdent: 1. For loading/unloading positions, 2. For spindle change positions, 3. For revolver change positions as transfer identifier. 4. Asynchronous transfer 5. Asynchronous transfer with location reservation The interface number is indicated in parameter TaskIdentNo. Example for loading point 5: Parameter TaskIdent:= 1 and TaskIdentNo= 5. Furthermore, the current tool positions and status data (list of Status parameter in the following text) are also transmitted for this transfer function.
Note FC8 informs the NCK of the current positions of the old tool. The NCK knows where the old and the new tool have been located until the position change.
In the case of a transfer without a socalled old tool (e.g. on loading), the value 0 is assigned to parameters OldToolMag, OldToolLoc. Block FC TM_TRANS may be started (with Start parameter = TRUE) only if an activation signal for the appropriate interface (DB 71, DB 72, DB 73 in word 0) for this transfer has been supplied by the tool management function. If this job has been executed correctly, the output parameter Ready contains the value TRUE. The user must then set parameter Start = FALSE or not call the block again. If parmeter Ready = FALSE, the error code in parameter Error must be interpreted (see Call example FC 8 and pulse diagram). If the error code = 0, then this job must be repeated in the next PLC cycle (e.g. Start remains set to TRUE). This means that the transfer operation has not yet been completed. If the user assigns a value of less than 100 to the parameter Status then the associated interface in data block DB71 or DB 72 or DB 73, word 0 is deactivated (process complete). The appropriate bit for the interface is set to 0 by FC 8. The Start parameter does not need a signal edge for a subsequent job. This means that new parameters can be assigned with Start = TRUE immediately when Ready = TRUE is received.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-171
PLC Basic Program (P3) 4.15 FC 8: TM_TRANS Transfer block for tool management
11.02 10.00
Asynchronous transfer
To ensure that changes in the position of a tool are automatically signaled from PLC to the tool management (e.g. power failure in the case of an active command or accidental changes in the position by the PLC), the block FC TM_TRANS with TaskIdent:= 4 or 5 is called. This call does not require any interface activation by the tool management function. If parameter TaskIdent= 5, the tool management system reserves the location in addition to changing the position. The location is only reserved, however, if the tool has been transported from a real magazine into a buffer. An associated NC channel must be configured in the TaskIdentNo parameter. The previous position of the tool is specified in parameters OldToolMag, OldToolLoc; the current position of the tool is specified in parameters NewToolMag, NewToolLoc Status = 1 must be specified. With status 5, the specified tool remains at location OldToolMag, OldToolLoc. This location must be a buffer (e.g. spindle). The real magazine and location must be specified in the parameters NewToolMag, NewToolLoc; the location is at the position of the buffer. This procedure must always be used if the tool management system is to be informed of the position of a specific magazine location. This procedure is used for alignment in search strategies.
Warning It is not permissible to abort the transfer (e.g. by an external signal reset). The Start parameter must always retain the 1 signal until the Ready and/or Error parameters are <> 0.
Note For further details on tool management (also with regard to PLC) refer to the Description of Functions Tool Management. Furthermore, PI services are provided for tool management via the FB 4, FC 7 and FC 22 (see also the corresponding Section in this documentation).
1/P3/4-172
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.15 FC 8: TM_TRANS Transfer block for tool management
STL representation
FUNCTION FC 8 : void //NAME :TM_TRANS VAR_INPUT Start: TaskIdent: TaskIdentNo: NewToolMag: NewToolLoc: OldToolMag: OldToolLoc: Status: END_VAR VAR_OUTPUT Ready: Error: END_VAR BEGIN END_FUNCTION BOOL; INT; BOOL; BYTE; BYTE; INT; INT; INT; INT; INT;
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-173
PLC Basic Program (P3) 4.15 FC 8: TM_TRANS Transfer block for tool management
11.02 10.00
Signal Type I I Type Bool Value range Notes Start 1 = Start of transfer TaskIdent Byte 1..5 Interface or tank identifier 1: Loading/unloading point 2: Spindle/change point 3: Revolver change point 4: Asynchronous transfer 5: Asynchronous transfer with reservation of TaskIdentNo I Byte 1.. Number of associated interface or channel number. The upper nibble can specify the interface number for asynchronous transfer (e.g. B#16#12, 1st interface, 2nd channel). Current magazine number of new tool -1: Tool remains at its location. NewToolLoc = any. Only with TaskIdent = 2 (SW 5.3) Current location number of new tool NewToolMag I Int -1, 0.. NewToolLoc OldToolMag I I Int Int 0..max. location number -1, 0.. Current magazine number of new tool -1: Tool remains at its location. OldToolLoc = any. Only with TaskIdent = 2 (SW 5.3) Current location number of new tool OldToolLoc Status I I Int Int 0..max. location number 1..7, 103..105 Status information about transfer operation 1 = Transfer complete Ready Error O O Bool Int 0..65535 Error checkback 0: No error has occurred 1: Unknown TaskIdent 2: Unknown TaskIdentNo 3: Illegal task (signal Interface active of selected revolver = FALSE) Other values: The number corresponds to the error message of the tool management function in the NCK caused by this transfer.
The following table shows all formal parameters of the function TM_TRANS.
1/P3/4-174
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.15 FC 8: TM_TRANS Transfer block for tool management
Pulse diagram
Start
1 2
<> 0
Positive acknowledgment: Tool management has been transferred Reset function activation signal on arrival of acknowledgment Signal change by FC This signal chart is not permissible. The job must generally be ended since the new tool positions must be passed to the tool management in the NCK. Negative acknowledgment: Error has occurred. Error code in output parameter Error
Status list
Status = 1: The operation is complete (loading/unloading/reloading, prepare change, change). The parameters of FC 8 (FC TM_TRANS) NewToolMag, NewToolLoc, OldToolMagand OldToolLoc must be parameterized to the tool target positions specified in the interface (except for Prepare change). For further information, please refer to description of parameters of FC TM_TRANS or general Section of tool management in the PLC. 1. In the case of loading/unloading/reloading, the tool has arrived at the required target address. If the bit in the interface in DB 71.DBX (n+0).3 position at loading point is enabled, status 1 cannot be used for the function termination. Status 5 must be used for correct termination. 2. In the case of Prepare change the new tool is now available. The tool may, for example, be positioned in a buffer (gripper). In some cases, the target (magazine, location) of the old tool has been moved to the toolchange position after placement of the new tool in a buffer. However, the old tool still remains in the spindle. The preparations for a tool change are thus complete. After this acknowledgment, the Change command can be received. The positions in parameters NewToolMag, NewToolLoc ,OldToolMag and OldToolLoc correspond to the current tool positions. 3. In the case of Change (spindle or revolver), the tools addressed in the interface have now reached the required target addresses. The tool change operation is thus complete.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-175
PLC Basic Program (P3) 4.15 FC 8: TM_TRANS Transfer block for tool management
10.00
Status = 2: The new tool cannot be made available. This status is only admissible in conjunction with the Change tool command. When this status is applied, the PLC must be prevented from making a change with the proposed tool. The proposed (new) tool is disabled by the tool management function in the NCK. A new command is then output by the tool management with a duplo tool. The positions in parameters NewToolMag, NewToolLoc, OldToolMag and OldToolLoc correspond to the original tool positions. Status = 3: An error has occurred. The tool positions must not have been changed. Any changes to the magazine positions which have taken place in the meantime must be notified beforehand, for example, with status = 105 via FC TM_TRANS. Only then will the tool positions be taken into account by the tool management function. Status = 4: It would be better to position the old tool in the magazine position specified in parameters OldToolMag and OldToolLoc. This status is permissible only in conjunction with preparation for tool change (change into spindle). After this status has been transferred to the tool management function in the NCK, the tool management tries to take the specified magazine position into account in the subsequent command. However, it can only do so if the position is free. Parameters NewToolMag and NewToolLoc are not taken into account. Status = 5: The operation is complete. The new tool is in the position specified in parameters NewToolMag, NewToolLoc. In this case, the specified tool is not really in this position, but is still in the same magazine location. However, this magazine location has been moved to the position set in the parameters (e.g. tool change position). This status may be used only for revolvers, chain-type magazines and disk magazines. Status 5 enables the tool management function to adjust the current position of a magazine and to improve the search strategy for subsequent commands. This status is permissible only in conjunction with loading, unloading, and reloading operations and with preparations for a tool change. The OldToolMag and OldToolLoc parameters must be parameterized with the data of a buffer.
S Loading, reloading:
On loading or reloading, a location for the tool is already reserved in the NCK. The machine operator must then insert the tool at the target location. Caution: The location reservation is canceled when the control system is switched on again.
1/P3/4-176
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.15 FC 8: TM_TRANS Transfer block for tool management
Status = 6: The tool management is completed. This status has the same function as status 1, but, in addition, a reservation of the source location is carried out. This status is only permitted when reloading. The command is ended and the source location of the tool is reserved if the target location is in a buffer magazine. Status = 7: (ab SW 6) Repetition of the Prepare Tool command initiated. This status is only admissible in conjunction with the Prepare Tool Change command. This status is intended for use when the new tool has changed its position (e.g. via an asynchronous command of the new tool). After Ready = 1 has been provided from FC 8, the Prepare Change command is repeated automatically with the same tool. After Ready = 1 has been provided from FC 8, the Prepare Change command is repeated automatically with the same tool. For the automatic repetition, a new tool search is carried out. The positions in parameters NewToolMag, NewToolLoc, OldToolMag, OldToolLoc must correspond to the original positions of the tools. Status = 103: The new tool can be inserted. This status is only permissible in conjunction with the preparations for a tool change if the PLC may reject the new tool (MD: MC_TOOL_MANAGEMENT_MASK, bit 4). The tool positions have remained unchanged. This status is required to ensure that preprocessing continues in the NCK (otherwise processing is stopped). References: /FBW/, Description of Functions, Tool Management Status = 104: The new tool is in the position specified in parameters NewToolMag, NewToolLoc. This status is permissible only if the tool is still in the magazine in the same location. The old tool is in the position (buffer) specified in parameters OldToolMag, OldToolLoc. In this case, however, the new tool is not really in this position, but is still in the same magazine location. However, this magazine location has been moved to the position set in the parameters (e.g. tool change position). This status may be used only in conjunction with revolvers, chain-type magazines and disk magazines for the Tool change preparation phase. Status 104 enables the tool management function to adjust the current position of a magazine and to improve the search strategy for subsequent commands. Status = 105: The specified buffer has been reached by all tools involved (standard case if the operation has not yet been completed). The tools are in the specified tool positions (parameters NewToolMag, NewToolLoc, OldToolMag ,OldToolLoc).
Status definition
A general rule for the acknowledgment status is that the state information 1 to 7 result in ending of the command. If FC 8 receives one of the statuses, the Interface active bit of the interface specified in FC 8 is reset to 0 (see also interface lists DB71 to DB 73), thus completing the operation. The response if different in the case of status information 103 to 105. When the FC 8 receives one of these items of status information, the Interface active bit of this interface remains at 1. Further processing is required by the user program in the PLC (e.g. continuation of magazine positioning). This item of status information is generally used to transfer changes in position of one or both tools while the operation is still in progress.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-177
PLC Basic Program (P3) 4.15 FC 8: TM_TRANS Transfer block for tool management
10.00
Call example
CALL FC 8( //Tool management transfer block Start := TaskIdent := TaskIdentNo := NewToolMag := NewToolLoc := OldToolMag := OldToolLoc := Status := Ready := Error := a f 20.6; r f 20.5; jc m001; lDB61.dbw 12; ow w#16#0; jn err; m001: err: r f 20.5: m 20.5, //Start := 1 => Initiation of transfer DB61.DBB 0, DB61.DBB 1, DB61.DBW 2, //Current position of new tool DB61.DBW 4, DB61.DBW 6, //Current position of old tool DB61.DBW 8, DB61.DBW 10, //Status f 20.6, DB61.DBW 12); //Interrogate ready //Reset start //Jump if everything is OK //Error information //Evaluate error //Jump to error treatment //Normal branch //Error treatment //Reset start
1/P3/4-178
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
4.16
Description of functions
Alarms
400902 Explanation Reaction Remedy Continuation Parameter ChanNo in FC 9 is not permitted The parameterized channel does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
Declaration
FUNCTION FC 9: VOID VAR_INPUT Start: ChanNo: IntNo: END_VAR BOOL; INT; INT;
//ASUP
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-179
10.00
VAR_OUTPUT Active: Done: Error: StartErr: END_VAR VAR_IN_OUT Ref: END_VAR WORD; BOOL; BOOL; BOOL; BOOL;
The following table shows all formal parameters of the function ASUB.
Type I I I Type Bool Int Int Value range Notes Start ChanNo IntNo Activ 1 to 10 1-8 No. of NC channel Interrupt no. 1 = active A A A A Bool Bool Bool Bool Done Error 1 = ASUB terminated StartErr Ref 1 = Interrupt number not allocated 1 word per FC 9 (for internal use) I/O Word Global variable (MW, DBW,..)
Pulse diagram
Start Activ Done Error 1 2 3 4 5 6
2 3 5 7 5
Activation of function ASUB active Positive acknowledgment: ASUB ended Resetting of function activation after receipt of acknowledgment Signal change by FC If function initiation is reset before the acknowledgment is received, the output signals are not updated, without influence on the sequence of the initiation function Negative acknowledgment: Error has occurred
1/P3/4-180
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Call example
CALL FC 9( //Starting an asynchronous subprogram //in channel 1 interrupt number 1 Start := ChanNo := IntNo := Active := Done := Error := StartErr := Ref := I 45.7, 1, 1, F 204.0, F204.1, F 204.4, F 204.5, FW 200);
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-181
PLC Basic Program (P3) 4.17 FC 10: AL_MSG Error and operating messages
10.00
4.17
Description of functions
The FC AL_MSG evaluates the signals entered in DB 2 and displays them as incoming and going error and operational messages on the MMC. The incoming signals (positive edge) are displayed immediately in the case of both error and operating messages. Outgoing signals (negative edge) are only canceled immediately in the case of operating messages. Error messages remain stored on the MMC - even if the signals no longer exist - until the acknowledge parameter is issued, i.e. until the user acknowledges the messages. The ToUserIF parameter can be used to transfer the group signals for the feed, read and NC start disabling signals and feed stop signal to the existing axis, spindle and channel interfaces. The group signals are transferred to the user interface directly from the status information in DB 2 irrespective of an alarm acknowledgment. 1. If parameter ToUserIF is set to FALSE, signals are not transferred to the user interface. In this case, the user must take measures in his PLC program to ensure that these signals are influenced in the interface. 2. If parameter ToUserIF is set to TRUE, all signals listed above are sent to the user interface as a group signal in each case. The user PLC program can therefore influence these signals only via DB 2 in connection with a message or alarm output. The appropriate information is overwritten in the user interface. As an alternative to the procedure described under paragraph 2, the user can influence the disable and stop signals without a message output by applying a disable or stop signal state to the interface signals after FC AL_MSG has been called. The following program illustrates this method:
CALL FC 10 ( ToUserIF:= Quit:= a f 50.0; to db 21; s DBX 6.0 TRUE, I 6.1);
//Feed disable for channel 1 //Set disable condition, reset via //FC AL_MSG if F50.0 signal = 0.
The error and operating messages are supplied by the user in the data block DB 2 (see description of DB2 Section 5.4).
Note In DB 2, a 1 signal must be present for several OB1 cycles to ensure that a message can also be displayed on the MMC.
1/P3/4-182
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.17 FC 10: AL_MSG Error and operating messages
STL representation
FUNCTION FC 10: Void //NAME : AL_MSG VAR_INPUT ToUserIF : Quit : END_VAR END_FUNCTION BOOL; BOOL;
Signal Type I I Type Bool Bool Value range Notes ToUserIF Quit 1 = Transfer signals to user interface every cycle. 1 = Acknowledge error messages.
The following table shows all formal parameters of the function AL_MSG.
Call example
CALL FC 10( ToUserIF:= Quit := //Error and operational messages TRUE, I6.1); //Signals from DB2 are //transferred to interface //Error message //is acknowledged via //input I6.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-183
PLC Basic Program (P3) 4.18 FC 12: AUXFU Call interface for user with auxiliary functions
10.00
4.18
Description of functions
Declaration
FUNCTION FC 12: VOID VAR_INPUT Chan: END_VAR BEGIN BE; END_FUNCTION BYTE; //Event control of auxiliary functions
The following table shows all formal parameters of the AUXFU function.
Signal Chan I
Type
Type Byte 0 to 9
Value range
Example
BEGIN L Chan; //Channel no. (0,1,2,..) + 21; //Channel DB offset T ChanDB; //Store channel DB no. AUF DB[ChanDB]; //Channel DB is opened indirectly // The change signals of the auxiliary functions are now scanned, etc. BE; END_FUNCTION
1/P3/4-184
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.19 FC 13: BHGDisp Display control for handheld unit
4.19
Description of functions
This module carries out the display control of the handheld unit (HHU). The information to be output on the display is stored as 32 characters in string data ChrArray. A fixed text assignment of 32 characters is therefore required for this string when the data block is created. Variable components within this string can be inserted by means of the optional numerical converter, for which parameter Convert must be set to TRUE. The variable to be displayed is referenced via the pointer Addr. Parameter DataType contains the format description of this parameter (see parameter table). The number of bytes of the variable is linked to the format description. The address justified to the right within the string is specified by parameter StringAddr. The number of written characters is shown in the parameter table. By setting parameter Row to 0, it is possible to suppress the display (e.g. if several variables in one or several PLC cycles must be entered in the string without any display output).
Signals
Byte 1 is supplied by the output signals of the HHU and the character specifications are supplied by the module. These may not be written by the PLC user program.
Additional parameters
The pointer parameters for the input and output data of the handheld unit must be parameterized in the start OB 100 in FB 1, DB 7. Parameter BHGIn corresponds to the input data of the PLC from the handheld unit (data received by PLC). Parameter BHGOut corresponds to the output data of the PLC to the handheld unit (data transmitted by PLC). These two pointers must be set to the starting point of the relevant data area which is also parameterized in SDB 210 with an MPI link.
Note If the numerical converter is used to display information, then it is better to avoid performing a conversion in every PLC cycle for the sake of reducing the PLC cycle time. In this case, it is advisable to use the input signal from the HHU to the PLC Acknowledgment digital display (DB m+5.7) for parameter Convert. In this way it can be ensured that the most recent numerical information is displayed.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-185
PLC Basic Program (P3) 4.19 FC 13: BHGDisp Display control for handheld unit
10.00
STL representation
DATA_BLOCK strdat STRUCT disp: END_STRUCT; BEGIN END_DATA_BLOCK FUNCTION FC 13: VOID VAR INPUT Row : ChrArray : Convert : Addr : DataType : StringAddr : Digits : END VAR VAR OUTPUT Error : END VAR BOOL ; //Conversion or string error Byte; STRING ; BOOL ; POINTER; Byte ; INT ; BYTE ; //Display line (see table) //Transfer at least string[32] //Activate numerical conversion //Points to variable to be converted //Variable data type //Rightaligned string address (1...32) //Number of decimal places (1...3) //The data block number is //defined in the symbol file STRING [32]:= Line 1 Line 2 ; //32 characters are defined
Signal Type I Type Byte Value range Notes Row 0-3 Display line 0: No display output 1: Line 1 2: Line 2 3; Line 1 and line 2 ChrArray Convert Addr DataType I I I I String Bool >= string[32] This string contains the entire display contents Activation of numerical conversion Points to variable to be converted 1-8 Data type of variable 1: Bool, 1 character 2: Byte, 3 characters 3: Char, 1 character 4: Word, 5 characters 5: Int, 6 characters 6: Dword, 7 characters 7: Dint, 8 characters 8: Real, 9 characters (see parameter Digits) Address within variable ChrArray Relevant only for data type Real with sign 1: 6.1 digits without sign 2: 5.2 digits without sign 3: 4.3 digits without sign 4: 3.4 digits without sign Conversion error, numerical overflow or error in StringAddr Pointer Byte
The following table shows all formal parameters of the function BHGDisp.
StringAddr Digits
I I
Int Byte
1 - 32 1-4
Error
Bool
1/P3/4-186
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.19 FC 13: BHGDisp Display control for handheld unit
Ranges of values
Table 4-29 Value ranges of data types Data type BOOL BYTE WORD INT DWORD DINT REAL (Digits := 1) REAL (Digits := 2) REAL (Digits := 3) REAL (Digits := 4) 0, 1 0 to 255 0 to 65535 -32768 to +32767 0 to 9999999 -9999999 to +9999999 -999999.9 to +999999.9 -99999.99 to +99999.99 -9999.999 to +9999.999 -999.9999 to +999.9999 Representable numerical range
Call example
CALL FC 13 ( Row := ChrArray := MB 26, strdat.disp, //DB named strdat in the //symbol table, data element //disp is declared as string[32] //and assigned completely //with characters //Number to be converted //Data type of variable //3 places after decimal point
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-187
PLC Basic Program (P3) 4.20 FC 15: POS_AX Positioning of linear and rotary axes
10.00
4.20
Description of functions
The FC POS_AX can be used to traverse axes in any operating mode, also from the PLC. (See also Description of Functions Positioning Axes SW 2). In order to traverse the NC axes via the PLC, the traversing check must be activated for the PLC. This can be achieved, for example, by calling FC POS_AX with activation of the Start parameter. FC POS_AX then requests an axis check by the NC. The NC feeds back the status of this axis in byte 68 in the associated axis interface (DB 31, ...) (see interface lists). Once the axis check has been completed (InPos is True, Start changes to zero), it is switched to a neutral state by FC POS AX. Alternatively, the PLC user program can also request the check for the PLC prior to calling FC POS_AX. By calling this function several times in succession, a better response reaction by the axes can be obtained as the switchover process in the FC can be omitted. Activation through the PLC user program is executed in the corresponding axis interface in byte 8. After return of the check, the axis can again be programmed by the NC program.
1/P3/4-188
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.20 FC 15: POS_AX Positioning of linear and rotary axes
Note
S Rotary axes can be positioned by the shortest possible route through the
programming of a negative feed value in absolute programming mode. In incremental mode (parameter IC := TRUE), the traversing direction can be determined by the sign of parameter Pos: A positive sign causes axis to traverse in the + direction. A negative sign causes the axis to traverse in the - direction.
S After the FC has been called, ACCU1 contains an error statement by the
NCK (but not if the output parameters are assigned to a data block). This is generally the value 0 (signifies: No error has occurred). The interpretation of other numerical values is shown in the following table.
Warning If several block calls (FC 15, FC 16, FC 18) are programmed for the same axis/spindle in the PLC user program, then the functions concerned must be interlocked by conditional calls in the user program. The conditional call of a started block (parameter Start or Stop = TRUE) must be called cyclically until the signal state of output parameter Active or InPos changes from 1 to 0.
Alarms
401502 Explanation Reaction Remedy Continuation Parameter AxisNo in FC 15 is not permitted The parameterized axis does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-189
PLC Basic Program (P3) 4.20 FC 15: POS_AX Positioning of linear and rotary axes
10.00
Error identifiers
Table 4-30 State Errors caused by PLC handling 1 20 30 40 Several axis/spindle functions have been activated simultaneously A function has been started without the position being reached The axis/spindle has been transferred to the NC while still in motion The axis is programmed in the NC program Error identifiers Meaning
Errors caused by NCK handling. The alarm numbers are described in the Diagnostic Guide for the 840D. 100 105 106 107 108 109 110 111 112 115 117 118 120 121 125 126 127 130 131 132 133 Corresponds to alarm no.: 16830 Corresponds to alarm no.: 16770 Corresponds to alarm no.: 22052 Corresponds to alarm no.: 22051 Corresponds to alarm no.: 22050 Corresponds to alarm no.: 22055 Velocity/speed is negative Setpoint speed is zero Invalid gear stage Programmed position has not been reached G96/G961 is not active in the NC G96/G961 is still active in the NC Not an indexing axis Indexing position error DC (shortest path) not possible Absolute minus value impossible Absolute plus value impossible Software limit switch plus Software limit switch minus Working area limitation plus Working area limitation minus
System or other serious alarms 200 Corresponds to system alarm no.: 450007
1/P3/4-190
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.20 FC 15: POS_AX Positioning of linear and rotary axes
Declaration
FUNCTION FC 15: VOID VAR_INPUT Start : AxisNo: IC: Inch: HWheelOv: Pos: FRate: END_VAR VAR_OUTPUT InPos: Activ: StartErr: Error: END_VAR BOOL; BOOL; BOOL; BOOL; BOOL; INT; BOOL; BOOL; BOOL; REAL; REAL; //POS_AX
Signal Type I I I I I I Type Bool Value range Notes Start AxisNo IC Byte 1 - 31 No. of axis to be traversed 0 = Absolute 1 = Incremental 0 = mm 1 = inch Bool Bool Bool Inch HWheelOv Pos 1 = Handwheel override Position of Linear axis: mm Rotary axis: Degrees Feedrate of Linear axis: mm/min Rotary axis: rev/min 1 = In position 1 = Active Real 0.1469368 E -38 bis 0.1701412 E +39 0.1469368 E -38 to 0.1701412 E +39 FRate I Real InPos Activ O O O O Bool Bool Bool Bool StartErr Error
1)
The following table shows all formal parameters of the function POS_AX.
Axis cannot be started, see Table 4-30 Error codes Traversing error 1) see Table 4-30 Error codes
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-191
PLC Basic Program (P3) 4.20 FC 15: POS_AX Positioning of linear and rotary axes
10.00
Pulse diagram
Start
Activ
2 3 5
2 3 5
InPos Error (StartErr) 1 2 3 4 5 6 Activation of function Positioning axis active Positive acknowledgment: Position reached Reset function activation signal on arrival of acknowledgment Signal change by FC Reset function activation signal on arrival of Active signal
1 Start
Active 2 InPos Error (StartErr) 1 2 3 4 Activation of function by positive edge Negative acknowledgment: Error has occurred Reset function activation signal on arrival of acknowledgment Signal change by FC 4
Call example
CALL FC 15 ( Start := AxisNo := IC := Inch := HWheelOv := Pos := FRate := InPos := Activ := StartErr := Error := F 100.0, 5, #incr, FALSE, FALSE, MD 160, MD 164, Q 36.0, Q 36.1, Q 36.2, Q 36.3);
1/P3/4-192
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.21 FC 16: PART_AX Positioning of indexing axes
4.21
Description of functions
The FC PART_AX can be used to traverse NC axes defined via machine data as indexing axes also from the PLC. (See also Description of Functions Indexing Axes T1.) In order to traverse the indexing axes via the PLC, the traversing check for the PLC must be activated. This can be achieved, for example, by calling FC PART_AX with activation of the Start parameter. The FC PART_AX then requests checking of the axes from the NC. The NC feeds back the status of this axis in byte 68 in the associated axis interface (DB 31, ...) (see interface lists). On completion (InPos is True, Start changes to zero), the axis check function is switched to a neutral status by FC PART_AX. Alternatively, the PLC user program can also request the check for the PLC prior to calling FC PART_AX. By calling this function several times in succession, a better response reaction by the axes can be obtained as the switchover process in the FC can be omitted. Activation through the PLC user program is executed in the corresponding axis interface in byte 8. After return of the check, the axis can again be programmed by the NC program.
Note After the FC has been called, ACCU1 contains an error statement by the NCK (but not if the output parameters are assigned to a data block). This is generally the value 0 (signifies: No error has occurred). The interpretation of other numerical values is shown in the table 4-30 of error identifiers in FC 15. FC 16 must be called cyclically until the Active signal produces an edge transition from 1 to 0. Only when the Active signal has a 0 state can the axis concerned be started again (the next start must be delayed by at least one PLC cycle). This also applies when the assignment in data byte 8 has changed. The function cannot be aborted by means of parameter Start but only by means of the axial interface signals (e.g. delete distance-to-go). The axial interface also returns status signals of the axis that may need to be evaluated (e.g. exact stop, traverse command).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-193
PLC Basic Program (P3) 4.21 FC 16: PART_AX Positioning of indexing axes
10.00
Warning If several block calls (FC 15, FC 16, FC 18) are programmed for the same axis/spindle in the PLC user program, then the functions concerned must be interlocked by conditional calls in the user program. The conditional call of a started block (parameter Start or Stop = TRUE) must be called cyclically until the signal state of output parameter Active or InPos changes from 1 to 0.
Alarms
401602 Explanation Reaction Remedy Continuation Parameter AxisNo in FC 16 is not permitted The parameterized axis does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
Declaration
FUNCTION FC 16: VOID VAR_INPUT Start : AxisNo: IC: DC: Minus: Plus: Pos: FRate: END_VAR VAR_OUTPUT InPos: Activ: StartErr: Error: END_VAR BOOL; BOOL; BOOL; BOOL; BOOL; INT; BOOL; BOOL; BOOL; BOOL; INT; REAL; //PART_AX
Signal Type I I I I Type Bool Int Value range Notes Start AxisNo IC 1 - 31 No. of axis to be traversed Bool Bool 0 = absolute direction input 1 = incremental direction input 0 = defined direction 1 = shortest path DC
The following table shows all formal parameters of the function PART_AX.
1/P3/4-194
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.21 FC 16: PART_AX Positioning of indexing axes
Signal Minus
Type I
Type Bool
Value range
Notes 0: Rotary axis motion as for linear axis 1: Motion in negative direction with rotary axes 0: Rotary axis motion as for linear axis 1: Motion in positive direction with rotary axes No. of indexing position Feedrate of Linear axis: mm/min Rotary axis: rev/min 1 = in position 1 = active
Plus
Bool
Pos I I Int 1 to 60 FRate Real 0.1469368 E -38 to 0.1701412 E +39 InPos Activ A A A A Bool Bool Bool Bool StartErr Error Axis cannot be started, see Table 4-30 Error codes Traversing error 1) see Table 4-30 Error codes
1)
Pulse diagram
Start
Activ
2 3 5
2 3 5
InPos Error (StartErr) 1 2 3 4 5 6 Activation of function through positive edge Positioning axis active Positive acknowledgment: Position reached Reset function activation signal on arrival of acknowledgment Signal change by FC Reset function activation signal on arrival of Active signal
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-195
PLC Basic Program (P3) 4.21 FC 16: PART_AX Positioning of indexing axes
10.00
Active 2 InPos Error (StartErr) 1 2 3 4 Activation of function by positive edge Negative acknowledgment: Error has occurred Reset function activation signal on arrival of acknowledgment Signal change by FC 4
Call example
CALL FC 16 ( Start := AxisNo := IC := DC := Minus := Plus := Pos := FRate := InPos := Activ := StartErr := Error := //Positioning of an indexing axis I72.4, 6, FALSE, #short, FALSE, FALSE, FW 168, MD 164, Q 36.4, Q 36.5, Q 36.6, Q 36.7);
1/P3/4-196
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
4.22
Description of functions
The data block for the star/delta switchover controls a defined switchover logic allowing switchover in both directions even with the spindle running. This block may be used only for digital main spindle drives and must be called separately for each spindle. The switchover operation is implemented via 2 separate contactors in a sequence involving 4 steps: Step 1: Deletion of interface signal Motor selection in progress in the associated axis DB (DB31, ... DBX21.5) and signaling of switchover process via Motor Selection A (DB31, ... DBX21.3). As soon as the checkback signal Pulses enabled = 0 (DB31, ... DBX93.7) and the acknowledgment of the announced motor selection from the drive have appeared, the currently energized contactor drops out. The other contactor is energized after the time period set by the user in parameter TimeVal has elapsed. After a further delay, the switchover is signaled to the drive by the message Motor selection executed (DB31, ... DBX21.5).
Step 2:
Step 3: Step 4:
Input FC17 PLC to NCK Interface signal Motor selection executed (DB31, ... DBX21.5) Interface signal Motor selection (DB31, ...DBX21.3 Interface signal Pulse enable (DB31, ... DB21.7 = 1 Internal pulse NCK to PLC Interface signal Enable pulses (DB31, ... DBX93.7) FC17 Timer: Value can be parameterized by user Y output D output
Fig. 4-1
For further explanations regarding motor speed adjustments, please see: References: /FB1/, S1, Spindles Configurable Gear Adaption /FB1/, G2, Velocities, Setpoint/Actual-Value Systems, Closed-Loop Control
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-197
06.03 10.00
Alarms
401702 Explanation Reaction Remedy Continuation Parameter ChanNo in FC 17 is not permitted The parameterized spindle does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
Error message
If the parameter SpindleIFNo is not in the permissible range, the PLC is stopped with output of alarm message number 401702.
When parameterizing the TimeVal with the value 0, a default value of 100 ms is used. With a value of less than 50 ms, the minimum setting of 50 ms is set. The block must be called unconditionally.
Supplementary conditions
Using the star/delta switchover for main spindle drives, a process is triggered which also includes control engineering sequences. Since the control supports the automatic star/delta switchover, some supplementary conditions will have to be taken into account.
S Due to the automatic switch-off of pulses in the drive, interface signals Enable pulses (DB31, ... DBX93.7), Current controller active (DB31 ... DBX61.6) are simultaneously switched off.
STL representation
VAR_INPUT YDelta: SpindleIFNo: TimeVal: TimerNo: END_VAR VAR_OUTPUT Y: Delta: END_VAR VAR_IN_OUT Ref: END_VAR WORD; //Block status word (instance) BOOL; BOOL; //Star contactor //Delta contactor BOOL; INT; S5TIME; INT; //Star = 0, delta = 1 //Machine axis number //Time value //User timer for switchover time
1/P3/4-198
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Type I Type Bool Value range Notes YDelta 0 = Star 1 = Delta The switchover edge of the signal initiates the switchover operation. Number of spindle interface Switchover time SpindleIFNo TimeVal I I I Int 1.. 0.. S5time Int TimerNo Y 10.. Timer for programming the wait time. Energizing of star contactor A A Bool Bool Delta Ref Energizing of delta contactor I/O Word Instance for status information. Internal use
The following table shows all formal parameters of the function YDelta.
Call example
CALL FC 17 ( YDelta := SpindleIFNo := TimeVal := TimerNo := Y := Delta := Ref := i 45.7, 4, S5T#150ms, 10, q 52.3, q 52.4, mw 50); //Star delta
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-199
10.00
4.23
Description of functions
The FC SpinCtrl can be used to control spindles and axes from the PLC. References: /FB1/, S1, Spindles /FB2/, P2, Positioning axes /FB2/, T1, Indexing Axes
S Position spindle S Rotate spindle S Oscillate spindle S Indexing axes S Positioning axes
Each function is activated by the positive edge of the appropriate initiation signal (start, stop). This signal must remain in the logic 1 state until the function has been acknowledged positively or negatively by InPos=1 or Error = 1. The output parameters are deleted when the relevant trigger signal is reset and the function terminated. To be able to control an axis or spindle via the PLC, it must be activated for the PLC. This can, for example, be achieved by calling the FC SpinCtrl with activation of the Start or Stop parameter. In this case, the FC SpinCtrl requests control over the spindle/axis from the NC. The NC feeds back the status of this spindle/axis in byte 68 in the associated spindle/axis interface (DB 31, ...) (see interface lists). Once the axis/spindle is operating under PLC control, the travel command for the active state can be evaluated via the relevant axis interface. On completion (InPos is True, Start changes to zero), the axis/spindle check function is switched to a neutral status by FC SpinCtrl. Alternatively, the PLC user program can also request the check for the PLC prior to calling FC SpinCtrl. By calling this function several times in succession, a better response reaction by the spindle/axis can be obtained as the switchover process in the FC can be omitted. Activation through the PLC user program is executed in the corresponding spindle interface in byte 8. After return of the check, the spindle can again be programmed by the NC program.
1/P3/4-200
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Note Note about call: FC 18 must be called cyclically until signal InPos or, in the case of an error Error produces an edge transition of 1 to 0. Only when the InPos/Error signal has a 0 state can the axis/spindle concerned be started or stopped again (the next start must be delayed by at least one PLC cycle). This also applies when the assignment in data byte 8 on the axial interface has been changed. Abort: The function cannot be aborted by means of parameter Start or Stop but only by means of the axial interface signals (e.g. delete distance-to-go). The axial interface also returns status signals of the axis that may need to be evaluated (e.g. exact stop, traverse command). InPos for rotate/oscillate spindle: The meaning of parameter InPos is defined as follows for the functions Rotate spindle and Oscillate spindle Set speed is output --> function has started without an error. Spindle acceleration up to the required spindle speed must be evaluated via the spindle interface. Simultaneity: Several axes can be traversed simultaneously or in a staggered time sequence by blocks FC 15, 16 and 18. The upper limit is defined by the maximum number of axes. The NCK handles the PLC function request (FC 15, 16, 18) via independent interfaces for each axis/spindle. Axis disable: With the axis disabled, an axis controlled via FC18 will not move. Only a simulated actual value is generated. (Behavior as with NC programming).
Warning If several block calls (FC 15, FC 16, FC 18) are programmed for the same axis/spindle in the PLC user program, then the functions concerned must be interlocked by conditional calls in the user program. The conditional call of a started block (parameter Start or Stop = TRUE) must be called cyclically until the signal state of output parameter Active or InPos changes from 1 to 0.
Alarms
401802 Explanation Reaction Remedy Continuation Parameter AxisNo in FC 18 is not permitted The parameterized axis does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-201
10.00
Functions
1. Position spindle The following signals are relevant: Start: Funct: Mode: AxisNo: Pos: FRate: Initiation signal 1 = Position spindle Positioning mode 1, 2, 3, 4 Number of machine axis Position Positioning velocity. When FRate = 0, value from MD 35300: SPIND_POSCTRL_VELO (position control activation speed) is used Is set to 1 when position is reached with Exact stop fine With positioning error = 1 Error code
2. Rotate spindle: The following signals are relevant: Start: Stop: Funct: Mode: AxisNo: FRate: InPos: Error: State: Initiation signal for start rotation Initiation signal for stop rotation 2 = Rotate spindle Positioning mode 5 (rotational direction M4) Positioning mode <> 5 (rotational direction M3) Number of machine axis Spindle speed Function has started without an error With positioning error = 1 Error code
3.Oscillate spindle: The following signals are relevant: Start: Stop: Funct: AxisNo: Pos: InPos: State: Initiation signal for start oscillation Initiation signal for stop oscillation 3 = Oscillate spindle Number of machine axis Set gear step Error: Error code With positioning error = 1
1/P3/4-202
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
4. Traverse indexing axes: The following signals are relevant: Start: funct: Initiation signal 4 = Indexing axis
Note When Funct: 4 = Indexing axis The modulo conversion can be compared with approaching the indexing position via POS[AX] = CIC (value) in the parts program. Mode: AxisNo: Pos: FRate: Positioning mode 0, 1, 2, 3, 4 Number of machine axis Indexing position Positioning speed; if FRate = 0, the value is taken from machine data POS_AX_VELO (unit as set in machine data) Is set to 1 when position is reached with Exact stop fine With positioning error = 1 Error code
5. to 8. Position axes: The following signals are relevant: Start: Initiation signal Funct: Mode: AxisNo: Pos: FRate: 5 to 8 = Position axes Positioning mode 0, 1, 2, 3, 4 Number of machine axis Position Positioning speed; if FRate = 0, the value is taken from machine data POS_AX_VELO (unit as set in machine data) Is set to 1 when position is reached with Exact stop fine With positioning error = 1 Error code
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-203
10.00
9. Rotate spindle with automatic gear stage selection: The following signals are relevant: Start: Stop: Funct: Mode: AxisNo: FRate: InPos: Error: State: Initiation signal for start rotation Initiation signal for stop rotation 9 = Rotate spindle with gear stage selection Positioning mode 5 (rotational direction M4) Positioning mode < >5 (rotational direction M3) Number of machine axis Spindle speed Setpoint speed is output With positioning error = 1 Error code
10./11. Rotate spindle with constant cutting rate: The constant cutting rate function must first be activated by the NC program The following signals are relevant: Start: Initiation signal for start rotation Stop: Funct: Funct: Mode: AxisNo:: FRate: InPos: Error: State:
FUNCTION FC 18: VOID VAR_INPUT Start: Stop: Funct: Mode: AxisNo: Pos: FRate: END_VAR VAR_OUTPUT InPos: Error: State: END_VAR BOOL; BOOL; BYTE; BOOL; BOOL; BYTE; BYTE; INT; REAL; REAL;
Initiation signal for stop rotation B#16#0A = Rotate spindle with constant tabcutting rate (m/min) B#16#0B = Rotate spindle with constant cutting rate (feet/min) Positioning mode 5 (rotational direction M4) Positioning mode <>5 (rotational direction M3) Number of machine axis Cutting rate Setpoint speed is output With position error = 1 Error code
//SpinCtrl
1/P3/4-204
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
Signal Type I I I Type Bool Bool Value range Notes Start Stop Start spindle control from PLC Stop spindle control from PLC 1: 2: 3: 4: 5: 6: 7: 8: 9: Funct Byte 1 to B#16#0B A: B: 0: 1: 2: 3: Position spindle Rotate spindle Oscillate spindle Indexing axis PosAxis metric PosAxis inch PosAxis metric with handwheel override PosAxis inch with handwheel override Rotate spindle with gear stage selection Rotate spindle with constant cutting rate (m/min) Rotate spindle with constant cutting rate (feet/min) Mode I Byte 0 to 5 Pos to absolute pos Pos incrementally Pos shortest path Pos absolute, positive approach direction 4: Pos absolute, negative approach direction 5: Rotational direction as for M4 No. of axis/spindle to be traversed Rotary axis: Degrees Indexing axis: Indexing position Linear axis: mm or inches AxisNo Pos I I Int 1 - 31 Real 0.1469368 E -38 to 0.1701412 E +39 FRate I Real 0.1469368 E -38 bis 0.1701412 E +39 Rotary axis and spindle: rev/min See under table containing info about FRate 1 = position reached or function executed 1 = error InPos Error O O O Bool Bool State Byte 0 to 255 Error code
The following table shows all formal parameters of the function SpinCtrl.
FRate
With SW 4 and higher, the feed velocity can also be specified in FC 18 as 1. Cutting velocity in the unit m/min or ft/min. 2. Constant grinding wheel surface speed in m/s or ft/s. These alternative velocity settings can be used only if this function is activated by the NC program. Checkback signals for successful activation can be found in byte 84 on the axis interface.
Error identifiers
If a function could not be carried out, this is indicated by the Error status parameter with logically 1. The error cause is coded at block output State. For a list of the error identifiers, see Table 4-30 in the description of FC 15 (see above).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-205
10.00
Pulse diagram
1 Start 2 InPos Error (StartErr) 1 2 3 4 Activation of function on positive edge generated by start or stop Positive acknowledgment: Function executed/Position reached Reset function activation signal on arrival of acknowledgment Signal change by FC 4 3
Activation of function by positive edge through Start or Stop Negative acknowledgment: Error has occurred Reset function activation signal on arrival of acknowledgment Signal change by FC
1/P3/4-206
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Call examples
1. Position spindle
//Positive acknowledgment resets Start: A M112.0; R M 100.0; //InPos //Start
//Negative acknowledgment, after error evaluation (state: MB114) reset with T12 start A M113.0; A I 6.4; R M 100.0; //Start with T13 A I 6.3; AN F 112.0; AN F 113.0; S M 100..0; CALL FC 18 ( Start := Stop := Funct := Mode := AxisNo := Pos := FRate := InPos := Error := State := 2. Start spindle rotation: CALL FC 18 ( Start := Stop := Funct := Mode := AxisNo := Pos := FRate := InPos := Error := State := F100.0, FALSE, Bq16q2, Bq16q5, 5, 0.0, MD108, F112.0, F113.0, FY114); //Rotate spindle //Rotational direction as for M4 F100.0, FALSE, Bq16q1, Bq16q2, 5, MD104, MD108, F112.0, F113.0, FY114); //Position spindle //Shortest path //Key T13 //New start only when InPos or Error = 0 //Error //Key T12 //Start
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-207
10.00
5. Position axes
CALL FC 18 ( Start := Stop := Funct := Mode := AxisNo := Pos := FRate := InPos := Error := State := M100.0, FALSE, B#16#5, B#16#1, 6, MD104, MD108, F112.0, F113.0, FY114); //Not used //Position axes //Position incrementally
1/P3/4-208
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.24 FC 19: MCP_IFM Transmission of MCP signals to interface
4.24
Description of functions
S S S S S S
Mode groups Axis selections WCS/MCS switchover commands Traversing keys Overrides Keyswitch
from the machine control panel (MCP) to the corresponding signals of the NCK/ PLC interface. In the basic program (FC 2), the FC 27 transmits handwheel selections, modes and other operation signals from the operator panel or MMC to the NCK/PLC interface in such a way as to allow the modes to be selected from the machine control panel or the operator panel. Transfer of MMC signals to the interface can be deactivated by setting the value of the parameter MMCToIF to FALSE in FB 1 (DB 7). The following specifications apply to the feed override, axis travel keys and INC keys depending on the active mode or on the coordinate system selected:
S Feed override:
The feed override is transferred to the interface of the selected channel and to the interface of the axes. The feed override signals are transferred in addition to interface byte Rapid traverse override (DBB 5) to the NC channel if MMC signal Feed override for rapid traverse effective is set (Exception: Switch setting Zero). Rapid traverse override effective is also set with this MMC signal. When the MCS is selected, the signals are transferred to the interface of the selected machine axis. When the WCS is selected, the signals are transferred to the geoaxis interface of the parameterized channel. When the system is switched between MCS and WCS, the active axes are generally deselected.
SW version-dependent response: See next page. The handwheel selection signals from the MMC are decoded and activated in the machine axis or the Geo axis interface of the handwheel selected (only if parameter HWheelMMC := TRUE in FB1). The LEDs on the machine control panel derived from the selections in the acknowledgment. Feedrate and spindle Start/Stop are not transferred to the interface, but output modally as a FeedHold or SpindleHold signal. The user can link these signals to other signals leading to a feed or spindle stop (this can be implemented, e.g., using the appropriate input signals in FC 10: AL_MSG). The associated LEDs are activated at the same time.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-209
PLC Basic Program (P3) 4.24 FC 19: MCP_IFM Transmission of MCP signals to interface
If the MCP fails, the signals which it outputs are preset to zero; this also applies to FeedHold and SpindleHold output signals. With SW 4 and higher, multiple calls of FC 25 or FC 25 are permitted within the same PLC cycle. In this case, the first call in the cycle drives the LED displays. Furthermore, all actions of the parameterized block are carried out in the first call. In the following calls, only a reduced level of processing of the channel and mode group interface takes place. The geometry axes are supplied with directional data only in the first block call in the cycle. Single block processing can be selected/deselected only in the first call in the cycle. The second machine control panel can be processed if parameter ModeGroupNo has been increased by B#16#10. The mode group number is contained in the lower nibble (lower 4 bits) when the parameter is set. ModeGroupNo = 0 or B#16#10 means that mode group signals are not processed. ChanNo = 0 means that the channel signals are not processed. With SW 5 and higher, the INC selections are only transferred to the mode group interface. This results in runtime improvements. The activation for this command is performed by this block once after powerup via DB10.DBX 57.0. Machine control panels can still be handled in parallel by this module. The module 2 call for the 2nd machine control panel in OB1 cycle must come after the call of the 1st MCP. A support for two MCPs is still provided within certain restrictions in the control panel blocks (support is not provided for standard axis numbers 10 to 31, mutual interlocking of axis selections with two MCPs).
SW 6 and higher provide flexibility as regards the assignment of axis selections or direction keys to machine- axis numbers. The use of 2 machine control panels in simultaneous operation is now better supported by the MCP blocks, in particular the application 2 channels, 2 mode groups. Note that the axis numbers are also specified in the parameterized mode group number of the MCP-block in the axis tables of the relevant MCP. To afford this flexibility, tables for axis numbers are stored in DB 10. The table starts from byte 8 (symbolic name: MCP1AxisTbl[1..22]) for the first machine control panel (MCP) and from byte 32 (symbolic name: MCP2AxisTbl[1..22]) for the second MCP. The machine axis numbers must be entered here byte by byte. It is permissible to enter 0 in the axis table. No check is made for illegal axis numbers. Incorrect entries can cause the PLC to stop. A limit on the maximum possible number of selected axes can be set for FC 19. This limit is set for the appropriate MCP in DB10.DBW30 (symbolic name: MCP1MaxAxis) or DB10.DBW54 (symbolic name: MCP2MaxAxis). The default setting is 0, corresponding to the maximum number of configured axes. The axis numbers and the limit can also be adapted dynamically. This must be followed, however, by another axis selected in FC 19. The axis numbers must not be switched over whiles axes are being moved via the direction keys. Set as a default is the compatibility mode with axis numbers 1 to 9 for both MCPs and the limit at the configured number of axes.
1/P3/4-210
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.24 FC 19: MCP_IFM Transmission of MCP signals to interface
Alarms
401901, 401902 Explanation Reaction Remedy Continuation Parameter ModeGroupNo in FC 19, parameter ChanNo in FC 19 not permitted The parameterized BAG group, channel does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
FUNCTION FC 19: void //NAME VAR_INPUT ModeGroupNo : ChanNo : SpindleIFNo : END_VAR VAR_OUTPUT FeedHold : SpindleHold : END_VAR BEGIN END_FUNCTION BOOL; BOOL; BYTE; BYTE; BYTE; : MCP_IFM
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-211
PLC Basic Program (P3) 4.24 FC 19: MCP_IFM Transmission of MCP signals to interface
10.00
Signal Type I Type Byte Value range Notes BAGNo 0 - b#16# and b#16#10 -b#16#1A Mode group no. to which operating mode signals must be transferred ModeGroupNo >= b#16#10 means access to the 2nd machine control panel. Channel no. for the channel signals ChanNo I I Byte Byte 0 - B#16#0A 0 - 31 (B#16#1F) SpindleIFNo FeedHold Number of the axis interface declared as a spindle. Feed stop from machine control panel, modal O O Bool Bool SpindleHold Spindle stop from machine control panel, modal
The following table shows all formal parameters of the function MCP_IFM.
Target: Interface DB (Parameter ChanNo) DB11, ... DBX0.0 DB11, ... DBX0.1 DB11, ... DBX0.2 DB11, ... DBX1.1 DB11, ... DBX1.2 DB11, ... DBX1.0 DB11.DBB2, Bits 0 to 5
SW 4 and lower
Source: MCP key INC 1 ... 10 000, INC Var. INC 1 ... 10 000, INC Var. INC 1 ... 10 000, INC Var. Target: Interface DB (Parameter ChanNo) DB21, ... DBB13, Bit 0 to 5 DB21, ... DBB17, Bit 0 to 5 DB21, ... DBB21, Bit 0 to 5
1/P3/4-212
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.24 FC 19: MCP_IFM Transmission of MCP signals to interface
Source: MCP key INC 1 ... 10 000, INC Var. (SW 4 and lower)
The transfer is dependent upon the selected axis. The associated interface bits are deleted for axes which are not selected.
Source: MCP key Direction key + Direction key Rapid traverse override Direction key + Direction key Rapid traverse override Direction key + Direction key Rapid traverse override
Target: Interface DB (Parameter ChanNo) DB21, ... DBX12.7 DB21, ... DBX12.6 DB21, ... DBX12.5 DB21, ... DBX16.7 DB21, ... DBX16.6 DB21, ... DBX16.5 DB21, ... DBX20.7 DB21, ... DBX20.6 DB21, ... DBX20.5
Source: MCP key Direction key + Direction key Rapid traverse override
Target: Interface DB (All axis DBs) DB 31, ... DBX4.7 DB 31, ... DBX4.6 DB 31, ... DBX4.5
Override
Source: MCP switch Feedrate override Target: Interface DB (Parameter ChanNo) DB21, ... DBB4
Target: Interface DB (All axis DBs) DB 31, ... DBB0 (selected axis number). The feed override of the 1st MCP applies to all axes. DB 31, ... DBB19 (Parameter SpindleIFNo)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-213
PLC Basic Program (P3) 4.24 FC 19: MCP_IFM Transmission of MCP signals to interface
10.00
Channel signals
Source: MCP key NC Start NC Stop Reset Block Target: Interface DB (Parameter ChanNo) DB21, ... DBX7.1 DB21, ... DBX7.3 DB21, ... DBX7.7 DB21, ... DBX0.4
Checkback messages of the user interface for controlling displays Operating modes and machine functions
Target: MCP LED AUTOMATIC MDA (MDI) JOG REPOS REF TEACH IN
Source: Interface DB (Parameter ModeGroupNo) DB11, ... DBX6.0 DB11, ... DBX6.1 DB11, ... DBX6.2 DB11, ... DBX7.1 DB11, ... DBX7.2 DB11, ... DBX7.0
All signals are ORed to obtain the LED checkback signals of the INC selections.
Target: MCP LED INC 1 ... 10 000, INC Var. INC 1 ... 10 000, INC Var. INC 1 ... 10 000, INC Var.
Source: Interface DB (Parameter ChanNo) DB21, ... DBB41, Bit 0 to 5 DB21, ... DBB47, Bit 0 to 5 DB21, ... DBB53, Bit 0 to 5
1/P3/4-214
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.24 FC 19: MCP_IFM Transmission of MCP signals to interface
Channel signals
Target: MCP LED NC Start NC Stop Block Source: Interface DB (Parameter ChanNo) DB21, ... DBX35.0 DB21, ... DBX35.2 or DB21, ... DBX35.3 DB21, ... DBX0.4
Note LEDs on the direction keys are driven through actuation of the direction keys. LEDs for axis selection and WCS/MCS are driven through actuation of the relevant key.
Call example
CALL FC 19( //Machine control panel M variant //Signals to interface ModeGroupNo := ChanNo := SpindleIFNo := FeedHold := SpindleHold := B#16#1, B#16#1, B#16#4, f22.0, db2.dbx151.0); //Mode group no. 1 //Channel no. 1 //Spindle interface //Number = 4 //Feed stop signal //Modal //Spindle stop modal in //Message data block
With these parameter settings, the signals are sent to the 1st mode group, the 1st channel and all axes. In addition the spindle override is transferred to the 4th axis/spindle interface. The feed hold signal is passed to bit memory 22.0 and the spindle stop signal to data block DB2, data bit 151.0.
To ensure a flexible assignment of the axis selection keys to the appropriate axis or spindle, FC 19 need not be modified or reprogrammed. The required flexibility can be obtained by applying the solution described below. 1. Before FC 19 is called, the information (RLO) relating to the newly defined axis selection key is transferred to the key selection identified by an axis number. 2. After FC 19 has been called, the information (RLO) relating to the LED identified by an axis number is transferred to the LED of the new axis selection key and the RLO of the previous axis LED then deleted.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-215
PLC Basic Program (P3) 4.24 FC 19: MCP_IFM Transmission of MCP signals to interface
10.00
Example: The spindle is defined as the 4th axis and must be selected via axis key 9. STL extract:
a i 5.2; = i 4.2; call fc 19( ModeGroupNo := ChanNo := SpindleIFNo := FeedHold := SpindleHold := a q 2.5; = q 3.3; clr; = q 2.5; //LED 4th axis //LED 9th axis //Switch off LED 4th axis b#16#1, b#16#1, b#16#4, m 30.0, m 30.1); //Selection 9th axis //to selection 4th axis
1/P3/4-216
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.25 FC 21: Transfer PLC NCK data exchange
4.25
Description of functions
VAR_INPUT Enable : Funct : S7Var : IVar1 : IVar2 : END_VAR VAR_OUTPUT Error : ErrCode : END_VAR BOOL ; INT BOOL ; BYTE ; ANY ; INT ; INT ;
The following table shows all formal parameters of the Transfer function.
Type I I Type Bool Value range Notes Enable Funct 1 = FC 21 active Byte 1 .. 7 1: Synchronized actions to channel 2: Synchronized actions from channel 3: Read data 4: Write data 5: Control signals to channel 6, 7: Control signals to axis Depends on Funct Depends on Funct Depends on Funct S7Var I I I Any Int Int S7 data storage area 0 .. 1 .. IVAR1 IVAR2 Error O O Bool Int ErrCode Depends on Funct
Functions
1: Signals synchronized actions to channel: 2: Signals synchronized actions from channel: Synchronized actions can be disabled or enabled by the PLC. The data area is stored on the user interface in DB21 to DB30.DBB 300..307 (to channel) and DBB 308..315 (from channel). Parameter S7Var is not evaluated for this function, but must be assigned an actual parameter (see call example). The data are transferred to/from the NC as soon as FC 21 is processed.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-217
PLC Basic Program (P3) 4.25 FC 21: Transfer PLC NCK data exchange
10.00
Signal Type I I I I Type Bool Value range Notes Enable Funct 1 = FC 21 active Byte Any Int 1, 2 1: Synchronized actions to channel 2: Synchronized actions from channel Not used S7Var S7 data storage area 1..MaxChannel IVAR1 Error Channel number O O Bool Int ErrCode 1: Funct invalid 10: Channel no. invalid
Call example
FUNCTION FC 100: VOID VAR_TEMP myAny: END_VAR BEGIN NETWORK ... // Deactivate synchronized actions with ID3, ID10 and ID31 in NC channel 1 : SYAK: SET; S DBX300.2; S DBX301.1; S DBX303.6; L B#16#1; T MB11; SPA TRAN; // Synchronized actions from NCK channel: SYVK: L B#16#2; T MB11; TRAN: CALL FC 21( Enable := Funct := S7Var := IVAR1 := IVAR2 := Error := ErrCode := ... END_FUNCTION F 10.0, MB 11, #myAny, 1, 0, F10.1, FW 12); //Not used //Channel no. // If True, FC21 active //ID3 //ID10 //ID31 AUF DB21 ANY;
1/P3/4-218
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
PLC Basic Program (P3) 4.25 FC 21: Transfer PLC NCK data exchange
Functions
General
A separate, internal data area is provided to allow the high-speed exchange of data between the PLC and NCK. The size of the internal data field is preset to 1024 bytes. The NCK is accessed (read/written) from the PLC via FC21. The assignment of this area (structure) must declared identically in both the NC parts program and the PLC user program. These data can be accessed from the NC parts program by commands $A_DBB[x], $A_DBW[x], $A_DBD[x], $A_DBR[x] (see Programming Guide). The concrete address is the data field is specified by a byte offset (0 to max. size - 1) in parameter IVAR1. In this case, the alignment must be selected according to the data format, i.e. a Dword starts at a 4-byte limit and a word at a 2-byte limit. Bytes can be positioned on any chosen offset within the data field, single-bit access operations are not supported and converted to a byte access operation by FC 21. The data type information and quantity of data are taken from the ANY parameter transferred via S7Var. Data consistency is guaranteed only for 1-byte and 2-byte access operations. In the case of longer data types or transfer of fields, a semaphore byte must be programmed in parameter IVAR2 that can be used by FC 21 to determine the validity or consistency of a block. This action must be supported in the NC, i.e. in the parts program, by writing or deletion of the semaphore byte. The semaphore byte is identified by a value of between 0 and 1023 in IVAR2. The PLC uses FC 21 to read and write the semaphore byte. The PLC programmer only needs to set up a semaphore variable. For access from the NC via the parts program, the semaphore feature must be programmed using individual instructions according to the flow chart shown below. The sequence is different for reading and writing variables. Only individual variables or arrays can be supported directly by the semaphore technique. Structure transfers must be subdivided into individual jobs. The programmer must ensure data integrity when programming a dedicated semaphore system.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-219
PLC Basic Program (P3) 4.25 FC 21: Transfer PLC NCK data exchange
10.00
Semaphore=1?
Semaphore=0?
Y
Transfer data from PLC to NC Error=1 ErrCode=23
Y
Transfer data from PLC to NC Error=1 ErrCode=24
Fig. 4-2
A semaphore is not required to transfer data of 1 or 2 bytes in length. If IVAR2 is set to -1, data are transferred without a semaphore.
$A_DLB[n] -128 <= x <= 255 $A_DLW[n] -32768 <= x <= 65535 $A_DLD[n] -2147483648 <= x <= 2147483647 $A_DBB[n] -128 <= x <= 255 $A_DBW[n] -32768 <= x <= 65535 $A_DBD[n] -2147483648 <= x <= 2147483647
1/P3/4-220
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.25 FC 21: Transfer PLC NCK data exchange
Signal Type I I I I I Type Bool Value range Notes Enable Funct 1 = FC 21 active 3: Read data 4: Write data Byte Any Int Int 3, 4 S7Var S7 data area, except local data 0..1023 Source/destination data storage area Position offset IVAR1 IVAR2 Error -1 .. 1023 Semaphore byte Transfer without semaphore: -1 O O Bool Int ErrCode 20: Alignment error 21: Illegal position offset 22: Illegal semaphore byte 23: No new data to be read 24: Cannot write data 25: Local data parameterized for S7Var
Call example
1. Read double word of position offset 4 with semaphore in byte 0 and store in MD 100: Data type Dword (4 bytes) Position offset 4
Semaphore
Dword
1023
CALL FC 21 ( Enable := Funct := S7Var := F 10.0, B#16#3, // If True, FC21 active //Read data
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-221
PLC Basic Program (P3) 4.25 FC 21: Transfer PLC NCK data exchange
10.00
4, 0, F10.1, FW 12);
Function
5: Update control signals to channel: The purpose of function 5 is to transmit important control signals at high speed in between cyclic data transfers. Data bytes 6 and 7 of user interfaces DB21 to DB30 are transferred to the NC. The channel is specified in parameter IVAR1. This allows the feed disable or read-in disable to be transferred outside the PLC cycle, for example. The following signals are relevant:
Signal Type I I I I Type Bool Value range Notes Enable Funct 1 = FC 21 active Byte Any Int 5 5: Control signals to channel Not used S7Var S7 data storage area 1..MaxChannel IVAR1 Error Channel number O O Bool Int ErrCode 1: Funct invalid 10: Channel no. invalid
The purpose of function 6 is to transmit important control signals at high speed in between cyclic data transfers. Data byte 2 of application interface DB31 to DB61 is transferred to the NC. The transfer is performed for all activated axes. This allows the servo enable to be transferred outside the PLC cycle, for example. The following signals are relevant:
Signal Type I I Type Bool Value range Notes Enable Funct 1 = FC 21 active Byte 6 6: Control signals to axes
1/P3/4-222
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.25 FC 21: Transfer PLC NCK data exchange
Signal Type I I Type Any Int Value range Notes S7Var S7 data storage area 0 Not used IVAR1 Error O O Bool Int ErrCode 1: Funct invalid
7: Update control signals to axes: (ab SW 6) The purpose of function 7 is to transmit important control signals at high speed in between cyclic data transfers. Data byte 4 of application interface DB31 to DB61 is transferred to the NC. The transfer is performed for all activated axes. This function can be used, for example, to transfer a feed stop outside the PLC cycle. The following signals are relevant:
Signal Type I I I I Type Bool Value range Notes Enable Funct 1 = FC 21 active Byte Any Int 7 7: Control signals to axes Not used S7Var S7 data storage area 0 IVAR1 Error O O Bool Int ErrCode 1: Funct invalid
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-223
PLC Basic Program (P3) 4.26 FC 22: TM_DIR Direction selection for tool management
10.00
Warning The block may be called only in conjunction with the tool management function or after a DB 74 data block has been set up as described below in the example. In this example there are two magazines. The first magazine has 10 locations and the second has 12 locations. When adapting to the real machine, you only need to change the data AnzMag, MagNo[.].
DATA_BLOCK DB 74 STRUCT P: ARRAY [1..9] OF DINT; w1: WORD; AnzMag: BYTE; res:BYTE; MagNo: array [1..16] of struct //Byte 40 AnzPlatz:INT; res1:BYTE; res2:BYTE; end_struct; end_struct BEGIN P[4]:=L#320; AnzMag:=b#16#2; MagNo[1].AnzPlatz:=10; MagNo[2].AnzPlatz:=12; END_DATA_BLOCK // Absolutely necessary !!! //Total number of magazines = 2 //Total locations for magazine 1 = 10 //Total locations for magazine 2 = 12
Note For further details on tool management (also with regard to PLC) refer to the Description of Functions Tool Management. Furthermore, PI services are provided for tool management via the FB 4, FC 7 and FC 8 (see also the corresponding Sections in this documentation).
1/P3/4-224
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.26 FC 22: TM_DIR Direction selection for tool management
STL representation
FUNCTION FC 22 : void // NAME: VAR_INPUT MagNo: ReqPos: ActPos: Offset: Start: END_VAR VAR_OUTPUT Cw: Ccw: InPos: Diff: Error: END_VAR BEGIN END_FUNCTION BOOL; BOOL; BOOL; INT; BOOL; INT; INT; INT; BYTE; BOOL; TM_DIR
Signal Type I I I I I Type Int Int Int Value range Notes MagNo 1.. 1.. 1.. 0.. Magazine number Setpoint location Actual location ReqPos ActPos Offset Start Cw Byte Offset for special positioning Start of calculation Bool Bool Bool Bool Int O O O O O 1 = Move magazine clockwise Ccw 1 = Move magazine counterclockwise 1 = In position InPos Diff 0.. Differential path (shortest path) 1 = Error Error Bool
The following table shows all formal parameters of the function TM_DIR.
Call example
CALL FC 22( MagNo := ReqPos := ActPos := Offset := Start := Cw := Ccw := InPos := Diff := Error := );
//Tool management direction selection 2, fw 20, fw 22, b#16#0, m 30.4, f 30.0, f 30.1, f 30.2, fw 32, f 30.3 //Magazine number //Destination position //Current position //Offset for special positioning //Activate start //Return parameter //Move magazine in clockwise //direction //Move magazine in counterclock //wise direction //Magazine in position //Differential path //Error has occurred
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-225
PLC Basic Program (P3) 4.27 FC 24: MCP_IFM2 Transmission of MCP signals to interface PLC/NCK
06.01 10.00
4.27
Description of functions
S S S S S
Modes Axis selections WCS/MCS switchover commands Traversing keys Overrides or override simulation signals
from the machine control panel (MCP) to the corresponding signals of the NCK/PLC interface. In the basic program (FC 2), the FC 27 transmits handwheel selections, modes and other operation signals from the operator panel or MMC to the NCK/PLC interface in such a way as to allow the modes to be selected from the machine control panel or the operator panel. Transfer of MMC signals to the interface can be deactivated by setting the value of the parameter MMCToIF to FALSE in FB 1 (DB 7). MMCToIF can also be activated/deactivated in the cyclical program by setting and resetting (e.g. R gp_par.MMCToIF). The following specifications apply to the feed override, axis travel keys and INC keys depending on the active mode or on the selected coordinate system:
S Feed override:
The feed override is transferred to the interface of the selected channel and to the interface of the axes. The feed override signals are transferred in addition to interface byte Rapid traverse override (DBB 5) to the NC channel if MMC signal Feed override for rapid traverse effective is set (exception: Switch setting Zero). Rapid traverse override effective is also set with this MMC signal.
SW version-dependent response: See next page. The handwheel selection signals of the MMC are decoded and activated in the associated (machine) axis interface or Geo interface of the relevant handwheel (only if FB 1 parameter HWheelMMC := TRUE). The associated LEDs of the machine control panel are derived from the acknowledgments from the relevant selections.
1/P3/4-226
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
PLC Basic Program (P3) 4.27 FC 24: MCP_IFM2 Transmission of MCP signals to interface PLC/NCK
Feedrate and spindle Start/Stop are not transferred to the interface, but output modally as a FeedHold or SpindleHold signal. The user can link these signals to other signals leading to a feed or spindle stop (this can be implemented, e.g., using the appropriate input signals in FC 10: AL_MSG). The associated LEDs are activated at the same time. The spindle direction (+, -) is not switched directly either, but made available as output parameter SpindleDir permitting, for example, FC 18 to be parameterized. A spindle enable signal is also switched via parameter SpindleHold. One possible method of moving a spindle directly is to preselect it as an axis so that it can be traversed via (axis) direction keys. If the machine control panel fails, the signals which it outputs are preset to zero; this also applies to FeedHold and SpindleHold output signals. Multiple calls of FC 24 or FC 19, FC 25 are permitted within the PLC cycle from SW 4 and higher. In this case, the first call in the cycle drives the LED displays. Moreover, all actions of the parameterized block are performed in the first call. In the following calls, only a reduced level of processing of the channel and mode group interface takes place. The geometry axes are supplied with directional data only in the first block call in the cycle. Single block processing can be selected/deselected only in the first call in the cycle. The second machine control panel can be processed if parameter ModeGroupNo has been increased by B#16#10. The mode group number is contained in the lower nibble (lower 4 bits) when the parameter is set. ModeGroupNo = 0 or B#16#10 means that mode group signals are not processed. ChanNo = 0 means that the channel signals are not processed. With SW 5 and higher, the INC selections of the override switch are only transferred to the BAG group. This results in runtime improvements. The activation for this command is performed by this block once after power-up via DB10.DBX 57.0. Machine control panels can still be handled in parallel by this module. The module call for the 2nd machine control panel in OB1 cycle must come after the call of the 1st MCP. Support for of two MCPs is still provided within certain restrictions in the control panel blocks (the standard software does not support axis numbers 10 to 31, mutual interlocking of axis with two MCPs).
SW 6 and higher provide flexibility as regards the assignment of axis selections or direction keys to machine axis numbers. The use of 2 machine control panels in simultaneous operation is now better supported by the MCP blocks, in particular the application 2 channels, 2 mode groups. Note that the axis numbers are also specified in the parameterized mode group number of the MCP block in the axis tables of the relevant MCP.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-227
PLC Basic Program (P3) 4.27 FC 24: MCP_IFM2 Transmission of MCP signals to interface PLC/NCK
10.00
To afford this flexibility, tables for axis numbers are stored in DB 10. The table starts from byte 8 (symbolic name: MCP1AxisTbl[1..22]) for the first machine control panel (MCP) and from byte 32 (symbolic name: MCP2AxisTbl[1..22]) for the second MCP. The machine axis numbers must be entered here byte by byte. It is permissible to enter 0 in the axis table. No check is made for illegal axis numbers. Incorrect entries can cause the PLC to stop. A limit on the maximum possible number of selected axes can be set for FC 19. This limit is set for the appropriate MCP in DB10.DBW30 (symbolic name: MCP1MaxAxis) or DB10.DBW54 (symbolic name: MCP2MaxAxis). The default setting is 0, corresponding to the maximum number of configured axes. The axis numbers and the limit can also be adapted dynamically. This must be followed, however, by another axis selected in FC 19. The axis numbers must not be switched over whiles axes are being moved via the direction keys. Set as a default is the compatibility mode with axis numbers 1 to 9 for both MCPs and the limit at the configured number of axes.
Alarms
402401, 402402 Explanation Reaction Remedy Continuation Parameter ModeGroupNo in FC 24, parameter ChanNo in FC 24 not permitted The parameterized mode group/channel does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
FUNCTION FC 24: void //NAME : VAR_INPUT ModeGroupNo : ChanNo : SpindleIFNo : END_VAR VAR_OUTPUT FeedHold : SpindleHold : SpindleDir: END_VAR BEGIN END_FUNCTION BOOL; BOOL; BOOL; BYTE; BYTE; BYTE; MCP_IFM2
1/P3/4-228
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.27 FC 24: MCP_IFM2 Transmission of MCP signals to interface PLC/NCK
Signal Type I Type Byte Value range Notes BAGNo 0 - b#16#0A and b#16#10 - b#16#1A 0 - B#16#0A 0 - 31 (B#16#1F) No. of mode group to which the mode signals are transferred. ModeGroupNo >= b#16#10 means access to the 2nd machine control panel. Channel no. for the channel signals ChanNo I I Byte Byte SpindleIFNo FeedHold Number of the axis interface declared as a spindle. Feed stop from machine control panel, modal O O O Bool Bool Bool SpindleHold SpindleDir Spindle stop from machine control panel, modal Spindle direction 0 equals + (counterclockwise) 1 equals - (clockwise)
The following table shows all formal parameters of the function MCP_IFM2.
Call example
CALL FC 24( //Slim-line machine control panel, M variant //Signals to interface ModeGroupNo := ChanNo := SpindleIFNo := FeedHold := SpindleHold := SpindleDir:= B#16#1, B#16#1, B#16#4, f22.0, db2.dbx151.0); f22.1); //Mode group No. 1 //Channel no. 1 //Spindle interface //number = 4 //Feed stop signal //modal //Spindle stop modal in //message data block //Spindle direction feedback
With these parameter settings, the signals are sent to the 1st mode group, the 1st channel and all axes. In addition, the spindle override is transferred to the 4th axis/spindle interface. The feed hold signal is passed to bit memory 22.0 and the spindle stop signal to data block DB2, data bit 151.0. The spindle direction feedback signal supplied via parameter SpindleDir can be used as a direction input for an additional FC 18 call.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-229
PLC Basic Program (P3) 4.28 FC 25: MCP_IFT Transfer of MCP/OP signals to interface
10.00
4.28
Description of functions
S S S S S
Mode groups Direction keys of four axes WCS/MCS switchover commands Overrides Keyswitch
from the machine control panel (MCP) to the corresponding signals of the NCK/ PLC interface. In the basic program (FC 2), the FC 27 transmits handwheel selections, modes and other operation signals from the operator panel or MMC to the NCK/PLC interface in such a way as to allow the modes to be selected from the machine control panel or the operator panel. Transmission of MMC signals to the interface can be deactivated by setting the value FALSE in the parameter in FB 1 (DB 7) MMCToIF. The following specifications apply to the feed override, axis travel keys and INC keys depending on the active mode or on the coordinate system selected:
S Feed override:
The feed override is transferred to the interface of the selected channel and to the interface of the axes. The feed override signals are transferred in addition to interface byte Rapid traverse override (DBB 5) to the NC channel if MMC signal Feed override for rapid traverse effective is set (exception: Switch setting Zero). Rapid traverse override effective is also set with this MMC signal.
SW version-dependent response: See next page. The handwheel selection signals from the MMC are decoded and activated in the machine axis or the Geo axis interface of the handwheel selected (only if parameter HWheelMMC := TRUE in FB1). The associated LEDs of the machine control panel are derived from the acknowledgments from the relevant selections. Feedrate and spindle Start/Stop are not transferred to the interface, but output modally as a FeedHold or SpindleHold signal. The user can link these signals to other signals leading to a feed or spindle stop (this can be implemented, e.g., using the appropriate input signals in FC 10: AL_MSG). The associated LEDs are activated at the same time. In the case of machine control panel failure, the signals it supplies are set to zero.
1/P3/4-230
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.28 FC 25: MCP_IFT Transfer of MCP/OP signals to interface
With SW 4 and higher, multiple calls of FC 25 or FC 19 are permitted within the same PLC cycle. In this case, the first call in the cycle drives the LED displays. Furthermore, all actions of the parameterized block are carried out in the first call. In the following calls, only a reduced level of processing of the channel and mode group interface takes place. The geometry axes are supplied with directional data only in the first block call in the cycle. Selection and deselection of single block processing is affected only in the first cycle. The second machine control panel can be processed if parameter ModeGroupNo has been increased by B#16#10. The mode group number is contained in the lower nibble (lower 4 bits) when the parameter is set. ModeGroupNo = 0 or B#16#10 means that mode group signals are not processed. ChanNo = 0 means that the channel signals are not processed. With SW 5 and higher, the INC selections of the override switch are only transferred to the BAG group. This results in runtime improvements. The activation for this command is performed by this block once after powerup via DB10.DBX 57.0. Machine control panels can still be handled in parallel by this module. Support for of two MCPs is still provided within certain restrictions in the control panel blocks (the standard software does not support axis numbers 10 to 31, mutual interlocking of axis with two MCPs).
SW 6 and higher provide flexibility as regards the assignment of axis selections or direction keys to machine axis numbers. The use of 2 machine control panels in simultaneous operation is now better supported by the MCP blocks, in particular the application 2 channels, 2 mode groups. The module 2 call for the 2nd machine control panel in OB1 cycle must come after the call of the 1st MCP. Note that the axis numbers are also specified in the parameterized mode group number of the MCP block in the axis tables of the relevant MCP. To afford this flexibility, tables for axis numbers are stored in DB 10. The table starts from byte 8 (symbolic name: MCP1AxisTbl[1..22]) for the first machine control panel (MCP) and from byte 32 (symbolic name: MCP2AxisTbl[1..22]) for the second MCP. The machine axis numbers must be entered here byte by byte. It is permissible to enter 0 in the axis table. No check is made for illegal axis numbers. Incorrect entries can cause the PLC to stop. A limit on the maximum possible number of selected axes can be set for FC 19. This limit is set for the appropriate MCP in DB10.DBW30 (symbolic name: MCP1MaxAxis) or DB10.DBW54 (symbolic name: MCP2MaxAxis). The default setting is 0, corresponding to the maximum number of configured axes. The axis numbers and the limit can also be adapted dynamically. This must be followed, however, by another axis selected in FC 19. The axis numbers must not be switched over whiles axes are being moved via the direction keys. Set as a default is the compatibility mode with axis numbers 1 to 9 for both MCPs and the limit at the configured number of axes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-231
PLC Basic Program (P3) 4.28 FC 25: MCP_IFT Transfer of MCP/OP signals to interface
10.00
Alarms
402501, 402502 Explanation Reaction Remedy Continuation Parameter ModeGroupNo in FC 25, parameter ChanNo in FC 25 not permitted The parameterized mode group, channel does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
FUNCTION FC 25: void //NAME : VAR_INPUT ModeGroupNo : ChanNo : SpindleIFNo : END_VAR VAR_OUTPUT FeedHold : SpindleHold : END_VAR BEGIN END_FUNCTION BOOL; BOOL; BYTE; BYTE; BYTE; MCP_IFT
The following table shows all formal parameters of the function MCP_IFT.
Type I Type Byte Value range Notes BAGNo 0 - b#16#0A and b#16#10 - b#16#1A 0 - B#16#0A 0 - 31 (B#16#1F) No. of mode group to which the mode signals are transferred. ModeGroupNo >= b#16#10 means access to the 2nd machine control panel. Channel no. for the channel signals. ChanNo I I Byte Byte SpindleIFNo FeedHold Number of the axis interface declared as a spindle. Feed stop from machine control panel, modal O O Bool Bool SpindleHold Spindle stop from machine control panel, modal
Call example
CALL FC 25(
1/P3/4-232
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.28 FC 25: MCP_IFT Transfer of MCP/OP signals to interface
//Mode group No. 1 //Channel no. 1 //Spindle interface //number = 4 //Feed stop signal //modal //Spindle stop modal in //message data block
With these parameter settings, the signals are sent to the 1st mode group, the 1st channel and all axes. In addition, the spindle override is transferred to the 4th axis/spindle interface. The feed hold signal is passed to bit memory 22.0 and the spindle stop signal to data block DB2, data bit 151.0.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-233
PLC Basic Program (P3) 4.29 FC 26: HPU_MCP Transfer of HPU/HT6 signals to the interface
10.00
4.29
Description of functions
FC HPU_MCP (machine control panel signals of handheld programming unit) is used to transfer:
S S S S
from the machine control panel (MCP) to the corresponding signals of the NCK/PLC interface. In the basic program (FC 2), the FC 27 transmits handwheel selections, modes and other operation signals from the operator panel or MMC to the NCK/PLC interface in such a way as to allow the modes to be selected from the machine control panel or the operator panel. Transfer of MMC signals to the interface can be deactivated by setting the value of the parameter MMCToIF to FALSE in FB 1 (DB 7). For feedrate override, axis travel and INC keys, the following statements apply according to the active mode or coordinate system: Feed override: The feed override is transferred to the interface of the selected channel and to the interface of the axes. The feed override signals are transferred in addition to interface byte Rapid traverse override (DBB 5) to the NC channel if MMC signal Feed override for rapid traverse effective is set (exception: Switch setting Zero). Rapid traverse override effective is also set with this MMC signal.
Machine functions for INC and axis travel keys: When the MCS is selected, the signals are transferred to the interface of the selected machine axis (for 6 axes). When the WCS is selected, the signals of the first three axes are transferred to the Geo axis interface of the parameterized channel. The remaining three axes are transferred to the interface of the selected machine axis
SW version-dependent response: See next page. The handwheel selection signals of the MMC are decoded and activated in the associated (machine) axis interface or geo axis interface of the relevant handwheel (only if FB 1 parameter HWheelMMC := TRUE). The LEDs on the machine control panel derived from the selections in the acknowledgment.
1/P3/4-234
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
PLC Basic Program (P3) 4.29 FC 26: HPU_MCP Transfer of HPU/HT6 signals to the interface
Feedrate and spindle Start/Stop are not transferred to the interface, but output modally as a FeedHold or SpindleHold signal. The user can link these signals to other signals leading to a feed or spindle stop (this can be implemented, e.g., using the appropriate input signals in FC 10: AL_MSG). The associated LEDs are activated at the same time. In the case of a failure of the MCP, the signals it supplies are set to zero. With SW 4 and higher, multiple calls of FC 25 or FC 25 are permitted within the same PLC cycle. In this case, the first call in the cycle drives the LED displays. Moreover, all actions of the parameterized block are performed in the first call. In the following calls, only a reduced level of processing of the channel and mode group interface takes place. The geometry axes are supplied with directional data only in the first block call in the cycle. The second machine control panel can be processed if parameter ModeGroupNo has been increased by B#16#10. The mode group number is contained in the lower nibble (lower 4 bits) when the parameter is set. ModeGroupNo = 0 or B#16#10 means that mode group signals are not processed. ChanNo = 0 means that the channel signals are not processed. With SW 5 and higher, the INC selections of the override switch are only transferred to the BAG group. This results in runtime improvements. The activation for this command is performed by this block once after powe-rup via DB10.DBX 57.0. 2 MCPs can still be handled in parallel by this module. The module 2 call for the 2nd machine control panel in OB1 cycle must come after the call of the 1st MCP. Support for of two MCPs is still provided within certain restrictions in the control panel blocks (the standard software does not support axis numbers 10 to 31, mutual interlocking of axis with two MCPs).
SW 6 and higher provide flexibility as regards the assignment of axis selections or direction keys to machine axis numbers. The use of 2 machine control panels in simultaneous operation is now better supported by the MCP blocks, in particular the application 2 channels, 2 mode groups. Note that the axis numbers are also specified in the parameterized mode group number of the MCP block in the axis tables of the relevant MCP.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-235
PLC Basic Program (P3) 4.29 FC 26: HPU_MCP Transfer of HPU/HT6 signals to the interface
10.00
To afford this flexibility, tables for axis numbers are stored in DB 10. The table starts from byte 8 (symbolic name: MCP1AxisTbl[1..22]) for the first machine control panel (MCP) and from byte 32 (symbolic name: MCP2AxisTbl[1..22]) for the second MCP. The machine axis numbers must be entered here byte by byte. It is permissible to enter 0 in the axis table. No check is made for illegal axis numbers. Incorrect entries can cause the PLC to stop. A limit on the maximum possible number of selected axes can be set for FC 19. This limit is set for the appropriate MCP in DB10.DBW30 (symbolic name: MCP1MaxAxis) or DB10.DBW54 (symbolic name: MCP2MaxAxis). The default setting is 0, corresponding to the maximum number of configured axes. The axis numbers and the limit can also be adapted dynamically. This must be followed, however, by another axis selected in FC 19. The axis numbers must not be switched over whiles axes are being moved via the direction keys. Set as a default is the compatibility mode with axis numbers 1 to 9 for both MCPs and the limit at the configured number of axes.
Alarms
402601, 402602 Explanation Reaction Remedy Continuation Parameter ModeGroupNo in FC 26, parameter ChanNo in FC 26 not permitted The parameterized mode group, parameterized channel does not exist Alarm display and PLC STOP Set parameter correctly After cold restart
FUNCTION FC 26: void //NAME : VAR_INPUT ModeGroupNo : ChanNo : END_VAR BEGIN END_FUNCTION BYTE; BYTE; HPU_MCP
The following table shows all formal parameters of the function HPU_MCP.
Type I Type Byte Value range Notes BAGNo 0 - b#16#0A and b#16#10 - b#16#1A 0 - B#16#0A No. of mode group to which the mode signals are transferred. ModeGroupNo >= b#16#10 means access to the 2nd machine control panel. Channel no. for the channel signals. ChanNo I Byte
1/P3/4-236
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.29 FC 26: HPU_MCP Transfer of HPU/HT6 signals to the interface
MCP selection signals to the user interface Operating modes and machine functions
Source: MCP key AUTOMATIC MDA (MDI) JOG REPOS REF TEACH_IN INC 1 ... 10 000, INC Var. (SW 5 and higher)
Target: Interface DB (parameter ModeGroupNo) Representation for mode group 1 DB11.DBX0.0 DB11.DBX0.1 DB11.DBX0.2 DB11.DBX1.1 DB11.DBX1.2 DB11. DBX1.0 DB11.DBB2, Bit 0 to 5
SW 4 and lower
Source: MCP key INC 1 ... 10 000, INC Var. INC 1 ... 10 000, INC Var. INC 1 ... 10 000, INC Var. Target: Interface DB (parameter ChanNo) DB21, ... DBB13, Bit 0 to 5 DB21, ... DBB17, Bit 0 to 5 DB21, ... DBB21, Bit 0 to 5
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-237
PLC Basic Program (P3) 4.29 FC 26: HPU_MCP Transfer of HPU/HT6 signals to the interface
10.00
The transfer is dependent upon the selected axis. The corresponding interface bits are deleted for axes that are not selected.
Source: MCP key Direction key + Direction key Rapid traverse override Direction key + Direction key Rapid traverse override Direction key + Direction key Rapid traverse override
Target: Interface DB (parameter ChanNo) DB21, ... DBX12.7 DB21, ... DBX12.6 DB21, ... DBX12.5 DB21, ... DBX16.7 DB21, ... DBX16.6 DB21, ... DBX16.5 DB21, ... DBX20.7 DB21, ... DBX20.6 DB21, ... DBX20.5
Source: MCP key Direction key + Direction key Rapid traverse override
Target: Interface DB (6 assigned axis DBs) DB 31, ... DBX4.7 DB 31, ... DBX4.6 DB 31, ... DBX4.5
Override
Source: MCP setting Feedrate override Target: Interface DB (parameter ChanNo) DB21, ... DBB4
Target: Interface DB (6 assigned axis DBs) DB 31, ... DBB0 DB 31, ... DBB19 (Parameter SpindleIFNo)
Channel signals
Source: MCP keys NC Start NC Stop Reset Block Target: Interface DB (parameter ChanNo) DB21, ... DBX7.1 DB21, ... DBX7.3 DB21, ... DBX7.7 DB21, ... DBX0.4
1/P3/4-238
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.29 FC 26: HPU_MCP Transfer of HPU/HT6 signals to the interface
Checkback signals from user interface for controlling displays Operating modes and machine functions
Table 4-31
Operating modes and machine functions Source: Interface DB (parameter ModeGroupNo) Representation for mode group 1 DB11, ... DBX6.0 DB11, ... DBX6.1 DB11, ... DBX6.2 DB11, ... DBX7.1 DB11, ... DBX7.2 DB11, ... DBX7.0
Target: MCP output AUTOMATIC MDA (MDI) JOG REPOS REF TEACH IN
Call example
CALL FC 26( //Machine control panel of HPU/HT6 //Signals to interface ModeGroupNo := ChanNo := B#16#1, B#16#1); //Mode group No. 1 //Channel no. 1
With these parameter settings, the signals from the first parameterized machine control panel are sent to the 1st mode group, the 1st channel and all axes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-239
PLC Basic Program (P3) 4.30 FC 19, FC 24, FC 25, FC 26 Source code description
10.00
4.30
Task
Machine control panel to application interface (FC 19 M version, FC 24 slim-line version, FC 25 T version, FC 26 HPU/HT6 variant).
Associated blocks
DB 7 (this was DB 5 up to SW 3), number of mode groups, channels, axes DB 7, Pointer to machine control panels DB 8, Storage for the next cycle FC 20, Output of error messages
Resources used
None
General
Blocks FC 19 (M version), FC 24 (slim-line version), FC 25 (T version) and FC 26 (HPU/HT6 version) transfer the machine control panel to and from the application interface. In the input parameters, ModeGroupNo selects the mode group to be processed by the block. The ModeGroupNo parameter also selects the number of the machine control panel. ChanNo selects the channel to be processed. The SpindleIFNo parameter defines the axis interface of the spindle. The spindle override is transferred to this spindle interface. The parameters are checked for errors. Output parameters FeedHold and SpindleHold are generated from the 4 feed/spindle disable and feed/spindle enable keys and are returned with logical 1 for disable. Information for the next cycle is stored in DB8, bytes 0 to 3 or bytes 62 to 65, depending on the machine control panel number. This information is the edge trigger flag, feed value and selected axis number. The blocks are provided with user data via the pointer parameters in DB 7 MCP1In and MCP1Out (MCP2In and MCP2Out). The pointers are addressed indirectly via a further pointer from the VAR section of DB7 in order to avoid absolute addressing. This additional pointer is determined symbolically in FB1.
Block functions
All four blocks have a similar structure. The blocks are organized into separate sections for individual subtasks. In the input network, various parameters are copied into local variables. The machine control signals (user data for input/output area) are also copied between locations using the various pointers in DB 7 (gp_par). These local variables are handled in the block for reasons of efficiency. Some values are initialized for the start-up. The MCS/WCS switchover with edge evaluation, axis selections, direction keys and rapid traverse overlay are determined in Network Global_in for further processing in the block. User-specific modifications should be made to this Section of the program. The user-specific modifications will usually mainly involve axis selections.
1/P3/4-240
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 4.30 FC 19, FC 24, FC 25, FC 26 Source code description
Only the keyswitch information is copied in Network NC. The mode group network transfers the modes of the keys as dynamic signals to the NCK. If the mode group number is 0, this network is not processed. If the number is too large, message 401901 or 402501 is output and the control switches to Stop mode. Selections for incrementing the geometry axes are passed dynamically from the keys to the interface for all geometry axes (up to SW 4) in the network channel. The NC Start, Stop, Reset and Single Block functions are activated by corresponding checkback signals. The direction keys of the geometry axes are supplied if a corresponding preselection is made, otherwise they are cleared. If the channel number is 0, this network is not processed. If the number is too large, message 401902 or 402502 is output and the control switches to Stop mode. The spindle network transfers the spindle override into the interface configured via SpindleIFNo. The axis network transfers the feedrate override to the selected axis interface. The direction keys are assigned to the selected axis/spindle. If an axis was selected previously, the direction information is set to 0. The INC checkback of the selected axis is displayed. The output parameters are prepared and the LED signals of the INC machine function are generated in the global_out network. The output network transfers the output signals of the machine control panel from the VAR_TEMP image to the logical address. The data for the next cycle are also saved.
Network Global_in must be modified for more than 9 axes. If further keys and machine control panel LEDs are to be used, you should perform the following measures: 1. Command UD DW#16#Value deletes all defined LEDs for axis selections. At the present time, all 9 axis selection LEDs are processed with the bit mask. 2. Command UW W#16# with the comment mask all axis selection keys checks whether a new direction selection has been made. The bit string must be modified here. 3. The jump string should be extended with new jump labels. The new jump labels should be inserted in descending order before label m009. The selection information should be extended for the new jump labels, as described for labels m009 and m008.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/4-241
PLC Basic Program (P3) 4.30 FC 19, FC 24, FC 25, FC 26 Source code description
10.00
Notes
1/P3/4-242
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal/Data Descriptions
5.1
General
for SINUMERIK 840D, with references to the appropriate Description of Functions in which the signals are described. The NCK signals that are evaluated by the basic program and passed in a conditioned state to the user interface are listed in the following sections.
5.2
General
Decoded M signals
The decoded M signals are entered in the data bits listed in the following table in DB 21 for NC channel 1 and in DB 22 for NC channel 2. The signal length is one PLC cycle. The user can easily derive the active signal for each M group by evaluating the signals.
Note No M functions are decoded for spindle (M3, M4, M5, M70).
Address in DB21/22 DBX 194.0 ... 7 DBX 195.0 ... 7 DBX 196.0 ... 7 DBX 197.0 ... 7 DBX 198.0 ... 7 DBX 199.0 ... 7 DBX 200.0 ... 7 DBX 201.0 ... 7 DBX 202.0 ... 7
Variable
Type
Initial value
Comment
M_Fkt_M0 ... M7 M_Fkt_M8 ... M15 M_Fkt_M16 ... M23 M_Fkt_M24 ... M31 M_Fkt_M32 ... M39 M_Fkt_M40 ... M47 M_Fkt_M48 ... M55 M_Fkt_M56 ... M63 M_Fkt_M64 ... M71
M signals M0 ... M7 M signals M8 ... M15 M signals M16 ... M23 M signals M24 ... M31 M signals M32 ... M39 M signals M40 ... M47 M signals M48 ... M55 M signals M56 ... M63 M signals M64 ... M71
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/5-243
10.00
Address in DB21/22 DBX 203.0 ... 7 DBX 204.0 ... 7 DBX 205.0 ... 7 DBX 206.0 ... 3
Variable
Type
Initial value
Comment
M_Fkt_M72 ... M79 M_Fkt_M80 ... M87 M_Fkt_M88 ... M95 M_Fkt_M96 ... M99
M signals M72 ... M79 M signals M80 ... M87 M signals M88 ... M95 M signals M96 ... M99
Note If M02/M30 is received as an auxiliary function output it does not mean that the parts program is ended. To determine this status reliably, the signal DB 21... DBB33.5: M02/M30 must be polled for active status. The channel status must be RESET. The auxiliary function output could arise from an asynchronous subroutine (ASUB) or a synchronized action and has nothing to do with the real end of the parts program in this case.
5.3
General
G functions
The G functions are entered in DB 21 for NC channel 1, in DB 22 for NC channel 2 and so on. The significance of the value entered in the bytes (8-bit integer) is explained in Section 12.3 of the Programming Guide. When the power is switched on, the value zero is defined in the user interface for all G groups (i.e. active G group undefined). When the NC program terminates or is aborted, the last status of the groups is retained. SW 3.1 and lower: Following an NC program start, the values of the first 8 G groups are overwritten in accordance with the default setting defined by machine data as are the values listed in the NC program. SW 3.2 and higher: Following an NC program start, the values of the 8 G groups specified in MD 22510 are overwritten in accordance with the default setting defined by machine data as are the values listed in the NC program.
Address in DB21/22 DBB 208 DBB 209 DBB 210 DBB 211 DBB 212 DBB 213 DBB 214 DBB 215 DBB 216 DBB 217 Variable Type Initial value 0 0 0 0 0 0 0 0 0 0 Comment
G_FKT_GR_1 G_FKT_GR_2 G_FKT_GR_3 G_FKT_GR_4 G_FKT_GR_5 G_FKT_GR_6 G_FKT_GR_7 G_FKT_GR_8 G_FKT_GR_9 G_FKT_GR_10
Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte
Active G function of group 1 Active G function of group 2 Active G function of group 3 Active G function of group 4 Active G function of group 5 Active G function of group 6 Active G function of group 7 Active G function of group 8 Active G function of group 9 Active G function of group 10
1/P3/5-244
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Address in DB21/22 DBB 218 DBB 219 DBB 220 DBB 221 DBB 222 DBB 223 DBB 224 DBB 225 DBB 226 DBB 227 DBB 228 DBB 229 DBB 230 DBB 231 DBB 232 DBB 233 DBB 234 DBB 235 DBB 236 DBB 237 DBB 238 DBB 239 DBB 240 DBB 241 DBB 242 DBB 243 DBB 244 DBB 245 DBB 246 DBB 247 DBB 248 DBB 249 DBB 250 DBB 251 DBB 252 DBB 253 DBB 254 DBB 255 DBB 256 DBB 257 DBB 258
Variable
Type
Initial value 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Comment
G_FKT_GR_11 G_FKT_GR_12 G_FKT_GR_13 G_FKT_GR_14 G_FKT_GR_15 G_FKT_GR_16 G_FKT_GR_17 G_FKT_GR_18 G_FKT_GR_19 G_FKT_GR_20 G_FKT_GR_21 G_FKT_GR_22 G_FKT_GR_23 G_FKT_GR_24 G_FKT_GR_25 G_FKT_GR_26 G_FKT_GR_27 G_FKT_GR_28 G_FKT_GR_29 G_FKT_GR_30 G_FKT_GR_31 G_FKT_GR_32 G_FKT_GR_33 G_FKT_GR_34 G_FKT_GR_35 G_FKT_GR_36 G_FKT_GR_37 G_FKT_GR_38 G_FKT_GR_39 G_FKT_GR_40 G_FKT_GR_41 G_FKT_GR_42 G_FKT_GR_43 G_FKT_GR_44 G_FKT_GR_45 G_FKT_GR_46 G_FKT_GR_47 G_FKT_GR_48 G_FKT_GR_49 G_FKT_GR_50 G_FKT_GR_51
Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte
Active G function of group 11 Active G function of group 12 Active G function of group 13 Active G function of group 14 Active G function of group 15 Active G function of group 16 Active G function of group 17 Active G function of group 18 Active G function of group 19 Active G function of group 20 Active G function of group 21 Active G function of group 22 Active G function of group 23 Active G function of group 24 Active G function of group 25 Active G function of group 26 Active G function of group 27 Active G function of group 28 Active G function of group 29 Active G function of group 30 Active G function of group 31 Active G function of group 32 Active G function of group 33 Active G function of group 34 Active G function of group 35 Active G function of group 36 Active G function of group 37 Active G function of group 38 Active G function of group 39 Active G function of group 40 Active G function of group 41 Active G function of group 42 Active G function of group 43 Active G function of group 44 Active G function of group 45 Active G function of group 46 Active G function of group 47 Active G function of group 48 Active G function of group 49 Active G function of group 50 Active G function of group 51
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/5-245
07.02 10.00
Address in DB21/22 DBB 259 DBB 260 DBB 261 DBB 262 DBB 263 DBB 264
Variable
Type
Initial value 0 0 0 0 0 0
Comment
Active G function of group 52 Active G function of group 53 Active G function of group 54 Active G function of group 55 Active G function of group 56 Active G function of group 57
G functions (values)
You will find the list of G functions in: References: /PG/, Programming Guide: Fundamentals
1/P3/5-246
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
5.4
General
Note The number of user areas can be parameterized via FB 1. After the configuration has been modified (FB 1: MsgUser), DB 2/3 must be deleted.
Channel areas in DB 2
Range Channel 1 Channel 1, geo axes Channel 2 Channel 2, geo axes Channel 3 Channel 3, geo axes Channel 4 Channel 4, geo axes Channel 5 Channel 5, geo axes Channel 6 Channel 6, geo axes Channel 7 Channel 7, geo axes Channel 8 Channel 8, geo axes Channels 9 and 10 are not currently implemented Address DBX0.0 DBX11.7 DBX12.0 DBX17.7 DBX18.0 DBX29.7 DBX30.0 DBX35.7 DBX36.0 DBX47.7 DBX48.0 DBX53.7 DBX54.0 DBX65.7 DBX66.0 DBX71.7 DBX72.0 DBX83.7 DBX84.0 DBX89.7 DBX90.0 DBX101.7 DBX102.0 DBX107.7 DBX108.0 DBX119.7 DBX120.0 DBX125.7 DBX126.0 DBX137.7 DBX138.0 DBX143.7 Message number 510.000 510.231 511.100 511.315 520.000 520.231 521.100 521.315 530.000 530.231 531.100 531.315 540.000 540.231 541.100 541.315 550.000 550.231 551.100 551.315 560.000 560.231 561.100 561.315 570.000 570.231 571.100 571.315 580.000 580.231 581.100 581.315
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/5-247
10.00
User areas in DB 2
Range Axis/spindle 1 Axis/spindle 2 Axis/spindle 3 Axis/spindle 4 Axis/spindle 5 Axis/spindle 6 Axis/spindle 7 Axis/spindle 8 Axis/spindle 9 Axis/spindle 10 Axis/spindle 11 Axis/spindle 12 Axis/spindle 13 Axis/spindle 14 Axis/spindle 15 Axis/spindle 16 Axis/spindle 17 Axis/spindle 18 Axes 19 to 31 are not currently implemented Address DBX144.0 DBX145.7 DBX146.0 DBX147.7 DBX148.0 DBX149.7 DBX150.0 DBX151.7 DBX152.0 DBX153.7 DBX154.0 DBX155.7 DBX156.0 DBX157.7 DBX158.0 DBX159.7 DBX160.0 DBX161.7 DBX162.0 DBX163.7 DBX164.0 DBX165.7 DBX166.0 DBX167.7 DBX168.0 DBX169.7 DBX170.0 DBX171.7 DBX172.0 DBX173.7 DBX174.0 DBX175.7 DBX176.0 DBX177.7 DBX178.0 DBX179.7 Message number 600.100 600.115 600.200 600.215 600.300 600.315 600.400 600.415 600.500 600.515 600.600 600.615 600.700 600.715 600.800 600.815 600.900 600.915 601.000 601.015 601.100 601.115 601.200 601.215 601.300 601.315 601.400 601.415 601.500 601.515 601.600 601.615 601.700 601.715 601.800 601.815
1/P3/5-248
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.4
User areas in DB 2
Range User area 0 User area 1 User area 2 User area 3 User area 4 User area 5 User area 6 User area 7 User area 8 User area 9 User area 10 User area 11 User area 12 User area 13 User area 14 User area 15 User area 16 User area 17 User area 18 User area 19 User area 20 User area 21 User area 22 User area 23 User area 24 Address DBX180.0 DBX187.7 DBX188.0 DBX195.7 DBX196.0 DBX203.7 DBX204.0 DBX211.7 DBX212.0 DBX219.7 DBX220.0 DBX227.7 DBX228.0 DBX235.7 DBX236.0 DBX243.7 DBX244.0 DBX251.7 DBX252.0 DBX259.7 DBX260.0 DBX267.7 DBX268.0 DBX275.7 DBX276.0 DBX283.7 DBX284.0 DBX291.7 DBX292.0 DBX299.7 DBX300.0 DBX307.7 DBX308.0 DBX315.7 DBX316.0 DBX323.7 DBX324.0 DBX331.7 DBX332.0 DBX339.7 DBX340.0 DBX347.7 DBX348.0 DBX355.7 DBX356.0 DBX363.7 DBX364.0 DBX371.7 DBX372.0 DBX379.7 Message number 700.000 700.063 700.100 700.163 700.200 700.263 700.300 700.363 700.400 700.463 700.500 700.563 700.600 700.663 700.700 700.763 700.800 700.863 700.900 700.963 701.000 701.063 701.100 701.163 701.200 701.263 701.300 701.363 701.400 701.463 701.500 701.563 701.600 701.663 701.700 701.763 701.800 701.863 701.900 701.963 702.000 702.063 702.100 702.163 702.200 702.263 702.300 702.363 702.400 702.463
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/5-249
10.00
Notes
1/P3/5-250
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.03 10.00
The assignment of FBs, FCs, DBs and an overview of the interface signals are given in References: /LIS/, Lists.
6.1
FB/FC assignment
FB number 1 2 29 1 2 29 30 35 30 127 30 127 FC number Basic program Reserved for Siemens Initialization of basic program Reserved for Siemens See Note referring to ShopMill, ManualTurn Free for user assignment Free for user assignment Meaning
Note * The true upper limit of the block number (FB/FC) depends on the the PLC CPU contained in the selected NCU. See Section 2.1 Key data of PLC CPUs for FM-NC, 810D, 840D.
For assignment of FCs and FBs, see Section 6.4 Memory requirements of basic PLC program for FMNC, 810D, 840D.
6.2
DB assignment
Note Only the required number of DBs according to NCMD is set up.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/6-251
10.03 10.00
Overview of data blocks Designation Name Reserved for Siemens PLCMELD PLC messages Reserved for Siemens NCCOMPILE NC INTERFACE Mode group 1 Interface for NC compile cycles Central NC interface Interface mode group Computer link and transport system interface Reserved for Siemens Program PI Service definition Version identifier Reserved for basic program MMC interface PLC machine data CHANNEL 1 AXIS 1 Interface NC channels Interfaces for axes/spindles or free for user assignment BP BP BP BP BP Package BP BP
62 70 71 74 75 76 77 80 81 89 81 127
Free for user assignment Tool management M group decoding Reserved for Siemens See Note referring to ShopMill, ManualTurn Free for user assignment BP
Note * The true upper limit of the block number (DB) depends on the PLC CPU contained in the selected NCU. See Section 2.1 Key data of PLC CPUs for FM-NC, 810D, 840D.
The data blocks of channels, axes/spindles and tool management functions that are not activated may be assigned as desired by the user.
ManualTurn
ManualTurn uses FC 30 to 35 and DB 81 to 89. ManualTurn is an operating system for conventional, cycle-controlled turning machines. The above FCs and DBs can be used without hesitation provided that the machine to be configured is not a turning machine with a maximum of two axes and one spindle. If your machine is of this type and if you might require conventional operating methods in addition to CNC functions, then you should not use the FCs and DBs above.
1/P3/6-252
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.03 10.00
ShopMill
ShopMill uses FC30 to 35 and DB 81 to 89. ShopMill is an operating system for 2 1/2D milling machines in the workshop environment. The above FCs and DBs can be used without hesitation provided that the machine to be configured is not a milling machine for 2 1/2D machining operations. However, if you intend to use your machine for applications of this type, then the FCs and DBs should not be used.
6.3
Assigned timers
Timer No. 09 10 127 Reserved for Siemens Free for user assignment Meaning
Note * The true upper limit of the block number (timer) depends on the PLC CPU contained in the selected NCU. See Section 2.1 Key data of PLC CPUs for FMNC, 810D, 840D.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/6-253
PLC Basic Program (P3) 6.4 Memory requirements of basic PLC program for FM-NC, 810D, 840D
10.00
6.4
General
The basic program consists of basic and optional functions. The basic functions include the cyclical signal exchange between the NC and PLC. The options include, for example, the FCs which can be used if required. The following table lists the memory requirements for the basic functions and the options. The data quoted represent guide values, the actual values depend on the current software version.
Table 6-2
Memory requirements of blocks with SINUMERIK 840D Block size (bytes) Load Working memory memory
Function
Remark
Basic functions in basic program FB 1, 15, 16, 17, 18 FC 1, 2, 3, 4, 11, 20 DB 4, 5, 7, 8, 17, 19 DB 2, 3, 6 OB 1, 40, 100 Must be loaded Must be loaded Must be loaded Are generated by the BP Must be loaded Total PLC/NCK, PLC/MMC interface DB 10 DB 11 DB 21, 30 DB 31, ...61 PLC/NCK signals Signals PLC/ PLC/channel signals PLC/axis signals Spindel Must be loaded Is generated by BP Are generated by BP as a function of NC-MD Are generated by BP as a function of NC-MD 318 80 352 each 180 each 262 44 316 each 144 each 3616 7208 2490 992 490 14796 3052 6608 966 812 282 11720
Basic program options Machine control panel FC 19 FC 25 FC 24 FC 26 FC 14 Transfer of MCP signals, M variant Transfer of MCP signals, T variant Transfer of MCP signals, slim variant Transfer of MCP signals, HPU variant MPI/OPI transfer Handheld unit FC 13 Display control HHU Can be loaded for handheld units 1264 1044 Must be loaded when M variant of MCP is installed Must be loaded when T variant of MCP is installed Must be loaded when slim variant of MCP is installed Must be loaded for HPUs Must be loaded with MCPNum > 0 1498 1358 1358 1358 942 1258 1160 1160 1160 802
1/P3/6-254
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 6.4 Memory requirements of basic PLC program for FM-NC, 810D, 840D
Table 6-2
Memory requirements of blocks with SINUMERIK 840D Block size (bytes) Load Working memory memory
Function
Remark
Error/status messages FC 10 ASUB FC 9 ASUB start Load when PLC ASUBs are used 656 538 Acquisition FM/BM Load when FM/BM is used 1572 1350
Basic program options Concurrent axes FC 15 FC 16 Positioning of linear/rotary axes Positioning of indexing axes Star/delta switchover FC 17 Star/delta switchover of MSD Spindle control FC 18 Spindle control PLC/NC communication FB 2 DB n1) FB 3 DB m1) FB 4 DB o1) Read NC variable Read NC variable Write NC variable Write NC variable PI services PI services PI services description Read GUD variables Read GUD variables Allgemeine Communication Allgemeine Communication Tool management FC 6 FC 7 FC 8 FC 22 DB 71 DB 72 DB 73 DB 74 Basic function Transfer function Revolver Transfer function Direction selection Loading locations Spindles Revolver Basic function Load for tool management option Load for tool management option Load for tool management option Load if direction selection is required Is generated by BP as a function of NC-MD Is generated by BP as a function of NC-MD Is generated by BP as a function of NC-MD Is generated by BP as a function of NC-MD 1382 530 1002 404 76+30*B 1182 430 834 300 40+30*B Load for Read NC variable One instance DB per FB2 call Load for Write NC variable One instance DB per FB3 call Load for PI services One instance DB per FB4 call Load for PI services Load for PI services One instance DB per FB5 call Load for Read/write NC variables and PI services Instance DB for FB6 396 426 each 396 426 each 334 234 each 1190 532 308 each 5986 440 224 270 each 224 270 each 214 130 each 408 365 166 each 5228 172 Load for spindle control from PLC 826 676 Load for star/delta switchover 612 494 Load for axis positioning by PLC Load for axis positioning by PLC 656 674 546 560
DB 16 FB5 DB p FB 6 DB 15
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/6-255
PLC Basic Program (P3) 6.4 Memory requirements of basic PLC program for FM-NC, 810D, 840D
10.00
Table 6-2
Memory requirements of blocks with SINUMERIK 840D Block size (bytes) Load Working memory memory
Function
Remark
472
436
Example:
Based on the memory requirements in the table above, the memory requirements have been determined for two sample configurations (see table below).
Function
Remark
Function
Remark
1/P3/6-256
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
General
Some useful tips on programming complex machining sequences in STEP7 are given in the following. This information concentrates mainly on the handling of data type POINTER and ANY. Detailed information about the structure of data types POINTER and ANY can be found in Chapter CPU register and storage of data in STEP7 manual Designing user programs.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/7-257
10.00
7.1
Copying data
The following is an example of how to copy data at high speed from one DB into another.
// DB xx.[AR1] is the source // DI yy.[AR2] is the destination AUF LAR1 AUF LAR2 DB 100; P#20.0; DI 101; P#50.0; //Source DB //Source start address at data byte 20 //Destination DB //Destination start address at data byte 50
//AR1, AR2, DB, DI loaded beforehand L F001: L DBW [AR1,P#0.0]; T DIW [AR2,P#0.0]; +AR1 P#2.0; +AR2 P#2.0; TAK; LOOP F001; //Copy word by word 42; //Transfer 84 bytes
7.2
General
The following programming examples illustrate different programming mechanisms. They demonstrate how input/output and transit variables (VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT) are accessed by data types POINTER or ANY within an FC or FB. The access operations are described in such a way that a part symbolic method of programming can be used.
1/P3/7-258
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
7.2.1
Description of functions
FC 99 has inputs parameters that are defined as POINTER or ANY. The example shows a body program via which the subcomponents of the POINTER or ANY can be accessed. In this case, the DB parameterized with POINTER or ANY is opened and the address offset stored as a cross-area pointer in address register AR1, thus allowing access to data elements of variables (generally structures and arrays) that are addressed via the POINTER, ANY. This access operation is described at the end of the relevant program sequence in the example. With data type ANY, it is also possible to execute a check or branch when the variable is accessed based on the data type and the number of elements involved.
FUNCTION FC 99: VOID VAR_INPUT Row : BYTE ; Convert : BOOL ; //Activate numerical conversion Addr : POINTER ; //Points to variable Addr1 : ANY; END_VAR VAR_TEMP dbchr : WORD ; Number : WORD ; type : BYTE ; END_VAR BEGIN NETWORK TITLE = //POINTER L P##Addr; LAR1 ; //Fetch pointer L W [AR1,P#0.0]; //Fetch DB number T #dbchr; L D [AR1,P#2.0]; //Offset part of pointer LAR1 ; AUF DB [#dbchr]; //Open DB of variable L B [AR1,P#40.0]; //Fetch byte value via pointer with //address offset 40 //ANY L P##Addr1; LAR1 ; L B [AR1,P#1.0]; T #typ; L W [AR1,P#2.0]; T #Number; L W [AR1,P#4.0]; T #dbchr; L D [AR1,P#6.0]; LAR1 ; AUF DB [#dbchr]; L B [AR1,P#0.0]; //Fetch ANY //Fetch type //Fetch number //Fetch DB number //Offset part of pointer //Open DB of variable //Fetch byte value via ANY
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/7-259
10.00
7.2.2
Description of functions
FB 99 has inputs parameters that are defined as POINTER or ANY. The example shows a body program via which the subcomponents of the POINTER or ANY can be accessed. In this case, the DB parameterized with POINTER or ANY is opened and the address offset stored as a crossarea pointer in address register AR1, thus allowing access to data elements of variables (generally structures and arrays) that are addressed via the POINTER, ANY. This access operation is described at the end of the relevant program sequence in the example. With data type ANY, it is also possible to execute a check or branch when the variable is accessed based on the data type and the number of elements involved.
FUNCTIONBLOCK FB 99 VAR_INPUT Row : BYTE ; Convert : BOOL ; Addr : POINTER ; Addr1 : ANY; END_VAR VAR_TEMP dbchr : WORD ; Number : WORD ; type : BYTE ; END_VAR BEGIN NETWORK TITLE = //POINTER L P##Addr; LAR1 ; L DIW [AR1,P#0.0]; T #dbchr; L DID [AR1,P#2.0]; LAR1 ; AUF DB [#dbchr]; L B [AR1,P#40.0]; //ANY L P##Addr1; LAR1 ; L DIB [AR1,P#1.0]; T #typ; L DIW [AR1,P#2.0]; T #Number; L DIW [AR1,P#4.0]; T #dbchr; L DID [AR1,P#6.0]; LAR1 ; AUF DB [#dbchr]; L B [AR1,P#0.0]; //Fetch ANY from instance DB //Fetch type //Fetch number //Fetch DB number //Offset part of pointer //Open DB of variable //Fetch byte value via ANY //Fetch pointer from instance DB //Fetch DB number //Offset part of pointer //Open DB of variable //Fetch byte value via pointer with //address offset 40 //Activate numerical conversion //Points to variable
1/P3/7-260
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
7.2.3
Note Address register AR2 is used in the block. However, this register is also used for multi-instance DBs. For this reason, the relevant FB must not be declared as a multi-instance DB.
FUNCTIONBLOCK FB 100
CODE_VERSION1
VAR_INPUT WhichAny : INT; Addr1 : ANY; Addr2 : ANY; Addr3 : ANY; Addr4 : ANY; END_VAR VAR_TEMP dbchr : WORD ; Number : WORD ; type : BYTE ; Temp_addr : ANY; END_VAR BEGIN NETWORK TITLE = L WhichAny; DEC 1; L P#10.0; *I; LAR2; L P##Addr1; +AR2; L P##Temp_addr; LAR1 ; L DID [AR2,P#0.0]; T LD [AR1,P#0.0]; L DID [AR2,P#4.0]; T LD [AR1,P#4.0]; L DIW [AR2,P#8.0]; T LW [AR1,P#8.0]; CALL FB 101, DB 100
//Add start address of ANYs //Fetch pointer from VAR_TEMP //Transfer pointer values to VAR_TEM
(ANYPAR := #Temp_addr);
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/7-261
10.00
2. An ANY parameter that has already been compiled must be transferred to another FB (FC). This can be done only by means of an ANY stored in VAR_TEMP
FUNCTIONBLOCK FB 100 VAR_INPUT DBNumber: INT; DBOffset : INT; Data type: INT; Number: INT; END_VAR VAR_TEMP dbchr : WORD ; Temp_addr : ANY; END_VAR BEGIN NETWORK TITLE = L P##Temp_addr; LAR1 ; L B#16#10; T LB [AR1,P#0.0]; L Data type; T LB [AR1,P#1.0]; L Number; T LW [AR1,P#2.0]; L DBNumber; T LW [AR1,P#4.0]; L DBOffset; SLD 3; T LD [AR1,P#6.0]; CALL FB 101, DB 100 //Fetch pointer from VAR_TEMP //ID ANY
(ANYPAR := #Temp_addr);
1/P3/7-262
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
7.3
Multi-instance DB
With version 2 and higher of STEP7, FBs might have a multi-instance capability, i.e. they might incorporate multi-instance DBs. The primary characteristic of multi-instance DBs is that they can be used for various instances of FBs (see STEP7 documentation), thus allowing the DB data quantity to be increased. However, multi-instance DBs should be activated only when they are actually going to be used since the runtime and code size for FBs of this type are greater as compared to normal instance DBs.
Note When complex programs are implemented in multi-instance FBs that use a pointer and address register, it is important for the programmer to observe certain rules. These rules must be observed by the programmers. With multi-instance DBs, the start address of the variable (VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT, VAR) is transferred with the DI data block register and address register AR2. When variables are accessed within the multi-instance FB, the compiler independently controls the access operation via address register AR2. However, when complex program sections also have to work with address registers in the same FB (e.g. to copy data), then the old contents of AR2 must be saved before the register is changed. The contents of AR2 must be restored to their original state before an instance variable (VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT, VAR) is accessed. The contents of AR2 of the instance FB can best be saved in a local variable (VAR_TEMP). Command Load pointer to an instance variable supplies a pointer value starting at the beginning of the instance data. To be able to access this variable via a pointer, the offset stored in AR2 must be added.
Example
FUNCTION_BLOCK FB 99 VAR_INPUT varin: INT; END_VAR VAR variable1: ARRAY[0..9] OF INT; variable2: INT; END_VAR
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/7-263
10.00
BEGIN L P##variable1; //Pointer to beginning of ARRAY. //8500 0010 is now stored in the accumulator
//AR2 also contains a cross-area pointer. If cross-area accessing is to be used, then an area must be masked out when these two pointers are added. UD DW#16#00FF_FFFF; //Mask out area LAR1 //Load to AR1 TAR2; +AR1 AR2; //Add AR2 instance offset //The ARRAY of variable 1 can now be indirectly accessed via AR1. L DIW [AR1, P#0.0]; //e.g. access to first element END_FUNCTION_BLOCK
7.4
Strings
General
The STRING data type is required by certain services of the basic program. For this reason, some additional facts about the string structure and general handling procedures for parameter assignments are given below.
Structure of STRING
A data of type STRING is generally stored (defined) in a data block. There are two methods of defining a string: 1. Only the data type STRING is assigned to a variable. The STEP7 compiler automatically generates a length of 254 characters. 2. Data type STRING is assigned to a variable together with a string length in square parenthesis (e.g. [32]). With this method, the STEP7 compiler generates a string length corresponding to the input. Two bytes more than prescribed by the definition are always stored for variables of the STRING data type. The STEP7 compiler stores the maximum possible number of characters in the 1st byte. The 2nd byte contains the number of characters actually used. Normally, the useful length of the assigned string is stored in byte 2 by the compiler. The characters (1 byte per character) are then stored from the 3rd byte onwards. String parameters are generally assigned to blocks of the basic program by means of a POINTER or ANY. Such assignments must generally by made using symbolic programming methods. The data block which contains the parameterizing string must be stored in the symbol list. The assignment to the basic program block is then made by means of the symbolic data block name followed by a full stop and the symbolic name of the string variable.
1/P3/7-264
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 7.5 Determining offset addresses for data block structures
7.5
General
A problem arises with symbolic determination of an offset address within a structured DB, e.g. an ARRAY or STRUCTURE is stored somewhere within the DB. After loading the address register symbolically with the start address, you might like to access the individual elements of the ARRAY or STRUCTURE via an address register. One way of loading the address register symbolically is to use an FC whose input parameter is a pointer. The address of the ARRAY or STRUCTURE is then assigned symbolically to the input parameter of this FC in the program. The program code in the FC now determines the offset address from the input parameter, and passes the offset address in the address register (AR1) to the calling function. Symbolic addressing is thus possible even with indirect access. FUNCTION FC 99: VOID
VAR_INPUT Addr : POINTER ; END_VAR BEGIN NETWORK TITLE = L P##Addr; //Fetch pointer from Addr //Offset part of variable pointer //Points to variable
END_FUNCTION
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/7-265
PLC Basic Program (P3) 7.5 Determining offset addresses for data block structures
10.00
Notes
1/P3/7-266
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
PLC Basic Program (P3) 8 Coupling two FM-NC Modules to one PLC
General
As the complexity of machine tools increases, more axes have to be configured. By coupling two FM-NC modules to the machine, it is possible to increase the number of available axes to eight. By connecting a local axis module (FM354) to each FM-NC, the number of axes can be further increased to ten. Through the interlinking of two FM-NC modules, it has been possible to produce a lowcost variant for controlling more than five axes. FM modules can be coupled with one PLC and thus coordinated by the basic PLC program. There are no major differences in basic PLC program operation between single FM-NC and dual FM-NC operation. Functions or sequences that are identical for both configurations are not mentioned in this Section, but described in detail in the description of the basic program. This description of the two FM-NC module configuration should therefore be treated as a type of differential comparison.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/8-267
PLC Basic Program (P3) 8.1 Coupling two FM-NCs with one PLC
10.00
8.1
General
When two FM-NC modules are connected to a PLC, a second NC is created that is capable of fully autonomous operation. However, it can also be synchronized with the first NC via the PLC interface. The FM-NC behaves like an AS-300 FM (Function Module) with Cbus connection. Data can therefore be exchanged between the AS300CPU and FM-NCs via a P bus or a C bus. The second FM-NC can be installed in any position in the rack. Data are exchanged with the operator panel and machine control panel via the MPI interface on the AS-300-CPU. From an external viewpoint, the AS-CPU and FM-CPU are each addressed directly.
MCP HHU
OP
OPSY P bus
PG
K bus
Fig. 8-1
General configuration
Minimum configuration (2 FM-NCs, 1 MCP, 1 MMC or OP): The MMC is always linked to one of the FM-NCs via soft key menu Connect. The FM-NC can be operated and monitored after the link has been made.
The basic program organizes the data block transfer between the PLC and NCK via the P bus using SFCs. Since each NCK has its own logical address, the basic program ensures that data are correctly distributed to the relevant FM-CPU.
1/P3/8-268
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 8.1
PLC Basic Program (P3) Coupling two FM-NCs with one PLC
1st FM-NC
NC functions
2nd FM-NC
NC functions
OPSY
Machine progr.
User interface
progr.
VDI signals
MPI funct.
VDI signals
MPI funct.
P bus K bus
COM
COM
Fig. 8-2
Coupling PLC/FM-NCs
The NCK/PLC interface has the same structure elements irrespective of whether one or several FM-NCs are connected. If the configuration includes several FM-NCs, then only the number of elements changes, but not the structure. The basic program organizes the data transfer between the PLC and NCKs via the P bus using SFCs.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/8-269
PLC Basic Program (P3) 8.2 Coupling with the components MMC/MSTT/OP
10.00
8.2
General
The following diagram shows one possible method of coupling two FM-NC modules to one PLC. The MMC can either be connected to the two FM-NCs alternately or replaced by an OP after complete startup of the installation.
MMC OP MCP
MPI
PLC
1st FM-NC
2nd FM-NC
Servo drive
Servo drive
Fig. 8-3
In this configuration, the MMC is connected to the two FM-NCs alternately. In this case, the assignment is always 1:1, i.e. the existing operating tree remains unchanged. The FM-NC can be operated and monitored after the link has been made. As an option, a programming device can also be connected to the MPI link. The maximum permissible number of bus nodes (16) must not, however, be exceeded.
1/P3/8-270
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
8.3
Interface structure
General
The PLC user interface (modified PLC/NCK interface specially for user) for two FM-NCs is identical to that for one FM-NC in every respect except for data quantity. Mapping in interface data blocks is required due to the large number of signals involved. These are global data blocks from the viewpoint of the PLC program. The basic program generates these DBs during system start-up using NC machine data that are transferred by the NCK to the basic PLC program in the start-up routine (number of channels, axes, etc.). Signals and data can be distributed and assigned by means of unambiguous segmentation of the PLC/NCK interface and the associated assignment between data blocks and FM-NCs in the basic PLC program.
8.3.1
PLC/NCK interface
Fundamental principle
The user interface is structured such that it is ideally suited for the purpose of distributing signals for several FM-NC modules. A separate user interface is provided for each FM-NC with the result that each FM-NC has a fixed, block-based assignment. In order to ensure that two function modules connected to a PLC can function and interact properly, two interface signal blocks, two mode group blocks and two channel data blocks must be provided so that signals can be assigned correctly.
Table 8-1 Suggested structure for PLC/NCK interface structure Signals NC Mode group CHANNEL AXIS 1 AXIS 2 AXIS 3 AXIS 4 AXIS 5 1st FM-NC DB 10 DB 11 DB 21 DB 31 DB 32 DB 33 DB 34 DB 35 2nd FM-NC [DB user] DB 12 DB 22 DB 36 DB 37 DB 38 DB 39 DB 40
By applying a consistent NCK/PLC interface structure, it is possible to ensure an unambiguous assignment between data blocks and the relevant FM-NCs. As a result, the source and destination of the appropriate data for the exchange of basic program data between the PLC and the NCK are unique. The basic program is executed cyclically and coordinates the assignment of signals to the respective data blocks. This system guarantees that each FM-NC can be supplied cyclically with current data.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/8-271
10.00
Since two NCs are created in the system when two FM-NCs are interlinked, two NCK signal DBs are also required. Since the next block number of DB10 is already assigned elsewhere, the user must assign a free data block number when parameterizing FB1 in OB100. This data block can then be accessed by the basic program and used to store the signals of the second FM-NC. Each FM-NC consists of a mode group and a CHANNEL. Data blocks are assigned to these elements on the user interface. To be able to operate the axes of channels of two FM-NCs in one operating mode, the user program must supply the mode group interface DBs in parallel. It is not possible to combine the axes of two FM-NCs to form one mode group. The following overviews show the structures of the first PLC/NCK interface (1st FM-NC)
DB 10
DB 11
DB21
NC 1st FM-NC
Signals to NCK Signals from NCK
DB 19
MMC
Signals to MMC Signals from MMC
Axis/Spindle 1
Fig. 8-4
1/P3/8-272
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
DB (user) *
DB 12
DB22
NC 2nd FM-NC
Signals to NCK Signals from NCK
DB 40 Axis/spindle 5 DB 39 Axis/spindle 4 DB 38 Axis/Spindle 3 DB 37 Axis/Spindle 2 DB 36 Axis/Spindle 1 Signals to NCK Signals from NCK
Fig. 8-5
As the first diagram shows, the data block (DB19) containing the MMC signals is assigned to only one FM-NC. Although the MMC can be switched over between the two FM-NCs, allowing both to be operated and monitored, it addresses only the data blocks of the first FM-NC (DB10, DB11, DB21). This special feature must be noted with respect to signal exchange between PLC/mode group, PLC/NC channel and PLC/axes, spindle, drives. It is not possible at present to assign MMC signals to the second data area (2nd FM-NC).
8.3.2
PLC/MMC interface
The system configuration to date provided for one FM-NC to be coupled with the PLC. The MMC is therefore always assigned to one specific FM-NC and linked to it via the PLC. To allow two FM-NC modules to be coupled with one PLC, it was necessary to depart from the old basic concept. While the MMC can be switched over to the second FM-NC, it is permanently assigned to the first FM-NC in the system, i.e. it addresses only the interface DBs of the first NC (see also previous topic).
8.3.3
PLC/MCP/HHU interface
General
The PLC CPU registers the function modules with an MPI connection during start-up and assigns default MPI addresses to them. These are subsequently sent to the relevant modules via the P bus. When two FM-NC modules are installed, the PLC also assigns an MPI address to the second module so that it can be addressed in the system by the PLC, MMC and MCP. The diagram shows default bus addresses and the new address of the second FM-NC.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/8-273
10.00
HHU
MCP
Operator panel
15
6
PLC
1
1st FM-NC
NCK
P bus
2nd FM-NC
NCK
MPI
ASCPU
OPSY
PG
2
K bus
Fig. 8-6
Table 8-2
Permissible bus address for FM-NC Node Perm. setting range MMC 100103: 115 115 PLC addr+1 PLC addr+2 015 Permanent Standard 1 2 3 4 6 0
Operator panel PLC 1st FM-NC 2nd FM-NC MCP/keyboard int. PG/PC
As with MMC to PLC signals, FC19 uses only the interface data blocks of the first FM-NC. The user program must ensure correct distribution of signals to the second FM-NC in accordance with the overall system application.
1/P3/8-274
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 8.4
PLC Basic Program (P3) Function of the basic program for two FM-NCs
8.4
General
Cyclic operation
The cyclical exchange of data is performed by the basic program at the start of the PLC cycle (OB1). Each FM-NC has its own logical address and the basic PLC program ensures that data are distributed correctly among the relevant FM-NCs on the basis of unambiguous interface segmentation. Data is exchanged between the FM modules and the PLC in every cycle.
MMC soft key function NCK reset is effective only in the FM-NC that is currently linked to the MMC in control systems with more than one FM-NC. The function is activated by an MMC key. Since the MMC can only operate and monitor one FM-NC at a time, the effect of the Reset command is restricted to only one FM-NC. The other FM-NC continues to operate cyclically, unaffected by the Reset on the other module.
A common feature of control and status signals is that they are all bit arrays. From the PLC viewpoint, these are updated at the beginning of OB1. Since both modules operate in mutual independence, they both receive cyclically updated values from the PLC.
Response to NC failure
General: During cyclical operation, the PLC continuously monitors the NC availability by querying the sign-of-life character. If one of the FM-NCs fails to respond, then the corresponding NCK/PLC interface is neutralized and the relevant NCK-CPU Ready signal in the area for signals from NC (DB 10.DBX 104.7 and/or DB 101).DBX 104.7) is reset. Furthermore, the signals exchanged between the NCK and PLC are set to their initial state (for a detailed description see topic Response in case of a failure of the NC). The PLC itself remains active so that it can continue to control machine functions. The users programming engineer must evaluate the NCK-CPU Ready signal since the control system will be disabled and thus NC block processing interrupted if the signal has been set to zero as a result of a PLC or FM-NC failure.
1)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/8-275
PLC Basic Program (P3) 8.5 Special features of blocks when using two FM-NCs
10.00
8.5
8.5.1
FB1: RUN_UP
A call example for the FB 1 in OB 100 is given below. The purpose of this example is to explain the new parameters required for coupling of a second FM-NC.
ORGANIZATION_BLOCK OB 100 TITLE = Complete Restart VERSION : 3.0 VAR_TEMP OB100_EV_CLASS OB100_STRTUP OB100_PRIORITY OB100_OB_NUMBR OB100_RESERVED_1 OB100_RESERVED_2 OB100_STOP OB100_STRT_INFO OB100_DATE_TIME OB100_RESERVED_3 OB100_RESERVED_4 END_VAR BEGIN Call FB 1, DB 7( MCPNum MCP1In MCP1Out MCP1StatRec MCP1Timeout NCCyclTimeout NCRunupTimeout NCLaddr1 NCLaddr2 NCKSigDB2 UserVersion UserDate UserTime //USER program END_ORGANIZATION_BLOCK //First Statement in OB 100 :=1, :=P#E118.0, :=P#A120.0, :=P#A108.0, :=S5T#700MS, :=S5T#200MS, :=S5T#50S, :=320, //I/O address of 1st FM-NC (default) :=336, //I/O address of 2nd FM-NC (default) :=102, //DB no. of NCKSignalDB of 2nd FM-NC :=0, //V. NO of user program :=0, //V. date of user program :=0); //V. time of user program : BYTE ; : BYTE ; : BYTE ; : BYTE ; : BYTE ; : BYTE ; ; WORD ; : DWORD ; : DATE_AND_TIME ; : WORD; : WORD;
1/P3/8-276
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 8.5
PLC Basic Program (P3) Special features of blocks when using two FM-NCs
The following table shows all formal parameters of the RUN_UP function for FM-NC.
Type I I Type Int Value range Notes MCPNum MCP1In MCP2In 0 to 2 Number of active MCPs 0: No MCP installed Pointer I0.0 to I120.0 or M0.0 to M248.0 or DBn.DBX0.0 to DBXm.0 Start address for input signals of relevant machine control panel MCP1Out MCP2Out I Pointer Q0.0 to Q120.0 or M0.0 to M248.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Start address for output signals of relevant machine control panel *1 MCP1StatRecMCP2 StatRec I Pointer
Start address for status double word for receiving from machine control panel: DW#16#00040000:Time monitoring Timeout, otherwise 0 control panel
I I
S5time Int
Recommendation: 700 ms Cyclic sign-of-life monitoring for machine Handheld unit interface: 0 No HHU 1 HHU on MPI
BHGIn
Pointer
I0.0 to I124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0 Q0.0 to Q124.0, M0.0 to M252.0 or DBn.DBX0.0 to DBXm.0
Start address for PLC receive data from handheld unit Start address PLC for send data to handheld unit
BHGOut
Pointer
BHGStatRec
Pointer
Start address for status double word for receiving from handheld unit: DW#16#00040000:T imeout, otherwise 0
I I I I I I I
Recommendation: 700 ms Cyclical sign-of-life monitoring for handheld unit 320 (default) 336 (default) I/O address of 1st FM-NC I/O address of 2nd FM-NC
NCKSigDB2
DB
DB 81 to DB 127
NCCyclTimeout
Recommendation: 200 ms Cyclical sign-of-life monitoring NCK Recommendation: 5 min 0 NCK power-up monitoring
MMCToIF
Bool
Transfer of MMC signals to interface (operating modes, program control, etc.) True: Active True: Handwheel selection via MMC False: Handwheel selection by user prog. 0..25 Number of user areas for messages (DB 2) User version User date User time
I I I I I
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/8-277
PLC Basic Program (P3) 8.5 Special features of blocks when using two FM-NCs
10.00
8.5.2
General
Call example
The following table shows all formal parameters of the GET function
Type I I Type Bool Int Value range Notes Req Job start with positive signal edge Number of variables to be read NumVar 1 to 8 (corresponds to use of Addr1 to Addr8) [DBName].[VarName] Addr1 to Addr8 Unit1 to Unit8 I I I Any Variable identifiers from NC Var selector Area address, optional for variable addressing Byte Column1 Column8 Line1 Line8
to
Word
Column address, optional for variable addressing Line address, optional for variable addressing 0.1 = 1st FM-NC 2 = 2nd FM-NC
to
Word
Int
0, 1, 2
O O I
Bool Bool
Job has been executed successfully. Data are available See error identifiers
State
Word Any
RD1 to RD
I/O
1/P3/8-278
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 8.5
PLC Basic Program (P3) Special features of blocks when using two FM-NCs
8.5.3
General
The user can employ functions FCs 15, 16 and 18 to start various positioning tasks. When the function is called, a parameter must be supplied to convey the axis number to be processed. This parameter combined with the segmentation of the PLC/NCK interface ensures that the relevant axis in the correct FM-NC receives its signals and can start the positioning task. For example, if parameter AxisNo := 6 when the function is called, the first axis of the second FM-NC is addressed and DB36 contains the corresponding signals of the axis to be processed.
Call example
CALL FC 15 ( Start AxisNo IC Inch HWheelOv Pos FRate InPos Activ StartErr Error := TRUE, := 7, := #inkr, := FALSE, := FALSE, := MD 160, := MD 164, := Q 36.0, := Q 36.1, := Q 36.2, := Q 36.3);
Signal Type I I I I I I Type Bool Value range Notes Start AxisNo IC Byte Bool Bool Bool 15 610 Axis no. of 1st FM-NC Axis no. of 2nd FM-NC 0 = absolute 1 = incremental 0 = mm 1 = inch Inch HWheelOv Pos 1 = Handwheel override Position of Linear axis: mm Rotary axis: Grad Real 0.1469368 E 38 to 0.1701412 E +39 0.1469368 E 38 to 0.1701412 E +39 FRate I Real Feedrate of Linear axis: mm/min Rotary axis: deg./min 1 = in position 1 = active InPos Activ O O O O Bool Bool Bool Bool StartErr Error Axis cannot be started Traversing error
The following table shows all formal parameters of the POS_AX function
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/8-279
PLC Basic Program (P3) 8.5 Special features of blocks when using two FM-NCs
10.00
8.5.4
FC 9: ASUB
General
The FC ASUB can be used to trigger any functions in the NC. In operation with two FM-NC modules, the channel to be processed is entered by means of parameter ChanNo. Every FM-NC has its own channel and ChanNo is therefore used to address the FM-NC to be processed.
Call example
Signal Type I I I Type Bool Int Int Value range Notes Start ChanNo IntNo Activ 1, 2 1 = 1st FM-NC 2 = 2nd FM-NC Interrupt no. 1 = active 18 O O O O Bool Bool Bool Bool Done Error 1 = ASUB terminated StartErr Ref 1 = Interrupt number not assigned 1 word per FC 9 (for internal use) I/O Word Global variable (MW, DBW,..)
The following table shows all formal parameters of the ASUB function
1/P3/8-280
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
8.6
Error message with one FM-NC 400250 Sign-of-life monitoring NCK 400251 NCK has not powered up 400252 Sign-of-life monitoring
Error message of second FM-NC 400255 Sign-of-life monitoring NCK2 400256 NCK2 has not powered up 400257 Sign-of-life monitoring NCK2
8.7
Memory space
When two FM-NC modules are connected, the main memory increases (depending on number of configured axes) by only a maximum of 1.4KB. This extra space is used by data blocks required to manage data for the second FM-NC i.e. the NC, mode group, CHANNEL and AXIS signal data blocks of the user interface. Looking at the total basic program, the main memory increases by a maximum of 10% of the total main memory requirement when two FM-NC modules are connected to one PLC with 10 configured axes.
Content of FM-NC-specific DB for data management DB10, DB11, DB21, DB31DB35 DB10, DB NCKSigDB2 DB11, DB12 DB21, DB22 DB31DB35, DB36DB40
Increase in main memory required by specific FM-NC data blocks for data management Total: 1362 bytes
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/8-281
10.00
Notes
1/P3/8-282
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
9.1
Machine data
9.1.1
10100 PLC_CYCLIC_TIMEOUT MD number Cyclic PLC monitoring time Default setting: 0.1 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 / 7 Unit: s Data type: DOUBLE Applies from SW SW 1 Significance: Cyclic PLC monitoring time This machine data defines the maximum monitoring time period after which the PLC must have incremented its sign of life. The graduation scale is implemented internally in interpolation cycles.
14504 MAXNUM_USER_DATA_INT MD number Number of user data (INT) Default setting: 0 Minimum input limit: 0 Maximum input limit: 256 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.1 Significance: Maximum quantity of user machine data (displayed in integer format) Related to .... MD 14506, 14508
14506 MAXNUM_USER_DATA_HEX MD number Number of user data (HEX) Default setting: 0 Minimum input limit: 0 Maximum input limit: 256 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.1 Significance: Maximum quantity of user machine data (displayed in HEX format) Related to .... MD 14504, 14508
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/9-283
10.00
14508 MAXNUM_USER_DATA_FLOAT MD number Number of user data (FLOAT) Default setting: 0 Minimum input limit: 0 Maximum input limit: 32 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 4.1 Significance: Maximum quantity of user machine data in IEEE format (displayed in floating point format) Related to .... MD 14504, 14506
14510 USER_DATA_INT[n] MD number User data (INT) Default setting: 0 Minimum input limit: 32768 Maximum input limit: 32767 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: 1) Applies from SW 4.1 Significance: User machine data (displayed in integer format) Related to .... MD 14512, 14514
14512 USER_DATA_HEX[n] MD number User data (HEX) Default setting: 0 Minimum input limit: 0 Maximum input limit: 0x0FF Changes effective after POWER ON Protection level: 2/7 Unit: Data type: 1) Applies from SW 4.1 Significance: User machine data (display in HEX format) 1) Related to .... MD 14510, 14514
14514 USER_DATA_FLOAT[n] MD number User data (FLOAT) Default setting: 0 Minimum input limit: 3.40e38 Maximum input limit: 3.40e38 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: 2) Applies from SW 4.1 Significance: User machine data in IEEE format (floating point format) Related to .... MD 14510, 14512
1)
Machine data in integer/HEX format are treated like a DWORD in the NCK. The data is stored in the NCKPLC interface and can be read from DB20 by the PLC user while the PLC is powering up. 2) Machine data in floating point format are handled as FLOAT (8 byte IEEE) in the NCK. The data is stored in the NCK-PLC interface and can be read from DB 20 by the PLC user while the PLC is powering up.
1/P3/9-284
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
9.1.2
28150 MM_NUM_VDIVAR_ELEMENTS MD number Number of elements for writing PLC variables Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 4.1 Significance: This MD defines the number of elements that are available to the user for programming PLC variables ($A_OUT_DBx). This number also applies during block searches, but not to synchronized actions. The memory space required by each element is approximately 24 bytes. One element is required to perform each write operation for highspeed sequential writing of PLC variables.
9.2
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/P3/9-285
10.00
Notes
1/P3/9-286
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.2 2.2.1 2.2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4 2.4.1 2.4.2 2.5 2.6 2.6.1 2.6.2 2.6.3 2.7 2.7.1 Referencing with incremental measurement systems . . . . . . . . . . . Phase 1: Travel to reference cam . . . . . . . . . . . . . . . . . . . . . . . . . . . . Phase 2: Synchronization with the zero mark . . . . . . . . . . . . . . . . . . Phase 3: Travel to reference point . . . . . . . . . . . . . . . . . . . . . . . . . . . Actual value buffer after power off for incremental encoders . . . . . Measuring systems with distance-coded reference marks . . . . . . . Phase 1: Crossing of two reference markers with Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Phase 2: Traveling to a fixed destination point . . . . . . . . . . . . . . . . . Referencing with absolute value encoders . . . . . . . . . . . . . . . . . . . . Adjustment by entering the zero offset in the machine data . . . . . Manual adjustment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Automatic calibration with probe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Calibration with BERO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Validate reference points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Additional information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Automatic detection of encoder serial numbers . . . . . . . . . . . . . . . . Referencing by means of actual value adjustment . . . . . . . . . . . . . Actual value compensation to referencing measurement system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Actual value adjustment to the referenced measuring system (only for 611 D measuring systems) . . . . . . . . . . . . . . . . . . . . . . . . . . Referencing in follow-up mode (SW 6 and higher) . . . . . . . . . . . . . Referencing passive measuring systems (SW 5 and later) . . . . . . Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Supplementary conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Referencing with cam switch at the drive (SW 5 and later) . . . . . . Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/R1/1-3 1/R1/2-5 1/R1/2-8 1/R1/2-9 1/R1/2-11 1/R1/2-16 1/R1/2-18 1/R1/2-20 1/R1/2-21 1/R1/2-23 1/R1/2-25 1/R1/2-26 1/R1/2-27 1/R1/2-28 1/R1/2-29 1/R1/2-30 1/R1/2-31 1/R1/2-32 1/R1/2-33 1/R1/2-33 1/R1/2-34 1/R1/2-35 1/R1/2-37 1/R1/2-37 1/R1/2-37 1/R1/2-38 1/R1/2-39 1/R1/2-39
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/i
11.02 10.00
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 3.1.1 3.1.2 3.2 3.3 3.4 General supplementary conditions for absolute encoders . . . . . . . Scope of application in 840D/810D . . . . . . . . . . . . . . . . . . . . . . . . . . Scope of application in FM-NC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Special features for large traversing ranges . . . . . . . . . . . . . . . . . . . Special features of SINUMERIK 840Di . . . . . . . . . . . . . . . . . . . . . . .
1/R1/3-41 1/R1/3-41 1/R1/3-41 1/R1/3-41 1/R1/3-42 1/R1/3-43 1/R1/3-45 1/R1/4-47 1/R1/4-47 1/R1/4-48 1/R1/5-65 1/R1/5-65 1/R1/5-65 1/R1/5-66 1/R1/5-66 1/R1/5-66 1/R1/5-67 1/R1/7-69 1/R1/7-69 1/R1/7-69 1/R1/7-70 1/R1/7-71 J
Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . .
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.1.1 5.1.2 5.2 5.2.1 5.2.2 Channel-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals to channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals to axis/spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from axis/spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 7
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/R1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
Machine zero
The machine zero of a machine tool is defined as the point at which the actual position of the machine axes is zero.
The machine zero is communicated axis-specifically to the NC control via the connected position measurement systems and the reference point approach (or referencing) function.
S Incremental rotary measuring system with at least one zero mark S Incremental linear measurement system S Rotary measuring system with distance-coded reference markers (supplied
by Heidenhain)
S Referencing of the passive measuring systems with the option for automatic
zero mark search outside the REF mode. Advantage: Reduction in processing time through omission of a referencing process. This function is available only for passive distance-coded measuring systems that have not been selected via the PLC interface signals. The function requires two measuring systems per axis. Please refer to Section 2.6 for a detailed description.
For distance-coded measuring systems (MD 34200: ENC_REFP_MODE = 3) in conjunction with rotary axes with bit 1 enabled 1 in MD 30455: MISC_FUNCTION_MASK, the reference position is determined between MD 30340: MODULO_RANGE_START and MD 30330: MODULORANGE.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/1-3
11.02 10.00
With the setting MD 34200: ENC_REFP_MODE = 8 the reference point can be calculated more reliably thanks to redundant evaluation of four reference markers.
1/R1/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Detailed Description
Why reference?
The control must be synchronized with the position measurement system of each machine axis so that the control can detect the exact machine zero when it is switched on. This process is known as referencing.
S Incremental rotary measuring system with at least one zero mark S Incremental linear measurement system S Linear measurement system with distance-coded reference marks (supplied
by Heidenhain)
S Referencing with incremental measurement systems S Referencing with measuring systems with distance-coded reference
markers through traversal of 2 zero marks
S Referencing with BERO and single signal edge detection S Referencing with BERO and double signal edge detection (only for
FM*NC)
S Referencing where BERO replaces the reference cam S Referencing where the measurement system is calibrated to an encoder
that has already been referenced (SW 3.2 and lower, not NCU570)
Cams
S Selection of the direction of travel when approaching the zero mark S Selection of the zero mark, where required.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-5
10.00
The reference point approach is performed with the REF machine function activated (IS active machine function REF interface signal (DB11, ... DBX5.2)). The REF machine function can be selected in the JOG and MDA modes (REF machine function interface signal (DB11, ... DBX1.2)).
Axis-specific referencing
Axis-specific referencing is started separately for each machine axis with the plus/minus travel keys interface signal (DB31, ... DBX4.7 and 4.6). Up to 8 axes on the SINUMERIK 840D and up to 5 axes on the SINUMERIK FMNC/810D can be referenced simultaneously. If the machine axes are to be referenced in a particular sequence, the following options are available:
S The operator observes the correct sequence on start-up S The PLC user program checks the sequence on start-up or defines the
sequence itself
Channel-specific referencing
Channel-specific referencing is started with the activate referencing interface signal (DB21, ... DBX1.0). The control acknowledges a successful start with the referencing active interface signal (DB21, ... DBX33.0). Each machine axis assigned to the channel can be referenced with channel-specific referencing (this is achieved internally on the control by simulating the plus/minus travel keys). The axis-specific MD 34110: REFP_CYCLE_NR (Axis sequence for channel-specific Referencing) can be used to define the sequence in When all the axes entered in REFP_CYCLE_NR have reached their end points, the all axes referenced interface signal (DB21, ... DBX36.2) is enabled.
A machine axis sometimes loses the reference point during execution of a parts program and needs to be referenced in the parts program.
Examples of cases when a machine axis could lose the reference point are:
S The axis was parked and is to be reprogrammed S A rotary axis has exceeded the encoder limit frequency and lost the
reference point
1/R1/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Note Before using the referencing with parts program function (G74), please read: References: /PA1/, Programming Guide
S IS Reset (DB21, ... DBX35.7 / DB11, ... DBX0.7) aborts referencing. All
axes which have not reached their reference point at this time are not referenced. The referencing active interface signal is reset and alarm 20005 is output.
S The following limit monitors are not active for referenced machine axes:
Working area limits Software limit switches Protection zones
S The reference point approach can be started only with the direction key for
the direction stored in MD 34010: REFP_CAM_DIR_IS_MINUS (exception: The approach can be started with both direction keys in the case of a distance-coded measurement system).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-7
Reference Point Approach (R1) 2.1 Referencing with incremental measurement systems
10.00
2.1
Referencing sequence
The referencing sequence for incremental measurement systems can be subdivided into three phases: 1. Phase : Travel to reference cam 2. Phase : Synchronization with the zero mark 3. Phase : Travel to reference point
Ref. point approach delay IS (DB31, ... DBX12.7) Travel command plus IS (DB31, ... DBX64.7) Travel command minus IS (DB31, ... DBX64.6) Plus/minus travel keys IS (DB31, ... DBX4.7 and 4.6) Referenced/synchronized IS (DB31, ... DBX60.4 and 60.5) Zero mark measurement system Velocity MD 34020: REFP_VELO_SEARCH_CAM Reference point approach velocity MD 34070: REFP_VELO_POS Reference point start velocity MD 34040: REFP_VELO_SEARCH_MARKER Reference point creep velocity T Phase 1 Fig. 2-1 Phase 2 Phase 3
1/R1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
2.1.1
Ref. point approach delay IS (DB31, ... DBX12.7) Travel command plus IS (DB31, ... DBX64.7) Travel command minus IS (DB31, ... DBX64.6) Plus/minus travel keys IS (DB31, ... DBX4.7 and 4.6) Referenced/synchronized IS (DB31, ... DBX60.4 and 60.5) Zero mark measurement system
Velocity
MD 34020: REFP_VELO_SEARCH_CAM Reference point approach velocity MD 34040: REFP_VELO_SEARCH_MARKER Reference point creep velocity MD 34070: REFP_VELO_POS Reference point start velocity
Start of phase 1
Phase 1 commences with the Plus/minus travel keys (DB31 to 48, DBX4.7 and 4.6) (only applies to axis-specific referencing). MD 11300: JOG_INC_MODE_LEVELTRIGGRD (INC/REF in jog/continuous mode) defines whether the plus/minus travel key must remain depressed for phases 1 to 3, or whether a single keystroke is sufficient to terminate phases 1 to 3. IS Referenced/synchronized 1 or 2 (DB31, ... DBX60.4 and 60.5) and IS All reference point axes referenced (DB 2130, DBX36.2) are reset. Phase 1 can commence from three situations: 1. The machine axis is positioned before the reference cam 2. The machine axis is positioned on the reference cam 3. Machine axis has no reference cam (e.g. rotary axis).
The machine axis accelerates to the velocity defined in MD 34020: REFP_VELO_SEARCH_CAM (reference point approach velocity before the reference cam) in the direction specified in MD 34010: REFP_CAM_DIR_IS_MINUS (approach reference point in minus direction).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-9
Reference Point Approach (R1) 2.1 Referencing with incremental measurement systems
10.00
The Reference point approach delay interface signal (DB31, ... DBX12.7) is used to inform the control when the reference cam has been reached, at which point the machine axis is braked to a stop. During this time, it travels through a further distance calculated by the formula:
(velocity from MD: REFP_VELO_SEARCH_MARKER) 2
Min. distance =
2 * acceleration from MD: MAX_AX_ACCEL
This min. distance is required in order to ensure that the machine axis exits the reference cam in phase 2 at the exact reference point creep velocity. Phase 1 is complete and the process continues with phase 2.
MD 34030: REFP_MAX_CAM_DIST
Velocity
Path
Zero mark
Fig. 2-3
The machine axis remains at the starting position. Phase 1 is complete and the process continues with phase 2.
Machine axes without reference point cams are identified by entering a 0 in MD 34000: REFP_CAM_IS_ACTIVE (axis with reference cam). This is the case for machine axes with only one zero mark across their entire traversing range or rotary axes with only one zero mark per revolution. These machine axes remain at their starting position. Phase 1 is complete and the process continues with phase 2.
1/R1/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Properties phase 1
S The feedrate override (feedrate switch) is active. S The feed stop (channel-specific and axis-specific) is active. S The machine axis can be stopped and restarted with NC stop/NC start. S If the machine axis travels a maximum distance (defined in MD 34030:
REFP_MAX_CAM_DIST from the starting position in the direction of the reference cam without reaching the reference cam (Reference point approach delay interface signal (DB31, ... DBX12.7) is reset) and Alarm 20000 Reference cam not reached is output.
2.1.2
Ref. point approach delay IS (DB31, ... DBX12.7) Travel command plus IS (DB31, ... DBX64.7) Travel command minus IS (DB31, ... DBX64.6) Plus/minus travel keys IS (DB31, ... DBX4.7 and 4.6) Referenced/synchronized IS (DB31, ... DBX60.4 and 60.5) Zero mark measurement system Velocity MD 34020: REFP_VELO_SEARCH_CAM Reference point approach velocity MD 34070: REFP_VELO_POS Reference point start velocity MD 34040: REFP_VELO_SEARCH_MARKER Reference point creep velocity T Phase 2 Fig. 2-4 Phase 2: Synchronization with the zero mark
Start of phase 2
Phase 2 is started automatically if phase 1 has been successfully completed (no alarm) and the machine axis is positioned on the reference cam. If the machine axis is not positioned on the reference cam (IS Reference point approach delay (DB31, ... DBX12.7) is reset) and Alarm 20001 No cam signal present issued. Alarm 20001 can occur if the reference cam is too short and the machine axis travels over it when decelerating in phase 1.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-11
Reference Point Approach (R1) 2.1 Referencing with incremental measurement systems
10.00
Types of synchronization
The MD 34050: REFP_SEARCH_MARKER_REVERSE can be used to define the direction of the search for the zero mark:
S Synchronization with falling reference cam signal edge S Synchronization with rising reference cam signal edge
If the actual speed has not reached the setpoint for phase 2 when a cam is approached ("the tolerance from MD 35150: SPIND_DES_VELO_TOL), phase 1 is started again. This can occur if the axis was precisely over the cam at the start.
The machine axis accelerates to the velocity defined in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity) specified in MD 34010: REFP_CAM_DIR_IS_MINUS (approach reference point in minus direction). If the reference cam is existed (IS Reference point approach delay (DB31, ... DBX12.7) is reset), the control synchronizes with the first zero mark. The machine axis continues to traverse at constant speed. Phase 2 is considered completed and the movement is continued with phase 3.
Velocity
MD 34060: REFP_MAX_MARKER_DIST (Maximum distance to reference cam)
MD 34020: REFP_VELO_SEARCH_CAM (Reference point approach velocity) MD 3404: REFP_VELO_SEARCH_MARKER (Reference point creep velocity)
Path
Zero mark
Fig. 2-5
The machine axis accelerates to the velocity defined in MD 34020: REFP_VELO_SEARCH_CAM (reference point approach velocity) in the opposite direction to that specified in MD 34010: REFP_CAM_DIR_IS_MINUS (approach reference point in minus direction). When the axis leaves the reference cam (Reference point approach delay interface signal is reset), the machine axis decelerates to a halt and accelerates in the opposite direction towards the reference cam at the velocity defined in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity). When the reference cam is reached (Reference point approach delay interface signal is enabled), the control is synchronized with the first zero mark. The machine axis continues traveling at a constant velocity.
1/R1/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
If MD 34050: REFP_SEARCH_MARKER_REVERSE is enabled, the cam is also approached at the velocity defined in REFP_VELO_SEARCH_CAM. This setting is useful for longer cams. Phase 2 is complete and the process continues with phase 3.
Velocity
MD: 34060 REFP_MAX_MARKER_DIST (Maximum distance to reference cam)
MD 34020: REFP_VELO_SEARCH_CAM (Reference point approach velocity) MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity)
Path
Zero mark
Fig. 2-6
If (depending on the type of synchronization rising or falling reference cam edge) the reference cam signal occurs, the zero mark search is not started immediately; rather, after the distance in MD 34092: REFP_CAM_SHIFT. The reproducibility of the zero mark search can thus be ensured even in the case of temperature-dependent expansion of the reference cam through defined selection of a zero mark. As the reference cam offset is calculated by the control in the interpolation cycle, the actual reference cam offset is at least REFP_CAM_SHIFT and at most REFP_CAM_SHIFT+ (MD 34040: REFP_VELO_SEARCH_MARKER*interpolation cycle) The reference cam offset acts in the direction of zero mark search. The reference cam offset is active only if the cam MD 34000: REFP_CAM_IS_ACTIVE=1 is present.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-13
Reference Point Approach (R1) 2.1 Referencing with incremental measurement systems
10.00
Thermal expansion 1
2
Cam signal
Zero mark
REFP_CAM_SHIFT
1+2
Fig. 2-7
Where the position measurement system has several zero marks repeated in cycles (such as in an incremental rotary indirect position measurement system connected to the motor), the reference cam must be aligned precisely. If the reference cam is not precisely aligned, an incorrect zero mark may be evaluated, or alarm 20002 Zero mark missing output. The reference cam is reported from the PLC to the NCK by the Reference point approach delay interface signal. The following factors influence the response time of the control (NCK) when detecting the reference cam:
S Switching accuracy of the reference cam switch S Delay of the reference cam switch (NC contact) S Delay at the PLC input S PLC cycle time S Cycle time for updating the NCK/PLC interface S Interpolation cycle S Position control cycle.
Practice has shown that the signal edge of the reference cam, which is required for synchronization, is aligned between two zero marks. MD 34094: REFP_CAM_MARKER_DIST (SW 6.3) returns the distance between the zero mark and the cam signal. The readonly value can be used as a guide for setting the electronic reference cam offset.
1/R1/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Warning If the reference cam is not aligned precisely, an incorrect zero mark can be evaluated. In this case, the control assumes an incorrect machine origin and moves the axes to incorrect positions. Software limit switches, protected areas and working area limitations act on incorrect positions and are therefore incapable of protecting the machine. The difference is equivalent to "one encoder revolution in each case.
Properties phase 2
S The feed override (of the feed override switch) is not active.
The setting is defined as 100%, at 0% the procedure is canceled.
S The feed stop (channel-specific and axis-specific) is active, the axis stops
and alarm 20005 is output.
S The machine axis cannot be stopped and restarted with NC stop/NC start. S If, after leaving the reference cam (IS: Reference point approach delay is
reset) the machine axis travels a path defined in MD 34060: REFP_MAX_MARKER_DIST (maximum distance to the reference mark) without detecting the zero mark, the axis stops and alarm 20002 Zero mark missing is output.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-15
Reference Point Approach (R1) 2.1 Referencing with incremental measurement systems
10.00
2.1.3
Ref. point approach delay IS (DB31, ... DBX12.7) Travel command plus IS (DB31, ... DBX64.7) Travel command minus IS (DB31, ... DBX64.6) Plus/minus travel keys IS (DB31, ... DBX4.7 and 4.6) Referenced/synchronized IS (DB31, ... DBX60.4 and 60.5) Zero mark measurement system Velocity MD 34020: REFP_VELO_SEARCH_CAM Reference point approach velocity MD 34070: REFP_VELO_POS Reference point start velocity MD 34040: REFP_VELO_SEARCH_MARKER Reference point creep velocity T Phase 3 Fig. 2-8 Phase 3: Travel to reference point
Start of phase 3
Phase 3 is automatically started when phase 2 has been successfully completed (without alarm). Since the machine axis travels at the reference creep velocity at the end of phase 2, the transition to phase 3 is performed on the fly. Depending on the leading sign of the distance, the machine axis accelerates to the velocity defined in MD 34070: REFP_VELO_POS (reference point start velocity) and travels a distance calculated from the addition of MD 34080: REFP_MOVE_DIST (reference point distance/destination for distance-coded system) and MD 34090: REFP_MOVE_DIST_CORR (reference point offset). This distance precisely matches the distance between the zero mark detected in phase 2 and the reference point.
1/R1/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Velocity
MD 34020: REFP_VELO_SEARCH_CAM
Zero mark
Fig. 2-9
If the machine axis has arrived at the referenced point (the axis is stationary), the reference point value selected by the Reference point value 1 to 4 (DB31, ... DBX2.4 2.7) interface signal from MD 34100: REFP_SET_POS (reference value) is accepted by the control as the new reference position (the value which is selected at the time of the Rising signal edge). The machine axis is now referenced and the Referenced/synchronized 1 or 2 interface signal (DB31, ... DBX60.4 or 60.5, depending on which position measurement system is active) is enabled.
Properties phase 3
S The feedrate override (feedrate switch) is active. S The feed stop (channel-specific and axis-specific) is active. S The machine axis can be stopped and restarted with NC stop/NC start.
If the total distance from MD 34080: REFP_MOVE_DIST (reference point distance/destination for distance-coded system) and MD 34090: Reference point_MOVE_DIST_CORR (reference point offset point) smaller than the braking distance of the machine axis from the reference point creep velocity to stop, the reference point is approached from the opposite direction.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-17
Reference Point Approach (R1) 2.1 Referencing with incremental measurement systems
10.00
MD 34020: REFP_VELO_SEARCH_CAM (Reference point appr. velocity) MD 34040: REFP_VELO_SEARCH_MARKER (Reference point creep velocity)
Path
Zero mark
Fig. 2-10
2.1.4
Purpose
Up to now, axes with incremental encoders had to be referenced again after each POWER ON or each time the control was parked. With SW 4.1 and higher, it is possible to continue to operate a conventional machine tool with the original position information without having to explicitly reference it again after POWER OFF/POWER ON.
Conditions
The condition for proper continued operation of the referenced axes after POWER OFF/POWER ON is that the axes in question have not been moved in the meantime. Appropriate holding brakes can be used to achieve this.
Note
S The functionality is permanently linked to the exact stop fine axis signal.
Axes or spindles which do not support this signal cannot use this functionality.
1/R1/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Automatic referencing
Preconditions for automatic referencing after POWER OFF/ON: 1. The encoder used to control the axis is (mechanically) calibrated. 2. Automatic referencing has been entered in MD 34210 ENC_REFP_STATE=1 or 2. 3. The axis has been referenced with the encoder. Here, the internal value in MD 34210: ENC_REFP_STATE is changed from 1 to 2. 4. After POWER OFF/POWER ON MD 34210: ENC_REFP_STATE=2. This means that the axis was referenced before POWER OFF/POWER ON and was stationary, i.e. a valid old position is available internally on the control.
Note It is the responsibility of the user to ensure that there is no non-calibrated motion when the encoder is deactivated.
When the encoder is switched on, the NC (controller, interpolator and block processing) is synchronized with the old absolute value stored. Axis motion is disabled internally until synchronization is complete, spindles can continue to operate.
Powerup response
S The axis has not been referenced and/or is not at a standstill (MD 34210:
ENC_REFP_STATE=1) An explicit reference point approach is necessary. The axis is initialized with start position 0. The axis is referenced status does not appear. The MD 34210: ENC_REFP_STATE=2 is set with the next reference point approach internally in the control (for standstill/exact stop). During traversing (no standstill/exact stop), MD 34210: ENC_REFP_STATE returns briefly to 1.
Note Spindles that do not supply exact stop signals cannot reach the status MD 34210: ENC_REFP_STATE=2, i.e. the stored actual value is not effective here.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-19
Reference Point Approach (R1) 2.2 Measuring systems with distance-coded reference marks
11.02 10.00
2.2
Basic concept
In the case of measurement systems with distance-coded reference marks, it is not necessary to evaluate a reference cam or approach a defined reference point in order to reference the machine axis. Measurement systems of this type consist of a line grid and a reference mark track running parallel to this. The distance between two consecutive reference marks is defined variably, so that the absolute position of the machine axis can be determined from the distance. Requirement: MD 34200: ENC_REFP_MODE = 3 or MD 34200: ENC_REFP_MODE = 8 (see Note below) In the case of linear measuring systems with distance-coded reference markers (Heidenhain), the absolute position value is available only after a maximum distance of 20 mm when MD 34200: ENC_REFP_MODE = 3 (i.e. once two reference markers have been traversed) regardless of whether the machine axis travels in the positive or minus direction. For rotary measuring systems with distance-coded reference marks, the absolute position value is available after a distance of only max. 20 o (i.e. when two reference marks have been crossed).
Note The effect of MD 34200: ENC_REFP_MODE = 8 is equivalent to MD 34200: ENC_REFP_MODE = 3, but 4 reference markers instead of 2 are evaluated. As a result, the position value is available only after a maximum distance of 40 mm. For further details, see the end of this subsection.
Referencing sequence
The referencing sequence can be subdivided into 2 phases: Phase 1: Crossing of two reference markers with synchronization Phase 2: Traveling to a fixed destination point
1/R1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
Reference Point Approach (R1) Measuring systems with distance-coded reference marks
Ref. point approach delay IS (DB31, ... DBX12.7) Travel command minus IS (DB31, ... DBX64.6) Plus/minus travel keys IS (DB31, ... DBX4.7 and 4.6) Referenced/synchronized IS (DB31, ... DBX60.4 and 60.5) Linear measurement system reference marks Velocity MD 34070: REFP_VELO_POS (reference point start velocity) MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity)
Phase 2
2.2.1
Start of phase 1
Phase 1 commences with the Plus/minus travel keys (DB31, ... DBX4.7 and 4.6) (only applies to axis-specific referencing). The MD 11300: JOG_INC_MODE_LEVELTRIGGRD (INC/REF in jog/continuous mode) defines whether the plus/minus travel key must remain depressed for phases 1 to 2, or whether a single keystroke of the travel key is sufficient to terminate phases 1 to 2. IS Referenced/synchronized 1 or 2 1 (DB31, ... DBX60.4 and 60.5) and IS All axes referenced (DB21, ... DBX36.2) are reset.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-21
Reference Point Approach (R1) 2.2 Measuring systems with distance-coded reference marks
10.00
Reference cam
The linear measurement system with distance-coded reference marks does not require a reference cam for referencing. However, it is necessary to install a reference cam before the end of the traversing range of a machine axis, in order to provide a safeguard in case two consecutive reference marks are not crossed during channel-specific referencing and referencing in the parts program (G74). The purpose of the reference cam is to select the opposite direction of travel to that specified in MD 34010: REFP_CAM_DIR_IS_MINUS (approach reference point in minus direction) when the machine is located on the reference cam at the start of phase 1 (independent of the traversing key plus/minus pressed). The axis must come to a standstill from the reference point cam. The result is to force the axis to travel off the cam, a safeguard required to prevent the machine axis from reaching the traversing range limit (hardware limit switch or EMERGENCY STOP) before it detects two reference marks. If the axis travels onto the cam before detecting the second zero mark, it reverses immediately and starts searching in the opposite direction.
The machine axis accelerates to the velocity defined in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity) in the direction of the travel key (plus or minus), crosses two reference marks (synchronization) and stops.
If the machine axis is not positioned on the reference cam, it accelerated to the velocity specified in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity) in the direction of the travel key (plus or minus), crosses two reference marks (synchronization) and stops (phase 2). When the machine axis is positioned on the reference cam, it accelerates to the velocity defined in MD: REFP_VELO_SEARCH_MARKER (reference point creep velocity) in the opposite direction to that defined in MD 34010: REFP_CAM_DIR_IS_MINUS (approach reference point in minus direction), regardless of whether the plus or minus travel key is depressed, crosses two reference marks (synchronization) and stops (phase 2). If the control detects that the distance between two reference marks exceeds 2 * MD 34300: ENC_REFP_MARKER_DIST (reference mark distance), and is therefore incorrect, the machine axis accelerates to half the velocity defined in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity) in the opposite direction to the depressed travel key (plus or minus) and crosses two reference marks. If the control detects that the distance between two reference marks exceeds 2 * MD 34300: ENC_REFP_MARKER_DIST (reference mark distance), the axis stops and alarm 20003 Error in measurement system is output. Phase 1 is complete and the process continues with phase 2. If the machine axis travels a distance defined in MD 34060: REFP_MAX_MARKER_DIST (maximum path to reference mark) from the starting position without crossing two reference marks, the axis stops and alarm 20004 Reference mark missing is output.
Properties phase 1
1/R1/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
Reference Point Approach (R1) Measuring systems with distance-coded reference marks
2.2.2
Start of phase 2
2 10.04 20.02
4 10.06 20.02 20
6 10.08 20.02 20
8 10.10 20.02 20
10
20
20
DIADUR graduated glass scale with distance-coded reference marks Dimensions in mm for 20mm graduation cycle Fig. 2-12 Linear graduated glass scale
Rotary system
The graduations shown in the top diagram must be interpreted as being on the circumference of a measuring disk with divisions in degrees instead of length measurements. Otherwise, the principle of measurement is the same as for linear measurement systems.
The absolute offset between the machine origin and the position of the first reference mark on the linear measurement system can be entered directly in (MD 34090: reference mark on the linear measurement system in MD 34090: REFP_MOVE_DIST_CORR (this can be problematic, as the offset is often difficult to measure), or the absolute offset can be calculated from the following formula with the machine axis at any position (the position should allow accurate measurement of the actual machine position in relation to the machine origin using a laser interferometer):
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-23
Reference Point Approach (R1) 2.2 Measuring systems with distance-coded reference marks
10.00
Linear measurement system noninverse to machine system: Absolute offset = actual machine position + actual position of linear measurement system
Linear measurement system inverse to machine system: Absolute offset = actual machine position actual position of linear measurement system
The actual position of the linear measurement system can be read on the NC screen under actual position when two consecutive reference marks have been crossed (synchronized). In this case, the MD: REFP_MOVE_DIST_CORR must contain the value zero.
Warning When the absolute offset has been calculated and the value entered in REFP_MOVE_DIST_CORR, the position measurement system must be referenced again.
Shortening phase 2
Depends on MD 34330: STOP_AT_ABS_MARKER (linear measurement system with no destination point). The following settings are possible:
The machine axis remains stationary. The machine axis is now referenced and the Referenced/synchronized 1 or 2 interface signal (DB31, ... DBX60.4 or 60.5, depending on which position measurement system is active) is enabled.
The machine axis accelerates to the velocity defined in MD 34070: REFP_VELO_POS (reference point start velocity) and approaches the destination point defined in MD 34100: REFP_SET_POS (reference point value). The machine axis is now referenced and the Referenced/synchronized 1 or 2 interface signal (depending on which position measurement system is active) is enabled.
Properties phase 2
S The feedrate override (feedrate switch) is active. S The feed stop (channel-specific and axis-specific) is active. S The machine axis can be stopped and restarted with NC stop/NC start.
1/R1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Properties
The position of rotary, distance-coded measuring systems can be determined uniquely (absolutely) only in relation to a rotation. Depending on the mechanical mounting of the encoder, the overtravel of the absolute position in the hardware does not always coincide with the traversing range of the rotary axis.
For modulo rotary axes, the position calculated during referencing is automatically adapted to the range defined via MD 30330: MODULO_RANGE and MD 30340: MODULO_RANGE_START for modulo rotary axes. For rotary axes that are not defined as modulo axes (MD 30310: ROT_IS_MODULO = 0) up to SW 6.2, certain encoder mounting requirements result (encoder overflow outside the traversing range of the rotary axis). In SW 6.3 and higher, the automatic adaptation function is also available above the specified theoretical modulo range if bit 1 is enabled in MD 30455: MISC_FUNCTION_MASK (definition of reference point position of rotary, distance-coded encoder within the configured modulo range) and a (fictitious) modulo range is defined with MD 30330: MODULO_RANGE and MD 30340: MODULO_RANGE_START
For distance-coded measuring systems, the reference point can be calculated on the basis of four instead of two (as in earlier versions) reference markers with the setting MD 34200: ENC_REFP_MODE = 8ENC_REFP_MODE = 8. A plausibility check can be performed through the evaluation of redundant zero mark information of a second zero mark pair, thereby increasing the reliability of the referencing result. The traversing path for the referencing operation is twice as long as the path used for MD 34200: ENC_REFP_MODE = 3. The time needed to reference the axis increases accordingly.
2.3
Preconditions
An axis with absolute value encoder is referenced automatically when the control is switched on if the system detects that the relevant axis is already calibrated. This transfer of the absolute value takes place without any axis motion, e.g. on POWER ON. Two conditions must be fulfilled before an axis can be automatically referenced:
S The axis has an absolute value encoder with which the position control
operates
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-25
Reference Point Approach (R1) 2.3 Referencing with absolute value encoders
10.00
Calibration
In the case of axes with absolute value encoders, the measurement system is not synchronized by approaching a reference cam. It is calibrated instead. For this purpose, the actual value of the absolute value encoder is set once during start-up and transferred to the control. The absolute encoder can be adjusted as follows:
S Adjustment by entering the zero offset in the machine data S Manual adjustment S Automatic calibration with probe S Calibration with BERO.
2.3.1
General procedure
The zero offset between displayed and real machine position is determined and entered in the machine data MD 34090: REFP_MOVE_DIST_CORR.
Chronological procedure
1. Measure the reference point offset, e.g. traverse the machine to a known position and read out the displayed position. 2. MD 34090: REFP_MOVE_DIST_CORR to the offset value determined. 3. MD 34210: ENC_REFP_STATE = 2. This adjustment status for automatic referencing will come into effect when the encoder is activated next time. 4. POWER ON of the control system and check the machine position or carry out POWER ON as a preventive action. The new value entered in MD 34090: REFP_MOVE_DIST_CORR will come into effect for ever.
Note If operation of the axis is continued after such a calibration without a POWER OFF/POWER ON, the previous value, which is still in use internally, may be stored in the MD again (in the course of automatic overflow correction), thus overwriting the new entry. If a backlash compensation is parameterized for this encoder, make sure that axes with a backlash are at the correct edge when adjusting.
1/R1/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
2.3.2
Manual adjustment
General procedure
Move the axis to be adjusted to a defined position to set the resulting actual value.
Chronological procedure
1. MD 34200: ENC_REFP_MODE to 0 and activate by means of a POWER ON. (ENC_REFP_MODE = 0 means that the actual value of the axis is set once) 2. Traverse axis manually in JOG mode to a known position. The direction in which the position is approached must match the direction stored in MD 34010: REFP_CAM_DIR_IS_MINUS (0 = positive direction, 1 = negative direction).
Note This known position must always be approached at a low velocity and from a defined direction so that it is not falsified by any backlash present in the drive train.
3. Enter the actual value corresponding to the approached position in MD 34100: REFP_SET_POS. This value may be a specified design value (e.g. fixed stop) or can now be determined with a measuring instrument. 4. MD 34210: Sset ENC_REFP_STATE to 1 to enable the calibration function. 5. The modified machine data become effective after a RESET. 6. Switch to JOG-REF mode. 7. When you press the traversing key used in step 2, the current offset is entered in MD 34090: REFP_MOVE_DIST_CORR and ENC_REFP_STATE changes to 2, i.e. the axis is effectively calibrated.
Note The axis does not move when the correct traversing key is actuated! The value entered in REFP_SET_POS appears in the actual value display of the axis position.
8. Exit JOG-REF operating mode. The calibration operation for this axis is now complete.
To save time, it possible to calibrate multiple axes by moving all or a number axes (providing the machine design permits) to their calibration point (points 15) and then changing to JOG-REF (point 6). Each axis is then calibrated individually (point 7).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-27
Reference Point Approach (R1) 2.3 Referencing with absolute value encoders
10.00
2.3.3
General procedure
Note When calibrating absolute value encoders automatically with a probe, particular care must be taken to avoid any risk of collisions on the machine.
NC program
The user must generate the NC program for calibrating absolute value encoders, taking the predefined machine specifications into account. The NC program for adjusting the absolute encoders with sensor must perform the points listed below for each axis in this order: 1. Approach calibration position of axis which is detected from the probe response. The position must be approached several times from the same direction, but at a velocity which is gradually reduced on each approach, to ensure that the measured value $AA_IM obtained is as accurate as possible. 2. Calculation of the difference between MD 34100: REFP_SET_POS and $AA_IM by the NC program. 3. Entry of the difference in MD 34090: REFP_MOVE_DIST_CORR by the NC program. 4. MD 34210: ENC_REFP_STATE=2, set by the NC program.
Chronological procedure
1. MD 20700: REFP_NC_START_LOCK=0 (enable program start for nonreferenced axes as well). 2. MD 34100: REFP_SET_POS to the correct actual positions for the calibration points on the machine for all axes to be calibrated. 3. Changed MD are activated by means of a RESET operation. 4. Start NC program. 5. MD 20700: REFP_NC_START_LOCK=1 (disable program start for nonreferenced axes). 6. Perform a POWER ON. The new values are entered in MD 34090: REFP_MOVE_DIST_CORR will come into effect for ever.
Note If operation of the axis is continued after such a calibration without a POWER OFF/POWER ON, the previous value, which is still in use internally, may be stored in the MD again (in the course of automatic overflow correction), thus overwriting the new entry.
1/R1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
2.3.4
Preconditions
In order to adjust the absolute value encoder with a BERO, the BERO can be mounted either permanently or temporarily for the purpose of calibration. After the encoder has been calibrated, it remains referenced provided the appropriate Position measurement system 1/2 interface signal is active. After the measurement system has been connected, the Axis referenced interface signal is reenabled.
Chronological procedure
1. MD 34200: ENC_REFP_MODE=2 (Referencing with BERO selected). 2. MD 34100: REFP_SET_POS according to the mechanically defined position of the BERO. 3. Initiate reference point approach. Reference point approach can be started either by the user in JOGREF or via G74 in program mode. 4. The BERO can now be removed again if it is not required permanently. In this case, ENC_REFP_MODE must be set to 0 (Referencing with absolute value encoder).
The synchronism between the axis and the measurement system is checked when switched on. If the axis is already calibrated and synchronized, no further calibration is required. Restriction: If the spindle is operated above the limit frequency, the limit MD 36302: ENC_FREQ_LIMIT_LOW must be set according to the lowest value of the absolute track.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-29
Reference Point Approach (R1) 2.3 Referencing with absolute value encoders
10.00
2.3.5
Preconditions
Note A zero mark of the measuring system is not used to set the reference point!
Chronological procedure
1. MD 34200: ENC_REFP_MODE to 0 and activate by means of a POWER ON. You can now set the reference point value for this axis. 2. Traverse axis manually in JOG mode to a known position. The direction in which the position is approached must match the direction stored in MD 34010: REFP_CAM_DIR_IS_MINUS. (0 = positive direction, 1 = negative direction).
Note This known position must always be approached at a low velocity and from a defined direction so that it is not falsified by any backlash present in the drive train.
3. Enter the actual value corresponding to the approached position in MD 34100: REFP_SET_POS. This value may be a specified design value (e.g. fixed stop) or can now be determined with a measuring instrument. 4. Switch to JOG-REF mode. 5. When you press the traversing key used in step 2, the current offset is entered in MD 34090: REFP_MOVE_DIST_CORR.
Note The axis does not move when the correct traversing key is actuated! The value entered in MD 34100: REFP_SET_POS appears in the actual value display of the axis position.
1/R1/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
2.3.6
Additional information
Referencing and calibration to zero marks, distance-coded marks and BERO with doubleedge evaluation is not supported in conjunction with the EQN 1325, LC181 and encoders of similar design. Incorrect parameterization of MD 34200: ENC_REFP_MODE, alarm 26015 is output in SW 3.6 and higher.
If the axis has two encoders (MD 30200: NUM_ENCS=2) and at least one of these is an absolute encoder, MD 34102: REFP_SYNC_ENCS=1 must be enabled (see Subsection 2.4.1). The position falsification caused by the signal delay with BERO can be corrected internally in the NC by entering a signal runtime compensation. The MD 31122: BERO_DELAY_TIME_PLUS or MD 31123: BERO_DELAY_TIME_MINUS together with the setting MD 34200: ENC_REFP_MODE = 2 or 7.
Note Compensation of the signal runtime by the NC requires the use of type 611D drives. The signal run times are preset on delivery so that the contents generally do not have to be changed.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-31
Reference Point Approach (R1) 2.3 Referencing with absolute value encoders
03.02 10.00
2.3.7
On start-up, the control system will detect all encoders known to it. In SW 5.3 and higher, the encoder serial numbers of all detected encoder can be read from machine data MD 34230: ENC_SERIAL_NUMBER. This is the case for example with EnDat encoders. A 0 is displayed for encoders that do not have an encoder serial number.
Note Manipulating machine data MD 34230: ENC_SERIAL_NUMBER will deadjust the absolute value encoder automatically. MD 34200: ENC_REFP_MODE will fall back to 0.
In SW 6.3 and higher, MD 34232: EVERY_ENC_SERIAL_NUMBER can be used on the SIMODRIVE 611 to set the expansion of the encoder serial numbers in MD 34230: ENC_SERIAL_NUMBER digitally. Please note that for MD 34232: EVERY_ENC_SERIAL_NUMBER:
S If the SIMODRIVE 611 displays digital 0, the encoder has not been detected
or is invalid. The last valid serial number is retained in MD 34232: EVERY_ENC_SERIAL_NUMBER.
S If the SIMODRIVE 611 displays digital 1, the encoder serial number is being
MD 34232: EVERY_ENC_SERIAL_NUMBER each time the controller starts up.
Note This functionality is permanently assigned the code 0 on PROFIBUS DP drives and thus has no effect on PROFIBUS DP drives.
1/R1/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.4
2.4.1
Function
When several measurement systems are in use, referencing to the zero mark, BERO or absolute position of the encoder used for referencing allows all other measurement systems of the axis to be adjusted. In MD 34102: REFP_SYNC_ENCS, the value is set to 1. A referencing process references all measurement systems. The reference position is derived solely from the referencepointrelated MDs of the measurement system used for referencing. Note If one of the two measurement systems is an absolute encoder, REFP_SYNC_ENCS=1 should always be set to ensure that both measurement systems always have the same value.
Example
Two incremental encoders, referencing the one encoder also affects the other one. CHANDATA (1) $MA_NUM_ENCS[AX1]=2 $MA_REFP_SYNC_ENCS[AX1]=1 $MA_REFP_MODE[0,AX1]=1 $MA_REFP_MODE[1,AX1]=1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-33
Reference Point Approach (R1) 2.4 Referencing by means of actual value adjustment
10.00
2.4.2
Actual value adjustment to the referenced measuring system (only for 611 D measuring systems)
To accept a reference value from a measurement system that is not selected for the control, use the setting MD 34200: ENC_REFP_MODE=6. The travel path for the referencing process is entered in MD 34080: REFP_MOVE_DIST. This value should be higher than the measurement system backlash, from which the reference value is derived. This setting is intended, for example, for measurement system configurations with an indirect absolute value encoder at the motor and a direct incremental encoder at the table. After elimination of the backlash, further actual value changes in the two measurement systems are identical except for leadscrew errors. At this point in time, the coarse position of the absolute value encoder is adopted by the direct incremental encoder and then corrected to the full accuracy of the direct encoder by the NC. Direct incremental measurement systems are thus referenced after traversal of the path stored in MD: REFP_MOVE_DIST. If this MD: REFP_MOVE_DIST is set to zero, then the measurement system adjustment is executed immediately after the travel key is actuated. For this purpose, the backlash must be less than half the pitch of the indirect measurement system.
Function
Example
1/R1/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
Reference Point Approach (R1) Referencing in follow-up mode (SW 6 and higher)
2.5
Use
Measuring systems can also be referenced to an encoder zero mark in follow-up mode. The axis motion required for this application must be generated outside the NC.
Preconditions
When axis motion is being generated externally, the reference point can only be calculated definitively for a single zero mark in the traversing range using distance-coded linear scales and modulo rotary axes.
If there is more than one zero mark in the traversing range of the axis, an external reference cam should be used. As a reference cam configured in MD 34000: REFP_CAM_IS_ACTIVE will be ignored in follow-up mode, reference mode MD 34200: ENC_REFP_MODE = 5 should be used in its place. This MD supports a cam connected to the BERO input of the 611D drive module for zero mark selection.
Function
In follow-up mode, referencing is enabled using machine data MD 34104: REFP_PERMITTED_IN_FOLLOWUP. In follow-up mode, reference can be implemented both in reference point approach mode and in the parts program via G74. The block change on G74 only takes place once the zero mark has been detected. The referencing sequence is set implicitly via the status of the axial IS Follow-up mode active DB31. ... DBX61.3 active at the start of a referencing operation. In follow-up mode referencing is external or, if closed-loop control is being applied, it is executed on the NC side. The point in time at which the zero mark search begins in follow-up mode is derived from the axis motion (DB31, ... DBX61.4=0 axis/spindle at standstill in reference point approach mode. On G74, it is the time at which block execution takes place. If the follow-up request is canceled during a referencing operation, the zero mark search will be aborted. An active referencing operation can be aborted by resetting the MCP. The axial status signal NCK ! PLC Referenced/synchronized 1 DB31, ... DBX60.4 can be used to check the success of a referencing process. In follow-up mode, the zero mark search is suppressed in reference point approach mode for axes that have already been referenced. It can only be restarted via G74.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-35
Reference Point Approach (R1) 2.5 Referencing in follow-up mode (SW 6 and higher)
10.00
Activation
Function with MD 34104: REFP_PERMITTED_IN_FOLLOWUP = 1 activate. Switch the axis to follow-up mode with IS Follow-up mode DB31, ... DBX1.4=0 and IS Servo enable (DB31, ... DBX2.1=0. Wait for the checkback signal in status signal IS Follow-up mode active DB31, ... DBX61.3. Switch to reference point approach mode. Move the axis via the encoder zero mark.
1/R1/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.6
Reference Point Approach (R1) Referencing passive measuring systems (SW 5 and later)
2.6
2.6.1
SW 4 and lower
Up to SW 4, when the control starts up with MD 34102: REFP_SYNC_ENCS = 1, the passive, direct measuring system is automatically compared to the referenced, absolute motor measuring system. After the actual value comparison, the direct measuring system has the same actual value as the motor measuring system and is also referenced. Since machining is to be performed using the direct measuring system, the PLC activates both measuring systems. Due to the higher loadside accuracy, the direct measuring system is referenced again in REF mode. With SW 5 and higher, the second referencing process may be omitted: The zero mark search is carried out prior to switchover of the measuring system without additional operating steps at the same time as the next axis movement automatically in the passive measuring system. The PLC application program then switches to the passive measuring system referenced in this way. IS Synchronized 1 DB31, ... DBX60.4 or IS Synchronized 2 DB31, ... DBX60.5 can be used to evaluate the current referencing status of the measuring systems (n = index of the machine axis).
SW 5 and higher
2.6.2
Supplementary conditions
In contrast to referencing in REF mode, the following restrictions apply to the referencing of passive measuring systems:
S No separate traversing movements S No support from reference cam REFP_CAM_IS_ACTIVE = 1 S Reference monitoring is inactive.
If the reference is missing, referencing is started automatically using the passive measuring systems. The referencing is aborted by a reset or a measuring system switchover and may be restarted if necessary.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-37
Reference Point Approach (R1) 2.6 Referencing passive measuring systems (SW 5 and later)
10.00
2.6.3
Activation
The time for referencing switchover in the PLC application program is derived form the referencing status of the passive measuring system. Therefore, an actual value comparison to the position of the active measuring system (IS Position measurement system 1 DB31, ... DBX1.5 or IS Synchronized 2 DB31, ... DBX1.6) without setting IS Synchronized 2 DB31, ... DBX60.5 must be configurable (n = index of the machine axis). IS Synchronized 2 DB31, ... DBX60.5 must not be set until the passive measuring system has traversed its own zero mark. This behavior can be configured separately for each encoder via MD 30242: ENC_IS_INDEPENDENT = 2. The value range of the machine data has been expanded to incorporate this feature: Value = 0: The passive encoder is dependent. The encoder actual value is modified by the active encoder. In conjunction with MD 35102: REFP_SYNC_ENCS =1, the passive encoder is matched with the active encoder when approaching the reference point and then marked as referenced in IS Synchronized 1 DB31, ... DBX60.4 or IS Synchronized 2 DB31, ... DBX60.5. Value = 1: The passive encoder is dependent. The encoder value is not modified by the active encoder. Value = 2: The passive encoder is dependent. The encoder actual value is modified by the active encoder. In conjunction with MD 35102: REFP_SYNC_ENCS = 1, the passive encoder is adjusted to the active encoder during reference point approach, but not marked as referenced. To reference, first the passive encoder must have crossed its own zero mark.
1/R1/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Reference Point Approach (R1) 2.7 Referencing with cam switch at the drive (SW 5 and later)
2.7
2.7.1
BERO (7)
Drive (1)
Motor (2)
Position
Fig. 2-13
In the application described in Fig. 2-13, four measuring system zero marks are found on each load side. A BERO is connected to the 611D drive module as a cam for zero mark selection. In reference mode MD 34200: ENC_REFP_MODE = 5 is synchronized with the first zero mark after the falling cam edge. In this configuration, the cam should always be traversed from the same direction.
SW 5 and higher
The MD 34120: REFP_BERO_LOW_ACTIVE=1 can be used to reconfigure the evaluation of the cam edge. The zero mark search will then begin on the rising cam edge. As long as the cam is not exited again before the zero mark is detected, a zero mark overlapped by the cam can be detected reliably in both directions of travel. MD 34120 may only be used in conjunction with MD 34200=5.
Note The Referencing with cam switch on drive function can only be ensured in conjunction with the SIMODRIVE 611 closed-loop control modules: Performance 1 closed-loop control (1 axis) 6SN11180DG2*0AA1 Performance 1 closed-loop control (2 axes) 6SN11180DH2*0AA1 Performance 2 closed-loop control (2 axes) 6SN11180DK230AA0 On older closed-loop control modules, the function may differ from that described.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/2-39
Reference Point Approach (R1) 2.7 Referencing with cam switch at the drive (SW 5 and later)
10.00
Notes
1/R1/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 3.1
Reference Point Approach (R1) General supplementary conditions for absolute encoders
Supplementary Conditions
3.1
3.1.1
Encoder selection
The 840D supports absolute encoders supplied by Heidenhain, type EQN 1325, and encoders of similar design with the following features:
S 2 incremental tracks, offset by 90 degrees, with raw signal output S one absolute track (singleturn or multiturn) of which the value can be read
serially via the EnDat protocol. For FDD or MSD closedloop control modules with SIDAASIC (new Standard and Performance 611D modules) and drive SW 02.60.xx must be available on the drive side.
Availability of NC*software
3.1.2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/3-41
10.00
3.2
Calibration
The calibration process determines the offset between the machine zero and the encoder zero and stores it in a non-volatile memory. Normally, calibration need only be performed once, i.e. during initial start-up. The control can calculate the absolute machine position from the encoder absolute value at any time. This status is identified by MD 34210: ENC_REFP_STATE=2. The offset is stored in MD 34090: REFP_MOVE_DIST_CORR (SRAM). The calibration process must be repeated in the following situations:
S After loss of the offset value (SRAM erased, battery voltage failure,
PRESET)
S After change of an existing gear unit between motor (with absolute encoder)
and load.
S Loss of the offset value (SRAM erased, battery voltage failure, PRESET) S Changeover to another gear speed with a different gear ratio between the
encoder and load. In all other cases, the user must overwrite MD 34210: ENC_REFP_STATE (through PLC intervention, cycle, operator input).
Data backup
When the machine data are backed up, the status of MD 34210: ENC_REFP_STATE is also stored. By loading this block, the axis is automatically deemed calibrated! If the block has been taken from another machine (e.g. series installation), calibration must still be carried out after loading and activating the data. Please also observe the notes on MD 30250, see Section 4.2 (SW 3.6 and higher).
1/R1/3-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 3.3
Reference Point Approach (R1) Special features for large traversing ranges
3.3
The position reported by a linear scale (e.g. LC181) is always unique for the scales lengths available. The absolute value of the rotary encoder EQN 1325, on the other hand, overflows after 4096 revolutions. The absolute position is unique only for the following maximum values:
S Rotary axis
Encoder at load Encoder at motor 4096 load revolutions 4096 motor revolutions
S Linear axis
Encoder at motor 4096 rms spindle lead
Example
A linear axis with effective spindle rise of 10mm thus covers a distance of 20.48 to 20.48m. If the full range is to be utilized, the encoder value overflows within the useful traversing range, since the encoder zero and machine zero cannot be matched accurately. The correct machine actual value is calculated nevertheless using an internal offset in the NC. This allows the full traversing range to be utilized, without having to take account of the rotation with which the encoder was installed. Selection of the machine zero (for 10mm spindle lead):
S For machines with linear axis traversing range u 4096 encoder revolutions
with EQN 1325 (for input of MD 34220: ENC_ABS_TURNS_MODULO = 4096): From SW 3.6, the traversing range that can be displayed has been extended in the software to the full number format in the servomotor, i.e. it is identical to that for incremental encoders. When the encoder is switched off (POWER OFF/ON, parking), it must be ensured that the axis for rotary encoders (e.g. EQN 1325) is moved less than half of the traversing range defined in MD 34220: ENC_ABS_TURNS_MODULO (less than 2048 revolutions for EQN 1325). In this case, the software is able to reconstruct the new position using shortest path detection.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/3-43
Reference Point Approach (R1) 3.3 Special features for large traversing ranges
10.00
1/R1/3-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 3.4
3.4
Background
With the SINUMERIK 840Di, the overflow of encoders is saved cyclically in an SRAM. If a fault scenario (e.g. power failure) occurs, it is possible to use these data when the system is restarted. If the fault scenario and writing the data to the SRAM are performed at the same time, it may happen that the current value gets lost. In this case, the previous value is stored as the current value in the SRAM. After the system has been restarted, the value of the overflow is read from the SRAM and assumed as the real overflow.
When using absolute encoders with axes turning endlessly and incremental encoders, the overflow is saved with the backup in the SRAM. When the system is restarted without referencing after a fault scenario, this value is defined as the current overflow. The correct value of the overflow is thus lost. In order to be able to rule out this case, it is recommended to use an UPS (uninterruptible power supply). When doing so, the current value will also be saved reliably after a power failure.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/3-45
10.00
Notes
1/R1/3-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
4.1
20700 REFP_NC_START_LOCK MD number NC start disable without reference point Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after Reset Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: 0: IS NC Start DB21, ... DBX7.1) for starting parts programs or part program blocks (MDA and Overstore) is operative even if one or all the axes in the channel have still to be referenced. To ensure that the axes move to the correct position after NC Start, the workpiece coordinate system (WCS) must be set to a correct value by other methods (scratching method, automatic zero offset calculation, etc.). 1: NC start only if all axes have been referenced. see Subsection 2.3.3.
Further information
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-47
10.00
4.2
Name
Reference G2
30240 ENC_TYPE MD number Actual value encoder type Default setting: 0 Minimum input limit: 0 Maximum input limit: 5 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Encoder type: 0: Simulation 1: Raw signal encoder (high resolution) 2: Rectangular signal encoder (standard, no. of encoder marks multiplied) 3: Encoder for stepper motor (FMNC only) 4: Absolute encoder with EnDat interface 5: Absolute encoder with SSI interface (only FMNC) Further information See Subsection 2.4.2 Related to .... Drive MD 1011: ACTUAL_VALUE_CONFIG, bit 3
30250 ACT_POS_ABS MD number Absolute encoder position at time of deactivation. Default setting: 0.0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DOUBLE Applies from SW 3.6 Significance: The current position is stored in this MD (in internal format). It is used during POWER ON (or encoder activation) for: D Rotary absolute value encoders: to restore the current position (in conjunction with the potentially ambiguous position stored in the encoder) D Incremental encoders: for storing the actual value via POWER OFF when MD 34210: ENC_REFP_STATE 0 0 (i.e. as equivalent reference point). Note: This MD is changed internally in the control during traversing. Inputting an MD block that has been backed up earlier can therefore destroy the calibration of absolute encoders. For SW upgrades, we recommend backing up the MD block in the old SW release immediately prior to upgrading and then incorporating the new SW release without any axis motion in the meantime. Protection level 1 should be set for SW 3.6; protection level 2 is sufficient from SW 4. The encoder calibration should be verified explicitly (check/adjust) after SW upgrade!
1/R1/4-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
30270 ENC_ABS_BUFFERING[n]; n=0,1 MD number Position buffer in the encoder Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 5.2 Significance: By 1 parameterization, a mirroring of the value for $MA_REFP_MOV_DIST_CORR[n] in the EnDat encoder FEPROM is active (only for SIMODRIVE 611D and EnDat absolute encoders). At the same time, the traversing range extension of absolute encoders active per default is deactivated. This buffering is necessary for absolute encoders at addon axes. In addition to this, the extension to the traversing range can also be deactivated at the axes, for which the entire traversing range is uniquely represented by the absolute encoder multiturn information. It is not advisable to deactivate the traversing range extension for axes with an uneven (not a POWER Of 2) gear ratio and large traversing range, for which the absolute encoder position can be incorrect without warning on the next POWER ON if the traversing range extension is not working.
34000 REFP_CAM_IS_ACTIVE MD number Axis with reference point cam Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: Machine axes with only one zero mark across their entire traversing range or rotary axes with only one zero mark per revolution are not identified as a machine axis with reference cam by the MD: REF_CAM_IS_ACTIVE. A machine axis identified as a machine axis with reference cam accelerates, when the plus/minus travel key is pressed, to the velocity defined in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity). Further information see Subsections 2.1.1 and 2.6.2 MD irrelevant for ... Linear measurement systems with distance-coded reference marks
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-49
10.00
34010 REFP_CAM_DIR_IS_MINUS MD number Reference point approach in minus direction Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: REF_CAM_DIR_IS_MINUS = 0 Reference point approach in plus direction REF_CAM_DIR_IS_MINUS = 1 For incremental measurement systems: If the machine axis is positioned before the reference cam, it accelerates, when the travel key, to the velocity defined in MD 34020: REFP_VELO_SEARCH_CAM (reference point approach velocity) in the direction specified in MD: REFP_CAM_DIR_IS_MINUS. If the wrong travel key is pressed, the reference point approach does not start. If the machine axis is positioned on the reference mark, it accelerates to the velocity defined in MD 34020: REFP_VELO_SEARCH_CAM and travels in the opposite direction to that specified in MD: REFP_CAM_DIR_IS_MINUS. For linear measurement systems with distancecoded reference marks: If the machine axis has a reference cam (linear measurement systems with distance-coded reference marks do not need a reference cam) and the machine axis is positioned on the cam, it accelerates, regardless of the depressed plus/minus travel key, to the velocity defined in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity) in the opposite direction to that specified in MD: REFP_CAM_DIR_IS_MINUS. Further information see Subsections 2.1.1, 2.1.2, 2.2.1, 2.3.2 and 2.3.5
34020 REFP_VELO_SEARCH_CAM MD number Reference point approach velocity Default setting: 5000 Minimum input limit: 0 Changes effective after POWER ON Protection level: 2/7 Data type: DOUBLE Significance:
Maximum input limit: plus Unit: mm/min, rpm Applies from SW 1.1 The reference point approach velocity is the velocity at which the machine axis travels in the direction of the reference cam when the travel key is pressed (phase 1). This value should be set at a magnitude large enough for the axis to be stopped, before it reaches a hardware limit switch. see Section 2.1, Subsections 2.1.1, 2.1.2 and 2.1.3 Linear measurement systems with distancecoded reference marks
34030 REFP_MAX_CAM_DIST MD number Maximum distance to reference cam Default setting: 10000 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: If the machine axis travels a maximum distance (defined in MD: REFP_MAX_CAM_DIST) REFP_MAX_CAM_DIST from the starting position in the direction of the reference cam without reaching the reference cam (Reference point approach delay interface signal (DB31, ... DBX12.7) is reset) and Alarm 20000 Reference cam not reached is output. Further information See Subsection 2.1.1 MD irrelevant for ... Linear measurement systems with distancecoded reference marks
1/R1/4-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
34040 REFP_VELO_SEARCH_MARKER[n] MD number Reference point creep speed [encoder number]: 0, 1 Default setting: 300 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/7 Unit: mm/min, rpm Data type: DOUBLE Applies from SW 1.1 Significance: 1) For incremental measurement systems: This is the velocity at which the axis travels between initial detection of the reference cam and synchronization with the first zero mark (phase 2). Direction of travel: opposite to the direction specified for cam detection (MD 34010: REFP_CAM_DIR_IS_MINUS) If MD 34050: REFP_SEARCH_MARKER_REVERSE (direction reversal on reference cam) is enabled, the axis travels at the velocity defined in MD 34020: REFP_VELO_SEARCH_CAM in the case of synchronization 2) For linear measurement systems with distance-coded reference marks: The axis crosses the two reference marks at this velocity. The max. velocity must be small enough that the time required to travel the smallest possible reference mark distance (xmin) on the linear measurement system is larger than one position controller cycle. In the following formula, the basic distance [multiple of the graduation cycle], graduation cycle [mm] and measured length [mm] yield the maximum velocity: Basic distance Measured length xmin [mm] = * Graduation cycle 2 Basic distance xmin [mm] Max. velocity [m/s] = Position controller cycle [ms] This limit also applies to the other measurement systems. Direction of travel: as defined in MD: REFP_CAM_DIR_IS_MINUS; if the axis is already positioned on the cam, the axis is traversed in the opposite action 3) Indirect measurement system with BERO on the loadside (preferred for spindles) At this velocity, the zero mark associated with the BERO is searched for (zero mark selection per VDI signal). The zero mark is accepted if actual velocity lies within the tolerance range defined by MD 35150: SPIND_DES_VELO_TOL, as deviation from the velocity specified in MD 34040: REFP_VELO_SEARCH_MARKER[n]. see Sections 2.1 and 2.2, Subsections 2.1.1, 2.1.2, 2.1.3, 2.2.1 and 2.3.6
Further information
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-51
10.00
34050 REFP_SEARCH_MARKER_REVERSE[n] MD number Change of direction on reference cam [encoder number]: 0, 1 Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: The MD: REFP_MARKER_REVERSE can be used to set the direction of the search for the zero mark: REFP_SEARCH_MARKER_REVERSE = 0 Synchronization with falling reference cam signal edge The machine axis accelerates to the velocity defined in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity) in the opposite direction to that defined in MD 34010: REFP_CAM_DIR_IS_MINUS (reference point approach in minus direction). If the reference cam is existed (IS Reference point approach delay (DB31, ... DBX12.7) is reset), the control synchronizes with the first zero mark. MD: REFP_SEARCH_MARKER_REVERSE = 1 Synchronization with rising reference cam signal edge The machine axis accelerates to the velocity defined in MD 34020: REFP_VELO_SEARCH_MARKER (reference point creep velocity) in the opposite direction to that specified in the MD: REFP_CAM_DIR_IS_MINUS. When the axis leaves the reference cam (Reference point approach delay interface signal (DB3148, DBX12.7) is reset), the machine axis decelerates to a halt and accelerates in the opposite direction towards the reference cam at the velocity defined in MD: REFP_VELO_SEARCH_MARKER. If the reference cam is reached (IS Reference point approach delay (DB31, ... DBX12.7) is reset), the control synchronizes with the first zero mark. Further information See Subsection 2.1.2 MD irrelevant for ... Linear measurement systems with distancecoded reference marks
34060 MD number
REFP_MAX_MARKER_DIST[n] Maximum distance to reference mark; Maximum distance to 2 reference marks for distancecoded measurement systems [encoder no.]: 0, 1 Default setting: 20 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 / 7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: For incremental measurement systems: If, after leaving the reference cam (Reference point approach delay interface signal is reset), the machine axis travels a distance defined in MD: REFP_MAX_MARKER_DIST without detecting the zero mark, the axis stops and alarm 20002 Zero mark missing is output. For linear measurement systems with distance-coded reference marks: If the machine axis travels a distance defined in MD: REFP_MAX_MARKER_DIST from the starting position without crossing two zero marks, the axis stops and alarm 20004 Reference mark missing is output. Application example(s) If, on incremental measurement systems, the control is required to detect reliably that the same zero mark is always used for synchronization (to avoid detection of an incorrect machine origin), the maximum value in MD: REFP_MAX_MARKER_DIST must not exceed the distance between two reference marks. Further information see Subsections 2.1.2 and 2.2.1
1/R1/4-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
34070 REFP_VELO_POS MD number Reference point start velocity Default setting: 10000 Minimum input limit: 0 Changes effective after POWER ON Protection level: 2/7 Data type: DOUBLE Significance:
Maximum input limit: plus Unit: mm/min, rev/min Applies from SW 1.1
Further information
For incremental measurement systems: The axis travels at this velocity between the time of synchronization with the first zero mark and arrival at the reference point. For linear measurement systems with distance-coded reference marks: The axis travels at this velocity between the time of synchronization (crossing two zero marks) and arrival at the reference point. see Section 2.2, Subsections 2.1.2, 2.1.3 and 2.2.2
34080 REFP_MOVE_DIST[n] MD number Reference point distance encoder number]: 0, 1 Default setting: 2.0 Minimum input limit: *** Maximum input limit: *** Changes effective after POWER ON Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: For incremental measurement systems: (graphic see Fig. 2-9): Following synchronization with the first zero mark, the machine accelerates to the velocity defined in MD 34070: REFP_VELO_POS (reference point start velocity) and travels a distance calculated from the addition of MD: REFP_MOVE_DIST and MD 34090: REFP_MOVE_DIST_CORR (reference point offset). This distance precisely matches the distance between the zero mark detected in phase 2 and the reference point.
Velocity MD 34100: REFP_SET_POS[0/1/2 or 3] MD: REFP_MOV_DIST + MD: REFP_SET_POS_CORR MD 34020: REFP_VELO_SEARCH_CAM (ref. point approach velocity) MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity)
Zero mark
The value 6 in MD 34200: ENC_REFP_MODE refers to the distance traveled, after which the actual values between the measurement systems are aligned. The distance entered should greater than the existing backlash. See Subsection 2.1.3 Linear measurement systems with distance-coded reference marks
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-53
10.00
34090 MD number
REFP_MOVE_DIST_CORR[n] Reference point offset/absolute offset, distance-coded [Encoder number]: 0, 1 Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective after: Reset Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: D Incremental encoder with zero mark(s): After detection of the zero, the axis is moved away from the zero mark by the distance MD 34080: REFP_MOVE_DIST + REFP_MOVE_DIST_CORR. Once the axis has traveled this distance, it has reached the reference point. MD 34100: REFP_SET_POS is set as the actual value. During traversing REFP_MOVE_DIST+REFP_MOVE_DIST_CORR, the override switch and MD : JOG_INC_MODE_IS_CONT (permanent/job mode) are active D Distance-coded measurement system: REFP_MOVE_DIST_CORR acts as the absolute offset. It defines the offset between the machine zero point and the first reference mark of the measurement system. D Absolute value encoder: REFP_MOVE_DIST_CORR acts as the absolute offset. It defines the offset between machine zero and the zero point of the absolute measurement system. Note: This MD is changed by the control during calibration and modulo correction in conjunction with the absolute encoders! Manual entry or modification of this MD with a parts program should therefore be followed by a POWER ON reset so that the new value is activated and cannot be lost. Further information See Subsection 2.1.3
34092 MD number
REFP_CAM_SHIFT Electronic reference cam offset for incremental measurement systems with equidistant zero marks Default setting: 0.0 Minimum input limit: 0.0 Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: mm Data type: DOUBLE Applies from SW 3.2 Significance: When the reference cam signal occurs, the zero mark search is not started immediately, but with a delay after the distance of REFP_CAM_SHIFT. The reproducibility of the zero mark search can thus be ensured even in the case of temperature-dependent expansion of the reference cam through defined selection of a zero mark. As the reference cam offset is calculated by the control in the interpolation cycle, the actual reference cam offset is is at least REFP_CAM_SHIFT and maximum REFP_CAM_SHIFT+(MD 34040: REFP_VELO_SEARCH_MARKER*interpolation cycle) The reference cam offset acts in the direction of zero mark search. The reference cam offset is active only if the cam MD 34000: REFP_CAM_IS_ACTIVE=1 is present. Thermal expansion
1 REFP_CAM_SHIFT
1+2
1/R1/4-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
34093 REFP_CAM_MARKER_DIST MD number Reference cam/reference mark distance Default setting: 0.0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: mm Data type: DOUBLE Applies from SW 6.3 Significance: The indicated value is equivalent to the distance between departure from the reference cam and detection of the reference mark. If the values are too small, there is a risk that the determination of the reference point will be nondeterministic, due to temperature effects or fluctuations in the operating time of the cam signal. The path covered can be used as a guide for setting the electronic reference cam offset. The machine data is read-only. Related to .... REFP_CAM_IS_ACTIVE, REFP_SHIFT_CAM
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-55
10.00
34100 REFP_SET_POS[n] MD number Reference point value/destination point for distance-coded system Default setting: 0.0 Minimum input limit: *** Maximum input limit: *** Changes effective after RESET Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: D Incremental encoder with zero mark(s): The position value which is set as the current axis position after detection of the zero mark and traversal of the distance REFP_MOVE_DIST + REFP_MOVE_DIST_CORR (relative to zero mark). The REFP_SET_POS for the reference point number, which is set as the instant that the edge of the reference cam signal (INTSIG DB31, ....DBX2.42.7) rises, is set as the axis position. D Distance-coded measurement system: Destination point which is approached when REFP_STOP_AT_ABS_MARKER is set to 0 (FALSE) and two zero marks have been crossed. D Absolute value encoder: REFP_SET_POS corresponds to the correct actual value at the calibration position. The reaction on the machine depends on the status of MD34210: ENC_REFP_STATE: When ENC_REFP_STATE = 1, the value of REFP_SET_POS is transferred as the absolute value. When ENC_REFP_STATE = 2 and REFP_STOP_AT_ABS_MARKER = 0 (FALSE), the axis approaches the destination point stored in REFP_SET_POS. The value of REFP_SET_POS that has been set via (INTSIG DB31, ....DBX2.42.7) is used. Fig. 12
X+ ZM R R
Fixture Workpiece
XMR
W + Z
M Machine zero W Workpiece zero R Reference point XMR Reference point in X direction (MD: REFP SET POS [X]) ZMR Reference point in Z direction (MD: REFP SET POS [Z]) See Chapter 2, Subsections 2.1.3, 2.2.2, 2.3.2, 2.3.3, 2.3.4 and 2.3.5 Reference point value 1 to 4 interface signal (DB31, ... DBX2.4 2.7)
1/R1/4-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
34102 REFP_SYNC_ENCS MD number Measurement system adjustment active Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after RESET Protection level: 2/7 Unit: Data type: BYTE Applies from SW 3.1 Significance: Adjustment to the reference measurement system can be activated for all measurement systems of the relevant axis with this machine data. The adjustment is made during reference point approach or when calibrated absolute value encoders selected for the closedloop control are switched on. Values: 0: No measurement system adjustment, measurement systems must be referenced individually 1: Adjustment of all measurement systems of the axis to the position of the referencing measurement system see Subsections 2.3.6, 2.4.1 and 2.6.1
Further information
34104 REFP_PERMITTED_IN_FOLLOWUP MD number Enable referencing in follow-up mode Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after RESET Protection level: 2 / 7 Unit: Data type: BOOLEAN Applies from SW 6.1 Significance: In reference point approach mode and with G74, an axis can also be referenced in follow-up mode with the aid of an external movement. Related to .... MD 34200: ENC_REFP_MODE
Unit:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-57
10.00
REFP_CYCLE_NR Axis sequence for channel-specific referencing MD: REFP_CYCLE_NR = 0 > axisspecific referencing Axis-specific referencing is started separately for each machine axis with the plus/minus travel keys interface signal (DB31, ... DBX4.7 and 4.6). Up to 8 axes on the 840D and up to 5 axes on the FM-NC/810D can be referenced simultaneously. The following alternatives are provided for referencing the machine axes in a specific sequence: D The operator observes the correct sequence on start-up D The PLC user program checks the sequence on start-up or defines the sequence itself. D The channel-specific referencing function is used. MD: REFP_CYCLE_NR = 1 > channel-specific referencing The channel-specific referencing is started with IS Activate referencing (DB21, ... DBX18.5). The control acknowledges a successful start with the referencing active interface signal (DB21, ... DBX33.0). Each machine axis assigned to the channel can be referenced with channel-specific referencing (this is achieved internally on the control by simulating the plus/minus travel keys). The axis-specific MD: REFP_CYCLE_NR can be used to define the sequence in 1 means: The machine axis is started by channel-specific Referencing not and NC start is possible without referencing this axis. Note: A change from 1 or to 1 is not effective until after POWER ON. An entry of 1 for all axes in the channel can be made effective by setting MD 20700: REFP_NC_START_LOCK = 0. 0 means: The machine axis is started by channel-specific Referencing not and NC start is not possible without referencing this axis. 1 means: The machine axis is started by channel-specific Referencing started. 2 means: The machine axis is started by channel-specific Referencing started. if all machine axes identified by a 1 in MD: REFP_CYCLE_NR are referenced. 3 means: The machine axis is started by channel-specific Referencing started. if all machine axes identified by a 1 in MD: REFP_CYCLE_NR are referenced. 4 to 8 : As above for further machine axes. Setting the channel-specific MD 20700: REFP_NC_START_LOCK (NC start disable without reference point) to zero has the effect of entering 1 for all the axes of a channel. 4 to 31: (CPU type) see Chapter 2 Axis-specific referencing IS Activate referencing interface signal (DB21, ... DBX1.0) IS referencing active (DB21, ... DBX33.0)
1/R1/4-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
34120 REFP_BERO_LOW_ACTIVE MD number Polarity change of the BERO cam Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 5 Significance: The edge evaluation of a BERO connected to the digital 611D drive as a cam (ENC_REFP_MODE = 5) can be changed: REFP_BERO_LOW_ACTIVE = 0 BERO as cam switches on falling edge REFP_BERO_LOW_ACTIVE = 1 BERO as cam switches on rising edge Note: It may only be used in conjunction with ENC_REFP_MODE = 5 and the following SIMODRIVE 611 closedloop control modules: Performance 1 closed-loop control (1 axis) 6SN11180DG2*0AA1 Performance 1 closed-loop control (2 axes) 6SN11180DH2*0AA1 Performance 2 closed-loop control (2 axes) 6SN11180DK230AA0 See Subsection 2.7.1
Further information
34200 ENC_REFP_MODE[n] MD number Referencing mode [encoder number]: 0 ... max. no. of encoders 1 Default setting: 1 Minimum input limit: 0 Maximum input limit: 7 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: The connected measurement systems can be subdivided into two groups for referencing with MD: ENC_REFP_MODE D ENC_REFP_MODE = 0: Transfer of MD 34100: REFP_SET_POS D ENC_REFP_MODE = 1: Referencing with incremental measurement systems: incremental rotary measuring system incremental linear measuring system (linear measurement system) zero pulse on encoder track (not for absolute encoders) D ENC_REFP_MODE = 2: BERO with 1edge detection; also possible with absolute value encoder. After referencing, the encoder is additionally designated as adjusted. D ENC_REFP_MODE = 3: Referencing with measuring systems with distance-coded reference markers (Heidenhain) using two reference markers D ENC_REFP_MODE = 4: BERO with 2 edge evaluation (only relevant for FM-NC) The positive and negative edges of the reference point BERO are traversed in succession and the relevant actual values are registered. The average value calculated is from the synchronization point. The two-edge evaluation compensated a possible drift or temperature-dependent expansion of the BERO. D ENC_REFP_MODE = 5: When the BERO is traversed, the zero mark search is started when the negative edge is detected and is synchronized with the next zero mark (see Section 2.7) D ENC_REFP_MODE = 6: Measuring system comparison to an encoder that has already been referenced (SW 3.2 and higher) D ENC_REFP_MODE = 7: BERO with configured approach speed for axis and spindle applications (SW 3.6 and higher) MD 34040: REFP_VELO_SEARCH_MARKER[n] (reference point deactivation velocity[Enc. No.]). D ENC_REFP_MODE = 8: Referencing with measuring systems with distance-coded reference markers (Heidenhain) using four reference markers Further information See Subsection 2.7.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-59
10.00
34210 ENC_REFP_STATE[n] MD number Status of absolute value encoder [encoder number]: 0 ... max. no. of encoders 1 Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective IMMEDIATELY Protection level: 4/7 Unit: Data type: BYTE Applies from SW 2.2 Significance: D Absolute value encoder: ENC_REFP_STATE = 0: Default when installing for the first time: Encoder is not adjusted. ENC_REFP_STATE = 1: Encoder adjustment enabled, encoder not yet adjusted. ENC_REFP_STATE = 2: Encoder is adjusted D Incremental encoder: ENC_REFP_STATE = 0: Default: no automatic referencing ENC_REFP_STATE = 1: Automatic referencing enabled, but encoder not yet referenced or not at exact stop Activate ENC_REFP_STATE = 2: Encoder is referenced and at exact stop; automatic referencing effective next time the encoder is activated. Application example(s) The MD ENC_REFP_STATE can be altered by the person installing and by the operating system: D Absolute value encoder:
Alteration by the installer: The data must be set to 1 by the installer if adjustment of this encoder is required. Alteration by the operating system: on successful adjustment from 1 ==> 2 if adjustment form 2 ==> 0 or 1 has become invalid SRAM losses and gear speed changes with change of ratio are identified by the operating system. Changes to the mechanical components of the machine (e.g. encoder change, motor and encoder change, etc.) are not detected.
Incremental encoder:
Alteration by the installer: The data must be set to 1 by the installer if automatic referencing is to be carried out.
Alteration by the operating system: for referenced axis and axis at exact stop from 1 ==> 2 if the reference position has become invalid or if the axis is not at exact stop from 2==> 1
Unlike the absolute value encoder, changes in position here are not detected during POWER OFF or when the encoder is inactive. see Section 2.3, Subsections 2.1.4, 2.3.2 and 2.3.3 Incremental encoders with zero mark (standard encoders) Linear measurement systems with distance-coded reference marks
1/R1/4-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
34230 ENC_SERIAL_NUMBER[n]; n=0,1 MD number Encoder serial number Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 5.2 Significance: The serial number of EnDat encoders can be output here. A 0 is displayed for encoders which do not have an encoder serial number. A manipulation of this MDs usually results in an automatic deadjustment of the absolute encoder ($MA_ENC_REFP_MODE drops back to 0). MD 34232: EVERY_ENC_SERIAL_NUMBER
Related to ....
34232 EVERY_ENC_SERIAL_NUMBER[n]; n=0,1 MD number Expansion of encoder serial number Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 6.3 Significance: Can be used to set the expansion of MD 34230: ENC_SERIAL_NUMBER digitally on the SIMODRIVE 611: FALSE: Only valid encoder serial numbers are entered in the machine data, i.e. a 0 returned from the drive (corresponds to invalid or unknown) the last valid encoder serial number is retained in the machine data (e.g. for structural rotary axes not always known on the machine). TRUE: The encoder serial number value supplied by the drive is written to the machine data every time the controller starts up. A validity check is not carried out. Note for PROFIBUS DP drives: As not every drive is capable of supplying the relevant parameters reliably and at the right time, this function is permanently assigned the code FALSE on the PROFIBUS DP drive. The setting TRUE therefore has no effect on PROFIBUS DP. MD 34230: ENC_SERIAL_NUMBER
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-61
10.00
34300 MD number
ENC_REFP_MARKER_DIST[n] Reference mark distance for distance-coded Scales [encoder no.]: 0 ... max. no. of encoders 1 Default setting: 10 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: If the control detects that the distance between two reference marks exceeds 2 ENC_REFP_MARKER_DIST and is thus false, the machine accelerates to half the speed defined in MD 34040: REFP_VELO_SEARCH_MARKER (reference point creep velocity) in the opposite direction to the depressed travel key (plus or minus) and crosses two reference marks. If the control still detects that the distance between two reference marks exceeds 2 * ENC_REFP_MARKER_DIST, the axis remains stationary and alarm 20003 error in measurement system is output. Further information See Subsection 2.2.1 MD irrelevant for ... Measurement systems without distance-coded reference marks.
34310 MD number
ENC_MARKER_INC[n] Differential distance between two reference marks for distance-coded scales [encoder no.]: 0 .. max. no. of encoders 1 Default setting: 0,02 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: The differences between two reference marks are defined variably, so that the position of the crossed reference marks can be determined accurately in linear measurement systems. The difference between two reference marks is entered in the MD: ENC_MARKER_INC. In the example in Fig. 13, this value is 20.02 20 = 0.02 [mm] Fig. 2-12
2 10.04 20.02 20
4 10.06 20.02 20
6 10.08 20.02 20
8 10.10 20.02 20
10
20
DIADUR graduated glass scale with distance-coded reference marks Dimensions in mm for 20mm scale division MD irrelevant for ... Special cases, errors, ... The difference here between two reference marks is 0.02mm. Incremental measurement systems On linear measurement systems with distance-coded reference marks supplied by Heidenhain, the difference between two reference marks is always equal to one scale division.
1/R1/4-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
34320 MD number
ENC_INVERS[n] Linear measurement system inverse to machine system [encoder no.]: 0 ... max. no. of encoders 1 Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: D No effect with incremental measuring system irrelevant D With distance-coded measurement system: When setting the reference point, the actual position (determined by the distancecoded reference marks) on the linear measurement system is assigned to a precise machine axis position (in relation to the machine zero). This is achieved by entering the absolute offset on the linear measurement system in MD 34090: REFP_MOVE_DIST_CORR (reference point/absolute offset). Reference marker entered on the linear measurement system. MD ENC_INVERS must also be set in order to define whether the linear measurement system is installed in the non-inverse or inverse sense to the machine system.
Machine zero Noninverse (MD: ENC_INVERS = 0)
Fig. 14
Machine system
Reference mark
10
Machine system
Reference mark
10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/4-63
10.00
34330 MD number
REFP_STOP_AT_ABS_MARKER[n] Distance-coded linear measurement system without destination point [encoder no.]: 0 ... max. no. of encoders 1 Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: mm, degrees Data type: DOUBLE Applies from SW 1.1 Significance: D Distance-coded measurement system: REFP_STOP_AT_ABS_MARKER = 0: At the end of the reference cycle, the position entered in MD 34100: REFP_SET_POS is approached (normal case for phase 2). REFP_STOP_AT_ABS_MARKER = 1: The axis is braked after the second reference mark has been detected (reduction in phase 2) D Absolute value encoder: MD REFP_STOP_AT_ABS_MARKER defines the response of an axis with valid calibration identifier (MD 34210: ENC_REFP_STATE = 2) with G74 or when a travel key is actuated in JOGREF: REFP_STOP_AT_ABS_MARKER = 0: Axis travels to the position entered in MD: REFP_SET_POS REFP_STOP_AT_ABS_MARKER = 1: Axis does not travel. Application example(s) The MD: STOP_AT_ABS_MARKER must be enabled in order to inhibit the approach of a fixed destination point at the end of the reference point approach on linear measurement systems with distance-coded reference marks. In many cases, however, a fixed destination point is approached as on incremental measurement systems. MD irrelevant for ... Incremental encoders with zero mark (standard encoders) Related to .... MD 34100: REFP_SET_POS (reference point/destination point for distance-coded system)
1/R1/4-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Descriptions
5.1
5.1.1
Channel-specific signals
Signals to channel
DB21, ... DBX1.0 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Application example(s)
Related to ....
Activate referencing Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Channel-specific referencing is started with the Activate referencing interface signal. The control acknowledges a successful start with the referencing active interface signal Each machine axis assigned to the channel can be referenced with channel-specific referencing (this is achieved internally on the control by simulating the plus/minus travel keys). The axis-specific MD 34110: REFP_CYCLE_NR (Axis sequence for channel-specific Referencing) can be used to define the sequence in When all the axes are entered in MD: REFP_CYCLE_NR have reached their end points, the All axes referenced interface signal (DB21, ... DBX36.2) is enabled. If the machine axes are to be referenced in a particular sequence, the following options are available: D The operator observes the correct sequence on start-up D The PLC user program checks the sequence on start-up or defines the sequence itself D The channel-specific referencing function is used. IS referencing active (DB21, ... DBX33.0) IS All axes referenced (DB21, ... DBX36.2)
DB21, ... DBX33.0 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to ....
Referencing active Signal(s) to channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Channel-specific referencing has been started with the Activate referencing interface signal and successful start acknowledged with the Referencing active interface signal. Channel-specific referencing is operational. D Channel-specific referencing is finished D Axis-specific referencing in progress D No referencing active Spindles IS Activate referencing (DB21, ... DBX1.0)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/5-65
10.00
5.1.2
DB21, ... DBX36.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Signal state 0 or signal transition 1 > 0 Special cases, errors, ... Related to ....
All axes referenced Signal(s) from channel (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 All axes (linear axes and rotary axes) referenced. MD 20700: REFP_NC_START_LOCK (NC start disable without reference point) is zero. If two position measurement systems which would inhibit an NC start are connected to an axis, the active one must be referenced if the axis is to qualify as referenced. Only if this signal is present, NC Start command for parts program processing is accepted. The axes must have a reference point, if MD 34110: REFP_CYCLE_NR 1 and the axis is not in the parking position (position measurement system inactive and controller enable canceled) One or more axes on the channel have not been referenced. The spindles of the channel have no effect on this interface signal. IS Referenced/synchronized 1 (DB31, ... DBX60.4) IS Referenced/synchronized 2 (DB31, ... DBX60.5)
5.2
5.2.1
Axis/spindle-specific signals
Signals to axis/spindle
DB 31, ... DBX2.4 to 2.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s)
Reference point value 1 to 4 Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 When the machine axis arrives at the reference point, the NCK is informed which coded reference cam is approached. The Reference point value 1 to 4 interface signal must remain enabled until the reference point has been reached or until a new coded reference cam is approached. If the machine axis has arrived at the referenced point (the axis is stationary), the reference point value selected by the Reference point value 1 to 4 interface signal from MD 34100: REFP_SET_POS is accepted by the control as the new reference position. No effect Linear measurement systems with distancecoded reference marks On a machine tool with large traversing distances, four coded reference cams can be distributed over the entire distance traveled by the axis, four different reference points approached and the time required to reach a valid referenced point reduced. If the machine axis has arrived at the reference point and none of the four Reference point value 1 to 4 interface signals are enabled, the value of the reference point is automatically set to 1. MD 34100: REFP_SET_POS (reference point value)
Related to ....
1/R1/5-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
DB 31, ... DBX12.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Related to ....
Reference point approach delay Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The machine axis is positioned on the reference cam. The machine axis is positioned in front of the reference cam. A reference cam of appropriate length (to the end of the traversing range) has been used to prevent the machine axis from being positioned behind the referencing cam. Reference point value 1 to 4 interface signal (DB31, ... DBX2.4 to 2.7)
5.2.2
DB 31, ... DBX60.4 Data block Edge evaluation: Signal state 1 or signal transition 0 > 1
Referenced/synchronized 1 Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: Signal(s) valid from SW: 1.1 Axes: When, during a reference point approach, the machine axis has reached the reference point (incremental measurement systems) or destination point (linear measurement system with distance-coded reference marks), the machine axis is deemed to have been referenced and the Referenced/synchronized 1 interface signal (depending on which position measurement system is active during referencing) is enabled. Spindles: Following POWER ON, a spindle is synchronized, at the earliest, after one spindle revolution of 360 degrees (the zero mark has been crossed or the BERO proximity switch addressed). The machine axis/spindle with position measurement system 1 is not referenced/ synchronized. IS Synchronized 1 (DB31, ... DBX1.5) /FB/, S1, Spindles
DB 31, ... DBX60.5 Data block Edge evaluation: Signal state 1 or signal transition 0 > 1
Referenced/synchronized 2 Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: Signal(s) valid from SW: 1.1 Axes: When, during a reference point approach, the machine axis has reached the reference point (incremental measurement systems) or destination point (linear measurement system with distance-coded reference marks), the machine axis is deemed to have been referenced and the referenced/synchronized 2 interface signal (depending on which position measurement system is active during referencing) is enabled. Spindles: Following POWER ON, a spindle is synchronized, at the earliest, after one spindle revolution of 360 degrees (the zero mark has been crossed or the BERO proximity switch addressed). The machine axis/spindle with position measurement system 2 is not referenced/ synchronized. Axes: Alarm 21610 has been issued Spindles: Encoder limit frequency exceeded IS Synchronized 2 (DB31, ... DBX1.6), MD 34102 = 0 /FB/, S1, Spindles
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/5-67
10.00
Notes
1/R1/5-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Example
None
6
J
7
Name Reference
7.1
Interface signals
Bit, byte
DB number
Mode group-specific 11, ... 11, ... 11, ... 0.7 1.2 5.2 Mode group reset Machine function REF Active machine function REF K1 K1 K1
Channel-specific 21, ... 21, ... 21, ... 21, ... 21, ... Axis-specific 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 1.4 1.5 / 1.6 2.42.7 4.6 / 4.7 12.7 60.4 / 60.5 61.3 64.6 / 64.7 Follow-up mode (request) Position measurement system 1/Position measurement system 2 Reference point value 1 to 4 Traversing keys minus/plus Reference point approach delay Referenced, synchronized 1/Referenced, synchronized 2 Follow-up mode active Traverse command minus/plus A2 H1 H1 A2 A2 1.0 28.7 33.0 35.7 36.2 Activate referencing (MMC > PLC) REF Referencing active Reset All axes referenced K1 K1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/7-69
7.2
Number
Machine data
Identifier Name Reference
Channel-specific ($MC_ ... ) 20700 REFP_NC_START_LOCK NC start disable without reference point
Axis-specific ($MA_ ... ) 30200 30240 30242 30250 30330 30340 30355 31122 31123 34000 34010 34020 34030 34040 34050 34060 NUM_ENCS ENC_TYP ENC_IS_INDEPENDENT ACT_POS_ABS MODULO_RANGE MODULO_RANGE_START MISC_FUNCTION_MASK BERO_DELAY_TIME_PLUS BERO_DELAY_TIME_MINUS REFP_CAM_IS_ACTIVE REFP_CAM_DIR_IS_MINUS REFP_VELO_SEARCH_CAM REFP_MAX_CAM_DIST REFP_VELO_SEARCH_MARKER[n] REFP_SEARCH_MARKER_REVERSE[n] REFP_MAX_MARKER_DIST[n] Number of encoders Actual value encoder type Encoder is independent Absolute encoder position at time of deactivation. Magnitude of the modulo range Starting position of modulo range Axis functions BERO delay time in plus direction BERO delay time in minus direction Axis with reference cam Reference point approach in minus direction Reference point approach velocity Maximum distance to reference cam Reference point creep speed [encoder number] Change of direction on reference cam [encoder number] Maximum distance to reference mark; Maximum distance to 2 reference marks with distancecoded scales [encoder number] Reference point start velocity Reference point distance/destination for distancecoded system [encoder number] Reference point/absolute offset, distancecoded [encoder number] Electronic reference cam shift for incremental measurement systems with equidistant zero marks. Reference cam/reference mark distance Reference point value [reference point number] Actual value adjustment to the referencing measurement system Enable referencing in follow-up mode Axis sequence for channel-specific Referencing Polarity change of the BERO cam Referencing mode [encoder number] R2 R2 R2 S1 S1 G2 G2
1/R1/7-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.01 10.00
Axis-specific ($MA_ ... ) 34210 34220 34230 34232 34300 34310 ENC_REFP_STATE[n] ENC_ABS_TURNS_MODULO ENC_SERIAL_NUMBER EVERY_ENC_SERIAL_NUMBER ENC_REFP_MARKER_DIST[n] ENC_MARKER_INC[n] Status of absolute value encoder [encoder number] Absolute value encoder range for rotary encoders Encoder serial number Expansion of encoder serial number Reference marker distance with distancecoded scales [encoder number] Differential distance between two reference markers with distance-coded scales [encoder no.] Linear measuring system inverse to machine system [encoder number] Distancecoded linear measurement system without destination point [encoder number] Spindle speed tolerance Encoder limit frequency resynchronization Zero mark monitoring S1 A3 A3 R2
7.3
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/R1/7-71
10.00
Notes
1/R1/7-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Spindles (S1)
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.4 2.4.1 2.5 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 Spindle modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Spindle control mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Spindle mode oscillation mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Spindle positioning mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Default mode setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Referencing/synchronizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configurable gear adaption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gear stage for spindles and gear change . . . . . . . . . . . . . . . . . . . . . Encoder on intermediate gear (SW 6.4 and higher) . . . . . . . . . . . . . Non-acknowledge gear stage change (SW 5.3 and higher) . . . . . . Gear stage change with oscillation mode . . . . . . . . . . . . . . . . . . . . . . Gear stage change at fixed position (SW 5.3 and higher) . . . . . . . . Spindle auxiliary functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . No output of spindle auxiliary functions after block search (SW 5.3 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Selectable spindles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programing from the parts program . . . . . . . . . . . . . . . . . . . . . . . . . . Programming via synchronized actions . . . . . . . . . . . . . . . . . . . . . . . Programming spindle controls via the PLC with FC18 . . . . . . . . . . . Special spindle movements via the PLC interface (SW 6.1 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gear stage change in DryRun, Program Test and SERUPRO modes (SW 6.2 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming from external (PLC, MMC/HMI) . . . . . . . . . . . . . . . . . Spindle monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle stationary (n < nmin) . . . . . . . . . . . . . . . . . . . . . . . . . . . . Spindle in setpoint range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Minimum/maximum speed for the gear stage . . . . . . . . . . . . . . . . . . Maximum encoder limit frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . End point monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/S1/1-3 1/S1/2-5 1/S1/2-5 1/S1/2-7 1/S1/2-10 1/S1/2-10 1/S1/2-20 1/S1/2-23 1/S1/2-24 1/S1/2-28 1/S1/2-28 1/S1/2-35 1/S1/2-36 1/S1/2-37 1/S1/2-41 1/S1/2-45 1/S1/2-45 1/S1/2-48 1/S1/2-51 1/S1/2-51 1/S1/2-54 1/S1/2-55 1/S1/2-55 1/S1/2-62 1/S1/2-64 1/S1/2-65 1/S1/2-66 1/S1/2-66 1/S1/2-67 1/S1/2-67 1/S1/2-69
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/i
3 4
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.4 General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . Referencing/synchronizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intermediate gear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gear step change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Assignments/settings for spindle and spindle speed . . . . . . . . . . . . Spindle-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/S1/4-71 1/S1/4-71 1/S1/4-71 1/S1/4-73 1/S1/4-75 1/S1/4-75 1/S1/4-76 1/S1/4-77 1/S1/4-81 1/S1/4-92 1/S1/5-97 1/S1/5-97 1/S1/5-97 1/S1/5-103 1/S1/6-109 1/S1/6-109 1/S1/7-111 1/S1/7-111 1/S1/7-112 1/S1/7-114 1/S1/7-115 J
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.1.1 5.1.2 Axis/spindle-specific signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals to axis/spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Signals from axis/spindle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 7.4 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/S1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Brief Description
Application of spindles
The primary function of a spindle is to impart a rotary motion to a tool or workpiece, in order to facilitate machining. Depending on the type of machine, the spindle must support the following functions in order to achieve this:
S Definition of a direction of rotation for the spindle (M3, M4) S Definition of a spindle speed (S ...) S Spindle stop without orientation (M5) S Spindle stop with orientation/spindle positioning (SPOS, M19 and SPOSA) S Gear change (M40 to M45) S Spindle-axis functionality (spindle becomes rotary axis and vice versa) S Thread cutting (G33, G34, G35) S Tapping with and without compensating chuck (G331, G332) S Revolutional feedrate (G95) S Constant cutting rate G96, G961, G97, G971) S Programmable spindle speed limits (G25, G26, LIMS) S Position encoder assembly on the spindle or on the spindle motor S Spindle monitoring for min. and max. speed as well as
max. encoder limit frequency and end point monitoring of spindle
S Switching the position control (SPCON, SPCOF, M70) on/off S Programming of spindle functions
from the parts programs, via synchronized actions, via the PLC with FC18 or via the special spindle interface for simple spindle controls.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/1-3
10.00 10.00
Notes
1/S1/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Detailed Description
Max. number of spindles
The spindles can be assigned to the available channels.
Table 2-1 Maximum number of spindles Maximum number of spindles 1 2 2 5
2
Maximum number of channels 1 2 1 2
SINUMERIK 810D (CCU1) 810D (CCU2, SW 2.1 and lower) 840D (NCU 571) 840D (NCU 572/573) 840D (NCU 573, from SW 4.1) with 8MB DRAM with 32MB DRAM FM-NC (NCU 570)
31) 10 1
With SW 4.4 and higher, it is possible to configure each axis existing in the channel as a spindle. The number of axes per channel depends on the control version.
2.1
Spindle modes
Spindle modes
See Subsection 2.1.1 See Subsection 2.1.2 See Subsection 2.1.3 see /FB/ Part 2, Subsection 2.1.1
S Rigid tapping
see Feeds (V1), Subsection 2.1.5 References: /PA/, Programming Guide Fundamentals /PAZ/, Programming Guide: Cycles
1)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-5
10.00
Axis mode
The spindle can be switched from spindle mode to axis mode (rotary axis) if the same motor is used for spindle and axis operation:
S Axis mode
Changing the spindle mode
Interface signals or programming commands can be used to switch between the spindle modes and axis operation:
SPOS, M19, SPOSA Control mode SPCOF M3, M4, M5 M4145 SPCOF M3, M4, M5 M4145 M70 SPOS, M19 SPOSA Axis mode G332 G331 Axis name Positioning mode
Rigid tapping
Fig. 2-1
1/S1/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
2.1.1
S constant spindle speed S.... M3/M4/M5 and G93, G94, G95, G97, G971 S constant cutting rate G96/G961 S.... M3/M4/M5 S constant spindle speed S.... M3/M4/M5 and G33, G34, G35 S constant spindle speed S.... M3/M4/M5 and G63
Preconditions
S The spindle need not be synchronized S A spindle position actual value encoder is not required for M3/M4/M5 in
conjunction with time reciprocal feed coding (G93), feedrate in mm/min or inch/min (G94) and rigid tapping (G63). Feedrate in mm/min or inch/min (G94) and tapping with chuck (G63).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-7
10.00
Speed control mode is especially suitable when a constant spindle speed is required, but the position of the spindle is unimportant (e.g. constant milling speed for even appearance to the workpiece surface).
S The speed control mode is activated in the parts program with M3, M4, M5
or with SPCOF.
S The Control mode interface signal (DB31, ... DBX84.7) is set. S The IS Position controller active (DB31, ... DBX61.5) is reset if machining is
carried out without position control.
Position control is particularly suitable when the position of the spindle is required to be tracked over a longer period or when synchronous spindle setpoint value linkage is to be activated.
S Position control mode is activated in the parts program with SPCON (spindle
number).
S The IS Position controller active (DB31, ... DBX61.5) is enabled. S The acceleration in position control mode is defined in MD 35210:
GEAR_STEP_POSCTRL_ACCEL depending on the gear stage.
The MD 35040: SPIND_ACTIVE_AFTER_RESET defines how the spindle behaves after a reset or program end (M2, M30):
1/S1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Spindle actual speed display and spindle behavior with G96, G961
The MD 36060: STANDSTILL_VELO_TOL is used to set the speed at which the spindle is considered stationary. When doing so, the speed set in the machine data should be dimensioned such that the IS Axis/spindle stationary (DB31, ...DBX61.4) is reliably present at a standstill.
S The signals nIst = nSoll (DB31, ... DBX83.5) and Set speed limited
(DB31, ... DBX83.1) are also set to a defined state for high speed changes (face axis travels to position 0).
S When the speed falls below the minimum speed or if the signal Axis/spindle
stationary is recognized (DB31, ... DBX61.4) the signal nIst = nSoll (DB31, ... DBX83.5) is reset. (e.g. for machine emergency strategy).
S The IS Gear changed (DB31, ... DBX16.3) tells the NC that the new gear
stage (IS Actual gear stages A to C (DB31, ... DBX16.016.2)) applies and oscillation mode is quitted. It does not matter whether IS Oscillation speed (DB31, ... DBX18.5) is still set. The actual gear stage should correspond to the set gear stage. Otherwise, alarm 22010 is signaled if MD 11410: SUPPRESS_ALARM_MASK, Bit 3 = 0. The actual gear stage reported is relevant for selection of the set of parameters.
S After the gear stage change has been acknowledged by the PLC (DB31, ...;
DBX16.3), the spindle is in speed control mode (DB31, ... DBX84.7 = 1). DBX84.7 = 1). If a direction of rotation (M3, M4, M5 or FC18: Start spindle rotation), then the last speed and direction of rotation will become active again after the gear stage change.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-9
10.00
2.1.2
Scope
Oscillation mode is activated for the spindle during the gear stage change. For a detailed description of the method of operation of the spindle mode oscillation mode, please refer to the Subsection 2.3.4 Gear stage change with oscillation mode.
2.1.3
The spindle positioning mode stops the spindle at the defined position and activates the position control, which remains active until it is deactivated. The spindle is in positioning mode with the following functions. The parameter [n] with, where n=spindle number, is not required for the main spindle.
S SPOS [n] = ..... S SPOS [n] = ACP( .....) S SPOS [n] = ACN( .....) S SPOS [n] = AC( .....) S SPOS [n] = IC( .....) S SPOS [n] = DC( .....) S SPOSA [n] = ACP( .....) S SPOSA [n] = ACN( .....) S SPOSA [n] = AC( .....) S SPOSA [n] = IC( .....) S SPOSA [n]=DC(.....) identical to SPOSA [n]= ..... S M19 or M [n]=19
SPOS [n] = AC(.....)
Spindle positioning to an absolute position (0 to 359.999 degrees). The positioning direction is determined either by the current direction of spindle rotation (spindle is rotating) or the distancetogo.
Spindle positioning to an incremental position (+/ 999999.99 degrees) in relation to the last programmed position. The positioning direction is defined by the sign of the distance to be traveled.
Spindle positioning across the shortest path to an absolute position (0 to 359.999 degrees). The positioning direction is determined either by the current direction of spindle rotation (spindle is rotating) or automatically by the control (spindle is stationary).
1/S1/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Approaches the position from the plus direction. When positioning form a negative direction of rotation, the speed is brought to a halt and accelerated in the opposite direction to execute the positive approach.
SPOS [n]=ACN(....)
Approaches the position from the negative direction. When positioning form a positive direction of rotation, the speed is brought to a halt and accelerated in the opposite direction to execute the negative approach.
In order to achieve consistency in the response at the VDI interface for M19 and SPOS or SPOSA, it can be programmed to output the auxiliary function M19 at the VDI interface with SPOS and SPOSA and MD 20850: SPOS_TO_VDI = 1 is entered. After activation the minimum duration of a SPOS/SPOSA block is increased to the time for output and acknowledgment of the auxiliary function by the PLC.
M19 can be used to position the spindle. The position and the position approach mode are read from SD 43240: M19_SPOS and SD 43250: M19_SPOSMODE. The positioning possibilities with M19 are identical to those of SPOS = < > <>. M19 is output as an auxiliary function at the VDI interface as an alternative to M3, M4, M5 and M70. The M19 block remains active in the interpolator for the duration of the positioning (like SPOS). Parts programs using M19 as a macro (e.g. DEFINE M19 AS SPOS = 0) or as a subroutine continue to remain executable. For the sake of compatibility to previous controls, the internal processing of M19 (NCK positions the spindle) can be disabled as shown in the following example: MD 22000: AUXFU_ASSIGN_GROUP[0] = 4 MD 22010: AUXFU_ASSIGN_TYPE[0] = M MD 22020: AUXFU_ASSIGN_EXTENSION[0] = 0 MD 22030: AUXFU_ASSIGN_VALUE[0] = 19 ; Auxiliary function group: 4 ; Auxiliary function type: M ; AuxFuncExtension: 0 ; Auxiliary function value: 19
The positioning data for M19 are stored in the axis-specific setting data SD 43240: M19_SPOS[n] (position) and SD 43250: M19_SPOSMODE[n] (position approach mode).
End of movement before reaching Exact stop fine (DB31, ... DBX60.7) End of movement before reaching Exact stop coarse (DB31, ... DBX60.6) Motion ends when IPO Stop is reached
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-11
Block change
Note For further explanations on the settable block change time of settable positioning axes for single axis interpolation, please refer to: References: /FB/, P2, Positioning Axes
SPOS, M19 and SPOSA have the same functionality, but differ in their block change behavior:
Coordination
for main spindle for main spindles and other spindles for several spindles up to the maximum
The execution of the following blocks is suspended until the spindle or spindles programmed with SPOSA have reached their positions (see end position).
The output of the auxiliary function M19 to the VDI interface is carried out by:
always output to the interface output of M19 to the interface with MD 20850 = 1 output of M19 to the interface with MD 20850 = 1.
If M19 is programmed, the auxiliary function M [n]=19 is always output to the interface. In the case of SPOS and SPOSA, M19 is output to the interface depending MD 20850: SPOS_TO_VDI.
1/S1/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Feedrate
The positioning velocity is configured by MD 35300: SPIND_POSCTRL_VELO and can be changed by programming or by using synchronized actions:
S FA[Sn] S FA[Sn]=0
Acceleration
The dynamic response during positioning can be modified by programming or by synchronized actions:
S ACC[Sn] S ACC[Sn]=0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-13
10.00
S Case 1: Spindle in speed control mode, encoder limit frequency exceeded S Case 2: Spindle in speed control mode, encoder limit frequency not
exceeded
S Case 3: Spindle in position control mode S Case 4: Spindle speed < position control activation speed
Speed (rev/min)
Phase 1a (special case) 10% control reserve MD 36300: ENC_FREQ_LIMIT encoder limit frequency Phase 1b Phase 2 MD 36302: ENC_FREQ_LIMIT_LOW encoder limit frequency resynchronization Phase 3 Phase 1c (Phase 4a) Phase 4 MD 35300: SPIND_POSCTRL_VELO position control activation speed
(Phase 5a) Phase 5 Time (t) SPOS[1]=180 Fig. 2-2 Positioning from rotation
Note The speed in MD 36302: ENC_FREQ_LOW must be greater than the position control activation speed (MD 35300: SPIND_POSCTRL_VELO).
Phase 1
Possible positioning from phase 1a: The spindle is rotating at a higher speed than the encoder limit frequency. It is not synchronized. Possible positioning from phase 1b: Spindle rotates at a lower speed than the encoder limit frequency. It is synchronized.
1/S1/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Note If the position control is activated, the speed can only amount to 90% of the maximum speed of the spindle or the encoder limit frequency (10% control reserve required).
Possible positioning from Phase 1c: The spindle is rotating at the programmed spindle speed, which is lower than that defined in MD 35300: SPIND_POSCTRL_VELO (position control activation speed). It is synchronized.
Phase 2
Phase 3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-15
10.00
Phase 4
Phase 5
Note The maximum encoder limit frequency of the spindle position actual value encoder is monitored by the control (overstepping is possible); in position control mode, the setpoint speed is reduced to 90% of the measurement system limit speed. In this case, the Programmed speed too high interface signal is enabled. If MS limit frequency exceeded is still detected after a reduction in the setpoint speed, then an alarm is output.
Note The positioning operation is considered completed when the end-of-positioning criterion is signaled (see Positioning end). This requires Exact stop fine. This applies to SPOS, M19 or SPOSA from the parts program, synchronized actions and spindle positioning by the PLC using FC 18.
1/S1/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
S Case 2: It is synchronized. This is the case if, after switching on the control
and drive, the spindle is to be rotated through a minimum of one revolution with M3 or M4 and then stopped with M5 (synchronization with the zero mark).
SPOS[1]=180
3 1
Time (s)
3a
4a SPOS[1]=180
Time (s)
Fig. 2-3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-17
10.00
Phase 1
Phase 2
1/S1/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Phase 3
At the instant in time detected by the brake start point calculation in phase 1, the spindle brakes down to standstill at the acceleration set in MD 35210: GEAR_STEP_POSCTRL_ACCEL down to a standstill. Phase 3a: As command SPOS takes effect, the destination point is so close that the spindle can no longer be accelerated to the value in MD 35300: SPIND_POSCTRL_VELO. The spindle is braked down to a standstill at the acceleration set in MD 35210: GEAR_STEP_POSCTRL_ACCEL.
Phase 4, 4a
The spindle is stationary and has reached the destination point. The position control is active and holds the spindle in the programmed position. The IS Position reached with exact stop coarse/fine (DB31, ... DBX60.6 und DBX60.7) are set if the distance between the spindle actual position and the programmed position (spindle setpoint position) is less than the settings for the exact stop fine and coarse limits (defined in MD 36010: STOP_LIMIT_FINE and MD 36000: STOP_LIMIT_COARSE). Phase 3: At the instant in time detected by the brake start point calculation in phase 2, the spindle brakes down to standstill at the acceleration set in MD 35210: GEAR_STEP_POSCTRL_ACCEL down to a standstill. Phase 4: The spindle is stationary and has reached the destination point. The position control is active and holds the spindle in the programmed position. The IS Position reached with exact stop fine/coarse are set if the distance between the spindle actual position and the programmed position (spindle setpoint position) is less than the settings for the exact stop fine and coarse limits (defined in MD 36010: STOP_LIMIT_FINE and MD 36000: STOP_LIMIT_COARSE).
The positioning process can be interrupted with the Delete distance-to-go/ spindle reset interface signal. The positioning process is interrupted with each RESET (operator panel reset/Delete distance-to-go/spindle RESET interface signal), independent of MD 35040: SPIND_ACTIVE_AFTER_RESET (own spindle reset).
S The spindle override switch is active. S The positioning (SPOS, M19 and SPOSA) is canceled with each Reset. S Positioning is canceled with NC stop. S The positioning velocity can also be programmed with FA[Sn].
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-19
10.00
2.1.4
Axis mode
For certain machining tasks (e.g. on turning machines with end face machining), the spindle not only has to be rotated with M3, M4 and M5 and positioned with SPOS, M19 and SPOSA, but also addressed as an axis with its own identifier (e.g. C).
Preconditions
S The same spindle motor is used for spindle mode and axis mode. S The same position measurement system or separate position measurement
systems can be used for spindle mode and axis mode.
S A position actual value encoder is a mandatory requirement for axis mode. S If the axis is not synchronized, e.g. M70 is programmed after POWER ON,
first the axis must be referenced with G74. Only then does the mechanical position match the programmed one. Example: M70 G74 C1=0 Z100 G0 C180 X50
The M function used to switch the spindle to axis mode can be configured in MD 20094: SPIND_RIGID_TAPPING_M_NR. In default condition, the value 70 is set.
If the axis mode is active and the rotary axis referenced, all axis functions can be used. References: /FB/, R2, Rotary Axes
S Programming with axis name S Use of zero offsets (G54, G55, TRANS, ...) S G90, G91, IC, AC, DC, ACP, ACN S Use of kinematic transformations (e.g. transmit) S Interpolation with other axes (path interpolation) S Programming as a positioning axis
1/S1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
S The feed override switch is active. S IS Reset (DB21, ... DBX7.7) does not terminate the axis mode. S Interface signals DBB16 to DBB19 and DBB82 to DBB91 in DB31, ... are
irrelevant if the axis/no spindle interface signal (DB31, ... DBX60.0) is set to zero. DB31, ... are irrelevant if the axis/no spindle interface signal (DB31, ... DBX60.0) is set to zero.
S Axis mode can be activated in all gear stages. If the position actual value
encoder is installed on the motor (indirect measurement system), the positioning and contouring accuracy can vary for the different gear stages.
S The gear stage cannot be changed when the axis mode is active. The
spindle must be switched to control mode This is done using M41 ... M45 or M5, SPCOF.
S In axis mode, the machine data of the set of parameters with index zero are
effective in order to carry out adaptation in this mode. For further notes of the parameter block for the interpolation parameters for axis or spindle modes with 5 gear stages, see Section 2.3 Configurable gears.
S The spindle with its axis name or using M70 and the M function MD 20094:
SPIND_RIGID_TAPPING_M_NR (SW 5.3 and higher).
S The following are the relevant machine data for changing the servo
parameter set: MD 31050: DRIVE_AX_RATIO_DENOM (denominator measuring gearbox) MD 31060: DRIVE_AX_RATIO_NUMERA (numerator load gearbox) MD 32200: POSCTRL_GAIN (servo gain factor) MD 32452: BACKLASH_FACTOR (weighting factor for backlash) MD 32610: VELO_FFW_WEIGHT (weighting factor for feedforward control) MD 32800: EQUIV_CURRCTRL_TIME (equivalent time constant current circuit for feedforward control) MD 32810: EQUIV_SPEEDCTRL_TIME (equivalent time constant speed control circuit for feedforward control) MD 32910: DYN_MATCH_TIME (time constant for dynamic matching) MD 36012: STOP_LIMIT_FACTOR factor for exact stop coarse/fine and zero speed monitoring) MD 36200: AX_VELO_LIMIT (threshold value for velocity monitoring)
S The dynamic limits of the axis stored in the machine data are applicable in
axis operation.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-21
10.00
S The feedforward control function is always activated, except for tapping with
compensating chuck. This is achieved by entering the absolute offset between the machine zero and the position of the 1st FFW_MODE (feedforward type) must always have a value different from 0.
S The feedforward control should always be operated with the value 100%,
since alarms could otherwise be produced during positioning.
Parameter set
Axis mode
Spindle mode
0 1 2 3 4 5
Fig. 2-4
1/S1/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
2.1.5
Machine data
With the default setting of the spindle operating mode, the basic spindle setting after POWER ON, NCSTART and RESET can be configured by means of machine data: MD 35020: SPIND_DEFAULT_MODE and MD 35030: SPIND_DEFAULT_ACT_MASK SPIND_DEFAULT_ACT_MASK Refer to Section 4.2 for information on setting the machine data.
MD 35030: SPIND_DEFAULT_ACT_MASK
RESET 2
NC-START 1
Power ON 0 0 Speed mode w/o pos. contr. 1 Speed mode with pos. contr. 2 Positioning mode 3 Axis mode
Default setting
MD 35020: SPIND_DEFAULT_MODE Fig. 2-5 Settable defaults for spindle operating mode
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-23
10.00
2.2
Referencing/synchronizing
Note For explanations on spindle synchronization and rotary axis referencing, please refer to: References: /FB/, R1, Reference Point Approach
Why synchronize?
The control must be synchronized with the position measurement system on the spindle so that the control can know the exact position when switched on. This process is known as synchronization. Only a synchronized spindle can be used for:
S Directly on the spindle S On the spindle via a measurement gearbox in combination with a Bero
proximity switch on the spindle as a zero mark encoder (only with ratios not equal to 1:1). Where two position measurement systems are provided, both of them can be installed at the same location or separately.
1/S1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
Sequence synchronization
When the spindle is switched on, the spindle can be synchronized as follows:
S The spindle is started with a spindle speed (S value) and a spindle rotation
(M3 or M4) and synchronized with the next zero mark of the position measurement system or with the next Bero signal.
S The spindle can be synchronized from the movement (after M3 or M4) using
SPOS, M19 or SPOSA. The responses are as follows: SPOS = Pos, SPOS = DC(Pos) and SPOS = AC(Pos) retains the direction of motion and the position is approached. With SPOS = ACN(Pos) or SPOS = ACP(Pos), the position is always approached with negative or positive direction of motion. If necessary, the direction of motion is inverted prior to positioning.
S If does not make any difference whether the procedure is initiated from the
parts program, FC 18 or synchronized actions.
S Crossing the zero mark in JOG mode by means of direction keys in speed
control mode.
Note During synchronization of the spindle, all four possible reference point values and reference point offsets are effective as appropriate to the measurement system selected. The offset to the measurement system is analogous. The following machine data must be observed: MD 34080: REFP_MOVE_DIST (reference point distance/destination point for distance-coded system) MD 34090: REFP_MOVE_DIST_CORR (reference point offset/absolute offset, distance-coded) MD 34100: REFP_SET_POS (reference point value, irrelevant for distance-coded system).
Note If a non-referenced spindle with SPOS=IC(...) and a path < 360 degrees is positioned, it can happen that the zero mark is not crossed and the spindle position is still not synchronized with the zero mark. This can happen:
S After POWER ON S By setting the axial IS Resynchronize spindle when positioning 2 and 1
(DB31, ...DBX17.5 and 7.4)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-25
10.00
The position falsification caused by the BERO signal delay can be corrected internally in the NC by entered a signal runtime compensation value. The MD 31122: BERO_DELAY_TIME_PLUS or MD 31123: BERO_DELAY_TIME_MINUS contain a signal runtime compensation value (dead time) for positive or negative direction of movement together with the setting MD 34200: ENC_REFP_MODE = 2 or 7 (from SW 4.1).
Note Compensation of the signal runtime by the NC requires the use of type 611D drives. The signal run times are preset on delivery so that the contents generally do not have to be changed.
Referencing sequence
If the spindle is to be programmed in axis mode directly after control power-up, it must be ensured that the axis is referenced. When the control is switched on, the spindle can be synchronized as follows (condition is one zero mark per revolution):
S The rotary axis is referenced at the same time that the spindle is
synchronized (see synchronization procedure) if the position measurement system used for the spindle is also used for the rotary axis.
The spindle can be switched from spindle mode to axis mode (rotary axis) if a single motor is used for spindle and axis mode. Please refer to Section 2.1 for details of how to switch the spindle between spindle and axis mode. The spindle (spindle mode and axis mode) can be equipped with one or two position measurement systems. With two position measurement systems, it is possible to assign one position measurement system to the spindle and the other to the rotary axis, or to assign two position measurement systems to the spindle. Where two position measurement systems are provided, both are updated by the control, but only one can be active. The position measurement system 1 and 2 interface signal (DB31, ... DBX1.5 and DBX1.6) is used to select the active position measurement system.
1/S1/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
The active position measurement system is required for the following functions:
S Position control of the spindle (SPCON) S Spindle positioning (SPOS, M19 and SPOSA) S Thread cutting (G33, G34, G35) S Tapping without compensating chuck (G331, G332) S Revolutional feedrate (G95) S Constant cutting rate G96, G961, G97, G971) S Spindle speed display S Axis mode S Synchronous spindle setpoint value linkage.
IS Resynchronize spindle DB31, ... DBX16.4
In the following cases, the spindle position measurement system must be resynchronized:
S The machine has a selector switch for a vertical and horizontal spindle. Two
different position encoders are used (one for the vertical spindle and one for the horizontal spindle), but only one actual value input is used on the control. When the system switches from the vertical to the horizontal spindle, the spindle must be resynchronized. This synchronization is initiated using the IS Resynchronize spindle 1 (DB31, ... (DB31, ... DBX16.4) or the IS Resynchronize spindle 2 (DB31, ... DBX16.5). The spindle must be in control mode.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-27
10.00
2.3
2.3.1
Gear stages are used on spindles to step down the speed of revolution of the motor in order to generate a high torque at low spindle speeds.
5 gear stages can be configured for each spindle. If the spindle motor installed on the spindle has a direct transmission ratio (1:1) or an invariable transmission, MD 35010: GEAR_STEP_CHANGE_ENABLE must be set to zero. In this case, the 1st gear stage is active. This is the default setting.
By configuring MD 35010: GEAR_STEP_CHANGE_ENABLE (Gear stage change possible), the GSC type can be defined as follows:
A gear stage change can be requested: 1. In the parts program automatically through programmed spindle speed for M40 without S or through programming with M41 to M45 2. By the PLC using the function module FC 18 (SW 4.4 or higher) 3. From synchronized actions with M40 and S or M41 to M45 (SW 6.2 and higher) 4. In reset status, by describing the VDI interface. Especially after a POWER ON, the NC can be notified of the currents gear stage. 5. In reset state on NC stop For a manually changes gear state directly at the installation location.
1/S1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
Gear stage selection between two gear stages with specification of a maximum spindle speed is shown in the example below:
With automatic gear stage selection, this speed range is not utilized in gear stage 1.
Gear step 2
With MD 35110: GEAR_STEP_MAX_VELO: D n1max ...maximum spindle speed of 1st gear stage D g1min ... minimum spindle speed of 1st gear stage for automatic gear stage selection D g1max ...maximum spindle speed of 1st gear stage for automatic gear stage selection D n2max ...maximum spindle speed of 2nd gear stage D g2min ... minimum spindle speed of 2nd gear stage for automatic gear stage selection D g2max ...maximum spindle speed of 2nd gear stage for for automatic gear stage selection
Fig. 2-6
On gear stage change, interpolation parameters and, in the standard case, also servo parameters sets of the position controller are activated according to MD 35590: PARAMSET_CHANGE_ENABLE. Servo parameter sets of the position controller 1 to 6: The servo parameter set are used quickly adapt the position controller to changed properties of the machine during operation on gear change of the spindle. If the spindle is operating in axis mode, the new gear stage is stored internally and parameter set index 0 remains active in the servo. The new gear stage is activated when the spindle is next programmed.
Note For further notes on control and servo parameter set, see: References: /FB/, G2 Velocities, Setpoint/Actual Value Systems, Closed-Loop Control /PGA/, Chapter 5, Programmable Servo Parameter Set
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-29
10.00
The Interpolation parameters specify the gear stages 1 to 5 at the VDI interface for Set gear stage A to C (DB31, ... DBX82.082.2). Depending on Actual gear stages A to C (DB31, ... DBX16.016.2), the corresponding servo parameter set is activated. One set of parameters, with the following assignment, is provided from the NC for each of the 5 gear stages:
Data block Spindle data Data for axis mode Data for 1st gear stage Data for 2nd gear stage Data for 3rd gear stage Data for 4th gear stage Data for 5th gear stage VDI interface * 000 001 010 011 100 101 110 111 Parameter set index n 0 1 2 3 4 5 Date/contents of the data block Monitoring M40 speed Min/max speed Acceleration Servo gain factor Transmission ratio
* the last active gear stage The parameter sets of gear stages 1 to 5 can be configured with the following machine data: Speed min/max: MD 35110: GEAR_STEP_MAX_VELO_LIMIT[n] maximum for gear stage MD 35120: GEAR_STEP_MIN_VELO_LIMIT[n] minimum for gear stage MD 35130: GEAR_STEP_MAX_VELO_LIMIT[n] maximum for gear stage MD 35140: GEAR_STEP_MIN_VELO_LIMIT[n] minimum for gear stage Acceleration in: MD 35200: GEAR_STEP_SPEEDCTRL_ACCEL[n] speed control mode MD 35210: GEAR_STEP_POSCTRL_ACCEL[n] position control mode MD 35012: GEAR_STEP_CHANGE_POSITION[n] gear stage change position
The gear stage will also switch over the set of servo parameters if the machine data MD 35590: PARAMSET_CHANGE_ENABLE = 0 or = 1. When
S 0: parameter set changes cannot be controlled. S 1: the servo parameter set is specified as priority by the internal
NC changeover at the VDI interface. If no influence to the parameter set change is possible, the following applies: For axes, the 1st parameter set with index 0 is always active. For spindles, the 2nd to 6th parameter set is always active depending on the gear stage plus one engaged. On stipulation of the servo parameter set by the VDI interface, parameter sets 1 to 6 can be activated via indices 0 to 5. The following applies: For the axes involved, the parameter set number the corresponds to the master spindle gear stage incremented by one is active. This corresponds to the parameter set numbers 2 to 6. For spindles, the 2nd to 6th parameter set is always active depending on the gear stage plus one engaged. When MD 35590: PARAMSET_CHANGE_ENABLE = 2, the servo parameter set is stipulated by the PLC. A gear stage can be specified by the PLC at any time.
1/S1/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
If the new gear stage is preselected, the following sequence applies: IS Set gear step A to C (DB31, ... DBX82.082.2) and IS Change gear (DB31, ... DBX82.3) are set. At the point when the oscillation speed interface signal (DB31, ... DBX18.5) is enabled, the spindle decelerates to a stop with the acceleration of oscillation or with the acceleration for speed control/position control. At the latest when the spindle has come to a standstill (Axis/spindle stationary interface signal (DB31, ... Oscillation is started with the oscillation speed interface signal (DB31, ... DBX18.5) (see Subsection 2.3.4 Gear stage change in oscillation mode). In principle, the new gear stage can also be engaged without oscillation (see Subsection 2.3.5 Gear stage change at fixed position). When the new gear is engaged, the IS Actual gear stages A to C (DB31, ... DBX16.016.2) and IS Gear changed (DB31, ... DBX16.3).
The gear stage change is considered completed (spindle mode Oscillation mode is deselected) and the spindle is switched to the parameter block of the new actual gear stage. The IS Change gear (DB31, ... DBX82.3) is reset by the NCK, whereupon the PLC program resets the IS Gear changed. The IS Gear changed (DB31, ... DBX16.3) informs the NC that the new gear stage is valid using IS Actual gear stage A to C (DB31, ... DBX16.016.2) and that oscillation mode is being terminated. It does not matter whether IS Oscillation speed (DB31, ... DBX18.5) is still set. The actual gear stage, which should correspond to the set gear stage, is relevant for selecting the parameter set. If this is not the case, Alarm 22010 is signalled on MD11410: SUPPRESS_ALARM_MASK, Bit 3 = 0. After acknowledgement of the gear stage change by the PLC with IS Gear changed (DB31, ... DBX16.3) DBX16.3), the spindle is in speed control mode (DB31, ... DBX84.7). For further notes on signal exchange between PLC and NC, see: References: /FB1/, A2, Various Interface Signals, Section 2.7
In the case of M40, the spindle must be in control mode for automatic gear stage selection with an S value. Otherwise, the gear stage change is rejected and Alarm 22000 Gear stage change not possible set. Automatic selection for active M40 The gear stage is selected automatically by the control. The control checks which gear stage is possible for the programmed spindle speed (S value). If the suggested gear stage is not equal to the current (actual) gear step, the Change gear interface signal and the Set gear stage A to C interface signals are enabled. When determining the matching gear stage, a gear stage change is requested only if the new speed lies in the permiisible speed range for the active gear stage. If necessary the speed is limited to the maximum speed of the current gear stage or increased to the minimum speed of the current gear stage, and the IS Programmed speed too high or Programmed speed too low is enabled.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-31
10.00
Speed (rev/min) Maximum spindle speed Maximum speed of gear stage 2 Maximum speed for gear change 2
Minimum speed for gear stage 2 Minimum speed for gear change 1 Minimum speed for gear stage 1
Gear step 1 Gear step 2
Fig. 2-7
Example for two gear stages with overlapping speed ranges for automatic gear stage change (M40)
Fixed gear stage specified with M41 to M45 The gear stage can be permanently defined in the parts program with M41 to M45. If a gear stage is defined by M41 to M45, which is different than the current (actual) gear stage, the IS Switch gear (DB31, ... DBX82.3) and Set gear stage A to C interface signals are enabled. The programmed spindle speed (S value) then refers to this permanently defined gear stage. If a spindle speed is programmed above the maximum speed for the fixed gear stage, the speed is limited to the maximum speed of the gear stage MD 35130: GEAR_STEP_MAX_VELO_LIMIT and Programmed speed too high (DB31, ... DBX83.0) is set.
Block change
When a gear stage change is programmed in the parts program, the gear change block remains active until the gear has been changed by the PLC (same effect as if IS Read-in disable (DB21, ...DBX6.1) were set).
1/S1/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
The gear stage change can also be performed by function block FC18 during a parts program, in the reset state or in all operating modes. If the speed and direction of rotation is specified with FC18, the NC can be requested to select the spped to match the gear stage. This corresponds to an automatic gear stage change with M40. The gear stage is not changed if the spindle is positioned by FC18 or if traversing in axis mode. For further note on function block FC18, please refer to: References: /FB1/, P1, FC18: SpinCtrl Spindle control
3. Specifying a gear stage with synchronized actions (SW 6.2 and higher)
S automatic gear stage selection with M40 with S or with S specification of gear stages 1 to 5 with M41 to M45.
The gear stage is not changed if the spindle is positioned by synchronized actions or if traversing in axis mode. For further information about how to program the gear stage change with synchroniyed actions, see Section 2.6 Programming.
Outside a parts program that is running, the gear stage can also be changed even without a request from the NC or the machine. This is the case, for example, when a gear stage is changed directly by hand. To select the matching parameter sets, the NC must be informed of the current gear stage. For this to work, the control or the parts program must be in the reset state. Supplementary conditions Transfer of the gear stage to the NC is initiated when IS Actual gear stage A to C (DB31, ... DBX16.016.2) changes. These three bits must be set continuously during operation. Successful transfer is acknowledged with IS Set gear stage A to C (DB31, ... DBX82.082.2) to the PLC. The IS Gear changed (DB31, ... DBX16.3) does not have to be set. If the position controller is active at the time when a new gear stage is specified by the PLC with IS Actual gear stage A to C (DB31, ... DBX16.016.2), it is deactivated for the duration of this gear change process.
Spindle stop through NST NC Stop (DB21, ... DBX7.4) is not possible if
S the spindle is in oscillation mode for a gear change S IS Gear changed (DB31, ... DBX16.3) not yet present.
Note Option for aborting: IS Delete distance-to-go/Spindle Reset (DB31, ... DBX2.2) or IS Gear changed (DB31, ... DBX16.3) with corresponding checkback signal of the actual gear stage (IS Actual gear stage DB31, ... DBX16.016.2) changes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-33
06.03 10.00
How the spindle behaves once the gear stage has been changed depends on the following initial conditions:
S If the spindle was in the stop stage before the gear stage change (M5,
FC18: Stop rotate spindle), in positioning or axis mode, M5 (spindle stop) is active after completion of the gear stage change.
The following points must be observed on gear stage change: 1. The gear stage change is not terminated by selecting IS Ramp-up changeover to V/f mode (DB31, ... DBX20.1). The setpoint 0 is output. The acknowledgment of the gear stage change is carried out as usual by the PLC signal Gear changed (DB31... DBX16.3). 2. The signal Ramp function generator rapid stop must be reset by the PLC before the gear stage change is ended by the PLC. 3. The gear stage change procedure is terminated without an alarm output on an NC reset. The gear stage signalled in IS Actual gear stages A to C (DB31, ... DBX16.016.2) is accepted by the NC.
As from SW 6.4, digital main spindle drives can be switched over in both directions from star to delta via FC17 even with the spindle running. This automatic switchover is controlled by a defined switchover logic in the FC17, which provides a user-programmable switchover time for the relevant spindle. For further information on the function block FC17 please refer to: References: /FB1/, P3, FC17: Y/Delta Star/delta switchover
In axis mode, it is possible to configure positive or negative load gear factors for each gear stage. The setting is defined in machine data MD 31060: DRIVE_AX_RATIO_NUMERA. The setting range is the same size for positive and negative load gear factors. It is not possible to enter the value 0. In this case, alarm 17095 is output.
Note The reference will be lost if an indirect encoder is configured and the load gear ratio changes. The IS Referenced/synchronized 1 or 2 (DB31, ... DBX60.4/60.5) is reset for the relevant measuring system.
1/S1/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.3.2
Using a configured intermediate gear, it is possible to adapt a variety of rotating tools. The intermediate gear at the tool side has a multiplicative effect on the motor/load gear. It is set via the machine data MD 31066: DRIVE_AX_RATIO_NUMERA DRIVE_AX_RATIO_DENOM numerator load gearbox denominator load gearbox
An encoder present on the tool side for the intermediate gear is configured using MD 31044: ENC_IS_DIRECT2 Encoder on intermediate gear. Change parameters for these machine data can be activated with NewConfig either using the commissioning software SinuCOM-NC or via the operator panel HMI per soft key. The existing motor/load gear, on the other hand, are active after Power On.
Tool change
If the intermediate gear is also changed on tool change, the user must also reconfigure the transmission ratio of the numerator and denominator via the machine data of the intermediate gear. Example: For a new tool inserted with a transmission ratio of 2:1, a matching intermediate gear is configued and is active immediately in the parts program with the command NEWCONF.
N05 $MA_DRIVE_AX_RATIO2NUMERA[AX5] = 2 M10 $MA_DRIVE_AX_RATIO2DENOM[AX5] = 1 N15 NEWCONF
Caution It remains the task of the user to stop within the appropriate period in order to make changes to the machine data when required and then active activate a NewConfig.
Switchover
Changeover to a new transmission ratio is performed immediately by means of NewConfig. From a technological viewpoint, the associated mechanical changeover process takes some time, since a different intermediate header with rotating tool is replaced.
Note At yero speed, changeover is jerk-free. The user is therefore responsible for taking appropriate precautions. Applications in which changeover takes place during motions and which require a smooth or soft speed transition can be handles using existing speed setpoint filters. For further details on control interdependencies, refer to: References: /FB/, G2 Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-35
11.02 10.00
2.3.3
Mode change
A gear stage change not acknowledged cannot be interrupted by a mode change (e.g. switching over to JOG). The switchover is delayed by the time entered in MD 10192: GEAR_CHANGE_WAIT_TIME as the maximum. If the gear stage change is not acknowledged within this time, the NC will provide one of the following two alarms:
S 16938: If the program interruption has occurred during the program status
Running.
Further events
Events that initiate reorganizing will also wait until a gear stage change is completed. The time set in machine data MD 10192: GEAR_CHANGE_WAIT_TIME will now determine how long it is waited for the gear stage change. If this time expires without ending the gear stage change, the NC will also react with the alarms mentioned above. The following events have an analog response:
S User ASUB S Mode change S Delete distance-to-go S Axis change S Activate PI user data S Enable PI service machine data S Switch over skip block, switch over Dry Run S Editing in the modes S Correction block alarms S Overstore S Rapid retraction with G33, G34, G35 S Subroutine level abortion, subroutine abortion
Response after POWER ON
The active gear stage on the machine can be specified by the PLC control after POWER ON and in the RESET state. The NCK will then select the appropriate set of parameters and check back the Set gear stages A to C (DB31, ... DBX82.082.2) to the PLC.
1/S1/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.3.4
What is oscillation?
Oscillation in this context means that the spindle motor rotates alternately in the clockwise and counterclockwise direction. This oscillation movement makes it easy to engage a new gear stage.
Oscillation mode
IS Change gear (DB31, ... DBX82.3) displays that a gear stage change is necessary. In principle, the new gear stage can also be engaged without oscillation S MD 35010: GEAR_STEP_CHANGE_ENABLE must be set to 1.
S The Oscillation mode interface signal (DB31, ... DBX84.6) is set. S The acceleration is defined in MD 35410: SPIND_OSCILL_ACCEL.
IS Oscillation speed DB31, ... DBX18.5
The spindle is in oscillation mode if a new gear stage was defined using the automatic gear stage selection (M40) or M41 to M45 (Change gear interface signal is enabled). The IS Change gear (DB31, ... DBX82.3) is only enabled when a new gear stage is selected that is not equal to the current actual gear stage. If the Oscillation speed interface signal is enabled without defining a new gear stage, the spindle does not change to oscillation mode. Oscillation is started with the oscillation speed interface signal (DB31, ... DBX18.5). The setting of the IS Oscillation via PLC (DB31, ... DBX18.4) distinguishes between:
S Oscillation via NCK S Oscillation via PLC S Oscillation with FC 18 (see Description of Functions P3).
Oscillation time
The oscillation time for oscillation mode can be defined in a machine data for each direction of rotation:
Phase 1: IS Oscillation speed (DB31, ... DBX18.5) accelerates the spindle motor to the velocity defined in MD 35400: SPIND_OSCILL_DES_VELO (oscillation speed). The start direction is defined by MD 35430: SPIND_OSCILL_START_DIR. Time t1 (or t2) is started according to the start direction defined in MD 35430: SPIND_OSCILL_START_DIR. The time is always decisive, not the fact that the oscillation speed is reached.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-37
11.02 10.00
Phase 2: When time t1 (t2) expires, the spindle motor accelerates in the opposite direction to the speed defined in MD 35400: SPIND_OSCILL_DES_VELO. Time t2 (t1) starts. Phase 3: When time t2 (t1) expires, the spindle motor accelerates in the opposite (same direction as phase 1) to the speed defined in the MD 35400: SPIND_OSCILL_DES_VELO. Time t1 (t2) starts. The process continues with phase 2.
With the IS Oscillation via PLC (DB31, ... DBX18.5), the spindle motor accelerates (with the oscillation acceleration) to the speed defined in MD 35400: SPIND_OSCILL_DES_VELO (oscillation speed). The direction of rotation is defined by IS Set speed CCW (DB31, ... Set direction of rotation clockwise (DB31, ... DBX18.6). The oscillation movement and the two times t1 and t2 (for clockwise and counterclockwise rotation) must be simulated on the PLC. Setting/resetting interface signals (IS) and machine data in oscillation mode
S To decelerate the spindle, the PLC user need not set the IS Spindle stop
(DB31, ... DBX4.3). The spindle is brought to a standstill internally by the control when a gear stage change is requested.
S The IS Gear changed (DB31, ... DBX16.3) should always be used to stop
the gear stage change.
S The Oscillation speed interface signal (DB31, ... DBX18.5) should be used
to support mechanical engagement of the gear. It has no effect on the internal control mechanism for the gear stage change procedure and should therefore only be set as necessary.
S If the Oscillation speed interface signal (DB31, ... DBX18.5) is reset, the S S
oscillation movement stops. However, the spindle remains in oscillation mode. The acceleration is defined in MD 35410: SPIND_OSCILL_ACCEL. If an indirect measuring system (motor encoder) is used, the synchronization gets lost. If MD 31050: ENC_IS_DIRECT = 0, the IS Referenced/synchronized (DB31, ... DBX60.4/5 = 0) is deleted automatically. The zero mark is referenced the next time it is crossed.
On completion of oscillation mode, the spindle is in openloop control mode again and automatically changes to the mode defined by SPCON or SPCOF. All gear-specific limit values (min./max. speed etc.) correspond to the set values of the actual gear stage.
Note For further explanations on the gear stage change, please refer to: Subsection 2.3.5 Gear stage change at fixed position (SW 5.3 and higher)
1/S1/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Functionality
Machine tools of the conventional design require a gear stage change of the spindle in oscillation mode. Configuration with MD 35010: GEAR_STEP_CHANGE_ENABLE = 1 the following procedure is implemented:
S The load gear can now disengage. S The IS Oscillation enable (DB31, ... DBX18.5) can be set from the PLC.
The spindle drive then performs an oscillation motion with preset values. The oscillation motion is to facilitate and accelerate the reengaging of the gear wheels.
S IS Actual gear stages A to C (DB31, ... DBX3.0) by the PLC. S After the PLC reports to the NCK Gear stage changed (DB31, ... DBX16.3)
the last active movement, if any, is continued. For indirect encoders (motor encoders), the referencing status is cleared (DB31, ... DBX60.4/5 = 0).
Block change
If the spindle has been switched over to oscillation mode, the IS Gear change (DB31, ... DBX82.3) is set, the parts program processing remains stopped. A new block is not executed. If oscillation mode is quitted using the IS Gear switched (DB31, ... DBX16.3) the execution of the parts program is continued as illustrated in Fig. 2-8. A new block is executed.
Speed (rev/min)
Time (s)
Fig. 2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-39
11.02 10.00
Oscillation mode
Typical time sequence for the gear stage with the spindle:
IS Openloop control mode (DB31, ... DBX84.7 IS Oscillation mode (DB31, ... DBX84.6 Programmed S value 1000 1300 IS Gear changed (DB31, ... DBX16.3 IS Change gear (DB31, ... DBX82.3 IS Set gear stages AC DB31, ... DBX82.082.2 IS Spindle in setpoint range DB31, ... DBX83.5 IS Spindle stationary DB31, ... DBX61.4 IS Actual gear stages AC DB31, ... DBX16.016.2 changes IS Oscillation speed DB31, ... DBX18.5 1st gear stage engaged 2nd gear stage engaged Internal feed disable T1 T 2 1 1 2 1 2
Spindle speed
t1
When S1300 is programmed, the NCK detects a new gear stage (2nd gear stage), enables the change gear interface signal and inhibits execution of the next parts program block. The spindle is stationary and oscillation starts (oscillation via NCK). The oscillation speed interface signal must be enabled by the time t2. The new gear stage is engaged. The PLC user transmits the new (actual) gear stage to the NCK and enables the gear changed interface signal. At this point, the NCK cancels the change gear interface signal, terminates oscillation, enables execution of the next parts program block and accelerates the spindle to the new S value (S1300).
t2 t3 t4
Fig. 2-9
1/S1/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.3.5
Machine tools increasingly use standardized spindle drives, firstly to save technological dead time at a gear stage change and secondly to gain the cost benefits of using standardized components. The function Gear stage change at fixed position supports the directed gear stage change of load gears that require a different activation from the NC. The gear stage change can in this case only be performed at a defined spindle position. An oscillation motion as required by conventional load gears is thus no longer necessary.
Gear stage change at a fixed position Configuration with MD 35010: GEAR_STEP_CHANGE_ENABLE = 2 carries out the following sequence:
S After the GSC position configured in MD 35012 is reached, the timer set in
MD 35310: SPIND_POSIT_DELAY_TIME is activated before the system switches over to oscillation mode and the normal GSC dialog commences.
S The position control is not disabled when an active measuring system with
indirect encoder (motor encoder) MD 31040 is used: ENC_IS_DIRECT = 0. When an active measuring system with direct encoder (load encoder) is used, the position control is disabled (DB31, ... DBX61.5 = 0), since the flow of the force to the load is interrupted, making position control impossible.
S IS Actual gear stages A to C (DB31, ... DBX3.0) by the PLC. S After the message Gear stage changed DBX16.3) the last active
movement, if any, is continued. For indirect encoders (motor encoders), the referencing status is cleared (DB31, ... DBX60.4/5 = 0). The spindle is in speed-control mode and the IS Open-loop control mode (DB31, ... DBX84.7) is output.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-41
IS Positioning mode (DB31, ... DBX84.5 IS Open-loop control mode (DB31, ... DBX84.7 IS Oscillation mode (DB31, ... DBX84.6 Programmed S value 1000 1300 IS Gear changed (DB31, ... DBX16.3 IS Change gear (DB31, ... DBX82.3 IS Set gear stages AC DB31, ... DBX82.082.2 IS Spindle in setpoint range DB31, ... DBX83.5 IS Spindle stationary DB31, ... DBX61.4 IS Actual gear stages AC DB31, ... DBx16.016.2 changes 1 IS Oscillation speed DB31, ... DBX18.5 1st gear stage engaged 2nd gear stage engaged Internal feed disable 1 2 1 2
Spindle speed
t1
When S1300 is programmed, the NCK detects a new gear stage (2nd gear stage), enablesthe change gear interface signal Positioning mode and inhibits execution of the next parts program block. The spindle is stopped and exact stop is signaled. Gear stage change wait time The new gear stage is engaged. The PLC user transmits the new (actual) gear stage to the NCK and enables the gear changed interface signal. At this point, the NCK cancels the change gear reverse, and enables execution of the next parts program block and accelerates the spindle to the new S value (S1300).
t2 t3 t4 t5
Fig. 2-10
The gear stage change position is configured in machine data MD 35012: GEAR_STEP_CHANGE_POSITION configured for each gear stage.
1/S1/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
In SW 6.1 and higher, the timer set in machine data MD 3510: SPIND_POSIT_DELAY_TIME is activated before the gear stage change request IS Oscillation mode (DB31, ... DBX84.6), Change gear (DB31, ... DBX82.3) and Set gear step A to C (DB31, ... DBX82.082.2) is output.
The position is always approached on the shortest way (corresponds to DC). If no reference is available and if the spindle is at zero speed (e.g. after POWER ON), then the approach direction is determined by MD 35350: SPIND_POSITIONING_DIR. If an adjustable gear stage change position is required, then this can be achieved by writing the machine data and by a subsequent NewConfig. The change in the MD value can be carried out using the parts program or via the MMC. If the system is unable to reach the preset position, then alarm 22020 is signaled and the gear stage change dialog between NCK and PLC does not take place in order not to destroy the gears. As this alarm is serious, the parts program cannot be continued and the cause must be eliminated under all circumstances The cause for the abortion of positioning is from experience generally to be found in incorrect MD settings or incompatible PLC signals.
Velocity
The positioning speed is taken from MD 35300: SPIND_POSCTRL_VELO. The IS Spindle speed override/Feedrate override at (DB31, ... DBX17.0=0: DB 31, ... DBB19) and for (DB31, ... DBX17.0=1: DB 31, ... DBB0) are effective as normal for positioning. The positioning speed can be changed proportionally through the program instruction OVRA[Sn]. Note: OVRA[Sn] is valid modally. After the gear stage change it should be set back to a value appropriate for the machining. The parts program instruction FA[Sn] does not change the positioning speed during gear stage change.
Acceleration
The acceleration values are determined by the gear stage dependent MD 35200: GEAR_STEP_SPEEDCTRL_ACCEL and MD 35210: GEAR_STEP_POSCTRL_ACCEL. The acceleration can be changed proportionally by the programming of ACC[Sn]. Note: ACC[Sn] is valid modally. After the gear stage change it should be set back to a value appropriate for the machining.
Speed-dependent acceleration
Jerk
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-43
End of positioning
The transition between the end of the positioning operation (DB31, ... DBX84.5) and start of oscillation mode (DB31, ... DBX84.6) is defined by reaching Exact stop fine (DB31, ... DB60.7) and the variable in MD 3510: SPIND_POSIT_DELAY_TIME. The determination of the transition condition has an effect firstly on the gear stage change time and secondly on the accuracy of the approach to the preset gear stage change position.
Block change
The block change is stopped and the machining blocks are not started until the gear stage has been changed by the PLC (DB31, ... DBX16.3).
After the gear stage change has been ended, the spindle is in open-loop control mode again and will automatically change to the controller mode defined by SPCON or SPCOF. All gearspecific limit values (min./max. speed of gear stage, etc.) correspond to the fed back values of the actual gear stage.
Supplementary conditions
S The spindle must possess at least one measuring system. S Position-controlled operation must be possible and must have been
activated.
Activation
The function for gear stage change at a fixed position is activated by setting the MD 35010: GEAR_STEP_CHANGE_ENABLE = 2.
1/S1/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.4
2.4.1
No output of spindle auxiliary functions after block search (SW 5.3 and higher)
Application
In conjunction with tool change routines, it can be useful if the programmed spindle values accumulated during a block search are not output in the action blocks but later, e.g. after a tool change.
Functionality
Programming the machine data MD 11450: SEARCH_RUN_MODE; with bit 2, the output options of the spindle auxiliary functions after block search are defined. The configuration offers the following options to choose from: S Bit 2 = 0: previous behavior (compatibility mode), and with S Bit 2 = 1: suppression of the output of the spindle auxiliary functions in the action blocks. No spindle auxiliary functions are output to the VDI interface, and no spindle setpoints are created for the drive. The programmed spindle values are always stored in system variables independently of the set configuration and can be evaluated later (e.g. after a tool change). This can be achieved with an ASUB, which can be started after output of the action blocks (DBx, ... 32.6 = 1). The accumulated programmed spindle values can be read and adapted in the ASUB.
Note For explanations on the block search and on the action blocks, please refer to References: /FB1/, K1,Mode Group, Channel, Program Operation, 2.5 Program Test References: /FB1/, H2,Auxiliary Functions to PLC, 2.5 Behavior with Block Search
The contents of the system variables $P_S, $P_DIR and $P_SGEAR can be lost after block search due to synchronization operations. WB: Defined value ranges (WB) of the corresponding system variables.
Description
Collected spindle speed WB = {0...SMax} Collected spindle rotation WB = {3, 4, 5, 5, 19, 70} Collected spindle gear stage M function WB = {40...45} Collected spindle position WB = {0...MD 30330: MODULO_RANGE} Collected Traversing path WB = {100.000.000...100.000.000} Collected position approach mode WB = {0...5} where 0=DC (default), 1=AC, 2=IC, 3=DC, 4=ACP, 5=ACN
$P_SEARCH_SPOSMODE[n]
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-45
11.02 10.00
The output of the collected spindle programming values can be carried out in an ASUB after block search and after output of the action blocks (DBx, ... DBX32.6=1).
Block search to the contour with ASUB start after output of the action blocks, MD 11450: SEARCH_RUN_MODE for bit 2 = 1 (no output of spindle auxiliary functions in action blocks):
N05 M3 S200 N10 G4 F3 N15 SPOS = 111 N20 M2 = 4 S2 = 300 N25 G4 F3 N30 SPOS[2] = IC(77) N55 X10 G0 N60 G4 F10 N99 M30 ; ; ; in the ASUB, spindle 1 is positioned to ; 111 degrees ; ; ; spindle 2 traverses incrementally by 77 degrees ; target block ; ;
ASUB
If the number of spindles is known, similar outputs can be written in one line, reducing the program execution time. The output of $P_SEARCH_SDIR should be in a separate block, since spindle positioning or switching over to axis mode together with gear stage changing can produce an alarm.
If the started ASUB is completed with REPOSA, then spindle 1 remains at the position 111 degrees, whereas the response described above means that Spindle 2 is repositioned to the position 77 degrees. If a different response is required, the program sequence, e.g. of M3 S ... and SPOS = IC(...) in the parts program for block search must be treated in a special way. It can be determined whether block search is active in the ASUB by reading the system variables $P_SEARCH and comparing with the value 1.
1/S1/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
With incremental positioning after speed control operation, the distance to be traveled is defined, but the end position attained is in certain cases only determined during the positioning operation itself. This is the case, for example, with position compensation during crossing of the zero mark or when switching on the position control. For this reason, the distance programmed from the position as the REPOS position (REPOSA in the ASUB) is assumed to be zero. With block search, the spindle programming is included in the new block search system variables, independently of the configuration.
Supplementary conditions
Collected S values
It is generally the case that the meaning of a programmed S value in the parts program is dependent on the current feed type of the G group of the feed operation: G93, G94, G95, G97, G971: G96, G961: S value is interpreted as speed S value is interpreted as a constant cutting rate.
If the feed operation is changed (e.g. for a tool change) before output of the system variable $P_SEARCH_S, then it must be ensured that the feed operation is restored to the original setting from the target block to avoid misinterpretation in the NC.
For the output of the direction of rotation, the system variable $P_SEARCH_SDIR is preset to the value 5 when the block search is started. This value is ineffective for output (NOP = No Operation). This guarantees that the last spindle mode is not lost where the block search covers groups in which spindles are not programmed with direction of rotation, positioning or axis mode. The programing of M19, SPOS and SPOSA is accumulated as M19 (internal M19) in the system variable $P_SEARCH_SDIR alternatively to M3, M4, M5 and M70. The output of M19 runs as follows:
S The positioning data are read internally from the system variables
$P_SEARCH_SPOS and $P_SEARCH_SPOSMODE. Both system variables can be written to, e.g. in order to enter corrections.
Note Because of the assignments mentioned above (e.g. M[n] = $P_SEARCH_SDIR[n]), the values 5 and 19 generally remain hidden for the user and must only be observed with special evaluation of the system variables in the user program (ASUB).
Activation
Programming the machine data MD 11450: SEARCH_RUN_MODE, bit 2 = 1 suppresses the output of spindle auxiliary functions and spindle setpoint values after block search.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-47
11.02 10.00
2.5
Selectable spindles
Application
With SW 4.3 and higher, the selectable spindles function allows you to write parts programs with reference to the spindles used (channel spindle, logical spindle) regardless of the actual assignment of configured spindles (physical spindles) to a channel. The physical spindles loaded or unloaded by axis replacement no longer have to be specified explicitly in the parts program.
Functionality
Each spindle is mapped unambiguously to a machine axis MD 35000: SPIND_ASSIGN_TO_MACHAX[AX ...] by a configurable number. This number is always applies to a spindle, regardless of the channel in which the spindle is actively handled. The channel spindles can be switched over because an intermediate level is introduced between the logical spindle numbers used in the parts program and the physical spindles existing in the channel. This is achieved by assigning each logical spindle used in the parts program to a physical spindle in a table containing setting data (SD 42800: SPIND_ASSIGN_TAB[ ...]; spindle number converter). The spindle number converter is effective in spindle programming by
Note SD 42800: SPIND_ASSIGN_TAB[0] contains the logical master spindle. It is only used for display purposes. This setting data is defined in the parts program by SETMS (logical spindle). The value 0 must be entered in SD 42800 for spindles which are not used. System variables affected by the spindle switchover: $P_S, $P_SDIR, $P_SMODE, $P_GWPS, $AC_SDIR, AC_SMODE, $AC_MSNUM, $AA_S. See also: Reference: /PGA/ Programming Guide Advanced
The converted, physical spindle number is always output as the address extension in the auxiliary function output.
1/S1/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Supplementary conditions
S The switchable channel spindles are not a substitute for the axis
replacement function.
S You can only switch spindles which have been assigned to the channel by
parameterization.
S If spindles which are presently active in another channel are output for
switchover, either the AutoGet function is triggered for the physical spindle or alarm 16105 Assigned spindles do not exist is output, depending on the configuration variant.
After POWER ON of the NC in startup switch position 1 (delete SRAM) the SD 42800 is in its basic setting. The numbers of the logical and physical spindles are identical. SD 42800: SPIND_ASSIGN_TAB[1]=1 SD 42800: SPIND_ASSIGN_TAB[2]=2 SD 42800: SPIND_ASSIGN_TAB[3]=3 SD 42800: SPIND_ASSIGN_TAB[4]=4 SD 42800: SPIND_ASSIGN_TAB[5]=5 ...
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-49
11.02 10.00
Example
Assumptions: Spindle configurations: Define spindle number and machine axis MD 35000: SPIND_ASSIGN_TO_MACHAX [AX4] = 1 MD 35000: SPIND_ASSIGN_TO_MACHAX [AX5] = 2 MD 35000: SPIND_ASSIGN_TO_MACHAX [AX6] = 3 MD 35000: SPIND_ASSIGN_TO_MACHAX [AX7] = 5 Include machine axis in channel MD 20070: AXCONF_MACHAX_USED[0] = 4 MD 20070: AXCONF_MACHAX_USED[1] = 5 MD 20070: AXCONF_MACHAX_USED[2] = 6 MD 20070: AXCONF_MACHAX_USED[3] = 7 Define master spindle MD 20090: SPIND_DEF_MASTER_SPIND = 1 Spindle number converter MD 20092: SPIND_ASSIGN_TAB_ENABLE = 1 Activate spindle number converter SD 42800: SPIND_ASSIGN_TAB[0] = 1 Master spindle as configured SD 42800: SPIND_ASSIGN_TAB[1] = 1 Initial setting of table SD 42800: SPIND_ASSIGN_TAB[2]=2 SD 42800: SPIND_ASSIGN_TAB[3]=3 SD 42800: SPIND_ASSIGN_TAB[4] = 0 Logical spindle not assigned M3 S1000 Address extension = 1, M1=3 S1=1000 is output The spindle configured with number 1 (no. of physical master spindle) rotates.
Assign logical spindle 1 to physical spindle 5 Assign logical spindle 2 to physical spindle 3 Caution: Physical spindle 3 has now been assigned twice. When programming logical spindles 2 and 3, physical spindle 3 Physical is always addressed. In the basic machine displays, both spindles rotate.
SD 42800:SPIND_ASSIGN_TAB[0] = 2 is defined internally by the NCK. Master spindle = address extension = 2, The converted spindle number is output M3=5 The physical spindle configured with number 3 stops. Alarm 16105, because logical spindle 4 cannot be converted. Channel spindle 1 = physical spindle 5 is enabled
1/S1/2-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.6
Programming
2.6.1
Note Detailed information about programming the spindle can be found in References: /PG/, Programming Guide: Fundamentals
SETMS SETMS(n)
The spindle stored in MD 20090: SPIND_DEF_MASTER_SPIND (initial setting of master spindle in channel) is the master spindle. The spindle with the number (n) is the master spindle (may differ from the initial setting in MD 20090: SPIND_DEF_MASTER_SPIND. The master spindle must be defined for the following functions:
Revolutional feedrate
Clockwise direction of rotation for the master spindle Clockwise direction of rotation for spindle number 1 Counterclockwise direction of rotation for the master spindle Counterclockwise direction of rotation for spindle number 2 Spindle stop without orientation for the master spindle Spindle stop without orientation for spindle number 1
Note The M functions M3, M4, M5 and M70 are not output in DB21, ... DBB194 and DBB202 if a spibdle is configured in a channel. These M functions are offered as extended M functions in DB21, ... DBB68 ff. and in the particular axis DB, DB31, ... DBB86 ff.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-51
Spindle speed in rpm for the master spindle Spindle speed in rpm for spindle number 2 Spindle positioning for the master spindle or the spindle with number n to the position 270 degrees. or the spindle with number n to the position 270 degrees. The block change is only performed when the spindle is in position. Spindle positioning for the master spindle or the spindle with number n to the position 90 degrees. The block change is executed immediately. Spindle positioning continues, regardless of further parts program processing, until the spindle has reached its position. The direction of motion is retained for positioning while in motion and the position approached. When positioning from standstill, the position is approached via the shortest path.
SPOSA=90 SOSS[n]=90
SPOS=DC(Pos) SPOS[n]=DC(Pos) SPOSA=DC(Pos) SPOSA[n]=DC(Pos) SPOS=ACN(Pos) SPOS[n]=ACN(Pos) SPOSA=ACN(Pos) SPOSA[n]=ACN(Pos) SPOS=ACP(Pos) SPOS[n]=ACP(Pos) SPOSA=ACP(Pos) SPOSA[n]=ACP(Pos) SPOS=IC(Pos) SPOS[n]=IC(Pos) SPOSA=IC(Pos) SPOSA[n]=IC(Pos)
The position is always approached with negative direction of motion. If necessary, the direction of motion is inverted prior to positioning.
The position is always approached with positive direction of motion. If necessary, the direction of motion is inverted prior to positioning.
The travel path is specified. The direction of travel is obtained from the sign in front of the travel path. If the spindle is in motion, the direction of travel is inverted as necessary to allow traversing in the programmed direction. If the zero mark is crossed during traversing, the spindle is automatically synchronized with the zero mark if no reference is available or, if a new one has been requested per interface signal. Spindle positioning for the master spindle or the spindle with number n to the position 270 degrees. or the spindle with number n to the position entered in SD 43249: M19_SPOS. The block change is only performed when the spindle is in position. Bring spindle to standstill and activate position control, select zero parameter set, activate axis mode for the master spindle or for the spindle with number 1 Spindle position control for the master spindle ON Spindle position control mode for the spindle number n ON Spindle position control mode for the spindle number n and m ON Spindle position control for the master spindle OFF, activate speed control mode for master spindle OFF, spindle position control mode for the master spindle OFF, activate speed control mode for spindle number n, as well as for spindle number n and m Revolutional feedrate for spindle S2 on, derived from the master spindle Revolutional feedrate for spindle S2 on, derived from axis A. The revolutional feedrate value must be specified with FA[Sn].
M19 M[n]=19
M70 M1=70 SPCON SPCON(n) SPCON(n,m) SPCOF SPCOF(n) SPCOF(n,m) FPRAON (S2) FPRAON (S2, A)
1/S1/2-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
FPRAOF (S2) C30 G90 G1 F3600 G25 S.... G25 S2... G26 S.... G26 Sn... LIMS= WAITS
Revolutional feedrate for spindle S2 off. Rotary axis C (spindle in axis mode) travels to the position at 30 degrees at a speed of 3600 degrees/min=10 rpm. Programmable minimum spindle speed limitation Programmable minimum spindle speed limitation for the spindle with number 2 Programmable maximum spindle speed limitation Programmable maximum spindle speed limitation for the spindle with number n Programmable maximum spindle speed limitation with G96, G961, G97 Parts program, synchronization command for master spindle Execution of the following blocks is suspended until the spindle(s) programmed with SPOSA has/have reached their position(s) with exact stop fine. Waits until the spindle is at standstill after M5.
Synchronization command for spindle n Synchronization command for spindles n and m: Programming of positioning speed (axial feed) for spindles in deg/min. The value configured in MD35300: SPIND_POSCTRL_VELO is valid again when FA[Sn]=0. Programming of axial override value for the spindle n in % Programming of the axial acceleration capacity of the spindle n in % Axis functions for a spindle with SPI(n) (SW 6.1 and higher) With SPI(n) (spino), a spindle number is converted to the data type AXIS according to the machine data MD35000: SPIND_ASSIGN_TO_MACHAX[ ]. SPI is used to program axis functions using the spindle number. The following statements with SPI are possible: Frame statements with SPI: CTRANS( ), CFINE( ), CMIRROR( ), CSCALE( ) Velocity and acceleration values for following spindles with SPI: FA[SPI(n)], ACC[SPI(n)], OVRA[SPI(n)] System variable with SPI: $P_PFRAME[SPI(1),TR] = 2.22 can be used, e.g. to write frames. $P_PFRAME = CTRANS (X, axis value, Y, axis value, SPI(1), axis value) $P_PFRAME = CSCALE (X, scale, Y, scale, SPI(1), scale) $P_PFRAME = CMIRROR (S1, Y, Z) $P_UBFR = CTRANS (A, 10) : CFINE (19, 0.1) For further explanations regarding the programming of SPI, please refer to: Reference: /PGA/ Programming Guide Advanced
Examples
M40 M1=40
Automatic gear stage selection for the master spindle Automatic gear stage selection for spindle number 1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-53
Select gear stage 1 to 5 for the master spindle Select gear stage 1 to 5 for spindle number 1
2.6.2
M functions M40 to M45 can also be programmed in synchronized actions. Please note the following: Programming of M40...M45 in the parts program has no effect on the current status of the automatic gear stage change of the synchronized actions and viceversa. When programming S values with M40, the automatic gear stage change acts separately for synchronized actions and the parts program. For synchronized actions:
S M40 is deactivated after POWER ON. The gear stage is not adjusted if an S
value is specified from a synchronized action.
S An axis replacement is necessary in order to run the function. S When the gear stage change has been performed, the spindle status is
neutral (same response as M3, M4, M5 instructions).
Note For further details explaining the programming of spindles and spindle movements from synchronized actions, please refer to: Reference: /PGA/, Programming Guide Advanced /FBSY/ , Description of Functions, Synchronized Actions
1/S1/2-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.6.3
When the PLC specifies the direction of rotation and speed using FC18, the NCK can determine and select a gear stage to match the speed. This is equivalent to the M40 functionality when programming via the parts program. The correct start code must be set when FC18 is called in a PLC user program, in order to activate the gear stage selection.
Note For detailed explanations on how to program spindle controls via the PLC with FC18, please refer to: References: /FB1/, P3, Basic PLC Program
2.6.4
Special spindle movements via the PLC interface (SW 6.1 and higher)
This function can be used to program the spindle via an axial PLC interface alternatively to the FC18. For the sake of simplicity, this results in a slightly reduced functionality. This functionality can be used preferably for simple control applications.
Functionality
Special VDI interface signals are provided to start and stop spindles outside the running parts program. To do so, the channel status and the program status need not be in the active mode. These states will occur, e.g. in case of Reset and in JOG mode. The spindle concerned must have the state Channel axis or Neutral axis and must not be moved using the JOG keys or positioned by FC18 or synchronized actions. If these conditions are fulfilled, spindle jobs will be accepted via the DBB30 spindle interface. The spindle specifications are kept beyond a mode change (e.g. from JOG mode to AUTOMATIC). With the start of the parts program, the spindle settings are accepted (direction of rotation, speed or cutting rate) into the parts program and can be modified again by parts program statements. In JOG mode, the spindle can be moved at the speed last programmed.
Multi-channel operation
In the case of multi-channel operation, the spindle started by the PLC becomes active in the channel that at the appropriate moment handles the spindle. This channel can be determined on side of the PLC by reading the IS NC axis/spindle in channels A to D DB31, ... DBX68.068.3.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-55
Spindle job
In order to start a spindle job, the channel handling the spindle must be in the acceptance status. A spindle job is always started with the LowHigh edge of a DBB30 signal. Generally, the DBB30 start signals do not have any meaning in the static status and do not prevent the spindle to be programmed by FC18, synchronized actions, parts program or JOG traversing movements (e.g. when the STOP signal is statically on 1).
Outside a running parts program, spindles can be started and stopped using the special VDI interface signals NCK > PLC.
S It must be in the status Channel axis or Neutral axis and must not be
moved by means of the JOG keys.
Low-high edges outside the acceptance range will be ignored. No alarm message is output by the NCK. It can be assumed that the acceptance range will be announced to the operator by the PLC program. Spindle jobs outside the acceptance range can also be carried out using the functions FC18 or the ASUB.
S Through speed programming S Through direct programming in the parts program S Through the MMC.
Note The direct writing of the setting data comes into effect immediately and acts asynchronously to the parts program execution.
1/S1/2-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
The following conditions apply for writing data to the setting data SD 43200: SPIND_S:
Programming through: Speed programming Conditions for programming: MD 35035 bit 4 = 1 must be set. The constant cutting rate G96, G961 must not be active. The IS Constant cutting rate DB31, ... DBX 84.0 = 0 must be set. Direct programming in the parts program A programmed S value and the value of the directly programmed SD can overtake as far as the time is concerned. In this case, after programming the SD you should use the statement STOPRE. MMC: Direct programming in the parts programs Only positive values including zero are accepted. Otherwise, an appropriate message is generated.
Spindle commands
The following basic logic functions can be specified for the spindle:
Basic logic functions: Spindle commands: Independently of a running parts program: Input from PLC via axial VDI interface signal DB31, ... DBB30
Motion command:
Spindle stop Spindle start clockwise rotation Spindle start counterclockwise rotation Select gear stage Spindle positioning
Speed:
MD 35035 bit 4 = 1 When the movement is started, the speed is read from SD 43200: SPIND_S
Speed settings from the parts program or FC18 are always written to the setting data SD 43200: SA_SPIND_S. You can use the JOG keys to traverse the spindle with the speed from SD 43200: SA_SPIND_S. Settings of the constant cutting rate from the parts program, FC18 and synchronized actions are written to the setting data SD 43200: SA_SPIND_S.
Setpoint speed:
MD 35035 bit 5 = 1 The contents of SD 43200: SA_SPIND_S act as a setpoint speed
Notes on MD 35035: SPIND_FUNCTION_MASK: The following additionally applies to bit 4 and bit 8: Programmed S values that are no programmed speed values are not written to the appropriate setting data. This also applies, e.g. to an S value with revolutionrelated dwell time (G4). If this conditions are fulfilled, spindle jobs will be accepted via the DBB30 interface (acceptance status). The functionality of bits 0 to 2 is described in Subsection 2.6.5 Gear stage change in DryRun, Program Test and SERUPRO modes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-57
Motion specification
The direction of rotation is specified in DBB30 and transmitted by the NCK input signals at the axial VDI interface (PLC > NCK) in data bytes DB31, ... DBB30 (JobShop).
Interface signals
S Spindle stop (corresponds to M5) S Spindle start CW (corresponds to M3) S Spindle start CCW (corresponds to M4) S Select gear stage
(available soon)
DB31, ... DBX30.0 DB31, ... DBX30.1 DB31, ... DBX30.2 DB31, ... DBX30.3 (reserved signal) DB31, ... DBX30.4
If several DBB30 signals are set at the same time, the following order of priorities is defined:
S Spindle stop (M5) S Spindle start/positioning mode (M3) S Spindle start/positioning mode (M4) S Spindle start/positioning mode (M19)
Acknowledgment spindle start/stop
A spindle start can be detected at the VDI interface based on traversing commands output, such as Traversing command minus DB31, ... DBX64.6 = 1or Traversing command plus DB31, ... DBX64.7 = 1. A spindle stop is executed if the IS Axis/spindle stationary Axis/spindle stationary DB31, ... DBX61.4 = 1 is signalled. Direct acknowledgment signals for the DBB30 input signals will not be output.
Invert M3/M4
IS signal Invert M3/M4 (DB31, ... DBX17.6 acts analogously to the programming of the direction of rotation for the signals Spindle start CW DB31, ... DBX30.1 and Spindle start CCW DB31, ... DBX30.2 of M3 or M4 via parts program, synchronized action or FC18.
1/S1/2-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Read SD 43200
When the movement is started, the speed is always read from the setting data SD 43200: SPIND_S [r.p.m.] with the positive edge of the start signals Spindle start CW DB31, ... DBX30.1 and Spindle start CCW DB31, ... DBX30.2
Note Reprogramming of the setting data until the next positive edge of the start signals Spindle start CW DBB31, ... Spindle start CCW DB31, ... DBX30.2 remains inactive for the current spindle speed. The contents of the setting data is only accepted with the next spindle start signal.
In the current version, no gear stage change is triggered if the set speed is out of the speed range of the gear stage. The usual speed limitations and the speed increase to the set speed are active.
Read SD 43202
The constant cutting rate is read from the setting data SD 43202: SPIND_CONSTCUT_S [m/min] or [feet/min] with the positive edge of the start signals Spindle start CW DB31, ... DBX30.1 and Spindle start CCW DB31, ... DBX30.2
Note Reprogramming of the setting data until the next positive edge of the start signals Spindle start CW DBB31, ... Spindle start CCW DB31, ... DBX30.2 remains inactive for the current constant cutting speed. The contents of the setting data is only accepted with the next spindle start signal.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-59
Condition
To make sure that settings for the constant cutting rate are active, the spindle concerned must be a master spindle in the channel handling the spindle. This condition is fulfilled if the IS Constant cutting rate active DB31, DBX84.0 = 1 is set at the axial VDI interface.
When writing the appropriate value for the constant cutting rate from the parts program, it is interpreted as follows if the following is set/active in the 12th G group:
With G70, G71 and when writing from an external source (MMC), the setting in MD 10240: MN_SCALING_SYSTEM_IS_METRIC will decide how the programmed value is interpreted. For further explanations on the metric/inch unit system, please refer to References: /FB/, G2, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
If the constant cutting rate is set via FC18, the decision how the speed value (bytes 8...11) is interpreted is decided by setting bit 6 in byte 2 in the area Signals to concurring positioning axes. In the case of setting via synchronized actions, the feedrate type will decide how the S value is interpreted, analogously to the parts program.
The programmed cutting rate value can be determined both in the parts program and in synchronized actions by reading the system variables $P_CONSTCUT_S and $AC_CONSTCUT_S. Reading the programmed cutting rate value via the OPI interface is also possible.
System variables
Description
Constant cutting rate last programmed WB = {0, DBL_Max} Current constant cutting rate WB = {0, DBL_Max}
1/S1/2-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Gear stage change for blocks with M40, M41 to M45 or via FC18 and synchronized actions are suppressed with Gear stage change for blocks with M40, M41 to M45 or via FC18 and synchronized actions are suppressed with program testing and SERUPRO. Gear stage change for programmed gear stage is performed after deselection of functions DryRun and SERUPRO.
SW 6.1 and higher Acceptance of programmed speed and cutting rate including settings.
S Bit 4 = 1 S Bit 5 = 1
The programmed speed including speed settings programmed using FC18 and synchronized SD 43200: SPIND_S. The content of SD 4320: SA_SPIND_S acts as the set speed in JOG mode. You can use the JOG keys to traverse the spindle at the speed defined in SD 43200. If the content is zero, further JOG speed settings come into effect (see SD 41200: JOG:SPIND_SET_VELO). The programmed cutting rate including the settings via FC18 and the synchronized actions are accepted into the SD 43202: SPIND_S.
S Bit 8 = 1
For further information about MD 35035: SPIND_FUNCTION_MASK, please see Section 4.3 Axis/spindle-specific machine data
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-61
2.6.5
Gear stage change in DryRun, Program Test and SERUPRO modes (SW 6.2 and higher)
The behavior of the gear stage change from parts programs, FC18 and synchronized actions for the DryRun, Program Test and SERUPRO (SearchRunByProgramTest) functions can be configured with the existing machine data MD 35035: SPIND_FUNCTION_MASK . A gear stage change is not usually necessary for these functions and can therefore be suppressed as follows in MD 35035: SPIND_FUNCTION_MASK with bits 0 to 2:
Bit 0 = 1
Bit 1 = 1
Bit 2 = 1
If a gear stage change is suppressed, the interpolator limits the programmed spindle speed to the permissible speed range of the active gear stage if necessary. The interface signals IS Setpoint speed increased (DB31,...DBX83.2) and IS Setpoint speed limited (DB31,...DBX83.1), which are generated on such a restriction, are suppressed. Monitoring by the PLC program is not necessary during DryRun. When the gear stage change is suppressed, no new gear stage setpoint IS Gear stage setpoint (DB31,...DBX82.02) is output to the PLC. The gear stage change request IS Gear change (DB31,...DBX82.3) is also suppressed. This ensures that no gear stage change information has to be processed by the PLC program.
1/S1/2-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
System variable $P_GEAR returns the gear stage programmed in the parts program (which may not have been output to the PLC). System variable $AC_SGEAR can be used to read the last active gear stage from the parts program, synchronized actions and operator panel interface. The DryRun function can be deselected within a running parts program. Once it has been deselected, the correct gear stage requested by the parts program must be determined and selected. It cannot be assured that the remainder of the parts program will run without errors until the correct gear stage has been activated. Any necessary gear stage change is performed in the system REPOS started on deselection when the spindle is in speed control mode. A complete gear stage change dialog takes place with the PLC and the last programmed gear stage is activated. If there is a mismatch between the gear stage programmed in the parts program and the actual gear stage returned over the VDI interface at REPOS, no gear stage change takes place. The same applies to the SERUPRO function. For further information about SERUPRO block search, please refer to References: /FB/, K1, Mode Group, Channels, Program Operation Mode
Supplementary conditions
If the gear stage change is suppressed, the output spindle speed moves within the speed range specified by the current gear stage. The following restrictions apply to the subsequent activation of a gear stage on REPOS:
S The gear stage change is not activated subsequently if the spindle in the
deselection or target block is a command spindle (synchronized action) or PLC spindle (FC18).
Example
PI service: Activate DryRun; ; (configuring) ; 2nd GS requested, no gear stage change takes place ; Position axes ; Parts program stops
PI service: Deactivate DryRun; ; REORG and REPOS are performed ; Gear stage change now takes place to 2nd gear stage ; ; ; Parts program end
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-63
2.6.6
S >0: S 1: S 0:
FPRAON (S2) FPRAON (S2, A) FPRAOF (S2) SPI(n) (SW 6.1 and higher)
The machine axis number of the rotary axis/spindle from which the revolutional feedrate is to be derived. The revolutional feedrate is derived from the master spindle of the particular channel in which the axis/spindle is active. Function is deselected.
Revolutional feedrate for spindle S2 on, derived from the master spindle Revolutional feedrate for spindle S2 on, derived from axis A. The revolutional feedrate value must be specified with FA[Sn]. Revolutional feedrate for spindle S2 off. It is also possible to program SPI(n) instead of SPI(Sn).
1/S1/2-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.7
Spindle monitoring
Speed ranges
The spindle monitoring functions and the currently active functions (G94, G95, G96, G961, G97, G971, G33, G34, G35, G331, G332, etc.) define the admissible speed ranges of the spindle.
Speed
Maximum spindle speed for current gear stage Programmable spindle speed limit G26 Programmable spindle speed limit LIMS Programmable minimum spindle speed G25
Spindle is stationary IS: Axis/spindle stationary (n<n min ) Speed range of current gear stage limited by G25 and G26 Speed range of current gear stage at constant cutting rate G96, G961 and G97 IS: Referenced/synchronized Speed range of current gear stage
Fig. 2-11
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-65
11.02 10.00
2.7.1
S IS Axis/spindle stationary (DB31, ... DBX61.4) is set to one. S The next machining block is enabled
MD 35510: SPIND_STOPPED_AT_IPO_START = 0 is enabled Exception: MD 35510: SPIND_STOPPED_AT_IPO_START =1 path interpolation is not affected, traversing path axes not stopped Monitoring is effective all spindle modes and axis mode.
2.7.2
Function
The Spindle in setpoint range monitor checks whether the programmed spindle speed has been reached, whether the spindle is stationary (IS Axis/spindle stationary) or whether it is still in the acceleration or braking phase. In the spindle mode control mode, the speed setpoint (programmed speed spindle offset including the active limitations) is compared with the actual speed. If the deviation of the actual speed from the speed setpoint is greater than the spindle speed tolerance of MD 35150: SPIND_DES_VELO_TOL,
S the axial IS Spindle in setpoint range (DB31, ... DBX83.5) is set to zero S The next machining block is not enabled
MD 35500: SPIND_ON_SPEED_AT_IPO_START = 1 is enabled Exception: MD 35500: SPIND_STOPPED_AT_IPO_START =0 Path interpolation is not affected, traversing path axes not stopped
MD 35150: SPIND_DES_VELO_TOL = 0,1 The spindle actual speed may deviate +/ 10% compared to the set speed. The spindle speed is obtained from the programmed speed and the current limits (taking the current limits into account. A limitation or increase in the programmed speed is indicated by the axial IS Set speed limited (DB31, ... DBX83.1) or IS Setpoint speed increased (DB31, ... DBX83.2) is displayed and does not prevent the speed tolerance range being reached. If the spindle lies inside the tolerance range, the axial IS Spindle in set range (DB31, ... DBX83.5) is set to 1 at the VDI interface. Special case: If the speed tolerance is set to zero, the axial IS Spindle in set range (DB31, ... DBX83.5) is permanently set to 1 and no path control takes place.
Speed change
The path control only takes place at the start of the traverse block and only if a speed change has been programmed. If the speed tolerance range is violated, e.g. due to an overload, the path control is not automatically brought to a standstill.
1/S1/2-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.7.3
Minimum speed
S Spindle override 0% S M5 S S0 S IS Spindle stop (DB31, ... DBX8.3) S IS Servo enable (DB31, ... DBX2.1) S IS Reset (DB21, ... DBX7.7) S IS Delete distance-to-go/Spindle Reset (DB31, ... DBX2.2) S IS Oscillation speed (DB31, ... DBX18.5) S NC-STOP axes plus spindles interface signal (DB21, ... DBX7.4) S IS Axis/spindle lock (DB31, ... DBX1.3) S Delete S value interface signal (DB31, ... DBX16.7)
Maximum speed
The MD 35130: GEAR_STEP_MAX_VELO_LIMIT defines the maximum speed for the gear stage. In the gear stage engaged, this set speed can never be exceeded. When the programmed spindle speed is limited, the IS Set speed limited (DV31, ... DBX83.1) (Programmed speed too high) is enabled.
2.7.4
Warning The maximum encoder frequency limit of the actual spindle position encoder is monitored by the control (the limit can be exceeded). It is the responsibility of the machine tool manufacturer to ensure that the configuration of the spindle motor, gears, measurement gears, encoder and machine data prevents the maximum speed of the actual spindle position encoder from being exceeded.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-67
11.02 10.00
If the spindle speed reaches a speed (large S value programmed), which exceeds the maximum encoder limit frequency (the maximum mechanical speed limit of the encoder must not be exceeded), the synchronization is lost. The spindle continues to rotate, but with reduced functionality. With the following functions, the spindle speed is reduced until the active measurement system is operating below the encoder limit frequency again:
S Thread cutting (G33, G34, G35) S Tapping without compensating chuck (G331, G332) S Revolutional feedrate (G95) S Constant cutting rate G96, G961, G97, G971) S SPCON (position controlled spindle operation).
If the encoder limit frequency is exceeded, the Referenced/synchronized 1 or Referenced / synchronized 2 interface signal is reset for the relevant measurement system and the Encoder limit frequency 1 exceeded or Encoder limit frequency 2 exceeded interface signals enabled. If the spindle is in axis mode, the maximum encoder limit frequency must not be exceeded. The maximum speed (MD 32000: MAX_AX_VELO) must lie below the maximum encoder limit frequency; otherwise, alarm 21610 is output and the axis brought to a standstill.
If the maximum encoder frequency limit has been exceeded and the speed subsequently falls below the maximum encoder limit frequency (smaller S value programmed, spindle offset switch changed, etc.), the spindle is automatically synchronized with the next zero mark or the next Bero signal. The new synchronization will always be carried out for the active position measuring system that has lost its synchronization and the max. encoder limit frequency has currently not been reached.
If the following functions are active, the maximum encoder frequency cannot be exceeded.
S Spindle mode positioning mode, axis mode S Thread cutting (G33, G34, G35) S Rigid tapping G331, G332 (does not apply to G63) S Revolutional feedrate (G95) S Constant cutting rate G96, G961, G97, G971) S SPCON (position-controlled spindle operation).
1/S1/2-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.7.5
In SW 5.1 and higher, different exact stop windows can be configured for different parameter sets. This makes it possible to work to different levels of accuracy in axis mode and spindle positioning. The exact stop window can be configured separately for each gear stage for spindle positioning.
Fig. 2-12
IS Position reached with exact stop coarse/fine DB31, ... DBX60.7 DB31, ...DBX60.6 Block change for SPOS and M19
The two limits defined by MD 36000: STOP_LIMIT_COARSE and MD 36010: STOP_LIMIT_FINE (exact stop limit coarse and fine) reached with the IS Position reached with exact stop coarse exact stop (DB31, ... DBX60.7) and IS Position reached with exact stop fine (DB31, ... DBX60.6) are output to the PLC.
If the spindle is being positioned with SPOS or M19, the block change will be dependent on the end point monitoring with the IS Position reached with exact stop fine. All other functions programmed in the block must have achieved their end criterion (e.g. all auxiliary functions acknowledged by the PLC). With SPOSA, the block change does not depend on the monitoring of the destination point.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/2-69
11.02 10.00
Notes
1/S1/2-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
Supplementary Conditions
There are no supplementary conditions stipulated for this Description of Functions.
3
J
4.1
10192 GEAR_CHANGE_WAIT_TIME MD number Wait time for of a gear stage change when reorganizing Default setting: 10 Minimum input limit: 0 Maximum input limit: 100000 Changes effective after POWER ON Protection level: 2/7 Unit: s Data type: DOUBLE Applies from SW 5.3 Significance: External events that initiate reorganizing will wait until a gear stage change is completed. The machine data MD 10192: GEAR_CHANGE_WAIT_TIME will now determine how long it is waited for the gear stage change. If this time expires without completing the gear stage change, the NCK will response with the following alarm. Amongst others, the following events result in reorganizing: D User ASUB D Mode change D Delete distance-to-go D Axis replacement D Activate user data or machine data D Switch over skip or dry run D Edit in modes D Correction block alarms D Overstore D Rapid retraction with G33, G34, G35 D Subroutine level abortion, subroutine abortion Related to .... MD 35010: GEAR_STEP_CHANGE_ENABLE gear stage changeover possible
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-71
03.02 10.00
10714 M_NO_FCT_EOP MD number M function for spindle active after RESET Default setting: 1 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Spindles for which a 2 is configured in MD 35040: SPIND_ACTIVE_AFTER_RESET are not reset with this M function once the parts program has been completed. The spindle thus remains active after the end of the parts program. Suggestion (JobSop): M32
Related to ....
M functions with predetermined meaning may not be configured in MD 10714: M_NO_FCT_EOP . These are: D M0 to M5, D M17, M30, D M19, D M40 to M45. D M functions for spindle mode/axis mode switchover acc. to machine data MD 20094: SPIND_RIGID_TAPPING_M_NR (default: M70), D M functions for nibbling/punching as configured via machine data MD 26008: NIBBLE_PUNCH_CODE and MD 26012: PUNCHNIB_ACTIVATION D M functions for interrupt programming as configured via machine data MD 10804: EXTERN_M_NO_SET_INT and MD 10806: EXTERN_M_NO_DISABLE_INT (default: M96 and M97). D For applied external language with MD 18800: MM_EXTERN_LANGUAGE M96 and M99 additionally. MD 35040: SPIND_ACTIVE_AFTER_RESET (spindle active via reset)
1/S1/4-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
4.2
Maximum input limit: 5 (SINUMERIK 840D) 1 (SINUMERIK FMNC/810D) Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: Each channel must have a master spindle for the following functions: D G95 Revolutional feedrate D G96/G961 S1Spindle 1 Constant cutting rate in m/min or ft/min (for SINUMERIK FM-NC only) D G97/G971 Cancel G96/G961 and freeze last spindle speed D G63 Tapping with compensating chuck D G33 Thread cutting D G34 Thread lead increase (progressive velocity change) D G35 Thread lead decrease (degressive velocity change) D G331/G332 Rigid tapping D G4 S1Spindle 1 Dwell time in spindle revolutions The master spindle can also be programmed with the commands M3, M4, M5, S, SPOS, WAITS, SPOSA, M19, M40, M41 to M45 without specifying the spindle number. The MD 20090: SPIND_DEF_MASTER_SPIND, the reset value of the master spindle applies until a new master spindle is defined with the SETMS program command. The STEMS setting is deleted with NC start. Following an M02/M30 and new NC start, the spindle defined in SPIND_DEF_MASTER_SPIND is always the master spindle. Application example(s) Two spindles (a main spindle and an auxiliary spindle as a rotating tool) are provided on a turning machine. The main spindle is declared as the master spindle in MD: SPIND_DEF_MASTER_SPIND. The SETMS program command can be used to declare the auxiliary spindle as the master spindle for drilling and face end machining (milling). It is therefore possible to program the auxiliary spindle with M3, M4 and M5 (with no address extension) or to perform rigid tapping.
20092 SPIND_ASSIGN_TAB_ENABLE MD number Enabling/disabling of spindle converter Default setting: 0,0,0,0, 0,0,0,0, 0,0,0,0, Minimum input limit: 0 Maximum input limit: 1 0,0,0,0 Changes effective after RESET Protection level: 7/7 Unit: Data type: BYTE Applies from SW 4.3 Significance: Value 0: The spindle converter function is deactivated. The contents of SD 42800: SPIND_ASSIGN_TAB[..] are not evaluated. Value 1: The spindle converter is activated. Conversion from logical to physical spindle takes place. For more information, see SD 42800: SPIND_ASSIGN_TAB. Note: After Delete SRAM (start-up switch to position 1), the spindle converter is deactivated. Special cases, errors, ... Related to .... SD 42800: SPIND_ASSIGN_TAB
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-73
10.00
20850 SPOS_TO_VDI MD number Output of the auxiliary function M19 to the VDI interface for SPOS/SPOSA Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 7/7 Unit: Data type: BYTE Applies from SW SW 5.3 Significance: 0: No M19 is output to the VDI interface for SPOS and SPOSA. This saves the acknowledgment time of the M function. 1: No M19 is output to the VDI interface for SPOS and SPOSA. Response corresponds to spindle position with M19 from the parts program.
22400 S_VALUES_ACTIV_AFTER_RESET MD number S function via RESET active Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW SW1.1 Significance: 0: After a reset, the various S values are equal to 0 and must therefore be reprogrammed. 1: The last S values set in main run are also effective after a reset.
1/S1/4-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
4.3
4.3.1
Referencing/synchronizing
31122 BERO_DELAY_TIME_PLUS MD number BERO delay time in plus direction Default setting: 0.000110 Minimum input limit: 0.0 Maximum input limit: 1.0 Changes effective after NewConfig Protection level: 2/7 Unit: s Data type: DOUBLE Applies from SW 4.1 Significance: In conjunction with the setting MD 34200: ENC_REFP_MODE (Referencing mode) = 2 or 7, a signal runtime compensation in the positive direction of movement with a BERO (zero mark), (see/FB1/, R1, Reference Point Approach). The typical overall delay time of the BERO detection range is entered for crossing in the positive direction. The time covers: the BERO edge delay time the signal digitization time the measured value processing time, etc. The times depend on the hardware used. The default value is typical for SIEMENS products. Customized calibration is necessary only in exceptional circumstances. Entering the minimum value 0.0 switches the compensation off; this makes sense in conjunction with MD 34200: ENC_REFP_MODE = 7. The machine data is available for each encoder. MD 34200: ENC_REFP_MODE (referencing mode) MD 34040: REFP_VELO_SEARCH_MARKER[n] (reference point creep speed [encoder no.])
Related to ....
31123 BERO_DELAY_TIME_MINUS MD number BERO delay time in minus direction Default setting: 0.000078 Minimum input limit: 0.0 Maximum input limit: 1.0 Changes effective after NewConfig Protection level: 2/7 Unit: s Data type: DOUBLE Applies from SW 4.1 Significance: In conjunction with the setting MD 34200: ENC_REFP_MODE (referencing mode) = 2 or 7, a signal runtime compensation in the negative direction of movement with a BERO (zero mark), (see/FB1/R1, Reference point approach). The typical overall delay time of the BERO detection range is entered for crossing in the negative direction. The time covers: the BERO edge delay time the signal digitization time the measured value processing time, etc. The times depend on the hardware used. The default value is typical for SIEMENS products. Customized calibration is necessary only in exceptional circumstances. Entering the minimum value 0.0 switches the compensation off; this makes sense in conjunction with MD 34200: ENC_REFP_MODE = 7. The machine data is available for each encoder. MD 34200: ENC_REFP_MODE (referencing mode) MD 34040: REFP_VELO_SEARCH_MARKER[n] (creep speed [encoder no.])
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-75
11.02 10.00
4.3.2
Intermediate gear
31044 ENC_IS_DIRECT2[n] MD number Encoder at intermediate gear Default setting: 0.0 (FALSE) Minimum input limit: 0.0 (FALSE) Maximum input limit: 1.0 (TRUE) Changes effective after NewConfig Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 6.4 Significance: Encoder installation location behind load intermediate gear When using a load intermediate gear (e.g. for power tools, compare MD 31066 DRIVE_AX_RATIO2_NUMERA und MD 31064 DRIVE_AX_RATIO2_DENOM), the encoder installation location can be defined as on drive of the load intermediate gear: The position for encoder installation is configured through combination of the the two machine data MD 31040: ENC_IS_DIRECTE and MD 31044: ENC_IS_DIRECT2: For encoder installation on drive of the load intermediate gear, simultaneously set MD 31040: ENC_IS_DIRECT=TRUE and MD 31044: ENC_IS_DIRECT2=TRUE For encoder installation on drive of the load intermediate gear, set only MD 31040: ENC_IS_DIRECT=TRUE with MD 31044: ENC_IS_DIRECT2=FALSE. A parameter alarm is not issued for a non-defined combination. Set is MD 31044: ENC_IS_DIRECT2=TRUE with MD 31040: ENC_IS_DIRECT=FALSE. MD 31066: DRIVE_AX_RATIO2_NUMERA (numerator intermediate gear) MD 31064: DRIVE_AX_RATIO2_DENOM (denominator intermediate gear) MD 31040: ENC_IS_DIRECT (encoder is connected directly at the machine) /FB1/, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
Related to ....
References
31064 DRIVE_AX_RATIO2_DENOM MD number Intermediate gear Default setting: 1.0 Minimum input limit: 1.0 Maximum input limit: 2147000000 Changes effective after NewConfig Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Denominator intermediate gear In conjunction with machine data MD 31066 DRIVE_AX_RATIO2_NUMERA, defines a intermediate gear that acts as a multiplier on the motor&load gearbox. The motor/load gearbox is described bz the machine data MD 31060: DRIVE_AX_RATIO_NUMERA (numerator load gearbox) MD 31050: DRIVE_AX_RATIO_DENOM (denominator load gearbox) The load intermediate gear is inactive for default values 1:1. For encoder installation, observe MD 31044: ENC_IS_DIRECT2! When the Safety Integrated function is active (Compare also MD 36901: SAFE_FUNCTION_ENABLE), use of the load intermediate gear is not permitted and is answered with Alarm 26014 Channel %1 Axis %2 Hardware limit switch %3. In this way, load intermediate gear is deactivated and the default values 1:1 set. MD 31066: DRIVE_AX_RATIO2_NUMERA (numerator intermediate gear) MD 31044: ENC_IS_DIRECT2 (encoder at intermediate gear) MD 31060: DRIVE_AX_RATIO_NUMERA (numerator load gearbox) MD 31050: DRIVE_AX_RATIO_DENOM (denominator load gearbox) MD 36901: SAFE_FUNKTION_ENABLE) (enable safe function) /FB1/, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
Related to ....
References
1/S1/4-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
31066 DRIVE_AX_RATIO2_NUMERA MD number Numerator intermediate gear Default setting: 1.0 Minimum input limit: 2147000000 Maximum input limit: 2147000000 Changes effective after NewConfig Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.4 Significance: Numerator intermediate gear In conjunction with machine data MD 31064 DRIVE_AX_RATIO2_NUMERA, defines a intermediate gear that acts as a multiplier on the motor&load gearbox. The motor/load gearbox is described by the machine data MD 31060: DRIVE_AX_RATIO_NUMERA (numerator load gearbox) MD 31050: DRIVE_AX_RATIO_DENOM (denominator load gearbox) MD 31064: DRIVE_AX_RATIO2_DENOM (denominator intermediate gear) MD 31044: ENC_IS_DIRECT2 (encoder at intermediate gear) MD 31060: DRIVE_AX_RATIO_NUMERA (numerator load gearbox) MD 31050: DRIVE_AX_RATIO_DENOM (denominator load gearbox) MD 36901: SAFE_FUNKTION_ENABLE) (enable safe function) /FB1/, Velocities, Setpoint/Actual Value Systems, Closed-Loop Control
Related to ....
References
4.3.3
35010 GEAR_STEP_CHANGE_ENABLE MD number Gear stage change options extendable for fixed position (SW 5.3 and higher) Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after RESET Protection level: 2/7 Unit: Data type: DWORD Applies from SW 1.1 Significance: 0: Spindle drive is mounted to the spindle directly (1:1) or with a fixed transmission ratio. It is not possible to change the gear stage with M40 to M45. possible. 1: Spindle drive is mounted to the spindle via gears with selectable gear stages. The gear can have up to 5 gear stages, which can be selected using M40, M41 to M45. 2: As 1, but with gear stage change at programmed spindle position (SW 5.3 and Related to .... MD 35110: GEAR_STEP_MAX_VELO (max. speed for automatic Gear stage change) MD 35120: GEAR_STEP_MIN_VELO (min. speed for automatic Gear stage change) GEAR_STEP_MAX_VELO and GEAR_STEP_MIN_VELO must cover the whole speed range.
35012 GEAR_STEP_CHANGE_POSITION MD number Gear stage change position Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective after NewConfig Protection level: 2/7 Unit: degrees Data type: DOUBLE Applies from SW 5.3 Significance: Gear stage change position The value range is limited internally to the programmed modulo range. Related to .... MD 30330: MODULO_RANGE (Extent of modulo range) MD 35210: GEAR_STEP_POSCTRL_ACCEL (Acceleration in position control mode) MD 35300: SPIN_POSCTRL_VELO (Position control activation speed)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-77
10.00
35110 MD number
GEAR_STEP_MAX_VELO[n]
Maximum speed for gear stage change [gear stage number]: 0...5 (index 0 is irrelevant for spindles) Default setting: 500, 500, 1000, 2000, Minimum input limit: 0 Maximum input limit: plus 4000, 8000 Changes effective after NewConfig Protection level: 2/7 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: GEAR_STEP_MAX_VELO defines the maximum speed of the gear stage for automatic gear stage change (M40 ). The gear stages must be defined by GEAR_STEP_MAX_VELO and MD 35120: GEAR_STEP_MIN_VELO_LIMIT in a way that avoids gaps in the programmable spindle speed range between the gear stages. Incorrect GEAR_STEP_MAX_VELO [gear stage1] =1000 GEAR_STEP_MIN_VELO [gear stage2] =1200 Correct GEAR_STEP_MAX_VELO [gear stage1] =1000 GEAR_STEP_MIN_VELO [gear stage2] =950 Related to .... MD 35010: GEAR_STEP_CHANGE_ENABLE (gear stage change is possible) MD 35120: GEAR_STEP_MIN_VELO (minimum speed for gear stage change) MD 35140: GEAR_STEP_MIN_VELO_LIMIT (minimum speed for gear stage) MD 35130: GEAR_STEP_MAX_VELO_LIMIT (maximum speed for gear stage)
35120 MD number
GEAR_STEP_MIN_VELO[n]
Minimum speed for gear stage change [gear stage number]: 0...5 Default setting: 50, 50, 400, 800, 1500, Minimum input limit: 0 Maximum input limit: plus 3000 Changes effective after NewConfig Protection level: 2/7 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: GEAR_STEP_MIN_VELO defines the minimum speed for gear stage for automatic gear stage change (M40). Refer to MD 35120: GEAR_STEP_MAX_VELO for more information. Related to .... MD 35110: GEAR_STEP_MAX_VELO (maximum speed for gear stage change) MD 35010: GEAR_STEP_CHANGE_ENABLE (gear stage change is possible) MD 35140: GEAR_STEP_MIN_VELO_LIMIT (minimum speed for gear stage) MD 35130: GEAR_STEP_MAX_VELO_LIMIT (maximum speed for gear stage)
1/S1/4-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
35130 MD number
GEAR_STEP_MAX_VELO_LIMIT [n]
Maximum speed for gear stage [gear stage number]; 0 ...5 Default setting: 500, 500, 1000, 2000, Minimum input limit: 0 Maximum input limit: plus 4000, 8000 Changes effective after NewConfig Protection level: 2/7 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: GEAR_STEP_MAX_VELO_LIMIT defines for the gear stage. This speed can never be exceeded in the currently engaged gear stage. Special cases, errors, ... D If position control is activated, the value is limited to 90% (control margin) D If an S value exceeding the maximum speed of the engaged gear stage is programmed, the speed is limited to the maximum speed of the gear stage (with gear stage selection M41 to M45) and the Programmed speed too high interface signal is enabled. D If an S value exceeding the maximum speed for the gear change is programmed, a new gear stage is selected (with automaticc selection M40). D If an S value exceeding the maximum speed of the highest gear stage is programmed, the speed is limited to the maximum speed of the gear stage (with automatic gear stage selection M40). D If an S value is programmed for which no suitable gear stage exists, a gear change is not triggered. Related to .... MD 35010: GEAR_STEP_CHANGE_ENABLE (gear stage change is possible) MD 35110: GEAR_STEP_MAX_VELO (maximum speed for gear stage change) MD 35120: GEAR_STEP_MIN_VELO (minimum speed for gear stage change) MD 35140: GEAR_STEP_MIN_VELO_LIMIT (minimum speed for gear stage)
35140 MD number
GEAR_STEP_MIN_VELO_LIMIT [n]
Minimum speed for gear stage [gear stage number]: 0...5 Default setting: 5, 5, 10, 20, 40, 80 Minimum input limit: 0 Maximum input limit: plus Changes effective after NewConfig Protection level: 2/7 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: GEAR_STEP_MIN_VELO_LIMIT defined the minimum speed for the gear stage. The speed cannot drop to below this value, even if a very low S value is programmed. The speed can only drop to below this minimum value as a result of the signals/commands/ states listed in Subsection 2.5.4. Minimum/maximum speed for the gear stage. MD irrelevant for ... D Spindle mode oscillation mode D Spindle mode positioning mode, axis mode Application example(s) Smooth operation of the motor is not assured below the minimum speed. Related to .... MD 35010: GEAR_STEP_CHANGE_ENABLE (gear stage change is possible) MD 35110: GEAR_STEP_MAX_VELO (maximum speed for gear stage change) MD 35120: GEAR_STEP_MIN_VELO (minimum speed for gear stage change) MD 35130: GEAR_STEP_MAX_VELO_LIMIT (maximum speed for gear stage)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-79
10.00
35200 MD number
GEAR_STEP_SPEEDCTRL_ACCEL[n]
Acceleration in speed control mode [gear stage number]: 0...5 Default setting: 30, 30, 25, 20, 15, 10 Minimum input limit: 2 Maximum input limit: *** Changes effective after NewConfig Protection level: 2/7 Unit: rev./s2 Data type: DOUBLE Applies from SW 1.1 Significance: If the spindle is in speed control mode, the acceleration is entered in GEAR_STEP_SPEEDCTRL_ACCEL. The spindle is in speed control mode with the function SPCOF. Special cases, errors, ... Thus the acceleration in speed control mode (GEAR_STEP_SPEEDCTRL_ ACCEL) can be set so that the current limit is reached. Related to .... MD 35210: GEAR_STEP_POSCTRL_ACCEL (acceleration in position control mode) MD 35220: ACCEL_REDUCTION_SPEED_POINT (acceleration reduced by speed limit)
35210 MD number
GEAR_STEP_POSCTRL_ACCEL[n]
Acceleration in position control mode [gear stage number]: 0...5 Default setting: 30, 30, 25, 20, 15,10 Minimum input limit: 2 Maximum input limit: *** Changes effective after NewConfig Protection level: 2/7 Unit: rev./s2 Data type: DOUBLE Applies from SW 1.1 Significance: The acceleration in position control mode must be set so that the current limit is not reached. Related to .... MD 35200: GEAR_STEP_SPEEDCTRL_ACCEL MD 35220: ACCEL_REDUCTION_SPEED_POINT
1/S1/4-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
4.3.4
Maximum input limit: 5 840D/810D 2 FMNC Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: In order that the NCK/PLC user interface is the same for all axes and spindles, spindles are always mapped onto machine axes internally in the control. SPIND_ASSIGN_TO_MACHAX is set to define the spindle no. used for the machine axis. Application example(s) An example of a milling machine with 3 machine axes (X, Y and Z) and a spindle: SPIND_ASSIGN_TO_MACHAX [AX1] = 0 > X SPIND_ASSIGN_TO_MACHAX [AX2] = 0 > Y SPIND_ASSIGN_TO_MACHAX [AX3] = 0 > Z SPIND_ASSIGN_TO_MACHAX [AX4] = 1 > Spindle number 1 is the 4th machine axis Related to .... MD 30300: IS_ROT_AX (rotary axis/spindle) MD 30310: ROT_IS_MODULO (modulo conversion for rotary axis/spindle) This machine data must be set; otherwise, the alarms 4210 Rotary axis declaration missing and 4215 Modulo axis declaration missing are output.
SPIND_ASSIGN_TO_MACHAX Assignment between spindle no. and machine axis Minimum input limit: 0
35020 SPIND_DEFAULT_MODE MD number Basic spindle setting Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after RESET Protection level: 2/7 Unit: Data type: BYTE Applies from SW 2 Significance: SPIND_DEFAULT_MODE activates the operating mode of the spindle at the time specified in MD 35030: SPIND_DEFAULT_ACT_MASK. The appropriate spindle operating modes can be selected with the following values: 0 Speed mode, position control deselected 1 Speed mode, position control activated 2 Positioning mode 3 Axis mode Related to .... MD 35030: SPIND_DEFAULT_ACT_MASK (activate basic spindle position setting)
35030 SPIND_DEFAULT_ACT_MASK MD number Activate initial spindle setting Default setting: 0x00 Minimum input limit: 0 Maximum input limit: 0x03 Changes effective after RESET Protection level: 2/7 Unit: HEX Data type: BYTE Applies from SW 2 Significance: SPIND_DEFAULT_ACT_MASK specifies the time that operating mode defined in MD 35020: SPIND_DEFAULT_MODE becomes effective. The basic spindle setting can be assigned the following values at the following points in time: 0 POWER ON 1 POWER ON and NC program start 2 POWER ON and RESET (M2/M30) Special cases, errors, ... If MD 35040: SPIND_ACTIVE_AFTER_RESET = 1, the following supplementary conditions are applicable: SPIND_DEFAULT_ACT_MASK should be set to 0 If this is not possible, the spindle must be at standstill prior to activation. Related to .... MD 35020: SPIND_DEFAULT_MODE (basic spindle setting) MD 35040: SPIND_ACTIVE_AFTER_RESET (spindle active via reset)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-81
35035 SPIND_FUNCTION_MASK MD number Setting spindle-specific functions Default setting: 0x110 Minimum input limit: 0 Maximum input limit: 0x137 Changes effective after RESET Protection level: 2/7 Unit: Data type: DWORD Applies from SW 6.1 bits 0 to 2, SW 6.1 and higher) bits 3 11, SW 6.2 and higher) Significance: SPIND_FUNCTION_MASK can be used to set spindle-specific functions. The machine data SPIND_FUNCTION_MASK is bit-coded; the following bits are occupied: Bit 0 = 1: Gear stage changes are suppressed when the DryRun function is active for block programming (M40, M41 to M45), and programming via FC18 and synchronized actions. Bit 1 = 1: Gear stage changes are suppressed when the Program Test function is active for block programming (M40, M41 to M45), and programming via FC18 and synchronized actions. Bit 2=1: Gear stage change for programmed gear stage is performed subsequently on REPOS after deselection of functions DryRun or Program Test. Bit 3: Bit 4=1: reserved The programmed speed is accepted into the SD 43200: SA_SPIND_S SA_SPIND_S (incl. speed settings via FC18 and synchronized actions). Programmed S values that are no programmed speed values are not written to the setting data SD 43200. This pertains, e.g. to the S value at constant cutting rate (G96, G961), S value at revolutionrelated dwell time (G4). The content of SD 43200: SA_SPIND_S acts as the set speed in JOG mode. If the content is zero, then other JOG speed settings become active (see SD 41200: JOG_SPIND_SET_VELO). reserved reserved The programmed cutting rate is accepted into the SD 43202: SA_SPIND_CONSTCUT_S (incl. settings via FC18 and synchronized actions). Programmed S values that are no programmed cutting rate values are not written to SD 43202.This pertains, e.g. to the S value at constant cutting rate (G96, G961) and to the S value at revolution-related dwell time (G4).
Bit 5=1:
Related to ....
Bit 9: reserved Bit 10: reserved Bit 11: reserved Supplementary Conditions: Only programming SD 43200 and SD 43202 will not result in a change of the speed or cutting rate. MD 35020: SPIND_DEFAULT_MODE (basic spindle setting) MD 35040: SPIND_ACTIVE_AFTER_RESET (spindle active via reset) IS interrupted DB21, ... DBX35.6 or Reset DB21, ... DBX35.7 IS aborted DB21, ... DBX35.4
1/S1/4-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
35040 SPIND_ACTIVE_AFTER_RESET MD number Spindle active after reset Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: SPIND_ACTIVE_AFTER_RESET sets how the spindle responds to a reset (DB21, ... DBX7.7) and end of program (M2, M30). It is only active in the spindle control mode. SPIND_ACTIVE_AFTER_RESET = 0: Control mode: Spindle stops, applies only for M2/M30 and MCP reset Program is aborted, applies for M2/M30 Oscillation mode: Alarm 10640 Spindle cannot stop during gear change Oscillation is not aborted The axes are stopped The program is aborted after a gear change or spindle reset and the alarm is cleared Positioning mode: is stopped Axis mode: is stopped SPIND_ACTIVE_AFTER_RESET = 1: Control mode: The spindle does not stop The program is aborted Oscillation mode: Alarm 10640 Spindle cannot stop during gear change Oscillation is not aborted The axes are stopped The program is aborted after a gear change or spindle reset, the alarm is cleared and the spindle continues to rotate with the programmed M and S value. Positioning mode: is stopped Axis mode: is stopped SPIND_ACTIVE_AFTER_RESET = 2: The spindle stops on a RESET or at the end of the program unless the parts program is terminated using the M function configured in MD 10714: NO_FCT_EOP (default M32). The spindle can be stopped using the Spindle reset/Delete distance-to-go interface signal. The IS Spindle Reset (DB31, ... DBX2.2) is always active, independently of SPIND_ACTIVE_AFTER_RESET . All spindle modes except control mode IS Reset (DB21, ... DBX7.7) IS Spindle Reset (DB31, ... DBX2.2)
35100 SPIND_VELO_LIMIT MD number Maximum spindle speed Default setting: 10 000 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2/7 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: SPIND_VELO_LIMIT defines the maximum spindle speed, which the spindle (the spindle chuck with the workpiece or the tool) must not exceed. The NCK limits an excessive spindle speed setpoint to this value. If the maximum spindle actual speed is exceeded, even allowing for the spindle speed tolerance (MD 35150: SPIND_DES_VELO_TOL), there is a fault with the drive and the Speed limit exceeded interface signal (DB31, ... DBX83.0) is set. Alarm 22050 maximum speed reached is also output and all of the axes and spindles on the channel brought to a halt (provided the encoder is still functioning correctly). Related to .... MD 35150: SPIND_DES_VELO_TOL (spindle speed tolerance) IS Speed limit exceeded (DB31, ... DBX83.0) Alarm 22050 maximum speed reached
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-83
11.02 10.00
35150 SPIND_DES_VELO_TOL MD number Spindle speed tolerance Default setting: 0,1 Minimum input limit: 0 Maximum input limit: 1.0 0,1 = 10% 1 = 100% Changes effective after RESET Protection level: 2/7 Unit: factor Data type: DOUBLE Applies from SW 1.1 (modified in SW 6.4 and higher) Significance: In spindle mode, the set speed (programmed speed x spindle offset taking limits into account) is compared to the actual speed. D If the actual speed deviates from the set speed by more that the SPIND_DES_VELO_TOL, the spindle in setpoint range interface signal (DB31, ... DBX83.5) is set to zero. D If the actual speed exceeds the maximum spindle speed (MD 35100: SPIND_VELO_LIMIT) by more than SPIND_DES_VERLO_TOL SPIND_VELO_LIMIT), IS Speed limit exceeded (DB31, ... DBX83.0) is set and Alarm 22050 maximum speed reached issued. All axes and spindles on the channel are brought to a standstill. The spindle set speed is obtained from the programmed speed and the current limits. A limitation or increase in the programmed speed is indicated by the axial IS Set speed limited (DB31, ... DBX83.1) or IS Setpoint speed increased (DB31, ... DBX83.2) and does not prevent reaching the speed tolerance range. VDI interface: If the actual spindle speed lies within the tolerance window, then the axial IS Spindle in setpoint range (DB31, ... DBX83.5) is set to 1. This information corresponds to the setting in MD 35500: SPIND_ON_SPEED_AT_IPO_START or MD 35510: SPIND_STOPPED_SPEED_AT_IPO_START and can be used to delay the path interpolation. Speed change: The path control only takes place at the start of the traverse block and only if a speed change has been programmed. If the speed tolerance range is violated, e.g. due to an overload, the path control is not brought to a standstill. Spindle oscillation mode Spindle mode positioning mode Speed (rev/min) Upper spindle speed tolerance Speed setpoint Lower spindle speed tolerance
SPIND_DES_VELO_TOL
Actual speed
Time (t) Application example(s) MD 35150: SPIND_DES_VELO_TOL = 0,1. The spindle actual speed must not deviate more than +/ 10% compared to the set speed. Used for all axes and spindles to perform checking on a falling edge of the cam signal in the second phase of reference ponit approach when searching for the yero marker. For further information, refer to Reference: R1, Reference Point Approach If the speed tolerance is set to zero, the axial VDI interface signal IS Spindle in set range (DB31, ... DBX83.5) is permanently set to 1 and no path control takes place. Further machine data: MD 35500: SPIND_ON_SPEED_AT_IPO_START, MD 35510: SPIND_STOPPED_AT_IPO_START, Alarm 22050 Maximum speed reached IS Spindle in setpoint range (DB31, ... DBX83.5) IS Speed limit exceeded (DB31, ... DBX83.0)
1/S1/4-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
35160 SPIND_EXTERN_VELO_LIMIT MD number Spindle speed limitation via PLC Default setting: 1000 Minimum input limit: 0 Maximum input limit: plus Changes effective after NewConfig Protection level: 2/7 Unit: rev/min Data type: DOUBLE Applies from SW 1.1 Significance: A limit for the spindle speed is entered in SPIND_EXTERN_VELO_UNIT, which is taken into account when the IS Velocity/speed limitation (DB31, ... DBX3.6) is enabled. If the spindle speed is too high, the NCK will limit the it to this value.
35220 ACCEL_REDUCTION_SPEED_POINT MD number Speed limit for reduced acceleration Default setting: 1.0 Minimum input limit: 0.0 Maximum input limit: 1.0 Changes effective after RESET Protection level: 2/7 Unit: factor Data type: DOUBLE Applies from SW 1.1 Significance: The torque of a spindle is constant in the lower speed range and becomes smaller above a defined speed (upper speed range). The upper speed range with reducing torque starts at a speed which must be entered in MD: ACCEL_REDUCTION_SPEED_POINT. MD irrelevant for ... Spindles with constant torque across the entire speed range Related to .... MD 35210: GEAR_STEP_POSCTRL_ACCEL (acceleration in position control mode) MD 35200: GEAR_STEP_SPEEDCTRL_ACCEL (acceleration in speed control mode) MD 35230: ACCEL_REDUCTION_FACTOR (reduced acceleration)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-85
10.00
35230 ACCEL_REDUCTION_FACTOR MD number Reduced acceleration Default setting: 0 Minimum input limit: 0.0 Maximum input limit: 0.95 Changes effective after RESET Protection level: 2/7 Unit: factor Data type: DOUBLE Applies from SW 1.1 Significance: The torque of a spindle is constant in the lower speed range and becomes smaller above a defined speed (upper speed range). The upper speed range with reducing torque starts at a speed defined in MD 35220: ACCEL_REDUCTION_SPEED_POINT (speed limit for reduced acceleration). ACCEL_REDUCTION_SPEED_POINT (speed limit for reduced acceleration). The value defined in ACCEL_REDUCTION_FACTOR is the maximum permissible acceleration for the maximum speed of the gear stage (MD 35130: GEAR_STEP_MAX_VELO_LIMIT). Caution: The reduced acceleration is entered as a percentage (%). Depending on whether the spindle is in position control mode or in speed control mode, the reduced acceleration relates either to the acceleration in position control mode (MD 35210: GEAR_STEP_POSCTRL_ACCEL) or to the acceleration of the active gear stage in the speed control mode (MD 35200: GEAR_STEP_SPEEDCTRL_ACCEL). MD irrelevant for ... Spindles with constant torque across the entire speed range Fig. 4-2 Acceleration
a1
a2
n1
n2
n [rev/min]
a1 ... MD: GEAR_STEP_POSCTRL_ACCEL [degrees/s ] a2 ... MD: ACCEL_REDUCTION_FACTOR [%] n1 ... MD: ACCEL_REDUCTION_SPEED_POINT [%] n2 ... MD: GEAR_STEP_MAX_VELO_LIMIT [rev/min]
Related to ....
MD 35210: GEAR_STEP_POSCTRL_ACCEL (acceleration in position control mode) MD 35200: GEAR_STEP_SPEEDCTRL_ACCEL (acceleration in speed control mode) MD 35220: ACCEL_REDUCTION_SPEED_POINT (acceleration reduced by speed limit) MD 35130: GEAR_STEP_MAX_VELO_LIMIT (maximum speed for gear stage)
1/S1/4-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
35300 SPIND_POSCTRL_VELO MD number Position control activation speed Default setting: 500 Minimum input limit: 0 Maximum input limit: plus Changes effective after NewConfig Protection level: 2/7 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: When positioning a spindle that is not in position control mode, the position control is not activated until the spindle has reached the speed defined in MD: SPIND_POSCTRL_VELO. The speed can be changed with FA[Sn] from the parts program. Please refer to Subsection 2.1.3 Spindle positioning mode for a description of spindle operating characteristics under various supplementary conditions (positioning from rotation, positioning from standstill). MD 35350: SPIND_POSITIONING_DIR (direction of rotation during positioning from standstill), if no synchronization is available.
Related to ....
35310 SPIND_POSIT_DELA Y_TIME MD number Positioning delay time Default setting: 0.0, 0.05, 0.1, 0.4, 0.8 Minimum input limit: 0 Maximum input limit: plus Changes effective after NewConfig Protection level: 2/7 Unit: s Data type: DOUBLE Applies from SW 6.1 Significance: The end of the positioning operation (exact stop fine) is followed by a delay corresponding to the set time. The position appropriate to the currently engaged gear stage is selected. The delay time is activated with D a gear stage change at a defined spindle position. After the position configured in MD 35011: GEAR_STEP_CHANGE_POSTION is reached, a timer corresponding to the setting here is started. When this timer has run down, the closedloop position control is deactivated for an active, direct measuring system and IS Change gear (DB31, ... DBX82.3) and IS Set gear step A to C (DB31, ... DBX82.082.2). D Block search on output of an accumulated positioning block (SPOS, SPOSA, M19). Related to .... MD 35012: GEAR_STEP_CHANGE_POSITION (gear stage change position).
35350 SPIND_POSITIONING_DIR MD number Positioning direction of rotation for nonsynchronized spindle Default setting: 3 Minimum input limit: 3 Maximum input limit: 4 Changes effective after RESET Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: When SPOS or SPOSA is programmed, the spindle is switched to position control mode and accelerates with the acceleration defined in MD 35210: GEAR_STEP_POSCTRL_ACCEL (acceleration in position control mode) if the spindle is not synchronized. The direction of rotation is defined by MD 35350: SPIND_POSITIONING_DIR. SPIND_POSITIONING_DIR = 3 > Clockwise direction SPIND_POSITIONING_DIR = 4 > Counterclockwise direction Related to .... MD 35300: SPIND_POSCTRL_VELO (position control activation speed)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-87
10.00
Maximum input limit: value in MD: GEAR_STEP_MAX_VELO_LIMIT Changes effective after NewConfig Protection level: 2/7 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: During oscillation, the oscillation speed interface signal (DB31, ... DBX18.5) is used to select a motor speed for the spindle motor. This motor speed is defined in MD: SPIND_OSCILL_DES_VELO. The motor speed defined in this MD is independent of the current gear stage. In the AUTOMATIC and MDA displays, the oscillation speed is displayed in the spindle setpoint window until the gear is changed. MD irrelevant for ... All spindle modes except oscillation mode Application example(s) The to and fro motion of the spindle motor makes it easier to engage a new gear stage because the teeth on the gear wheels can mesh with each other better. Special cases, errors, ... The oscillation acceleration defined in MD 35410: SPIND_OSCILL_ACCEL is valid for the oscillation speed defined in this MD. Related to .... MD 35410: SPIND_OSCILL_ACCEL (acceleration during oscillation) IS Oscillation via PLC (DB31, ... DBX18.4) IS Oscillation speed (DB31, ... DBX18.5)
35410 SPIND_OSCILL_ACCEL MD number Oscillation acceleration Default setting: 16 Minimum input limit: 2 Maximum input limit: *** Changes effective after NewConfig Protection level: 2/7 Unit: rev./s2 Data type: DOUBLE Applies from SW 1.1 Significance: The acceleration specified is only effective for the output of the oscillation speed (MD 35400: SPIND_OSCILL_DES_VELO) to the spindle motor. The oscillation speed is selected using the oscillation speed interface signal. MD irrelevant for ... All spindle modes except oscillation mode Related to .... MD 35400: SPIND_OSCILL_DES_VELO (Oscillation speed) IS Oscillation speed (DB31, ... DBX18.5) IS Oscillation via PLC (DB31, ... DBX18.4)
35430 SPIND_OSCILL_START_DIR MD number Oscillation start direction Default setting: 0 Minimum input limit: 0 Maximum input limit: 4 Changes effective after RESET Protection level: 2/7 Unit: Data type: BYTE Applies from SW 1.1 Significance: With the Oscillation speed interface signal, the spindle motor accelerates to the speed specified in MD 35400: SPIND_OSCILL_DES_VELO. The start direction is defined by SPIND_OSCILL_START_DIR if oscillation via PLC is not enabled. SPIND_OSCILL_START_DIR = 0 > Start direction is last direction of rotation SPIND_OSCILL_START_DIR = 1 > Start direction counter to last direction of rotation SPIND_OSCILL_START_DIR = 2 > Start direction counter to last direction of rotation SPIND_OSCILL_START_DIR = 3 > Start direction is M3 SPIND_OSCILL_START_DIR = 4 > Start direction is M4 MD irrelevant for ... All spindle modes except oscillation mode Related to .... MD 35400: SPIND_OSCILL_DES_VELO (Oscillation speed) IS Oscillation speed (DB31, ... DBX18.5) IS Oscillation via PLC (DB31, ... DBX18.4)
1/S1/4-88
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
SPIND_OSCILL_TIME_CW Oscillation time for M3 direction Minimum input limit: 0 Maximum input limit: plus 0 means a time of one interpolation cycle (MD 10070: IPO_SYSCLOCK_TIME_RA TIO) Changes effective after NewConfig Protection level: 2/7 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: The oscillation time defined here is active in the M3 direction (see Fig. 4-3 for MD 35450: SPIND_OSCILL_TIME_CCW). MD irrelevant for ... D All spindle modes except oscillation mode D Oscillation via PLC (Oscillation via PLC interface signal (DB31, ... DBX18.4) enabled) Related to .... MD 35450: SPIND_OSCILL_TIME_CCW (oscillation time for M4 direction) MD 10070: IPO_SYSCLOCK_TIME_RATIO (interpolator clock) IS Oscillation speed (DB31, ... DBX18.5) IS Oscillation via PLC (DB31, ... DBX18.4)
SPIND_OSCILL_TIME_CCW Oscillation time for M4 direction Minimum input limit: 0 Maximum input limit: plus 0 means a time of one interpolation cycle (MD 10070: IPO_SYSCLOCK_TIME_RA TIO) Changes effective after NewConfig Protection level: 2/7 Unit: s Data type: DOUBLE Applies from SW 1.1 Significance: The oscillation time defined here is active in the M4 direction (see Fig. below). MD irrelevant for ... D All spindle modes except oscillation mode D Oscillation via PLC (Oscillation via PLC interface signal (DB31, ... DBX18.4) enabled) Fig. 4-3 Speed (rev/min)
Time (t)
Oscillation time Related to .... MD 35440: SPIND_OSCILL_TIME_CW (oscillation time for M3 direction) MD 10070: IPO_SYSCLOCK_TIME_RATIO (interpolator clock) IS Oscillation speed (DB31, ... DBX18.5) IS Oscillation via PLC (DB31, ... DBX18.4)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-89
10.00
35500 SPIND_ON_SPEED_AT_IPO_START MD number Feed enable with spindle in setpoint range Default setting: 1 Minimum input limit: 0 Maximum input limit: 2 Changes effective after RESET Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Data type: BYTE Applies from SW 4.2 Significance: Bit 0: The path interpolation is not affected Bit 1: The feed interpolation is not enabled (positioning axes continue traversing) until the spindle has reached the specified speed (tolerance range is defined via MD 35150). SW 4.2 and higher: Byte = 0: The path interpolation is not affected Byte = 1: The feed interpolation is not enabled (positioning axes continue traversing) until the spindle has reached the specified speed (tolerance range is defined via MD 35150). If a measuring system is active, then the actual speed is monitored, otherwise the setpoint speed. Traveling axes in continuous-path mode (G64) are not stopped. Byte = 2: In addition to 1., In continuous-path mode (G64) when a new machining block is loaded after rapid traverse (G0), the path velocity is decelerated if the spindle is not within the speed setpoint range. Byte = 3: No longer available in SW 5.3 and higher. Application example(s) When the spindle is in the acceleration phase (programmed setpoint speed not yet reached), the path feed must generally be disabled as follows: D IS Spindle in setpoint range (DB31, ... DBX83.5) is evaluated and IS Feed disable (DB21, ... DBX6.0) enabled The positioning axes are also stopped. D MD 35500 is set to 1 (see above) D MD 35500 is set to 2 (see above) D In blocks with G0 the influencing factor set by the MD is not active. D The path feed specification activated by MD 35500 take effect according to the: Specification of speed Specification of direction of rotation NC Start It ceases to act after the speed tolerance window has been reached at least once. Related to .... MD 35150: SPIND_DES_VELO_TOL (spindle speed tolerance) IS Spindle in setpoint range (DB31, ... DBX83.5)
1/S1/4-90
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.3
35510 SPIND_STOPPED_AT_IPO_START MD number Feed enable with stationary spindle Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after RESET Protection level: 2/7 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: When a spindle is stopped (M5), the path feed is disabled (positioning axes continue traversing) if the MD SPIND_STOPPED_AT_IPO_START is enabled and the spindle is in the control mode. If the spindle has come to a halt (IS Axis/spindle stopped (DB31, ... DBX61.4) set), path feed is enabled. Application example(s) With MD 35500: SPIND_ON_SPEED_AT_IPO_START and SPIND_STOPPED_AT_IPO_START can be used to control the path feed according to the actual spindle speed (control mode): D If the spindle is in the acceleration phase (programmed setpoint not yet reached), the path feed is disabled. D If the actual speed deviates from the speed setpoint by less than the spindle speed tolerance (MD 35150: SPIND_DES_VELO_TOL), the path feed is enabled. D If the spindle is in the braking phase, the path feed is disabled. D If the spindle has been reported as stationary (axis/spindle stationary interface signal DB31, ... DBX61.4), the feed is enabled. D In blocks with G0, the modification is not active. Related to .... MD 35500: SPIND_ON_SPEED_AT_IPO_START (feed enable for spindle in setpoint range)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-91
10.00
4.4
42800 SPIND_ASSIGN_TAB SD number Spindle number converter Default setting: Minimum input limit: 0 Maximum input limit: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, MD_SPIND_ASSIGN_TAB_LENGTH 14, 15, 16, 17, 18}, {0, 1, 2, ..., } Changes effective immediately Protection level: 7 / 7 Unit: Data type: BYTE Applies from SW 4.3 Significance: The spindle converter sets the programmed (= logical) spindle number to the physical (= internal, configured) spindle number. The index of the setting data (SD) corresponds to the programmed spindle number or the programmed address extension. The SD contains the physical spindle which actually exists. Application example(s) Spindles 1, ..., 3 are always programmed in the channel. The spindles which are actually available in the channel are entered by the MMC, PLC or parts program in the assignment table before the program is started. SD 42800: SPIND_ASSIGN_TAB[1]=15 SD 42800: SPIND_ASSIGN_TAB[2]=18 SD 42800: SPIND_ASSIGN_TAB[3]=3 SD 42800: SPIND_ASSIGN_TAB[4]=0 M1=3 S1=1000 SPOS[2]=0 M3=5 R1=$AA_S[4] Special cases, errors, ... ; phys. spindle 15 rotates at 1000 rpm in pos. direction. ; phys. spindle 18 positioned to zero degrees. ; Stop for phys. spindle 3. ; Alarm 16105 reported because phys. spindle cannot be determined.
Related to
Notes: D The zero index (SPIND_ASSIGN_TAB[0]) is only used to display the master spindle selected in the channel and must not be overwritten. D Changes to the spindle converter take effect immediately. It is therefore not advisable to change the spindle converter from MMC or PLC for a spindle used in the parts program while the program is running. D After delete SRAM, the numbers of the logical and physical spindles are identical. MD 10710: PROG_SD_RESET_SAVE_TAB (SW 5.3 and higher)
1/S1/4-92
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
43200 SPIND_S SD number Specification of the spindle speed Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective immediately Protection level: 7 / 7 Unit: rpm Data type: DOUBLE Applies from SW 6 Significance: The value SD 43200: SPIND_S is evaluated by the VDI IS Spindle start CW DB31, ... DBX30.1 and Spindle start CCW DB31, ... DBX30.2. SD irrelevant for ... Only programming SD 43200 will not result in a speed change. If SD 43200 is programmed with negative values, an alarm is signaled. SD 43200: SPIND_S will not be read if feedrate type G96 or G961 is active for the master spindle of the channel handling the spindle (constant cutting rate). In this case, the interface signal (IS) Const. Current control loop active (DB31, ... DBX84.0 = 1 is set at the VDI interface. Example: SD 43200: SA_SPIND_S[S1] = 600 If the positive edge is detected at one of the above mentioned VDI signal, spindle 1 is started at a speed of 600 rpm. Speed and direction of rotation cannot be changed by setting the DBB30 input signals while the program is running. The speed and direction of rotation specified via the DBB30 spindle interface can always be modified by programmed spindle values from the parts program, ASUB, FC18 and/or synchronized actions. SD 43202: SPIND_CONSTCUT_S (setting of the constant cutting rate for the master spindle) MD 35035: SPIND_FUNCTION_MASK (setting of spindlespecific functions)
Application example(s)
Related to ....
43202 SPIND_CONSTCUT_S SD number Specification of the constant cutting rate for the master spindle Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective immediately Protection level: 7 / 7 Unit: m/min (feet/min) Data type: DOUBLE Applies from SW 6 Significance: The value SD 43202: SPIND_CONSTCUT is evaluated by the VDI IS Spindle start CW DB31, ... DBX30.1 and Spindle start CCW DB31, ... DBX30.2. If SD 43202 is programmed from the parts program, the value is interpreted as follows, depending on the 12th G group: D If G710 is active metric in [m/min]. D If G700 is set in inch as [feet/min]. D With G70 and G71 and when writing from an external source (MMC), the setting in MD 1240: SCALING_SYSTEM_IS_METRIC will decide on how the programmed value is interpreted /R3/. To make sure that a constant cutting rate is active, the following is required: D The spindle concerned must be the master spindle in the channel handling the spindle. D The feedrate type in the channel handling the spindle must be G96 or G961 active. The above mentioned requirements are fulfilled if the IS Const. Current control loop active (DB31, ... DBX84.0 = 1 is set at the VDI interface. Only programming SD 43202 will not result in a change of the constant cutting rate. If SD 43202 is programmed with negative values, an alarm is signaled. SD 43202: SPIND_CONSTCUT_S will not be read if the appropriate prerequisites are not fulfilled. In this case, the SD 43200 SPIND_S is read. The programmed cutting rate value can be determined in the parts program and in synchronized actions by reading the system variables $P_CONSTCUT_S and $AC_CONSTCUT_S. SD 43200: SPIND_S (definition of the spindle speed) MD 35035: SPIND_FUNCTION_MASK (setting of spindle-specific functions)
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-93
10.00
43210 SPIND_MIN_VELO_G25 SD number Progr. spindle speed limitation G25) Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective immediately Protection level: MMCMD 9220 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: The spindle speed is not permitted to exceed the maximum spindle speed limit entered in SPIND_MIN_VELO_G25. The NCK limits an excessively small spindle speed setpoint to this value. References The spindle speed can only fall below the minimum limit through: D Spindle override 0% D M5 D S0 D IS Spindle stop (DB31, ... DBX8.3) D IS Remove servo enable (DB31, ... DBX2.1) D IS Reset (DB21, ... DBX35.7) D IS Spindle Reset (DB31, ... DBX2.2) D IS Oscillation speed (DB31, ... DBX18.5) D Delete S value SD irrelevant for ... Spindle modes other than control mode (SPOS, M19, SPOSA) Application example(s) Mounted in the spindle is a tool balanced with water (e.g. grinding wheel) which is no longer in balance at excessively low speeds (the balancing weight in the form of water runs out of the chambers). Special cases, errors, ... The value SPIND_MIN_VELO_G25 can be changed using: D G25 S .... in the parts program D Operator commands via MMC The value in SPIND_MIN_VELO_G25 is retained after a reset or power down. Related to .... SD 43220: SPIND_MAX_VELO_G26 SD 43230: SPIND_MAX_VELO_LIMS (progr. spindle speed limitation with G96/G961) MD 10710: $MN_PROG_SD_RESET_SAVE_TAB (SW 5.3 and higher)
43220 SPIND_MAX_VELO_G26 SD number Progr. spindle speed limitation G26) Default setting: 1000 Minimum input limit: 0 Maximum input limit: plus Changes effective immediately Protection level: MMCMD 9220 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: A maximum spindle speed is entered in SPIND_MAX_VELO_G26, which the spindle must not exceed. The NCK limits an excessive spindle speed setpoint to this value. SD irrelevant for ... All spindle modes except control mode. Special cases, errors, ... The value in SD: SPIND_MIN_VELO_G26 can be altered by means of: D G26 S .... in the parts program D Operator commands via MMC The value in SPIND_MIN_VELO_G26 is retained after a reset of power down. Related to .... SD 43210: SPIND_MIN_VELO_G25 (progr. spindle speed limitation G25) SD 43230: SPIND_MAX_VELO_LIMS (progr. spindle speed limitation with G96/G961) MD 10710: $MN_PROG_SD_RESET_SAVE_TAB
1/S1/4-94
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.4
43230 SPIND_MAX_VELO_LIMS SD number Progr. spindle speed limit G96/G961 Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective immediately Protection level: MMCMD 9220 Unit: rpm Data type: DOUBLE Applies from SW 1.1 Significance: At constant cutting rate (G96/G961 and G97) an extra limitation entered in SPIND_MAX_VELO_LIMS is operate in addition to the continually applied limitations. Furthermore, SPIND_MAX_VELO_LIMS can be defined in the parts program with LIMS=... for the master spindle. SD irrelevant for ... All spindle modes except for G96/G961 and G97 (constant cutting speed) Application example(s) On parting and very small diameters of the workpiece to be machined, the spindle with the workpiece (turning machine) accelerates higher and higher at constant cutting rate (G96/G961), theoretically reaching an infinitely high set speed in the position of the traverse axis X=0. In cases such as this, the spindle rotates up to its maximum spindle speed in the current gear stage (limited, where applicable, by G26). SPIND_MAX_VELO_LIMS can be programmed as an additional spindle speed limit with G96, G961 and G97. Special cases, errors, ... The value SD 43210: SPIND_MIN_VELO_LIMS can be changed using: D LIMS S .... in the parts program D Operator commands via MMC The value SPIND_MIN_VELO_LIMS is retained after reset of power down. Related to .... SD 43220: SPIND_MAX_VELO_G26 (maximum spindle speed) SD 43210: SPIND_MIN_VELO_G25 (minimum spindle speed) MD 10710: $MN_PROG_SD_RESET_SAVE_TAB (SW 5.3 and higher)
43240 M19_SPOS MD number Position for spindle positioning with M19 Default setting: 0 Minimum input limit: 10000000.0 Maximum input limit: 10000000.0 Changes effective immediately Protection level: 7 / 7 Unit: degrees Data type: DOUBLE Applies from SW 5.3 Significance: Spindle position in [DEGREES] for spindle positioning with M19. Preset positions must lie within the value range. The value range is limited internally to the programmed modulo range. Preset paths (SD 43250: M19_SPOSMODE = 2) can be positive or negative and are limited only by the input format. The position approach mode is determined in SD 43250: M19_SPOSMODE.
Related to ....
43250 M19_SPOSMODE MD number Spindle positioning approach mode for spindle positioning with M19 Default setting: 0 Minimum input limit: 0 Maximum input limit: 5 Change effective after: immediate Protection level: 7 / 7 Unit: Data type: DWORD Applies from SW 5.3 Significance: Spindle position approach mode for spindle positioning with M19. Where the following applies: 0: Approach DC (default) position by shortest path. 1: Approach AC position. 2: IC Travel incrementally (as distance), plus/minus sign gives the travel direction. 3: Approach DC position by shortest path. 4: ACP position with positive direction of approach. 5: ACN position with negative direction of approach.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/4-95
10.00
Notes
1/S1/4-96
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
Signal Descriptions
5.1
5.1.1
Axis/spindle-specific signals
Signals to axis/spindle
DB 31, ... DBX2.2 Data block Edge evaluation: yes Signal transition 0 > 1
Spindle reset/Delete distance-to-go Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Independent of MD 35040: SPIND_ACTIVE_AFTER_RESET, spindle reset has the following effects: Control mode: Spindle stops Program continues Spindle continues to run with the following M and S program Oscillation mode: Oscillation is interrupted Axes continue traversing Program is continued with current gear stage With the following M value and larger S value, the Programmed speed too high (DB31, ... DBX83.1) interface signal is enabled if necessary. is stopped is stopped
MD 35040: SPIND_ACTIVE_AFTER_RESET (own spindle reset) IS Reset (DB21, ... DBX7.7) IS Delete distance-to-go (DB31, ... DBX2.2) is a different name for the same signal
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/5-97
10.00
DB 31, ... DBX16.7 Data block Edge evaluation: yes Signal transition 0 > 1
Delete S value Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Control mode:
Spindle stops Program continues The spindle continues to run with the following S value, if M3 or M4 was active
Oscillation mode, axis mode, positioning mode: Signal state 0 or signal transition 1 > 0 Application example(s) No effect
Signal is not effective for the appropriate function. However, if Control mode is selected again, a new S value must be programmed.
DB 31, ... DBX16.5, 16.4 Data block Edge evaluation: yes Signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s)
Resynchronize spindle 1 and 2 Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The spindle should be resynchronized, as the synchronization between the position measurement system on the spindle and the 0 degree position has been lost. No effect All spindle modes except control mode The machine has a selector switch for a vertical and horizontal spindle. Two different position encoders are used (one for the vertical spindle and one for the horizontal spindle), but only one actual value input is used on the control. When the system switches from the vertical to the horizontal spindle, the spindle must be resynchronized. The synchronization is triggered with the Resynchronize spindle 1 or 2 interface signal. IS Referenced/synchronized 1 (DB31, ... DBX60.4) IS Referenced/synchronized 2 (DB31, ... DBX60.5)
Related to ....
1/S1/5-98
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
DB 31, ... DBX16.3 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Special cases, errors, ...
Gear changed Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 When the new gear is engaged the Actual gear stage A to C and Gear changed interface signals are enabled. This informs the NCK that the correct gear stage has been successfully engaged. The gear stage change is complete (spindle oscillation mode is deselected), the spindle accelerates in the new gear stage to the last programmed spindle speed and the next block in the parts program can be executed. The Change gear interface signal is reset by the NCK, which causes the PLC application to reset the Gear changed signal. No effect All spindle modes except oscillation mode If the PLC user reports back to the NCK with a different actual gear stage than issued by the NCK as the set gear stage, the gear change is still treated as having been successfully completed and the actual gear stage A to C is activated. IS Actual gear stages A to C (DB31, ... DBX16.2 to 16.0) IS Set gear step A to C (DB31, ... DBX82.2 to 82.0) IS Change gear (DB31, ... DBX82.3) IS Oscillation speed (DB31, ... DBX18.5)
Related to ....
DB 31, ... DBX16.2 16.0 Data block Edge evaluation: yes Signal state 1 (leveloperated)
Actual gear stage A to C Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 When the new gear is engaged the Actual gear stage A to C and Gear changed interface signals are enabled. This informs the NCK that the correct gear stage has been successfully engaged. The gear change is complete (spindle oscillation mode is deselected), the spindle accelerates in the new gear stage to the last programmed spindle speed and the next block in the parts program can be executed. The specification of the actual gear stage is coded. One set of parameters, with the following assignment, is provided for each of the 5 gear stages: Parameter block no. 0 1 VDI interface 000 001 010 011 100 Data of the data block Data for axis mode Data for 1st gear stage Contents Servo gain factor Monitoring M40 speed Min/max speed Acceleration etc.
2 3 4 5
Data for 2nd gear stage Data for 3rd gear stage Data for 4th gear stage
Related to ....
101 Data for 5th gear stage 110 111 If the PLC user reports back to the NCK with a different actual gear stage than issued by the NCK as the set gear stage, the gear change is still treated as having been successfully completed and the actual gear stage A to C is activated. IS Set gear step A to C (DB31, ... DBX82.0 to DBX82.2) IS Change gear (DB31, ... DBX82.3) IS Gear changed (DB31, ... DBX16.3) IS Oscillation speed (DB31, ... DBX18.5) Parameter sets for gear stages
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/5-99
10.00
DB 31, ... DBX17.6 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Application example(s)
Invert M3/M4 Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The direction of rotation of the spindle motor changes with the following functions: D M3 D M4 D M5 D SPOS/M19/SPOSA from the movement; not applicable to SPOS/M19/SPOSA from the standstill. The machine has a selector switch for a vertical and horizontal spindle. The mechanical design incorporates one gear wheel more on the horizontal spindle than on the vertical spindle. The direction of rotation must therefore be changed on the vertical spindle if the spindle is always to rotate clockwise with M3.
DB 31, ... DBX17.5, 17.4 Data block Edge evaluation: yes Signal state 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s)
Resynchronize spindle during positioning 2 and 1 Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 4.0 The spindle is to be resynchronized during positioning. No effect All spindle modes except for positioning mode The spindle has an indirect measurement system and slipping may occur between the motor and the clamp. If the signal=1 when the positioning process is started, the old reference is deleted and the zero mark searched for again before the end position is approached. IS Referenced/synchronized 1 (DB31, ... DBX60.4) IS Referenced/synchronized 2 (DB31, ... DBX60.5)
Related to ....
DB 31, ... DBX18.7, 18.6 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Signal irrelevant for ... Application example(s) Special cases, errors, ...
Related to ....
Set counterclockwise/Set clockwise Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 When the Oscillation via PLC interface signal is enabled, the two interface signals Direction of rotation setpoint counterclockwise and Direction of rotation setpoint clockwise can be used to set the direction of rotation for the oscillation speed. The times for the oscillation movement of the spindle motor are defined by enabling the Direction of rotation setpoint counterclockwise and clockwise interface signals for a corresponding length of time. All spindle modes except oscillation mode See Oscillation via PLC interface signal D If both of the interface signals are enabled simultaneously, no oscillation speed is output. D If neither of the interface signals are enabled simultaneously, no oscillation speed is output. IS Oscillation via PLC (DB31, ... DBX18.4) IS Oscillation speed (DB31, ... DBX18.5)
1/S1/5-100
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
DB 31, ... DBX18.5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Application example(s) Related to ....
Oscillation speed Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 If the gear stage is to be changed (Change gear interface signal (DB3148, DBX82.3) is enabled), the spindle changes to oscillation mode. The spindle decelerates to a standstill with different acceleration levels, according to the point when the Oscillation speed interface signal (DB3148, DBX18.5) was enabled: 1. The Oscillation speed interface signal is enabled before the Change gear interface signal is enabled by the NCK. The spindle is brought to a standstill with the acceleration during oscillation (MD: SPIND_OSCILL_ACCEL). Oscillation commences immediately when the spindle is stationary. 2. The Oscillation speed interface signal is enabled before the Change gear inter signal is enabled by the NCK and when the spindle is stationary. The position controller is switched off. The spindle decelerates with the acceleration in speed control mode. When the Oscillation speed is enabled, the spindle starts oscillation with the oscillation acceleration (MD:SPIND_OSCILL_ACCEL). With the IS Oscillation via PLC (DB31, ... DBX18.4) not set, automatic oscillation is performed in the NCK with IS Oscillation speed. The two times for the directions of rotation are entered in MD: in SPIND_OSCILL_TIME_CW (oscillation time for M3 direction) and SPIND_OSCILL_TIME_CCW (oscillation time for M4 direction). If the Oscillation via PLC interface signal is enabled, the Oscillation speed interface signal effects output of a speed only in conjunction with the Direction of rotation setpoint counterclockwise and clockwise interface signal. The oscillation, i.e. the continuous change of the direction of rotation, is performed by the PLC application with the Direction of rotation setpoint counterclockwise and clockwise interface signal (oscillation via PLC). The spindle does not oscillate. All spindle modes except oscillation mode The oscillation speed is used to facilitate the engagement of a new gear stage. IS Oscillation via PLC (DB31, ... DBX18.4) IS Set direction of rotation counterclockwise (DB31, ... DBX18.7) IS Set direction of rotation clockwise (DB31, ... DBX18.6)
DB 31, ... DBX18.4 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Application example(s)
Related to ....
Oscillation via PLC Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 If the Oscillation via PLC interface signal is not enabled, the oscillation speed interface signal triggers automatic oscillation on the NCK. The two times for the directions of rotation are entered in MD 35440: SPIND_OSCILL_TIME_CW (oscillation time for M3 direction) and MD 35450: SPIND_OSCILL_TIME_CCW (oscillation time for M4 direction). If the Oscillation via PLC interface signal is enabled, the Oscillation speed interface signal effects output of a speed only in conjunction with the Direction of rotation setpoint counterclockwise and clockwise interface signal. The oscillation, i.e. the continuous change of the direction of rotation, is performed by the PLC application with the Direction of rotation setpoint counterclockwise and clockwise interface signal (oscillation via PLC). If the new gear stage cannot be engaged in spite of several attempts by the NCK, the system can be switched to oscillation via PLC. Both of the times can then be altered by the PLC user. This assures a reliable change of the gear stage, even with unfavorable gear wheel positions. MD 35440: SPIND_OSCILL_TIME_CW (oscillation time for M3 direction) MD 35450: SPIND_OSCILL_TIME_CCW (oscillation time for M4 direction) IS Oscillation speed (DB31, ... DBX18.5) IS Set direction of rotation counterclockwise (DB31, ... DBX18.7) IS Set direction of rotation clockwise (DB31, ... DBX18.6)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/5-101
10.00 10.00
Spindle positioning Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 6 The IS Spindle positioning (corresponds to M19 Position for spindle positioning). To stop the spindle from rotation (M3 or M4) with orientation or to reorient it from standstill (M5), SPOS, SPOSA or M19 are used to switch to positioning mode. MD 20850: SPOS_TO_VDI (output of M19 with SPOS/SPOSA to the VDI) SD 43240: M19_SPOS (position for spindle positioning using M19) IS Active spindle mode Positioning mode (DB31, ... DBX84.5)
DB 31, ... DBX30.3 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Application example(s)
Select gear stage Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) reserved from SW 6 This function is available soon. For this reason, this IS is preliminarily reserved. One parameter set each is provided for each of the 5 gear stages. When changing to the spindle mode, the corresponding parameter set 1 to 5 is selected according to the gear stage engaged. A gear stage can be preselected as follows: D M40 automatically by the programmed spindle speed D M41 to M45 permanently by the parts program D By the PLC using the function module FC 18 D In reset status, by programming the VDI interface MD 35010: GEAR_STEP_CHANGE_ENABLE (gear stage change is possible) MD 35590: PARAMSET_CHANGEENABLE (parameter set specification possible from the PLC) IS Change gear (DB31, ... DBX82.3)
Related to ....
DB 31, ... DBX30.2 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Application example(s) Related to ....
Spindle start CCW Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 6 If the IS Spindle start CCW (corresponds to M4 Spindle rotation CCW for the master spindle). On the sositive edge of the start signal Spindle start counterclockwise DB31, ... DBX30.2 the content of SD 43200: SPIND_S is read and comes into effect. Set direction of rotation counterclockwise (DB31, ... DBX18.7) Set direction of rotation clockwise (DB31, ... DBX18.6) IS Invert M3/M4 (DB31, ... DBX17.6)
1/S1/5-102
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
DB 31, ... DBX30.1 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Application example(s) Related to ....
Spindle start CW Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 6 If the IS Spindle start CCW (corresponds to M3 Spindle rotation CW for the master spindle). On the positive edge of the start signal Spindle start counterclockwise DB31, ... DBX30.1 the content of SD 43200: SPIND_S is read and comes into effect. Set direction of rotation counterclockwise (DB31, ... DBX18.7) Set direction of rotation clockwise (DB31, ... DBX18.6) IS Invert M3/M4 (DB31, ... DBX17.6)
DB 31, ... DBX30.0 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Application example(s) Related to ....
Spindle stop Signal(s) to axis/spindle (PLC > NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 6 If the IS Spindle start CCW (corresponds to M5 Spindle stop for the master spindle). A spindle stop is executed if the IS Axis/spindle stationary Axis/spindle stationary (DB31, ... DBX61.4 = 1 is signalled. IS Axis/spindle stationary (DB31, ... DBX17.6)
5.1.2
DB 31, ... DBX60.0 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Application examples
Spindle/no axis Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The machine axis is operated as a spindle in the following spindle modes: D Control mode D Oscillation mode D Positioning mode D Rigid tapping D Synchronous mode The IS to axis (DB31, ... DBB12 to 15) and from axis (DB31, ... DBB74 to 81) are not valid. The IS to spindle (DB31, ... DBB16 to 19) and from spindle (DB31, ... DBB82 to 91) are valid. The machine axis is operated as an axis The IS to axis (DB31, ... DBB12 to 15) and from axis (DB31, ... DBB74 to 81) are valid. The IS to spindle (DB31, ... DBB16 to 19) and from spindle (DB31, ... DBB82 to 91) are not valid. If a spindle is sometimes also used as a rotary axis on a machine tool (turning machine with spindle/C-axis or milling machine with spindle/rotary axis for rigid tapping), the Spindle/no axis signal can be used to determine whether the machine axis is in axis mode or spindle mode.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/5-103
10.00
DB 31, ... DBX82.3 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Change gear Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 A gear stage can be defined as follows: D permanently by the parts program (M41 to M45) D automatically by the programmed spindle speed (M40) M41 to M45: D The gear stage can be permanently selected using M41 to M45. If a gear stage is set that is not the current (actual) gear stage, IS Switch gear state (DB31, ... Change gear interface signal (DB31, ... DBX82.3) and Set gear stage A to C interface signals are enabled. M40: D M40 in the parts program causes the gear stage to be selected automatically by the control. The control checks which gear stage is suitable for the programmed spindle speed (S value). If the suggested gear stage is not equal to the current (actual) gear step, the Change gear interface signal and the Set gear stage A to C interface signals are enabled. D While the signal = 1, the channel displays the operating message waiting for gear change. The Change gear interface signal is only enabled when a new gear stage is selected that is not equal to the current actual gear stage. IS Set gear step A to C (DB31, ... DBX82.0 to 82.2) IS Actual gear stages A to C (DB31, ... DBX16.0 to D16.2) IS Gear changed (DB31, ... DBX16.3)
DB 31, ... DBX82.2 82.0 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Set gear stage A to C Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 A gear stage can be defined as follows: D permanently by the parts program (M41 to M45) D automatically by the programmed spindle speed (M40) M41 to M45: D The gear stage can be permanently selected using M41 to M45. If a gear stage is If M41 to M45 specify a gear stage that is not the current (actual) gear stage, IS Change gear and IS the Change gear interface signal (DB3148, DBX82.3) and the Set gear stage A to C interface signal are enabled. M40: D M40 in the parts program causes the gear stage to be selected automatically by the control. The control checks which gear stage is suitable for the programmed spindle speed (S value). If a gear stage is found, which is not equal to the current (actual) gear step, the Change gear (DB31, ... DBX82.3) and the IS Set gear stages A to C are enabled. The set gear stage is output in coded form: 1st gear stage 0 0 0 (C B A) 1st gear stage 001 2nd gear stage 010 3rd gear stage 101 4th gear stage 100 5th gear stage 101 Invalid value 110 Invalid value 111 Other spindle modes except oscillation mode IS Change gear (DB31, ... DBX82.3) IS Actual gear stages A to C (DB31, ... DBX16.0 to 16.2) IS Gear changed (DB31, ... DBX16.3)
1/S1/5-104
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
DB 31, ... DBX83.7 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Signal state 0 or signal transition 1 > 0 Signal irrelevant for ... Related to ....
Actual direction of rotation clockwise Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 When the spindle is rotating, Actual direction of rotation clockwise = 1 signals that the direction of rotation is CLOCKWISE. The actual direction of rotation is derived from the spindle position measurement encoder. When the spindle is rotating, Actual direction of rotation clockwise = 0 signals that the direction of rotation is COUNTERCLOCKWISE. D stationary spindle (no evaluation of the direction of rotation possible) D spindle without a position measurement encoder IS Spindle stationary (DB31, ... DBX61.4)
DB 31, ... DBX83.5 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Related to ....
Spindle in setpoint range Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The Spindle in setpoint range interface signal reports whether the programmed, and possibly limited spindle speed has been reached. In the spindle control mode, the speed setpoint (programmed speed + spindle override including limitations) is compared with the actual speed. If the actual speed deviates from the set speed by less than the spindle speed tolerance in MD 35150: SPIND_DES_VELO_TOL, the Spindle in setpoint range interface signal is enabled. The Spindle in setpoint range interface signal reports whether the spindle is still in the acceleration or braking phase. In the spindle control mode, the speed setpoint (programmed speed * spindle override) is compared with the actual value. If the actual speed deviates from the set speed by more than the spindle speed tolerance in SPIND_DES_VELO_TOL, the Spindle in setpoint range interface signal is reset. All spindle modes except for speed mode (control mode). The path feed must generally be disabled when the spindle is in the acceleration phase (programmed speed setpoint not yet reached). This can be performed as follows: D The Spindle in setpoint range interface signal is evaluated and the Feed disable (DB21, ... DBX6.0). The positioning axes are also stopped. D The MD 35500: SPIND_ON_SPEED_AT_IPO_START (feed enable with spindle in setpoint range) is enabled and the NCK then internally evaluates whether the spindleis within setpoint range. The path feed is only enabled if the spindle is within the setpoint range. The positioning axes are never stopped by this function. MD 35500: SPIND_DES_VELO_TOL (spindle speed tolerance)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/5-105
10.00
DB 31, ... DBX83.2 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Setpoint speed increased (programmed speed too low) Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 If a spindle speed (1/min) or a constant cutting speed (m/min or ft/min) is programmed, the value is below one of the following limits: D Minimum speed of the specified gear stage D Minimum spindle speed D Speed limitation through VDI D Progr. spindle speed limitation G25) D Progr. spindle speed limitation with G96 The spindle speed is limited to the minimum limit. If a spindle speed (1/min) or a constant cutting speed (m/min or ft/min) is programmed, the value has not fallen below any of the limits. The Setpoint speed increased interface signal can be used to detect that the programmed speed cannot be achieved. The PLC user can accept this state as permissible and enable the feed, or he can disable the path feed and/or the complete channel the Spindle in setpoint range interface signal is processed.
Data block DB 31, ... DBX83.1 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Signal(s) from axis/spindle (NCK > PLC) Setpoint speed limited (programmed speed too high) Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 If a spindle speed (1/min) or a constant cutting speed (m/min or ft/min) is programmed, one of the following limits has been exceeded: D Speed of the selected gear stage D Maximum spindle speed D Speed limitation through VDI D Progr. spindle speed limitation G26) D Progr. spindle speed limitation with G96 The spindle speed is limited to the maximum value If a spindle speed (1/min) or a constant cutting speed (m/min) or ft/min) is programmed, none of the limit values have been exceeded. The Setpoint speed limited interface signal can be used to detect that the programmed speed cannot be achieved. The PLC user can accept this state as permissible and enable the feed, or he can disable the path feed and/or the complete channel the Spindle in setpoint range interface signal is processed.
DB 31, ... DBX83.0 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Related to ....
Speed limit exceeded Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 If the actual speed exceeds the maximum spindle speed MD 35100: SPIND_VELO_ LIMIT by more than the spindle speed tolerance MD 35150: SPIND_DES_VELO_TOL the Speed limit exceeded interface signal is enabled and alarm 22050 Maximum speed reached is output. All axes and spindles on the channel are brought to a standstill. MD 35150: SPIND_DES_VELO_TOL (spindle speed tolerance) MD 35100: SPIND_VELO_LIMIT (max. spindle speed) Alarm 22050 maximum speed reached
1/S1/5-106
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
DB 31, ... DBX84.7 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1 Related to ....
Active spindle control mode Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The spindle is in control mode with the following functions: D Spindle direction of rotation specification M3/M4 or spindle stop M5 D M41 ...M45 or automatic gear stage changeover Spindle oscillation mode interface signal (DB31, ... DBX84.6) IS Spindle oscillation mode Positioning mode (DB31, ... DBX84.5)
DB 31, ... DBX84.6 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Related to ....
Active spindle mode oscillation mode Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The spindle is in oscillation mode if a new gear stage was defined using the automatic gear stage selection (M40) or M41 to M45 (Change gear interface signal is enabled). The Change gear interface signal is only enabled when a new gear stage is selected that is not equal to the current actual gear stage. Spindle control mode interface signal (DB31, ... DBX84.7) IS Spindle oscillation mode Positioning mode (DB31, ... DBX84.5) IS Change gear (DB31, ... DBX82.3)
DB 31, ... DBX84.5 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Related to ....
Active spindle positioning mode Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The spindle is in positioning mode with the following functions: D SPOS [n] = ..... D SPOS [n] = AC( .....) D SPOS [n] = IC( .....) D SPOS [n] = DC( .....) D SPOS [n] = ACN( .....) D SPOS [n] = ACP( .....) D SPOSA [n] = ..... D SPOSA [n] = AC( .....) D SPOSA [n] = IC( .....) D SPOSA [n] = DC( .....) D SPOSA [n] = ACN( .....) D SPOSA [n] = ACP( .....) The command parameter [n] is not required for the master spindle. Spindle control mode interface signal (DB31, ... DBX84.7) Spindle oscillation mode interface signal (DB31, ... DBX84.6)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/5-107
10.00
DB 31, ... DBX84.3 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Application example(s)
Rigid tapping active Signal(s) from axis/spindle (NCK > PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The spindle is switched internally to axis mode during the rigid tapping function (G331/G332). For rigid tapping, the spindle speed is also programmed with S .... in rpm, however the direction of rotation is stored as the leading sign for the thread lead. None of the spindle-specific interface signals, such as the following, are updated: Spindle reset Synchronize spindle Invert M3/M4 Spindle in setpoint range Programmable speed too high Certain functions should not be used during rigid tapping, such as: D IS Servo enable (DB31, ... DBX2.1) reset. D IS Set feed halt (DB31, ... DBX8.3) D Reset D When activating the EMERGENCY STOP during rigid tapping, it should be remembered that the tool and workpiece are locked together.
DB 31, ... DBB86, DBB87 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Related to ....
M function for spindle Signals from axis/spindle (NCK > PLC), axis-specific Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The M functions are output axis-specific in the DBs 31, ... and channel-specific in the DBs 21, .... Selected M functions for the spindle are output to the PLC in the M function for spindle interface signal. It is irrelevant whether the spindle has been programmed with or without an address extension and on which channel it has been programmed. The following selected M functions are output here: D M3 D M4 D M5 D M70 IS S functions for Spindle (DB31, ... DBB88 to 91), axis-specific IS M functions for Spindle (DB21, ... DBB58 and DBB68 to DBB97), axis-specific
DB 31, ... DBB8891 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Related to ....
S function for spindle Signals from axis/spindle (NCK > PLC), axisspecific Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The S functions are output axisspecific in the DBs 31, ... and channel-specific in the DBs 21, .... Selected S functions for the spindle are output to the PLC in the S function for spindle interface signal. It is irrelevant whether the spindle has been programmed with or without an address extension and on which channel it has been programmed. The following selected S functions are output here: D S .... as the spindle speed in rpm (programmed value) D S .... as the constant cutting speed in m/min or ft/min The following S functions are not output here: D S .... as the programmed Spindle speed limitation G25) D S .... as the programmed Spindle speed limitation G26) D S .... as the spindle speed in rpm if a spindle is not defined on the control D S .... as the dwell time in spindle revolutions IS M functions for Spindle (DB31, ... DBB86 to 87), axis-specific IS S functions for Spindle (DB21, ... DBB60 and DBB98 to DBB115), axis-specific
1/S1/5-108
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 6.1
Examples
6
To illustrate the contents of the new block search variables (SW 5.3 and higher): Assumptions for automatic gear stage selection (M40):
S0...500 S501..1000 S1001..2000 ! 1st gear stage ! 2nd gear stage ! 3rd gear step ; accumulated S value ; accumulated direction of rotation ; Collected gear stage S value: ; 0/last speed N05 G94 M40 M3 S1000 N10 G96 S222 N20 G97 N30 S1500 N40 SPOS=0** N50 M19** N60 G94 G331 Z10 S300 N70 M42 N80 M4 N90 M70 N100 M3 M40 N999 M30 ; 1000 : 222 ; f (PlanAxPosPCS) ; 1500 ; 1500 ; 1500 ; 300 ; 300 ; 300 ; 300 ; 300 direction of rotation: 5 3 3 * 3 3 19 19 19 19 4 70 3 gear stage: 40/last gear stage 40 40 40 40 40 40 40 42 42 42 40
6.1
* f (PlanAxPosPCS): The speed depends on the current position of the transverse axis in the workpiece coordinate system. ** ($P_SEARCH_SPOS and $P_SEARCH_SPOSMODE are described)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/6-109
10.00
Notes
1/S1/6-110
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
7
Name Reference V1 V1 A2 A2 A2 A2 A2 A2 A3
7.1
Interface signals
Bit, byte
DB number Axis-specific 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 0
Feed override Override active Position measurement system 2 Position measurement system 1 Follow-up mode Axis/spindle disable Spindle reset/Delete distance-to-go Servo enable Velocity/spindle speed limitation Delete S value Resynchronize spindle 2 Resynchronize spindle 1 Gear changed Actual gear stage A to C Invert M3/M4 Resynchronize spindle during positioning 2 Resynchronize spindle during positioning 1 Direction of rotation setpoint left Direction of rotation setpoint right Oscillation speed Oscillation via PLC Spindle offset H A Spindle positioning (SW 6 and higher) Select gear stage (reserved in SW 6 and higher) Spindle start CCW rotation (SW 6 and higher) Spindle start CW rotation (SW 6 and higher) Spindle stop (SW 6 and higher) Position reached with exact stop fine Position reached with exact stop coarse Referenced/synchronized 2 Referenced/synchronized 1 Encoder limit frequency exceeded 2 Encoder limit frequency exceeded 1 Axis/no spindle
1.7 1.6 1.5 1.4 1.3 2.2 2.1 3.6 16.7 16.5 16.4 16.3 16.216.0 17.6 17.5 17.4 18.7 18.6 18.5 18.4 19.719.0 30.4 30.3 30.2 30.1 30.0 60.7 60.6 60.5 60.4 60.3 60.2 60.0
V1
B1 B1 R1 R1 A3 A3
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/7-111
DB number 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ... 31, ...
Bit, byte 61.7 61.6 61.5 61.4 82.3 82.282.0 83.7 83.5 83.2 83.1 83.0 84.7 84.6 84.5 84.3 86 and 87 8891 Current controller active Speed controller active Position controller active Axis/spindle stationary (n < nmin) Change gear Set gear stage AC
Name
Reference A2 A2 A2 A2
Actual direction of rotation clockwise Spindle in setpoint range Setpoint speed increased Setpoint speed limited Speed limit exceeded Active spindle control mode Active spindle mode oscillation mode Active spindle positioning mode Rigid tapping active M function for spindle S function for spindle
7.2
Number
Machine data
Identifier Name Reference
General ($MN_ ... ) 10192 10714 12060 12070 12080 GEAR_CHANGE_WAIT_TIME M_NO_FCT_EOP OVR_SPIND_IS_GRAY_CODE OVR_FACTOR_SPIND_SPEED OVR_REFERENCE_IS_PROG_FEED Wait time for acknowledgment of a gear stage change when reorganizing (wSW 5.3) M function for spindle active after RESET (SW 6.4 and higher) Spindle override with Gray coding Evaluation of spindle speed override switch Override reference velocity V1 V1 V1
Channel-specific ($MC_ ... ) 20090 20092 20850 22400 SPIND_DEF_MASTER_SPIND SPIND_ASSIGN_TAB_ENABLE SPOS_TO_VDI S_VALUES_ACTIVE_AFTER_RESET Initial setting for master spindle on channel Enabling/disabling of spindle converter Output of auxiliary function M19 to the VDI interface (SW 5.3 and higher) S function via RESET active
Axis-specific ($MA_ ... ) 30300 30310 31044 31050 31060 31064 IS_ROT_AX ROT_IS_MODULO ENC_IS_DIRECT2 DRIVE_AX_RATIO_DENOM DRIVE_AX_RATIO_NUMERA DRIVE_AX_RATIO_DENOM Rotary axis Modulo conversion Encoder on intermediate gear (wSW 6.4) Denominator load gearbox Numerator load gearbox Encoder on intermediate gear (wSW 6.4) G2 G2 R2 R2
1/S1/7-112
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Number Axis-specific ($MA_ ... ) 31066 31070 31080 31122 31123 32200 32800 32810 32910 34040 34060 34080 34090 34100 34200 35000 35010 35012 35020 35030 35035 35040 35100 35110 35120 35130 35140 35150 35160 35200 35210 35220 35230 35300 35350 35400 35410
Identifier
Name
Reference
DRIVE_AX_RATIO2_NUMERA DRIVE_ENC_RATIO_DENOM DRIVE_ENC_RATIO_NUMERA BERO_DELAY_TIME_PLUS BERO_DELAY_TIME_MINUS POSCTRL_GAIN EQUIV_CURRCTRL_TIME EQUIV_SPEEDCTRL_TIME DYN_MATCH_TIME REFP_VELO_SEARCH_MARKER REFP_MAX_MARKER_DIST REFP_MOVE_DIST REFP_MOVE_DIST_CORR REFP_SET_POS ENC_REFP_MODE SPIND_ASSIGN_TO_MACHAX GEAR_STEP_CHANGE_ENABLE GEAR_STEP_CHANGE_POSITION SPIND_DEFAULT_MODE SPIND_DEFAULT_ACT_MASK SPIND_FUNCTION_MASK SPIND_ACTIVE_AFTER_RESET SPIND_VELO_LIMIT GEAR_STEP_MAX_VELO[n] GEAR_STEP_MIN_VELO[n] GEAR_STEP_MAX_VELO_LIMIT[n] GEAR_STEP_MIN_VELO_LIMIT[n] SPIND_DES_VELO_TOL SPIND_EXTERN_VELO_LIMIT GEAR_STEP_SPEEDCTRL_ACCEL[n] GEAR_STEP_POSCTRL_ACCEL[n] ACCEL_REDUCTION_SPEED_POINT ACCEL_REDUCTION_FACTOR SPIND_POSCTRL_VELO SPIND_POSITIONING_DIR SPIND_OSCILL_DES_VELO SPIND_OSCILL_ACCEL
Encoder on intermediate gear gearbox (SW 6.4 and higher) Denominator measuring gearbox Numerator measuring gearbox BERO delay time in plus direction BERO delay time in minus direction Servo gain factor Equivalent time constant current control circuit for feedforward control Equivalent time constant speed control circuit for feedforward control Time constant for dynamic matching Reference point creep speed Monitoring of zero mark distance Reference point distance/destination point for distancecoded system Ref. point offset/absolute offset, distancecoded Reference point value Referencing mode Assignment of spindle to machine axis Gear stage change options extendable for fixed position (wSW 5.3) Gear stage change position (wSW 5.3) Basic spindle setting Activate initial spindle setting Setting spindle-specific functions (wSW 6) Spindle active after reset Maximum spindle speed Maximum speed for gear change Minimum speed for gear change Maximum speed of gear stage Minimum speed of gear stage Spindle speed tolerance Spindle speed limitation via PLC Acceleration in speed control mode Acceleration in position control mode Speed limit for reduced acceleration Reduced acceleration Position control activation speed Positioning direction of rotation for nonsynchronized spindle Oscillation speed Oscillation acceleration G2 K3 K3 G2 R1 R1 R1 R1 R1 R1 G2 G2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/7-113
Number Axis-specific ($MA_ ... ) 35430 35440 35450 35500 35510 35590 36060 36200
Identifier
Name
Reference
Oscillation start direction Oscillation time for M3 direction Oscillation time for M4 direction Feed enable with spindle in setpoint range Feed enable with stationary spindle Parameter set definition possible from PLC Threshold velocity Axis/spindle stationary Threshold value for velocity monitoring A2 A3 A3
7.3
Number
Setting data
Identifier Name Reference
Spindle-specific ($SS_ ... ) 42600 42800 42900 42910 42920 42930 42940 JOG_FEED_PER_REF_SOURCE SPIND_ASSIGN_TAB MIRROR_TOOL_LENGTH MIRROR_TOOL_WEAR WEAR_SIGN_CUTPOS WEAR_SIGN TOOL_LENGTH_CONST Revolutional feedrate control in JOG mode Spindle number converter Mirror tool length offset W1 V1
Mirror wear values of tool length compensation W1 Mirror wear values of machining plane Invert sign of all wear values Retain the assignment of tool length components when changing the machining plane (G17 to G19) Specification of the spindle speed (SW 6 and higher) Specification of a constant cutting rate for the master spindle (SW 6 and higher) Progr. spindle speed limit G25 Progr. spindle speed limit G26 Progr. spindle speed limit G96/G961 Spindle position for spindle positioning with M19 (SW 5.3 and higher) Spindle positioning mode for spindle positioning with M19 (SW 5.3 and higher) Revolutional feedrate for positioning axes/ spindles V1, P2 W1 W1 W1
1/S1/7-114
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
04.00 10.00
7.4
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/S1/7-115
04.00 10.00
Notes
1/S1/7-116
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.02 10.00
Feeds (V1)
1 2
Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2 2.2.1 2.3 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 Path feed F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Type of feed G93, G94, G95 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Type of feed G96, G961, G97, G971 . . . . . . . . . . . . . . . . . . . . . . . . . Feed with G33, G34, G35 (thread cutting) . . . . . . . . . . . . . . . . . . . . Feed for G63, tapping with compensation chuck . . . . . . . . . . . . . . . Feed for G331/G332, rigid tapping . . . . . . . . . . . . . . . . . . . . . . . . . . . Feed FA for positioning axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Feed type for positioning feed G94 . . . . . . . . . . . . . . . . . . . . . . . . . Supplementary conditions for feedrate programming . . . . . . . . . . . Feed control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Feed disable and feed/spindle stop . . . . . . . . . . . . . . . . . . . . . . . . . . Feed override on machine control panel . . . . . . . . . . . . . . . . . . . . . . Programmable feed override . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dry run feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Multiple feed values in one block . . . . . . . . . . . . . . . . . . . . . . . . . . . . Fixed feed values (840D, 810D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Feed for chamfer/rounding FRC, FRCM (SW 5.2 and higher) . . . . Blockwise (nonmodal) feed FB (SW 5.3 and higher) . . . . . . . . . . . . Programmable single-axis dynamic response (SW 5.1 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/V1/1-3 1/V1/2-7 1/V1/2-7 1/V1/2-9 1/V1/2-11 1/V1/2-14 1/V1/2-23 1/V1/2-23 1/V1/2-24 1/V1/2-25 1/V1/2-25 1/V1/2-26 1/V1/2-26 1/V1/2-27 1/V1/2-32 1/V1/2-33 1/V1/2-34 1/V1/2-39 1/V1/2-40 1/V1/2-42 1/V1/2-43 1/V1/4-49 1/V1/4-49 1/V1/4-49 1/V1/4-59 1/V1/4-61 1/V1/4-62 1/V1/5-65 1/V1/5-66 1/V1/5-66
3 4
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Axis/spindle-specific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-specific setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/i
10.00
1/V1/5-73 1/V1/5-73 1/V1/5-79 1/V1/6-81 1/V1/6-81 1/V1/7-83 1/V1/7-83 1/V1/7-84 1/V1/7-85 1/V1/7-85 J
Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 7.2 7.3 7.4 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/V1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
Types of feed
The feed determines the machining speed (axis or path velocity) and is observed in every type of interpolation even where allowance is made for tool offsets on the contour or on the tool center point path (depending on G commands. The following types of feed allow optimum adaptation to the various technological applications (turning, milling, drilling, etc.):
S Rapid traverse feed (G0) S Time-reciprocal feed (G93) S Linear feed (G94) S Revolutional feedrate (G95) S Constant cutting rate (G96), (G961; SW 5.3 and higher) S Constant speed (G97), (G971; SW 5.3 and higher) S Feedrate on thread cutting (G33), (G34, G35; SW 5.2 and higher) S Feed for tapping with compensating chuck (G63) S Feed for rigid tapping (G331, G332) S Feed for chamfering/rounding FRC, FRCM (SW 5.2 and higher) S Blockwise (nonmodal) feed FB (SW 5.3 and higher)
Programmable runin/runout path with G33 (SW 5 and higher)
In SW 5.1 of the SINUMERIK 840D, the thread runin/runout paths can be programmed. The thread axis is accelerated and decelerated within the defined distance.
The feeds can be assigned variably to the axes according to the technological requirements. The following versions are supported:
S Separate feeds for working plane and infeed axis S Variable axis assignment for path feed S Feed for positioning axes
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/1-3
10.00
Feed control
In order to adapt the system to changing requirements during machining or for test purposes, the programmed feedrate can be changed on the machine control panel, operator panel, PLC or using a program command.
Feed interpolation
In order to be able to define the feed path, the feedrate programming as per DIN 66025 has been expanded to include linear and cubic paths. The cubic paths can be programmed direct or as interpolating splines. The following feed profiles can be programmed:
S FCUB: The blockwise programmed F value (relative to the end of the block)
are connected by a spline. The spline start and ends at a tangent to the previous or subsequent define feed. If the F address is missing in a block, the last programmed F value is used instead.
S FPO: The F address [syntax: F=FPO ( ..., ..., ...)] designates the feed
response over a polynomial from the current value to the end of the block in which it has been programmed. The end value then applies as a modal value. MD 20172: $MC_COMPRESS_VELO_TOL allows the definition of a tolerance for the path feed, if FLIN and FCUB are used in conjunction with compression COMPON. For further information on programmable feed paths, please see Reference: /PGA/, Programming Guide Advanced
Feed for chamfering/ rounding FRC, FRCM (SW 5.2 and higher)
The machining conditions can change significantly during surface transitions to chamfer/rounding. The chamfer/rounding contour elements therefore need their own optimized feed values in order to achieve the required surface finish. You can program the feed for chamfer/rounding with
A separate feed can be specified for a single block with the command FB. During this block the previously active path feed is overwritten, after the block the previously active modal path feed becomes active once more.
1/V1/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
The dynamic response of single axes can be changed directly through the programming:
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/1-5
10.00
Notes
1/V1/1-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Detailed Description
2.1
Path feed F
Path feed F
The path feed represents the geometrical total of the velocity components in the participating axes. It is therefore generated from the individual motions of the interpolating axes. The standard setting uses the axial velocities of the geometry axes which have been programmed. The FGROUP command can be used to include other geometry and/or synchronized axes in the calculation of the path feed. The path feed F determines the machining speed and is observed in every type of interpolation even where allowance is made for tool offsets. The value programmed under the address F remains in the program until a new F value or a new type of feedrate is programmed.
References:
/PG/, Programming Guide: Fundamentals /FB/, G2, Velocities, Setpoint/Actual Value Systems, ClosedLoop Control
The F value of the current path feed is always entered in the channel-specific PLC interface for auxiliary functions (DB21, ... DBB158 to 193). The related interface signals (modification signal, F value) are described in: References: /FB/, H2, Output of Auxiliary Functions to PLC
Please refer to the following documentation for information: References: /PA/, Programming Guide Fundamentals
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-7
10.00
For circular blocks or spline blocks with curvature in the same direction and tool radius offset activated (G41/G42), the programmed feedrate can act on the center point path or on the contour (depending on the internal radius or external radius path sections). A group of G commands is provided for this purpose.
S CFTCP: programmed feed acting on the center point path. S CFC: programmed feed acting on the contour. S CFCIN: programmed feed acting only on the contour with a concave spline.
References: /PA/, Programming Guide Fundamentals
The maximum path velocity is obtained from the maximum velocities of the linear and/or rotary axes involved (MD 32000: MAX_AX_VELO), i.e. the axis with the lowest maximum velocity determines the maximum path velocity. This cannot be exceeded. If G0 is programmed, traversing is at the path velocity resulting from the MAX_AX_VELO limitation.
In addition, a limit speed can be programmed for path axes (geometry and synchronous axes) using the command FL[x]= ... the limit for the particular axis. References: /PG/, Programming Guide: Fundamentals Separate feeds can therefore be programmed for the working plane and infeed axis. This means that a feedrate is specified for both pathrelated interpolation and for the infeed axis. The infeed axis is designated as the axis perpendicular to the selected machining plane. The infeed axisspecific feed can be programmed to limit the axis velocity and therefore the path velocity. No coordinate rotations through frames should be included, i.e. the infeed axis must be an axis of the standard coordinate system. This function can be used to compensate for the fact that a cutter has a lower cutting performance on the face side than across the cutter circumference. Programming example: . .. .. G94 .... X30 Y20 F200 FL[Z]=50 Z30 Selection of feed type (mm/min) Path feedrate = 200 mm/s Maximum feedrate for Z axis: 50 mm/s
1/V1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
2.1.1
Activation
The feed types G93, G94 and G95 are active for the G functions of group 1 (except G0) in the automatic modes. G94 or G95 can be used to travel in JOG mode. References: /FB/, H1, Jogging with the handwheel
The inverse time feedrate is used when it is easier to program the duration, rather than the feedrate, for retraction of a block.
The inverse time feedrate is calculated from the following formula: v F = ; F [rev/min] s with F: v: s: Inverse time feedrate Desired path velocity in mm/min or inches/min Path length in mm or inches
(4)
Programming example: N10 G1 G93 X100 Y200 F2; the programmed path is traveled in 0.5 minute.
Note G93 may not be used when G41/G42 is active. If the block length varies greatly from block to block, a new F value should be programmed in each block for G93.
The linear feedrate is programmed in the following units relative to a linear or rotary axis:
S [mm/min, degrees/min] on standard metric systems S [inch/min, degrees/min] on standard imperial systems
Revolutional feedrate (G95)
The revolutional feedrate is programmed in the following units relative to a master spindle:
S [mm/rev] on standard metric systems S [inch/rev] on standard imperial systems S [degrees/rev] on a rotary axis
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-9
10.00
The path velocity is calculated from the actual speed of the spindle according to the following formula:
Formula
V=n*F with V: n: F: Path velocity Speed of master spindle Programmed revolutional feed
(5)
Note The programmed F value is deleted when the system switches between the feed types G93, G94 and G95. In the JOG mode, the response of the axis/spindle also depends on the setting data in SD 41100: JOG_REV_IS_ACTIVE (revolutional feedrate for JOG active).
S If the setting is not active, the response of the axis/spindle depends on the
setting data SD 43300: ASSIGN_FEED_PER_REV_SOURCE (revolutional feedrate for positioning axes/spindles).
S If the setting data is not active, the response of a geometry axis, on which a
frame with rotation is active, depends on the channel-specific setting data SD 42600: JOG_FEED_PER_REV_SOURCE (in the JOG mode revolutional feedrate for geometry axes, on which the frame with rotation is active).
A programmed, active revolutional feedrate (G95) is displayed using this interface signal.
1/V1/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
2.1.2
The constant cutting rate is used on turning machines to keep the cutting conditions constant, independently of the work diameter of the workpiece. This allows the tool to be operated in the optimum cutting performance range and therefore increases its service life. Selection of G96, G961: When programming G96, G961, the corresponding S value is interpreted as the cutting rate in m/min or ft/min along the transverse axis. If the workpiece diameter decreases during machining, the speed is increased until the constant cutting speed is reached. When G96, G961 is first selected in the part program, a constant cutting rate must be entered in mm/min or ft/min, when the command is reselected, a new cutting rate may be entered. With G96, the control system will automatically switch to revolutional feedrate (as with G95), i.e. the programmed feedrate F is interpreted in mm/rev or inch/rev. When programming G961, linear feedrate is selected automatically (as with G94). A programmed feedrate F is interpreted in mm/min or inch/min. Depending on the programmed cutting rate SSpeed, either (SG96) or (SG961) and the partoriented actual value of the transverse axis (radius r), the control system determines the spindle speed using the following formula:
Formula
(6)
Example
SG96 = 230 m/min when r = 0.2 m ! n = 183.12 rev/min when r = 0.1 m ! n = 366.24 rev/min The smaller the workpiece diameter, the higher the speed. For G96, G961, a geometry axis must be defined as the transverse axis. The transverse axis, the position of which affects the speed of the master spindle, is defined via the channel-specific MD 20100: DIAMETER_AX_DEF (geometry axis with transverse axis function). The function G96, G961 requires that the machine zero and the workpiece zero of the transverse axis are in the turning center of the spindle.
G97, G971 deactivates the Constant cutting rate function (G96, G961) and saves the last calculated spindle speed. With G97, the feedrate is interpreted as a revolutional feedrate (as with G95). When programming G971, linear feedrate is selected (as with G94). The feedrate F is interpreted in mm/min or inch/min. When G97, G971 is active, an S value can be reprogrammed to define a new spindle speed. This will not modify the cutting rate programmed at G96, G961.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-11
10.00
G97, G971 can be used to avoid speed variations in movements along the transverse axis without machining (e.g. cutting tool).
Note G96, G961 is only active when the workpiece is being machined (G1, G2, G3, spline interpolation, etc., where the feed F is active). The response of the spindle speed for active G96, G961 and G0 blocks can be defined in the channel-specific MD 20750: ALLOW_G0_IN_96 (G0 logic with G96, G961). When constant cutting rate G96, G961 is selected, no gear stage change can take place. The spindle override switch acts on the calculated spindle speed. A DRF offset on the facing axis does not influence the spindle speed setpoint calculation. At the start of machining (after G0 ) and after NC Stop, G60,G09, ...the path start waits for nAct= nSet. The interface signals nAct = nSet and Set speed limited are not modified by internal speed settings. When the speed falls below the minimum speed or if the signal Axis/spindle stationary is recognized, nAct =nSet is reset. A path operation which has started (G64, overgrinding) is not interrupted.
For the function Constant cutting rate, in SD 43230: SPIND_MAX_VELO_LIMS (spindle speed limitation with G96/G961) and in the parts program (for the master spindle) with the programming command LIMS, a maximum spindle speed can be set. The most recently changed value (LIMS or SD) is active. LIMS is operative with G96, G961, G97. The speed limit set with LIMS remains stored after the control is switched off, depending on MD 10710: PROG_SD_RESET_SAVE_TAB[n] (setting data to be updated). When G96, G961, G97 are reactivated, the spindle speed limitation is also activated. The maximum permissible spindle speed defined by means of G26 or SD 43220: SPIND_MAX_VELO_G26 (maximum spindle speed) cannot be exceeded. Incorrect programming that would cause one of the speed limits (G26 or SPIND_MAX_VELO_G26) to be exceeded enables the Programmed speed too high interface signal (DB31, ... DBX83.0) is set. In order to ensure smooth rotation with large part diameters, the spindle speed is not permitted to fall below a minimum level. This speed is defined using SD 43210: SPIND_MIN_VELO_G25 (minimum spindle speed) and MD 35140: GEAR_STEP_MIN_VELO_LIMIT for each gear step. The minimum spindle speed can be changed in the parts program with G25. Incorrect programming that would cause one of the spindle speed limits (G25 or SPIND_MAX_VELO_G25) to be exceeded enables the Set speed too high interface signal (DB31, ... DBX83.2) is set.
1/V1/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Spindle working area (after G96/G961 speed calculation and feed override)
N Absolute speed limit
MD 35100: SPIND_VELO_LIMIT maximum spindle speed MD 35130: GEAR_STEP_MAX_VELO_LIMIT[n] maximum speed of the gear step[0 ...5] SD 43220: SPIND_MAX_VELO_G26 programmed spindle speed limitation G26 SD 43230: SPIND_MAX_VELO_LIMS (operative only with G96, G961, G97) IS Spindle speed limitation from PLC (DB31, ... DBX3.6) MD 35160: SPIND_EXTERN_VELO_LIMIT spindle speed limitation from PLC SD 43210: SPIND_MIN_VELO_G25 programmed spindle speed limit G25
0
Fig. 2-1
The various spindle speed limits are illustrated in the figure above. For more detailed information on this and on the method of functioning of the setting data, see: References: /FB1/, S1, Spindles, Spindle monitoring, setting data
With SW 6.2 and lower, the cutting rate programmed under Sxxx is interpreted as speed for a masterslave switchover where the master spindle is rotating with G96 Sxxx. With SW 6.3 and higher, a master spindle that changes when G96, 961 is active continues to operate at the speed of the preceding master spindle. This corresponds to a transition from B96 to G97. The master spindle newly defined with SETMS executes the Constant cutting rate function generated in this way.
Alarms
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-13
10.00
2.1.3
Application of G33
The function G33 can be used to machine threads with constant lead of the following type: References: /PG/, Programming Guide: Fundamentals /PAZ/, Programming Guide: Cycles
A revolutional feedrate [mm/revolution] is used for G33 threads. The revolutional feedrate is defined by programming the thread lead increase [mm/revolution]. The axis velocities for the thread length are calculated from the programmed spindle speed S and the thread lead: Feed F [mm/min] = speed S [rev/min] * thread lead [mm/rev] At the end of the acceleration ramp, the position coupling between the spindle actual value (spindle setpoint with SPCON on master spindle) and the axis setpoint is established. At this moment, the position of the axis in relation to the zero mark of the spindle (including zero mark offsets) is as if the axis had accelerated abruptly at the start of the block when the thread start position (zero mark plus SF) was crossed. Compensation is made for the following error of the axis.
In order to ensure smooth rotation at low speeds, the spindle speed is not permitted to fall below a minimum level. This speed is defined using SD 43210: SPIND_MIN_VELO_G25 (minimum spindle speed) and in MD 35140: GEAR_STEP_MIN_VELO_LIMIT for each gear step. The minimum spindle speed can be changed in the parts program with G25.
NC stop and single block (even at the block boundary) are only active after completion of thread chaining. All subsequent G33 blocks and the first subsequent non-G33 block are traversed like a single block.
In SW 4.1 and higher, it is possible to interrupt thread cutting without destruction before the end point is reached. This can be done by activating a retraction motion.
With ROT frame and G33, G34, G35, alarm 10607 Thread with frame not executable is activated if the rotation causes a change in the thread length and thus the lead. Rotation around the thread axis is permissible. Alarm 10607 Thread with frame not executable can be suppressed by setting bit 12 in machine data MD 11410: SUPPRESS_ALARM_MASK if the ROT statement is intentionally used in the application. All other frames are accepted by the NC without alarm. Attention is drawn to the lead-changing effect of SCALE.
1/V1/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Programmable runin and runout path with G33, G34 and G35 (SW 5.1 and higher)
Functionality
The parts program statement DITS (Displacement Thread Start) and DITE (Displacement Thread End) can be used to set the acceleration distance (DITS) and/or the deceleration distance (DITE) for thread cutting.
Fig. 2-2
Activation
The DITS and DITE functions are always active during thread cutting. Example: N... N59 G90 G0 Z100 X10 SOFT M3 S500 N60 G33 Z50 K5 SF=180 DITS=1 DITE=3 ;Rounding begins at Z=53 N61 G0 X20
Alarms
If the run-in and/or run-out path is very short, the thread axis accelerates at a greater rate than allowed for in the configuration. The axis is then overloaded in terms of acceleration and technology alarm 22280 Programmed runin path too short is generated if bit 2 is set in MD 11411: ENABLE_ALARM_MASK. Alarm 22280 for thread runin or runout is purely an information alarm and has no effect on parts program execution.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-15
10.00
SD 42010:
Only paths, and not positions, are programmed with DITS and DITE. The parts program statements are related to the setting data SD 42010: THREAD_RAMP_DISP[0,1] defining the following acceleration response of the axis on thread cutting:
S SD 42010 = 0
Abrupt starting/braking of the feed axis on thread cutting.
S SD 42010 = > 0
The thread run-up/deceleration distance is set. To avoid technology alarm 22280, the acceleration limits of the axis must be observed in case of very small runin and runout paths.
Note DITE acts as a rounding clearance at the end of the thread. This achieves a smooth change in the axis movement.
Compatibility
MD 20650: THREAD_START_IS_HARD is omitted and replaced by SD 42010: THREAD_RAMP_DISP[0] or SD 42010: THREAD_RAMP_DISP[1]. The response of the new setting data with SD 42010: THREAD_RAMP_DISP[0] = 0 and SD 42010: THREAD_RAMP_DISP[1] = 0 is identical to the previous MD 20650: THREAD_START_IS_HARD = 1 and SD 42010: THREAD_RAMP_DISP[0] = 1 and SD 42010: THREAD_RAMP_DISP[1] = 1 is identical to the previous MD 20650: THREAD_START_IS_HARD = 0 The default setting of MD 20650: THREAD_START_IS_HARD=1 is valid up to SW 4.4. The default setting of SD 42010: THREAD_RAMP_DISP[0;1] = 1 is valid from SW 5.1.
Supplementary conditions
When a block containing the command DITS and/or DITE is loaded into the interpolator, the path programmed in DITS is copied into SD42010 THREAD_RAMP_DISP[0] and the path programmed in DITE is copied into SD42010 TEAD_RAMP_DISP[1]. The programmed run-in path is handled in accordance with the current setting (inch, metric). If no run-in/deceleration path is programmed before or in the first thread block, it is determined by the current contents of SD 42010 THREAD_RAMP_DISP[0,1]. In case of RESET, the setting data SD 42010: THREAD_RAMP_DISP[0,1] is set to the value 1.
1/V1/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
G34, G35 linear progressive/degressive thread lead change (SW 5.2 and higher)
Application G34, G35 Functionality
The functions can be used to produce self-shearing threads.
The thread lead increase (G34) defines the numerical increase in the lead value. A larger lead results in a larger distance between the thread grooves on the workpiece. The velocity of the thread axis thus increases with supposed constant spindle speed. The opposite is similarly true for the thread lead decrease (G34). The following definitions have been made for the thread lead changes with respect to the new G codes:
S G34 thread lead increase corresponds to progressive change S G35 thread lead decrease corresponds to degressive change
Both functions G34 and G35 imply the functionality of G33 and additionally provide the option of programming an absolute lead change value for the thread under F. If the start and end lead of a thread is known, the thread lead change can be determined using the following equation:
Formula
|k2e k2a| F = 2 * lG where the following applies: F: ke: ka: lG: the thread lead change to be programmed [mm/rev2] lead of axis target point coordinate of the thread axis [mm/rev] thread start lead (programmed under I, J or K) [mm/rev] thread length [mm]
(7)
The absolute value of F must be applied to G34 or G35 according to the desired lead increase or lead decrease. When the thread length lG, lead change F and initial lead ka are known, the lead increase at the end of block ke can be determined as follows by modifying the formula (7):
Formula
k e + k 2a ) F * 2 * lG k e + k 2a * F * 2 * lG
(8)
Formula
(9)
Note If the formula (9) results in a negative root expression, the thread cannot be machined! In this case, the NC signals alarm 10605 or alarm 22275.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-17
10.00
Sample program
Any lead changes that would overload the thread axis when G34 is active or which would result in an axis standstill when G35 is active, are detected during block preparation in time. Alarm 10604 Thread lead increase too high or alarm 10605 Thread lead decrease too high is activated if bit 10 in MD 11410: SUPPRESS_ALARM_MASK is not set. On thread cutting, certain practical applications require a correction of the spindle speed. In this case, the operator will base his correction on the permissible velocity of the thread axis. By setting bit 10 of machine data MD 11410: SUPPRESS_ALARM_MASK, it is possible to suppress output of alarms 10604 and 10605 generated as a function of monitoring. Block preparation continues as normal when alarms are suppressed. The following situations are monitored cyclically when the thread is machined (interpolation):
Alarms
S If the spindle speed is too high with active G33, G34, G35, e.g. because the
spindle speed override is set to 200%, alarm 22270 Spindle speed on thread cutting too high is output. When the rapid traverse rate of the thread axis is exceeded, alarm 22270 is signaled. It is possible to reduce the spindle speed using the spindle override switch to prevent serious alarms. References: /FB1/, D1, Diagnostic Tools, General Machine Data /DA/, Diagnostics Guide
1/V1/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
Retraction motion
The retraction motion (liftfast) for thread cutting is controlled by the following keywords:
S LFON Enable liftfast for thread cutting S LFOF Disable liftfast for thread cutting
These G functions can always be programmed. The MD 20150: GCODE_RESET_VALUES. The following sources can initiate a retraction motion during thread cutting:
S Fast inputs (programming with SETINT LIFTFAST for LIFTFAST option) S NC Stop S Alarms that implicitly initiate the NC stop.
DILF
Axis standstill
Retraction path
The retraction path can be configured in MD 21200: LIFTFAST_DIST. If required, this path in the parts program can be changed by writing DILF at any point. After NC reset, the value entered in MD 21200: LIFTFAST_DIST is always active (default value).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-19
10.00
The type of defining the retraction direction is set in MD 20660: THREAD_AUTO_LIFTFASTANGEL (not included in SW 4.3 and higher): 1: Retraction angle and direction are determined internally on initiation of theretraction motion. It is alway orthogonal to the axis for which the thread pitch was programmed. The following have no effect on the retraction direction:
S ALF programming, S the direction of travel of the thread axis (right/left thread), S the transition from cylindrical to conical thread,
provided that the axis that determines the thread lead is not changed. 0: The retraction angle is defined by the ALF programming and is orthogonal to the tangent of the interpolated contour at the time of retraction. The transition from the cylindrical to conical thread changes the retractiondirection according to the change in the tangent at the contour. For information of programming ALF, refer to: References: /PGA/, Programming Guide Advanced
The retraction direction depends on the current machining plane. G18 is an expedient setting.
Retraction direction zNC stop Stop the retraction motion (case a) X
MD 20660: THREAD_AUTO_LIFTFASTANGEL = 1
Retraction direction zNC stop Stop the retraction motion (case a) Fig. 2-4
MD 20660: THREAD_AUTO_LIFTFASTANGEL = 0
1/V1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
The type of defining the retraction direction is controlled in conjunction with the variable ALF using the following vocabulary words:
S LFTXT
The plane of the retraction movement is determined by the path tangent and the tool direction. This G code (default setting) is used to program the response on a fast lift. For information of programming ALF, refer to: Reference: /PGA/, Programming Guide Advanced /FB/, K1, Mode Group, Channel, Program Operation Mode (Interrupt routines and LIFTFAST, Fast retraction).
S LFWP
The plane of the retraction movement is the active working plane selected with G codes G17, G18 or G19. The direction of the retraction plane is independent of the path tangent. This allows a fast lift to be programmed parallel to the axis. These G functions can always be programmed. The MD 20150: GCODE_RESET_VALUES. In the plane of the retraction movement, ALF is used, as before, to program the direction in discrete steps of 45 degrees. With LFTXT, retraction in the tool direction was defined for ALF=1. With LFWP the direction in the working plane is derived from the following assignment: G17: G18: G19: X/Y plane Z/X plane Y/Z plane ALF=1 ALF=3 ALF=1 ALF=3 ALF=1 ALF=3 Retraction in X direction Retraction in Y direction Retraction in Z direction Retraction in X direction Retraction in Y direction Retraction in Z direction
Note The extension for programming the plane of the retraction movement can be used independently of thread cutting.
Retraction speed
The retraction is made at the maximum axis speed. This can be configured in the MD (MD 32000: MAX_AX_VELO).
The acceleration is made with the maximum permissible values. This can be configured in the MD (MD 32300: MAX_AX_ACCEL).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-21
Example
N55 M3 S500 G90 G18 ; Set active machining plane ... N65 MSG (thread cutting) MM_THREAD: N67 $AC_LIFTFAST=0 ;Reset before the start of the thread N68 G0 Z5 N69 X10 N70 G33 Z30 K5 LFON DILF=10 LFWP ALF=7 ;Enable fast lift for ;Thread cutting ;Retraction distance=10 mm ;Retraction plane Z/X (because of G18) ;Retraction direction X (with ALF=3 ;Retraction direction +X) N71 G33 Z55 X15 N72 G1 ;Select thread cutting N69 IF $AC_LIFTFAST GOTOB MM_THREAD ;if thread cutting ;was interrupted N90 MSG () ... N70 M30 N55 M3 S500 G90 G0 X0 Z0 ... N87 MSG (Tapping) N88 LFOF ;Disable fast retraction before tapping N89 CYCLE ... ;Tapping cycle with G33 N90 MSG () ... N99 M30
Control response
During POWER ON and Reset, the retraction path is set with the configured path (MD) and the status of LFON or LFOF and LFTXT or LFWP through MD 20150: GCODE_RESET_VALUES of the corresponding G group.
If low-resolution encoders are being used, smoothed actual values can be applied for constant coupled path and axis motions. Machine data MD 34990: ENC_ACTVAL_SMOOTH_TIME can be used to change the time constant for better smoothed actual values for:
S Thread cutting with feed on G33, G34, G35 S Revolutional feedrate on G95, G96, G97, FRAPON S Display of actual positions and actual speed/velocity
or change speed. The larger the time constant, the better the smoothing of the actual values and the longer the overtravel.
1/V1/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.1
2.1.4
Application
G63 is a subfunction for tapping threads using a tap with compensating chuck. A position encoder is not required.
Alarms
The following alarms are output when programming is incorrect: Alarm 16700 Incorrect feed type Alarm 16710 Master spindle not programmed If a path axis is stopped when G63 is active, e.g. through an axisspecific Feed hold, alarm 22200 Axis stop with tapping is output.
2.1.5
Application
Alarms
The following alarms are output when programming is incorrect: Alarm 16700 Incorrect feed type Alarm 16720 Thread lead is zero and Alarm 16760 S value missing
Note For further information about programming G63/G331/G332, refer to: References: /PG/, Programming Guide: Fundamentals /PAZ/, Programming Guide: Cycles
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-23
10.00
2.2
The axis-specific feed FA defines the velocity of a positioning axis. One feed can be defined for each axis in a parts program block. A maximum of five feeds per block can be defined for positioning axes. The value programmed at the FA address for the defined axis remains active in the program until a new FA value is programmed. If no feed FA is programmed, the axis travels with the value defined in MD 32060: POS_AX_VELO (reset value for positioning axis velocity). At the program end or reset, the FA value is reset to the last value programmed or to the value entered in MD: POS_AX_VELO, depending on the setting in MD 22410: F_VALUES_ACTIVE_AFTER_RESET (F function active via RESET). The time set in MD 32000: MAX_AX_VELO (maximum axis velocity) cannot be exceeded.
References:
/PG/, Programming Guide: Fundamentals /FB/, G2, Velocities, Setpoint/Actual Value Systems, ClosedLoop Control
The F values of the positioning axes of the current block are entered in the PLC interface for auxiliary functions (DB21, ... DBB158 to DBB193). Please refer to the following documentation for the channelspecific interface signals (modification signal, machine axis number of positioning axis, F value): References: /FB/, S5, Synchronized Actions In addition, the F values of the positioning axes are entered in the axis-specific PLC interface (DB31, ... DBB78 DBB81). The values are retained until they are overwritten by new ones. Application: Monitoring of the programmed F values by the PLC user program and selection of an axis-specific feed override from the PLC when a limit value is exceeded.
Note It is recommended to avoid output of the F functions to the PLC where possible, as this can lead to reductions in speed in contouring mode. The parameters are defined in MD 22240: AUXFU_F_SYNC_TYPE (output time for F functions). References: /FB/, S5, Synchronized Actions
1/V1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
2.2.1
The feed for positioning axes is always traversed with the G94 feed type. The linear feed is programmed in the following units in relation to a linear axis or rotary axis:
S [mm/min, degrees/min] on standard metric systems S [inch/min, degrees/min] on standard imperial systems
Alarm
When a negative axis velocity is programmed, alarm 14810 Negative axis velocity programmed for positioning axis is output.
2.3
Unit of measurement
The unit of measurement used for the feedrates depends on the value entered in MD 12240: SCALING_SYSTEM_IS_METRIC (standard metric/inch system on the control) and the axis type entered in MD 30300: IS_ROT_AX (rotary or linear axis).
G94 is displayed on the screen as the standard setting. The reset setting (standard programmed setting) for the feed type is only displayed at the start of the parts program. The reset setting is defined with MD 20150: GCODE_RESET_VALUES (reset setting of the G groups).
Individual basic frames can be deleted with MD 22140: F_VALUES_ACTIVE_AFTER_RESET (F function active via RESET) can be used to define whether the most recently programmed F values are to be active after a reset.
S Programmed path feed: F=.... S Programmed feed change for path feed: OVR=... S Programmed positioning feed: FA=.... S Programmed feed change for positioning feed: OVRA[U]=...
Please refer to the following documentation for further information on the syntax. References: /PG/, Programming Guide: Fundamentals
Spindle positioning
When G95, G96, G961, G97, G971, G33, G35 are active, no spindle positioning should take place, since the derived path feed = 0 after spindle positioning has been completed. If the programmed axis position has not been reached, the block cannot be terminated.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-25
10.00
2.4
Feed control
The following figure illustrates the possibilities for programing and controlling the feedrate. For further information on Feed programming, see Sections 2.1, 2.2, 2.3 Feed override on the machine control panel, see Subsection 2.4.2 Programmable feed override, see Subsection 2.4.3 Activation of a dry run feed, see Subsection 2.4.4
Progr. F value Progr. S value Stored S value IS: Activate dry run feed G95 G96, G961
G95/G96/G961/G97/G971
SSpeed 2**r
G97, G971
SD: DRY_RUN_FEED_MODE IS: Activate dry run feed Actual spindle speed
PLC
PP (OVR) (OVRA)
Spindle position control G93/G94 G95 * 100 % * Feed override from machine control panel 0 200 % PLC
(SPCON) PP (SPCOF)
SSpeed:SG96 or SG961
IS: Rapid traverse override active IS: Feed override active IS: Override active
Fig. 2-5
2.4.1
General
The feed disable or feed/spindle stop brings the axes to a standstill with adherence to the braking characteristics and the path contour (exception: G33 block). References: /FB/, B1, Continuous-Path Mode, Exact Stop and Look Ahead
IS Feed disable (DB21, ... DBX6.0) shutsdown all axes (geometry and auxiliary axes) of a channel in all modes.
1/V1/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
When the following functions are active, the channel-specific feed disable is inactive with G33, G34, G35 active with G63 active with G331, G332
Feed hold DB21, ...DBX12.3 geometry axes Feed hold DB31, ...DBX4.3 axisspecific
IS Feed hold (DB21, ... DBX12.3 and the following signals) for geometry axes 1, 2 and 3 are used to stop the axes in JOG mode.
IS Feed hold (DB31, ... DBX4.3) stops the relevant machine axis. In automatic mode:
S If the Feed hold is performed for a path axis, all the axes traversed in the
current block and all axes participating in the axis group are stopped.
S If the Feed hold is performed for a positioning axis, only this axis is
stopped. Only the current axis is stopped in JOG mode. The axis-specific Feed Hold is active when G33, G34, G35 are active (in this case, contour deviations will occur) active with G63 G331, G332 are active
If Axis/spindle lock (DB 31, ...DBX1.3) is active, the axial PLC interlocks No servo enable or Feed hold are not active. The axial and channel-specific override, however, are active.
The interface signal IS Spindle hold (DB31, ... DBX4.3) stops the relevant spindle. When the following functions are active, the spindle stop is active with G33, G34, G35 (contour deviations can arise, depending on the dynamic characteristic values) active with G63 inactive with G331, G332
2.4.2
General
The operator can use the feed override switch to increase or decrease the path feed relative to the programmed percentage with immediate effect. The feeds are multiplied by the override values.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-27
10.00
An override between 0 and 200% can be programmed for the path feed. The rapid traverse override switch is used to reduce the traversing velocity when testing a parts program. An override between 0 and 100% can be programmed for the rapid traverse. The feed can be changed axisspecifically for positioning axes. The override can be between 0 and 200%. The spindle override can be used to modify the spindle speed and the cutting rate (with G96, G961). The override can be between 0 and 200%. The override is not permitted to exceed the machine-specific acceleration and speed limits or generate a contour error. The feed override can be changed separately for path and positioning axes. The overrides act on the programmed values or on the limits (e.g. G26, LIMS for spindle speed). A sequence of G63 blocks is performed without consideration of the feed override. A sequence of G63 blocks comprises directly consecutive blocks with the G code G63. It begins with the first G63 block and ends with the first path motion block which is not G63.
Channel-specific Feed override DB21, ...DBB4 Rapid traverse override DB21, ...DBB5
One enable signal and one byte is provided on the PLC interface for the override factor for each of the feed types. IS Feedrate override (DB21, ... DBB4) IS Feed override active (DB21, ... DBX6.7) IS Rapid traverse override (DB21, ... DBB5) IS Rapid traverse override active (DB21, ... DBX6.6) The interface for the override can be provided by the PLC in binarycoded or Graycoded format. The MD12020: OVR_FEED_IS_GRAY_CODE (path feed override switch Graycoded) and MD 12040: OVR_RAPID_IS_GRAY_CODE (rapid traverse override switch binarycoded) are used to define whether the binary or Gray codes are active. The following permanent assignment applies to binary coding: Override factor Code 00000000 00000001 00000010 00000011 00000100 . . . 01100100 . . . 11001000 0.00 8 0% 0.01 8 1% 0.02 8 2% 0.03 8 3% 0.04 8 4% . . . 1.00 8 100% . . . 2.00 8 200%
1/V1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
With Graycoding, the override factors corresponding to the switch setting are entered in MD 12030: OVR_FACTOR_FEEDRATE [n] (evaluation of path feed override switch) or MD 12050: OVR_FACTOR_RAPID_TRA [n] (evaluation of rapid traverse override switch). An active feed override acts on all path axes assigned to the current channel. An active rapid traverse override acts on all axes moving with rapid traverse and assigned to the current axis. If no dedicated rapid traverse override switch is used, the system can be switched between rapid traverse override and feed override. In this case, feed overrides above 100% are limited to 100% rapid traverse override. The override which is to be active can be selected from the PLC or operator panel. When rapid traverse override is activated from the operator panel, the PLC basic program transmits the Feed override for rapid traverse selected interface signal (DB21, ... DBX25.3) to the Rapid traverse override active interface signal (DB21, ... and copies the Feed override interface signal (DB21, ... DBB4) into the Rapid traverse override interface signal (DB21, ... DBB5). DBB5). When activated from the PLC, the PL C user program is required to enable the Rapid traverse override active interface signal (DB21, DBX6.6) and copy the interface signal for the feed override (DB21, ... DBB4) in to the interface signal for rapid traverse override (DB21, ... DBB5). When the following functions are active, the channel-specific feed and rapid traverse overrides are: G33, G34, G35 inactive G63 inactive inactive with G331, G332
From SW 4, it is possible to specify the reference speed for the path feed override that deviates from the standard value. The machine data MD 12082: OVR_REFERENCE_IS_MIN_FEED is used to make this selection.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-29
10.00
One enable signal and one byte for the feed override factor are available on the PLC interface for each positioning axis. IS Feedrate override (DB31, ... DBB0) IS Override active (DB31, ... DBX1.7) The interface for the feed override can be provided by the PLC in binary-coded or Gray-coded format. The MD 12000: OVR_AX_IS_GRAY_CODE (axis feed override switch Gray-coded) is used to define whether the binary or Gray codes are active. The following permanent assignment applies to binary coding: Override factor Code 00000000 00000001 00000010 00000011 00000100 . . . 01100100 . . . 11001000 0.00 8 0% 0.01 8 1% 0.02 8 2% 0.03 8 3% 0.04 8 4% . . . 1.00 8 100% . . . 2.00 8 200%
With Gray-coding, the override factors corresponding to the switch setting are entered in MD 12010: OVR_ FACTOR_AX_ SPEED [n] (evaluation of axis feed override switch). The axis-specific feed override is inactive when G33, G34, G35 inactive G63 is inactive (The offset is fixed by the NC to 100%). G331, G332 are inactive (the NC sets the override permanently to 100%)
One enable signal and one byte for the spindle override factor. IS Spindle override (DB31, ... DBB19), up to SW 2, DBB0. IS Override active (DB31, ... DBX1.7) The interface for the spindle override can be provided by the PLC in binary-coded or Gray-coded format. The MD 12060: OVR_SPIND_IS_GRAY_CODE (spindle offset switch is Gray-coded) is used to define whether the binary or Gray codes are active.
1/V1/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
The following permanent assignment applies to binary coding: Code Override factor 00000000 00000001 00000010 00000011 00000100 . . . 01100100 . . . 11001000 0.00 8 0% 0.01 8 1% 0.02 8 2% 0.03 8 3% 0.04 8 4% . . . 1.00 8 100% . . . 2.00 8 200%
With Gray-coding, the override factors corresponding to the switch setting are entered in MD 12070: OVR_FACTOR_SPIND_SPEED [n] (evaluation of spindle override switch). The spindle override is active when G33, G34, G35 active (if the spindle is in position control, the override switch can be operated). G63 inactive (the NC sets the override permanently to 100%) G331, G332 active.
On binary-coded interfaces, the maximum override factors can be further limited for path feed, axis feed and spindle speed using MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override factors). Please see Section 4.1 for further information.
Override active DB21, ...DBX6.6 DB21, ... DBX6.7 DB31, ... DBX7.7
The override values set with the selection switch on the machine control panel are immediately active for all operating modes and machine functions, provided that the Rapid traverse override active, (DB21, ... DBX6.6) Feed override active (DB21, ... DBX6.6) or IS Override active (DB31, ... DBX1.7). An override factor of 0% acts as a feed disable.
Override inactive
When the override is inactive (i.e. the above interface signals are set to 0), the override factor 1 is used internally on the NC (i.e. the override is 100%). In this case, the value entered in the PLC interface has no effect. Exceptions are the zero setting for a binary interface and the 1st switch setting for a Gray-coded interface. In these cases, the override factors entered in the PLC interface are used. With a binary interface, the override factor = 0. With a Gray-coded interface, the value entered in the machine data for the 1st switch setting is output as the override value. This should be initialized with 0. An override factor of 0% acts as a feed disable.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-31
10.00
The MD 12080: OVR_REFERENCE_IS_PROG_FEED (override reference velocity) specifies whether the spindle override
or
2.4.3
Function
The programmable feed override can be used to change the velocity level of path and positioning axes by means of a command in the parts program. A separate feed override can be programmed for positioning axes.
Programming
The feed override can be changed with the following commands: OVR= .... OVRA[X1]= ... Feed change for path feed F Feed change for positioning feed FA
Activation
The Rapid traverse/feed override active (DB21, ... DBX6.6) or IS Override active (DB31, ... DBX1.7) interface signals do not relate to the programmable feed override. The programmable feed override remains active when these signals are deactivated. The active override is calculated from the product of the programmable feed override and the feed override from the machine control panel. The standard setting is 100%. It applies when no feed override has been programmed, and after reset if MD 22410: F_VALUES_ACTIVE_AFTER_RESET (F function active via reset) is not enabled. OVR is also active for rapid traverse (G0). However, it is automatically limited to a maximum of 100%. OVR is not active with G33, G34, G35.
1/V1/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.4.4
Application
The dry run feed is used when testing parts programs without machining the workpiece in order to allow the program or program sections to execute with an increased path feed, for example.
The dry run feed can be activated from the PLC or operator panel. When activated from the operator panel, the Dry run feed selected interface signal (DB21, ... DBX24.6) is enabled and transmitted by the PLC basic program to the Activate dry run feed interface signal (DB21, ... DBX0.6). When selected on the PLC, the Activate dry run feed interface signal is required to be set by the PLC user program. The execution of the program is triggered with G94. The dry run feed also take precedence over the feeds for G93, G95 and G33. In this case, the programmed feedrate is compared to the dry run feedrate in SD 42100: DRY_RUN_FEED and the axis then traversed at the higher of the two feedrates. Standard solution up to SW 5 and higher.
The dry run feed (SD 42100: DRY_RUN_FEED) can be changed on the operator panel in the Parameter user area. No changes can be made after the program has started.
Evaluation
The effect of SD 42100: DRY_RUN_FEED can be controlled by another setting data SD 42101: DRY_RUN_FEED_MODE in SW 6 and higher.
SD 42101: Activation DRY_RUN_ As long as interface signal Activate dry run feedrate is active, the FEED_ feedrate value set in SD 42100: DRY_RUN_FEED is operative instead of MODE the programmed feedrate in the following way: 0 The maximum value from SD 42100: DRY_RUN_FEED and the programmed velocity is operative. This corresponds to the default setting and the system response in SW 5 and lower. The minimum value from SD 42100: DRY_RUN_FEED and the programmed velocity is operative. (SW 6 and higher.) Setting data SD 42100: DRY_RUN_FEED is directly operative, irrespective of the programmed velocity. (SW 6 and higher.) reserved As for configured value 0 except for thread cutting (G33, G34, G35) and tapping (G331, G332, G63). These functions are executed as programmed. As for configured value 1 except for thread cutting (G33, G34, G35) and tapping (G331, G332, G63). These functions are executed as programmed. As for configured value 2 except for thread cutting (G33, G34, G35) and tapping (G331, G332, G63). These functions are executed as programmed.
1 2 39 10
11
12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-33
10.00
A dry run feed can be selected in the automatic modes and activated on interruption of an automatic mode or end of a block.
Previously, a dry run feedrate could only be activated by interrupting Automatic mode or at the end of a block. If MD 10704: DRYRUN_MASK = 1 is enabled, the dry run feedrate can also be activated during execution of the program (in the parts program block).
Note Activation during machining triggers an internal reorganization task on the control which causes the axes to be stopped for a short time. This can affect the surface finish of the workpiece being machined.
2.4.5
Application
The functionality described in the following is used primarily for grinding, but is not restricted to it. References: /FB/, W4, Grinding /FB/, P5, Oscillation
Functionality
The function Multiple feeds in one block can be used to activate 6 different feed values of an NC block, a dwell time or a retraction motion synchronously depending on the external digital and/or analog inputs.
Retraction
Signals
The HW input signals are combined in one input byte for the function Multiple feed in one block. A permanent functional assignment applies within the byte:
Table 2-1 Input byte for Multiple feeds in one block Bit 7 Input no. Feed address I7 F7 Bit 6 I6 F6 Bit 5 E5 F5 Bit 4 I4 F4 Bit 3 I3 F3 Bit 2 I2 F2 Bit 1 E1 ST Bit 0 I0 SR
I7 to I2 I1 I0
Activate feeds F7 to F2 Activate the dwell time ST (in seconds) Activate the retraction motion SR
1/V1/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Priorities
The signals are polled in ascending order, starting at I0. In this way, the retraction motion (SR) has the highest priority, the feed F7 the lowest. SR and ST end the feed motions that were activated with F2 F7. SR also terminates ST, i.e. the complete function. The highest priority signal determines the current feed. MD 21230: MULTFEED_STORE_MASK (input signals for the function store Multiple feeds in one block) can be used to define the response on loss of the highest priority input in each case (F2 F7). The end-of-block criterion is satisfied when:
S the programmed end position is reached S the retraction motion ends (SR) S the dwell time elapses (ST)
Delete distance-to-go Hardware assignment
A retraction motion or dwell time causes the distancetogo-to-be deleted.
The above input byte can be assigned a maximum of two digital input bytes or comparator input bytes of the NCK I/Os using the channel-specific MD 21220: MULTFEED_ASSIGN_FASTIN (assignment of the input byte of the NCK I/Os for Multiple feeds in one block). MD 21220: MULTFEED_ASSIGN_FASTIN can still be used to invert the input bits. If a 2nd byte is entered, the contents of the 1st and 2nd byte are ORed before being used.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-35
10.00
1st byte
MD: MULTFEED_ ASSIGN_FASTIN Bit 0 ... 7
2nd byte Digital input byte or comparator input byte 7 Bit 0 ... 7
MD: MULTFEED_ ASSIGN_FASTIN Bit 24 ... 31 MD: MULTFEED_ ASSIGN_FASTIN Bit 8 ... 15
1
...
1
Input bit 0
Fig. 2-6
The routing of the digital input bytes and the parameterizing of the comparators are described in References: /FB/, A2 Various Interface Signals
The path feed is programmed under the address F and remains valid until an input signal is present. This value acts modally. F2= ... to F7= ... can be used in addition to the path feed to program up to 6 further feeds in the block. The numerical expansion indicates the bit number of the input that activates the feed when changed. E.g. F7=1000 ; 7 corresponds to input bit 7 Bits 2 to 7 are permissible for numerical expansion of the feed.The programmed values act non-modally. The path feed programmed under F applies in the next block. Dwell (sparking out time) and retraction path are programmed under separate addresses in the block: ST=... dwell (for grinding sparking out time) SR=... retraction path These addresses apply non-modally.
The axial feeds are programmed under address FA and remain valid until an input signal is present. They act modally.
1/V1/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
FMA[2,x]= ... to FMA[7,x]= ... can be used to program up to 6 further feeds per axis in the block. The first expression in square brackets indicates the bit number of the input that activates the feed when changed. The second expression indicates the axis to which the feed applies. E.g. FMA[3,Y]=1000 ; Axial feed for Y axis, ; 3 corresponds to input bit 3
Bit 2 to 7 are permissible for the numerical expansion of the axial feed.The values programmed under FMA are active nonmodally. The feed programmed under FA applies to the next block. Dwell (sparking out time) and retraction path can also be defined for a single axis: STA[x]= ... SRA[x]=... Axis-specific dwell (sparking out time) Axis-specific retraction path
The expression in square brackets indicates the axis for which the sparking out time and retraction path apply. STA[X]=2.5 SRA[X]=3.5 ;Sparking out time is 2.5 seconds ;Retraction path is 3.5 (units e.g.: mm)
These addresses apply nonmodally. If a sparking out time (dwell) or retraction path is programmed for an axis feed on account of an external input, this axis must not be programmed as a PSOA axis in this block (positioning axis beyond end of block). When the input for the sparking out time or retraction path is activated, the distancetogo for the path axes or the particular single axis is deleted and the dwell or retraction is started.
Note The unit for the retraction path refers to the current valid unit of measurement (mm or inch). The reverse stroke is always made in the opposite direction to the current motion. SR/SA always programs the value for the reverse stroke. No sign is programmed. It is also possible to poll the status of an input for synchronous commands of various axes. Look Ahead is also active for multiple feeds in one block. In this way, the current feed is restricted by the Look Ahead value.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-37
10.00
Application
Calipers
Fig. 2-7 Calipers
Ring
Grinding disc
Parts programs
G00 X40 F=1000; Initial setting G01 X48 F=20 F7=5 F3=2.5 F2=0.5 ST=1.5 SR=0.5 Retraction Sparking out time Feedrate fine finishing Feedrate finishing Feedrate roughing Feedrate air grinding
1/V1/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Note The axial feed/path feed (F value) is the 100% feed. The Multiple feed values in one block interface signal (F2 to F7 value) can be used to obtain feeds that are less than or equal to the axial feed/path feed. The functionality Multiple feeds in one block is available only in conjunction with the Synchronized Actions function. References: /FB/, S5, Synchronized Actions
2.4.6
Function
The machine data can be used to define 4 fixed feed values, which can be activated via the interface signal. The function is possible in the AUTOMATIC and JOG modes.
The fixed feed which has been selected is used instead of the programmed feed. The following MDs and interface signals can be used to select fixed feeds for path/geometry axes: MD 12202: $MN_PERMANENT_FEED[n] (fixed feeds for linear axes) MD 12204: $MN_PERMANENT_ROT_AX_FEED[n] (fixed feeds for rotary axes) IS Activate fixed feed for path/geometry axes (DB21, ... DBX29.0 29.3) The contour travels at the activated fixed feed, instead of using the programmed feed.
The fixed feed selected via the interface signal is used instead of the set JOG speed. The direction of travel is specified using the interface signals. Fixed feeds can be selected for path/geometry axes using the following interface signals. MD 12202: $MN_PERMANENT_FEED[n] (fixed feeds for linear axes) MD 12204: $MN_PERMANENT_ROT_AX_FEED[n] (fixed feeds for rotary axes) IS Activate fixed feed for machine axes (DB31, ... DBX3.23.5) The axis travels at the activated fixed feed, instead of at the set JOG/JOG rapid traverse speed.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-39
10.00
Supplementary conditions
S The fixed feed is not active for spindles, positioning axes and tapping. S The override depends on MD 12200: $MN_RUN_OVERRIDE_0 (traverse
with override 0) when traversing with fixed feed.
S When fixed feed is selected, it is not possible to activate DRF offset. S The fixed feeds are always linear feedrate values. Revolutional feedrates
are converted to linear feeds internally.
Interface signals
Signals to channel (DB21, ... ) Activate fixed feedrate 1 for path/geometry axes (DBX29.029.3) Channel 2 Channel 1 Fixed feed
Signals to axis (DB31, ... ) Activate fixed feedrate 1 for machine axes (DBX3.23.5) Fig. 2-8
Overview of interface signals for permanent feed (for more information, see Chapter 5)
2.4.7
General
The machining conditions can change significantly during surface transitions to chamfer/rounding. The chamfer/rounding contour elements therefore need their own optimized feed values in order to achieve the required surface finish. Up to SW 5.1, the feed for chamfer/rounding was taken from the preceding block or following block.
Function
S G94, G961, G971: Feedrate in mm/min, inch/min or o/min S G95, G96, G97: Revolutional feedrate in mm/rev or inch/rev
1/V1/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
S Bit=0: FRC/FRCM from following block (default setting) S Bit0 = 1: FRC/FRCM from preceding block (recommended setting).
Reason: The feed type (G94, G95, G96, G961 ...) and thus the conversion to the internal format must be consistent within the block for F and FRC/FRCM.
Empty blocks
When chamfer or rounding is active, the possible number of blocks containing no traversing information is limited. The maximum number is defined in MD 20200: CHFRND_MAXNUM_DUMMY_BLOCKS. The possible blocks without traversing information in the compensation plane are pure dummy commands and are called empty blocks. For this reason, they may only be written between two blocks with traversing information.
Supplementary conditions
S Feed interpolation FLIN and FCUB is not possible for chamfer/rounding. S FRC/FRCM has no effect if a chamfer is traversed with G0; it is possible to
program this, in accordance with the F value, without receiving an error message.
S Must be greater than zero. S FRCM=0 activates the feedrate programmed in F for the chamfer/rounding. S If FRCM is programmed, the FRCM value must be programmed again,
equivalent to F, $ on a G94, G95 change etc. If only F is reprogrammed and FRCM is u 0, before the feed type is changed, error message 10860 appears (no feed programmed).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-41
10.00
2.4.8
General
A separate feed can be specified for a single block with the command FB (Feed Block). For this block the previously active path feed is overwritten. After this block the previously active modal path feed becomes active once more.
Function
The blockwise feed is programmed with FB=<value>. The feed value is interpreted according to the type of feed active:
S G94, G961, G971: Feedrate in mm/min, inch/min or o/min S G95, G96, G97: Revolutional feedrate in mm/rev or inch/rev
Supplementary conditions
S The programmed value of FB= <value> must be greater than zero. S If no traversing motion is programmed in the block (e.g.: computation block),
the FB has no effect.
S The path velocity profile programmed with FLIN or FCUB does not act with
the rotational feed for G95 and with constant cutting speed for G96/G961 and G97/G971.
S Feed interpolations FLIN, FCUB, .. are possible without restriction. S Simultaneous programming of FB and FD (handwheel travel with feed
overlay) or F (modal path feed) is not possible.
1/V1/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.4.9
Single axes
S In the PLC
FC15/ FC16 and FC18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-43
10.00
With dynamic response criteria, it must be distinguished from where they were set:
S From the parts program or S From a main run interpolation (synchronized action or PLC default)
Note Dynamic response changes which are performed in a parts program, have no effect on command axis or PLC axis motions. Changes from synchronized actions have no reverse effects on motions from a parts program.
S Programmable in the parts program with FFWON/ FFWOF for axes selected
in the machine data.
S Only indirectly programmable in synchronized actions. (ASUP) S Only indirectly programmable from the PLC. (ASUP)
Up to SW 5.2, a single axis movement is ended when Exact stop FINE is reached.
ACC[axis]
With ACC[axis]= 0 .. 200, the aceleration defined in MD 32300: MAX_AX_ACCEL can be modified in a range from 0% 200% in parts programs and synchronized actions. ACC[axis]= <value> Axis Channel axis name (X, Y ....), spindle (S1, ...) Value Percentage of MD 32300: MAX_AX_ACCEL. (0 <= value <= 200) The current acceleration value can be called with the system variables $AA_ACC[axis]. It is determined by: $AA_ACC[Axis]= Content(MD 32300: MAX_AX_ACCEL[Axis]) * ACC[axis]/100
Important The aceleration offset programmed with ACC[] is always considered as specified above for the output in $AA_ACC. Output of $AA_ACC in the parts program takes place at a different time than outputting in a synchronized action. The value described in the parts program is only considers in the system variables $AA_ACC as described in the parts program, if ACC was not changed in the meantine by a synchronized action. The value described in the synchronized action is only considers in the system variables $AA_ACC as described in the synchronized action, if ACC was not changed in the meantine by a parts program.
1/V1/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Main run axes (MR axes) are axes that are interpolated by the main run and can be:
S command axes (activated by synchronized actions) S PLC axes (started by PLC via function block) S asynchronous oscillating axes (setting data or from parts program) S neutral axes
Important Depending on whether $AA_ACC is programmed in a parts program or in a synchronized action, the ACC value is output for the NC axes or the mainrun axes. Variable $AA_ACC must always be queried in the mode in which the acceleration was written (either parts program or synchroniyed action).
Examples
After RESET, the last programmed value remains. In the parts program ... N80 G01 POS[X]=100 FA[X]=1000 ACC[X]=90 IPOENDA[X] ... or via synchronized actions ... N100 EVERY $A_IN[1] DO POS[X]=50 FA[X]=2000 ACC[X]=140 IPOENDA[X] ... Acceleration factor is written in the part program: ... ACC[X]=50 RO $AA_ACC[X] IF (RO <> $MA_ MAX_AX_ACCEL[X] * 0,5 SETAL(61000) ENDIF Acceleration factor is set by the synchronized action: WHEN TRUE DO ACC[X]=25 $R1 = $AA_ACC[X] G4 F1 IF (RO <> $MA_ MAX_AX_ACCEL[X] * 0.25 SETAL(61001) ENDIF M30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-45
10.00 10.00
Similar to the block change criterion for path interpolation (G601, G602 and G603) it is also not possible to program the movement end criterion for single-axis interpolation in a parts program or in synchronized actions for main run axes: Command/PLC axes Programmable criterion: End-of-motion on reaching of Exact stop fine of Exact stop coarse from Interpolator Stop (IPO-Stop) Channel axis name (X, Y ....), spindle (S1, ...)
Depending on which movement end criterion is set, parts program blocks and technology cycle blocks with single-axis movements will be ended more or less quickly. The same applies for PLC positioning instructions via FC15/16/18. The set end of movement criterion can be scanned by system variable $AA_MOTEND[axis]. $AA_MOTEND[axis] = 1 $AA_MOTEND[axis] = 2 $AA_MOTEND[axis] = 3 Movement end with Exact stop fine. Movement end with Exact stop coarse. Movement end with IPO stop.
Important Depending on whether $AA_MOTEND is programmed in a parts program or a synchronized action, the MOTEND value is output for the NC axes or the mainrun axes.
After RESET, the last programmed value remains. Example: ... N80 G01 POS[X]=100 FA[X]=1000 ACC[X]=90 IPOENDA[X] ... or via synchronized actions ... N100 EVERY $A_IN[1] DO POS[X]=50 FA[X]=2000 ACC[X]=140 IPOENDA[X]
Note For further information on the block change and endofmotion criteria with FINEA, COARESA and IPOENDA, please refer to: References: /FB/, P2, Positioning Axes, block change
SCPARA[axis] = ... SCPARA[axis]= ... can be used to program the parameter set (consisting of MDs) in the parts program and in synchronized actions (formerly only via PLC).
1/V1/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Channel axis name (X, Y ....), spindle (S1, ...) Desired parameter set (1<= value <=6)
DB3n DBB9 bit3 To prevent conflicts between PLC and NC user requests, a further bit is defined at the PLC>NCK interface: DB3n DBB9 bit3 Parameter set selection by SCPARA disabled. The PLC user is thus able to arrange orderly processing when using both PLC parameter set switching and selections from synchronized actions or parts programs. When Bit 3 is changed (0=>1 or 1=>0) the selection is stored in Bit 02.
Note Up to SW 5.2, the servo parameter set can only be selected through the PLC (DB3n DBB9 bits 02). With G33, G34, G35, G331 or G332, the parameter set for the axes is selected by the control system according to the gear stage of the master spindle.
Important If parameter set selection via SCPARA is disabled, there is no error message if the latter is programmed nevertheless.
The current parameter set can be scanned by system variable $AA_SCPAR[axis]. Example ... N100 SCPARA[X]=3; ...
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/2-47
10.00
Supplementary conditions
S With different movement end criteria parts program blocks will be ended
more or less quickly. This can lead to side effects for technology cycles and PLC user parts.
Movement end criterion for all single-axis interpolations FINEA Servo parameter set from the NC 1
S When the operating mode is changed from AUTO => JOG, the
programmed dynamic response changes remain valid.
S In case of RESET, the last programmed value remains for the parts program
specifications. The presets for the mainrun interpolations are not changed.
S Block search:
The last movement end criterion programmed for an axis is collected and output in an action block. The last block with a programmed movement end criterion processed by the block search serves as a container for all programmed movement end criteria of all axes. Example: N01 G01 POS[X]=20 POS[Y]=30 IPOENDA[X] IPOENDA[Y] N02 POS[Z]=55 FINEA[Z] N03 $A_OUT[1]=1 N04 POS[X]=100 COARSEA[X] N05 ... ... TARGET: ; Block search destination In this example N04 serves as a container for all programmed movement end criteria. Two action blocks are saved. The first action block outputs the digital output (N03) and the second sets COARSEA for the X axis, IPOENDA for the Y axis and FINEA for the Z axis. The same applies for the programmed servo parameter set. The last programmed acceleration override is effective from the first approach block.
1/V1/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
Supplementary Conditions
The function Several feeds in one block is only available in combination with the function Synchronized actions. References: /FB/, S5, /FBSY/, Synchronized Actions
Feed interpolation
This function is also available for SINUMERIK 810DE (CCU1) in SW 3.2 and higher.
This function is also available for SINUMERIK 810DE (CCU1) in SW 3.2 and higher.
4.1
10704 DRYRUN_MASK MD number Activating the dry run feedrate Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/7 Unit: Data type: BYTE Applies from SW 4.2 Significance: If DRYRUN_MASK = 1 is enabled, the dry run feedrate can also be activated during execution of the program (in the parts program block). Related to .... SD 42100: DRY_RUN_FEED
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/4-49
10.00
12000 OVR_AX_IS_GRAY_CODE MD number Path feed override switch Graycoded Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: This machine data is used to adapt the axis feed override switch to the interface coding of the PLC interface. 1: The 5 least significant bits of the feed override interface signal (DB31, ... DBB0) are interpreted as a Gray code. The value which is read corresponds to a switch setting. It is used as a pointer for selection of the correct override factor from the table of MD 12010: OVR_FACTOR_AX_SPEED [n] 0: The feed override byte of the PLC interface is interpreted as a binary 8bit representation of the override value in percent.
Related to ....
IS Feedrate override (DB31, ... DBB0), (axis-specific) MD 12010: OVR_FACTOR_AX_SPEED [n] (evaluation of axis feed override switch)
1/V1/4-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
12010 OVR_FACTOR_AX_SPEED [n] MD number Evaluation of the axis feed override switch Default setting: see table Minimum input limit: 0.00 Maximum input limit: 2.00 Changes effective after POWER ON Protection level: 2 Unit: factor Data type: DOUBLE Applies from SW 1.1 The factors for evaluating the individual settings on the axis feed override switch on a Significance: Gray-coded interface are required to be entered in this machine data. The factors should be entered in the order of the switch settings (1st factor ! 1st keyswitch position, 2nd factor ! 2nd switch setting, etc.). An axis feed override switch with up to 31 switch settings can be used. Any factors can be assigned, however it is recommended to assign zero to the first switch setting. It is recommended to initialize the 1st switch setting with zero.
Switch settings 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Axial feed override factor (standard values) 0.0 0.01 0.02 0.04 0.06 0.08 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 Index[n]
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Index [n] of the machine data is coded as follows: [switch setting]: 030 MD 12000: OVR_AX_IS_GRAY_CODE = 0 IS Feedrate override (DB31, ... DBB0), (axis-specific)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/4-51
10.00
12030 OVR_FACTOR_FEEDRATE[n] MD number Evaluation of the path feed override switch Default setting: see table Minimum input limit: 0.00 Maximum input limit: 2.00 Changes effective after POWER ON Protection level: 2 Unit: factor Data type: DOUBLE Applies from SW 1.1 The factors for evaluating the individual settings on the path feed override switch on a Significance: Gray-coded interface are required to be entered in this machine data. The factors should be entered in the order of the switch settings (1st factor ! 1st keyswitch position, 2nd factor ! 2nd switch setting, etc.). A path feed override switch with up to 31 switch settings can be used. Any factors can be assigned, however it is recommended to assign zero to the first switch setting. It is recommended to initialize the 1st switch setting with zero.
Switch settings 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Feed override factor (standard values) 0.0 0.01 0.02 0.04 0.06 0.08 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 Index[n]
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
The 31st switch setting has a special function for the velocity control: The setting for the 31st override factor defines the dynamic reserve which the velocity control maintains for increasing the path feed. The setting should correspond to the highest override factor actually used. The function of the 31st value is identical to the effect of MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override switch) when a binary-coded interface is used. References: /FB/, B1, Continuous-Path Mode, Exact Stop and Look Ahead Coding of machine data index [n]: [switch setting]: 030 MD 12020: OVR_FEED_IS_GRAY_CODE = 0 IS Feedrate override (DB21, ... DBB4)
1/V1/4-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
12050 OVR_FACTOR_RAPID_TRA[n] MD number Evaluation of the rapid traverse override switch Default setting: see table Minimum input limit: 0.00 Maximum input limit: 1.00 Changes effective after POWER ON Protection level: 2 Unit: factor Data type: DOUBLE Applies from SW 1.1 Significance: The factors for evaluating the individual settings on the rapid traverse override switch on a Gray-coded interface are required to be entered in this machine data.The factors should be entered in the order of the switch settings (1st factor !1st switch setting, 2nd factor ! 2nd switch setting, etc.). A rapid traverse override switch with up to 31 switch settings can be used. Any factors can be assigned, however it is recommended to assign zero to the first switch setting. It is recommended to initialize the 1st zero to the first switch setting.
Switch settings 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Rapid traverse override (standard values) 0.0 0.01 0.02 0.04 0.06 0.08 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 Index[n]
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Coding of machine data index [n]: [switch setting]: 030 MD 12040: OVR_RAPID_IS_GRAY_CODE = 0 IS Rapid traverse override (DB21, ... DBB5)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/4-53
10.00
12070 OVR_FACTOR_SPIND_SPEED[n] MD number Evaluation of the spindle override switch Default setting: see table Minimum input limit: 0.00 Maximum input limit: 2.00 Changes effective after POWER ON Protection level: 2 Unit: factor Data type: DOUBLE Applies from SW 1.1 Significance: The factors for evaluating the individual settings on the spindle override switch on a Gray-coded interface are required to be entered in this machine data. The factors should be entered in the order of the switch settings (1st factor ! 1st Switch position, 2nd factor ! 2nd switch setting, etc.). A spindle override switch with up to 31 switch settings can be used. Any factors can be assigned, however it is recommended to assign zero to the first switch setting.
Switch settings 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Spindle override factor (standard values) 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Index[n]
The 31st switch setting has a special function for the velocity control: The setting for the 31st override factor defines the dynamic reserve which the velocity control maintains for increasing the spindle feed. The setting should correspond to the highest override factor actually used. The function of the 31st value is identical to the effect of the MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binarycoded override switch) when a binarycoded interface is used. References: /FB/, B1, Continuous-Path Mode, Exact Stop and Look Ahead Coding of machine data index [n]: [switch setting]: 030 MD 12060: OVR_SPIND__IS_GRAY_CODE = 0 IS Spindle override (DB31, ... DBB0)
1/V1/4-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
12020 OVR_FEED_IS_GRAY_CODE MD number Path feed override switch Graycoded Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: This machine data is used to adapt the path feed override switch to the interface coding of the PLC interface. 1: The 5 least significant bits of the feed override interface signal are interpreted as a Gray code. The value which is read corresponds to a switch setting. It is used as a pointer for selection of the correct override factor from the table of MD 12030: OVR_FACTOR_FEEDRATE [n]. 0: The feed override byte of the PLC interface is interpreted as a binary 8bit representation of the override value in percent. Related to .... IS feedrate override (DB21, ... DBB4) MD 12030: OVR_FACTOR_FEEDRATE [n] (evaluation of path feed override switch)
12100 OVR_FACTOR_LIMIT_BIN MD number Limit for binary-coded override switch Default setting: 1.2 Minimum input limit: 0.00 Maximum input limit: 2.00 Changes effective after POWER ON Protection level: 2 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: This machine data can be used as an additional limit for the override factor when using the binary-coded interface for path, axis and spindle feed. The maximum values
S S S S
200% for channel-specific feed override 100% for channel-specific rapid traverse override 200% for axis-specific feed override 200% for spindle override
are replaced with the limit value entered in MD: OVR_FACTOR_LIMIT_BIN, if this value is lower. Example: OVR_FACTOR_LIMIT_BIN = 1.20 Maximum override factor for S channel-specific feed override S channel-specific rapid traverse override S axis-specific feed override S spindle override
This value also defines the dynamic reserve maintained by the velocity control for increasing the path and spindle feedrate. References: /FB/, B1, Continuous-Path Mode, Exact Stop and Look Ahead
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/4-55
10.00
12040 OVR_RAPID_IS_GRAY_CODE MD number Rapid traverse override switch Gray-coded Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: This machine data is used to adapt the rapid traverse override switch to the interface coding of the PLC interface. 1: The 5 least significant bits of the Rapid traverse override PLC interface signal are interpreted as a Gray code. The value which is read corresponds to a switch setting It is used as a pointer for selec ting the valid correction factor from the Table of MD 12050: OVR_FACTOR_RAPID_TRA. [n] 0: The rapid traverse override byte of the PLC interface is interpreted as a binary 8bit of the override value in percent. Related to .... IS Rapid traverse override (DB21, ... DBB5) MD 12050: OVR_FACTOR_RAPID_TRA[n] (evaluation of rapid traverse override switch)
12060 OVR_SPIND_IS_GRAY_CODE MD number Spindle override switch Gray-coded Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: This machine data is used to adapt the path feed override switch to the interface coding of the PLC interface. 1: The 5 least significant bits of the Spindle override interface signal are interpreted as a Gray code. The value which is read corresponds to a switch setting. It Itis used as a pointer for the selection of the correct override factor from the table of MD 12070: OVR_FACTOR_SPIND_SPEED [n]. 0: The spindle override byte of the PLC interface is interpreted as a binary 8bit of the override value in percent. Related to .... IS Spindle override (DB31, ... DBB0) MD 12070: OVR_FACTOR_SPIND_SPEED [n] (evaluation of spindle override switch)
12080 OVR_REFERENCE_IS_PROG_FEED MD number Override reference velocity Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2/4 Unit: Data type: BOOLEAN Applies from SW 2.1 Significance: In this MD, it is entered whether the spindle override given by the interface signal refers to the speed limited by MD/SD or to the programmed speed. 1: Spindle override acts with reference to the programmed speed (programmed speed Spindle correction 100%) 0: Spindle override acts on the speed limited by MD or SD (limited speed by MD/SD spindle override 100%) Related to .... A speed limitation is effected by the following MDs or SDs: MD 35100: SPIND_VELO_LIMIT Maximum spindle speed MD 35130: GEAR_STEP_MAX_VELO_LIMIT Maximum speed of gear step MD 35160: SPIND_EXTERN_VELO_LIMIT Spindle speed limitation by PLC SD 43220: SPIND_MAX_VELO_G26 Maximum spindle speed SD 43230: SPIND_MAX_VELO_LIMS Spindle speed limitation with G96
1/V1/4-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
12082 OVR_REFERENCE_IS_MIN_FEED MD number Defining the reference for the path override Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Change effective after POWER ON Protection level: 2 / 7 Unit: Data type: BOOLEAN Applies from SW 4.1 Significance: The reference speed for the path feed override specified via the machine control panel can be set differently from the standard. 0: Default settings: the override is relative to the programmed feed. 1: Special case: The override is relative to the programmed feed or to the path feed limit, depending on which resulting value is lower. In this way, even for a great feed reduction (due to the permissible axis dynamics), the effect of the override value (in the range 0 to 100%) is always visible.
12200 RUN_OVERRIDE_0 MD number Traversing with override 0 Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 7 / 2 Unit: Data type: BOOLEAN Applies from SW 4.1 Significance: =0 Override 0 is active and means brake (conventional mode, safety function) When using handwheels, bit 0 and bit 1 are specified for geometry and contour handwheel via $MA_HANDWH_STOP_COND for machine axis and $MC_HANDW_CHAN_STOP_COND to determine whether the pulses are collected. =1 Override 0 is not active, i.e. traversing with handwheels and, in JOG mode, with fixed feeds is also possible for 0% override. Related to .... $MA_HANDWH_STOP_COND $MC_HANDW_CHAN_STOP_COND
12202 PERMANENT_FEED[n] MD number Fixed feeds for linear axes Default setting: Minimum input limit: Changes effective after RESET Protection level: 7 / 2 Data type: DOUBLE Significance:
Maximum input limit: Unit: mm/min, Inch/min Applies from SW 840D SW4.1 810D SW2.1
In AUTOMATIC mode: When a fixed feed is activated via the interface signal, the fixed feed is used instead of the programmed feedrate. In JOG mode: When a fixed feed is activated via the interface signal and a travel key is used for the linear axis, traversing is performed with the fixed feed in the selected direction. n = 0, 1, 2, 3 means fixed feed 1, 2, 3, 4 The maximum velocity defined by $MA_MAX_AX_VELO is active. The effect of the override depends on $MN_RUN_OVERRIDE_0. $MN_RUN_OVERRIDE_0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/4-57
10.00
12204 PERMANENT_ROT_AX_FEED[n] MD number Fixed feeds for rotary axes Default setting: Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 7/2 Unit: deg/min Data type: DOUBLE Applies from SW 840D SW4.1 810D SW2.1 Significance: In AUTOMATIC mode: When a fixed feed is activated via the interface signal, the fixed feed is used instead of the programmed feedrate. In JOG mode: When a fixed feed is activated via the interface signal and a travel key is used for the linear axis, traversing is performed with the fixed feed in the selected direction. n = 0, 1, 2, 3 means fixed feed 1, 2, 3, 4 Special cases, errors, ... The maximum velocity defined by $MA_MAX_AX_VELO is active. The effect of the override depends on $MN_RUN_OVERRIDE_0. Related to .... $MN_RUN_OVERRIDE_0
1/V1/4-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
4.2
20172 COMPRESS_VELO_TOL MD number Maximum permissible path feed for compression Default setting: 1000 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: 2 / 7 Unit: mm/min Data type: DOUBLE Applies from SW 3.2 Significance: The value indicates the maximum permissible deviation for the compression for the path feed. The larger the value, the more short blocks can be compressed into a long block. The maximum number of compressible blocks is limited by the size of the spline buffer. Related to .... $MA_COMPRESS_POS_TOL[AXn] $MC_COMPRESS_BLOCK_P ATH_LIMIT References Programming Guide
20200 CHFRND_MAXNUM_DUMMY_BLOCKS MD number Dummy blocks for chamfer/rounding Default setting: 3 Minimum input limit: 0 Maximum input limit: 15 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: Specifies the maximum number of blocks without traversing information in the correction plane (dummy blocks) that may be present with active chamfer/rounding between two block with traversing information. Application example(s)
60 N40 N45 X 50
B5
20201 CHFRND_MODE_MASK MD number Properties for chamfer/rounding Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 5.2 Significance: Specifies properties for chamfer/rounding. The MD is coded as follows: Bit 0: = 0: Take feed from following block (default value) = 1: Take feed from preceding block (recommended value) Bits 1 7: Not assigned Application examples see Section 6.1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/4-59
10.00
20750 ALLOW_G0_IN_G96 MD number G0 logic in G96 Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: This machine data is used to define the speed response of the spindle in G0 blocks when a constant cutting speed (G96) is selected. 1: In a G0 block, the spindle speed is kept constant at the last value of the previous block which was not equal to G0. Before a succeeding block which does not contain G0, the spindle speed is accelerated to a value belonging to the facing axis position of the next block. 0: In a G0 block, the spindle speed changes according to the facing axis position. MD irrelevant for ... Feed type G96
21220 MULTFEED_ASSIGN_FASTIN MD number Assignment of the input byte of the NCK I/Os for Multiple feeds in one block Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective after POWER ON Protection level: 2/7 Unit: HEX Data type: DWORD Applies from SW 2.1 Significance: The MD: MULTFEED_ASSIGN_FASTIN (assignment of the input bytes of the NCK I/Os for Multiple feeds in one block), at most two digital input bytes or comparator input byte of the NCK I/Os can be assigned to the input byte for the Multiple feeds in one block function. The assigned input signals can still be inverted with the machine data. The MD is coded as follows: Bit 0 7: No. of 1st digital input byte used or comparator input byte Bit 8 15: No. of 2nd digital input byte used or comparator input byte Bit 16 23: Inversion screenform for describing the 1st byte Bit 24 31: Inversion screenform for describing the 2nd byte Bit=0: do not invert Bit=1: invert If a 2nd byte is entered, the contents of the 1st and 2 bytes are ORed before being used. The number for the digital inputs should be specified as follows: 1: For the onboard byte 2 5: For external bytes The number for a comparator input byte should be specified as follows: 128: For comparator 1 (corresponds to 80Hex) 129: For comparator 2 (corresponds to 81Hex) For the function Multiple feeds in one block, the external digital input byte 3 is to be used as the first byte and the input byte of comparator 2 as the second byte. Inversion is also to be carried out: Bit 0, 2, 3 of the digital input byte Bit 0, 1, 5, 7 of the comparator input byte MD: MULTFEED_ASSIGN_FASTIN=A30D8103 (in hexadecimal format)
Application example(s)
1/V1/4-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
21230 MULTFEED_STORE_MASK MD number Storing input signals for the function Multiple feeds in one block Default setting: 0 Minimum input limit: *** Maximum input limit: *** Changes effective after POWER ON Protection level: 2/7 Unit: HEX Data type: BYTE Applies from SW 2.1 Significance: The priority of the signals for feeds F2 F7 of the function Multiple feeds in one block decreases as the bit number increases in the input byte. The highest priority signal determines the current feed. The MD: MULTFEED_STORE_MASK (store input signals of the function Multiple feeds in one block) can be used to specify the response when the highest priority input drops out: set bit 2 7 has the effect that the associated feed (F2 to F7) that has been selected by the highest priority input signal in each case is retained, even if the input signal drops out and a lower priority is present. The MD is coded as follows: Bit 0 1: No significance Bit 2 7: Storage response of the feed signals Bit 8 31: Reserved
22410 F_VALUES_ACTIVE_AFTER_RESET MD number F function active after reset Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 1.1 Significance: 1: The last programmed F, FA, OVR and OVRA values are also active after RESET. 0: The various values are set to the default values after reset. Related to .... MD 22240: AUXFU_F_SYNC_TYPE Output time of the F functions
4.3
34990 ENC_ACTVAL_SMOOTH_TIME MD number Smoothing time constant for actual values Default setting: 0 Minimum input limit: 0 Maximum input limit: 0.5 Changes effective after RESET Protection level: 2 / 7 Unit: s Data type: DOUBLE Applies from SW 6.3 Significance: If low-resolution encoders are being used, smoothed actual values can be applied for constant coupled path and axis motions. The larger the time constant, the better the smoothing of the actual values and the longer the overtravel. Smoothed actual values are used for: S Thread cutting with feed on G33, G34, G35 S Revolutional feedrate on G95, G96, G97, FRAPON S Display of actual position and actual speed/velocity
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/4-61
4.4
42010 THREAD_RAMP_DISP[0,1] SD number Acceleration behavior of the feed axis when thread cutting Default setting: 1 Minimum input limit: 1 Maximum input limit: 999999 Changes effective immediately Protection level: 7 / 7 Unit: mm/inch Data type: DOUBLE Applies from SW 5.1 Significance: The SD is effective for thread cutting with G33 (G34, G35). It has two elements, defining the behavior during acceleration of the thread axis (1st element) and overshoot during deceleration (2nd element). The values have the same attributes for thread runin and runout: 1: Starting/deceleration of the thread axis is performed with configured acceleration. Jerk according to current BRISK/SOFT programming. The behavior is compatible with the previous machine data MD 20650: THRED_START_IS_HARD = FALSE. 0: Abrupt starting/deceleration of feed axis in thread cutting. The behavior is compatible with the previous machine data MD 20650: THRED_START_IS_HARD = TRUE. >0: The maximum thread starting/deceleration distance is defined. The defined distance can cause an acceleration overload on the axis. The SD is written from the block when DITR (Displacement Thread Ramp) is programmed. The default values (1) are enabled for both elements of the SD on NC Reset and end of parts program. Example: $SC_THREAD_RAMP_DISP[0]=2
Runin path 2 mm
Note: The MD 10710: PROG_SD_RESET_SAVE_TAB can be set so that the value written by the parts program is retained after the reset. The SD is described when programming DITS (index 0) and DITE (index 1) from the block. MD 20650: THREAD_START_IS_HARD is omitted and replaced by SD 42010: MD 10710: PROG_SD_RESET_SAVE_TAB With the DITS and DITE (Displacement Threat Start/End) parts program instructions.
42100 DRY_RUN_FEED SD number Dry run feed Default setting: 5000 Minimum input limit: 0 Maximum input limit: plus Changes effective immediately Protection level: MMCMD 9220 Unit: mm/min Data type: DOUBLE Applies from SW 1.1 Significance: The feedrate for the active dry run is required to be entered in this setting data. The setting data can be changed via the operator panel in the operating area Parameters. The entered dry run feed is always interpreted as a linear feed (G94). If the dry run feed is activated via the PLC interface, the dry run feed is used as the path feed instead of the programmed feed following a reset. If the programmed speed is larger than the speed stored here, the programmed speed is used for traversing. SW 5 and lower. In SW 6 and higher, the dry run feedrate corresponds to the setting in SD 42101. Application example(s) Program testing Related to .... IS Activate dry run feedrate, (DB21, ... DBX0.6) IS Dry run feedrate selected (DB21, ... DBX24.6) MD 10710 $MN_PROG_SD_RESET_SAVE_TAB SD 42101: DRY_RUN_FEED_MODE (SW 6 and higher)
1/V1/4-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
42101 DRY_RUN_FEED_MODE MD number Mode for test run velocity Default setting: 0 Minimum input limit: 0 Maximum input limit: 12 Changes effective IMMEDIATELY Protection level: 7 / 7 Unit: Data type: BYTE Applies from SW 6 Significance: This data can be parameterized to select the mode of functioning of the test run velocity specified in setting data SD 42100: DRY_RUN_FEED. The following values can be selected: 0: The maximum value from setting data SD 42100: DRY_RUN_FEED and the programmed velocity is operative. This is the default setting and matches the system response in SW 5 and lower. 1: The minimum value from setting data SD 42100: DRY_RUN_FEED and the programmed velocity is operative. 2: Setting data SD 42100: DRY_RUN_FEED is directly operative irrespective of the programmed velocity. 3 9: reserved 10: As for configured value 0 except for thread cutting (G33, G34, G35) and tapping (G331, G332, G63). These functions are executed as programmed. 11: As for configured value 1 except for thread cutting (G33, G34, G35) and tapping (G331, G332, G63). These functions are executed as programmed. 12: As for configured value 1 except for thread cutting (G33, G34, G35) and tapping (G331, G332, G63). These functions are executed as programmed. Deselected dry run feedrate SD 42100: DRY_RUN_FEED
42110 DEFAULT_FEED SD number Default value for path feed Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective after POWER ON Protection level: / Unit: mm/min Data type: DOUBLE Applies from SW 5.2 Significance: Default value for path feed rate. The evaluation of the setting data for start of a parts program considers the feedrate type active at this time, see MD 20150 GCODE_RESET_VALUE or MD 20154 EXTERN_GCODE_RESET_VALUE Application example(s) Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/4-63
10.00
42600 MD number
JOG_FEED_PER_REV_SOURCE In the JOG mode, revolutional feedrate for geometry axes on which a frame with rotation acts Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 7 Unit: Data type: DWORD Applies from SW 3 Significance: 0= No revolutional feedrate active >0= Machine axis index of rotary axis/spindle, from which the revolutional feedrate is derived 1= Revolutional feedrate derived from the master spindle of the channel in which the axis/spindle is active Related to .... SD 53000: ASSIGN_FEED_PER_REV_SOURCE (revolutional feedrate for position axes/spindles)
43300 ASSIGN_FEED_PER_REV_SOURCE MD number Revolutional feedrate for positioning axes/spindles Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective after POWER ON Protection level: 7 Unit: Data type: DWORD Applies from SW 3 Significance: In SW 5 and higher, the MD no longer refers directly to a machine axis, but to the logical machine axis image. 0= No revolutional feedrate active >0= Logical machine axis index (see $MN_AXCONF_LOGIC_MACHAX_TAB) of the rotary axis/spindle from which the revolutional feedrate is derived. Up to and including SW 4: machine axis index. 1= Revolutional feedrate derived from the master spindle of the channel in which the axis/spindle is active Related to .... SD 52011: JOG_FEED_PER_REV_SOURCE (in JOG mode revolutional feedrate for geometry axes on which a frame with rotation acts) MD 10710 $MN_PROG_SD_RESET_SAVE_TAB
1/V1/4-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Signal Descriptions
Signals to NCK channel, DB21, ... Activate dry run feed, DBX0.6 Feed override, DBB4 Rapid traverse override, DBB5 Feed disable, DBX6.0 Rapid trav. override active, DBX6.6 Feed override active, DBX6.7 Feed stop Geometry axis 1, DBX12.3 Geometry axis 2, DBX16.3 Geometry axis 3, DBX20.3
Dry run feedrate selected (MMC PLC) Feed override for rapid traverse selected (MMC PLC)
Feed/spindle override, DBB0 Override activate, DBX1.7 Feed hold/spindle stop, DBX4.3 F function for positioning axis DBB78 to DBB81
Fig. 5-1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/5-65
10.00
5.1
5.1.1
Channel-specific signals
Signals to channel
DB21, ... DBX0.6 Data block Edge evaluation: yes Signal state 1 or signal transition 0 > 1
Signal state 0 or signal transition 1 > 0 Application example(s) Special cases, errors, ... Related to ....
Activate dry run feed Signal(s) to channel (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The dry run feed defined in SD 42100: DRY_RUN_FEED is used for traversing instead of the programmed feed (with G01, G02, G03) if the dry run feed is larger than the programmed feed. The dry run feed is active after a reset. This interface signal is evaluated on an NC start when the channel is in the Reset state. The dry run feed can be activated from the PLC or operator panel. When activated from the operator panel, the Dry run feed selected PLC interface signal is enabled and transmitted by the PLC basic program to the Activate dry run feed interface signal. When selected on the PLC, the Activate dry run feed interface signal is required to be set by the PLC user program. The programmed feed is used for traversing. Active after reset. Testing a workpiece program with an increased feedrate. If the signal changes to 0 within a G33 block, the programmed feed is not activated until the end of the block, since an NC stop was not triggered. IS Dry run feedrate selected (DB21, ... DBX24.6) SD 42100: DRY_RUN_FEED (dry run feed)
DB21, ... DBB4 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
The feed override can be defined via the PLC in binary or Gray coding. With binary coding, the feed value is interpreted in %. 0% to 200% feed changes are possible, in accordance with the binary value in the byte. The permanent assignment is as follows: Codes Feed override factor 00000000 0.00 0% 00000001 0.01 1% 00000010 0.02 2% 00000011 0.03 3% . . 11001000 2.00 200% Binary values u 200 are limited to 200%. The MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded correction switch) can be used to further limit the maximum feed correction. The table continues on the next page.
1/V1/5-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
DB21, ... DBB4 Data block Signal state 1 or signal transition 0 > 1
Feed override Signal(s) to channel (PLC ! NCK) With Gray coding, the individual switch settings are assigned to the following codes:
Switch settings 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Generate Feed override factor (standard values) 00001 00011 00010 00110 00111 00101 00100 01100 01101 01111 01110 01010 01011 01001 01000 11000 11001 11011 11010 11110 11111 11101 11100 10100 10101 10111 10110 10010 10011 10001 10000 0.0 0.01 0.02 0.04 0.06 0.08 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20
Table 5-1
The feed override factors specified in the table are stored in the NC machine data 12030: OVR_FACTOR_FEEDRATE [n]. The table contains the default settings. The number of possible switch settings on standard machine control panels are described in the configuring guides for the 840D/810D and FMNC. Related to .... IS Feed override active (DB21, ... DBX6.7) MD 12030: OVR_FACTOR_FEEDRATE [n] (evaluation of path feed override switch) MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override switch)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/5-67
10.00
DB21, ... DBB5 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Rapid traverse override Signal(s) to channel (PLC ! NCK) Signal(s) updated: cyclically
The rapid traverse override can be defined via the PLC in binary or Gray coding. With binary coding, the rapid traverse override is interpreted in %. 0% to 100% feed changes are possible, in accordance with the binary value in the byte. The permanent assignment is as follows: Codes Rapid traverse override factor 00000000 0.00 0% 00000001 0.01 1% 00000010 0.02 2% 00000011 0.03 3%. . . 01100100 1.00 100% Binary values u 100 are limited to 100%. The MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override switch) can be used as an additional limit for the maximum rapid traverse override. The table continues on the next page.
1/V1/5-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
Rapid traverse override Signal(s) to channel (PLC ! NCK) With Gray coding, the individual switch settings are assigned to the following codes:
Switch settings 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Generate 00001 00011 00010 00110 00111 00101 00100 01100 01101 01111 01110 01010 01011 01001 01000 11000 11001 11011 11010 11110 11111 11101 11100 10100 10101 10111 10110 10010 10011 10001 10000 Rapid traverse override factor (standard values) 0.0 0.01 0.02 0.04 0.06 0.08 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00
Table 5-2
Related to ....
The rapid traverse override factors specified in the table are stored in MD 12050: OVR_FACTOR_RAPID_TRA[n]. The table contains the default settings. The number of possible switch settings on standard machine control panels are described in the configuring guides for the 840D/810D and FMNC. IS Rapid traverse override active (DB21, ... DBX6.6) MD 12050: OVR_FACTOR_RAPID_TRA[n] (evaluation of rapid traverse override switch) MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override switch)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/5-69
10.00
DB21, ... DBX6.0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Signal state 0 or signal transition 1 > 0 Application example(s) Special cases, errors, ...
Feed disable Signal(s) to channel (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The signal is active on a channel in all operating modes. S The signal disables all axes (geometry and synchronized) interpolating relative to each other, as long as G33 (thread) is not active. All axes are brought to a standstill with adherence to the path contour. When the feed disable is canceled (0 signal), the interrupted parts program is continued. S The signal triggers a feed disable for all positioning axes. Traversing axes are brought to a standstill under controlled braking (ramp stop). No alarm is output. S The position control is retained, i.e. the following error is eliminated. S If a travel request is issued for an axis with an active Feed disable, the request is retained and executed immediately the Feed disable is canceled. If the axis is interpolating in relation to others, this also applies to these axes. S The feed is enabled for all axes on the channel. S If a travel request (Travel command) exists for an axis or group of axes when the Feed disable is canceled, this is executed immediately. Stop machining by selecting FEED OFF on the machine control panel. The feed disable is inactive when G33 is active.
DB21, ... DBX6.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Application example(s)
Rapid traverse override active Signal(s) to channel (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The rapid traverse override between 0 and a maximum of 100% entered in the PLC is channel-specific. The rapid traverse override is specified in MD 12040: OVR_RAPID_IS_GRAY_CODE (rapid traverse override switch Gray-coded), MD 12050: OVR_FACTOR_RAPID_TRA[n] (evaluation of rapid traverse override switch) The rapid traverse override entered in the PLC interface is ignored. When the rapid traverse override is inactive, the NC always uses 100% as the internal override factor. Exceptions are the zero setting for a binary interface and the 1st switch setting for a Graycoded interface. In these cases, the override factors entered in the PLC interface are used. With a binary interface, the override factor is 0. With a Gray-coded interface, the value entered in the machine data for the 1st switch setting is output as the override value. The override value is generally selected using the rapid traverse override switch on the machine control panel. The Rapid traverse override active interface signal can be used to enable the rapid traverse override switch from the PLC user program, e.g. with the keyswitch, during start-up of a new NC program. The rapid traverse override is inactive when G33, G63, G331 or G332 are active. IS Rapid traverse override (DB21, ... DBB5)
1/V1/5-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.1
DB21, ... DBX6.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Application example(s)
Feed override active Signal(s) to channel (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The feed override between 0 and a maximum of 200% entered in the PLC interface is active for the path feed and therefore automatically for the related axes. In JOG mode, the feed override acts directly on the axes. The override factor is specified in the MD 12020: OVR_FEED_IS_GRAY_CODE (path feed override switch Gray-coded), MD 12030: OVR_FACTOR_FEEDRATE [n] (path feed override switch Gray-coded) The feed override entered in the PLC interface is ignored. When the feed override is inactive, the NC always uses 100% as the internal override factor. Exceptions are the zero setting for a binary interface and the 1st switch setting for a Gray-coded interface. In these cases, the override factors entered in the PLC interface are used. With a binary interface, the override factor = 0. With a Gray-coded interface, the value entered in the machine data for the 1st switch setting is output as the override value. The override value is generally selected using the feed override switch on the machine control panel. The Feed override active interface signal can be used to enable the feed override switch from the PLC user program, e.g. with the keyswitch, during start-up of a new NC program. The feed override is inactive when G33, G63, G331 or G332 are active. IS feedrate override (DB21, ... DBB4)
DB21, ... DBX12.3 16.3 20.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Feed hold (Geometry axis 1 to 3) Signal(s) to channel (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The signal is only active in JOG mode. S The signal stops the geometry axis. Traversing axes are brought to a standstill under controlled braking (ramp stop). No alarm is output. S The position control is retained, i.e. the following error is eliminated. S If a travel request is issued for an axis with an active Feed hold, the request is retained and executed immediately the Feed hold is canceled. S The feed is enabled for the geometry axis. S If a travel request (travel command) exists for a geometry axis when the Feed hold is canceled, this is executed immediately.
DB21, ... DBX24.6 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Dry run feedrate selected Signal(s) to channel MMC ! PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Dry run feed is selected. Instead of the programmed feed, the dry run feed entered in SD 42100: DRY_RUN_FEED is used. When activated from the operator panel, the dry run feed signal is automatically entered in the PLC interface and transmitted by the PLC basic program to the Activate dry run feed PLC interface signal. Dry run feed is not selected. The programmed feed is active. IS Activate dry run feedrate (DB21, ... DBX0.6) SD: DRY_RUN_FEED (dry run feed)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/5-71
10.00
DB21, ... DBX25.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Feed override for rapid traverse selected Signal(s) to channel MMC ! PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The feed override switch is also to be active as rapid traverse override switch. Override values above 100% are limited to the maximum value for 100% rapid traverse override. The Feed override for rapid traverse selected interface signal is automatically entered in the PLC interface from the operator panel and transferred to the Rapid traverse override active PLC interface signal by the PLC basic program. IS Feedrate override (DB21, ... DBB4) IS Rapid traverse override (DB21, ... DBB5). The feed override switch is not to be activated as rapid traverse override switch. The signal is used when no separate rapid traverse override switch is available.
DB 21, 22, ... DBX29.0 DBX29.1 DBX29.2 DBX29.3 Data block Edge evaluation: no Description
Activate fixed feed 1 for path/geometry axes Activate fixed feed 2 for path/geometry axes Activate fixed feed 3 for path/geometry axes Activate fixed feed 4 for path/geometry axes Signal(s) to channel (PLC > NCK) Signal(s) updated: cyclically
Related to ....
Signal(s) valid from SW: 840D SW4.1, 810D SW2.1 These signals select/deselect the fixed feed function and specify which fixed feed is to be active for path/geometry axes. Bit 3 Bit 2 Bit 1 Bit 0 Significance 0 0 0 0 Fixed feed is deselected 0 0 0 1 Fixed feed 1 is selected 0 0 1 0 Fixed feed 2 is selected 0 1 0 0 Fixed feed 3 is selected 1 0 0 0 Fixed feed 4 is selected $MN_PERMANENT_FEED[n] $MN_RUN_OVERRIDE_0
DB 31, 32, ... DBX3.2 DBX3.3 DBX3.4 DBX3.5 Data block Edge evaluation: no Description
Activate fixed feed 1 for machine axes Activate fixed feed 2 for machine axes Activate fixed feed 3 for machine axes Activate fixed feed 4 for machine axes Signal(s) to axis (PLC > NCK) Signal(s) updated: cyclically
Related to ....
Signal(s) valid from SW: 840D SW4.1, 810D SW2.1 These signals select/deselect the fixed feed function and specify which fixed feed is to be active for machine axes. Bit 5 Bit 4 Bit 3 Bit 2 Significance 0 0 0 0 Fixed feed is deselected 0 0 0 1 Fixed feed 1 is selected 0 0 1 0 Fixed feed 2 is selected 0 1 0 0 Fixed feed 3 is selected 1 0 0 0 Fixed feed 4 is selected $MN_PERMANENT_FEED[n] $MN_RUN_OVERRIDE_0
1/V1/5-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.2
5.2
5.2.1
Axis/spindle-specific signals
Signals to axis/spindle
DB 31, ... DBB0 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Feed override (axis-specific) Signal(s) to axis (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The axis-specific feed override can be defined via the PLC in binary or Gray coding. With binary coding, the feed value is interpreted in %. 0% to 200% feed changes are possible, in accordance with the binary value in the byte. The permanent assignment is as follows: Codes Axis-specific feed override factor 00000000 0.00 0% 00000001 0.01 1% 00000010 0.02 2% 00000011 0.03 3% S S S S S S 01100100 1.00 100% S S S S S S 11001000 2.00 200% Binary values u 200 are limited to 200%. The MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override switch) can be used as an additional limit for the maximum axis-specific feed override. The table continues on the next page.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/5-73
10.00
DB 31, ... DBB0 Data block Signal state 1 or signal transition 0 > 1
Feed override (axis-specific) Signal(s) to axis (PLC ! NCK) With Gray coding, the individual switch settings are assigned to the following codes:
Switch settings 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Generate Axial feed override factor (standard values) 0.0 0.01 0.02 0.04 0.06 0.08 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20
00001 00011 00010 00110 00111 00101 00100 01100 01101 01111 01110 01010 01011 01001 01000 11000 11001 11011 11010 11110 11111 11101 11100 10100 10101 10111 10110 10010 10011 10001 10000
Table 5-3
Related to ....
The factors specified in the table for the axial feed override are stored in the NCMD 12010: OVR_FACTOR_AX_SPEED [n]. The table contains the default settings. The number of possible switch settings on standard machine control panels are described in the configuring guides for the 840D/810D and FMNC. IS Override active (DB31, ... DBX1.7) MD 12010: OVR_FACTOR_AX_SPEED [n] (evaluation of axis feed override switch) MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override switch)
1/V1/5-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.2
DB 31, ... DBB19 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Spindle override Signal(s) to spindle (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The spindle override can be defined via the PLC in binary or Gray coding. The override value determines the percentage of the programmed speed setpoint output to the spindle. With binary coding, the override is interpreted in %. 0% to 200% speed changes are possible, in accordance with the binary value in the byte. The permanent assignment is as follows: Spindle override factor Codes 00000000 0.00 0% 00000001 0.01 1% 00000010 0.02 2% 00000011 0.03 3% S S S S S S 01100100 1.00 100% S S S S S S 11001000 2.00 200% Binary values u 200 are limited to 200%. The MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override switch) can be used as an additional limit for the maximum spindle override. The table continues on the next page.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/5-75
10.00
DB 31, ... DBB19 Data block Signal state 1 or signal transition 0 > 1
Spindle override Signal(s) to spindle (PLC ! NCK) With Gray coding, the individual switch settings are assigned to the following codes:
Switch settings 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Generate 00001 00011 00010 00110 00111 00101 00100 01100 01101 01111 01110 01010 01011 01001 01000 11000 11001 11011 11010 11110 11111 11101 11100 10100 10101 10111 10110 10010 10011 10001 10000
Spindle override factor (standard values) 0.5 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20 1.20
Table 5-4
Related to ....
The factors for the spindle specified in the table are stored in the MD 12070: OVR_FACTOR_SPIND_SPEED [n]. The table contains the default settings. The number of possible switch settings on standard machine control panels are described in the configuring guides for the 840D/810D and FMNC. IS Override active (DB31, ... DBX1.7) MD 12070: OVR_FACTOR_SPIND_SPEED [n] (evaluation of spindle override switch) MD 12100: OVR_FACTOR_LIMIT_BIN (limit for binary-coded override switch)
1/V1/5-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.2
DB 31, ... DBX1.7 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Application example(s)
Related to ....
Override active Signal(s) to axis/spindle (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 Feed override active: S The axis-specific feed override between 0 and a maximum of 200% entered in the PLC interface is used. The rapid traverse override is specified in MD 12000: OVR_AX_IS_GRAY_CODE (feed rate override switch Gray-coded), (spindle override switch Gray-coded), MD 12010: OVR_FACTOR_AX_SPEED [n] (evaluation of axis feed override switch). Spindle override active: S The spindle override of 0 to a maximum of 200% is used. The override factor is specified in the MD 12060: OVR_SPIND_IS_GRAY_CODE (spindle override switch Gray-coded), MD 12070: OVR_FACTOR_SPIND_SPEED [n] (evaluation of spindle override switch). The existing axis-specific feed override or spindle override is not active. If the feed override is inactive, 100% is used as the internal override factor. Exceptions are the zero setting for a binary interface and the 1st switch setting for a Gray-coded interface. In these cases, the override factors entered in the PLC interface are used. With a binary interface, the override factor = 0. With a Gray-coded interface, the value entered in the machine data for the 1st switch setting is output as the override value. The override value is generally specified using the axis-specific feed override switch or the spindle override switch on the machine control panel. The Feed override active signal can be used to enable the feed override switch from the PLC user program, e.g. with the key switch, during start-up of a new NC program. S The spindle override is always accepted with 100% in the spindle oscillation mode. S The spindle override acts on the programmed values before the limits intervene (e.g. G26, LIMS ...). S When the following functions are active, the feed override is inactive with G33 inactive with G63 (the override is set to 100% on the NC) inactive with G331, G332 (the override is set to 100% on the NC) S The spindle override is active when inactive with G63 (the override is set to 100% on the NC) Feed/spindle override interface signal (DB31, ... DBB0)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/5-77
10.00
DB 31, ... DBX4.3 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
Application example(s)
Feedrate hold/spindle stop (axis-specific) Signal(s) to axis/spindle (PLC ! NCK) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The signal is active in all modes. Feed hold: S The signal triggers a feed hold for the axis. Traversing axes are brought to a standstill under controlled braking (ramp stop). No alarm is output. S The signal triggers a feed hold for all path axes interpolating relative to each other when the Feed hold is activated for any one of these axes. In this case, all the axes are brought to a stop with adherence to the path contour. When the feed hold signal is canceled, execution of the interrupted parts program is resumed. S The position control is retained, i.e. the following error is eliminated. S If a travel request is issued for an axis with an active Feed hold, the request is retained and executed immediately the Feed hold is canceled. If the axis is interpolating in relation to others, this also applies to these axes. If the axis is interpolating in relation to others, this also applies to these axes. Spindle stop: S The spindle is brought to a standstill along the acceleration characteristic. S In positioning mode, activation of the Spindle stop signal interrupts the positioning process. The above response applies with respect to individual axes. Feed hold: S The feed is enabled for the axis. S If a travel request (travel command) is active when the Feed hold is canceled, this is executed immediately. Spindle stop: S The speed is enabled for the spindle. S The spindle is accelerated to the previous speed setpoint with the acceleration characteristic or, in positioning mode, positioning is resumed. Feed hold: S The traversing motion in the machine axes is not started when Feed hold is active, if, for example, certain operating states that do not permit axis motion (e.g. door not closed) prevail. Spindle stop: S Change a tool S Enter auxiliary functions (M, S, H, T, D and F functions) during setup. Spindle stop is inactive when G331 or G332 are active.
1/V1/5-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 5.2
5.2.2
DB 31, ... DBX62.2 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1 Application example(s) Related to ....
Revolutional feedrate active Signal(s) from axis (NCK ! PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 For programming of G95 (revolutional feedrate) in JOG mode or AUTOMATIC mode.
SD 41100: JOG_REV_IS_ACTIVE (revolutional feedrate for JOG active) SD 42600: JOG_FEED_PER_REV_SOURCE (in JOG mode revolutional feed for geometry axes on which a frame with rotation is active) SD 43300: ASSIGN_FEED_PER_REV_SOURCE (revolutional feedrate for positional axes/spindles) MD 32040: JOG_REV_VELO_RAPID (revolutional feedrate for JOG mode with rapid traverse overlay) MD 32050: JOG_REV_VELO (revolutional feedrate for JOG mode)
DB 31, ... DBB7881 Data block Edge evaluation: no Signal state 1 or signal transition 0 > 1
F function for positioning axis Signal(s) from axis (NCK ! PLC) Signal(s) updated: cyclically Signal(s) valid from SW: 1.1 The F value of a positioning axis programmed in the current block is entered in the axis-specific PLC interface signal. The assignment between the DB number and machine axis number is performed using the axis name. The value is retained until it is overwritten by another. Format: binary number in real format. Modification of the programmed F value by the PLC, e.g. by overwriting the defined axisspecific feed override. MD 22240: AUXFU_F_SYNC_TYPE Output time of the F functions
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/5-79
10.00
Notes
1/V1/5-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 6.1
Example
6.1 Feedrate programming for chamfer/rounding FRC, FRCM
6
MD 20201: CHFRND_MODE_MASK Bit0 = 0: Take feed from following block (default setting) N10 N20 N30 N40 N50 N60 N70 N80 N90 G0 X0 Y0 G17 F100 G94 G1 X10 CHF=2 Y10 CHF=4 X20 CHF=3 FRC=200 RNDM=2 FRCM=50 Y20 X30 Y30 CHF=3 FRC=100 X40 ; Chamfer N20N30 at F=100 mm/min ; Chamfer N30N40 at FRC=200 mm/min ; Chamfer N40N60 at FRCM=50 mm/min ; Modal rounding N60N70 at ; FRCM=50 mm/min ; Modal rounding N70N80 at ; FRC=100 mm/min ; Chamfer N80N90 at FRCM=50 mm/min ; (modal) ; Modal rounding N90N100 at ; F=100 mm/min (deselection of FRCM) ; Modal rounding N100N120 with G95 ; FRC=1 mm/rev
N100 Y40 FRCM=0 N110 S1000 M3 N120 X50 G95 F3 FRC=1 ... M02
MD 20201: CHFRND_MODE_MASK Bit0 = 1: Take feed from preceding block (recommended setting) N10 N20 N30 N40 N50 N60 N70 N80 N90 G0 X0 Y0 G17 F100 G94 G1 X10 CHF=2 Y10 CHF=4 FRC=120 X20 CHF=3 FRC=200 RNDM=2 FRCM=50 Y20 X30 Y30 CHF=3 FRC=100 X40 ; Chamfer N20N30 at F=100 mm/min ; Chamfer N30N40 at FRC=120 mm/min ; Chamfer N40N60 at FRC=200 mm/min ; Modal rounding N60N70 at ; FRCM=50 mm/min ; Modal rounding N70N80 at ; FRCM=50 mm/min ; Chamfer N80N90 at FRC=100 mm/min ; Modal rounding N90N100 at ; FRCM=50 mm/min ; Modal rounding N100N120 ; at F=100 mm/min
N110 S1000 M3 N120 X50 CHF=4 G95 F3 FRC=1 ; Chamfer N120N130 with G95 ; FRC=1 mm/rev N130 Y50 ; Mod. rounding N130N140 at F=3 mm/rev N140 X60 ... M02
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/6-81
10.00
Notes
1/V1/6-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 7.1
7
Name Reference
7.1
Interface signals
Bit, byte
DB number Channel-specific 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ...
0.6 4 5 6.0 6.6 6.7 12.3 16.3 20.3 24.6 25.3 29.0 29.1 29.2 29.3
Activate dry run feed Feed override Rapid traverse override Feed disable Rapid traverse override active Feed override active Feed hold, geometry axis 1 Feed hold, geometry axis 2 Feed hold, geometry axis 3 Dry run feedrate selected Feed override for rapid traverse selected Activate fixed feed 1 for path/geometry axes Activate fixed feed 2 for path/geometry axes Activate fixed feed 3 for path/geometry axes Activate fixed feed 4 for path/geometry axes
Axis/spindle-specific 31, ... 31, ... 31, ... 0 1.7 3.2 3.3 3.4 3.5 4.3 62.2 7881 83.1 Feed/spindle override Override active Activate fixed feed 1 for machine axis Activate fixed feed 2 for machine axis Activate fixed feed 3 for machine axis Activate fixed feed 4 for machine axis Feed hold/spindle stop Revolutional feedrate active F function for positioning axis Programmed speed too high S1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/7-83
10.00
7.2
Number
Machine data
Identifier Name Reference
General ($MN_ ... ) 10704 10710 11410 12000 12010 12020 12030 12040 12050 12060 12070 12080 12082 12100 12200 12202 12204 12240 DRYRUN_MASK PROG_SD_RESET_SAVE_TAB[n] SUPPRESS_ALARM_MASK OVR_AX_IS_GRAY_CODE OVR_FACTOR_AX_SPEED[n] OVR_FEED_IS_GRAY_CODE OVR_FACTOR_FEEDRATE[n] OVR_RAPID_IS_GRAY_CODE OVR_FACTOR_RAPID_TRA[n] OVR_SPIND_IS_GRAY_CODE OVR_FACTOR_SPIND_SPEED[n] OVR_REFERENCE_IS_PROG_FEED OVR_REFERENCE_IS_MIN_FEED OVR_FACTOR_LIMIT_BIN RUN_OVERRIDE_0 PERMANENT_FEED[n] PERMANENT_ROT_AX_FEED[n] SCALING_SYSTEM_IS_METRIC Activating the dry run feedrate Setting data to be updated Mask for suppressing special alarms Path feed override switch Gray-coded Evaluation of the axis feed override switch Path feed override switch Gray-coded Evaluation of the path feed override switch Rapid traverse override switch Gray-coded Evaluation of the rapid traverse override switch Spindle override switch Gray-coded Evaluation of the spindle override switch Override reference velocity (SW 2 and higher) Defining the reference for the path override Limit for binary-coded override switch Traversing with override 0 Fixed feeds for linear axes Fixed feeds for rotary axes Basic system metric FBMA FBMA FBMA G2 K1 D1
Axis-specific ($MA_ ... ) 30300 32000 32060 32300 35100 35130 35140 35160 IS_ROT_AX MAX_AX_VELO POS_AX_VELO MAX_AX_ACCEL SPIND_VELO_LIMIT GEAR_STEP_MAX_VELO_LIMIT GEAR_STEP_MIN_VELO_LIMIT SPIND_EXTERN_VELO_LIMIT Rotary axis Maximum axis velocity Initial setting for positioning axis velocity Axis acceleration Maximum spindle speed Maximum speed of gear step Minimum speed of gear step Spindle speed limitation via PLC R2 G2 P2 B2 S1 S1 S1 S1
Channel-specific ($MC_ ... ) 20100 20172 20150 20200 20201 20660 20750 21200 21220 DIAMETER_AX_DEF COMPRESS_VELO_TOL GCODE_RESET_VALUES CHFRND_MAXNUM_DUMMY_BLOCKS CHFRND_MODE_MASK THREAD_AUTO_LIFTFASTANGLE ALLOW_GO_IN_G96 LIFTFAST_DIST MULTFEED_ASSIGN_FASTIN Geometry axes with facing axis functions Maximum permissible deviation from path feed for compression Reset G groups Maximal number of dummy blocks for chamfer/radii Feed for chamfer/rounding Determining the retraction angle (thread cutting); not included in SW 4.3 and higher G0 logic in G96 Traversing path for fast retraction from the contour Assignment of the input bytes of the NCK I/Os for Multiple feeds in one block (SW 2 and higher) K1 K1 V1 V1 K1 P1
1/V1/7-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Name Store input signals for the function Multiple feeds in one block (SW 2 and higher) Output timing of F functions F function active after reset
Reference
H2
Axis/channel-specific ($MA_ ... ) 34990 ENC_ACTIVAL_SMOOTH_TIME Smoothing time constant for actual values (SW 6.3 and higher)
7.3
Number
Setting data
Identifier Name Reference
Channel-specific ($SC_ ... ) 42000 42010 42100 42101 42110 42600 43300 THREAD_START_ANGLE THREAD_RAMP_DISP DRY_RUN_FEED DRY_RUN_FEED_MODE DEFAULT_FEED JOG_FEED_PER_REV_SOURCE ASSIGN_FEED_PER_RES_SOURCE Start angle for thread Run-in and run-out path of feed axis in thread cutting Dry run feed Dry run feedrate mode Default value for path feed In the JOG mode, revolutional feedrate for geometry axes on which a frame with rotation acts Revolutional feedrate for positioning axes K1
Axis-specific ($SA_ ... ) 43210 43220 43230 SPIND_MIN_VELO_G25 SPIND_MAX_VELO_G26 SPIND_MAX_VELO_LIMS Minimum spindle speed Maximum spindle speed Spindle speed limitation with G96 S1 S1 S1
7.4
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/V1/7-85
10.00
Notes
1/V1/7-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (Part 1) Tool Offset (W1)
1 2 Brief Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.4.10 2.4.11 Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Offset memory structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Calculation of the tool offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Address extension for NC addresses T and M (SW 5 and higher) Free D number allocation (SW 5 and later) . . . . . . . . . . . . . . . . . . . . Correction block for error during tool change (SW 5 and higher) . . Definition of the effect of the tool parameters . . . . . . . . . . . . . . . . . . Flat D number structure (SW 4 and higher) . . . . . . . . . . . . . . . . . . . . Creating a new D number (correction block) . . . . . . . . . . . . . . . . . . . Read D number from the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D number programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming the T number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming M6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool management or Flat D numbers . . . . . . . . . . . . . . . . . . . . . . . . Tool cutting edge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool type (tool parameters) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tooledge position (tool parameter 2) . . . . . . . . . . . . . . . . . . . . . . . . . . Geometry tool length compensation (tool parameters 3 to 5) . . . . . Geometry tool radius compensation (tool parameters 6 to 11) . . . . Wear tool length compensation (tool parameters 12 to 14) . . . . . . . Wear tool length compensation (tool parameters 15 to 20) . . . . . . . Base dimension/adapter dimension tool length compensation (tool parameters 21 to 23) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Technology tool clearance angle (tool parameter 24) . . . . . . . . . . Tools with relevant tool point direction (SW 5 and higher) . . . . . . . . Tool radius compensation: 2D (TRC) . . . . . . . . . . . . . . . . . . . . . . . . . Selecting the TRC (G41/G42) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Approach and retraction behavior (NORM/KONT) . . . . . . . . . . . . . . Smooth approach and retraction (SW 4.3 and higher) . . . . . . . . . . . Deselecting the TRC (G40) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Compensation at outside corners . . . . . . . . . . . . . . . . . . . . . . . . . . . . Compensation at inner corners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Collision detection and bottleneck detection . . . . . . . . . . . . . . . . . . . Blocks with variable compensation value . . . . . . . . . . . . . . . . . . . . . . Keep tool radius compensation constant (SW 4 and higher) . . . . . Changed alarm response (SW 4 and higher) . . . . . . . . . . . . . . . . . . Intersection procedure for polynomials (SW 4 and higher) . . . . . . . 1/W1/1-3 1/W1/2-5 1/W1/2-5 1/W1/2-7 1/W1/2-8 1/W1/2-9 1/W1/2-10 1/W1/2-16 1/W1/2-18 1/W1/2-19 1/W1/2-19 1/W1/2-20 1/W1/2-21 1/W1/2-24 1/W1/2-24 1/W1/2-25 1/W1/2-25 1/W1/2-26 1/W1/2-27 1/W1/2-29 1/W1/2-30 1/W1/2-32 1/W1/2-33 1/W1/2-33 1/W1/2-34 1/W1/2-35 1/W1/2-36 1/W1/2-38 1/W1/2-39 1/W1/2-40 1/W1/2-41 1/W1/2-54 1/W1/2-54 1/W1/2-58 1/W1/2-60 1/W1/2-61 1/W1/2-63 1/W1/2-66 1/W1/2-67
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/i
2.4.12 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.6 2.6.1 2.6.2 2.7 2.8 2.8.1 2.8.2 2.8.3 2.9 2.9.1 2.9.2 2.9.3 2.9.4 3
G461/G462: Approach/retract strategy extension (SW 5 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Orientational toolholder (SW 4 and higher) . . . . . . . . . . . . . . . . . . . . General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Kinematic interaction and machine design (SW 4 and higher) . . . . Inclined machining with 3 + 2 axes (SW 5.3 and higher) . . . . . . . . . Machine with rotary table (SW 5.3 and higher) . . . . . . . . . . . . . . . . Procedure when using orientational toolholders . . . . . . . . . . . . . . . . Programming (SW 4 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Suppl. conditions and control system response for orientation . . . . Incrementally programmed compensation values . . . . . . . . . . . . . . . G91 extension (SW 4.3 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . Machining in direction of tool orientation (SW 5.3 and higher) . . . . Basic tool orientation (SW 6.1 and higher) . . . . . . . . . . . . . . . . . . . . . Tool offset special features (SW 5 and higher) . . . . . . . . . . . . . . . . . Tool lengths in the WCS under consideration of the (SW 5.2 and later) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Tool length offsets in tool direction (SW 6.1 and later) . . . . . . . . . . . Extension of the tool length determination (SW 6.1 and higher) . . Sum and setup offsets (SW 5 and higher) . . . . . . . . . . . . . . . . . . . . . General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description of function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1/W1/2-68 1/W1/2-72 1/W1/2-72 1/W1/2-78 1/W1/2-85 1/W1/2-86 1/W1/2-89 1/W1/2-93 1/W1/2-94 1/W1/2-96 1/W1/2-96 1/W1/2-97 1/W1/2-99 1/W1/2-102 1/W1/2-106 1/W1/2-107 1/W1/2-111 1/W1/2-116 1/W1/2-116 1/W1/2-117 1/W1/2-120 1/W1/2-126
Supplementary Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/3-127 3.1 Flat D number structure (SW 4.1 and higher) . . . . . . . . . . . . . . . . . . 1/W1/3-127
Data Descriptions (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/4-129 4.1 4.2 4.3 General machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/4-129 Channelspecific machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/4-133 Setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/4-146
5 6
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/6-153 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/6-153 6.1 6.1.1 6.1.2 6.1.3 Example of orientational toolholders . . . . . . . . . . . . . . . . . . . . . . . . . . Example of orientational toolholders with rotary table (SW 5.3 and higher) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example basic tool orientation (SW 6.1 and higher) . . . . . . . . . . . . . Calculation of offsets according to location of use or workpiece . . 1/W1/6-153 1/W1/6-154 1/W1/6-156 1/W1/6-157
Data Fields, Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/7-159 7.1 7.2 7.3 7.4 Interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/7-159 Machine data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/7-159 Setting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/7-161 Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1/W1/7-162 J
1/W1/ii
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Brief Description
The SINUMERIK 840D/810D and FMNC controls allow calculation of tool compensation data. 1. Length compensation 2. Radius compensation 3. Storage of tool data in a flexible tool offset memory Tool identification with T numbers from 0 to 32000 Definition of a tool with a maximum of 9 cutting edges Cutting edge described by up to 25 tool parameters Type Geometry: Length Wear: Length Basic/adapter dimension Geometry: Radius Wear: Radius Technology
4. Tool selection selectable: Immediate or via selectable M function 5. Tool radius compensation Selection and deselection strategy configurable: Normal or contourrelated Compensation active for all interpolation types: Linear Circle Helical Spline Polynomial Compensation at outer corners selectable: Transition circle/ellipse (G450) or equidistant intersection (G451) Parameterdriven adaptation of G450/G451 functions to the contour Free traversing on outer corners with G450 and DISC parameter Number of dummy blocks without axis motion selectable in the compensation plane Selectable collision monitoring: Possible contour violations are predicted if the path distance is shorter than the tool radius the width of an inner corner is smaller than the tool diameter. Keep tool radius compensation constant (from SW 4) Intersection procedure for polynomials (from SW 4)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/1-3
10.00
This function, which is available as of SW 4, permits the machining of inclined surfaces with allowance for tool length compensation, provided that the kinematics of the toolholder (without NC axes) permits a static orientation of the tool. The more complex 5-axis transformation is not required for this case. References: /FB/, F2, 3 5-axis transformation
Appropriate selection of the tool data and toolholder data describes the kinematics such that it can make allowance for the tool length compensation. The control can take some of the description data direct from the current frame. Note Please refer to the following documentation for further information on tools and tool compensations and a full technical description of the general and specific programming features for tool compensation (TLC and TRC): References: /PG/, Programming Guide: Fundamentals
With SW 4 and higher, simple offset selection using D numbers is available in the basic version without management functions. With SW 5 and higher, offset selection via unique D numbers is available with management function (see FB Tool Management). Setting data SD 42900 to SD 42950 can be used to control the evaluation of the sign for the tool length and tool wear. The same applies to the response of the wear components when mirroring geometry axes or changing the machining plane via setting data. References: /PG/ Programming Guide Fundamentals, Tool offsets
In order to enable the solid machining of internal corners in certain situations with the activation and deactivation of tool radius compensation, commands G461 and G462 have been introduced and the approach/retraction strategy has thus been extended for tool radius compensation.
The change from G40 to G41/G42 and vice versa is no longer treated as a tool change for tools with relevant tool point direction (turning and grinding tools).
1/W1/1-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Detailed Description
2.1
Tool
Tool selection
The T function is used to select a tool in a program. The setting in MD 22550: TOOL_CHANGE_MODE (new tool offset with M function) determines whether the new tool is loaded immediately on execution of the T function.
Toolchange immediate
TOOL_CHANGE_MODE = 0 The new tool is loaded immediately on execution of the T function. This setting is used mainly on turning machines with tool turrets.
TOOL_CHANGE_MODE = 1 The new tool is prepared for loading on execution of the T function. This setting is used mainly on milling machines with a tool magazine, in order to bring the new tool into the tool change position without interrupting the machining process. The MD 22560: TOOL_CHANGE_M_CODE (M function for tool change) is used to remove the old tool from the spindle and load the new tool onto the spindle. This tool change is required to be programmed with the M function M06, in accordance with DIN 66025. The next tool is preselected with MD 20121: Whose assigned tool length compensation values must be taken into account on RESET and power up according to MD 20110: RESET_MODE_MASK are to be taken into account.
Value range of T
Each tool can have up to 9 cutting edges. The 9 tool cutting edges are assigned to the D functions D1 to D9.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-5
10.00
T..
D1
D2
D3 . . . . . . .
D9
Fig. 2-1
D function
The tool cutting edge is programmed with D1 (edge 1) to D9 (edge 9). The tool cutting edge always refers to the currently active tool. An active tool cutting edge (D1 to D9) without an active tool (T0) is inactive. Tool cutting edge D0 deselects all tool offsets of the active tool. When a new tool (new T number) has been programmed and the old one replaced, the following options are available for selecting the cutting edge: 1. The cutting edge number is programmed 2. The cutting edge number is specified by MD 20270: CUTTING_EDGE_DEFAULT =0 no automatic cutting edge selection after M06 <>0 number of the cutting edge selected after M06 = 1 the cutting edge no. of the old tool is retained and is selected for new tool also after M06
D1 to D9 activates tool compensation for a cutting edge on the active tool. Tool length compensation and tool radius compensation can be activated at different times:
1/W1/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.1.1
Each channel can have a dedicated tool offset memory (TO unit). MD 28085: MM_LINK_TOA_UNIT (assignment of TO unit to a channel) is set to define which TO memory exists for the appropriate channel. The maximum number of tool cutting edges for all tools managed by the NCK is set by means of MD 18100: MM_NUM_CUTTING_EDGES_IN_TOA (number of tool cutting edges in NCK).
Tools
The tool offset memory consists of tools with the numbers T1 to T32000. Each tool can be set up via TOA files or individually using the New tool soft key. Offsets which are not required should be assigned the value zero (this is the default setting when the offset memory is created): The individual values in the offset memory (tool parameters) can be read and written from the program using system variables.
Note The tools (T1 to T32000) do not have to be stored in ascending order or contiguously in the tool offset memory, and the first tool does not have to be assigned number T1.
Each tool can have up to 9 cutting edges (D1 to D9). The first cutting edge (D1) is automatically set up when a new tool is loaded in the tool offset memory. Other cutting edges (up to 8) are set up consecutively and contiguously using the New cutting edge soft key. A different number of tool cutting edges can assigned to each tool in this way.
Channel 2 . etc. .. . . T 12 T7 T2 T1 D1 D2 D3 . . . . . . . D9
Channel 1
. etc. .. . . T6
T3 T2 T1 D1 D2 D3 . . . . . . . D9
Fig. 2-2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-7
10.00
2.1.2
Up to SW 3.x
The D No. and the T No. are required for calculation of the tool offset.
D1 D2 D3 ... ... D9
T No. T1 T2
Tn
DP1 offset
Offset block
DP25
Example:
The above offset is to be calculated in the NC: Call in the parts program ... Tn D2 ...
The D No. is sufficient for calculating the tool compensation values (can be set per MD).
DP1 DP2 DP3 ... ... DP25
D No. D1 D2 : Dn
Offset value
Example:
The above offset is to be calculated in the NC: Call in the parts program ... Dn
1/W1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
2.1.3
An offset data set is determined by the D number. The D address cannot be programmed with an address extension. The evaluation of the D address always refers to the tool which is currently active. If T_M_ADDRESS_EXT_IS_SPINO = TRUE, the programmed D address refers to the active tool in relation to the master spindle (same as for tool management function).
If the tool management function is active, the values programmed with reference to the master spindle (or master toolholder) are displayed as programmed/active T numbers. If tool management is not active, all programmed T values are displayed as programmed/active, regardless of which address extension was programmed. If T_M_ADDRESS_EXT_IS_SPINO = TRUE (spindle number as address extension), only the T value programmed with reference to the master spindle is displayed as programmed/active.
Example
The following example illustrates the effect of the machine data. Two spindles are used. Spindle 1 is the master spindle. M6 was defined as the tool change signal.
T1 = 5 M1 = 6 T2 = 50 M2 = 6 D4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-9
10.00
Note Previously, when tool management was not activated, each tool change command (programmed with T or M) caused the tool offset to be recalculated in the path. The address extension is not defined further by this operation. The meaning of the extension is defined by the user (in the PLC user program).
2.1.4
In SW 5 and higher, the functions for allocating D numbers have been extended significantly:
S The number of cutting edges (or offset data sets) per tool can also be
defined by machine data (MD 18106: MM_MAX_CUTTING_EDGE_PERTOOL). This allows you to customize the number of cutting edges to be configured for each tool to the actual number of real cutting edges for monitoring purposes.
S It is also possible to rename D numbers in the NCK and thus to allocate any
D numbers to the cutting edges.
Note In addition to relative D number allocation, the D numbers can also be assigned as flat or absolute D numbers (132000) without a reference to a T number (within the flat D number structure function).
When you rename D numbers, the information in the tool catalog detailing the numbers defined for these cutting edges is lost. It is therefore impossible to determine, after the renaming operation, which cutting edge of the catalog is referenced. Since this information is required for retooling procedures, a cutting edge number CE has been introduced for each cutting edge. This number remains stored when the D number is renamed.
1/W1/2-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
The D number identifies the cutting edge offset in the parts program. In SW 5 and higher, this offset number D is administered separately from the cutting edge number CE (the number in the tool catalog). Any number can be used. The number is used to identify an offset in the parts program and on the display. The CE number identifies the actual physical cutting edge during retooling. The cutting edge number CE is not evaluated by the NCK on offset selection during a tool change (only available via the OPI). The cutting edge number is defined with system variable $TC_DPCE[t,d].
Note The offset values $TC_DP1,..., $TC_DP25 of the active tool offset can be read with system variable $P_AD[n]; where n=1,...,25. The CE cutting edge number of the active offset is returned with n=26.
Commands
If the maximum cutting edge number (MD 18105) is greater than the maximum number of cutting edges per tool (MD 18106), the following commands are available:
S CHKDNO
Checks whether the existing D numbers are unique; The D numbers of all tools defined within a TO unit may not occur more than once. No allowance is made for replacement tools. Gets the D number for the cutting edge of a tool. If no D number matching the input parameters exists, d=0. If the D number is invalid, a value greater than 32000 is returned.
S GETDNO
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-11
10.00
S SETDNO
Sets or changes the D number of the cutting edge CE of a tool T; if no data set matching the input parameters exists, FALSE is returned. Syntax errors generate an alarm. The D number cannot be set explicitly to 0. the system does not check whether the numbers are unique. If several D numbers within a TO unit are the same, the T number of the first tool found in the search is returned. This command is not suitable for use with flat D numbers, because the value 1 is always returned in this case (no T numbers in database).
S DZERO
Tags all D numbers of the TO unit as invalid; This command is used for support during retooling. Offset data sets tagged with this command are no longer verified by the CHKDNO language command. These data sets can be accessed again by setting the D number again with SETDNO.
Note If the maximum cutting edge number is less than the maximum number of cutting edges per tool (MM_MAX_CUTTING_EDGE_NO < MM_MAX_CUTTING_EDGE_PERTOOL), the defined language commands have no effect on the system. So that existing applications can still run, this relation is therefore preset in the NCK. The individual commands are described in detail in the Programming Guide. References: /PG/, Programming Guide: Fundamentals
Activation
In order to work with unique D numbers and thus with the defined language commands, it must be possible to name D numbers freely for the tools. The following conditions must be fulfilled for this purpose:
Examples
MM_MAX_CUTTING_EDGE_NO = 1 A maximum of one offset can be defined per tool (with D number = 1).
1/W1/2-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Note When the flat D numbers function is active, only one D offset can be defined in the TO unit.
S D numbers 1, 2, 3 are assigned to T number 1 S D numbers 10, 20, 30, 40, 50 are assigned to T number 2 S D numbers 100, 200 are assigned to T number 3 S etc.
CHKDNO; MAX_CUTTING_EDGE_NO = 9999 The following data are to be checked for unique D numbers:
S T number 1 with D numbers 1, 2, 3 S T number 2 with D numbers 10, 20, 30, 40, 50 S T number 3 with D numbers 100, 200, 30
(typographic error on definition: 30 was entered instead of 300) CHKDNO The FALSE state is returned when the above constellation is checked because D=30 exists twice. The FALSE state is returned when the specified D number 30 is checked because D=30 exists twice The TRUE state is returned because D=100 only exists once. The TRUE state is returned although there is a conflict between the D=30 of the third tool and D=30 of the second tool.
MM_MAX_CUTTING_EDGE_PERTOOL = 1 Only tools which have one cutting edge are used. The value 1 of the machine data inhibits the definition of a second cutting edge for a tool. MM_MAX_CUTTING_EDGE_PERTOOL = 12 Up to 12 cutting edges can be defined for a tool (9 cutting edges per tool were allowed up to SW 4).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-13
10.00
Sample programs
Renaming a D number
The D number of cutting edge CE = 3 is to be renamed from 2 to 17. The following specifications apply:
S MM_MAX_CUTTING_EDGE_NO = 20
Within the parts program, this offset is programmed as standard with T1, ....D2. You assign the current D number of cutting edge 3 to a variable (DNoOld) and define the variable DNoNew for the new D number:
def int DNoOld, DNoNew = 17 DNoOld = GETDNO( 1, 3 ) SETDNO( 1, 3, DNoNew )
The new D value 17 is then assigned to cutting edge CE=3. The data of this cutting edge are now addressed with D number 17, both via the system variables and in programs with NC address D. This offset is now programmed in the parts program with T1, ....D17 and the data are addressed as follows: $TC_DP2[ 1, 17 ] = 120 $TC_DP3[ 1, 17 ] = 5.5 $TC_DPCE[ 1, 17 ] = 3 ; Cutting edge number CE
Note If another cutting edge has been defined for the tool; e.g. $TC_DPCE[ 1, 2 ] = 1 ; = CE, D number 2 of cutting edge 1 cannot be addressed with the same name as the D number of cutting edge 3; i.e. SETDNO( 1, 1, 17) returns FALSE.
1/W1/2-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
If one of the offsets is now activated (e.g. with T3 D100), an alarm is generated, because D100 is not currently defined. The D numbers are redefined with:
SETDNO( 1, 1, 100 ) SETDNO( 2, 1, 10 ) SETDNO( 3, 1, 1 ) ;T=1, cutting edge 1 is assigned the (new) D number 100 ;T=2, cutting edge 1 is assigned the (old) D number 10 ;T=3, cutting edge 1 is assigned the (new) D number 1
Note In the event of a power failure, the DZERO command can leave the NCK in an undefined state with reference to the D numbers. If this happens, repeat the DZERO command when the power is returned.
....
CHKDNO
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-15
10.00
2.1.5
Correction block for error during tool change (SW 5 and higher)
If a tool preparation has been programmed in the parts program and the NCK detects an error (e.g. the data set for the programmed T number does not exist in the NCK), the machining program is terminated with an alarm message (up to SW 4). In SW 5 and higher, the user can assess the error situation (programming error in the parts program, tool data set not in NCK) and initiate appropriate measures before continuing with machining. The tool change can be programmed in various ways depending on machine data MD 22550: TOOL_CHANGE_MODE: TOOL_CHANGE_MODE = 0 T= T no. ; Tool preparation and tool change in one NC block; ; i.e. when T is programmed, a new D offset is activated ; in the NCK (see MD 20270: CUTTING_EDGE_DEFAULT) TOOL_CHANGE_MODE = 1 T= T no. ; Tool preparation M06 ; Tool change ; (the number of the tool change M code can be set) ; i.e. when M06 is programmed, a new D offset is activated ; in the NCK (see ; MD 20270: CUTTING_EDGE_DEFAULT)
Program execution is interrupted at the block containing the invalid D value (independent of the value of machine data MD 22550). The operator must either correct the program or reload the missing data set. To do this, he needs the D number for the flat D number function, or otherwise the T number as well. These parameters are passed together with the activated alarm 17181 (same function as 17180).
The options for intervention in the event of an error depend on how the tool change was programmed (defined via machine data MD 22550: TOOL_CHANGE_MODE).
1/W1/2-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
S Correct the parts program. S Reload the missing cutting edge offset data from the MMC. S Include the missing cutting edge offset data in the NCK by Overstore.
After the operator action, the START key is pressed and the block which caused the error is executed again. If the error was corrected, the program is continued. Otherwise, an alarm is output again.
.... M06 ; Detect xx missing > output alarm, ; Stop program ; Correct block, e.g. with Tyy M06, start, ; Block Tyy M06 is interpreted and is O.K. ; Continue processing.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-17
10.00 10.00
The following occurs when this part of the program is executed again: Txx ; Error! Data set with xx does not exist, ; store status; store xx; ; continue program
.... Tyy M06 ; Detect flag xx missing > reject without further reaction, ; because Tyy M06 is correct > program does not stop (correct).
If necessary, the original point of the T call can be corrected after the end of the program. If the tool change logic on the machine cannot process this, the program must be aborted and the point of the error corrected. If only one data set is missing, it is transferred to the NCK, Txx is programmed in Overstore and the program is subsequently resumed. As in the case of missing D number, the required parameter (T number) can be accessed by the user for missing T number via the appropriate alarm (17191).
Note During program testing, the program also stops immediately at the Txx block containing the error if TOOL_CHANGE_ERROR_MODE Bit 0=1, to allow the program to be corrected.
2.1.6
During DRF handwheel traversal, it is possible to move a transverse axis through only half the distance of the specified increment as follows: Specify the distance with handwheel via MD 11346: HANDWHEEL_TRUE_DISTANCE = 1 Define the DRF offset in the transverse axis as a diameter offset with bit 9 = 1 of MD 20360: TOOL_PARAMETER_DEF_MASK When an axial DRF offset is deselected, an existing tool offset (handwheel override in tool direction) is also deleted.
Note For further information about superimposed movements with the handwheel, please refer to: References: /FB/ H1, Jogging with the handwheel /PG/, Programming Guide: Fundamentals The Programming Guide contains a complete technical description of axisspecific deselection of the DRF offset.
1/W1/2-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
2.2
With SW 4 and higher, simple tool management using D numbers is possible (no replacement tools, no magazines). The function is available in the basic level of tool management (without tool management function activated) and is intended for turning machines. Grinding tools cannot be defined using this function.
Activation
The MD18102: MM_TYPE_OF_CUTTING_EDGE can be used to define the type of D number that is active:
S Value = 0 = as before = default setting S Value = 1 = flat D number structure with absolute direct D programming
Cutting edges can be deleted individually via PI command or NC programming command. Cutting edges with a specific number can also be created selectively using the MMC.
2.2.1
The system variables $TC_DP1... $TC_DP25 can be used to program tool offsets. The contents have the same meaning as before. The syntax changes: No T number is specified.
Data backup
Data backup is carried out in the same format, i.e. a backup file with which the flat D number function is created cannot be input to the NCK of a control that has not activated the function. The same also applies in reverse for transfer.
D number range
1 99 999 999
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-19
Tool Offset (W1) 2.2 Flat D number structure (SW 4 and higher)
10.00
2.2.2
The programmer has various options for specifying the D number in the parts program. One option is to read it from the system parameter $A_DNO[n] (n=1,...9) (DNO stands for D number.)
Example
Offset selection in the parts program D9 is written in the program. With $A_DND[9], absolute D number stored in the 9th table location at the time of the call is read.
Table 2-1 Meaning System variable $A_DNO[n]; (n=1,...9) The variable reads the value of the nth position from a table containing the D numbers. The parameter is typically used for indirect D programming (via parameter): D=$A_DNO[1] The variable reads a field element (=the concrete D number) in the D number table of VDI. The PLC writes the matching D number for this T number to the field after the NCK has output the auxiliary function T to the PLC. Field elements have the value zero, if no D number has been defined for them. The PLC can store a maximum of 9 different D numbers for 1 T number in the VDI interface by the PLC. The D number themselves can take values between 0 and 3200, i.e. the table may also have gaps. INT 199 999 999 n=19. Index n indicates the position in the D number table that is to be read. Read in parts program Yes Read in synchronized actions Only relevant in conjunction with the flat D numbers or tool management on PLC.
Data type Value range Indices Access Preprocessing stop Synchronized action Validity
1/W1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
2.2.3
D number programming
MD 18102 can be used to define how the D number is programmed. D0 retains the previous significance Deselection of active offset in NCK.
It is not possible to extend the address of D. Only one active offset data block is possible for the tool path at a given time. Programming in the parts program is carried out as before. Only the value range of the programmed D number is increased. Example 1: MD 22550: TOOL_CHANGE_MODE = 0 MD 18102: MM_TYPE_OF_CUTTING_EDGE = 1 MD 20270: CUTTING_EDGE_DEFAULT = -1 ...
D92 X0 T17 X1 D16 X2 D32000 X3 T29000 X4 D1 X5 Traverse with the offset values of D92 Outputs T=17 to PLC Traverse with the offset values of D92 Traverse with the offset values of D16 Traverse with the offset values of D32000 Outputs T=29000 to PLC Traverse with the offset values of D32000 Traverse with the offset values of D1
No waiting, D777 is activated, T3 = programmed and active tool in the display D777 = programmed and active offset
Note
S Tool change and S the assignment of a D offset for a concrete tool are not the responsibility of
NCK.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-21
Tool Offset (W1) 2.2 Flat D number structure (SW 4 and higher)
10.00
D=$A_DNO[n] means: Select the D number entered at position n (=1 to 9) in the VDI D number table. The variable $A_DNO is read during run-up with a forced synchronization beforehand in the main run. The D numbers available in the VDI interface can be read with $A_DND.
Note It must be guaranteed beyond doubt that the PLC has written the D numbers that match the previously programmed T value, before the NCK main run reads the D number. This mechanism (in the NCK) initiates a general wait for PLC in the NCK.
Dn or D=n means: Select the D number entered at position n (=1 to 9) in the VDI D number table. This syntax is identical to the conventional one, but it internally activates the offset block for the D number determined for index n. Example for the indirect D programming sequence: Let MD 20270 be 0 Let MD 22550 be 0 Let spindle no. 2 not be the master spindle
Parts programs T4
Action Tool change command: NCK outputs the value 4 as T auxiliary function. PLC evaluates it and provides the associated D numbers in the VDI. The PLC only does this if the address extension received is the number of the master spindle. A simple communication protocol allows the NCK to detect whether the associated D numbers are available for the subsequent programmed D.
X1 ... D1 The NCK feed is synchronized with the main run, checks whether the new D numbers are present in the VDI (and waits if necessary) and accepts the desired (absolute) D number at position 1 (D1); e.g. the number 4711. NCK now determines the offset block 4711 and calculates the geometry. The NC transfers the complete contents of the D number table to the VDI interface (this always happens when a tool change command is detected). Contents correspond to the programming of D2 (for indirect programming) The NC accesses the absolute D number of location 3; a synchronized action is not required, because a new T has not been programmed. The NC does not detect a tool change, because spindle no. 2 is not the number of the master spindle. The NC accesses the absolute D number of location 4; a synchronized action is not required, because a new T has not been programmed.
D=$P_DNO[2] D3 T2 = 12000000 D4
1/W1/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
Before outputting the T number to the PLC, the NCK stores the status of the VDI with reference to the queued D number(s). A counter is contained in the VDI for this purpose. The PLC increments the counter each time the D number is refreshed. If necessary the next D number request from the NCK waits until the counter value has changed. The VDI then contains the new D number table which belongs to the value previously programmed.
Important D can only be programmed without an address extension. D always refers to the master spindle. T can be programmed with an address extension. The PLC must only write the D offsets to the VDI with T values or M6 commands with reference to the master spindle. The NCK assumes that this is the case when performing synchronization actions during reading of the D numbers from the VDI.
Example
MD 22550: TOOL_CHANGE_MODE = 1 MD 22560: TOOL_CHANGE_M_CODE = 6 ; i.e. tool change with M6 programming let spindle number 3 not be master spindle T1 M6 ; Tool change command T3 T3 = 11 D=2 ; Wait until the counter in the VDI has changed; this indicates that the PLC has written the D values for T1 into the D number table (e.g. at location 2 = 4711; then activate offset 4711 in the NCK) T3 = programmed T, T1 = active T in the display
S $TC_DP1[0] = 0
Delete all D offsets in NCK. Active offset data blocks (D numbers) cannot be deleted. It may therefore be necessary to program D0 before deleting.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-23
Tool Offset (W1) 2.2 Flat D number structure (SW 4 and higher)
10.00
Tool MDs
The following machine data affect the way tools and cutting edges (D numbers) work in the NCK:
S MD20270: CUTTING_EDGE_DEFAULT S MD20130: CUTTING_EDGE_RESET_VALUE S MD20120: TOOL_RESET_VALUE S MD20121: TOOL_PRESEL_RESET_VALUE S MD22550: TOOL_CHANGE_MODE S MD22560: TOOL_CHANGE_M_CODE S MD 20110: RESET_MODE_MASK S MD20112: START_MODE_MASK
2.2.4
When the function Flat D number structure is active, NC address T continues to be evaluated, i.e. the programmed T number and the active T number are displayed. However, the NC determines the D number without reference to the programmed T value. The NC recognizes 1 master spindle per channel (spindle number settable via MD). Offsets and the M6 command (tool change) are only calculated with reference to the master spindle. An address extension T is interpreted as a spindle number (e.g. T2 = 1; tool 1 to be selected on spindle 2); a tool change is only detected if spindle 2 is the master spindle.
2.2.5
Programming M6
The NC recognizes 1 master spindle per channel (spindle number settable via MD). Offsets and the M6 command (tool change) are only calculated with reference to the master spindle. MD 22550 defines whether the tool change command is performed with an M function. T is used as the tool preparation command. MD 22560 specifies the name of the M function for the tool change. The default is M6. An address extension of M6 is interpreted as a spindle number.
Example
Two spindles are defined, spindle 1 and spindle 2 and the following applies: MD 20090 = 2 ; Spindle 2 is the master spindle. M6 ; Tool change desired, command refers implicitly to master spindle M1 = 6 ; No tool change because spindle no. 2 is the master spindle M2 = 6 ; Tool change performed because spindle no. 2 is the master spindle
1/W1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.2
2.2.6
Program test
MD 20110, bit 3 can be used to define that the active tool and the tool offset are transferred as follows:
S Bit 3=1 from the last test program to finish in test mode, or S Bit 3=0 from the last program to finish before activation of the program test
Precondition
Bits 0 and 6 of MD 20110 must be enabled.
2.2.7
Toolrelated management
The active tool management of the NCK works on the basis of the following assumptions: 1. Tools are managed in magazines. 2. Cutting edges are monitored; limits reached cause the tool to be disabled. 3. Idea behind replacement tools: Tools are programmed for selection only the on the basis of their identifier. NCK then selects the concrete tool according to the strategy. This means that the tool management only makes sense when concrete tools have been defined and these are to be utilized by the NCK.
Flat D number
Flat D number means that the tool management is carried out outside the NCK and there is no reference made to T numbers.
No mixture
of tool management and flat D No.
It does not make sense to mix or distribute the tool management functions over the NCK and PLC, since the main reason for tool management on the NCK is to save time. This only works if the tasks that are timecritical are carried out on the NCK. This is not the case for flat D number however.
Note Activation of both of the functions Flat D number structure and Tool management is monitored. If both are activated at the same time, Tool management takes priority.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-25
2.3
S Tool type (end mill, drill, etc.) S Geometrical description S Technological description
Tool parameter
The geometrical description, the technological description and the tool type are mapped to tool parameters for each type of tool. The following tool parameters are provided for this purpose:
Tool parameter Meaning Notes Reserved for extensions
1 Tool type 2 Cutting edge position Geometry tool length compensation 3 Length 1 4 Length 2 5 Length 3 Geometry tool radius compensation 6 Radius 1/Length 1 7 Length 2 8 Radius 1 9 Radius 2 10 Angle 1 11 Angle 2 Wear tool length compensation 12 Length 1 13 Length 2 14 Length 3 Wear tool radius compensation 15 Radius 1/Length 1
For 3D face milling see Subsection 2.3.4 For 3D face milling For 3D face milling For 3D face milling For 3D face milling For 3D face milling
For 3D face milling see Subsection 2.3.4 16 Length 2 For 3D face milling 17 Radius 1 For 3D face milling 18 Radius 2 For 3D face milling 19 Angle 1 For 3D face milling 20 Angle 2 For 3D face milling Base dimension/adapter dimension tool length compensation 21 Basic length 1 22 Basic length 2 23 Basic length 3 Technology 24 Tool clearance angle Only for turning tools 25
Reserved
Reserved ... means that this tool parameter of the 840D/810D and FM-NC is not used (reserved for extensions). Milling cutter types 111, 120, 121, 130, 155, 156 and 157 3D are given special treatment for face milling by evaluating tool parameters (1 23). For further information about different tool types see Subsection 2.3.1 Tool type (tool parameter) and References /FB/, W5, 3D tool radius compensation
1/W1/2-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.3.1
Meaning
Table 2-2
Length
Radius
CLDATA*1 cutter Location Data Cutter location data to DIN 66215, Bl 1 SUG*2 Grinding wheel peripheral speed
Peripheral speed
Geometry length 1
Milling tools and drilling tools (all other) 100 Milling tool according to CLDATA*1 110 Ball end mill 120 End mill 121 End mill with corner rounding 130 Angle head mill 131 Angle head mill with corner rounding 140 Face mill 145 Thread mill 150 Side mill 155 Truncated cone mill 200 Twist drill 205 Rev. tip drill 210 Boring rod 220 Center drill 230 Countersink 231 Counterbore 240 Tap/rough thread 241 Tap/fine thread 242 Tap/Whitworth thread 250 Reamer Grinding tools and turning tools (400 599) 400 Surface grinding wheel 401 Surface grinding wheel with monitoring 403 Same as 401 but without tool base dimension for GWPS*2 410 Face grinding wheel 411 Face grinding wheel with monitoring 413 Same as 411 but without tool base dimension for GWPS*2 490 Dresser 500 Roughing tool 510 Finish cutting tool 520 Recessing tool 530 Cutoff tool 540 Thread cutting tool Special tools (700) 700 Slotting saw
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x
x x
x x
x x
x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x
x x x x x x x x x x x x x
x x x x x x x
x x x x x x x x x x x x
x x
x x
x x x x x x x x x x x x
x x
x x
x x
x x
x x
x x x x x
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-27
length 2
length 3
Maximum speed
Tool type
Wear length
Wear radius
10.00
S The tool type must be specified for each tool cutting edge. S The tool type is only permitted to accept the defined values (see Table 21) S Tool type 0 (zero) means that no valid tool is defined.
The following offset data (TOA data) can be specified for slotting saw tool type (type 700):
Geometry Length compensation Length 1 Length 2 Length 3 Saw blade compensation Diameter d Slot width b Projection k $TC_DP3 $TC_DP4 $TC_DP5 $TC_DP6 $TC_DP7 $TC_DP8
b L2
L1
d/2 = L1 b/2k = L2
Fig. 2-3
The width of the saw blade is taken into account with G40 to G42 (G40 no compensation for saw blade, G41 saw blade compensation left, G42 saw blade compensation right).
1/W1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
2.3.2
Meaning
On turning tools (tool type 5xx), the control requires the cutting edge radius (tool parameter 8) and a cutting edge position. The cutting edge radius describes how the turning tool is fixed in the toolholder. As illustrated in Fig. 2-4), the position of point P relative to the center point S of the cutting edge is entered as an identifier (value between 1 and 9) in the cutting edge position (tool parameter 2).
Definition of the cutting edge position on turning tools
Fig. 2-4
Length 2 (Z) Tool tip P (cutting edge) Detail R radius of cutting edge (tool radius) S position of cutting edge center point
The tool parameter (P2) specifies the position of the cutting edge. P2 = 1 to P2 = 9 are possible.
Cutting edge position when machining behind the turning center
+X
P1 = 1 P
P1 = 2
P1 = 3
P1 = 4
P1 = 5
P1 = 6
P1 = 7
P1 = 8
P1 = 9 P=S
+Z
+Z
P=S P1 = 2 P1 = 3 P1 = 4 P1 = 5 P1 = 6 P1 = 7 P1 = 8 P1 = 9
+X
P1 = 1
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-29
10.00
+Z
P P=5 S
+Z
P1 = 6
+Z
P1 = 7
+Z
P1 = 8
+Z
P1 = 9 P=S P1 = 1 P1 = 2 P1 = 3 P1 = 4
+X
+X
+X
+X
+X
Special feature
2.3.3
Tool length 1 to 3
The lengths of the tools for the tool length compensation are entered as tool lengths 1 to 3 (tool parameters 3 to 5). The following basic length specifications are required to be entered, according to the tool type:
S Tool type 12x, 140, 145, 150: S Tool type 13x: S Tool type 2xx: S Tool type 5xx:
Tool length 1 Tool length 13 (dep. on plane G17G19) Tool length 1 Tool length 13
Important Irrespective of the tool type, all three tool parameters 3 to 5 (tool lengths 1 to 3) are calculated into the three geometry axes. If more tool lengths are entered in tool parameters 3 to 5 than are required for a particular tool type (tool length 1 is only required for tool type 2xx), these additional tool lengths are calculated into the geometry axes without an alarm being output.
1/W1/2-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
Note Please refer to the following documentation for information concerning the entry of the tool size (lengths) in tool parameters 3 to 4 (tool lengths 1 to 3) and how they are calculated into the three geometry axes (on planes G17 to G19): References: /BA/, Operators Guide
Fig. 2-5
Twist drill (tool type 200) with tool length (tool parameter 3)
Special feature
The active size of the tool is only defined when the geometry tool length compensation (tool parameters 3 to 5) and the wear tool length compensation (tool parameters 12 to 14) are added together (see Subsection 2.2.5). The base dimension/adapter dimension is also added (see Subsection 2.2.7) in order to calculate the complete tool length compensation into the geometry axes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-31
10.00
2.3.4
b e (h ... Tool length) Tool P6 :f ... Length 1 Tool P7 :e ... Length 2 Tool P8 :d/2 ... Radius 1 Tool P9 :r ... Radius 2 Tool P10 :a... Angle 1 Tool P11 :b... Angle 2 f a h r
Fig. 2-6
Note The tool description as given in Fig. 2-6 is required only for 3D face milling. Otherwise: Of the parameters from 6 to 11, SINUMERIK 840D/810D and FM-NC only uses tool parameter 6 (tool radius 1). Please refer to the following documentation for information concerning the entry of the tool shape (radius for the tool radius compensation) in tool parameters 6 to 11 and how they are calculated into the three geometry axes: References: /PG/, Programming Guide: Fundamentals /FB/, W5, 3D Tool Radius Compensation
Not used (see Fig. 25). Not used (see Fig. 25).
The tool radius must be entered for the following tool types in tool parameter 6 (tool radius 1):
A tool radius is not required to be entered for drilling tools (tool type 2xx). The cutting edge position is required to be entered additionally for turning tools (tool type 5xx, see Subsection 2.2.2). The tool radius compensation is used to calculate the tool radius into the current plane (G17 to G19), see Section 2.3.
1/W1/2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
2.3.5
Meaning
While the geometry tool length compensation (tool parameters 3 to 5) is used to define the size of the tool, the wear tool length compensation can be used to correct the change in the active tool size. The active tool size can change due to:
S Differences between the tool fixture on the tool measurement machine and
the tool fixture on the machine tool.
S The wear on the tool caused during the service life by machining. S Definition of a finishing allowance.
Active tool size
The geometry tool compensation (tool parameters 3 to 5) and the wear tool length compensation (tool parameters 12 to 14) are added together (geometry tool length 1 is added to wear tool length 1, etc.) to arrive at the size of the active tool.
2.3.6
Meaning
While the geometry tool radius compensation (tool parameters 6 to 11) is used to define the shape of the tool, the wear tool radius compensation can be used to correct the change in the active tool shape. The active tool size can change due to:
S The wear on the tool caused during the service life by machining. S Definition of a finishing allowance.
Active tool shape
The geometry tool radius compensation (tool parameters 6 to 11) and the wear tool radius compensation (tool parameters 15 to 20) are added together (geometry tool radius 1 is added to wear tool radius 1, etc.) to arrive at the shape of the active tool.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-33
10.00
2.3.7
Meaning
The base dimension/adapter dimension can be used when the reference point of the tool holder (tool size) is different from the reference point of the toolholder. This is the case when:
S The tool and the tool adapter are measured separately but are installed on
the machine in one unit (the tool size and adapter size are entered separately in a cutting edge).
S The tool is used in a second tool fixture located at another position (e.g.
vertical and horizontal spindle).
Turning machine
Length 2 F
X Z
Length 1 Length 2
Fig. 2-7
Basic length 1 to 3
In order that the discrepancy between the toolholder reference point F and the toolholder reference point F can be corrected on the three geometry axes (three dimensional), all 3 basic lengths are active irrespective of the tool type. In other words, a twist drill (tool type 200) with a tool length compensation (length 1) can also have a base dimension/adapter dimension in 3 axes.
Note Please refer to the following documentation for more information on the base/adapter dimension tool length compensation. References: /PG/, Programming Guide: Fundamentals
1/W1/2-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
2.3.8
Meaning
Certain turning cycles, in which traversing motions with tool clearance are generated, monitor the tool clearance angle of the active tool for possible contour violations.
Value range
The angle (0 to 90 degrees with no leading sign) is entered in tool parameter 24 as the tool clearance angle.
Longitudinal/face
The tool clearance angle is entered differently, according to the type of machining (longitudinal or face). If a tool is to be used for both longitudinal and face machining, two cutting edges must be entered for different tool clearance angles.
Undercut angle for face machining X Undercut angle for longitudinal machining Z Fig. 2-9 Tool clearance angle for longitudinal and face machining
Note If zero is entered for the tool clearance angle (tool parameter 24), there is no monitoring of relief cutting in the turning cycles. Please refer to the following documentation for more information on the tool clearance angle. References: /PAZ/, Programming Guide: Cycles
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-35
10.00
2.3.9
Up to SW 4.x
The change from G40 to G41/G42 or vice versa is treated as a tool change for tools with relevant tool point direction. This causes a preprocessor stop when a transformation (e.g. TRANSMIT) is active, and thus to deviations from the intended part contour.
SW 5 and higher
The following changes have been made: 1. The change from G40 to G41 / G42 or vice versa is no longer treated as a tool change. A preprocessor stop therefore no longer occurs with Transmit. 2. The straight line between the cutting edge center points at the start and end of the block is used to calculate intersections with the approach and retraction block. The difference between the tool reference point and the cutting edge center point is superimposed on this movement. For approach and/or retraction with KONT, the movement is superimposed in the linear subblock of the approach or retraction movement. Differences to the previous behavior occur only in relatively seldom circumstances, if the approach and/or retraction blocks do not intersect with an adjacent block (see figure below).
Last position of cutting edge center point on the contour (SW 5 and higher)
Cutting edge center point Programmed retraction block Tool end position Cutting edge reference point
Cutting edge reference point
Last position of cutting edge center point on the contour (up to SW 4.x)
Fig. 2-10
1/W1/2-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.3
3. In circle blocks and in traversing blocks with rational polynomials with a denominator degree > 4, it is not permitted to perform a tool change with active tool radius compensation where the distance between the cutting edge center point and the cutting edge reference point changes. With other types of interpolation, a change is permitted even when a transformation (e.g. Transmit) is active, in contrast to previous versions. 4. In the case of tool radius compensation with variable tool orientation, the transformation from the cutting edge reference point to the cutting edge center point can no longer be implemented with a simple zero offset. Tools with relevant tool point direction are therefore prohibited for 3D circumferential milling (alarm).
Note The issue is not relevant for face milling, since, as before, only defined tool types without relevant tool point direction are approved. (A tool with a type which has not been explicitly approved is treated as a ball end mill with the specified radius. The specification of a tool point direction is ignored.)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-37
10.00
2.4
Why TRC?
The contour (geometry) of the workpiece programmed in the parts program should be independent of the tools used in production. This makes it necessary to draw the values for the tool length and tool radius from a current offset memory. Tool radius compensation can be used to calculate the equidistant path to the programmed contour from the tool radius.
Tool
Workpiece contour Path of the tool center point with a constant distance to contour (equidistant path)
Fig. 2-11
Tool radius compensation is active on the current plane (G17 to G19) for the following types of interpolation:
... G0, G1 ... G2, G3, CIP ... G2, G3 ... ASPLINE, BSPLINE, CSPLINE
1/W1/2-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.4.1
... TRC on the left-hand side of the contour in the direction of ... TRC on the right-hand side of the contour in the direction of ... Deselection of TRC (see Subsection 2.3.3)
In general, only program blocks with positions on geometry axes in the current plane are programmed when tool radius compensation (TRC) is active. However, dummy blocks can still also be programmed with active TRC. Dummy blocks are program blocks which do not contain any positions on a geometry axis in the current plane:
S A tool must be loaded (T function) at the latest in the program block with the
tool radius compensation selection and the tool cutting edge (tool offset) (D1 to D9) must be activated.
S Tool radius compensation is not selected with a tool cutting edge/tool offset
of D0.
S If only one geometry axis is programmed on the plane when the tool radius
compensation is selected, the second axis is automatically added on the plane (last programmed position).
S If no geometry axis is programmed for the current plane in the block with the
tool radius compensation selection, no selection takes place.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-39
10.00
2.4.2
S KONT only differs from NORM when the tool start position is behind the
contour.
Behind contour
P1
P1 G42corrected
R = Tool radius
Before contour
P0 Example for TRC selection NORM behind the contour P0 Example for TRC selection NORM behind the contour and G451 P0
G42 P1
R P1
P1 R
Contour OK R P1
P1
Fig. 2-12
Example for selecting TRC with KONT or NORM in front of and behind the contour
1/W1/2-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.4.3
Meaning
The soft approach and retraction function (SAR) is used to achieve a tangential approach to the start point of a contour, regardless of the position of the start point. The approach response can be varied and adapted to special needs using a range of additional parameters. The two functions, soft approach and soft retraction, are largely symmetrical. The following Section is therefore restricted to a detailed description of approach; special reference is made to differences that occur with retraction.
Approach movement
S Start point of the movement P0 S Intermediate points P1, P2, and P3 S End point P4
Points P0, P3 and P4 are always defined. Intermediate points P1 and P2 can be omitted, according to the parameters defined and the geometrical conditions.
On retraction, the points are crossed in the reverse direction, i.e. starting at P4 and ending at P0. The response of the soft approach and retraction function is determined by up to 9 parameters:
P0 Tool
P4
Contour
Contour
Contour
Approach response depending on G147 to G347 and DISR (on simultaneous activation of tool radius compensation)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-41
10.00
If no tool radius compensation is active (G40), the response is identical to G143. In this case, an alarm is not output. If the radius of the active tool is 0, the approach and retraction side is determined as if the tool radius were positive. G141: Approach contour from left, or retract towards the left. G142: Approach contour from right, or retract towards the right. G143: Automatic determination of the approach direction, i.e. the con tour is approached from the side where the start point is located, relative to the tangent at the start point of the following block (P4).
Note The tangent at the end point of the preceding block is used accordingly on retraction. If the end point is not programmed explicitly on retraction, i.e. if it is to be determined implicitly, G143 is not permitted on retraction, since there is a mutual dependency between the approach side and the position of the end point. If G143 is programmed in this case, an alarm is output. The same applies if, when G140 is active, an automatic switchover to G143 takes place as a result of an inactive tool radius compensation.
P0
P1
DISCL DISCL P3 P4 G340 Machining plane G341 Fig. 2-14 Sequence of the approach movement depending on G340/G341
P2,P3
1/W1/2-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
G340: The approach characteristic from P0 to P4 is shown in Fig. 2-14. If G247 or G347 is active (quadrant or semicircle) and start point P3 is outside the machining plane defined by the end point P4, a helix is inserted instead of a circle. Point P2 is not defined or coincides with P3. The circle plane or the helix axis is determined by the plane which is active in the SAR block (G17 G19), i.e. the projection of the start tangent is used by the following block, instead of the tangent itself, to define the circle. The movement from point P0 to point P3 takes place along two straight lines at the velocity which was valid before the SAR block.
G341: The approach characteristic from P0 to P4 is shown in Fig. 2-14. P3 and P4 are located within the machining planes, with the result that a circle is always inserted instead of a helix with G247 or G347.
Note Active, rotating frames are included in all cases where the position of the active plane G17 G19 (circle plane, helix axis, infeed movements perpendicular to the active plane) is relevant.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-43
10.00
With circles, DISR always specifies the radius of the tool center path. If tool radius compensation is activated, a circle is generated internally, the radius of which is dimensioned such that the tool center path is derived, in this case also, from the programmed radius. An alarm is output on approach and retraction with circles: If the radius of the circle generated internally is zero or negative, if DISR is not programmed, or if it has a value 0.
1/W1/2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
P4 can be determined by the end point of the next traversing block. Further blocks (dummy blocks) can be inserted between the SAR block and the next traversing block without moving the geometry axes. The end point is deemed to have been programmed in the actual SAR block for approach if at least one geometry axis is programmed on the machining plane (X or Y with G17). If only the position of the axis perpendicular to the machining plane (Z with G17) is programmed in the SAR block, this component is taken from the SAR block, but the position in the plane is taken from the following block. In this case, an alarm is output if the axis perpendicular to the machining plane is also programmed in the following block. Example:
Y Z=3 Z=30
10
20
30
40 P4
50 Contour
10 DISR=13
Fig. 2-15
$TC_DP1[1,1]=120 $TC_DP6[1,1]=7
N10 G90 G0 X0 Y0 Z30 D1 T1 N20 X10 N30 G41 G147 DISCL=3 DISR=13 Z=0 F1000 N40 G1 X40 Y10 N50 G1 X50 ... ... N30/N40 can be replaced by: 1. N30 G41 G147 DISCL=3 DISR=13 X40 Y10 Z0 F1000 or 2. N30 G41 G147 DISCL=3 DISR=13 F1000 N40 G1 X40 Y10 Z0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-45
10.00
Possible ways of programming the end point P0 for retraction: The end position is always taken from the SAR block, no matter how many axes have been programmed. We distinguish between the following situations: 1. No geometry axis is programmed in the SAR block. In this case, the contour ends at point P2 (or at point P1 where P1 and P2 coincide). The position in the axes which describe the machining plane is determined by the retraction contour (end point of the straight line or arc). The axis component perpendicular to this is defined by DISCL. If, in this case, DISCL = 0, the movement takes place completely within the plane. 2. Only the axis perpendicular to the machining plane is programmed in the SAR block. In this case, the contour ends at point P1. The position of the two other axes is determined in the same way as in 1.
Contour (preceding block) Fig. 2-16
P4
If the SAR retraction block is also used to deactivate tool radius compensation in the case of 1. and 2. an additional path from P1 to P0 is inserted such that no movement is produced when the tool radius compensation is deactivated at the end of the retraction contour, i.e. this point defines the tool center point and not a position on a contour to be corrected. 3. At least one axis of the machining plane is programmed. The second axis of the machining plane can be determined modally from its last position in the preceding block. The position of the axis perpendicular to the machining plane is generated as described in 1. or 2., depending on whether this axis is programmed or not. The position generated in this way defines the end point P0. No special measures are required for deselection of tool radius compensation, because the programmed point P0 already immediately defines the position of the tool center point at the end of the complete contour. The start and end points of the SAR contour (P0 and P4) can coincide on approach and retraction.
1/W1/2-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
If FAD is not programmed, this part of the contour is traversed at the speed which is active modally from the preceding block, in the event that no F command defining the speed is programmed in the SAR block. Programmed response: FAD=0 or negative FAD=... Alarm output Programmed value acts in accordance with the active G code of group 15 (feed type; G93, G94, etc.) Programmed value is interpreted as linear feed (like G94), regardless of the active G code of group 15 Programmed value is interpreted as linear feed (like G94), regardless of the active G code of group 15
FAD=PM(...)
FAD=PR(...)
Example:
0 10 Z 20
10
20
30
G0 P0 P1
40 50 60 G0 P4 F2000
10 5 0 Fig. 2-17 Example ; Milling tool T1/D1 ; Tool with 7 mm radius P2 P3 F500 F2000
$TC_DP1[1,1]=120 $TC_DP6[1,1]=7
N10 G90 G0 X0 Y0 Z20 D1 T1 N20 G41 G341 G247 DISCL=AC(5) DISR=13 FAD 500 X40 Y10 Z=0 F2000 N30 X50 N40 X60 ...
S Programmed feed F.
This feed value is effective from point P3 (or from point P2, if FAD is not programmed). If no F command is programmed in the SAR block, the speed of the preceding block is valid. The speed defined by FAD is not used for following blocks.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-47
10.00
Velocities
In the approach display shown in Figures 2-18 and 2-19 it is assumed that no new velocity is programmed in the block following the SAR block. If this is not the case, the new velocity comes into effect after point P4.
P0
P1
P2, P3
P4 No velocity programmed Only F programmed Only FAD programmed F and FAD programmed
Rapid traverse if G0 is active, otherwise with the old or new F command Velocity of preceding block (old F command) Infeed velocity programmed with FAD New modal velocity programmed with F Fig. 2-18 Velocities in the SAR subblocks on approach with G340
P0
P1
P2
P3
P4 No velocity programmed Only F programmed Only FAD programmed F and FAD programmed
Rapid traverse if G0 is active, otherwise with the old or new F command Velocity of preceding block (old F command) Infeed velocity programmed with FAD New modal velocity programmed with F Fig. 2-19 Velocities in the SAR subblocks on approach with G341
On retraction, the roles of the modal feed from the preceding block and the feed value programmed in the SAR block are swapped, i.e. the actual retraction contour (straight line, circle, helix) is traversed at the old feedrate; a new velocity programmed with the F command is valid from point P2 to point P0. If level retraction is active and FAD is programmed, the path from P3 to P2 is traversed with FAD, otherwise the old velocity applies. The last F command programmed in a preceding block always applies for the path from P4 to P2. G0 has no effect in these blocks. Traversing from P2 to P0 takes place with the F command programmed in the SAR block or, if no F command is programmed, with the modal F command from a preceding block. This applies on condition that G0 is not active.
1/W1/2-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
If rapid traverse is to be used on retraction in the blocks from P2 to P0, G0 must be activated before the SAR block or in the SAR block itself. If an additional F command is programmed in the actual SAR blocks, it is then ineffective. However, it remains modally active for following blocks.
P4
P3
P2
P1
P0 No velocity programmed Only F programmed Only FAD programmed F and FAD programmed
Rapid traverse if G0 is active, otherwise with the old or new F command Velocity of preceding block (old F command) Retraction velocity programmed with FAD New modal velocity programmed with F
Fig. 2-20
System variables
Points P3 and P4 can be read in the WCS as a system variable during approach.
S $P_APR: Read P3 (start point) in WCS S $P_AEP: Read P4 (contour start point) in WCS S $P_APDV=1 if the contents of $P_APR and $P_AEP are valid, i.e. if they
contain the position values belonging to the last SAR approach block programmed. With $P_APDV=0, the position of an older SAR approach block are read. Changing the WCS between the SAR block and the read operation has no effect on the position values.
Supplementary conditions
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-49
10.00
S If the end point P4 is taken not from the SAR block but from a subsequent
traversing block, the actual SAR contour (straight line, quadrant or semicircle) is traversed in this block. The last subblock of the original SAR block does not then contain traversing information for geometry axes. It is always output, however, because further actions (e.g. single axes) may have to be executed in this block.
Further blocks can be programmed between these two blocks. With MD 20202: WAB_MAXNUM_DUMMY_BLOCKS limits the maximum number of intermediate blocks.
S The direction of the infeed movement and the position of the circle plane or
the helix axis are defined exclusively by the active plane (G17 G19) rotated with an active frame where appropriate.
Alarms
The following alarms are output when programming is incorrect: Alarm 10740 Alarm 10741 Alarm 10742 Alarm 10743 Alarm 10744 Alarm 10745 Alarm 10746 Alarm 10747 Too many empty blocks on SAR programming Direction reversal on SAR infeed movement Invalid SAR distance SAR programmed more than once SAR direction is not defined SAR end position not unique Preprocessor stop on SAR Retraction direction not defined on SAR
If a SAR cycle is interrupted and repositioned, it resumes at the point of interruption on RMI. The contact point on RME is the end point of the last SAR block; with RMB it is the start point of the first SAR block. If RMI is programmed together with DISPR (reapproach at distance DISPR in front of interruption point), the reapproach point can appear in a subblock of the SAR cycle before the interruption subblock.
1/W1/2-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Example 1
S Soft approach is activated in block N20 S X=40 (end point); Y=0; Z=0 S Approach movement performed with quadrant (G247) S Approach direction not programmed, G140 is valid, i.e. because TRC active
(G42) and offset value is positive (10), the contour is approached from the right
S Approach circle generated internally (SAR contour) has radius 20, so that
the radius of the tool center path is equal to the programmed value DISR=10
S Because of G341, the approach movement takes place with a circle in the
plane, resulting in a start point at (20, 20, 0)
Y 0
SAR contour
20
40
20 Infeed movement in Z
40
60 80 100 Tool Tool center path
Fig. 2-21
Contour example 1
Parts program:
$TC_DP1[1,1]=120 ; Tool definition T1/D1 $TC_DP6[1,1]=10 ; Radius N10 G0 X0 Y0 Z30 N20 G247 G341 G42 NORM D1 T1 Z0 FAD=1000 F=2000 DISCL=5 DISR=10 N30 X40 N40 X100 N50 Y30 ...
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-51
10.00
Example 2
S Soft approach is activated in block N20 S Approach movement performed with quadrant (G247) S Approach direction not programmed, G140 is valid, i.e. because TRC active
(G41), the contour is approached from the left
S Contour offset OFFN=5 (N10) S Current tool radius=10, and so the effective compensation radius for
TRC=15; the radius of the SAR contour is thus equal to 25, with the result that the radius of the tool center path is equal to DISR=10
S The end point of the circle results from N30, since only a Z position is
programmed in N20
S Infeed movement
From Z20 to Z7 (DISCL=AC(7)) with rapid traverse Then on to Z0 with FAD=200 Approach circle in XY plane and following blocks with F1500 (for this velocity to be active in the following blocks, the active G code G0 must be overwritten in N30 with G1. Otherwise the contour would continue to be machined with G0.)
S Soft approach is activated in block N60 S Retraction movement performed with quadrant (G248) and helix (G340) S FAD not programmed, since no effect with G340 S Z=2 at start point; Z=8 at end point, because DISCL=6 S With DISR=5, the radius of the SAR contour=20, the radius of the tool center
path=5
S After the circle block, the retraction movement leads from Z8 to Z20 and the
movement is parallel to the XY plane up to the end point at X70 Y0.
1/W1/2-52
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
20
P3an
Semicircle
Helix P3ab
5 P0an 20 30 Contour
P4an
40 50
60
80 P0ab
P4ab
Fig. 2-22
Contour example 2
Parts program:
$TC_DP1[1,1]=120 $TC_DP6[1,1]=10 ; Tool definition T1/D1 ; Radius (P0an) (P3an) (P4an) (P4ab) (P3ab) (P0ab)
N10 G0 X0 Y0 Z20 G64 D1 T1 OFFN = 5 N20 G41 G247 G341 Z0 DISCL = AC(7) DISR = 10 F1500 FAD=200 N30 G1 X30 Y10 N40 X40 Z2 N50 X50 N60 G248 G340 X70 Y0 Z20 DISCL = 6 DISR = 5 G40 F10000 N70 X80 Y0 N80 M 30
Note The contour generated in this way is modified by the tool radius compensation which is activated in the SAR approach block and deactivated in the SAR retraction block. The tool radius compensation allows for an effective radius of 15, which is the sum of the tool radius (10) and the contour offset (5). The resulting radius of the tool center path in the approach block is therefore 10, and 5 in the retraction block.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-53
10.00
2.4.4
2.4.5
S G450 ... discontinuous block transitions with transition circle S G451 ... discontinuous block transitions with intersection of equidistant
paths
Programming: G450 transition circle Outside corner Transition circle (radius = tool radius) P*
Fig. 2-23
1/W1/2-54
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
With the G function G450 active, the center point of the tool with outside corners performs a circular path along the tool radius. The circular path starts with the normal position (perpendicular to the path tangent) at the end point of the previous path section (program block) and finishes in the normal position at the start point of the new path section (program block). Where the outside corners are very flat, the different responses with G450 (transition circle) and G451 (intersection) become increasingly similar > see very flat outside corners. If the outside contour corners are to be pointed, the tool must be lifted off the contour > see DISC.
DISC
The G450 transition circle does not produce sharp outside contour corners because the path of the tool center point through the transition circle is controlled so that the cutting edge stops at the outside corner (programmed position). When sharp outside corners are to be machined with G450, the DISC instruction can be used to program an overshoot. This transforms the transition circle into a conic section and the cutting edge lifts off from the outside corner. The value range of the DISC instruction extends from 0 to 100 in steps of 1. DISC = 0 ... Overshoot disabled, transition circle active DISC = 100 ... Overshoot large enough to theoretically produce a response similar to intersection (G451). The MD 20220: CUTCOM_MAX_DISC (maximum value for DISC) can be used to define the maximum value that can be programmed with DISC. Values over 50 are generally not advisable with DISC.
Fig. 2-24 Example: Overshoot with DISC = 25
DISC=0 DISC=25
DISC=100
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-55
10.00
S/R 1,0 0,8 DISC=100 0,6 0,4 0,2 0 0 30 60 90 120 150 180 Contour angle [degrees] S traverse overshoot R radius S/R scaled overshoot (with reference to the tool radius) Fig. 2-25 Overshoot with DISC depending on contour angle DISC= 50 40 30 20 10
G451 intersection
With the G function G451 active, the position (the intersection point) results from the path lines (with straight line, circle or helix only) is approached, which are at the distance of the tool radius to the programmed contour (centerpoint path of the tool); splines and polynomials are basically not extended. Where outside corners are very pointed, G451 can result in excessive idle paths > see Very pointed outside corners.
Where outside corners are very pointed, G451 can result in excessive idle paths (see Fig. 2-26). The system therefore switches automatically from G451 (intersection) to G450 (transition circle, with DISC where appropriate) when the outside corners are very pointed. The contour angle which can be traversed following this automatic switchover (intersection > transition circle) can be defined in MD 20210: CUTCOM_CORNER_LIMIT (maximum angle for compensation blocks with tool radius compensation).
1/W1/2-56
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Contour angle
Fig. 2-26
Where the outside corners are very flat, the response with G450 (transition circle) and G451 (intersection) becomes increasingly similar. In this case, it is no longer advisable to insert a transition circle. One reason why it is not permitted to insert a transition circle at these outside corners with 5axis machining, is that this would impose restrictions on the speed in contouring mode (G64). Where the outside corners are very flat, the system therefore switches automatically from G450 (transition circle, with DISC where appropriate) to G451 (intersection). The contour angle which can be traversed following this automatic switchover (transition circle > intersection) can be defined in MD 20230: CUTCOM_CURVE_INSERT_LIMIT (maximum angle for intersection calculation with tool radius compensation).
Below the contour angle MD 20230: CUTCOM_CURVE_INSERT_LIMIT an intersection, not a transition circle
Contour angle
Fig. 2-27
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-57
10.00
2.4.6
Intersection
If two consecutive blocks form an inside corner, an attempt is made to find an intersection of the two equidistant paths. If an intersection is found, the programmed contour is shortened to the intersection (first block shortened at end, second block shortened at beginning).
Shortened contour
Fig. 2-28
No intersection
In certain cases, no intersection is found between two consecutive blocks for inside corners (see Fig. 2-29).
If no intersection is found between two consecutive blocks, the control automatically checks the next block and attempts to find an intersection with the equidistant paths of this block (see Fig. 2-29: Intersection S). This automatic check of the next block (predictive contour calculation) is always performed until a number of blocks defined by machine data has been reached. This maximum number of blocks used for the predictive check can be entered in MD 20240: CUTCOM_MAXNUM_CHECK_BLOCKS. If no intersection is found within the number of blocks defined for the check, program execution is interrupted and alarm 10751 is output.
1/W1/2-58
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
N30 S N50 N40 Fig. 2-29 If there is no intersection between N30 and block N40, the intersection between block N30 and block N50 is calculated.
Multiple intersections
> see also collision monitoring (Subsection 2.4.7) In certain cases with inside corners, multiple intersections of the equidistant paths can be found in several consecutive blocks. In these cases, the last intersection is always used as the valid intersection (see Fig. 2-30). The maximum number of blocks used for the predictive check can be entered in MD 20240: CUTCOM_MAXNUM_CHECK_BLOCKS (blocks for predictive contour calculation for TRC).
Fig. 2-30
Example: Inside corner with TRC without contour violation (predicting 3 blocks)
S3 S2 S1
Where multiple intersections with the next block are found, the intersection nearest the start of the next block applies.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-59
10.00
2.4.7
Programming
S CDON S CDOF
With CDOF, the search for an intersection initially examines two consecutive blocks. Other blocks are not included in the search. If an intersection is found between adjacent blocks, no further blocks are examined. With outside corners, an intersection is always found between two consecutive blocks. Predictive examination of more than two adjacent blocks is thus possible with CDON and CDOF.
Omission of block
If an intersection is detected between two blocks which are not consecutive, none of the motions programmed between these blocks on the compensation plane are executed. All other motions and executable instructions (M commands, traversal of positioning axes, etc.) contained in the omitted blocks are executed at the intersection position in the sequence in which they are programmed in the NC program.
Warning 10763
If a block has been omitted as a result of the collision or bottleneck detection functions, the warning 107663 is output; the program is not interrupted. The output of this warning is suppressed if bit 1 in machine data MD 11410: SUPPRES_ALARM_MASK is set.
When the intersections of nonconsecutive blocks are checked, it is not the programmed original contours which are examined but the associated calculated equidistant paths. This may result in a bottleneck being falsely detected at outside corners. The reason for this is that the calculated tool path does not run equidistant to the programmed original contour when DISC>0.
1/W1/2-60
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Fig. 2-31 Bottleneck detection and outside corners
2.4.8
Supplementary conditions
A variable compensation value may be programmed for all interpolation types (even circle and spline interpolation). Sign changes (and thus also a change in compensation side!) are also permitted.
Fig. 2-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-61
10.00
Intersection calculation
When the intersections in blocks with variable compensation value are calculated, the intersection of the offset curves (tool paths) is always calculated based on the assumption that the compensation value is constant. If the block with the variable compensation value is the first of the two blocks to be examined in the direction of travel, then the compensation value at the block end is used for the calculation; the compensation value at the block start is used otherwise.
D2
Programmed contour
N30 Theoretical tool center path Compensation D2 at end of block N20 Compensation D1 at start of block N20
D1
N10
N20
Fig. 2-33
Restriction
If the compensation radius is programmed as being larger than the programmed circle radius for machining on the inside of the circle, the machining operation is rejected with the alarm 10758 Curvature radius with variable compensation value too small.
1/W1/2-62
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.4.9
Meaning
The Keep tool radius compensation constant function is used to suppress the tool radius compensation for a number of blocks, whereby a difference between the programmed and the actual tool center path traveled set up by the tool radius compensation in the previous blocks is retained as the offset. It can be an advantage to use this method when several traversing blocks are required during line milling in the reversal points, but the contours produced by the tool radius compensation (follow strategies) are not wanted.
Activation
The Keep tool radius compensation constant function is activated with the G code CUTCONON (CUTter compensation CONstant ON) and deactivated with the G code CUTCONOF (CUTter compensation CONstant OFF). CUTCONON and CUTCONOF form a modal G code group. The basic setting is CUTCONOF. It can be used independently of the type of tool radius compensation (21/2D, 3D face milling, 3D circumferential milling).
Normal case
Normally, the tool radius compensation is already active prior to activation of the offset suppression, and is still active when offset suppression is deactivated again. In the last traversing block before CUTCONON, the offset point in the block end point is approached. All following blocks in which offset suppression is active are traversed without offset. However, they are offset by the vector from the end point of the last offset block to its offset point. These blocks can have any type of interpolation (linear, circular, polynomial). The deactivation block of the offset suppression, i.e. the block that contains CUTCONOF, is offset normally; it starts in the offset point of the start point. One linear block is inserted between the end point of the previous block, i.e. the last programmed traversing block with active CUTCONON, and this point. Circular blocks for which the circle plane is perpendicular to the offset plane (vertical circles), are treated as though they had CUTCONON programmed. This implicit activation of the offset suppression is automatically canceled in the first traversing block that contains a traversing motion in the offset plane and is not such a circle. Vertical circle in this sense can only occur during circumferential milling.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-63
10.00
Example:
N10 ; Definition of tool d1 N20 $TC_DP1[1,1]= 110 ; Type N30 $TC_DP6[1,1]= 10. ; Radius N40 N50 X0 Y0 Z0 G1 G17 T1 D1 F10000 N60 N70 X20 G42 NORM N80 X30 N90 Y20 N100 X10 CUTCONON; Activate offset suppression N110 Y30 KONT ; During deactivation of offset suppression ; insert follow cycle if necessary N120 X10 CUTCONOF N130 Y20 NORM ; No follow cycle on deactivation of the TRC N140 X0 Y0 G40 N150 M30
N130
N140
N120 N110 N100 N70 N80 10
N90
50
Fig. 2-34
Special cases
1. If tool radius compensation active (G40), CUTCONON has no effect. No alarm is produced. The G code remains active, however. This is significant when tool radius compensation is to be activated in a later block with G41 or G42. 2. It is permissible to change the G code in the 7th G code group (tool radius compensation; G40 / G41 / G42) with active CUTCONON. A change to G40 is active immediately. The offset used for traversing the previous blocks is traveled. 3. If CUTCONON or CUTCONOF is programmed without traversing in the active compensation plane, the effect is delayed until the next block that has such a traversing motion.
1/W1/2-64
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
4. If CUTCONON is programmed with active tool radius compensation and not canceled before the end of the program, the traversing blocks are traversed with the last valid offset. The same allies for reprogramming of G41 or G42 in the last traversing block of a program. 5. If the tool radius compensation is activated with G41 or G42 and CUTCONON is also already active, activation of the offset is delayed until the next traversing block with CUTCONOF. 6. When reapproaching the contour with CUTCONOF, the 17th G code group (approach and retraction response with tool compensation; NORM / KONT) is evaluated, i.e. a follow cycle is inserted if necessary for KONT. A follow cycle is inserted under the same conditions as for activation of the tool radius compensation with G41 or G42. 7. The number of blocks with suppressed tool radius compensation is restricted (MD: CUTCOM_MAXNUM_SUPPR_BLOCKS). If it is exceeded, machining is aborted and an error message issued. The restriction is necessary because the internal block processing in the last block before CUTCONON must be resumed again when repositioning. 8. The response after reprogramming G41 or G42 when tool radius compensation is already active is similar to offset suppression. The following deviations apply: Only linear blocks are permissible A single traversing block that contains G41 or G42 is modified so that it ends at the offset point of the start point in the following block. Thus it is not necessary to insert a dummy block. The same applies for the last block in a sequence of traversing blocks where each contains G41 or G42. The contour is always reapproached with NORM, independent of the G code of the 17th group (approach and retraction response with tool compensation; NORM/KONT).
9. If G41/G42 is programmed several times in consecutive traversing blocks, all blocks are machined as for CUTCONON, except for the last one. 10. The type of contour suppression is evaluated only in the first traversing block of a sequence of consecutive traversing blocks. If both CUTCONON and G41 or G42 are programmed in the first block, the response to deactivating the contour suppression is determined by CUTCONON. Changing from G41 to G42 or vice versa makes sense in this case as a means of changing the offset side (left or right of the contour) when restarting. A change of offset side (G41/G42) can also be programmed later even if contour suppression is active. 11. Collision monitoring and bottleneck detection is deactivated for all blocks with active contour suppression.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-65
10.00
2.4.10
Response up to SW 3
If an alarm occurs (which can be deleted with RESET), block processing in the main run and the blocks that have already been processed are not affected.
S processing in the main run is stopped at the next end of block that can be
reached, i.e. generally at the end of the current interpolated block,
S with active Look Ahead, when the axis have come to a standstill.
Alarms for preprocessing stop and active tool radius compensation (SW 4 and higher)
Response up to SW 3
The tool radius compensation generally requires at least one of the following traversing blocks (even more for bottlenecks) to determine the end point of a block. Since the preprocessing stop of such a block is not available, traversing is made to the offset point in the last block. Correspondingly, the offset point in the start point is approached in the first block after a preprocessing stop. The contour obtained may deviate considerably from the one that would result without preprocessing stop. In particular, contour violations are possible.
A setting data ($SC_STOP_CUTCOM_STOPRE) is therefore inserted so that the response of the tool radius compensation remains unchanged compared to the previous status, and/or an alarm is output for preprocessing stop during active tool radius compensation and the program is halted, depending on the value. The user can acknowledge this alarm and continue the NC program with NC start or abort it with reset.
1/W1/2-66
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
2.4.11
Response up to SW 3
For polynomials (splines), up to SW 3, the intersection procedure at outside corners was not implemented; i.e. even if the transition were almost at a tangent, a block (possible very short) was always inserted. These short blocks always produce unwanted drops in speed during G64 operation.
If two curves with active tool radius compensation form an outside corner, Group (corner response with tool offset; G450/G451) regardless of the type of curves involved (straight lines, circles, polynomials)
S either a conical cut is inserted to follow the corner S or the curves involved are extrapolated to form an intersection.
If no intersection is found with G451 activated, or if the angle formed by the two curves is too steep, switchover to insert mode is automatic. The MD: CUTCOM_INTERS_POLY_ENABLE enables the intersection procedure for polynomials. If this MD is set to inactive, the response is identical to that in SW 3 and lower.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-67
10.00
2.4.12
In certain special geometrical situations, extended approach and retraction strategies are required, in comparison with the previous implementation, for activation/deactivation of tool radius compensation (see the following figure).
Note The following Section refers exclusively to the situation for deactivation of tool radius compensation. The response for approach is virtually identical.
Example
G42 D1 T1 ; Tool radius 20mm ... G1 X110 Y0 N10 X0 N20 Y10 N30 G40 X50 Y50
10 N20
0 20
N10 50
Fig. 2-35
The last block with active tool radius compensation (N20) is so short that an intersection between the offset curve and the preceding block (or an earlier block) would no longer exist with the current tool radius. An attempt is therefore made to find an intersection between the offset curves of the following block and the preceding block, i.e. in the example between N10 and N30. The curve used for the retraction block is not a genuine offset curve, but is a straight line from the offset point at the end point of block N20 to the programmed end point of N30. If an intersection is found, it is approached. In this case, the shaded area in the figure is not machined, although this would be possible with the tool used.
G460
1/W1/2-68
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
G461
If no intersection is possible between the last TRC block and a previous block, the offset curve of this block is extended with a circle whose center point coincides with the end point of the noncorrected block, and whose radius is equal to the tool radius.
10 N20
N10 50
20
Fig. 2-36
The control attempts to intersect this circle with one of the preceding blocks. If CDOF is active, the search is terminated when an intersection is found, i.e. the system does not check whether further intersections with still earlier blocks exist. If CDON is active, the search continues for further intersections after the first intersection is found. An intersection point which is found in this way is the new end point of a preceding block and the start point of the deactivation block. The inserted circle is used exclusively to calculate the intersection and does not produce a traversing movement.
G462
If no intersection is possible between the last TRC block and a preceding block, a straight line is inserted, on retraction with G462 (initial setting), at the end point of the last block with tool radius compensation (the block is extended by its end tangent), see figure below.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-69
10.00
N20
10 0
N10 50
20
Fig. 2-37
The search for the intersection is then identical to the procedure for G461. With G462, the corner generated by N10 and N20 in the example program is not cleared to the full extent actually possible with the tool used. However, this behavior may be necessary if the part contour (as distinct from the programmed contour), to the left of N20 in the example, is not permitted to be violated even with y values greater than 10 mm. If KONT is active (travel round contour at start or end point), the behavior differs according to whether the end point is in front of or behind the contour.
If the end point is in front of the contour, the retraction behavior is the same as with NORM. This property does not change even if the last contour block for G451 is extended with a straight line or a circle. Additional bypass strategies to avoid a contour violation in the vicinity of the contour end point are therefore not required.
If the end point is behind the contour, a circle or straight line is always inserted depending on G450/G451. In this case, G460 G462 has no effect. If, in this situation, the last traversing block has no intersection with a preceding block, an intersection with the inserted contour element or with the linear section from the end point of the bypass circle to the programmed end point can result. If the inserted contour element is a circle (G450), and it intersects with the preceding block, this is the same as the intersection which would be produced with NORM and G461. In general, however, a remaining section of the circle still has to be traversed. An intersection calculation is no longer required for the linear section of the retraction block. In the second case (if no intersection is found between the inserted contour element and the preceding blocks), the intersection between the retraction straight line and a preceding block is traversed. Therefore, when G461 or G462 is active, a behavior different to G460 can only arise if NORM is active or if the behavior with KONT is identical to NORM due to the geometrical conditions.
1/W1/2-70
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.4
Note The approach behavior is symmetrical to the retraction behavior. The approach/retraction behavior is determined by the state of the G command in the approach/retraction block. The approach behavior can therefore be set independent of the retraction behavior.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-71
2.5
2.5.1
Introduction
The orientation of the tool can be changed (e.g. when loading a different tool) for one class of machine tools. When the machine is operating, the orientation that has been set is permanent, however, and cannot be changed during traversing. For this reason, kinematic orientation transformation (3, 4 or 5-axis transformations, TRAORI) is neither necessary nor does it make sense for such machines. However, it is necessary to take account of the changes in the tool length components caused by changing the orientation, without having to trouble the user with mathematics involved. The control performs these calculations.
Required data
If the control tool compensations for orientational toolholders are to be taken into account, the following must be present:
S Tool data (geometry, wear ...) S Toolholder data (data for the geometry of the orientational toolholder)
Tool holder selection
A toolholder defined in the control must be specified for the Orientational toolholder function. This is done using the NC program command: TCARR = m where m is the number of the toolholder. The toolholder has an associated toolholder data block, which describes its geometry. Activating the toolholder and its block has an immediate effect, i.e. from the next traversing block.
Assignment tool/toolholder
The tool that was active beforehand is assigned to the new toolholder. From the point of view of the control, toolholder number m and tool numbers T can be combined freely. In the real application, however, certain combinations can be ruled out for machining or mechanical reasons. The control does not check whether the combinations make sense.
The kinematic of the orientational toolholder is described: In SW 5.2 and lower by a data block of 17 REAL values. In SW 5.3 and higher by a data block of 20 REAL values, 2 AXIS identifiers and 1 CHAR kinematic type which is stored in the offset memory. In SW 6.1 and higher with a total of 33 parameter sets. The data of the data block can be edited by the user.
1/W1/2-72
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Orientational toolholder
Example: Cardan toolholder with two axes for the tool orientation
A A
z y
Variant 1
Fig. 2-38 Cardan toolholder with two axes
Variant 2
Two options are available: 1. Explicit entry in the toolholder data block from the parts program 2. Automatic transfer of some of the values (angles) from a frame. This requires that TCOFR, (Tool Carrier Orientation FRame) is also specified for toolholder selection. The tool orientation used to calculate the tool length is determined again from the frame active at this time when a toolholder is changed.
Orientation in Z direction
The G function TOFRAME defines a frame such that the Z direction in this frame is the same as the current tool orientation.
Then The Z direction is in the new frame: With G17 same as the old Z direction With G18 same as the old Y direction With G19 same as the old X direction
The absolute toolholder orientation is set by: TCOABS, (Tool Carrier Orientation ABSolute). The orientation taken into account for the tool length compensation is independent of the orientation of the active frame. Only one of the instructions TCOABS or TCOFR can be valid.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-73
Change of frame
The user can change the frame after selection of the tool. This does not have any effect on the components of the tool length compensation. Angle in the toolholder data: The angles of rotation stored in the toolholder data are not affected by the angle of rotation defined by the frames. When changing from TCOFR to TCOABS, the original (programmed) angles or rotation in the toolholder data are activated again.
The TRC takes account of the current tool orientation when CUT2D or CUT3DFS is active. All other tool compensation types These are all compensation types of G code group 22, except for CUT3DC and CUT3DF. The response remains the same with respect to the plane used for compensation. This is determined independent of the tool orientation from the active frame. For CUT2DF and CUT3DFF, the compensation plane used for TRC is determined from the frame independent of the current tool orientation. The active plane (G17/G18/G19) is considered. CUT3DC and CUT3DF 3D tool compensation for circumferencial milling 3D tool compensation for face milling with active 5-axis transformation is not affected by the Orientational toolholder function. The orientation information is determined by the active kinematic 5-axis transformation.
An alarm is output if an orientation that cannot be reached with the defined toolholder kinematic is defined by the frame. The following kinematics cannot achieve any orientation:
S if the two rotary axes which are necessary to define the kinematic are not
perpendicular to each other and if the tool axis which defines the tool direction does not stand perpendicular on the second rotary axis or
Ambiguities
A particular frame-selected tool orientation can with two axes generally be set with two different rotary angle pairs. The control selects the one setting for which the rotary angle is as close as possible to the programmed rotary angle. Storing angles in the toolholder data In virtually any case where ambiguities may arise, it is necessary to store the approximate angle expected from the frame in the toolholder data.
1/W1/2-74
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Parameter sets
A complete set of parameters for an orientational toolholder consists of 33 values. The individual system variables are available as follows for the various software versions:
$TC_CARR1 to $TC_CARR17 $TC_CARR1 to $TC_CARR23 $TC_CARR1 to $TC_CARR33 $TC_CARR34 to $TC_CARR65 also freely available to user and for fine offsets.
The meaning of the individual parameters is distinguished as follows: Machine kinematics: $TC_CARR1 to $TC_CARR20 and $TC_CARR23 $TC_CARR 18 to $TC_CARR20 hereby define a further vector l4, which is needed to describe the machine with extended kinematics (both tool and table can be rotated), see Fig. 241. $TC_CARR21 and $TC_CARR22 contain the channel axis identifiers of the rotary axes, the positions of which can if necessary to used to determine the orientation of the orientational toolholder. Kinematic type: $TC_CARR23 using a letter T, P or M The following three options are available for the kinematic type; lower and upper case notation is supported:
S T: Only the Tool can be rotated (basic value). S P: Only the workpiece (Part) can be rotated. S M: Both tool and workpiece can be rotated (Mixed mode).
Any character other than the three mentioned here will result in the alarm 14153 if it is tried to activate the orientational toolholder. Rotary axis parameters: $TC_CARR24 to $TC_CARR33 The system variables in $TC_CARR24 to $TC_CARR33 can be used to define offsets, angle offsets, Hirth tooth system and axis limits. Note The system variables are available with and without active tool management.
The values $TC_CARR1 to $TC_CARR20 and $TC_CARR24 $TC_CARR33 in the toolholder data block are of NC language format type REAL. The values $TC_CARR21 and $TC_CARR22 for the axis identifier of the first rotary axis (v1) and the second rotary axis (v2) are of NC language format type AXIS. They are all preset to zero. The value $TC_CARR23 is initialized with the uppercase letter T (only tool can be rotated). $TC_CARRn[m] $TC_CARR[0]= 0 has a special meaning, see Subsection 2.5.6.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-75
06.01 10.00
$TC_CARRn[m] n: = Parameters 1...33 m:= Number orientational foodholder 1... value of MD 18088: MM_NUM_TOOL_CARRIER.
Description NCK variables Language format REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL AXIS AXIS CHAR REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL Default 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 T 0 0 0 0 0 0 0 0 0 0
x component of the offset vector l1 y component of the offset vector l1 z component of the offset vector l1 x component of the offset vector l2 y component of the offset vector l2 z component of the offset vector l2 x component of rotary axis v1 y component of rotary axis v1 z component of rotary axis v1 x component of rotary axis v2 y component of rotary axis v2 z component of rotary axis v2 Angle of rotation a 1 (in degrees) Angle of rotation a 2 (in degrees) x component of the offset vector l3 y component of the offset vector l3 z component of the offset vector l3 x component of the offset vector l4 y component of the offset vector l4 z component of the offset vector l4 Axis identifier of the rotary axis v1 Axis identifier of the rotary axis v2 Kinematic type Offset of rotary axis v1 Offset of rotary axis v2 Angle offset of rotary axis v1 (Hirth tooth) Angle offset of rotary axis v2 (Hirth tooth) Angle increment of rotary axis v1 (Hirth tooth) Angle increment of rotary axis v2 (Hirth tooth) Minimum position of rotary axis v1 (SW limit) Minimum position of rotary axis v2 (SW limit) Maximum position of rotary axis v1 (SW limit) Maximum position of rotary axis v2 (SW limit)
$TC_CARR1 $TC_CARR2 $TC_CARR3 $TC_CARR4 $TC_CARR5 $TC_CARR6 $TC_CARR7 $TC_CARR8 $TC_CARR9 $TC_CARR10 $TC_CARR11 $TC_CARR12 $TC_CARR13 $TC_CARR14 $TC_CARR15 $TC_CARR16 $TC_CARR17 $TC_CARR18 $TC_CARR19 $TC_CARR20 $TC_CARR21 $TC_CARR22 $TC_CARR23 $TC_CARR24 $TC_CARR25 $TC_CARR26 $TC_CARR27 $TC_CARR28 $TC_CARR29 $TC_CARR30 $TC_CARR31 $TC_CARR32 $TC_CARR33
1/W1/2-76
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Description
NCK variables
Language format
String[32] String[32] String[32]
Default
Tool holder name * Axis name 1 ** Axis name 2 ** Identifier ** Position component X ** Position component Y ** Position component Z ** x comp. fine offset of the offset vector l1 y comp. fine offset of the offset vector l1 z comp. fine offset of the offset vector l1 x comp. fine offset of the offset vector l2 y comp. fine offset of the offset vector l2 z comp. fine offset of the offset vector l2 x comp. fine offset of the offset vector l3 y comp. fine offset of the offset vector l3 z comp. fine offset of the offset vector l3 x comp. fine offset of the offset vector l4 y comp. fine offset of the offset vector l4 z comp. fine offset of the offset vector l4 Offset of fine offset of rotary axis v1 Offset of fine offset of rotary axis v2
$TC_CARR34 $TC_CARR35 $TC_CARR36 $TC_CARR37 $TC_CARR38 $TC_CARR39 $TC_CARR40 $TC_CARR41 $TC_CARR42 $TC_CARR43 $TC_CARR44 $TC_CARR45 $TC_CARR46 $TC_CARR55 $TC_CARR56 $TC_CARR57 $TC_CARR58 $TC_CARR59 $TC_CARR60 $TC_CARR64 $TC_CARR65
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
INT REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL
Remarks: * System variable $TC_CARR34 cannot be assigned a number later, only a number. ** System variables $TC_CARR35 to $TC_CARR40 refer to the intended use of the orientable toolholder within the measuring cycles and can also be used for different purposes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-77
10.00
2.5.2
The concept of the kinematic chain is used to describe the kinematic interaction between a reference point and the tool tip. The chain specifies all the data required for the toolholder data block in a schematic. To describe the concrete case with a particular kinematic, the relevant components of the chain must be assigned real vectors, lengths and angles. The chain represents the maximum constellation. In simple applications, individual components can be zero, e.g. kinematics with one or no rotary axis. The machine does not have to have axes that rotate the tool and/or workpiece table. The function can be used even if the orientations are set manually by handwheel or reconfiguration. The machine design is described by the following parameters:
one angle of rotation (1 or 2) which counts positively for clockwise rotation facing the direction of the rotation vector.
S Up to four offset vectors (l1 to l4) for relevant machine dimensions (axis
distances, distances to machine or tool reference points).
Zero vectors
Vectors v1 and v2 can be zero. The associated angle of rotation (explicitly programmed or calculated from the active frame) must then also be zero, since the direction of the rotating axis is not defined. If this condition is not satisfied, an alarm is produced when the toolholder is activated.
The option not to define a rotating axis makes sense when the toolholder to be described can only rotate the tool in one plane. A sensible minimum data block may therefore contain only one single entry different from 0 in the toolholder data; namely, a value in one of the components of v1 or v2 to describe a rotating axis parallel to the axis where the angle of rotation a1 or a2 is determined from one frame.
The two vectors v1 and v2 can be colinear. However, the degree of freedom for orientation is lost, i.e. such a kinematic is the same as one where only one rotary axis defined. All possible orientations lie on one cone sheath. The conical sheath deforms to a straight line if tool orientation t and v1 or v2 become colinear. Change of orientation is therefore not possible in this special case. The cone sheath deforms to a circular surface (i.e. all orientations are possible in one plane), if tool orientation t and v1 or v2 are perpendicular to each other. It is permissible for the two vectors v1 and v2 to be zero. A change in orientation is then no longer possible. In this special case, the various lengths l1 and l2, which are not equal to zero, act as additional tool length compensations, in which the components in the individual axes are not affected by changing the plane (G17 G19).
1/W1/2-78
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
In software versions up to and including SW 5.2, system variable sets $TC_CARRR1 to $TC_CARR17 were available for orientational toolholders with the scope described at the start of Subsection 2.5.2. The functionality described there is extended as follows in SW 5.3 and higher:
S Possibility to permit only discrete values in a grid for the rotary axis positions
(Hirth tooth system). The extensions are compatible with earlier software versions and encompass the kinematic data blocks from $TC_CARR18 to $TC_CARR23.
On machines with rotary tool there is no change in the definition of the kinematics compared to older software versions. The newly introduced vector l4, in particular, has no significance. Should the contents of l4 not be zero, this is ignored. The concept Orientational toolholders is actually no longer really appropriate for the new kinematic types with which the table can also be rotated, either alone or additionally to the tool. However, it has been kept for reasons of compatibility. The kinematic chains used to describe the machine with rotary tool (general case) is shown in the diagram below in Fig. 2-39:
l1
Reference point of the tool carrier Resulting tool length compensation Reference point of the tool v1, a 1 l3 l2 v2, a 2 Tool length + wear + tool base dimension
Tool orientation
Fig. 2-39
Vectors which describe offsets in the rotary head are positive in the direction from the tool tip to the reference point of the toolholder. The following kinematic type is defined for machines with a rotary tool: Kinematic type: $TC_CARR23 using letter T
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-79
10.00
On machines with rotary workpiece the vector l1 has no significance. If it contains a value other than zero, this is ignored. The kinematic chain for machines with rotary workpiece is shown in the diagram below in Fig. 2-40.
l3 v1, a 1 l4
l2
v2, a 2
Machine reference point Fig. 2-40 Kinematic chain to describe a rotary table
Vectors which describe offsets in the rotary table are positive in the direction from the machine reference point to the table. The following kinematic type is defined for machines with a rotary workpiece: Kinematic type: $TC_CARR23 using letter P Note On machines with rotary workpiece it is generally useful if the selected machine reference point and the reference point of the table are identical. Selecting the reference points in this way brings the advantage that the position of the workpiece zero in the basic setting (i.e. with rotary axes not turned) does not change when the rotary table is activated. The (open) kinematic chain in Fig. 2-40 is then closed. In this special case, therefore, the following formula applies:
Formula
l2 = (l3 + l4)
(10)
1/W1/2-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.5
On machines with extended kinematics (both tool and workpiece are rotary) it is only possible to turn each of the components with one axis. The kinematic of the rotary tool is described with the first rotary axis (v1) and the two vectors l1 and l2, that of the rotary table with the second rotary axis (v2) and the two vectors l3 and l4. The two chain components for machines with rotary tool and rotary workpiece are shown in the diagram below in Fig. 2-41.
l1
Reference point of the tool carrier Resulting tool length compensation Reference point of the tool Reference point of the tool table Tool length + wear + tool base dimension v2, a 2 l3 Tool orientation Machine reference point l4
v1, a 1
l2
Fig. 2-41
The following kinematic type is defined for machines with a rotary tool and rotary workpiece: Kinematic type: $TC_CARR23 using letter M (extended kinematics) Note On machines with extended kinematics it is generally useful, as with machines where only the table can be rotated, for the machine reference point and the reference point of the table to be identical. The (open) partial chain to describe the table, as in Fig. 2-41, is then closed. In this special case the formula applies
Formula
l3 = l4
(11)
For machine kinematics with a rotary tool (types T and M), the orientational toolholder component which describes the tool or head component (as opposed to the table component) acts, in conjunction with the active tool, as a new overall tool.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-81
06.03 10.00
The offset vectors l1 to l4 and the offsets of the rotary axes v1 and v2 can be represented as the sum of a basic value and a fine offset. The fine offset parameters assigned to the basic values are obtained by adding the to the index of the basic value of value 40. Example: The parameter $TC_CARR5 is assigned to the fine offset $TC_CARR45.
Note The meaning of the system variables $TC_CARR41 to $TC_CARR65 available for the fine offset are described in the table in Subsection 2.5.1 and also Reference: /PGA/, Programming Guide Production Planning Tool Offsets
Activation The fine offsets are added to the basic values when setting data SD 42974: TOCARR_FINE_CORRECTION = 1 is set. Supplementary conditions The amount is limited to the permissible fine offset. The maximum permissible value is defined for the
S components of vectors l1 to l4
Machine data MD 20188: TOCARR_FINE_LIM_LIN
Description of a rotation
A data block for describing a rotation comprises one vector v1/v2 to describe the direction of rotation of the rotary axis in its initial state and an angle a1/a2. The angle of rotation is counted positively in clockwise rotation and in the viewing direction. The two toolholder angles a1 and a2 are determined using a frame, independent of the active plane currently selected (G17 G19). The tool orientation in the basic setting (both angles a1 and a2 equal to zero) is (as for the standard case) as follows: For G17: Parallel to Z, For G18: Parallel to Y and For G19: Parallel to X.
1/W1/2-82
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Machine with rotary toolholder (SW 5 and higher) The following settings are obtained at the mill head show for a machine with orientable toolholder of kinematic type T: Component of the offset vector l1 = Component of the offset vector l2 = Component of the offset vector l3 = Component of the rotary axis v1 = Component of the rotary axis v2 = Base dimension reference point tool (200, 0, 0) (0, 0, 0) (100, 0, 0) (1, 0, 0) (1, 0, 1) (0, 0, 250)
Note The tool reference point for the basic dimension is defined by the reference point at the machine. For further information about reference points in the work area refer to: References: /FB/, K1, Axes. Coordinate Syst., Frames
Z Axis 2 v2
Fig. 2-42
Suitable assumptions were made for the following values in the data block:
S The two rotary axes intersect at one point. All components of l2 are therefore
zero.
S The first rotary axis lies in the xz plane, the second rotary axis is parallel to
the x axis. These conditions define the directions of v1 and v2 (the lengths are irrelevant, provided that they are no zero).
S The reference point of the toolholder lies 200 mm in the negative x direction
viewed from the intersection of the two rotary axes. This condition defines l1.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-83
10.00 10.00
The following associated data block values are specified for the toolholder shown on a machine with rotatble toolholder:
Description x component of the offset vector l1 y component of the offset vector l1 z component of the offset vector l1 x component of the offset vector l2 y component of the offset vector l2 z component of the offset vector l2 x component of rotary axis v1 y component of rotary axis v1 z component of rotary axis v1 x component of rotary axis v2 y component of rotary axis v2 z component of rotary axis v2 Angle of rotation a 1 (in degrees) Angle of rotation a 2 (in degrees) x component of the offset vector l3 y component of the offset vector l3 z component of the offset vector l3
NCK variables $TC_CARR1 $TC_CARR2 $TC_CARR3 $TC_CARR4 $TC_CARR5 $TC_CARR6 $TC_CARR7 $TC_CARR8 $TC_CARR9 $TC_CARR10 $TC_CARR11 $TC_CARR12 $TC_CARR13 $TC_CARR14 $TC_CARR15 $TC_CARR16 $TC_CARR17
Explanations
The toolholder kinematic chosen in the example is such that the two rotary axes form an angle of 45 degrees, which means that the orientation cannot take just any value. In concrete terms, this example does not permit the display of orientations with negative X components. x component of the base dimension: 0 y component of the base dimension: 0 z component of the base dimension: 250
Note The required data cannot be determined unequivocally from the geometry of the toolholder, i.e. the user is free to a certain extent to decide which data are to be stored. Thus, for the example, it is possible to specify only one z component for the base dimension up to the second axis. In this case, l2 would no longer be zero, but would contain the components of the distance between this point on the second axis and a further point on the first axis. The point on the first axis can also be selected freely. Depending on which point is selected, l1 must be selected such that the reference point (which can also be selected freely) is reached. It is generally the case that vector components that are not changed by rotation of an axis can be distributed over any vectors before and after rotation.
1/W1/2-84
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.5.3
Funktionale function
Inclined machining with 3 + 2 axes describes an extension of the concept of orientational toolholders and applies this concept to machines with a rotary table on which the orientation of the tool and table can be changed simultaneously. The Inclined machining with 3 + 2 axes function is used to machine surfaces with any rotation with reference to the main planes XY (G17), ZX (G18) and YZ (G19). It is possible to produce any orientation of the tool relative to the workpiece by rotating either the tool, the workpiece or both the tool and the workpiece. The software automatically calculates the necessary compensating movements resulting from the tool lengths, lever arms and the angle of the rotary axis. It is always assumed that the required orientation is set first and not modified during a machining process such as pocket milling on an inclined plane. Furthermore, the following 3 functions are described which are required for oblique machining: 1. Path programming in the tool orientation direction independent of an active frame. 2. Definition of a frame rotation by specifying the solid angle. 3. Definition of rotation component in tool direction in the programmed frame while maintaining the remaining frame components.
If the required functionality specifies that the TCP (tool center point) does not vary in the event of reorientation with reference to the workpiece, even during interpolation, the 5-axis software is required.
Note For further information about 5-axis transformation, please refer to: References: /FB/, F2, 3 to 5-axis transformation
The orientational toolholder is represented by a general 5-axis kinematic sequence described by a data block in the tool offset memory with a total of 33 REAL values. 31 of these values are constant for a toolholder (e.g. a millhead) which uses two rotary axes to set the orientation. In SW 6.4 and higher, a data block is written in the tool correction memory with a total of 47 real values. For toolholders that have two rotary axes for setting the orientation, 45 of these value sare constant. The remaining two values are variable and are used to specify the orientation. The constant values describe offsets and directions and setting options for the rotary axes; the variable values describe the angles of the rotary axes.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-85
10.00 10.00
2.5.4
System variables
To date, the angles stored in $TC_CARR13 and $TC_CARR14 were used for the calculation of the active tool length with TCOABS. This still applies if $TC_CARR21 and $TC_CARR22 do not refer to rotary axes. If $TC_CARR21 or $TC_CARR22 contains a reference to a rotary axis in the channel, the axis position of the axis concerned at the start of the current block is taken as the angle instead of the entry in $TC_CARR13 or $TC_CARR14. Mixed operation is permissible, i.e. the angle can be taken from the entry in the system variable $TC_CARR13 or $TC_CARR14 for the angle of one axis and from the position of a channel axis for the other axis. This makes it possible for machines on which the axes which serve to set the orientational tool holder are known within the NC to access their position directly, whereas it was previously necessary for example to read the system variable $AA_IM[axis] and to write the result of the read operation into $TC_CARR13/14. This saves especially the implicit preprocessing stop for reading the axis positions.
MD 20180
If MD 20180: TOCARR_ROT_ANGLE_INCR[i] is zero, the rotary axis position is used with its programmed or calculated value. If the machine data is not zero however, the position used is the nearest grid point obtained for a suitable integer value n from the equation
Formula
= $MC_TOCARR_ROT_ANGLE_OFFSET[i] + n * $MC_TOCARR_ROT_ANGLE_INCR[i]
(12)
when n is an integer. This functionality is required if the rotary axes need to be indexed and thus cannot assume freely defined positions (e.g. with Hirth tooth systems). The system variable $P_TCANG[i] delivers the approximated valued, the system variable $P_TCDIFF[i] the difference between the exact and the approximated value.
With TCOFR (determination of the angle from the orientation defined by an active frame), the increments are scaled after determination of the angle from the active frame rotation. If the requested orientation is not possible due to the machine kinematic, the machining is aborted with an alarm. This also applies if the target orientation is very close to an achievable orientation. In particular the alarm in such situations cannot be prevented through the angle approximation.
A frame offset as a result of a toolholder change becomes effective immediately on selection of TCARR=... A change in the tool length, on the other hand, only becomes effective immediately if a tool is active.
A frame rotation does not take place on activation and a rotation which is already active is not changed. As in case T (only the tool can be rotated), the position of the rotary axes used for the calculation is dependent on the G code TCOFR/TCOABS and determined from the rotation component of an active frame or from the entries $TC_CARRn.
1/W1/2-86
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Activation of a frame changes the position in the workpiece coordinate system accordingly, without compensating movement by the machine itself. The conditions are shown in the figure below.
Z X
X after TCARR X
Fig. 2-43
Example
On the machine in the upper figure the rotary axis of the table is pointing in the positive Y direction. The table is rotated by +45 degrees. PAROT defines a frame which similarly describes a rotation of 45 degrees around the Y axis. The coordinate system is not rotated relative to the actual environment (marked in Fig. 2-43 with Position of the coordinate system after TCARR), but is rotated by 45 degrees relative to the defined coordinate system (position after PAROT). If this coordinate system is defined with ROT Y45 for example, and if the toolholder is then selected with active TCOFR, an angle of +45 degrees will be determined for the rotary axis of the toolholder.
Rotary table
With rotary tables (kinematic types P and M) the activation with TCARR similarly does not lead to an immediate rotation of the coordinate system, (see Fig. 2-43), i.e. even though the zero point of the coordinate system is offset relative to the machine, while remaining fixed relative to the zero point of the workpiece, the orientation remains unchanged in space.
With kinematics of type P and M the selection of a toolholder activates an additive frame (table offset of the orientational toolholder), which takes into account the zero point offset as a result of the rotation of the table. The zero offset is entered up to SW 5.3 in the base frame defined by MD 20184: TOCARR_BASE_FRAME_NUMBER. The translational part of this frame is then overwritten. Other contents of the frame are left unchanged.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-87
In SW 6.1 and higher, the zero offset can be written to a dedicated system frame $P_PARTFR. Bit 3 in MD 28082: MM_SYSTEM_FRAME_MASK must be set for this purpose. The basic frame specified by MD 20184: TOCARR_BASE_FRAME_NUMBER is then no longer required for the zero offset.
With kinematic type M (tool and table are each rotary around one axis), the activation of a toolholder with TCARR simultaneously produces a corresponding change in the effective tool length (if a tool is active) and the zero offset.
Rotations
Depending on the machining task it is necessary to take into account not only a zero offset (whether as frame or as tool length) when using a rotary toolholder or table, but also a rotation. However, the activation of an orientational toolholder never leads directly to a rotation of the coordinate system.
TOROT
If only the tool can be rotated, a frame whose Z axis points in the direction of the tool can be defined with TOFRAME or TOROT.
PAROT
If the coordinate system needs to be fixed relative to the workpiece, i.e. not only offset relative to the original position but also rotated according to the rotation of the table, then PAROT can be used to activate such a rotation in similar manner to the situation with rotary tool. With PAROT the translations, scalings and mirroring in the active frame are kept, while the rotation component is rotated by the rotation component of an orientational toolholder corresponding to the table. PAROT and TOROT take into account the overall orientation change in cases where the table or the tool are oriented with two rotary axes. With mixed kinematics only the corresponding component caused by a rotary axis is considered. It is thus possible, for example, when using TOROT, to rotate a workpiece such that an oblique plane lies parallel to the fixed XY plane of the room, whereby rotation of the tool must be taken into account in machining where any holes to be drilled, for example, are not perpendicular to this plane. The language command PAROT is not rejected if no orientational toolholder is active. It causes no changes in the programmed frame.
Note For further details of the TCARR, TOROT and PAROT functions with regard to channel-specific system frames, please refer to: References: /FB1/, K2, Axes, Coordinate Systems, Frames, Reset
1/W1/2-88
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.5.5
Creating a toolholder
The number of available toolholder data blocks in the NCK is defined in machine data MD 18088: MM_NUM_TOOL_CARRIER. 1. The value is calculated as follows: MD 18088: MM_NUM_TOOL_CARRIER =
number of TO units * number of toolholder data blocks of a TO unit
Note For further information about the definition and assignment of a TO unit using MD 28085: MM_LINK_TOA_UNIT, please refer to: References: /FB/, S7, Memory configuration
2. Zero setting of toolholder data: To zero all values of all data blocks, you can use the command $TC_CARR1[0] = 0 Zero all values in all data blocks Individual toolholder data blocks can be deleted selectively with the NC command DELTC or the PI service _N_DELTCAR. 3. Accessing the data of a toolholder: a) Parts program $TC_CARRn[m] = value This writes the new value of the system variable to parameter n for toolholder m. Value = $TC_CARRn[m] with def real value the parameters of a toolholder m can be read if they have already been defined (MD 18088: MM_NUM_TOOL_CARRIER). Otherwise, an alarm is output. b) Operator panel interface The parameters of an orientational toolholder can be read and written with the NCKMMC (OPI) variable services using the system variable $P_TCANG[<n>]. 4. Data backup: The system variables specified above are saved as part of the general NCK data backup.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-89
06.01 10.00
A toolholder with number m is selected with the NC program command TCARR = m (TCARR Tool Carrier). TCARR = 0 deselects an active toolholder. New tool or new toolholder When a new tool is activated, it is always treated as if it was mounted on the active toolholder. A new toolholder is activated immediately when it is programmed. It is not necessary to change tools or reprogram the active tool. The toolholder (number) and tool (number) are independent and can be used in any combination.
TCOABS (Tool Carrier Orientation ABSolute): The tool orientation is determined explicitly if the corresponding values are entered in system variable $TC_CARR13 or $TC_CARR14 and G code TCOABS is activated in G code group 42. TCOFR (Tool Carrier Orientation FRame): The tool orientation can also be determined automatically from the current orientation of an active frame on tool selection if one of the following G codes is active in G code group 42 when the toolholder is selected:
Note The tool orientation is not bound strictly to the frame orientation. When a frame is active and G code TCOABS is active, you can select a tool on which the orientation of the tool is independent of the orientation of the active frame. After the tool selection, you can change the frame which does not affect the components of the tool length compensation. It is then no longer certain that the tool is positioned perpendicular to the machining plane. You should therefore first check that the intended tool orientation is maintained on an inclined surface. When TCOFR etc. is active, the tool orientation used in the tool length calculation is always determined from the active frame each time the toolholder is changed.
1/W1/2-90
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
The G codes of group 53 (TOFRAME, TOROT, etc.) can be used to define a frame such that an axis direction (Z, Y or X) in this frame is equal to the current tool orientation. The G code of group 6 (G17 G19) which is active at the time TOFRAME is called determines the tool orientation. If no toolholder is active, or if a toolholder is active but does not cause the tool orientation to change, the Z direction in the new frame is
S the same as the old Z direction with G17, S the same as the old Y direction with G18, S the same as the old X direction with G19.
These directions are modified accordingly for rotating toolholders. The same applies to the new X and Y directions. In SW 6.1 and higher, any of the G codes TOFRAMEX, TOFRAMEY, TOROTX or TOROTY can be used instead of TOFRAME or TOROT. The meanings of the axes are interchanged accordingly.
Group change
Changing the G code from group 42 (TCOABS,TCOFR, etc.) causes recalculation of the tool length components. The (programmed) angles of rotation stored in the toolholder data are not affected, with the result that the angles originally stored in the tool data are reactivated on a change from TCOFR to TCOABS. Read angle of rotation (1 or 2): The angles currently used to calculate the orientation can be read from system variable $P_TCANG[n] with n = 1 or n = 2. If two permissible solutions (i.e. a second valid pair of angles) are available for a particular orientation, the values can be accessed with $P_TCANG[3] or $P_TCANG[4]. The number of valid solutions 0 to 2 can be read with $P_TCSOL. Tool radius compensation with CUT2D or CUT3DFS: The current tool orientation is included in the tool radius compensation if either CUT2D or CUT3DFS is active in G code group 22 (tool compensation type). For non-rotating toolholders, the behavior depends solely on the active plane of G code group 6 (G17 G19) and is thus identical to the previous behavior. All other tool compensation types: The behavior is unchanged for all other tool compensation types. For CUT2DF and CUT3DFF in particular, the compensation plane used for TRC is determined from the frame independent of the current tool orientation. Allowance is made for the active plane (G17 G19) and the behavior is thus the same as before. The two remaining G codes of group 22, CUT3DC and CUT3DF, are not affected by the toolholder functionality because the tool orientation information in these cases is prepared by the active kinematic transformation.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-91
06.01 10.00
Two general solutions exist for two rotary axes. The control itself chooses these two solution pairs such that the orientation angles resulting from the frame are as close as possible to the specified angles. The two following options are available for specifying the angles: 1. If $TC_CARR21 or $TC_CARR22 contains a reference to a rotary axis, the position of this axis at the start of the block in which the toolholder is activated is used to specify the angle. 2. If $TC_CARR21 or $TC_CARR22 does not contain a reference to a rotary axis, the values contained in $TC_CARR13 or $TC_CARR14 are used.
Example
The control first calculates an angle of 10 degrees for one axis. The specified angle is 750 degrees. 720 degrees (= 2 * 360 degrees) are then added to the initial angle, yielding a final angle of 730 degrees.
Rotary axis offsets can be specified with system variables $TC_CARR24 and $TC_CARR25. A value not equal to zero in one of these parameters means that the associated rotary axis has the position specified by the parameter (and not position zero) in the initial setting. All angle specifications then refer to the coordinate system displaced by this value. When the machining plane is changed (G17 G19) only the tool length components of the active tool are interchanged. The components of the toolholder are not interchanged. The resulting tool length vector is then rotated in accordance with the current toolholder and, if necessary, modified by the offsets belonging to the toolholder. The two toolholder angles 1 and 2 are determined using a frame, independent of the active plane currently selected (G17 G19)
Limit angles (software limits) can be specified for each rotary axis in the system variable set ($TC_CARR30 to $TC_CARR33) used to describe the orientational toolholder. These limits are not evaluated if both the minimum and maximum value is zero. If at least one of the two limits is not equal to zero, the system checks whether the previously calculated solution is within the permissible limits. If this is not the case, an initial attempt is made to reach a valid setting by adding or subtracting multiples of 360 degrees to or from the invalid axis position. If this is impossible and two different solutions exist, the first solution is discarded and the second solution is used. The second solution is treated the same as the first with reference to the axis limits. If the first solution is discarded and the second used instead, the contents of $P_TCANG[1/2] and $P_TCANG[3/4] are swapped, hence the solution actually used is also stored in $P_TCANG[1/2] in this case. The axis limits are monitored even if the axis angle is specified instead of being calculated. This is the case if TCOABS is active when an orientational toolholder is activated.
1/W1/2-92
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
2.5.6
A toolholder with number m is selected with the number m of the toolholder with: TCARR = m
The following access is possible from the parts program: The new value is written to parameter n for toolholder m with: $TC_CARRn[m] = value The parameters of a toolholder m can be read with: value = $TC_CARRn[m], if the toolholder data block has already been defined. value must be a REAL variable. The toolholder data block no. must be within the range defined by machine data MD 18088: MM_NUM_TOOL_CARRIER (total number of definable toolholder data blocks). For an NC channel, this number can be defined as divided by the number of active toolholder data block channels. Exception: If MD 28085: MM_LINK_TOA_UNIT is used to select values that deviate from standard.
From within the parts program, it is possible to deleted all the values of all the toolholder data blocks using one command. $TC_CARR1[0] = 0 Values not set by the user are preset to 0.
Activation
A toolholder becomes active when both a toolholder and a tool have been activated. The selection of the toolholder alone has no effect. The effect of selecting a toolholder depends on the G code TCOABS/TCOFR (modal G code group for toolholders). Changing the G code in the TCOABS/TCOFR group causes recalculation of the tool length components when the toolholder is active. With TCOABS, the values stored in the toolholder data for both angles of rotation a1 and a2 are used to determine the tool orientation. With TCOFR, the two angles are determined from the current frame. The values stored in the toolholder data are not changed, however. These are also used to resolve the ambiguity that can result when the angle of rotation is calculated from one frame. Here, the angle that deviates least from the programmed angle is selected from the various possible angles.
Note For further information about programming tool offsets with toolholder kinematics and system variables, please refer to: Reference: /PGA/, Programming Guide, Advanced
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-93
2.5.7
Full orientation
For a given data block that describes a certain kinematic, all the conceivable special orientations can only be displayed when the following conditions are satisfied:
S The two vectors v1 and v2, that describe the rotary axes, must be defined,
i.e. must not be equal to zero.
S The two vectors v1 and v2 must be perpendicular to each other. S The tool orientation must be perpendicular to the second rotary axis.
Non-defined orientation
If these conditions are not satisfied and an orientation that cannot be achieved by an active frame is requested with TCOFR, an alarm is output. Dependencies between vector/angle of rotation If a vector v1 or v2 that describes the direction of rotation is equal to zero, the associated angle of rotation a1 or a2 must also be zero. Otherwise, an alarm is produced. The alarm is not output until the toolholder is activated, i.e. when the toolholder is being changed. Tool fine offset combined with orientation The combination of tool fine offset and toolholders is not permissible. The activation of tool fine offset for an active toolholder, and vice versa the activation of the tool holder with an active tool fine offset, produces an alarm.
The machine data MD 20126: TOOL_CARRIER_RESET_VALUE can be used to select a toolholder automatically on Reset or program start and is controlled via MD 20120: TOOL_RESET_VALUE (analogous to controlled tool selection). The response to Reset or program start is controlled by the same bit 6 MD 20110: RESET_MODE_MASK or in MD 20112: START_MODE_MASK as for tool selection. References: /FB/, K1, Mode Group, Channel, Program Operation, Reset Response
SW 6.3 and higher If TCOABS was active for the last selection before reset, the behavior is unchanged compared to previous versions. A differnet active GCode causes the orientable toolholder to be activated with the frame that was active before the last reset. Modified toolholder data ($TC_CARR...) are also considered. If these data are unchanged, the toolholder is activated in exactly the same state as before reset. If the toolholder data were changed after the toolholder selection before reset, selection corresponding to the last frame is not always possible. In this case, the orientable toolholder is selected according to the GCode (group 42) values valid at this time and the active frame.
Machine data MD 22530: $MC_TOCARR_CHANGE_M_CODE can be set so that, optionally, a constant or an M code is output when the toolholder is selected. The number of the code is derived from the toolholder number. References: /FB/, H2, Output of Auxiliary Functions to PLC
1/W1/2-94
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Toolholder kinematics
The following supplementary conditions must be met for the toolholder kinematics:
S The tool orientation in the initial setting (both angles 1 and 2 are zero) is
as standard, even when G17: Parallel to Z G18: Parallel to Y G19: Parallel to X
S A permissible position in terms of the axis limits must be reachable. S For any possible orientation to be set, the two rotary axes must be
perpendicular to each other. Furthermore, on machines on which both axes rotate the table, the tool orientation must stand perpendicular to the first rotary axis. On machines with mixed kinematics the tool orientation must stand perpendicular on the axis which rotates the tool, i.e. similarly on the first rotary axis. The following applies for orientations specified in a frame:
S Rotary axes which require a frame with a defined tool orientation in order to
reach a specific position are only determined unambiguously in the case of one rotary axis. Two general solutions exist for two rotary axes.
S In all cases where ambiguities may arise, it is particularly important that the
approximate angles expected from the frame are stored in the tool data, and that the rotary axes are in the vicinity of the expected positions.
The toolholder can be changed in an asynchronous subprogram (ASUB). When the interrupted program is continued with REPOS, the approach motion of the new toolholder is taken into account and the program continued with this motion. The treatment here is analogous to tool change in an ASUB. References: /FB/, K1, Mode Group, Channel, Program Operation, Reset Response
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-95
10.00
2.6
2.6.1
Preconditions
Incremental programming with G91 is defined in SW 4.3 and higher such that the compensation value is traversed additively to the incrementally programmed value when a tool offset is selected.
Applications
For applications such as scratching it is important to traverse only the programmed path when traversing incrementally. The activated tool offset is not traversed.
Sequence
S Scratch workpiece with tool tip S Save the actual position in the basic frame (set actual value) after reducing it
by the tool offset
With the setting data SD 42440: With FRAME_OFFSET_INCR_PROG it is possible to set whether zero offset is traversed as standard with FRAME and incremental programming (value = 1) or whether only the programmed value is traversed (value = 0), see /FB/, K2, Frames, Frames with G91.
Condition
If the response is set such that the offset remains active beyond program end and RESET (MD 20110: RESET_MODE_MASK, Bit 6=1), and if an incremental path is programmed in the first parts program block, the offset is always traversed additively to the programmed path.
Note With this configuration, parts programs must always begin with absolute programming.
1/W1/2-96
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.6
2.6.2
Typical application
On machines with orientational toolholder it is possible to traverse in tool direction (typically when drilling),
S a frame defining the oblique plane is active, but the tool cannot be set
exactly perpendicularly because an indexed toolholder (Hirth tooth system) prevents free setting of the tool orientation. In these cases it is then necessary contrary to the actually requested motion perpendicular to the plane to drill in tool direction, as the drill would otherwise not be guided in the direction of its longitudinal axis, which among other things would lead to breaking of the drill.
MOVT
The end point of such a motion is programmed with MOVT=.... The programmed value is effective incrementally in the tool direction as standard. The positive direction is defined from the tool tip to the toolholder. The contents of MOVT is thus generally negative for the infeed motion (when drilling), and positive for the retraction motion. This corresponds to the situation with normal paraxial machining, e.g. with G91 Z... If the motion is programmed in the form MOVT=AC(...), MOVT functions absolutely. In this case a plane is defined which runs through the current zero point, and whose surface normal vector is parallel to the tool orientation. MOVT then gives the position relative to this plane, see figure below.
Z Auxiliary plane
Fig. 2-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-97
10.00 10.00
The reference to this auxiliary plane serves only for calculation of the end position. Active frames are not affected by this internal calculation. Instead of MOVT=... it is also possible to write MOVT=IC(...) if it is to be plainly visible that MOVT is to function incrementally. There is no functional difference between the two forms.
Supplementary conditions
S A block with MOVT must not contain any programming of geometry axes
(Alarm 14157).
1/W1/2-98
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
Tool Offset (W1) Basic tool orientation (SW 6.1 and higher)
2.7
Application
Normally, the orientation assigned to the tool itself depends exclusively on the active machining plane. For example, the tool orientation is parallel to Z with G17, parallel to Y with G18 and parallel to X with G19. Different tool orientations can only be programmed by activating a 5-axis transformation. The following system variables have been introduced in order to assign a separate orientation to each tool cutting edge:
Description of tool orientation Tool cutting edge orientation L1 component of tool orientation L2 component of tool orientation L3 component of tool orientation
Default 0 0 0 0
Index coding: t: d:
Same as tool system variable $TC_DPx[t, d] T number of cutting edge D number of cutting edge
Identifiers $TC_DPV3 to $TC_DPV5 are analogous to identifiers $TC_DP3 to $TC_DP5 of the tool length components.
MD 18114
The system variables for describing the tool orientation are only available if machine data MD18114: MM_ENABLE_TOOL_ORIENT is not equal to zero. If this machine data MD18114: MM_ENABLE_TOOL_ORIENT contains value 1: Only parameter $TC_DPV[t, d] is available value 2: All four system variables are available.
If the contents of all four system variables is 0, the orientation is only defined by the active plane, as before. If system variable $TC_DPV[t, d] is equal to zero, the other three parameters if available define a direction vector. The amount of the vector is insignificant. Example: $TC_DPV[1, 1] = 0 $TC_DPV3[1, 1] = 1.0 $TC_DPV4[1, 1] = 0.0 $TC_DPV5[1, 1] = 1.0 In this example, the basic orientation points in the direction of the bisector in the L1-L3 plane, i.e. the basic orientation in the bisector for a milling tool and active plane G17 in the ZX plane
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-99
Tool Offset (W1) 2.7 Basic tool orientation (SW 6.1 and higher)
10.00
S turning and grinding tools is assumed with S milling tools is assumed with
G18 G17
The active tool orientation is unchanged in these cases and is equivalent to the original settings in $TC_DPVx[t, d]. The basic orientation is always the direction perpendicular to the plane in which tool radius compensation is performed. With turning tools, in particular, the tool orientation generally coincides with the longitudinal tool axis. The setting data specified below are operative only if the basic orientation of the tool is defined by an entry in at least one of the system variables $TC_DPVx[t, d]. They have no effect if the tool orientation is only determined by the plane selection G17 G19 and is compatible with previous behavior. If setting data SD 42950: TOOL_LENGTH_TYPE is not equal to zero, the plane of the basic orientation for a cutting edge is treated either like a milling tool or like a turning tool, irrespective of the entry in $TC_DP1.
Plane change
A change of plane causes a change of orientation. The following rotations are initiated: On a change from G17 ==> G18: G18 ==> G19: G19 ==> G17: Rotation through 90 degrees about the Z axis and then rotation through 90 degrees about the X axis. On a change from G17 ==> G19: G18 ==> G17: G19 ==> G18: Rotation through 90 degrees about the X axis and then rotation through 90 degrees about the Z axis. These rotations are the same as those that have to be performed in order to interchange the components of the tool length vector on a plane change. The basic orientation is also rotated when an adapter transformation is active. If setting data SD 42940: TOOL_LENGTH_CONST is not equal to zero, the tool orientation is not rotated on a plane change.
The tool orientation components are handled in in terms of their setting data SD 42910: MIRROR_TOOL_LENGTH and SD 42950: TOOL_LENGTH_TYPE in exactly the same way as tool length components, i.e. the components are exchanged accordingly and assigned to geometry axes.
1/W1/2-100
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.7
Tool Offset (W1) Basic tool orientation (SW 6.1 and higher)
The purpose of system variable $TC_DPV[t, d] is to allow the simple specification of certain frequently needed basic orientations (parallel to coordinate axes). The permissible values are shown in the table below. The values in the first and second/third columns are equivalent.
$TC_DPV[t, d]
Basic orientation Milling tools * Turning tools * ($TC_DPV3[t, d], $TC_DPV5[t, d], $TC_DPV4[t, d],) ** (0, V, 0) (0, 0, V) (V, 0, 0) (0, V, 0) (0, 0, V) (V, 0, 0)
<= 0 or > 6
($TC_DPV5[t, d], $TC_DPV4[t, d], $TC_DPV3[t, d],) ** (0, 0, V) (0, V, 0) (V, 0, 0) (0, 0, V) (0, V, 0) (V, 0, 0)
1 2 3 4 5 6
*) Turning tools in this context are any tools whose tool type ($TC_DP1[t, d]) is between 400 and 599. All other tool types identify milling tools. **) If all three values $TC_DPV3[t, d], $TC_DPV4[t, d], $TC_DPV5[t, d] are equal to zero in this case, the tool orientation is determined by the active machining plane (default). In the table above, V stands for a positive value in the system variable. Example: For milling tools, $TC_DPV[t, d] = 2 is equivalent to $TC_DPV3[t, d] = 0, $TC_DPV4[t, d] = 0, $TC_DPV5[t, d] = V.
Supplementary conditions
If the Scratching function is used in the RESET state, the following must be noted with respect to the initial setting value:
S The wear components are evaluated depending on the initial setting values
of the G code groups TOWSTD, TOWMCS and TOWWCS.
S If a value other than the initial setting value is needed to ensure correct
calculation, scratching may be performed only in the Stop state.
Note The following Section 2.8 Special handling of tool offsets is paid to tool offsets with evaluation of sign for tool length with wear and temperature fluctuations. The following factors are taken into account: Tool type Transformations for tool components Assignment of tool length components to geometry axes and independently of tool type
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-101
Tool Offset (W1) 2.8 Tool offset special features (SW 5 and higher)
10.00
2.8
SD 4290042950
The setting data SD 42900 SD 42940 permit control of the evaluation of the signs for tool length and wear. In SW 5.2 and higher, this can be performed with SD 42950 independent of the actual tool type. The same applies to the response of the wear components when mirroring geometry axes or changing the machining plane via setting data. References: /PG/ Programming Guide Fundamentals, Tool offsets
Note Where reference is made below to wear values, this refers to the sum of the actual wear values ($TC_DP12 to $TC_DP20) and the sum offsets with the wear values ($SCPX3 to $SCPX11) and setup values ($ECPX3 to $ECPX11). For more information on sum offsets, please refer to /FBW/, Description of Functions, Tool Management.
S SD 42930: WEAR_SIGN (inverts the sign of the wear dimensions) S SD 42935: WEAR_TRANSFORM (transformation of wear values) S SD 42940: TOOL_LENGTH_CONST (assign tool length components to
geometry axes)
1/W1/2-102
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Tool offset special features (SW 5 and higher)
D13
Z M W
Z W1 M1
Fig. 2-45
SD 42910: MIRROR_TOOL_WEAR Setting data not equal to zero: The wear values of the tool length components, whose associated axes are mirrored, are also mirrored by sign inversion.
Note The sign settings of SD 42920 and 42910 are independent. For example, if the sign of a measurement parameter is changed by both setting data, the resulting sign is unchanged.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-103
Tool Offset (W1) 2.8 Tool offset special features (SW 5 and higher)
10.00
SD 42930: WEAR_SIGN Setting data not equal to zero: Inverts the sign of all wear dimensions. This affects both the tool length and other variables such as tool radius, rounding radius, etc. Entering a positive wear dimension makes the tool shorter and thinner.
Sign inversion for all wear values; the new radius of 99 mm is activated on a new selection (D1). Without D1, the radius would continue to be 101 mm.
The same applies in the event that the resulting tool length is modified due to a change in the mirroring status of an axis. The tool must be selected again after the mirror command, in order to activate the modified tool length components.
1/W1/2-104
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 2.8
Tool Offset (W1) Tool offset special features (SW 5 and higher)
Assignment of tools
The assignment of tool length components to geometry axes for turning and grinding tools (tool types 400 to 599) is generated from the value of setting data SD 42940 in accordance with the following table:
Plane 17 18*) 19 17 18 19
Length 1 Y X Z X Z Y
Length 2 X Z Y Y X Z Z Y X Z Y X
Length 3
*) Each value not equal to 0 which is not equal to one of the six listed values is evaluated as the value 18.
The following table shows the assignment between the tool length components and the geometry axes for all other tools (tool types < 400 and > 599):
Plane 17*) 18 19 17 18 19 Length 1 Z Y X Z Y X Length 2 Y X Z X Z Y X Z Y Y X Z Length 3
*) Each value not equal to 0 which is not equal to one of the six listed values is evaluated as the value 17.
Note For representation in tables, it is assumed that geometry axes 1 to 3 are named X, Y, Z. The axis order and not the axis identifier determines the assignment between an offset and an axis. Three tool length components can be arranged on the 6 different types above.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-105
Tool Offset (W1) 2.8 Tool offset special features (SW 5 and higher)
10.00
Orientational toolholder
Note When orientational toolholders are used, it is frequently practical to define all tools for a non-mirrored basic system, even those which are only used for mirrored machining. When machining with mirrored axes, the toolholder is then rotated such that the actual position of the tool is described correctly. All tool length components then automatically act in the correct direction, dispensing with the need for control of individual component evaluation via setting data, depending on the mirroring status of individual axes. It can also be practical to use the orientational toolholder functionality if the machine provides no physical means of rotating tools although tools with different orientations are permanently installed. The standard tool dimensions can then be specified in a basic orientation and the dimensions relevant for machining can be achieved by rotating a virtual toolholder.
2.8.1
Tool lengths in the WCS under consideration of the (SW 5.2 and later)
The values displayed for the tool correspond to the expansion in the WCS. If a toolholder with an inclined clamping position is to be used, you should make sure that the transformation used supports the toolholder. If this is not the case, incorrect tool dimensions will be displayed. When changing the working plane from G17 to G18 or G19, you should also ensure that the transformation can also be used for these planes. If the transformation is only available for G17 machining, the dimensions continue to be displayed for a tool in the Z direction after the plane change. When transformation is deactivated, the basic tool is displayed in the x, y or z direction, according to the working plane. Allowance is made for a programmed toolholder. These tool dimensions are not altered when traversing without a transformation.
Note Further information about handling the wear values in the WCS or MCS when tool orientation is active can be found in Subsection 2.8.3.
1/W1/2-106
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Tool offset special features (SW 5 and higher)
2.8.2
On 5-axis machines with moving tool, temperature fluctuations can occur in the machining heads. These can result directly in expansion fluctuations which are transmitted to the tool spindle in the form of linear expansion. A typical case on 5-axis heads, for example, is thermal expansion in the direction of the longitudinal spindle axis. It is possible to compensate this thermal expansion even when the tool is orientated by assigning the temperature compensation values to the tool rather than to the machine axes. In this way, linear expansion fluctuations can be compensated even when the tool orientation changes. Using the orientation transformation whose direction is determined by the current tool orientation, it is possible to overlay motions in real time and rotate them simultaneously. At the same time, the compensation values are adjusted continuously in the tool coordinate system. In the current version, compensation applies to the Temperature compensation option and is active only when the axis to be compensated is really referenced.
Applicability
Temperature compensation in the tool direction is operative only with generic 5-axis transformations where
one axis rotates the tool, the other axis rotates the workpiece without temperature compensation
S transformation type 40
rotary workpiece, the tool orientation is constant which means that the movement of the rotary axes on the machine does not affect the temperature compensation direction.
Temperature compensation in the tool direction also works in conjunction with the orientation transformations (not generic 5axis transformations) with
S transformation types 64 to 69
Note
Temperature compensation can be activated with all other types of transformation. It is not affected by a change in the tool orientation. The axis move as if no orientation transformation with temperature compensation were active.
Limit values
The compensation values are limited to maximum settings by machine data MD 20392: TOOL_TEMP_COMP_LIMIT[0] to MD 20392 TOOL_TEMP_COMP_LIMIT[2] limited to maximum values. The limit value default setting is 1mm. If a temperature compensation value higher than this limit is specified, it will be limited without an alarm.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-107
Tool Offset (W1) 2.8 Tool offset special features (SW 5 and higher)
10.00 10.00
SD 42960
The three temperature compensation values together form a compensation vector and are contained in setting data SD 42960: TOOL_TEMP_COMP[0] to SD 42960: TOOL_TEMP_COMP[2]. The setting data are userdefined, e.g. using synchronized actions or from the PLC. The compensation values can therefore be applied for other compensation purposes. All three compensation values act in the direction of the three geometry axes (typically in the order X, Y Z) in their initial setting or when the orientation transformation is deactivated. The assignment between the components and geometry axes is independent of the tool type (turning, grinding or milling tools) and the selected machining plane (G17 to G19). Changes to the setting data values take effect immediately.
Activation
Temperature compensation in the tool direction is an option which must enabled beforehand. It is activated by setting machine data MD 20390: TOOL_TEMP_COMP_ON to a value other than zero. In addition, bit 2 must be set for each of the relevant channel axes in machine data MD 32750: TEMP_COMP_TYPE[<axis index>]. This can be more than three axes in cases where more than three channel axes in succession can be temporarily assigned to geometry axes as a result of geometry axis replacement of transformation switchover. If this bit is not set for a particular channel axis, the compensation value cannot be applied in the axis. This does not have any affect on other axes. In this case, an alarm is not output.
Orientational toolholder
If an orientational toolholder is active, the temperature compensation vector is rotated simultaneously to any change in orientation. This applies independently of any active orientation transformation. If an orientational toolholder is active in conjunction with a generic 5-axis transformation or a transformation with rotating linear axis, the temperature compensation vector is subjected to both rotations.
Note While transformations with rotating linear axes take changes in the tool vector (length) into account, they ignore its change in orientation which can be effected by an orientational toolholder.
Temperature compensation values immediately follow any applied change in orientation. This applies in particular when an orientation transformation is activated or deactivated. The same is true when the assignment between geometry axes and channel axes is changed. The temperature compensation value for an axis is reduced to zero (interpolatively), for example, when it ceases to be a geometry axis after a transformation change. Conversely, any temperature compensation value for an axis which changes over to geometry axis status is applied immediately.
1/W1/2-108
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Tool offset special features (SW 5 and higher)
Examples
C axis B axis
Supplementary conditions
S is an option which must be enabled for the user concerned. S available for the generic 5-axis transformation. S available for transformations with rotating linear axis for transformation types
64 to 69.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-109
Tool Offset (W1) 2.8 Tool offset special features (SW 5 and higher)
10.00 10.00
NC program
Temperature compensation values in the NC program. The compensation values assigned to axes X and Z are not zero and are applied for temperature compensation with respect to tool length. The machine axis positions reached in each case are specified as comments in the program lines.
SD 42960: TOOL_TEMP_COMP[0] = 0.3 SD 42960: TOOL_TEMP_COMP[1] = 0.0 SD 42960: TOOL_TEMP_COMP[2] = 1.0 : 1st compensation value ; ; 2nd compensation value ; Setpoint positions ; of machine axes ; X Y Z ; 20.30 20.00 21.00 ; 20.30 20.00 21.00 ; 11.00 10.00 9.70 ; 10.30 10.00 11.00 ; 0.30 0.00 1.00
N10 g74 x0 y0 z0 a0 b0 N20 x20 y20 z20 f10000 N30 traori() N40 x10 y10 z10 b90 N50 trafoof N60 x0 y0 z0 b0 c0 N70 m30
With the exception of block N40, the temperature compensation always acts in the original directions as the tool is pointing in the basic orientation direction. This applies particularly in block N50. The tool is actually still pointing in the direction of the X axis because the B axis is still at 90 degrees. However, because the transformation is already deactivated, the applied orientation is parallel to the Z axis again.
MD 20390: TOOL_TEMP_COMP_ON = TRUE Option MD 32750: TEMP_COMP_TYPE[ AX1 ] = 4 MD 32750: TEMP_COMP_TYPE[ AX2 ] = 4 MD 32750: TEMP_COMP_TYPE[ AX3 ] = 4 ; Temperature compen. active ; Enable option ; Offset in tool direction ; Offset in tool direction ; Offset in tool direction
Note For further information about Temperature compensation, please see: References: /FB/, K3, Compensation Section 2.1 For information about Generic 5-Axis Transformation, please see: References: /FB/, F2, Generic 5-axis transformation Section 2.6
1/W1/2-110
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Tool offset special features (SW 5 and higher)
2.8.3
Note Out of the 9 values specified above base dimension* and adapter dimension* can only alternatively be active.
The type of action of the individual vectors or groups of vectors depends on the following further quantities:
Influencing quantity G codes Tool type Machine data Setting data Orientational toolholder Adapter transformations
Scope Active processing level Milling tool or turning/grinding tools Tool management active / not active, orientational toolholder exists / does not exist. Behavior of tool length components when mirroring or when changing the plane Set values of the orientational toolholder Transformed tool compensation values
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-111
Tool Offset (W1) 2.8 Tool offset special features (SW 5 and higher)
10.00 10.00
How the three vector components of partial totals of the vectors involved are distributed over the three geometry axis components, is determined by the following quantities:
Influencing quantity Active processing level: G17 X/Y direction G18 Z/X direction G19 Y/Z direction Tool type: Milling tools, drilling tools, grinding tools, turning tools SD 42900: MIRROW_TOOL_LENGTH SD 42910: MIRROW_TOOL_WEAR SD 42920: WEAR_SIGN_CUTPOS Adapter transformations
Dependencies Infeed direction: Z Y X See Subsection 2.3.1 Tool type Table 2-2 Minimum number of required tool parameters. See Section 2.8 Tool offset special features and Section 4.3 Setting data See FB tool management Section 3.9
The resulting tool orientation always remains parallel to one of the three axis directions X, Y or Z and exclusively depends on the active machining plane G17G19, since it has not yet been possible to date to assign the tool an orientation.
In addition to further offsets or changes in the length, the orientational toolholder offers the option of varying the tool orientation steplessly using the offset vectors l1 l3. For further explanations, please refer to Section 2.5 Orientational toolholders.
In the typical case of operation, except for the compensations, all tool
parameters are already determined in the production planning phase and are no longer changed by the machine operator. Minor compensations, however, must also be modified during the normal production mode. Possible reasons are, e.g.
Definition The total of wear Sum offsets fine Sum offsets coarse or setting-up offsets
The machine should enter offsets which affect the tool length calculation in the coordinates used for measurement. These workpiece offsets can be set more easily in setting data SD 42935: WEAR_TRANSFORM and G code group 56 with the three values TOWSTD, TOWMCS and TOWWCS.
1/W1/2-112
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Tool offset special features (SW 5 and higher)
SD 42935
Setting data SD 42935: WEAR_TRANSFORM defines which of the three wear components ($TC_DP12 $TC_DP14), ($TC_SCPx3 $TC_SCPx5), ($TC_ECPx3 $TC_ECPx5) wear additive offset fine additive offset coarse
of a rotation should be subjected to an adapter transformation or an orientational toolholder if one of the G codes TOWMCS or TOWWCS is active. Each of the three wear components can be set separately. You can control whether
S only the adapter transformation, S only the transformation by way of the orientational toolholder or S both transformations
are to be suppressed. Top half of the diagram: None of the three wear components suppresses the transformation
Tool length
l1 Kinematic transformation
v1
l2
v2
l3 Adapter transformation
Adapter dimension
l1 Kinematic transformation
v1
l2
v2
l3 Adapter transformation
Orientational toolholder
Fig. 2-46
Bottom half of the diagram: All three wear components suppress the transformation Components which modify the tool orientation
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-113
Tool Offset (W1) 2.8 Tool offset special features (SW 5 and higher)
10.00 10.00
Programming
The G code group 56 can be used to define the following three values:
Offsets Initial setting value for offsets in the tool length Wear data in the machine coordinate system (MCS) Wear data in the workpiece coordinate system (WCS)
TOWSTD
S The wear values are added to the other tool length components.
The resulting total tool length is then used in further calculations. In the case of an active orientational toolholder:
TOWWCS
Wear data in the workpiece coordinate system (WCS): In the case of an active orientational toolholder, the tool vector
Changing the G code of the TOWSTD, TOWMCS, TOWWCS group does not affect a tool that is already active and does not apply until the next tool is selected. A new G code of this group will also come into effect if it is programmed in the same block in which a tool is selected.
1/W1/2-114
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Tool offset special features (SW 5 and higher)
The evaluation of individual wear components (assignment to geometry axes, sign evaluation) is affected by
S the active plane, S the adapter transformation and S the five setting data shown in the table below:
Setting data SD 42910: MIRROW_TOOL_WEAR SD 42920: WEAR_SIGN_CUTPOS SD 42930: WEAR_SIGN SD 42940: TOOL_LENGTH_CONST SD 42950: TOOL_LENGTH_TYPE Wear components TOWSTD X X X X TOWMCS X TOWWCS
X X
X X
Note Wear components which are subjected to an active rotation by an adapter transformation or an orientational toolholder are referred to as nontransformed wear components.
S SD 42920: WEAR_SIGN_CUTPOS
has no effect on the non-transformed wear components. In addition, with TOWWCS
Examples
Lets assume a milling tool is used where only the wear value $TC_DP12 assigned to length L1 is not equal to zero. If G17 is active,
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-115
Tool Offset (W1) 2.9 Sum and setup offsets (SW 5 and higher)
10.00 10.00
2.9
2.9.1
If kinematic transformations (e.g. 5-axis transformations) are active, the tool length is calculated first after allowing for the various wear components. The total tool length is then used in the transformation. Unlike the case of an orientational toolholder, the wear values are thus always included in the transformation irrespective of the G code of group 56.
1/W1/2-116
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Sum and setup offsets (SW 5 and higher)
2.9.2
Description of function
Several sum offsets (DL numbers) can be defined per D number. This allows you to determine, e.g. workpiece location-dependent offset values and assign them to a cutting edge. Sum offsets have the same effect as wear, i.e. they are added to the offset values of the D number. The data are permanently assigned to a D number. You can define the following settings in machine data:
S Activate sum offset S Define maximum quantity of DL data sets to be created in NCK memory S Define maximum quantity of DL numbers to be assigned to a D number S Define whether the sum offsets (fine/coarse) are to be saved during a data
backup
Note When tool management is active, a machine data can be used to define whether the sum offset of a tool activated during a programmed tool change remains unchanged or is set to zero.
$TC_DP1 $TC_DP2
The offsets of the tool geometry are assigned to system variables $TC_DP3 to $TC_DP11. System variables $TC_DP12 to $TC_DP20 allow you to name a wear for each of these parameters.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-117
Tool Offset (W1) 2.9 Sum and setup offsets (SW 5 and higher)
10.00 10.00
Geometry $TC_DP3 $TC_DP4 $TC_DP5 Geometry $TC_DP6 $TC_DP7 Geometry $TC_DP8 $TC_DP9 $TC_DP10 $TC_DP11
Wear $TC_DP12 $TC_DP13 $TC_DP14 Wear $TC_DP15 $TC_DP16 Wear $TC_DP17 $TC_DP18 $TC_DP19 $TC_DP20
Length offsets Length 1 Length 2 Length 3 Radius compensation Radius Corner radius (tool type 700; slotting saw) Further offsets Length 4 (tool type 700; slotting saw) Length 5 Angle 1 (angle between face of tool and torus surface) Angle 2 (angle between tool longitudinal axis and upper end of torus surface)
Technology
$TC_DP24 Clearance angle 1.) The clearance angle is stored here for ManualTurn; tool type 5xx. Same meaning as in standard cycles for turning tools. 2.) The tip angle of the drill is stored here for ShopMill; tool type 2xx. 3.) Used in standard cycles for turning tools; tool type 5xx. This is the angle at the secondary cutting edge for these tools. $TC_DP25 1.) The value for the cutting rate is stored here for ManualTurn. 2.) A bitcoded value for various states of tool types 1xx and 2xx is stored here for ShopMill.
1/W1/2-118
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Sum and setup offsets (SW 5 and higher)
Length 1 $TC_SCP13, $TC_SCP23,$TC_SCP33, $TC_SCP43,$TC_SCP53,$TC_SCP63 $TC_ECP13, $TC_ECP23,$TC_ECP33, $TC_ECP43,$TC_ECP53,$TC_ECP63 The numbers in bold type 1, 2, ... 6 denote paarameters of the maximum of six (location/independent) contours that are programmable with DL =1, ... 6 for the parameter in column one.
$TC_DP4
$TC_DP13
$TC_DP5
$TC_DP14
$TC_DP6 $TC_DP7
$TC_DP15 $TC_DP16
$TC_DP11
Angle 2 $TC_SCP21, $TC_SCP31,$TC_SCP41, $TC_SCP51,$TC_SCP61,$TC_SCP71 $TC_ECP21, $TC_ECP31,$TC_ECP41, $TC_ECP51,$TC_ECP61,$TC_ECP71 The numbers in bold type 3, 2, ... 7 denote paarameters of the maximum of six (location-independent) contours that are programmable with DL =1, ... 6 for the parameter in column one.
$TC_DP20
Supplementary conditions
The maximum number of DL data sets of a cutting edge and the total number of sum offsets in the NCK are defined by machine data. The default value is zero; i.e. no sum offsets can be programmed.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-119
Tool Offset (W1) 2.9 Sum and setup offsets (SW 5 and higher)
10.00 10.00
When the monitoring function is activated, it is possible to monitor a tool for wear or for sum offset. The additional sum/setup data sets use additional buffered memory. 8 bytes are required per parameter. A sum offset data set requires 8 bytes * 9 parameters = 72 bytes. A setup data set requires an equal amount of memory. A certain number of bytes is also required for internal administration data.
2.9.3
Activation
The function must be activated in a machine data. The system variable $TC_ECPx and $TC_SCPx and setup and sum offsets (fine) defined via the OPI interface can be activated in the parts program. This is done by programming the language command DL=nr. When a new D number is activated, either a new DL is programmed or the DL number defined in machine data MD 20272: SUMCORR_DEFAULT is activated.
DL-Programming
The sum offset is always programmed relative to the active D number with the command: DL = n. The sum offset n is added to the wear of the active D number.
Note If you use setup offset and sum offset fine, both offsets are combined and added to the tool wear.
Note DL0 is not allowed. When the offset is deselected (D0 and T0), the sum offset is also deactivated. If you program a sum offset which does not exist, an alarm is output, as in the case of a nonexistent D offset. The defined wear is then the only component of the offset (defined in system variables $TC_DP12 to $TC_DP20).
1/W1/2-120
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Sum and setup offsets (SW 5 and higher)
Important If a sum offset is programmed when a D offset is active (also applies to deselection), this has the same effect on the path as when you program a D command. An active radius compensation thus loses its reference to adjacent blocks.
Configuration
MM_KIND_OF_SUMCORR, bit 4=0: Standard setting: Only one set of sum offsets exists per DL number. We refer in general to the sum offset. This refers to the data represented by $TC_SCPx.
Sum offset 1
$TC_SCP13[t , 2 ] ...
$TC_SCP21[t, 2 ] D offset 2 Sum offset 2
$TC_SCP23[t , 2 ] ...
$TC_SCP31[t, 2 ]
Fig. 2-47
Tool T = t is active. With the data in the figure, the following is programmed: D2 ... DL=1 ... DL=2 ... DL=0 ; Deselect sum offset; Only the data of D2 are now effective. ; Sum offset 2 is added to offset D2 instead of sum offset 1, i.e. $TC_SCP23,...$TC_SCP31 ; Sum offset 1 is added in addition to the previous offsets of D2, i.e. $TC_SCP13,...$TC_SCP21 ; Cutting edge offsets; i.e. $TC_DP3,... $TC_DP11 + wear ($TC_DP12,...$TC_DP20) + adapter dimension
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-121
Tool Offset (W1) 2.9 Sum and setup offsets (SW 5 and higher)
10.00 10.00
MM_KIND_OF_SUMCORR, bit 4=1: Setup offsets are available. The sum offset is now composed of the sum offset fine (represented by $TC_SCPx) and the setup offset (represented by $TC_ECPx). Two data sets therefore exist for one DL number. The sum offset is calculated by adding the corresponding components ($TC_ECPx + $TC_SCPx).
Setup offset 1 $TC_ECP13[t, 2 ] $TC_ECP21[t, 2 ] D offset 2 $TC_DP1[t , 2 ] $TC_DP3[t , 2 ] $TC_DP11[t , 2 ] $TC_DP25[t , 2 ] $TC_DPCE[t, 2 ] Setup offset 2 $TC_ECP23[t, 2 ] $TC_ECP31[t, 2 ]
Sum offset fine 1 $TC_SCP13[t , 2 ] $TC_SCP21[t, 2 ] Sum offset fine 2 $TC_SCP23[t , 2 ] $TC_SCP31[t, 2 ]
Fig. 2-48
Tool T = t is active. With the data in the figure, the following is programmed: D2 ... DL=1 ... DL=2 ... DL=0 ; Deselect sum offset; Only the data of D2 are now effective. ; Sum offset 2 is added to offset D2 instead of sum offset 1; i.e. $TC_ECP23 + $TC_SCP23,...$TC_ECP31 + $TC_SCP31 ; Sum offset 1 is added in addition to the previous offsets of D2; i.e. $TC_ECP13 + $TC_SCP13,...$TC_ECP21 + $TC_SCP21 ; Cutting edge offsets; i.e. $TC_DP3,... $TC_DP11 + wear ($TC_DP12,...$TC_DP20) + adapter dimension
1/W1/2-122
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Sum and setup offsets (SW 5 and higher)
The individual sets of sum offset parameters are differentiated according to the number ranges of system variable $TC_SCP. The meaning of the individual variables is similar to geometry variables $TC_DP3 to $TC_DP11. Only length1, length2 and length3 are enabled for the basic functionality (variables $TC_SCP13 $TC_SCP15 for the first sum offset of the cutting edge). R5 = $TC_SCP13[ t, d ] ; Sets the value of the R parameter to the value of the first component of sum offset 1 of the cutting edge (d) of the tool (t). ; Sets the value of the R parameter to the value of the last component of sum offset 1 of the cutting edge (d) of the tool (t).
R6 = $TC_SCP21[ t, d ]
R50 = $TC_SCP23[ t, d ] ; Sets the value of the R parameter to the value of the first component of sum offset 2 of cutting edge (d) of the tool (t). $TC_SCP43[ t, d ] = 1.234 ; Sets the value of the first component of sum offset 4 of the cutting edge (d) of the tool (t) to the value 1.234. The above statements also apply to the setup offsets (if the NCK is configured with this option), i.e. R5 = $TC_ECP13[ t, d ] ; Sets the value of the R parameter to the value of the first component of setup offset 1 of the cutting edge (d) of the tool (t). ; Sets the value of the R parameter to the value of the last component of setup offset 1 of the cutting edge (d) of the tool (t).
R6 = $TC_ECP21[ t, d ]
etc. When working with setup offsets, the sum offsets fine are written with the $TC_SCPx system variables.
If the offset data set (x) does not yet exist, it is created on the first write operation to one of its parameters (y). $TC_SCPxy[ t, d ] = r.r ; Parameter y of sum offset x is assigned the value r.r. The other parameters of x are zero. When working with setup offsets, the sum offsets fine are written with the $TC_SCPx system variables.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-123
Tool Offset (W1) 2.9 Sum and setup offsets (SW 5 and higher)
10.00 10.00
Note When working with setup offsets, the data set for the setup offset is created when a data set is created for sum offset fine if a data set did not already exist for [t, d].
If the offset data set (x) does not yet exist, it is created on the first write operation to one of its parameters (y). $TC_ECPxy[ t, d ] = r.r ; Parameter y of setup offset x is assigned the value r.r. The other parameters of x are zero.
Note When working with setup offsets, the data set for the setup offset is created when a data set is created for sum offset fine if a data set did not already exist for [t, d].
Sum offsets are generally only relevant when machining with a cutting edge at a certain time at a certain location of the workpiece. You can use the NC language command DELDL to delete the sum offsets from cutting edges (in order to release memory). status = DELDL( t, d ) ; Deletes all sum offsets of cutting edge d of tool t; t, d are optional parameters: If d is not specified, all sum offsets of all cutting edges of tool t are deleted. If d and t are not specified, all sum offsets of the cutting edges of all tools of the TO units are deleted (for the channel in which the command is programmed). When working with setup offsets, the DELDL command deletes both the setup offset and the sum offsets fine of the specified cutting edge(s).
Note The memory used for the data sets is released after the deletion. The deleted sum offsets can subsequently no longer be activated or programmed.
Sum offsets and setup offsets of active tools cannot be deleted (similar to the deletion of D offsets or tool data).
1/W1/2-124
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Tool Offset (W1) Sum and setup offsets (SW 5 and higher)
The status return value indicates the result of the deletion command: 0 1 Deletion was successful Deletion was not (one cutting edge) or not completely (several cutting edges) successful.
Data backup
The data are saved during a general tool data backup (as a component of the D number data sets). It is advisable to save the sum offsets, in order to allow the current status to be restored in the event of an acute problem. The sum offsets can be excluded from a data backup by machine data (can be set separately for setup offsets and sum offsets fine).
Note Sum offsets behave in the same way as D offsets with reference to block search and REPOS. The behavior on Reset and PowerOn can be defined by machine data. If machine data MD 20110: RESET_MODE_MASK defines that the last active tool offset number (D) is to be activated after PowerOn, the last active DL number is then no longer active.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/2-125
Tool Offset (W1) 2.9 Sum and setup offsets (SW 5 and higher)
10.00 10.00
2.9.4
Examples
Example 1
Machine data are to be used to define that no offsets and no sum offsets are active on a tool change ($MC_CUTTING_EDGE_DEFAULT=0, $MC_SUMCORR_DEFAULT=0):
T5 M06 D1 DL=3 X10 DL=2 X20 DL=0 D2 ; Sum offset deselection, only offset D1 is now active ; Offset D2 is activated the sum offset ; is not included in the offset ; Offset D1 + sum offset 2 are activated ; Tool number 5 is loaded no offset active ; Offset D1 + sum offset 3 of D1 are activated
X1 DL=1 X2 D0 X3 DL=2 ; No effect DL2 of D0 is zero (same as ; programming T0 D2) ; Deselect offset ; Offset D2 + sum offset 1 are activated
Example 2
Machine data are to be used to define that offset D2 and sum offset DL=1 are activated on a tool change ($MC_CUTTING_EDGE_DEFAULT=2, $MC_SUMCORR_DEFAULT=1):
T5 M06 ; Tool number 5 is loaded D2 + DL=1 ; are active (= values of MDs) ; Offset D1 + sum offset 3 of D1 are activated
; Sum offset deselection, only offset D1 is now active ; Offset D2 is activated sum offset DL=1 is ; activated
X1 DL=2 D1 ; Offset D2 + sum offset 2 are activated ; Offset D1 + sum offset 1 are activated
1/W1/2-126
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 3.1
Tool Offset (W1) Flat D number structure (SW 4.1 and higher)
Supplementary Conditions
3.1 Flat D number structure (SW 4.1 and higher)
Grinding tools
Grinding tools (tool types 400499) cannot be defined using the simple tool management structure (flat D numbers).
T number output to PLC triggers a synchronization process in the NCK: With absolute, indirect D programming, the PLC returns the D values via VDI. The NCK waits until the output of a T number is followed by a response from the PLC: I have written the D number. With block search without calculation, this process of synchronization must be deactivated until the first valid T number has been output again. That means that the NCK must not wait on D programming.
Note MD $MC_AUXFU_AT_BLOCK_SEARCH_END can be used to control the timing of output of auxiliary functions to PLC at the end of a block search automatically on End, or on NC Start.
REORG
The (only) writable variable $A_MONIFACT which is defined here is stored by a main run data. Since the write process takes place synchronously to the main run, no special measures are required for Reorg.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/3-127
Tool Offset (W1) 3.1 Flat D number structure (SW 4.1 and higher)
10.00
Notes
1/W1/3-128
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
18088 MM_NUM_TOOL_CARRIER MD number Default setting: 0 Minimum input limit: 0 Maximum input limit: 99999999 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 4.1 Significance: The maximum number of toolholders that can be defined for orientational tools in the TO range. The value is divided by the number of active TO units. The whole number indicates how many toolholders can be defined per TO unit. The data for definition of a toolholder are set using the system variables $TC_CARR1, ... $TC_CARR17. Application example(s) 2 channels are active and there is one TO unit on each channel (=preset). 3 carriers are to be defined in channel 1, one in channel 2. The value to be set is 6, since 6 / 2 = 3, i.e. maximum 3 carrier definitions in each TO unit.
18102 MM_TYPE_OF_CUTTING_EDGE MD number Activation of flat D number management Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 4 Significance: This MD activates the flat D number management function. The individual values determine the type of D programming: direct or indirect programming. MD= 0 The standard value is zero. This means that the NCK manages the T and D numbers. 1 The value 1 means that D numbers are programmed direct and as absolute values. Activation (change value from 0 to > 0) or deactivation (change value from >0 to 0) causes a reconfiguration of the buffered memory; i.e. the data are deleted. A value >0 is only accepted by the NCK if bit 0 is not enabled in MD 18080: MM_TOOL_MANAGEMENT_MASK, i.e. the tool management function must not be active at the same time. Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-129
10.00
18105 MM_MAX_CUTTING_EDGE_NO MD number Maximum value of D number Default setting: 9 Minimum input limit: 1 Maximum input limit: 32000 Changes effective after POWER ON Protection level: 7/2 Unit: Number Data type: DWORD Applies from SW 5.1 Significance: Definition of maximum D number value The maximum number of D numbers per tool is not affected (defined in MD 18106: MM_MAX_CUTTING_EDGE_PERTOOL). D number assignment monitoring is only effective on the definition of new D numbers. Existing data sets are not verified automatically if this machine data is changed. The machine data is not evaluated with the flat D number function. When the relation between the maximum D number value and the maximum cutting edge number per tool is changed, the buffered memory requirements also change (both default values are identical). Related to .... MD 18106: MM_MAX_CUTTING_EDGE_PER TOOL
18106 MM_MAX_CUTTING_EDGE_PERT OOL MD number Maximum number of cutting edges per tool Default setting: 9 Minimum input limit: 1 Maximum input limit: 12 Changes effective after POWER ON Protection level: 7/2 Unit: Number of Data type: DWORD Applies from SW 5.1 Significance: Definition of the maximum number of cutting edges (D offsets) per tool (T number). This machine data provides a high level of security during data definition by allocating the maximum number of cutting edges actually available for a tool (e.g. for a tool with only one cutting edge). Up to 12 offsets can be allocated per tool. The machine data is not evaluated with the flat D number function. When the relation between the maximum D number value and the maximum cutting edge number per tool is changed, the buffered memory requirements also change (both default values are identical). Related to .... MD 18105: MM_MAX_CUTTING_EDGE_NO
1/W1/4-130
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.1
18108 MM_NUM_SUMCORR MD number Number of all sum offsets in NCK Default setting: 1 Minimum input limit: 1 Maximum input limit: *) Changes effective after POWER ON Protection level: 7/2 Unit: Number of Data type: DWORD Applies from SW 5.1 Significance: Value Meaning 1 The number of sum offsets is equal to the product of the number of cutting edges and the number of sum offsets per cutting edge. You can select a value less than the above product so that the system only reserves buffered memory for the actual number of sum offsets. If setup compensation is active, the memory required for a sum offset is doubled.
>0
*) The maximum value is calculated from the product of the upper limit of the number of cutting edges and number of sum offsets per cutting edge machine data. Related to .... MD 18100: MD 18110: MD 18112: MM_NUM_CUTTING_EDGES_IN_T OA MM_MAX_SUMCORR_PERCUTTING_EDGE MM_KIND_OF_SUMCORR
18110 MM_MAX_SUMCORR_PER_CUTTEDGE MD number Maximum number of sum offsets per cutting edge Default setting: 1 Minimum input limit: 1 Maximum input limit: 6 Changes effective after POWER ON Protection level: 7/2 Unit: Number of Data type: DWORD Applies from SW 5.1 Significance: Defines the maximum number of sum offsets per cutting edge The effect of this machine data depends on the value of MD 18108. MM_NUM_SUMCORR > 1 This data does not reserve memory and is used exclusively for monitoring purposes. MM_NUM_SUMCORR = 1 The machine data reserves memory. Related to .... MD 18108: MD 18100: MM_NUM_SUMCORR MM_NUM_CUTTING_EDGES_IN_T OA
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-131
10.00 10.00
18112 MM_KIND_OF_SUMCORR MD number Properties of sum offsets in the NCK Default setting: 0 Minimum input limit: 0 Maximum input limit: 0x1F Changes effective after POWER ON Protection level: 7/2 Unit: Bit mask Data type: INT Applies from SW 5.1 Significance: Defines the properties of sum offsets in the NCK: Bit no. Value 0 0 1 Meaning The sum offsets are saved with the tool data during data backup. The sum offsets are not saved with the tool data during data backup. The setup offsets are saved with the tool data during data backup. The setup offsets are not saved with the tool data during data backup If you use the tool management function: The existing sum/setup offsets are not changed when you activate a tool. The existing sum/setup offsets are not changed when you activate a tool. The existing sum offsets are set to zero when you activate a tool. The setup offsets are not changed. If you use the tool management plus adapter function: A transformation of the sum offsets is performed. There is no transformation of sum offsets. There are no setup offset data sets. The setup offset data sets are created. The sum offset is then calculated from the sum of the setup offset and sum offset fine
0x1
0 1 0x2
0x4
0 1 0x8
0 1
0x10
Related to ....
Changes to the state of bits 0, 1, 2, 3 do not affect the memory configuration. A change to bit 4 reconfigures the buffered memory on the next POWER ON. MD 18080: MM_TOOL_MANAGEMENT_MASK MD 18086: MM_NUM_MAGAZINE_LOCATION MD 18104: MM_NUM_TOOL_ADAPTER MD 20310: TOOL_MANAGEMENT_MASK
18114 MM_ENABLE_TOOL_ORIENT MD number Assign orientation to cutting edges Default setting: 0 Minimum input limit: 0 Maximum input limit: 2 Changes effective after POWER ON Protection level: 7/2 Unit: Data type: DWORD Applies from SW 5.3 Significance: Assigns an orientation that differs from the default to each tool cutting edge. Value 1: System variable $TC_DPV1[n, m] is assigned to each cutting edge. This parameter can be used to define one of 6 possible tool orientations in the positive or negative coordinate direction. Value 2: In addition to system variable $TC_DPV1[n, m], a further three system variables $TC_DPV2[n, m], $TC_DPV3[n, m] and $TC_DPV4[n, m] are assigned and can be used to define any define any tool orientation. The identifiers n and m stand for the T and D number. This machine data does not affect the amount of batterybacked memory required.
Related to ....
1/W1/4-132
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
4.2
20096 T_M_ADDRESS_EXT_IS_SPINO MD number Address extension interpreted as spindle number Default setting: FALSE Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 7/2 Unit: Bool Data type: BOOLEAN Applies from SW 5.1 Significance: Only relevant when tool management function inactive: Value FALSE Meaning The contents of the address extensions of NC addresses T and M are not evaluated by the NCK. The PLC determines the meaning of the programmed extension The address extensions of NC addresses T and M are interpreted as a spindle number. The NCK handles the extension in the same way as when tool management is active. The programmed D number therefore always refers to the programmed main spindle number (tool change command number= TOOL_CHANGE_M_CODE; the default value is 6). SPIND_DEF_MASTER_SPIND TOOL_CHANGE_MODE TOOL_CHANGE_M_CODE
TRUE
Related to ....
20126 TOOL_CARRIER_RESET_VALUE MD number Active toolholder on RESET Default setting: 0 Minimum input limit: 0 Maximum input limit: plus Changes effective after RESET Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 4.1 Significance: To specify the toolholder that is used to the select the tool length compensation during power-up and reset or parts program end, depending on the MD: $MC_RESET_MODE_MASK and for parts program start according to MD: $MC_START_MODE_MASK. This data is only valid without tool management. References FBW
20132 SUMCORR_RESET_VALUE MD number Number for selecting sum offset Default setting: 0 Minimum input limit: 0 Maximum input limit: 6 Changes effective after RESET Protection level: 7/2 Unit: Number Data type: DWORD Applies from SW 5.1 Significance: Defines the sum offset number used to select the sum offset on POWER ON and Reset or end of parts program (depending on RESET_MODE_MASK) and on parts program start (depending on START_MODE_MASK). The machine data MD 18108: MM_NUM_SUMCORR determines the maximum value for entry. Related to .... MD 20110: RESET_MODE_MASK MD 20112: START_MODE_MASK MD 20130: CUTTING_EDGE_RESET_VALUE MD 18108: MM_NUM_SUMCORR
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-133
06.03 10.00
20180 TOCARR_ROT_ANGLE_INCR[i] MD number Value of the minimum incremental step with orientational toolholder Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after NewConfig Protection level: 3 / 7 Unit: degrees Data type: DOUBLE Applies from SW 5.3 Significance: With orientational toolholders this machine data provides the minimum incremental step with which the first or the second orientation axis can be changed (e.g. with Hirth tooth system). A programmed or calculated angle value is rounded up or down to the closest value calculated from =s+n*d when n is an integer. s = $MC_TOCARR_ROT_ANGLE_OFFSET[i] and d = $MC_TOCARR_ROT_ANGLE_INCR[i] If this machine data is zero, no rounding takes place.
20182 TOCARR_ROT_ANGLE_OFFSET[i] MD number Offset of the rotary axis with orientational toolholder Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after NewConfig Protection level: 3 / 7 Unit: degrees Data type: DOUBLE Applies from SW 5.3 Significance: For orientational toolholders this machine data provides the offset of the rotary axis if its position cannot be changed continuously. It is only evaluated if $MC_TOCARR_ROT_ANGLE_INCR is not zero. For the detailed meaning of this machine data, please see the description of $MC_TOCARR_ROT_ANGLE_INCR.
20184 TOCARR_BASE_FRAME_NUMBER MD number Basis frame of the table offset for orientational toolholder with rotary table Default setting: 1 Minimum input limit: 1 Maximum input limit: FRAMES1 Changes effective after NewConfig Protection level: 3 / 7 Unit: Data type: DWORD Applies from SW 5.3 Significance: This machine data the channel-specific basis frame to which the table offset of an orientational toolholder with rotary table is written. To avoid unintentional shifting of the coordinate system, it is urgently recommended not to use the specified basis frame additionally for other purposes. This machine data must refer to a valid basis frame. If its contents are less than zero or greater than or equal to the maximum number of basis frames set in $MC_MM_NUM_BASE_FRAMES, selection of a corresponding toolholder produces an alarm.
20188 TOCARR_BASE_FINE_LIM_LIN MD number Limit linear fine offset TCARR Default setting: 1,0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 3 / 7 Unit: POSN_LIN Data type: DOUBLE Applies from SW 6.4 Significance: This machine data defines the input limit for the linear fine offset values or an orientable toolholder for each channel. Related to .... SD 42974: TOCARR_FINE_CORRECTION
1/W1/4-134
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
20190 TOCARR_BASE_FINE_LIM_ROT MD number Limit rotary fine offset TCARR Default setting: 1,0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 3 / 7 Unit: POSN_ROT Data type: DOUBLE Applies from SW 6.4 Significance: This machine data defines the input limit for the linear fine offset values or an orientable toolholder for each channel. Related to .... SD 42974: TOCARR_FINE_CORRECTION
20202
WAB_MAXNUM_DUMMY_BLOCKS
MD number Maximum number of blocks with no traversing motions with SAR Default setting: 5, 5, 5, 5, 5, ...,, Minimum input limit: 1 Maximum input limit: 10 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 4.3 Significance: Maximum number of blocks which can appear between the SAR block and the traversing block which determines the direction of the approach or retraction tangent.
20204 WAB_CLEARANCE_TOLERANCE MD number Defined tolerance for the point defined by DISCL for SAR Default setting: 0.001 Minimum input limit: 0 Maximum input limit: Changes effective after POWER ON Protection level: 2 / 7 Unit: mm Data type: REAL Applies from SW 4.4 Significance: During soft approach and retraction, the point defined by DISCL from which the infeed traverse from the initial plane is performed at lower velocity (G341) or the point at which the actual approach movement starts (G340) must lie between the initial plane and the approach plane. If the point is outside this interval and the deviation is less than or equal to this machine data, it is assumed that the point is within the approach or retraction plane. If the deviation is greater, alarm 10741 (PRAL_WAB_DIRECTION_CHANGE) is output.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-135
10.00
20210 CUTCOM_CORNER_LIMIT MD number Max. angle for intersection calculation with tool radius compensation Default setting: 100.0 Minimum input limit: 0.0 Maximum input limit: 150.0 Changes effective after RESET Protection level: 2 / 7 Unit: degrees Data type: DOUBLE Applies from SW 1.1 Significance: Where outside corners are very pointed, G451 can result in excessive idle paths (see Fig. 2-14). The system therefore switches automatically from G451 (intersection) to G450 (transition circle, with DISC where appropriate) when the outside corners are very pointed. The contour angle which can be traversed following this automatic switchover (intersection > transition circle) can be defined in CUTCOM_CORNER_LIMIT.
Contour angle
1/W1/4-136
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
20220 CUTCOM_MAX_DISC MD number Maximum value for DISC Default setting: 50.0 Minimum input limit: 0.0 Maximum input limit: 75.0 Changes effective after RESET Protection level: 2 / 7 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: The G450 transition circle does not produce sharp outside contour corners because the path of the tool center point through the transition circle is controlled so that the cutting edge stops at the outside corner (programmed position). When sharp outside corners are to be machined with G450, the DISC instruction can be used to program an overshoot. This transforms the transition circle into a conic section and the cutting edge lifts off from the outside corner. The value range of the DISC instruction extends from 0 to theoretically 100 in steps of 1. DISC = 0 ... Overshoot disabled, transition circle active DISC = 100 ... Overshoot large enough to theoretically produce a response similar to intersection (G451). Programmed values of DISC which are higher than those stored in CUTCOM_MAX_DISC are limited to this maximum value without output of a message. A severely non-linear alteration in the path speed can thus be avoided.
Special cases:
DISC=0 DISC=25
DISC=100
Values over 50 are generally not advisable with DISC. It is therefore not possible to enter values >75.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-137
10.00
20230 CUTCOM_CURVE_INSERT_LIMIT MD number Maximum angle for intersection calculation with tool radius compensation Default setting: 10.0 Minimum input limit: 0.0 Maximum input limit: 150.0 Changes effective after RESET Protection level: 2 / 7 Unit: Data type: DOUBLE Applies from SW 1.1 Significance: Where the outside corners are very flat, the response with G450 (transition circle) and G451 (intersection) becomes increasingly similar. In this case, it is no longer advisable to insert a transition circle. One reason why it is not permitted to insert a transition circle at these outside corners with 5-axis machining, is that this would impose restrictions on the speed in contouring mode (G64). Where the outside corners are very flat, the system therefore switches automatically from G450 (transition circle, with DISC where appropriate) to G451 (intersection). The contour angle which can be traversed following this automatic switchover (transition circle > intersection) can be defined in CUTCOM_CURVE_INSERT_LIMIT .
Contour angle
20240 CUTCOM_MAXNUM_CHECK_BLOCKS MD number Blocks for predictive contour calculation with tool radius compensation Default setting: 3 Minimum input limit: 2 Maximum input limit: 10 Changes effective after RESET Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 1.1 Significance: In certain cases with inside corners and bottlenecks, multiple intersections of the equidistant paths are found in several consecutive blocks. In these cases, the last intersection is always used as the valid intersection (see figure). This maximum number of blocks used for the predictive check can be entered in CUTCOM_MAXNUM_CHECK_BLOCKS. It is only possible to check two or more consecutive blocks if the collision monitoring has been activated with CDON (see Subsection 2.3.6).
Shortened Contour
1/W1/4-138
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
20250 CUTCOM_MAXNUM_DUMMY_BLOCKS MD number Max. no. of dummy blocks with no traversing movements Default setting: 3 Minimum input limit: 0 Maximum input limit: 5 Changes effective after RESET Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 1.1 Significance: In general, only program blocks with positions on geometry axes in the current plane are programmed when tool radius compensation (TRC) is active. When TRC is active, however, it is still possible to program individual intermediate blocks containing no positional data for the current plane, e.g.: D Positions in infeed axis D Auxiliary functions D General: Blocks that find their way into the main run and are executed there The maximum number of such dummy blocks is specified by this MD. If this is exceeded, alarm 10762 Tool many blank blocks between 2 traversing blocks with active tool radius compensation is activated. Note: Comment blocks, arithmetic blocks and blank blocks are not dummy blocks as far as these MDs are concerned and can therefore be programmed in any quantity (without an alarm being activated).
20252 CUTCOM_MAXNUM_SUPPR_BLOCKS MD number Maximum number of blocks with offset suppression Default setting: 5 Minimum input limit: 0 Maximum input limit: 10 Changes effective after RESET Protection level: 2 / 7 Unit: Data type: BYTE Applies from SW 4 Significance: Indicates the maximum number of blocks for tool radius compensation active, in which the keep radius offset constant function (CUTCONON or reprogramming of G41/G42 during active TRC) may be active. Note: The restriction of the number of blocks with active CUTONON is necessary in order to carry out repositioning in this situation too. Increasing this value for the machine data can lead to an increased memory requirement for NC blocks. Related to ....
20256 CUTCOM_INTERS_POL Y_ENABLE MD number Intersection process possible for polynomials Default setting: 1 Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 2 Unit: Data type: BOOLEAN Applies from SW 4 Significance: If this machine data is TRUE, the transitions at outside edges corners where polynomials (splines) are involved can be handled using the intersection procedure while tool radius compensation is active. If the machine data is FALSE, conical (circular) cuts are always inserted in this case. If FALSE, the response is identical to that in software releases older than 4.0. Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-139
10.00
CUTTING_EDGE_DEFAULT Basic setting of tool cutting edge without programming Minimum input limit: 2 Maximum input limit: MD_SLMAXCUTTINGEDGENUMBER Changes effective after: POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 2 Significance: MD: CUTTING_EDGE_DEFAULT = 0 On tool change, the offset is deselected automatically. MD: CUTTING_EDGE_DEFAULT > 0 the cutting number set automatically becomes active after tool change. MD: CUTTING_EDGE_DEFAULT = 1; the cutting edge number of the old tool is retained and is selected for the new tool after tool change. MD: CUTTING_EDGE_DEFAULT = 2; after changing to the new tool, the 2nd cutting edge of this tool is used for machining if the 2nd cutting edge of the previous tool was used. The offset values of the last offset selected remain active until a D number is programmed. Tool management: This setting should be selected if axes still have to be travesred between tool change (e.g. M06) and offset selection Example: MD: CUTTING_EDGE_DEFAULT = 1; After tool change the first cutting edge is active, if no cutting edge is programmed.
20272 SUMCORR_DEFAULT MD number Number for activating a new cutting edge offset Default setting: 0 Minimum input limit: 0 Maximum input limit: 6 Changes effective after RESET Protection level: 7 / 2 Unit: Number Data type: DWORD Applies from SW 5.1 Significance: Defines the sum offset of the cutting edge which is activated when a new sum offset is activated. Related to .... MD 20270: CUTTING_EDGE_DEFAULT
1/W1/4-140
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
20360 TOOL_PARAMETER_DEF_MASK MD number Defines the effect of tool parameters Default setting: 0x0, 0x0, 0x0, 0x0, 0x0, Minimum input limit: 0 Maximum input limit: 0xFFFF ... Changes effective after: POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 4.1 (bit 9 in SW 6 and higher) Significance: Bit 0(LSB): For turning and grinding tools, the wear parameter of the transverse axis is calculated as a diameter value. The function is independent of DIAMON /DIAMOF, SW 5.3 and higher: Bit 1: For turning and grinding tools the tool length component of the transverse axis is calculated as a diameter value. Bit 2: If a wear component or length component is calculated as a diameter value, the tool may only be used in the planes which were active at tool selection. A change of planes produces an alarm. Bit 3: Zero offsets in frames in the transverse axis are calculated as diameter values. Bit 4: PRESET value is calculated as diameter value Bit 5: Work offsets external in the transverse axis are calculated as diameter values. Bit 6: Read actual values of the transverse axis as diameter values, (System variables: $AA_IW, $AA_IEN, $AA_IBN, $AA_IB, but not $AA_IM) independent of G code of the group 29 (DIAMON/DIAMOF). Bit 7: Display of all actual values of the transverse axis as diameter values independent of the G code of group 29 (DIAMON/DIAMOF). Bit 8: Always display distancetogo as radius in WCS. Bit 9: In SW 6 and higher, when a transverse axis is moved in DRF handwheel mode, only half the distance of the defined increment is traversed if machine data MD 11346: HANDWHEEL_TRUE_DISTANCE = 1 is set.
20390 TOOL_TEMP_COMP_ON MD number Activation of temperature compensation for tool length Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after RESET Protection level: 2 / 7 Unit: Number Data type: BOOLEAN Applies from SW 6.1 Significance: This machine data activates temperature compensation in the tool direction (see also setting data SD 42960: TOOL_TEMP_COMP). Related to .... SD 42960: TOOL_TEMP_COMP
20392 TOOL_TEMP_COMP_LIMIT MD number Maximum temperature compensation for tool length Default setting: 1.0 Minimum input limit: 0.0 Maximum input limit: plus Changes effective after RESET Protection level: 7 / 7 Unit: mm Data type: DOUBLE Applies from SW 6.1 Significance: This machine data specifies the maximum permissible temperature compensation value for tool length for each geometry axis. If a temperature compensation value higher than this limit is specified, it will be limited without an alarm. Related to .... SD 42960: TOOL_TEMP_COMP
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-141
10.00
20396 TOOL_OFFSET_DRF_ON MD number Handwheel override in tool direction Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after RESET Protection level: 2 / 7 Unit: Data type: BOOLEAN Applies from SW 6.1 Significance: This machine data activates the handwheel override in tool direction. If this machine data is set, an active handwheel override in the axis assigned to length L1 of the active tool is active in the direction defined by the tool orientation. Example: G17 is active, the tool is a milling tool, the tool length L1 is therefore assigned to the Z axis (of the 3rd geometry axis). If the tool (e.g. for active 5axis transformation) is rotated around the Y axis so that it points in the X direction, a handwheel override is acitve in the 3rd axis of the X axis. Related to ....
1/W1/4-142
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
22530 TOCARR_CHANGE_M_CODE MD number M code for change of toolholder Default setting: 0 Minimum input limit: 99999999 Maximum input limit: 99999999 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: DWORD Applies from SW 4.1 Significance: The value of this machine data determines the number of the M code output when a toolholder is activated at the VDI interface. If the MD is positive, the unchanged M code is always output. If the MD is negative, the number of the toolholder is added to the value of the machine data and the sum is output. Application example(s) MD value = 200 When TOCARR = 7 is programmed, M207 is output. Special cases, errors, ... If the number of the code to be output or the value of this MD itself is one of the values 0 to ... 6, 17 or 30, no M code is output. There is no monitoring for conflicts between such a generated M code and other functions. References Description of Functions H2
22550 TOOL_CHANGE_MODE MD number New tool offset with M function Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 Unit: Data type: BYTE Applies from SW 1.1 Significance: The T function is used to select a tool in a program. The setting in this machine data determines whether the new tool is loaded immediately on execution of the T function: MD: TOOL_CHANGE_MODE = 0 The new tool is loaded immediately on execution of the T function. This setting is used mainly on turning machines with tool turrets. MD: TOOL_CHANGE_MODE = 1 The new tool is prepared for loading on execution of the T function. When using milling machines with tool magazine, this setting is used mainly in order to bring the new tool into the tool change position without interrupting the machining process. The MD 22560: Remove the old tool from the spindle and load the new tool onto the spindle. In accordance with DIN 66025 his tool change is required to be programmed with the M function M06. Related to .... MD 22560: TOOL_CHANGE_M_CODE
22560 TOOL_CHANGE_M_CODE MD number M function for tool change Default setting: 6 Minimum input limit: 0 Maximum input limit: 9999 9999 Changes effective after POWER ON Protection level: 2 Unit: Data type: DWORD Applies from SW 1.1 Significance: If the T function is only used to prepare a new tool for a tool change (this setting is used mainly on milling machines with a tool magazine, in order to bring the new tool into the tool change position without interrupting the machining process), another M function must be used to trigger the tool change. The M function entered in TOOL_CHANGE_M_CODE triggers the tool change (remove old tool from spindle and insert new tool in spindle). This tool change is required to be programmed with M function M06, in accordance with DIN66025. Related to .... MD 22550: TOOL_CHANGE_MODE
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-143
10.00
22562 TOOL_CHANGE_ERROR_MODE MD number Error response on programmed tool change Default setting: 0 Minimum input limit: 0 Maximum input limit: 3 Changes effective after POWER ON Protection level: 7/2 Unit: Data type: DWORD Applies from SW 5.1 Significance: The default value = 0 of the machine data should not be changed when working with the setting TOOL_CHANGE_MODE = 0 (a tool change is only programmed with a T command). In this case, the value of the machine data has no effect. Bit no. Value 0 0 Meaning Default response The program stops at the NC block in which the error occurred. If an error occurs in the block with the tool change preparation, the alarm referring to the preparation command ( T ) is ignored until the associated tool change command (M06) is interpreted in the program execution. Only then does the system output the alarm which was triggered by the preparation command. It is therefore not possible for the user to make corrections until this block is reached. The value = 1 is only significant if the setting $MC_TOOL_CHANGE_MODE = 1 is used. Only when tool management is active (default response in this case). During tool change preparation, the NCK only detects tools whose data are assigned to a magazine. Only when tool management is active. The NCK loads a tool even if its data are known in the NCK but are not assigned to any magazine. In this case, the NCK attempts to assign the tool data automatically to the programmed spindle location. The prerequisite is that there is exactly one tool in the programmed tool group which could be loaded but which is not assigned to a magazine location. If several tools can be used, the NCK searches for an active tool again. If none is available, the tool with the lowest duplo number is selected. Default response Active D no. > 0 and active T no. = 0 produces an offset of zero Active DL no. > 0 and active D no. = 0 produces a total offset of zero Active D no. > 0 and active T no. = 0 triggers an alarm message Active DL no. > 0 and active D no. = 0 triggers an alarm message Relevant only when tool management is active. Function: Control of behavior of Init block generation on program START if disabled tool is in the spindle and needs to be activated. For further information, see especially: $MC_START_MODE_MASK, $MC_RESET_MODE_MASK. At RESET in particular, the response leave disabled tool active on the spindle is not affected.
1 0x1
1 0x2
1 0x4
Bits 3 and 4:
1/W1/4-144
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 4.2
TOOL_CHANGE_ERROR_MODE Error response on programmed tool change 3 0 Default settings: If the tool on the spindle is disabled: Generate tool change command which requests a replacement tool. If there is no such tool, an alarm is generated. 1 0x8 The disabled status of the spindle tool is ignored. The tool becomes active. The following parts program should be formulated such that no parts are machined with the disabled tool. Default settings: It is attempted to activate the spindle tool or its replacement tool.
1 0x10 If the tool on the spindle is disabled, then T0 is programmed in the START init block. Related to .... MD 22550: TOOL_CHANGE_MODE
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-145
10.00
4.3
Setting data
42442 TOOL_OFFSET_INCR_PROG SD number Retraction of tool offsets on incremental programming Default setting: 1 Minimum input limit: 0 Maximum input limit: 1 Changes effective after POWER ON Protection level: 2 / 7 Unit: Data type: BOOLEAN Applies from SW 4.3 Significance: 0: When incremental programming is used on an axis, only the programmed position delta is traversed. Tool length offsets are only traversed with absolute position specification. 1: When incremental programming is used on an axis, changes to tool length offsets are retracted after a tool change. (standard response up to SW 3) Related to .... SD 42440: FRAME_OFFSET_INCR_PROG
42470 CRIT_SPLINE_ANGLE SD number Limit angle for spline and polynomial interpolation and compressor Default setting: 0.0, ... Minimum input limit: Maximum input limit: Changes effective after Reset Protection level: 2/7 Unit: degrees Data type: DOUBLE Applies from SW 4.1 Significance: MD 42470 determines the maximum angle between two neighboring blocks that can still be deemed to be a tangent transition for polynomial interpolation (POLY). If the angles are smaller, the polynomials are adapted to obtain an exact tangential transition. For A or C spline interpolation, the block transitions are formed with a larger angle at the corner (the spline ends and starts again at a tangent to the programmed blocks). When the online compressor is active (COMPON), the compression does not cover block boundaries with large angles, i.e. large angles are retained. Related to ....
42480 STOP_CUTCOM_STOPRE SD number Alarm reaction for tool radius compensation and preprocessing stop Default setting: 1 Minimum input limit: Maximum input limit: Changes effective after Reset Protection level: 7 Unit: Data type: BOOLEAN Applies from SW 4.1 Significance: If this setting data is TRUE, block processing for preprocessing stop and active tool radius compensation is stopped and continued only after user confirmation. If the value is FALSE, processing is not interrupted at such a point in the program. Related to ....
1/W1/4-146
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
42490 CUTCOM_G40_STOPRE MD number Traversing response for tool offset on preprocessing stop Default setting: 0 Minimum input limit: 0 Maximum input limit: 1 Change effective after: immediately Protection level: 7 / 7 Unit: Data type: BOOLEAN Applies from SW 4.3 Significance: FALSE: If a feed stop (programmed or created internally by the control) is present before the deselect block (G40) for active too radius correction, the start point of the deselect block is approached before the last end point in front of the feed stop. Then, the deselect block is processed, i.e. tw3o traversing blocks are usually produced from the deselect block. No tool radius correction is active in the blocks. The behavior is therefore identical to the one before this setting data was introduced. TRUE: If a feed stop (programmed or created internally by the control) is present before the deselect block (G40) for active too radius correction, the start point of the deselect block is approached before the last end point in front of the feed stop. Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-147
10.00
42494 SD number
CUTCOM_ACT_DEACT_CTRL Approach/retraction behavior for tool radius compensation in blocks without travel information Default setting: 2222, .... Minimum input limit: Maximum input limit: Changes effective after POWER ON Protection level: 7 Unit: Data type: DWORD Applies from SW 5.2 Significance: The SD controls the approach and retraction behavior for tool radius compensation in cases in which the activation or deactivation block does not contain travel information. It is only evaluated for 21/2 TRC (CUT2D or CUT2DF). The coding is decimal: N N N N Approach behavior for tools with tool point direction (turning tools) Approach behavior for tools without tool point direction (milling tools) Retraction behavior for tools with tool point direction (turning tools) Retraction behavior for tools without tool point direction (milling tool) If the appropriate position contains a 1, then an approach or retraction is always performed, even if G41/G42 or G40 stands alone in the block, e.g. N100 X10 X0 N110 G41 N120 X20 If a tool radius of 10 mm is assumed in the above example, then block N110 traverses to the position X10 Y10. If the appropriate position contains a 2, then an approach or retraction is only performed, if at least one axis of the compensation plane is programmed in the activation/deactivation block. If the same result as in the above example is to be achieved with this setting, then the program must be changed as follows: N100 X10 X0 N110 G41 X10 N120 X20 If the axis specification X10 is missing in block N110, then activation of the TRC is delayed by one block, i.e. the activation block would be N120. If the significant position contains a different value than 1 or 2 (e.g. 0), there no approach or retraction in a block that does not contain traversing information. Tools with tool point direction: These are tools with tool numbers between 400 and 599 (turning/grinding tools) whose tool point direction has a value between 1 and 8. Turning and grinding tools with tool point direction 0 or 9, or with other undefined values, are treated like milling tools. Note If the value of this SD is changed within a program, it is recommended to program a preprocessing stop (STOPRE) before writing, as it may otherwise occur that the new value is used in preceding program sections. Related to ....
1/W1/4-148
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
42900 MIRROR_TOOL_LENGTH SD number Mirror tool length offset Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after Reset Protection level: 7 Unit: Data type: BOOLEAN Applies from SW 5.1 Significance: If this setting data is not equal to zero, the tool length components ($TC_DP3[ ..., ...] to $TC_DP5[ ..., ...]) and the components of the tool base dimension ($TC_DP21[ ..., ...] to $TC_DP23[ ..., ...]), whose associated axes are mirrored, are also mirrored, i.e. their sign is inverted. The wear values are not mirrored. If these are to be mirrored as well, setting data $SC_MIRROR_TOOL_WEAR must be enabled. Related to .... SD 42910: MIRROR_TOOL_WEAR SD 42920: WEAR_SIGN_CUTPOS SD 42930: WEAR_SIGN SD 42940: TOOL_LENGTH_CONST
42910 MIRROR_TOOL_WEAR SD number Mirror wear values of tool length compensation Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after Reset Protection level: 7 Unit: Data type: BOOLEAN Applies from SW 5.1 Significance: If this setting data is not equal to zero, the wear values of the tool length components whose associated axes are mirrored are also mirrored, i.e. their sign is inverted. The wear values are the sum of the actual tool wear values, the sum offsets and the setup offsets. Related to .... SD 42900: MIRROR_TOOL_LENGTH SD 42920: WEAR_SIGN_CUTPOS SD 42930: WEAR_SIGN SD 42940: TOOL_LENGTH_CONST
42920 WEAR_SIGN_CUTPOS SD number Mirror wear values of machining plane Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after Reset Protection level: 7 Unit: Data type: BOOLEAN Applies from SW 5.1 Significance: If this setting data is not equal to zero, the sign evaluation of the wear components in the machining plane depend on the tool point direction in the case of tools with a relevant tool point direction (turning and grinding tools, tool types 400 to 599). This setting data is ignored with tool types without a relevant tool point direction. In the following table, components whose sign is inverted if $SC_WEAR_SIGN_CUTPOS is not equal to zero are marked with an X. Tool point direction Length 1 Length 2 1 2 X 3 X X 4 X 5 6 7 X 8 X 9 The sign evaluations controlled by $SC_WEAR_SIGN_CUTPOS and $SC_MIRROR_TOOL_WEAR are independent of each other, i.e. if the sign of a component is inverted by both setting data, the resulting sign is unchanged. Related to .... SD 42910: MIRROR_TOOL_WEAR SD 42900: MIRROR_TOOL_LENGTH SD 42930: WEAR_SIGN SD 42940: TOOL_LENGTH_CONST
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-149
42930 WEAR_SIGN SD number Invert sign of all wear values Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after Reset Protection level: 7 Unit: Data type: BOOLEAN Applies from SW 5.1 Significance: If this setting data is not equal to zero, the sign of all wear dimensions is inverted. This affects both the tool length and other variables such as tool radius, rounding radius, etc. Entering a positive wear dimension makes the tool shorter and thinner. Related to .... SD 42910: MIRROR_TOOL_WEAR SD 42920: WEAR_SIGN_CUTPOS SD 42900: MIRROR_TOOL_LENGTH SD 42940: TOOL_LENGTH_CONST
42940 SD number
TOOL_LENGTH_CONST Retain the assignment of tool length components when changing the machining plane (G17 to G19) Default setting: 0 Minimum input limit: Maximum input limit: Changes effective after Reset Protection level: 7 Unit: Data type: DWORD Applies from SW 5.1 Significance: If this setting is not equal to zero, the assignment between tool length components (length, wear and tool base dimension) and geometry axes is not changed when the machining plane is changed (G17 G19). The assignment of tool length components to geometry axes is determined by the value of the setting data in accordance with the table below. A distinction is made between the assignment of turning and grinding tools (tool types 400 to 599) and other tools (typically milling tools). In the tables it is assumed that geometry axes 1 to 3 are named X, Y and Z. However, the axis sequence, and not the axis identifier, is the determining factor in the assignment of an offset to an axis. Assignment for turning and grinding tools (tool types 400 to 599): Plane Length 1 Length 2 Length 3 17 Y X Z 18* X Z Y 19 Z Y X 17 X Y Z 18 Z X Y 19 Y Z X * All values which are not equal to zero and which are not equal to one of the six values listed are handled in the same way as value 18. For values with the same figure but a different sign, the assignment of length 3 is identical, but lengths 1 and 2 are swapped. Assignment for all tools which are neither turning tools nor grinding tools (tool types < 400 or > 599): Plane Length 1 Length 2 Length 3 17* Z Y X 18 Y X Z 19 X Z Y 17 Z X Y 18 Y Z X 19 X Y Z * All values which are not equal to zero and which are not equal to one of the six values listed are handled in the same way as value 17. For values with the same figure but a different sign, the assignment of length 3 is identical, but lengths 1 and 2 are swapped. Related to .... SD 42900: MIRROR_TOOL_LENGTH SD 42910: MIRROR_TOOL_WEAR SD 42920: WEAR_SIGN_CUTPOS SD 42930: WEAR_SIGN SD 42950: TOOL_LENGTH_TYPE
1/W1/4-150
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 10.00
42935 WEAR_TRANSFORM SD number Transformation of wear data Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 7 Unit: Data type: DWORD Applies from SW 5.3 Significance: This bit-coded setting data specifies which of the three wear components $TC_DP12 $TC_DP14 wear, $TC_SCPx3 $TC_SCPx5 additive offset fine, $TC_ECPx3 $TC_ECPx5 additive offset coarse, are subjected to an adapter transformation and a transformation by an orientational toolholder if one of the G codes TOWMCS or TOWWCS from G code group 56 is active. If the initial setting G code TOWSTD is active, this setting data is not effective. The following assignment should be used: Bit 0 = TRUE: Bit 1 = TRUE: Bit 2 = TRUE: Transformation not at $TC_DP12 $TC_DP14 Transformation not at $TC_SCPx3 $TC_SCPx5 Transformation not at $TC_ECPx3 $TC_ECPx5
Related to ....
42950 TOOL_LENGTH_TYPE SD number Assign tool length components independent of tool type Default setting: 0 Minimum input limit: 0 Maximum input limit: Changes effective immediately Protection level: 7 / 7 Unit: Data type: DWORD Applies from SW 5.3 Significance: This setting data specifies the assignment between the tool length components and the geometry axes, independent of the tool type. The value range is from 0 to 2. Any other value is interpreted as 0. Value 0: The assignment is as standard. A distinction is made between grinding tools (tool types 400 to 599) and other tools (milling tools). Value 1: The assignment of tool length components is always the same as for milling tools, independent of the actual tool type. Value 2: The assignment of tool length components is always the same as for turning tools, independent of the actual tool type. The setting data is also effective for wear values assigned to the length components. If setting data SD 42940: TOOL_LENTH_CONST is set, the table defined for milling or turning tools defined by SD 42950: TOOL_LENFTH_TYPE is accessed, independent of the actual tool type, if the value of the latter setting data is not equal to zero. SD 42940: TOOL_LENGTH_CONST .
Related to ....
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/4-151
42960 TOOL_TEMP_COMP SD number Temperature compensation value in relation to tool Default setting: 0x0, 0x0, 0x0, 0x0, 0x0, Minimum input limit: Maximum input limit: ... Changes effective immediately Protection level: 7 / 7 Unit: Data type: DOUBLE Applies from SW 6.1 Significance: Temperature compensation value in relation to tool. The compensation value works as a vector according to the current rotation of the tool direction. This setting data is evaluated only if temperature compensation has been activated for tools with MD 20390: TOOL_TEMP_COMP_ON. The temperature compensation type for Offset in tool direction must also be set via bit 2 in MD 32750: TEMP_COMP_TYPE. Note Temperature compensation is an option which must be enabled in advance. Related to .... MD 20390: TOOL_TEMP_COMP_ON MD 32750: TEMP_COMP_TYPE
42974 TOCARR_FINE_CORRECTION SD number Fine offset TCARR on / off Default setting: FALS,E FALSE, Minimum input limit: Maximum input limit: FALSE, FALSE, FALS, ... Changes effective immediately Protection level: 7 / 7 Unit: Data type: BOOL Applies from SW 6.4 Significance: This setting data can be used to consider the fine offset values for an orientable toolholder. TRUE: The fine offset values are considered on activation of an orientable toolholder. FALSE: The fine offset values are not considered on activation of an orientable toolholder not taken into account. Related to .... MD 20188: TOCARR_FINE_LIM_LIN MD 20190: TOCARR_FINE_LIM_ROT
1/W1/4-152
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 6.1
Signal Descriptions
None
5
J
Examples
6.1 Example of orientational toolholders
6
The following example uses a toolholder which is described fully by a rotation around the Y axis. It is therefore sufficient to enter only one value to define the rotary axis (block N20). Blocks N50 to N70 describe an end mill with radius 5 mm and length 20 mm. Block N90 defines a rotation of 37 degrees around the Y axis. Block N120 activates the tool radius compensation and all settings are made to describe the offset in the following blocks with a rotation of 37 degrees around the Y axis.
N10 ; Definition of toolholder 1 N20 $TC_CARR8[1] = 1 ; Component of the first rotary axis in Y direction N30 N40 ; Definition of the tool offset memory T1/D1 N50 $TC_DP1[1,1] = 120 ; Shafttype milling cutter N60 $TC_DP3[1,1]= 20 ; Length 1 N70 $TC_DP6[1,1] = 5 ; Radius N80 N90 ROT Y37 ; 37 rotation about y axis N100 N110 X0 Y0 Z0 F10000 N120 G42 CUT2DF TCOFR TCARR = 1 T1 D1 X10 N130 X40 N140 Y40 N150 X0 N160 Y0 N170 M30
Request
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/6-153
10.00
6.1.1
Example of orientational toolholders with rotary table (SW 5.3 and higher)
For use of the MOV command it is assumed that the program is running on a 5-axis machine on which the tool rotates around the Y axis in case of a rotation of the B axis:
N10 TRAORI() N20 X0 X0 Z0 B45 F2000 N30 MOVT=10 N40 MOVT=AC(20) ; Setting of the tool orientation ; Infeed motion 10 mm in tool direction (under 45 degrees in the YZ plane) ; Return in tool direction to distance 20mm from ; zero point
Complete definition for the use of an orientational toolholder with rotary table:
N10 N20 $TC_DP1[1,1]= 120 $TC_DP3[1,1]= 13 ; Tool length 13 mm
; Definition of toolholder 1: N30 N40 N50 N60 N70 N80 $TC_CARR1[1] = 0 $TC_CARR2[1] = 0 $TC_CARR3[1] = 0 $TC_CARR4[1] = 0 $TC_CARR5[1] = 0 $TC_CARR6[1] = 15 ; X component of 1st offset vector ; Y component of 1st offset vector ; Z component of 1st offset vector ; X component of 2nd offset vector ; Y component of 2nd offset vector ; Z component of 2nd offset vector ; X component of 1st axis ; Y component of 1st axis ; Z component of 1st axis ; X component of 2nd axis ; Y component of 2nd axis ; Z component of 2nd axis ; Angle of rotation of 1st axis ; Angle of rotation of 2nd axis ; X component of 3rd offset vector ; Y component of 3rd offset vector ; Z component of 3rd offset vector ; X component of 4th offset vector ; Y component of 4th offset vector ; Z component of 4th offset vector ; Reference for 1st axis ; Reference for 2nd axis ; Type of toolholder
N90 $TC_CARR7[1] = 1 N100 $TC_CARR8[1] = 0 N110 $TC_CARR9[1] = 0 N120 $TC_CARR10[1] = 0 N130 $TC_CARR11[1] = 1 N140 $TC_CARR12[1] = 0 N150 $TC_CARR13[1] = 30 N160 $TC_CARR14[1] =30 N170 $TC_CARR15[1] = 0 N180 $TC_CARR16[1] = 0 N190 $TC_CARR17[1] = 0 N200 $TC_CARR18[1] = 0 N210 $TC_CARR19[1] = 0 N220 $TC_CARR20[1] = 15 N230 $TC_CARR21[1] = A N240 $TC_CARR22[1] = B N250 $TC_CARR23[1] = P
1/W1/6-154
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
N260 N270 N280 N290 N300 N310 N320 N330 N340 N350 N360 N370 N380 N390 N400
X0 Y0 Z0 A0 B45 F2000 TCARR=1 X0 Y10 Z0 T1 TCOABS PAROT X0 Y0 Z0 G18 MOVT=AC(20) G17 X10 Y0 Z0 MOVT=10 PAROTOF (SW 6 and higher), ROT (up to SW 5.3) TCOFR X10 Y10 Z13 A0 B0 ROTS X45 Y45 X20 Y0 Z0 D0 Y20 X0 Y0 Z20 M30
The definition of the orientational toolholder is given in full. The components which contain the value 0 need not actually be given, as they are preset to zero in any case. The toolholder is activated in N270. As $TC_CARR21 and $TC_CARR22 refer to the machine axes A and B and TCOABS is active, the values in $TC_CARR13 and $TC_CARR14 are ignored, i.e. the axis position A0 B45 is used for the rotation. The rotation of the 4th offset vector (length 15 mm in Z direction) around the B axis causes an offsetting of the zero point by X10.607 [= 15 * sin(45)] and Z4.393 [= 15 * (1.cos(45))]. This zero offset is taken into account by an automatically written basic or system frame so that the position X10.607 Y10.000 Z8.607 is approached. In the Z direction the tool selection leads to an additional offset of 13 mm; the Y components are not affected by the table rotation. N280 defines a rotation in accordance with the rotation of the table of the orientational toolholder. The new X direction thus points in the direction of the bisecting line in the 4th quadrant, the new Z axis in the direction of the bisecting line in the 1st quadrant. The zero point is approached in N290, i.e. the machine position X10.607 Y0 Z4.393, since the position of the zero point is not changed by the rotation. N300 traverses in Y to the position Y33.000, since G18 is active and the Y components are not affected by the active frame. The X and Z positions remain unchanged. The position X17.678 Y0 Z1.536 is approached in N310. N320 changes only the Z position to the value 8.464 as a result of the MOVT command. As only the table can be rotated, the tool orientation remains unchanged parallel to the machine Z direction, even if the Z direction of the active frame is rotated by 45 degrees. N330 deletes the basic or system frame; the frame definition from N280 is thus undone. In previous software versions older than SW 6, in which the disable command PAROTOF is not yet provided, the basic frame must be deleted explicitly, which can be carried out using the command $P_CHBFRAME[$MC_TOCARR_BASE_FRAME_NUMBER] = CTRANS(X,0).
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/6-155
10.00 10.00
In N340 TCOFR specifies that the orientational toolholder is to be aligned according to the active frame. Since a rotation is no longer active in N330 due to the PAROTOF command, the initial settings results. The frame offset becomes zero. N350 thus approaches the position X10 X10 Z0 (= Z13 + tool length). Caution: Through the simultaneous programming of both rotary axes A and B the actual position of the orientational toolholder is made to match that used in N340. The position approached by the three linear axes is dependent on this position, however. In N360 solid angles are used to define a plane whose intersecting lines in the XZ and in the YZ plane each form an angle of +45 degrees or 45 degrees with the X or Y axis. A plane defined in this way is therefore positioned as shown in Fig. 2-29, i.e. the surface normal is pointing in the direction of the space diagonal. N370 traverses to the position X20 Y0 Z0 in the new coordinate system. Since at the same time the tool is deselected with D0, there is no longer an additional offset in Z. Since the new X axis lies in the old XZ plane, this block reaches the machine position X14.142 Y0 Z14.142. N380 traverses on the Y axis in the rotated coordinate system. This leads to a motion of all three machine axes. The machine position is X5.977 Y16.330 Z22.307. N390 approaches a point on the new Z axis. Relative to the machine axes this is thus on the solid diagonal. All three axes thus reach the position 11.547.
6.1.2
A milling tool is defined with length L1=10 whose basic orientation is in the bisector of the XZ plane.
N10 $TC_DP1[1,1]=120 N20 $TC_DP3[1,1]=10 N30 N40 N50 N60 $TC_DPV [1,1] = 0 $TC_DPV3[1,1] = 1 $TC_DPV4[1,1] = 0 $TC_DPV5[1,1] = 1
Explanation of example: In N10 to N60, a milling tool is defined with length L1=10 (N20). The basic orientation is in the bisector of the XZ plane N40 to N60. In N70, the tool is activated and the zero position is approached. Machine axis positions X0 Y0 Z10 result in this block from the tool length. In N80, an incremental traversing movement of 10 is executed in the direction of the tool. The resulting axis positions are thus X7.071 Y0 Z17.071.
1/W1/6-156
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 6.1
6.1.3
A tool with adapter and orientational toolholder is defined in the following program example. In order to simplify the overview, only length L1 is different to zero for the additive and insert offsets and for the adapter. The offset vectors of the orientational toolholder are all zero.
N10 N20 N30 $TC_TP2[1] = MillingTool $TC_TP7[1] = 9 $TC_TP8[1] = 2 ; Identifier ; Location type ; Status : Enabled and not blocked
; D corr. D=1 N40 N50 N60 N70 N80 $TC_DP1[1,1]=120 $TC_DP3[1,1]=10. $TC_DP12[1,1]= 1. $TC_SCP13[1,1]=0.1 $TC_ECP13[1,1]=0.01 ; Tool type mill ; Length offset vector ; Wear ; Sum offset DL=1 ; Insert offset DL=1 ; Adapter transformation ; Adapter dimensions ; Magazine data ; Type of magazine: Revolver ; Identifier of a magazine ; Status of magazine ; Dimension row ; Dimension column > 2 locations ; Location type ; Location type ; Location state ; Bring adapter to location ; T number MillingTool ; Type of magazine: Buffer ; Identifier of a magazine ; Status of magazine ; Dimension row ; Dimension column > 1 location ; Location type ; Location type ; Location state ; Spindle number 1 ; Distance from spindle to Mag.1 ; Definition of toolholder 1 ; Component for 2nd rotary axis in X direction ; Angle of rotation of 2nd axis ; Tool Mode
N160 $TC_MPP1[1,1]=1 N170 $TC_MPP2[1,1]=9 N180 $TC_MPP4[1,1]=2 N190 $TC_MPP7[1,1]=1 N200 $TC_MPP6[1,1]=1 N210 N220 N230 N240 N250 N260 N270 N280 N290 N300 $TC_MAP1[9999]= 7 $TC_MAP2[9999]=Buffer $TC_MAP3[9999]=17 $TC_MAP6[9999]=1 $TC_MAP7[9999]=1 $TC_MPP1[9999,1]=2 $TC_MPP2[9999,1]=9 $TC_MPP4[9999,1]=2 $TC_MPP5[9999,1]=1 $TC_MDP2[1,1]=0
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/6-157
10.00
N340 N350 N360 N370 N380 N390 N400 N410 N420 N430 N440
stopre $SC_WEAR_TRANSFORM = B101 T0 D0 DL=0 ROT X30 G90 G1 G17 F10000 X0 Y0 Z0 T=MillingTool X0 Y0 Z0 TOWSTD T=MillingTool X0 Y0 Z0 TOWMCS T=MillingTool X0 Y0 Z0 TOWWCS TCARR=1 X0 Y0 Z0 G18 X0 Y0 Z0 m30 ; X 0.000 Y11.110 Z 0.001 ; X 0.000 Y10.100 Z 1.011 ; X 0.000 Y 9.595 Z 0.876 ; X 0.000 Y 6.636 Z 8.017 ; X10.100 Y0.504 Z 0.876
Starting at block N390, various methods are used to approach position X0 Y0 Z0. The machine positions reached are specified in the blocks in comments. After the program a description is given of how the positions were reached. N390: Adapter transformation 5 (block N90) transforms length L1 into length L2. Only the actual adapter dimension is not subject to this transformation. The Y value (L2 with G17) results from the sum of the tool length (10), tool wear (1), sum offset (0.1) and insert offset (0.01). The adapter dimension (0.001) is in Z (L1). N400: In block N350, bits 0 and 2 are enabled in setting data $SC_WEAR_TRANSFORM. This means that the tool wear and the insert offset are not subject to the transformation because of TOWMCS in block N400. The sum of these two offsets is 1.01. The Z position is therefore increased by this amount and the Y position is reduced by this amount compared with block N390. TOWWCS is active in N410. The sum of the tool wear and the insert offset is thus effective in the active workpiece coordinate system. In block N370, a rotation through 30 degrees is activated about the X axis. The original offset value of 1.01 in the Z direction thus yields a new Z component of 0.875 ( = 1.01 * cos(30)) and a new Y component of 0.505 ( = 1.01 * sin(30)). This yields the dimension specified in the program comment when added to the sum of the tool length, sum offset and adapter dimension produced in block N390. In addition, an orientational toolholder is activated in block N420. This executes a rotation through 45 degrees about the X axis (see N310 N330). Since all offset vectors of the toolholder are zero, there is no additional zero offset. The orientational toolholder acts on the sum of the tool length, sum offset and adapter dimension. The resulting vector component is X0 Y7.141 Z7.142. The sum of the tool wear and insert offset evaluated in the WCS is then added as in block N410. G18 is activated in N430. The components of the sum of the tool length, sum offset and adapter dimension are interchanged accordingly. The orientational toolholder continues to act on this new vector (rotation through 45 degrees about X axis). The resulting vector component is X10.100 Y0.0071 Z0.0071. The vector generated from the tool wear and insert offset (X0 Y0.505 Z0.875) is not affected by the plane change. The sum of the two vectors yields the dimension specified in the comment in N430.
1/W1/6-158
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00 7.2
7
Reference S5 S5 S5 S5 K1 K1 K1 K1 K1
DB number Channel-specific 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ... 21, ...
T function 1 change D function 1 change T function 1 D function 1 Active G function of group 7 Active G function of group 16 Active G function of group 17 Active G function of group 18 Active G function of group 23
7.2
Number
Machine data
Identifier Name Reference
General ($MN_ ... ) 18082 18088 18094 18096 18100 18102 18105 18106 18108 18110 MM_NUM_TOOL MM_NUM_TOOL_CARRIER MM_NUM_CC_TDA_P ARAM MM_NUM_CC_TOA_PARAM MM_NUM_CUTTING_EDGES_IN_T OA MM_TYPE_OF_CUTTING_EDGE MM_MAX_CUTTING_EDGE_NO MM_MAX_CUTTING_EDGE_PER TOOL MM_NUM_SUMCORR MM_MAX_SUMCORR_PER_CUTTEDGE Number of tools that the NCK can manage (SRAM) Number of toolholders Number of TOA data Number of TOA data which can be set up per tool and evaluated by the CC Tool offsets per TOA module Activate flat D number management (SW 4 and higher) Address extension interpreted as spindle number (SW 5 and higher) Maximum number of cutting edges per tool (SW 5 and higher) Number of all sum offsets in NCK (SW 5 and higher) Maximum number of sum offsets per cutting edge (SW 5 and higher) FBW, S7 FBW, S7 S7 S7
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/7-159
06.03 10.00
Name Properties of sum offsets in the NCK (SW 5 and higher) Assign orientation to cutting edges
Reference
Channel-specific ($MC_ ... ) 20096 20110 20120 T_M_ADDRESS_EXT_IS_SPINO RESET_MODE_MASK TOOL_RESET_VALUE Spindle number as address extension (SW 5 and higher) Definition of control basic setting after power-up and RESET parts program end Definition of tool for which tool length compensation is selected during power-up or on reset or parts program end as a function of MD 20110 Definition of the preselected tool for which the tool length compensation is selected during powerup and on reset or parts program end as a function of MD 20110 Active toolholder on RESET Definition of tool cutting edge for which tool length compensation is selected during powerup or on reset or parts program end as a function of MD 20110 Number for selecting sum offset (SW 5 and higher) Definition of transformation block which is selected during power-up and or RESET or parts program end as a function of MD 20110 Minimum incremental step for orientational toolholder (SW 5.3 and higher) Offset of the axis of rotation for orientational toolholder (SW 5.3 and higher) Base frame of the table offset for orientational toolholder with rotary table (SW 5.3 and higher) Limit linear fine offset TCARR (SW 6.4 and higher) Limit rotary fine offset TCARR (SW 6.4 and higher) Maximum number of blocks with no traversing motions with SAR K2 K2 FBW, S7 K2 K2
20121
TOOL_PRESEL_RESET_V ALUE
K2
20126 20130
TOOL_CARRIER_RESET_VALUE CUTTING_EDGE_RESET_VALUE
20132 20140
SUMCORR_RESET_VALUE TRAFO_RESET_VALUE
20188 20190 20202 20204 20210 20220 20230 20240 20250 20252
TOCARR_FINE_LIM_LIN TOCARR_FINE_LIM_ROT WAB_MAXNUM_DUMMY_BLOCKS WAB_CLEARANCE_TOLERANCE CUTCOM_CORNER_LIMIT CUTCOM_MAX_DISC CUTCOM_CURVE_INSERT_LIMIT CUTCOM_MAXNUM_CHECK_BLOCKS CUTCOM_MAXNUM_DUMMY_BLOCKS CUTCOM_MAXNUM_SUPPR_BLOCKS
Max. angle for intersection calculation with tool radius compensation Maximum value for tool radius compensation Minimum value for intersection calculation with tool radius compensation Blocks for predictive contour calculation with tool radius compensation Max. no. of dummy blocks with no traversing movements Maximum number of blocks with offset suppression (from SW 4)
1/W1/7-160
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
08.99 10.00
Number 20256 20270 20272 20360 20390 20392 20610 21080 22530 22550 22560 22562 28085 32750
Identifier CUTCOM_INTERS_POLY_ENABLE CUTTING_EDGE_DEFAULT SUMCORR_DEFAULT TOOL_PARAMETER_DEF_MASK TOOL_TEMP_COMP_ON TOOL_TEMP_COMP_LIMIT ADD_MOVE_ACCEL_RESERVE CUTCOM_PARALLEL_ORI_LIMIT TOCARR_CHANGE_M_CODE TOOL_CHANGE_MODE TOOL_CHANGE_M_CODE TOOL_CHANGE_ERROR_MODE MM_LINK_TOA_UNIT TEMP_COMP_TYPE
Name Intersection process possible for polynomials (from SW 4) Selected cutting edge after tool change Number for activating a new cutting edge offset (SW 5 and higher) Defines the effect of tool parameters Activation of temperature compensation for tool length (SW 6.1 and higher) Maximum temperature compensation for tool length (SW 6.1 and higher) Acceleration reserve for overlaid movements Limit angle between path tangent and tool orientation with 3D tool radius compensation M code for change of toolholder New tool offsets with M function M function for tool change Error response on programmed tool change (SW 5 and higher) Assignment of TO unit to a channel Temperature compensation type
Reference
K1 W5
FBW, S7 K3
7.3
Number 42442 42470 42480 42494
Setting data
Identifier TOOL_OFFSET_INCR_PROG CRIT_SPLINE_ANGLE STOP_CUTCOM_STOPRE CUTCOM_ACT_DEACT_CTRL Name Retraction of tool offsets on incremental programming Limit angle for spline and polynomial interpolation and compressor Alarm reaction for tool radius compensation and preprocessing stop (from SW 4) Approach/retraction behavior for tool radius compensation in blocks without travel information (SW 5.2 and higher) Mirror tool length offset Mirror wear values of tool length compensation Mirror wear values of machining plane Invert sign of all wear values Transformation of wear data Retain the assignment of tool length components when changing the machining plane (G17 to G19) Reference
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
1/W1/7-161
Name Assign tool length components independent of tool type (SW 5.3 and higher) Temperature compensation value referred to tool (SW 6.1 and higher) Fine offset TCARR on/off SW 6.4 and higher
Reference
7.4
Alarms
Detailed explanations of the alarms which may occur are given in References: /DA/, Diagnostics Guide or in the online help in systems with MMC 101/102/103.
1/W1/7-162
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Abbreviations
AC ACKNLG ADF ASCII ASUB AuxFu Basic axis
Adaptive Control Acknowledge from printer Autofeed printer American Standard Code for Information Interchange Asynchronous subprogram (see also interrupt routines) Auxiliary function
An axis whose setpoint or actual value is used to calculate a compensation value. Binary-coded decimal Basic coordinate system Binary Files Boot files for SIMODRIVE 611D Basic program Busy from printer Reference cam Compile Cycles Axis whose setpoint or actual value is modified by the compensation value.
BCD BCS BIN BOT BP BUSY CAM CC Compensation axis Compensation table Compensation value
Table of interpolation points. It provides the compensation values on the compensation axis for selected positions on the basic axis. The difference between the axis position measured by the encoder and the desired, programmmed position.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
A-1
Abbreviations
10.00
COR CPA CPU CR CRC CTS CUTCOM DAC DATA DB DBB DBW DBX DC
Coordinate rotation Compiler Projecting Data Central processing unit Carriage return Cutter radius compensation Clear to send for serial interfaces Cutter radius compensation Digital-to-analog converter Printer data bit x (x is an index from 0 to 7) Data block on the PLC Data block byte on the PLC Data block word on the PLC Data block bit on the PLC Direct control: movement of the rotary axis across the shortest path to the absolute position within one revolution Data carrier detect Data communication equipment Data input/output: data transfer display Directory Displacement thread end Displacement thread start Dual port memory Dual port RAM Differential resolver function
A-2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Abbreviations
Dry run feed(rate) Decoding single block Dynamic stiffness control Data set ready Data send ready on serial interfaces Data terminal equipment Data terminal ready Special punchtape code: number of punched holes per character always odd Encoder (actual value encoder) Erasable programmable read-only memory with permanently stored program Error from printer Extended stop and retract Function call on the PLC Feed drive First in first out: memory which operates without addresses where the data are always read out in the same order in which they were stored. Fine interpolator Force control Feed stop Geometry Gear interpolation data Signal ground Grinding wheel radius compensation Gear stage
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
A-3
Abbreviations
10.00
Gear stage changeover Global user data Grinding wheel peripheral (surface) speed SW procedure for imaging a large quantity of names on a finite memory area Hexadecimal number Human Machine Interface: User interface on numerical control systems for operator control, programming and simulation Hardware limit switch Implicit communication (global data) Interpolatory compensation Increment Initializing data Initialize printer A position of the basic axis and the corresponding compensation value of the compensation axis Interpolator Infeed/regenerative feedback unit of the SIMODRIVE 611(D) Interface signal Special punchtape code, number of punched holes per character always even Technology byte for ShopMill and ManualTurn controls Jog mode Transmission ratio Servo gain factor Leadscrew error compensation
HEX HMI
A-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Abbreviations
LED LF LR LUD Machine axis MCP MCS MD MDA mm MPF MSD NC NCK
Light emitting diode Line feed Position control (Lageregler) Local user data Physical axis on the machine tool Machine control panel Machine coordinate system Machine data Manual data automatic: manual input Millimeter Main program file: NC parts program (main program) Main spindle drive Numerical control Numerical Control Kernel: Numerical kernel with block preparation, traversing ranges, etc. Organization block on PLC Operator panel Operator panel interface Options In contrast to positioning axes, all path axes assigned to a channel are controlled by the interpolator such that they start, stop, accelerate and reach their end point simultaneously (one feedrate for all path axes). Personal computer Pulse enable for drive module Paper error Programming unit (Programmiergert)
PC PE PE PG
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
A-5
Abbreviations
10.00
PLC PMS1 PMS2 PRAL PRT PTP PUD RAM REF REPOS RI ROV RPA RPY RTLI RTS RXD SBL SEA SD SERUPRO SKP SLCT SM
Programmable logic controller Position measuring system 1 Position measuring system 2 Process alarm Program test Point-to-point Program global user data Random access memory, in which data can be read and written Reference point approach function Repositioning function Ring indicator Rapid (traverse) override R parameter active: memory area on the NCK for R parameter numbers Roll pitch yaw (type of rotation of a coordinate system) Rapid traverse linear interpolation Request to send (control signal on serial data interfaces) Receive data Single block Setting data active: memory area for setting data on the NCK Setting data Search run via program test Skip block Select from printer Stepper motor
A-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Abbreviations
SPF STROBE SW limit switch SYF SYNACT TCP TEA TLC TO TOA TOOLMAN TxD UFR V.24 V.28 VDI WCS WPD Xy ZO 450 550 75188
Subprogram file Data strobe to printer Software limit switch System files Synchronized action Tool center position Testing data active: refers to machine data Tool length compensation Tool offset Tool offset active: memory area for tool offsets Tool management Transmitted data User frame: zero offset Definition of the interchange circuit between DTE and DCE (RS 232-C) Definition of the electrical response of the signals Communication interface between PLC and NC Workpiece coordinate system Workpiece directory Connector identifer (y is the index) Zero offset Type of modern interface controller Type of modern interface controller Driver chip for serial interface
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
A-7
Abbreviations
10.00
Notes
A-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Definition of Terms
Absolute coordinate
A coordinate specifying the destination of an axis movement relative to the origin of the currently active coordinate system. See also Incremental coordinate.
Sequential block mode (DIN): A mode on NC systems in which a parts program is executed continuously.
Auxiliary functions
Auxiliary functions can be used in parts programs to pass parameters to the PLC where they trigger reactions defined by the machine manufacturer.
Axis address
Axis identifier
In compliance with DIN 66217, axes are identified with X, Y and Z for a righthanded, right-angled coordinate system. Rotary axes rotating around X, Y and Z are identified with A, B and C. Additional axes operating in parallel to those specified can be identified with other letters.
Axis name
B
The programmer uses axis names of the basic coordinate system in the parts program. The basic coordinate system exists in parallel to the machine coordinate system when no transformation is active. The two systems differ only in terms of the axis identifiers used.
Blank
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
B-9
Definition of Terms
10.00
Block
A section of a parts program terminated with a line feed. Blocks are divided into main blocks and subblocks.
Block
A block is a file which is required for program generation and program management.
C-axis
An axis around which a controlled rotation and positioning movement is performed with the workpiece spindle.
Channel
A channel can execute a parts program independently of other channels. A channel controls only those axes and spindles which have been assigned to it. It is possible to coordinate execution of parts programs in different channels by means of sychronization.
Circular interpolation
The tool is required to travel in a circle between defined points on the contour at a specified feedrate while machining the workpiece.
COM
Command channel
The PLC program uses the command channel to transfer or trigger NC functions (e.g. external S, transformation).
Contour
Outline of a workpiece
Continuous-path mode
The purpose of continuous-path mode is to prevent excessive braking of the path axes at the parts program block limits and to allow the axes to change to the next block at as constant a velocity as possible.
Coordinate system
D
A data unit on the PLC which can be accessed by HIGHSTEP programs. Data blocks contain data definitions. The data can be initialized directly during the definition.
Data block
Data word
B-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Definition of Terms
DRF
Differential resolver function: an NC function which generates an incremental zero offset in AUTOMATIC mode in conjunction with an electronic handwheel.
Exact stop
When an exact stop instruction is programmed, the position specified in a block is approached precisely and in some cases very slowly. In order to reduce the approach time, exact stop limits are defined for rapid traverse and normal speed/velocity.
If all path axes have reached their exact stop limit, then the control responds as if it had reached a target point exactly. Processing of the next block in the parts program commences.
F
Contour of the finished workpiece. See also Blank.
Machine tools can approach defined fixed points such as a tool change point, loading point, pallet change point, etc. The coordinates of these points are stored on the control. Where possible, the control system traverses these axes in Rapid traverse.
Frame
A frame is a calculation rule that translates one Cartesian coordinate system into another Cartesian coordinate system. A frame contains the components zero offset, rotation, scaling and mirroring.
G
Gantry axes consist of at least one machine axis pair, i.e. a master and a synchronized (slave) axis which are mechanically coupled. Consequently, the NC always traverses them simultaneously. The difference in the actual positions is monitored at all times.
Gantry axes
A gantry axis grouping is programmed (via machine data) to define which synchronized (slave) axes are to be controlled by which master axis. The master axis and synchronized axes cannot be traversed separately.
Geometry
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
B-11
Definition of Terms
10.00
Geometry axis
Geometry axes are used to describe a 2 or 3-dimensional area in the workpiece coordinate system.
H
Combination of programming features for PLCs of the AS300/AS400 system.
HIGHSTEP
Traversing distance calculated from the number of increments x increment length. The number of increments can be stored in a setting data or selected with keys labelled for 10, 100, 1000, 10 000.
Incremental coordinate
Specification of a destination of an axis movement through a distance and direction to be travelled in relation to a point already reached. See also Absolute coordinate.
Initialization block
Initialization blocks are special program blocks. They contain values which are assigned prior to execution of the program. Initialization blocks are used primarily for initializing predefined data.
Interpolator
Logical unit of the NCK which determines intermediate values for the movements to be traversed on the individual axes on the basis of destination positions specified in the parts program.
JOG
A mode on the control: a manual setup mode Manual operating mode that allows the operator to manually control the traversing movements of the axis in feed or in rapid traverse.
Keywords
Words written in a specific way which have a defined meaning in the programming language for parts programs.
KUe
Transmission ratio
B-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Definition of Terms
Kv
Compensation for the mechanical inaccuracies of a leadscrew participating in the feed. The control uses stored deviation values for the compensation.
Limit speed
Max. (spindle) speed: The maximum speed of a spindle can be limited by machine data settings, commands from the PLC or by setting data.
Linear axis
The linear axis is an axis which, in contrast to a rotary axis, describes a straight line.
Linear interpolation
The tool must approach a target point along a straight line, machining the workpiece as it moves.
Machine axes
A point clearly defined by the machine tool; e.g. machine reference point.
Operator panel on a machine tool with control elements such as keys, rotary switches, etc. and simple indicators such as LEDs. It is used to directly control the machine tool via the PLC.
Machine zero
Fixed point on the machine tool which can be referenced by all (derived) measuring systems.
Macro
A collection of instructions under a common identifier. The identifier in the program represents the collected sequence of instructions.
Main block
A block prefixed by : containing all the parameters required to start execution of a parts program.
Main program
A parts program identified by a number or identifier in which other master routines, subroutines or cycles can be called.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
B-13
Definition of Terms
10.00
Master axis
The master axis is the gantry axis which actually exists from the point of view of the operator and programmer and can therefore be controlled in the same ways as a normal NC axis.
MDA
A mode on the control: manual data automatic: manual input of blocks with execution.
Standardized system of units for lengths in millimeters (mm), meters (m), etc.
Mirroring exchanges the leading signs of the coordinate values of a contour in relation to an axis. Mirroring can be performed simultaneously in relation to several axes.
Mode group
Axes and spindles which are related in terms of the technical process can be combined to form a mode group. Axes/spindles belonging to one mode group can be controlled from one or several channels. The same operating mode is always assigned to the channels of the mode group.
NC
Numerical control. It incorporates all the components of the machine tool control system: NCK, PLC, MMC, COM.
NCK
Numerical control kernel: Component of the NC which processes parts programs and basically coordinates the sequence of motions on the machine tool.
Offset memory
Data area in the control system containing the tool offset data.
Operating mode
An operating concept on a SINUMERIK control. The modes JOG, MDA, and AUTOMATIC are defined.
Stops the workpiece spindle with a specified orientation angle, e.g. to perform an additional machining operation at a specific position. M function M19 is permanently assigned this function in compliance with DIN 66025.
Override
Manual control feature which enables the user to overstore programmed feedrates or speeds, in order to adapt them to a specific workpiece or material.
B-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Definition of Terms
Parts program
A sequence of instructions to the NC which combine to produce a specific workpiece by performing machining operations on a blank.
Path axis
Path axes are all the machining axes of the channel which are controlled by the interpolator such that they start, accelerate, stop and reach their end point simultaneously.
Path feed
The path feed is applied to path axes. It represents the geometric total of the feedrates of the participating geometry axes.
PLC
Programmable logic controller: a component of the NC: a control which can be programmed to control the logic on a machine tool.
Point-to-point time
The time taken to travel from the point of interruption on the contour with the spindle in motion back to the interruption point with the new tool and the spindle in motion.
Polar coordinates
A coordinate system which defines the position of a point in a plane in terms of its distance from the origin and the angle formed by the radius vector with a defined axis.
Positioning axis
An axis which performs an auxiliary movement on a machine tool (e.g. tool magazine, pallet transport). Positioning axes do not interpolate with the path axes.
Pre-coincidence
Block change occurs when the path has reached a defined delta distance from the end position.
Program block
Program blocks contain the main program and subprograms of the parts program.
Programmable frames
Programmable frames can be used to define new coordinate system starting points dynamically during execution of the parts program. A distinction is made between absolute definition using a new frame and additive definition with reference to an existing starting point.
Limitation of the area in which the tool can move to a space defined by programmed limits.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
B-15
Definition of Terms
10.00
Programming key
Characters and character sequences which have a defined meaning in the programming language for parts programs.
Protection area
Three-dimensional area within a working area which the tool tip may not enter.
Rapid traverse
Fastest traversing velocity of an axis. It is used, for example, to move the tool from its rest position to the workpiece contour or to retract the tool from the contour. Rapid traverse is programmed via machine data on a machine-specific basis.
Reference point
Point on the machine tool to which the measuring system of the machine axes is referred.
Rotation
Component of a frame which defines a rotation of the coordinate system through a specific angle.
Rotary axis
Rotary axes cause the workpiece or tool to rotate to a specified angle position.
Rounding axis
Rounding axes cause the workpiece or tool to rotate to an angle position described on a graduated grid. When the grid position has been reached, the axis is in position.
R parameter
Calculation parameter. The programmer of the parts programmer can assign or request the values of the R parameter as required.
S
Component of a frame which causes axis-specific alterations in the scale.
Scaling
Setting data
Data which provide the control with information on properties of the machine tool in a way defined by the system software.
Soft key
A key whose name appears on an area of the screen. The choice of soft keys displayed is adapted dynamically to the operating situation. The soft keys can be assigned to software functions by the user. The functions are displayed in the menu and change according to which menu is displayed.
B-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Definition of Terms
Subblock
Block prefixed by N containing information for an operation such as, for example, a position parameter.
Subprogram
A sequence of instructions of a parts program which can be called repeatedly with different defining parameters. A cycle is a type of subprogram.
Synchronized axis
The synchronized axis is the gantry axis whose setpoint position is always derived from the traversing motion of the master axis, thus ensuring that they both traverse synchronously. From the point of view of the operator and programmer, the synchronized axis is non-existent.
Synchronous axes
Synchronous axes require the same time for their distance as geometry axes for their path distance.
Synchronization
Instructions in parts programs for coordination of operations in different channels at specific machining points.
System variable
A variable which exists although it has not been programmed by the programmer of the parts program. It is defined by the data type and the variable name, which is prefixed with $. See also User-defined variable.
TOA area
The TOA area contains all tool and magazine data. As standard, this area corresponds with the channel area with regards to the data range. However, it is possible to define via MD that several channels share a TOA unit so that these channels have available common tool management data.
TOA unit
Each TOA area may contain several TOA units. The number of possible TOA units is limited by the maximum number of active channels. One TOA unit contains exactly one tool management data block and one magazine data block. From SW 4 and higher, an (optional) tool holder data block may be available.
Tool
A part used on the machine tool for machining, e.g. cutting tools, mills, drills, laser beams, etc.
When a contour is programmed, it is assumed that a pointed tool is used. Since this is not feasible in practice, the control makes allowance for the curvature radius of the tool being used. The curvature centre point displaced by the curvature radius is guided equidistantly to the contour.
Tool offset
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
B-17
Definition of Terms
10.00
In order to program a desired workpiece contour directly, the control must traverse a path equidistant to the programmed contour with allowance for the radius.
Transformation
U
Users can define variables in the parts program for their own use. A definition contains a data type specification and the variable name. See also System variable.
User-defined variable
Variable definition
A variable definition includes the specification of a data type and a variable name. The variable name can be used to address the value of the variable.
Velocity control
In order to achieve an acceptable traversing speed for traversing motions over very short distances, velocity control combined with Look Ahead over several blocks can be programmed.
Working area
Three-dimensional space into which the tool tip can travel on the basis of the machine tool design. See also Protection area.
Workpiece
Workpiece contour
The workpiece coordinate system has its origin in the workpiece zero. When programming in the workpiece coordinate system, the dimensions and directions refer to this system.
Workpiece zero
The workpiece zero is the origin of the workpiece coordinate system. It is defined by the distance to the machine zero.
B-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
10.00
Definition of Terms
Zero offset
Specification of a new reference point for a coordinate system by means of a reference to an existing zero point and a frame.
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
B-19
Definition of Terms
10.00
Notes
B-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
References
C
SINUMERIK & SIMODRIVE, Automation Systems for Machine Tools Catalog NC 60 Order No.: E86060-K4460-A101-A9-7600
General Documentation
/BU/
/IKPI/
/ST7/
SIMATIC Products for Totally Integrated Automation and Micro Automation Catalog ST 70 Order No.: E86060-K4670-A111-A8-7600
/Z/
MOTION-CONNECT Cable, Connectors & System Components for SIMATIC, SINUMERIK, Masterdrives and SIMOTION Catalog NC Z Order No.: E86060-K4490-A001-B1-7600
Electronic Documentation
/CD1/
The SINUMERIK System (11.03 Edition) DOC ON CD (includes all SINUMERIK 840D/840Di/810D/802D/802SC and SIMODRIVE publications) Order No.: 6FC5298-6CA00-0BG4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
C-21
C References
11.03 10.00
User Documentation
/AUK/
SINUMERIK 840D/810D Short Guide AutoTurn Operation Order No.: 6FC5298-4AA30-0BP2 (09.99 Edition)
/AUP/
SINUMERIK 840D/810D (02.02 Edition) Operators Guide AutoTurn Graphic Programming System Programming/Setup Order No.: 6FC5298-4AA40-0BP3
/BA/
(10.00 Edition)
/BAD/
(11.02 Edition)
/BAH/
(11.02 Edition)
/BAK/
(02.01 Edition)
/BAM/
(08.02 Edition)
/BAS/
(11.02 Edition)
/BAT/
(06.03 Edition)
/BEM/
(11.02 Edition)
C-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.03 10.00
C References
/BNM/
(11.02 Edition)
/BTDI/
SINUMERIK 840D/840Di/810D Motion Control Information System (MCIS) Users Guide Tool Data Information Order No.: 6FC5297-6AE01-0BP0
(04.03 Edition)
/CAD/
SINUMERIK 840D/840Di/810D Operators Guide CAD Reader Order No.: (included in online help)
(03.02 Edition)
/DA/
(11.02 Edition)
/KAM/
(04.01 Edition)
/KAS/
(04.01 Edition)
/KAT/
(07.01 Edition)
/PG/
(11.02 Edition)
/PGA/
(11.02 Edition)
/PGK/
(10.00 Edition)
/PGM/
(11.02 Edition)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
C-23
C References
11.03 10.00
/PGT/
(11.02 Edition)
/PGZ/
(11.02 Edition)
/PI/
PCIN 4.4 Software for Data Transfer to/from MMC Module Order No.: 6FX2060 4AA00-4XB0 (English, French, German) Order from: WK Frth
/SYI/
(02.01 Edition)
Manufacturer/Service Documentation
a) Lists
/LIS/
(09.03 Edition)
b) Hardware
/ASAL/
SIMODRIVE (06.03 Edition) Planning Guide General Information for Asynchronous Motors Order No.: 6SN1197-0AC62-0BP0
/APH2/
(07.03 Edition)
/APH4/
(07.03 Edition)
/APH7/
(06.03 Edition)
C-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.03 10.00
C References
/APL6/
(07.03 Edition)
/BH/
(09.03 Edition)
/BHA/
SIMODRIVE Sensor (03.03 Edition) Users Guide (HW) Absolute Position Sensor with PROFIBUS DP Order No.: 6SN1197-0AB10-0YP2
/EMV/
SINUMERIK, SIROTEC, SIMODRIVE Planning Guide (HW) EMC Installation Guide Order No.: 6FC5297-0AD30-0BP1
(06.99 Edition)
The current Declaration of Conformity is available under the following Internet address: http://www4.ad.siemens.de Please enter the ID No.: 15257461 in the Search field (top right) and click on go.
/GHA/
SINUMERIK/SIMOTION ADI4 Analog Drive Interface for 4 Axes Manual Order No.: 6FC5297-0BA01-0BP1
(09.03 Edition)
/PFK6/
(05.03 Edition)
/PFK7/
(01.03 Edition)
/PFS6/
(07.03 Edition)
/PFT5/
(05.03 Edition)
/PFT6/
(05.03 Edition)
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
C-25
C References
11.03 10.00
/PHC/
(11.02 Edition)
/PHD/
(09.03 Edition)
/PJAL/
SIMODRIVE 611 / Masterdrives MC Planning Guide Three-Phase AC Servomotors General Part Order No.: 6SN1197-0AD07-0BP0
(01.03 Edition)
/PJAS/
SIMODRIVE (07.03 Edition) Planning Guide Asynchronous Motors (Compendium) Order No.: 6SN1197-0AC61-0BP0
/PJFE/
SIMODRIVE Planning Guide 1FE1 Built-In Synchronous Motors Three-Phase AC Motors for Main Spindle Drives Order No.: 6SN1197-0AC00-0BP4
(02.03 Edition)
/PJF1/
SIMODRIVE (12.02 Edition) Installation Guide 1FE1 051.1FE1 147. Built-In Synchronous Motors Three-Phase AC Motors for Main Spindle Drives Order No.: 610.43000.02
/PJLM/
SIMODRIVE Planning Guide 1FN1, 1FN3 Linear Motors ALL General Information about Linear Motors 1FN1 1FN1 Three-Phase AC Linear Motor 1FN3 1FN3 Three-Phase AC Linear Motor CON Connections Order No.: 6SN1197-0AB70-0BP4
(06.02 Edition)
/PJM/
SIMODRIVE (11.00 Edition) Planning Guide Motors Three-Phase AC Servo Motors for Feed and Main Spindle Drives Order No.: 6SN1197-0AC20-0BP0
/PJM2/
SIMODRIVE (07.03 Edition) Planning Guide Servomotors Three-Phase AC Motors for Feed and Main Spindle Drives Order No.: 6SN1197-0AA20-0BP4
C-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.03 10.00
C References
/PJTM/
SIMODRIVE Planning Guide 1FW6 Integrated Torque Motors Order No.: 6SN1197-0AD00-0BP0
(05.03 Edition)
/PJU/
(02.03 Edition)
/PKTM/
SIMODRIVE Planning Guide 1FW3 Complete Torque Motors Order No.: 6SN1197-0AC70-0BP0
(09.03 Edition)
/PMH/
SIMODRIVE Sensor Configuring/Installation Guide (HW) Hollow-Shaft Measuring System SIMAG H Order No.: 6SN1197-0AB30-0BP1
(07.02 Edition)
/PMHS/
SIMODRIVE (12.00 Edition) Installation Guide Measuring System for Main Spindle Drives SIZAG2 Toothed-Wheel Encoder Order No.: 6SN1197-0AB00-0YP3
/PMS/
SIMODRIVE (02.03 Edition) Planning Guide ECO Motor Spindle for Main Spindle Drives Order No.: 6SN1197-0AD04-0BP1
/PPH/
SIMODRIVE Planning Guide 1PH2, 1PH4, 1PH7 Motors AC Induction Motors for Main Spindle Drives Order No.: 6SN1197-0AC60-0BP0
(12.01 Edition)
/PPM/
SIMODRIVE Planning Guide Hollow-Shaft Motors for 1PM4 and 1PM6 Main Spindle Drives Order No.: 6SN1197-0AD03-0BP0
(11.01 Edition)
c) Software
/FB1/
SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (Part 1) (the various sections are listed below) Order No.: 6FC5297-6AC20-0BP3 A2 A3 B1 B2 D1
(11.03 Edition)
Various Interface Signals Axis Monitoring, Protection Zones Continuous-Path Mode, Exact Stop and Look Ahead Acceleration Diagnostic Tools
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
C-27
C References
11.03 10.00
D2 F1 G2 H2 K1 K2 K4 N2 P1 P3 R1 S1 V1 W1
Interactive Programming Travel to Fixed Stop Velocities, Setpoint/Actual Value Systems, Closed-Loop Control Output of Auxiliary Functions to PLC Mode Group, Channel, Program Operation Mode Axes, Coordinate Systems, Frames, Actual Value System for Workpiece, External Zero Offset Communication EMERGENCY STOP Transverse Axes Basic PLC Program Reference Point Approach Spindles Feeds Tool Offset
/FB2/
SINUMERIK 840D/840Di/810D(CCU2) (11.02 Edition) Description of Functions Extended Functions (Part 2) including FM-NC: Turning, Stepper Motor (the various sections are listed below) Order No.: 6FC5297-6AC30-0BP2 A4 Digital and Analog NCK I/Os B3 Several Operator Panels and NCUs B4 Operation via PG/PC F3 Remote Diagnostics H1 JOG with/without Handwheel K3 Compensations K5 Mode Groups, Channels, Axis Replacement L1 FM-NC Local Bus M1 Kinematic Transformation M5 Measurement N3 Software Cams, Position Switching Signals N4 Punching and Nibbling P2 Positioning Axes P5 Oscillation R2 Rotary Axes S3 Synchronous Spindles S5 Synchronized Actions (up to and including SW 3) S6 Stepper Motor Control S7 Memory Configuration T1 Indexing Axes W3 Tool Change W4 Grinding
/FB3/
SINUMERIK 840D/840Di/810D(CCU2) Description of Functions Special Functions (Part 3) (the various sections are listed below) Order No.: 6FC5297-6AC80-0BP2 F2 G1 G3 K6 M3 S8 T3
(11.02 Edition)
3-Axis to 5-Axis Transformation Gantry Axes Cycle Times Contour Tunnel Monitoring Coupled Motion and Leading Value Coupling Constant Workpiece Speed for Centerless Grinding Tangential Control
C-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.03 10.00
C References
Installation and Activation of Compile Cycles Clearance Control Analog Axis Master-Slave for Drives Transformation Package Handling Setpoint Exchange MCS Coupling Retrace Support Path-Synchronous Switch Signal Preprocessing 3D Tool Radius Compensation
/FBA/
SIMODRIVE 611D/SINUMERIK 840D/810D Description of Functions Drive Functions (the various sections are listed below) Order No.: 6SN1197-0AA80-1BP0 DB1 DD1 DD2 DE1 DF1 DG1 DL1 DM1 DS1 D1
(11.02 Edition)
Operational Messages/Alarm Reactions Diagnostic Functions Speed Control Loop Extended Drive Functions Enable Commands Encoder Parameterization Linear Motor MD Calculation of Motor/Power Section Parameters and Controller Data Current Control Loop Monitors/Limitations
/FBAN/
SINUMERIK 840D/SIMODRIVE 611 digital Description of Functions ANA MODULE Order No.: 6SN1197-0AB80-0BP0
(02.00 Edition)
/FBD/
SINUMERIK 840D Description of Functions Digitizing Order No.: 6FC5297-4AC50-0BP0 DI1 DI2 DI3 DI4
(07.99 Edition)
Start-up Scanning with Tactile Sensors (scancad scan) Scanning with Lasers (scancad laser) Milling Program Generation (scancad mill)
/FBDM/
SINUMERIK 840D/840Di/810D (09.03 Edition) Motion Control Information System (MCIS) Description of Functions DNC NC Program Management Order No.: 6FC5297-1AE81-0BP0
/FBDN/
SINUMERIK 840D/840Di/810D (03.03 Edition) Motion Control Information System (MCIS) Description of Functions DNC NC Program Management Order No.: 6FC5297-1AE80-0BP0 DN1 DN2 DNC Plant / DNC Cell DNC IFC SINUMERIK, NC Data Transfer via Network
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
C-29
C References
11.03 10.00
/FBFA/
SINUMERIK 840D/840Di/810D Description of Functions ISO Dialects for SINUMERIK Order No.: 6FC5297-6AE10-0BP3
(11.02 Edition)
/FBFE/
SINUMERIK 840D/840Di/810D Description of Functions Remote Diagnosis Order No.: 6FC5297-0AF00-0BP2 FE1 FE3 Remote Diagnosis ReachOut Remote Diagnosis pcAnywhere
(04.03 Edition)
/FBH/
SINUMERIK 840D/840Di/810D HMI Configuring Package Order No.: (supplied with the software) Part 1 Part 2 Users Guide Description of Functions
(11.02 Edition)
/FBH1/
SINUMERIK 840D/840Di/810D HMI Configuring Package ProTool/Pro Option SINUMERIK Order No.: (supplied with the software)
(03.03 Edition)
/FBHLA/
SINUMERIK 840D/SIMODRIVE 611 digital Description of Functions HLA Module Order No.: 6SN1197-0AB60-0BP4
(09.03 Edition)
/FBIC/
SINUMERIK 840D/840Di/810D Motion Control Information System (MCIS) Description of Functions TDI Ident Connection Order No.: 6FC5297-1AE60-0BP0
(06.03 Edition)
/FBMA/
(08.02 Edition)
/FBO/
SINUMERIK 840D/810D (09.01 Edition) Description of Functions Configuring OP 030 Operator Interface Order No.: 6FC5297-6AC40-0BP0 BA EU PS PSE IK Operators Guide Development Environment (Configuring Package) Online only: Configuring Syntax (Configuring Package) Introduction to Configuring of Operator Interface Screen Kit: Software Update and Configuration
/FBP/
(03.96 Edition)
C-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.03 10.00
C References
/FBR/
SINUMERIK 840D/810D IT Solutions Description of Functions Computer Link (SinCOM) Order No.: 6FC5297-6AD60-0BP0 NFL NPL Host Computer Interface PLC/NCK Interface
(09.01 Edition)
/FBSI/
SINUMERIK 840D / SIMODRIVE 611 digital (09.03 Edition) Description of Functions SINUMERIK Safety Integrated Order No.: 6FC5297-6AB80-0BP2
/FBSP/
(08.03 Edition)
/FBST/
(01.01 Edition)
/FBSY/
(10.02 Edition)
/FBT/
(06.03 Edition)
/FBTC/
SINUMERIK 840D/810D IT Solutions SINUMERIK Tool Data Communication SinTDC Description of Functions Order No.: 6FC5297-5AF30-0BP0
(01.02 Edition)
/FBTD/
SINUMERIK 840D/810D IT Solutions Tool Information System (SinTDI) with Online Help Description of Functions Order No.: 6FC5297-6AE00-0BP0
(02.01 Edition)
/FBTP/
SINUMERIK 840D/840Di/810D (01.03 Edition) Motion Control Information System (MCIS) Description of Functions TPM Total Productive Maintenance, Version 3.0 Order No.: Document is supplied with the software
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
C-31
C References
11.03 10.00
/FBU/
SIMODRIVE 611 universal/universal E (07.03 Edition) Closed-Loop Control Component for Speed Control and Positioning Description of Functions Order No.: 6SN1197-0AB20-0BP7
/FBU2/
SIMODRIVE 611 universal (04.02 Edition) Installation Guide (enclosed with SIMODRIVE 611 universal)
/FBW/
(11.02 Edition)
/HBA/
(03.02 Edition)
/HBI/
(09.03 Edition)
/INC/
SINUMERIK 840D/840Di/810D (06.03 Edition) System Description Commissioning Tool SINUMERIK SinuCOM NC Order No.: (an integral part of the online help for the start-up tool)
/PJE/
SINUMERIK 840D/810D (08.01 Edition) Description of Functions Configuring Package HMI Embedded Software Update, Configuration Installation Order No.: 6FC5297-6EA10-0BP0 (the document PS Configuring Syntax is supplied with the software and available as a pdf file)
/POS1/
SIMODRIVE POSMO A (05.03 Edition) Users Guide Distributed Positioning Motor on PROFIBUS DP Order No.: 6SN2197-0AA00-0BP5
/POS2/
(04.02 Edition)
/POS3/
SIMODRIVE POSMO SI/CD/CA Users Guide Distributed Servo Drive Systems Order No.: 6SN2197-0AA20-0BP4
(07.03 Edition)
/POS4/
(04.02 Edition)
C-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
11.03 10.00
C References
/POS5/
(04.02 Edition)
/S7H/
SIMATIC S7300 Manual: CPU Data (Hardware) Reference Manual: Module Data Manual: Technological Functions Installation Manual Order No.: 6ES7398-8FA10-8BA0
(2002 Edition)
/S7HT/
SIMATIC S7300 Manual: STEP 7, Fundamentals, V. 3.1 Order No.: 6ES7 10-4CA02-8BA0
(03.97 Edition)
/S7HR/
SIMATIC S7300 Manual: STEP 7, Reference Manuals, V. 3.1 Order No.: 6ES7810-4CA02-8BR0
(03.97 Edition)
/S7S/
SIMATIC S7300 FM 353 Positioning Module for Stepper Drive Order together with configuring package
(04.02 Edition)
/S7L/
SIMATIC S7300 FM 354 Positioning Module for Servo Drive Order together with configuring package
(04.02 Edition)
/S7M/
SIMATIC S7300 FM 357-2 Multimodule for Servo and Stepper Drives Order together with configuring package
(01.03 Edition)
/SP/
SIMODRIVE 611A/611D SimoPro 3.1 Program for Configuring Machine-Tool Drives Order No.: 6SC6111-6PC00-0BAj, Order from: WK Frth
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
C-33
C References
11.03 10.00
/BS/
SIMODRIVE 611 analog (10.00 Edition) Description Start-Up Software for Main Spindle and Asynchronous Motor Modules Version 3.20 Order No.: 6SN1197-0AA30-0BP1
/IAA/
(10.00 Edition)
/IAC/
SINUMERIK 810D (11.02 Edition) Installation and Start-Up Guide (incl. description of SIMODRIVE 611D start-up software) Order No.: 6FC5297-6AD20-0BP0
/IAD/
SINUMERIK 840D/SIMODRIVE 611 digital (11.02 Edition) Installation and Start-Up Guide (incl. description of SIMODRIVE 611 digital start-up software) Order No.: 6FC5297-6AB10-0BP2
/IAM/
SINUMERIK 840D/840Di/810D Installation and Start-Up Guide HMI/MMC Order No.: 6FC5297-6AE20-0BP3 AE1 BE1 HE1 IM2 IM4 TX1 Updates/Supplements Expanding the Operator Interface Online Help Starting up HMI Embedded Starting up HMI Advanced Creating Foreign Language Texts
(09.03 Edition)
C-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Index
Symbols
Selfacting Serupro, 1/K1/2-46 $A_DNO[n], 1/W1/2-20 Activation and priorities, 1/K1/2-17 Activation of block skip, 1/A2/4-58 Activation of protection zones, Example, 1/A3/6-80 Active, 1/A2/5-81
Numbers
34104|REFP_PERMITTED_IN_FOLLOWUP, 1/R1/4-57 611D Ready, 1/A2/2-7, 1/A2/5-69
Active data (frames) are immediately operative after editing, 1/K2/4-86 Active drive parameter set A, B, C, 1/A2/5-101 Active meas. system, 1/D1/2-9 Active motor, 1/A2/2-34
A
A_COORDINATE_SYSTEM, 1/K2/4-86 Abbreviations, A-1 Abs. Absolute compensation value meas. system 1 or 2, 1/D1/2-9 ABSBLOCK_FUNCTION_MASK, 1/K1/4-164 Absolute dimension tool length compensation geometry axis 1, 1/K2/4-85 Absolute dimension tool length compensation geometry axis 2, 1/K2/4-85 Absolute dimension tool length compensation geometry axis 3, 1/K2/4-85 Acceleration, 1/B2/1-3 Knee-shaped acceleration characteristic, 1/B2/2-15 Programmable, 1/B2/2-17 Acceleration (B2), 1/B2/1-3 Alarms, 1/B2/7-34 Axis-specific machine data, 1/B2/4-23 Channel-specific machine data, 1/B2/4-28 Channel-specific setting data, 1/B2/4-29 Machine data, 1/B2/7-31 Setting data, 1/B2/7-33 System variables, 1/B2/7-34 Acceleration limitation, 1/B2/2-11 Acceleration profiles, 1/B2/2-5 Abrupt acceleration changes, 1/B2/2-5 Acceleration with jerk limitation, 1/B2/2-5 Access authorization, 1/A2/2-10 Access features, 1/A2/2-10 Access protection, 1/A2/2-10 Action single block, 1/K1/2-22
Active motor A, B, 1/A2/5-102 Active or passive file system, 1/A2/5-76 ACTIVE_SEL_USER_DATA, 1/K2/4-86 Actual motor, 1/D1/2-21 Actual parameter set, 1/D1/2-20 Actual position value measuring system, 1/D1/2-9 Actual speed = set speed, 1/D1/2-23 Actual value synchronization, 1/A2/2-27 Actual value correction, 1/G2/2-24 Actual value in WCS, 1/A2/5-72 Actual value in workpiece coordinate system, 1/A2/2-16 Actual value processing, 1/G2/2-34, 1/G2/2-47, 1/G2/2-50, 1/G2/2-56, 1/G2/2-60, 1/G2/2-61 Actual value resolution, 1/G2/2-36 Actual value routing, 1/G2/2-25 Actual value sensing, 1/G2/2-23 Actual value system 12101,12102,12103,12104,12105,12106, 1/G2/2-23 Workpiece-related, 1/K2/2-77 Actual values, 1/A3/2-20 Adaptation, Dynamic performance, 1/B1/1-3 Adapting active frames, 1/K2/2-56 Adapting the motor/load ratios, 1/G2/2-31 ADDFRAME, 1/K2/2-70 Additive frame in frame chain, 1/K2/2-70 Air temperature alarm, 1/A2/2-8, 1/A2/5-70 Alarm, Delete criterion, 1/D1/2-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-1
06.03 10.00
Alarm area selection, 1/A2/5-73 Alarm for preprocessing stop, 1/W1/2-66 ALARM_PAR_DISPLAY_TEXT, 1/D1/4-37 ALARM_REACTION_CHAN_NOREADY, 1/D1/4-37 Alarms, 1/A2/7-121 Analog spindle 1, utilization in percent, 1/A2/5-73 Analog spindle 2, utilization in percent, 1/A2/5-73 Applicability of MD 9203 to edge data and location-dependent offsets, 1/K2/4-86 ASCII editor, 1/D2/2-6 Assigned timers, 1/P3/6-253 Assignment of DBs, 1/P3/6-251 Assignment of FBs and FCs, 1/P3/6-251 Assignment tool/toolholder, 1/W1/2-72 ASUBs, 1/P3/2-55 Asynchronous events, 1/A2/1-3 Asynchronous subroutines (ASUBs), 1/K1/2-86 ATRANS, 1/K2/1-9, 1/K2/2-43 AUTOMATIC, 1/K1/2-16 Automatic mode, 1/K1/2-128 Automatic start of an ASUB following block search (SW 6.1 and higher, 1/K1/2-31 Auxiliary function output, 1/B1/2-15 Detailed Description, 1/H2/2-5 Overstore, 1/H2/2-30 POWER ON, block search, 1/H2/2-29 Auxiliary functions, 1/H2/1-3 Availability Helix interpolation, 1/K2/3-81 Screw interpolation, 1/K2/3-81 Workpiece-related actualvalue system, 1/K2/3-82 Zero offset, 1/K2/3-82 Availability of basic offset in Machine operating area, 1/K2/4-84 Availability of basic offset in Parameters operating area, 1/K2/4-84 AX_JERK_MODE, 1/B2/4-24 Axis, 1/A2/2-19 Axis configuration, 1/K2/2-23
Axis monitoring functions, 1/A3/1-3 Actual velocity, 1/A3/2-19 Axis/spindle-specific interface signals, 1/A3/7-81 Axis/spindle-specific machine data, 1/A3/3-58, 1/A3/7-83 Axis/spindle-specific setting data, 1/A3/7-85 Axis/spindle-specific signals, 1/A3/5-69 Channel-specific machine data, 1/A3/7-85 Clamping, 1/A3/2-7, 1/A3/2-11 Contour, 1/A3/2-5 Following error, 1/A3/2-6 Positioning monitoring., 1/A3/2-7 Setting data, 1/A3/3-66 Speed setpoint, 1/A3/2-17 Supplementary conditions, 1/A3/3-55 Zero speed, 1/A3/2-7, 1/A3/2-10 Axis monitoring, protection zones (A3), Channelspecific machine data, 1/A3/3-57 Axis parameter sets, 1/G2/2-46 Axis types, 1/K2/2-13 Axis/spindle disable, 1/A2/5-85 Axis/spindle lock DB31, ... DBX1.3, 1/V1/2-27 Axis/spindle service display, 1/D1/2-8 Axis/spindle stops, 1/A2/2-30, 1/A2/5-98 Axis/spindle-specific signals, 1/A2/5-85 Axis-related jerk limitation, 1/B2/2-12 Jerk limitation, 1/B2/2-12 Axis-specific machine data, 1/K2/4-99 Axis-specific signals, 1/K1/5-192
B
Basic block display, 1/K1/4-164 Basic coordinate system (BCS), 1/K2/1-7, 1/K2/2-35 Basic setting for Program directory, 1/A2/4-49 Basic system, 1/G2/2-13 Basic tool orientation, 1/W1/6-156 Baud rate, 1/K4/3-21
Index-2
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Block, 1/K1/2-75 Program operation mode, 1/K1/2-22 Search, 1/K1/2-26 Single block suppression, 1/K1/2-98, 1/K1/2-100 Block change, 1/B1/2-8, 1/B1/2-10 Block change point, 1/B1/2-13 Block search, 1/K1/1-5, 1/K1/1-6 Block search via program test, 1/K1/2-36 Block SPARPI, 1/K1/2-44 Block-related limit (FOC), 1/F1/2-23 Blockwise feed FB, 1/V1/2-42 BRISK, 1/B2/2-8 Bus addresses, 1/K4/2-13 Bus addresses on SINUMERIK 840D, 1/P3/2-46 Bus addresses on SINUMERIK FM-NC, 1/P3/2-47
Channel number of machine control panel on MMC, 1/A2/5-73 Channel-specific NCK alarm is active, 1/A2/2-8 Channel-specific signals, 1/A2/5-83 Clear cancel alarms, 1/A2/5-72 Clear recall alarms, 1/A2/5-72 Closed-Loop Control, 1/G2/2-43 Collision detection, 1/W1/2-60 COM1, 1/A2/5-74, 1/A2/5-79 COM1 or COM2, 1/K4/2-6 COM2, 1/A2/5-74, 1/A2/5-79 Communication MMC 100, 1/K4/2-6 MMC 100/101/102, 1/K4/1-3 MMC 101/102, 1/K4/1-3 Communication log, 1/D1/2-28 Communication with global data (GD), 1/P3/2-33 Commutation limit, 1/B2/2-15
C
Calculation resolution, 1/G2/2-9 Calipers, 1/V1/2-38 Calling the ASUB outside program operation, 1/K1/2-90 Cancel alarm cleared, 1/A2/5-77 Cancel alarms, 1/A2/2-16 Carrying out SERUPRO in a group of channels, 1/K1/2-44 Cascaded block search (SW 6.1 and higher), 1/K1/2-31 CFC, 1/V1/2-8 CFCIN, 1/V1/2-8 CFINE, 1/K2/1-9, 1/K2/2-43 CFTCP, 1/V1/2-8 Channel, 1/B1/2-6, 1/K1/1-5, 1/K1/2-13 Channel configuration, 1/K1/2-13 Channel machine data, 1/K1/2-129 Channel status, 1/K1/2-75 Gaps, 1/K1/2-9, 1/K1/2-11 VDI signal, 1/K1/2-129 Channel axes, 1/K2/2-15 Channel axis identifiers with FXS, 1/F1/2-7 Channel number (FC9: ChanNo), 1/A2/5-82
Concurrent axes, 1/P3/2-54 Configurability of machine control panel, handheld unit, 1/P3/2-66 Configurable gear adaption, 1/S1/2-28 Constant cutting rate (G96), 1/V1/2-11 Constant speed G9, 1/V1/2-11 Container axes, 1/K1/2-14 Contamination signal, 1/A3/2-23 Continuous-path mode, 1/B1/2-13 Continuous-path mode, exact stop and LookAhead (B1) Alarms, 1/B1/7-66 Axis-specific machine data, 1/B1/4-56 Axis-specific signals, 1/B1/5-61 Channel-specific machine data, 1/B1/4-50 Channel-specific signals, 1/B1/5-61 General machine data, 1/B1/4-49 Interface signals, 1/B1/7-63 Machine data, 1/B1/7-64 Contour deviation, 1/D1/2-9 Contour error, 1/A3/2-5 Contour violation, 1/A3/2-28, 1/A3/2-31 Contrast, 1/A2/2-35 Control, 1/B2/2-15 Normal power-up, 1/K1/2-127
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-3
06.03 10.00
Control deviation, 1/D1/2-9 Control direction, 1/G2/2-34 Control power-up, 1/K1/2-127 With default values, 1/K1/2-127 Controller mode, 1/D1/2-11 Controller parameter set switchover, 1/A2/6-113 Controller parameter set switchover (checkback signal), 1/A2/5-99 Controller parameter set switchover (request), 1/A2/5-91 Conversion of basic system, 1/G2/2-13 Coordinate system, 1/A3/2-36 Coordinate systems, 1/K2/1-5, 1/K2/1-6, 1/K2/1-7, 1/K2/2-32 Counting Algorithm, 1/K1/2-129 Pulse, 1/K1/2-129 Coupling two FM-NCs with one PLC, Coupling two FM-NCs with one PLC, 1/P3/8-268 Coupling two FM-NC Modules to one PLC, 1/P3/8-267 Basic program error messages, 1/P3/8-281 Coupling with the components MMC/MSTT/ OP, 1/P3/8-270 Function of the basic program for two FMNCs, 1/P3/8-275 Interface structure, 1/P3/8-271 Memory space, 1/P3/8-281 PLC/MCP/HHU interface, 1/P3/8-273 PLC/MMC interface, 1/P3/8-273 PLC/NCK interface, 1/P3/8-271 Special features of blocks when using two FM-NCs, 1/P3/8-276 FB1: RUN_UP, 1/P3/8-276 FB2...5: Read/write NC variables, PI services, GUD variables, 1/P3/8-278 FC 15, 16, 18: POS_AX, PART_AX, SpinCtrl, 1/P3/8-279 FC 9: ASUB, 1/P3/8-280 Couplings, 1/K1/2-51 CRC error, 1/D1/2-18 CTRANS, 1/K2/1-9, 1/K2/2-43 Current controller active, 1/A2/2-31, 1/A2/5-99 Current gear stage, 1/D1/2-11 Cutter material memory, 1/D2/2-10 Cutting edge number, 1/W1/2-10 Cutting edge position, relevant, 1/W1/2-36 Cyclic operation, 1/P3/2-50
D
D functions, 1/W1/2-5 D number structure, flat (without tool management), 1/W1/2-19 D numbers, Allocation of free ..., 1/W1/2-10 Darken screen, 1/A2/2-15, 1/A2/5-71 Data backup, 1/D1/2-6 Data channel, high-speed, 1/A2/2-41 Data read-off, 1/D1/2-13 Data sets, 1/D2/2-19 DC link status, 1/D1/2-18 DC link voltage, 1/B2/2-15 Decoding single block, 1/K1/2-22 Decoding single block SBL2 with implicit preprocessing stop, 1/K1/2-97 Default passwords, 1/A2/2-11 Default value for path feed, 1/V1/4-63 DEFAULT_FEED, 1/V1/4-63 Define number of skippable program levels, 1/K1/4-132 Defining the reference for the path override, 1/V1/4-57 Definition of Terms, B-9 Delete distance-to-go, 1/A2/2-19 Delete distance-to-go (axis-specific)/Spindle reset, 1/A2/5-91 Delete distance-to-go (channel-specific), 1/A2/5-83 Diagnostic tools General machine data, 1/D1/4-35 Machine data, 1/D1/7-42 Diagnostic tools (D1), 1/D1/1-3 Alarms, 1/D1/2-5 External, 1/D1/1-3 Integrated, 1/D1/1-3 Interface signals, 1/D1/7-41 Diagnostics, 1/D1/1-3, 1/D1/2-8 611D start-up tool, 1/D1/2-31 Archiving of data, 1/D1/2-31 For alarms, 1/D1/2-14, 1/D1/2-24 Of operational state errors, 1/D1/2-15
Index-4
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Diagnostics buffer on PLC, 1/P3/2-33 DIAMOF, 1/P1/1-3, 1/P1/2-6 DIAMON, 1/P1/1-3, 1/P1/2-6 Direction of offset of tool for geometry axes with scratching, 1/K2/4-86 DISC, 1/W1/2-55 Display geo axes of channel first, 1/K1/4-131 Display mode of zero offset, 1/K2/4-87 Display of orientation axes as Euler angle, 1/K2/4-84 Display resolution, 1/A2/2-36, 1/G2/2-9 Displayed channel number of MMC, 1/A2/5-78 DL auxiliary function for sum offset, 1/H2/2-11 Drive configuration, 1/G2/2-30 Drive enable, 1/D1/2-17 Drive parameter set selection, 1/A2/2-32 Drive parameter set selection A, B, C, 1/A2/5-94 DRIVE ready, 1/A2/2-34, 1/A2/5-103 Drive service display, 1/D1/2-15 Drive status, 1/D1/2-18 DRIVE_AX_RATIO_DENOM, 1/S1/4-76 DRIVE_AX_RATIO2_NUMERA, 1/S1/4-77 Dry run feed, 1/K1/2-24, 1/V1/2-33 Dry run feedrate (DryRun), 1/S1/2-62 DRY_RUN_FEED_MODE, MD 42101, 1/V1/4-63 DRYRUN_MASK, 1/V1/2-34 Dynamic response adaptation, 1/G2/2-45
Error, 1/A2/5-78, 1/A2/5-81 Error RS232C, 1/A2/5-80 Event-controlled program sequences, 1/K1/2-80 Event-driven signal exchange, 1/P3/1-5, 1/P3/1-6 Exact stop, 1/B1/2-9 Exact stop criteria, 1/B1/2-10 Exact stop coarse, 1/A3/2-8, 1/B1/2-11 Exact stop fine, 1/A3/2-9, 1/A3/2-10, 1/B1/2-11 Exact stop criterion, 1/B1/2-13 Exact stop limit fine, 1/A3/2-8 EXACT_POS_MODE, MD 20550, 1/B1/4-54 Example of auxiliary function output, 1/H2/2-20 Execute external subroutine, 1/K1/2-109, 1/K1/2-110 Execution from external source, extension (SW 4 and higher), 1/K1/2-109 EXPONENT_LIMIT, 1/A2/4-52 EXPONENT_SCIENCE, 1/A2/4-52 EXTCALL, 1/K1/2-110 External data communications connector, 1/K4/1-3 External protection zone, 1/A3/2-38 External subroutine, 1/K1/2-110
F
FB 10: Safety relay, 1/P3/4-152 FB 11: Brake test, 1/P3/4-155 FB 2: GET, 1/P3/4-102 FB 29: Signal recorder and data trigger diagnostics, 1/P3/4-159 FB 3: PUT, 1/P3/4-109 FB 4: PI_SERV General PI services, 1/P3/4-115 FB 5: GETGUD Read GUD variable, 1/P3/4-138 FB 7: PI_SERV2 General PI services, 1/P3/4-143 FB 9 M:N control unit switchover, 1/P3/4-147 FB 9: Operating unit switchover, 1/P3/4-89 FC 10: AL_MSG, 1/P3/4-182 FC 13: BHGDisp, 1/P3/4-185 FC 15: POS_AX, 1/P3/4-188 FC 16: PART_AX, 1/P3/4-193
E
EMERGENCY STOP, 1/N2/1-3, 1/N2/2-5 Acknowledgment, 1/N2/2-8 PLC/NCK, 1/N2/2-6 Sequence, 1/N2/2-7 Enable pulses, 1/D1/2-18 ENABLE_ALARM_MASK, 1/D1/4-37 ENABLE_CHAN_AX_GAP, 1/K2/4-92 ENC_IS_DIRECT2, 1/S1/4-76 Encoder coding, 1/G2/2-37 Encoder monitoring functions, 1/A3/2-21 Encoder frequency, 1/A3/2-21 Zero marks, 1/A3/2-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-5
06.03 10.00
FC 17: YDelta, 1/P3/4-197 FC 18: SpinCtrl, 1/P3/4-200 FC 19: MCP_IFM, 1/P3/4-209 FC 2: GP_HP, 1/P3/4-163 FC 22: TM_DIR, 1/P3/4-224 FC 24: MCP_IFM2, 1/P3/4-226 FC 25: MCP_IFT, 1/P3/4-230 FC 3: GP_PRAL, 1/P3/4-164 FC 5: GP_DIAG, 1/P3/4-167 FC 7: TM_REV, 1/P3/4-168 FC 8: TM_TRANS, 1/P3/4-171 FC 9: ASUB, 1/P3/4-179 FC9: Start (measuring in Jog mode), 1/A2/5-82 Feed disable, 1/V1/2-26 Feed disable DB21, ... DBX6.0, 1/V1/2-26 Feed FB, Blockwise, 1/V1/2-42 Feed for chamfer/rounding, 1/V1/2-40 Feed override, 1/B1/2-7, 1/R1/2-15 Feed override switch, 1/V1/2-27 Feed stop, 1/K1/2-75 Feed/spindle stop, 1/V1/2-26 Feedrate, 1/B1/2-7, 1/R1/2-15 Feedrates Dry run feed, 1/V1/2-33 Feed control, 1/V1/2-26 Feed disable, 1/V1/2-26 Feed override, 1/V1/2-27, 1/V1/2-32 Feed/spindle stop, 1/V1/2-26 Feeds in one block, 1/V1/2-34 G93, G94, G95, 1/V1/2-9 Path feed F, 1/V1/2-7 Positioning axes FA, 1/V1/2-24 Positioning feed G94, 1/V1/2-25 Rigid tapping G331/G332, 1/V1/2-23 Spindle override, 1/V1/2-30 Tapping with compensation chuck G63, 1/V1/2-23 Thread cutting G33, 1/V1/2-14 FGROUP, 1/K2/2-19, 1/K2/2-22 Field weakening, 1/B2/2-15
File types BIN, 1/K4/2-6 BOT, 1/K4/2-6 COM, 1/K4/2-6 CPA, 1/K4/2-6 DIR, 1/K4/2-6 GIA, 1/K4/2-6 GUD, 1/K4/2-6 IKA, 1/K4/2-6 INI, 1/K4/2-6 LUD, 1/K4/2-6 MPF, 1/K4/2-6 OPT, 1/K4/2-6 RPA, 1/K4/2-6 SEA, 1/K4/2-6 SPF, 1/K4/2-6 SYF, 1/K4/2-6 TEA, 1/K4/2-6 UFR, 1/K4/2-6 WPD, 1/K4/2-6 Fine interpolation, 1/G2/2-44 Fine offset, 1/K2/1-9, 1/K2/2-43 FIPO, 1/G2/2-44 Fixed feed values, 1/V1/2-39 Flat D number structure, 1/W1/2-19 D number programming, 1/W1/2-21 Read D number from the PLC, 1/W1/2-20 Floppy disk drive, 1/K4/2-10 FM, 1/P3/8-268 Following error, 1/D1/2-9 Following error compensation (feedforward control), speed feedforward control, 1/G2/2-51 Follow-up, 1/A2/2-21 Follow-up mode, 1/A2/2-20, 1/A2/5-87, 1/A3/2-6, 1/A3/2-11 Follow-up mode active, 1/A2/2-30, 1/A2/5-97 Foreground language, 1/A2/2-35 FRAME, 1/K2/1-5, 1/K2/2-15, 1/K2/2-42 FRAME chaining, 1/K2/2-67 MIRROR, 1/K2/2-54 SCALE, 1/K2/2-54
Index-6
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Function overview of inch/metric switchover (SW 5 and higher), 1/G2/2-21 Data backup, 1/G2/2-19 Rounding machine data, 1/G2/2-20 Synchronized actions, 1/G2/2-15
Helical interpolation, 1/K2/2-22 Helix interpolation, 1/K2/2-22 Hide several program levels, 1/K1/4-131 High-speed data channel, 1/A2/2-41 Higraph first error display, 1/A2/5-73
G
G groups, 1/K1/2-69 G0 logic in G96, 1/V1/4-60 G40, 1/W1/2-39 G41, 1/W1/2-39 G42, 1/W1/2-39 G450/G451, 1/W1/2-54 G451, 1/W1/2-56 G460, 1/W1/2-68 G461, 1/W1/1-4, 1/W1/2-69 G462, 1/W1/1-4, 1/W1/2-69 G58, 1/K2/1-9, 1/K2/2-43 G59, 1/K2/1-9, 1/K2/2-43 G91, Frames, 1/K2/3-82 G91 extension, offset external (WOE), 1/W1/2-97 Gap, 1/K1/2-11 Gear stage change from NC, 1/S1/2-28 Gear stages, 1/S1/2-28 General machine data, 1/A3/3-57 Geometry axes, 1/B1/2-5, 1/B1/2-14, 1/B1/2-18, 1/K2/2-15, 1/K2/2-19, 1/K2/2-35, 1/P1/1-3 Geometry model, 1/D2/2-6 GMMC_INFO_NO_UNIT, 1/K1/4-143 GMMC_INFO_NO_UNIT_STATUS, 1/K1/4-143 GroupSerupro, 1/K1/2-42, 1/K1/2-45
I
ID check, 1/K1/2-129 Implicit continuous-path mode, 1/B1/2-17 Implicit exact stop, 1/B1/2-14 INC, 1/P1/2-6 Inch measuring system, 1/G2/2-13 Influence path axes individually, 1/K1/2-67 Influence SERUPRO behavior, 1/K1/2-37 Initial setting, 1/B1/2-7 Initial settings, 1/K1/2-69 Input resolution, 1/G2/2-9 Integrator disable, 1/A2/2-33, 1/D1/2-19 Integrator ncontroller disabled, 1/A2/2-34 Interactive Programming Adaptation of simulation data (SW 3.1 and higher), 1/D2/2-14 Adaptation of simulation data (SW 3.2 and higher), 1/D2/2-18 Adapting the technology memory, 1/D2/2-10 Archiving of configuration data, 1/D2/2-31 Area of application, 1/D2/2-5 Axis-specific machine data, 1/D2/7-40 Basic procedure, 1/D2/1-3 Channel-specific machine data, 1/D2/7-39 Compatibility, 1/D2/2-7 Configuring the user interface, 1/D2/2-8 Creation of a tool catalog, 1/D2/2-11 Customizing the axis names, 1/D2/2-13 Example, 1/D2/6-37 General conditions, 1/D2/2-7 General machine data, 1/D2/7-39 Matching the tool offset data, 1/D2/2-27 Milling, 1/D2/2-12 Restriction, 1/D2/2-7 Setting up, 1/D2/2-12
H
Handheld unit (HHU), 1/K4/2-11 Hardware faults, 1/A3/2-23 Hardware limit switches, 1/A3/2-24 Heatsink temperature prewarning, 1/A2/2-34, 1/A2/5-106 Heatsink temperature warning, 1/D1/2-21
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-7
06.03 10.00
Simulation data, special conditions, 1/D2/2-22 Supplementary conditions, 1/D2/3-33 Turning, 1/D2/2-12 Interactive programming (D2), 1/D2/1-3 Interface signal 840Di, 1/A2/2-9 Interface signal PC Shutdown, 1/A2/2-9 Channel-specific NCK alarm is active, 1/A2/5-84 Interface signals Activate channel-specific protection zone, 1/A3/5-73 Activate dry run feed, 1/V1/5-66 Activate M01, 1/K1/5-175 Activate machine-related protection zone, 1/A3/5-73 Activate program test, 1/K1/5-176 Activate referencing, 1/R1/5-65 Activate single block, 1/K1/5-175 Active drive parameter set, 1/A2/2-34 Active G function of groups 1 to 60, 1/K1/5-188 Active machine function REF, 1/K1/5-175 Active machine function REPOS, 1/K1/5-174 Active machine function TEACH IN, 1/K1/5-174 Active mode AUTOMATIC, 1/K1/5-173 Active mode JOG, 1/K1/5-173 Active mode MDA, 1/K1/5-173 Active spindle control mode, 1/S1/5-107 Active spindle mode oscillation mode, 1/S1/5-107 Active spindle positioning mode, 1/S1/5-107 Actual direction of rotation clockwise, 1/S1/5-105 Actual gear stage A to C, 1/S1/5-99 All axes referenced, 1/R1/5-66 All channels in Reset state, 1/K1/5-174 AUTOMATIC mode, 1/K1/5-169 Block search active, 1/K1/5-184 Change gear, 1/S1/5-104 Channel status active, 1/K1/5-187 Channel status interrupted, 1/K1/5-187 Channel status reset, 1/K1/5-187 Channel-specific protection zone preactivated, 1/A3/5-74 Channel-specific protection zone violated, 1/A3/5-75 Clamping in progress, 1/A3/5-69 Delete S value, 1/S1/5-98 Dry run feedrate selected, 1/V1/5-71 Enable protection zones, 1/A3/5-72 Encoder limit frequency exceeded, 1/A3/5-71 F function for positioning axis, 1/V1/5-79 Feed disable, 1/V1/5-70 Feed hold (geometry axis 1 to 3), 1/V1/5-71 Feed override, 1/V1/5-66
Feed override (axis-specific), 1/V1/5-73 Feed override active, 1/V1/5-71 Feed override for rapid traverse selected, 1/V1/5-72 Feedrate hold/spindle stop (axis-specific), 1/V1/5-78 For operator panel, 1/A2/2-15 Gear changed, 1/S1/5-99 Hardware limit switches plus and minus, 1/A3/5-70 Invert M3/M4, 1/S1/5-100 JOG mode, 1/K1/5-169 M function for spindle, 1/S1/5-108 M00/M01 active, 1/K1/5-183 M01 selected, 1/K1/5-181 M02/M30 active, 1/K1/5-184 Machine function REF, 1/K1/5-172 Machine function REPOS, 1/K1/5-171 Machine function TEACH IN, 1/K1/5-171 Machine-related protection zone preactivated, 1/A3/5-73 Machine-related protection zone violated, 1/A3/5-74 MDA mode, 1/K1/5-169 Mode group ready, 1/K1/5-174 Mode group reset, 1/K1/5-171 Mode group stop, 1/K1/5-170 Mode group stop axes plus spindles, 1/K1/5-170 Mode switchover disable, 1/K1/5-170 n (act) < n(x), 1/A2/2-35 NC Start, 1/K1/5-178 NC Start disable, 1/K1/5-178 NC Stop, 1/K1/5-179 NC Stop at block limit, 1/K1/5-178 NC Stop axes plus spindles, 1/K1/5-180 Oscillation speed, 1/S1/5-101 Oscillation via PLC, 1/S1/5-101, 1/S1/5-102, 1/S1/5-103 Override active, 1/V1/5-77 Program level abort, 1/K1/5-178 Program status aborted, 1/K1/5-187 Program status interrupted, 1/K1/5-186, 1/K1/5-189 Program status running, 1/K1/5-185 Program status stopped, 1/K1/5-186 Program status wait, 1/K1/5-186 Program test active, 1/K1/5-185 Program test selected, 1/K1/5-181 Ramp-function generator rapid stop active, 1/A2/2-33 Rapid traverse override, 1/V1/5-68 Rapid traverse override active, 1/V1/5-70 Read-in disable, 1/K1/5-177 Reference point approach delay, 1/R1/5-67 Reference point value 1 to 4, 1/R1/5-66 Referenced/synchronized 1, 1/R1/5-67
Index-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Referenced/synchronized 2, 1/R1/5-67 Referencing active, 1/R1/5-65 Reset, 1/K1/5-181 Resynchronize spindle 1 and 2, 1/S1/5-98 Resynchronize spindle during positioning 2 and 1, 1/S1/5-100 Revolutional feedrate active, 1/V1/5-79 Rigid tapping active, 1/S1/5-108 S function for spindle, 1/S1/5-108 Second software limit switch plus or minus, 1/A3/5-70 Selected machine function REF, 1/K1/5-173 Selected mode AUTOMATIC, 1/K1/5-172 Selected mode JOG, 1/K1/5-172 Selected mode MDA, 1/K1/5-172 Selected mode TEACH IN, 1/K1/5-172, 1/K1/5-173 Set counterclockwise/set clockwise, 1/S1/5-100 Set gear stage A to C, 1/S1/5-104 Setpoint speed increased, 1/S1/5-106 Setpoint speed limited, 1/S1/5-106 Skip block, 1/K1/5-176 Speed limit exceeded, 1/S1/5-106 Spindle in setpoint range, 1/S1/5-105 Spindle override, 1/V1/5-75 Spindle reset/delete distance-to-go, 1/S1/5-97 Spindle/no axis, 1/S1/5-103 Velocity/spindle speed limitation, 1/A3/5-70 Zero offset, 1/K2/5-102 Interface signals (A2), 1/A2/1-3 Interface signals for digital drives, 1/A2/2-32 Interface signals from and to channel, 1/A2/2-19 Interface signals from axis/spindle, 1/A2/2-30 Interface signals to axis/spindle, 1/A2/2-19 Interface signals/table, 1/A2/7-115 Internal protection zone, 1/A3/2-38 Interpolation buffer, reduced, 1/K1/2-103 Interpolation parameter sets, 1/G2/2-47 Interpolator, 1/K1/2-13 Interpolator end, 1/B1/2-11 Interpolatory axis grouping, 1/A2/2-27 Interrupt routines, 1/K1/1-6, 1/K1/2-86, 1/K1/4-131 Invert M3/M4, 1/S1/2-58 INVFRAME, 1/K2/2-68
J
Jerk limit, 1/B1/2-24 Jerk limitation, 1/B1/2-23 Smoothing method, 1/B2/2-13 Jerk limitation on the path, Example, 1/B1/7-63 JOG, 1/K1/2-16, 1/P1/2-6
K
Keep tool radius compensation constant, 1/W1/2-63 Key disable, 1/A2/2-15, 1/A2/5-71 Keyboard type, 1/A2/4-50 KEYBOARD_STATE, 1/A2/4-50 KEYBOARD_TYPE, 1/A2/4-50 Keyswitch, 1/A2/2-12 Keyswitch position, 1/A2/5-67 Kinematic transformation, 1/K2/2-35 Knee-shaped acceleration characteristic, Selection and deselection, 1/B2/2-16 KONT, 1/W1/2-40 Kv-Factor, 1/A3/2-5, 1/D1/2-14, 1/G2/2-44
L
Labels, 1/K1/2-79 Language commands ACC, 1/B2/2-17 BRISK, 1/B2/2-8 SOFT, 1/B2/2-8 Last action block active, 1/K1/5-183 LEN_PROTOCOL_FILEX, 11420, 1/D1/4-37 LIFTFAST, 1/K1/2-87 LIFTFAST_WITH_MIRROR, 1/K1/4-148 Limit switch monitoring, 1/A3/2-24 Limit value for offsets fine, 1/K2/4-87 Limit value for wear fine, 1/K2/4-87
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-9
06.03 10.00
Linear axis With linear scale, 1/G2/2-38 With rotary encoder on motor, 1/G2/2-39 With rotary encoder on the machine, 1/G2/2-40 Linear drives, 1/K4/2-20 Linear feed (G94), 1/V1/2-9 Link axes, 1/K1/2-14 Load, 1/A2/5-81 Load parts program, 1/A2/5-75 Loader axes, 1/K2/2-19 Lockable data areas, 1/A2/2-13 Log book, 1/D1/2-29 Look Ahead, 1/B1/2-13, 1/B1/2-42 Block cycle problem, 1/B1/2-46 Continuous-path mode, 1/B1/2-42 Exact stop, 1/B1/2-42 Following block velocity, 1/B1/2-44 Override, 1/B1/2-45 Selection and deselection, 1/B1/2-46 Velocity profiles, 1/B1/2-44 LOOKAH_SMOOTH_WITH_FEED, MD 20462, 1/B1/4-51 Look Ahead, Number of blocks, 1/B1/2-43 Lubrication pulse, 1/A2/2-31, 1/A2/5-100 LVDS, 1/K4/1-3
Machine coordinate system (MCS), 1/K2/1-7, 1/P1/2-6 Machine coordinate systems (MCS), 1/K2/2-34 Machine data, 1/A2/7-118 Machine data for operator panel, 1/A2/4-47 Machine data for processing programs from external, 1/K1/4-143 Machine data, channel-specific, 1/A2/4-60 Machine data, general, 1/A2/4-58 Machine tool axes, 1/K2/2-19 Machine zero, 1/R1/1-3 Main axes, 1/K2/2-21 Main technological application, 1/K1/2-15 Manual specification of a gear stage, 1/S1/2-33 Manual switchover of the basic system General, 1/G2/2-17 Input resolution and calculation resolution, 1/G2/2-19 JOG and handwheel evaluation, 1/G2/2-19 Reference point, 1/G2/2-18 System data, 1/G2/2-18 Tool data, 1/G2/2-18 Manual switchover of the basic system (SW 5 and higher), 1/G2/2-17 Matching the machine data, 1/D2/2-16 Material memory, 1/D2/2-10
M
M decoding acc. to list, 1/P3/2-58 M(d) less than M(dx), 1/A2/5-108 M_NO_FCT_CYCLE, 1/K1/4-137 M_NO_FCT_CYCLE_NAME, 1/K1/4-137 MA_AXES_SHOW_GEO_FIRST, 1/K1/4-131 MA_MAX_SKP_LEVEL, 1/K1/4-132 MA_ORIAXIS_EULER_ANGLE_NAME, 1/K2/4-84 MA_PRESET_MODE, 1/K1/4-132 MA_PREST_FRAMEIDX, 1/K2/4-84 MA_SCRATCH_DEFAULT_MODE, 1/K2/4-86 MA_STAT_DISPLAY_BASE, 1/K2/4-83 MA_TU_DISPLAY_BASE, 1/K2/4-83 Machine axes, 1/K2/2-14 Machine coordinate system, 1/A2/2-16
Maximum permissible path feed for compression, 1/V1/4-59 MAXNUM_USER_DATA_FLOAT, 1/P3/9-284 MAXNUM_USER_DATA_HEX, 1/P3/9-283 MAXNUM_USER_DATA_INT, 1/P3/9-283 MCS, 1/A2/2-16 MD_FILE_STYLE, 1/A2/4-60 MDA (MDI), 1/K1/2-16 Measuring systems, 1/G2/2-24 Memory requirements of basic PLC program, 1/P3/6-254 Maximum, 1/P3/6-256 Minimum, 1/P3/6-256 Message signals in DB2, 1/P3/5-247 Metric measuring system, 1/G2/2-13 Minimum speed, 1/D1/2-23 MIRROR_TOOL_LENGTH, 1/W1/4-149
Index-10
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
MIRROR_TOOL_WEAR, 1/W1/4-149 Mirroring, Retraction direction (lift fast), 1/K1/2-87 MM_ABSBLOCK, 1/K1/4-164 MM_ABSBLOCK_BUFFER_CONF, 1/K1/4-164 MM_NUM_VDIVAR_ELEMENTS, 1/P3/9-285 MM_SYSTEM_FRAME_MASK, 1/K2/4-99 MMC, 1/K1/2-128, 1/K1/2-129 MMC alarm, 1/A2/2-8 MMC alarm is active, 1/A2/5-68 MMC CPU1 Ready, 1/A2/2-7, 1/A2/5-68 Modal activation (FOCON/FOCOF), 1/F1/2-23 Modal execution from external source, 1/K1/2-109 Modally active synchronized actions, 1/K1/2-16 Mode change disable, 1/A2/5-77 Mode group, 1/K1/2-9, 1/P3/2-51 Number, 1/K1/2-11, 1/A2/5-82 Ready to operate, 1/K1/2-12 Reset, 1/K1/2-12 Mode groups, 1/K1/2-16 Group, 1/K1/1-5, 1/K1/2-10 Interlocks, 1/K1/2-18 Monitoring functions, 1/K1/2-18 Operating mode switchover, 1/K1/2-19, 1/K1/2-130 Modify the torque FXS, 1/F1/2-22 Monitor type, 1/A2/2-35 Monitoring functions in the modes, 1/K1/2-18 Monitoring of static limits, 1/A3/2-24 Motion monitoring functions, 1/A3/2-5 Motion specification, 1/S1/2-58 Motor, 1/A2/2-32 Motor selection, 1/D1/2-20 Motor selection A, B, 1/A2/5-94 Motor selection in progress, 1/A2/5-95 Motor temperature, 1/D1/2-19 Motor temperature warning, 1/A2/2-34, 1/A2/5-105, 1/D1/2-21 MPI/DP interface (RS485), 1/K4/2-10, 1/K4/2-11 Multiple feed values in one block, 1/V1/2-34 Multiple starts with SERUPRO, 1/K1/2-42
N
n(act) equals n(set), 1/A2/5-110 n(act) less than n(min), 1/A2/5-110 n(act) less than n(x), 1/A2/5-110 NC NC instruction, 1/K1/2-70 NC Start, 1/K1/2-70, 1/K1/2-128 Program, 1/K1/2-128 Reset, 1/K1/2-128, 1/K1/2-130 Stop, 1/K1/2-75 NC failure, 1/P3/2-53 NC Ready, 1/A2/5-69 NC VAR selector, 1/P3/3-78 Startup, installation, 1/P3/3-88 NC variables, 1/P3/3-83 NCK alarm handler, 1/D1/2-5 NCK alarm is active, 1/A2/2-8, 1/A2/5-69 NCK alarm with processing stop, 1/A2/2-8, 1/A2/5-84 NCK battery alarm, 1/A2/2-8, 1/A2/5-70 NCK CPU Ready, 1/A2/2-7, 1/A2/5-68 NCK machine data, axis/spindle-specific data, 1/A2/4-61 NC-specific signals, 1/A2/5-67 Non-cyclic communication, 1/K4/2-15 NORM, 1/W1/2-40 Normalization, 1/G2/2-7 Normalization of machine and setting data, 1/G2/2-10 Number of places to be displayed without exponent, 1/A2/4-52 Numerical basis for display of moving joint STAT, 1/K2/4-83 Numerical basis for display of rotary axis position TU, 1/K2/4-83
O
O.K., 1/A2/5-79, 1/A2/5-80 Offset number, 1/W1/2-11 Operator panel reset, 1/K1/2-81, 1/K1/2-83
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-11
06.03 10.00
Orientation, 1/A3/2-36 Orientation axes, 1/B1/2-18 Orientation axis, 1/B1/2-5 Orientational toolholder, 1/W1/1-4, 1/W1/2-72, 1/W1/6-153 Overload factor, 1/B1/2-16 Override, 1/D1/2-10, 1/K1/2-127 Overstore, 1/H2/2-30
PKW area, 1/K4/2-15 PLC CPUs, properties, 1/P3/2-30 PLC index, 1/A2/5-75, 1/A2/5-76 PLC line offset, 1/A2/5-76 PLC messages, 1/P3/2-42 PLC program, 1/K1/2-127 PLC status, 1/D1/2-30 Change in status, 1/D1/2-30 Status display, 1/D1/2-30 PLC/NCK 840D, 1/P3/2-30 FM-NC, 1/P3/2-32 PLC/MCP, 1/P3/2-44 PLC/MMC, 1/P3/2-41 PLC/NCK interface, 1/A2/2-5, 1/P3/2-35 PLC_CYCLIC_TIMEOUT, 1/P3/9-283 PLC-CPU, Key data, 1/P3/2-7 Polynomial, Intersection procedure, 1/W1/2-67 POS, 1/B1/2-14, 1/K2/2-19, 1/K2/2-20 POSA, 1/K2/2-19, 1/K2/2-20 Position actual value measuring system 1/2, 1/D1/2-21 Position control, 1/G2/2-46 Position control direction, 1/A3/2-20 Position control loop, 1/G2/2-43 Position controller active, 1/A2/2-30, 1/A2/5-98 Position controller gain, 1/A3/2-9 Position measuring system, 1/A2/2-24 Position measuring system 1 and 2, 1/A2/5-88 Position setpoint, 1/D1/2-9 Positioning accuracy of the control system, 1/G2/2-7 Positioning axes, 1/G2/2-6, 1/K2/2-20, 1/P1/2-6 Positioning axis type POS, 1/B1/2-8 Positioning axis type POSA, 1/B1/2-8 Positioning window large, 1/A3/2-9 POWER ON, block search, 1/K1/2-27, 1/K1/7-198 Power-up, 1/K1/2-82 PRG_DEFAULT_DIR, 1/A2/4-49 Process alarm processing, 1/P3/2-52
P
PA_ZOA_MODE, 1/K2/4-87 Parallel interface, 1/K4/5-32 Parallel interface (Centronics), 1/K4/2-8 Parameter Process Data Object (PPO), 1/K4/2-15 Parameter set (axis), 1/D1/2-11 Parameter sets of the position controller, 1/G2/2-46 Parameterization of basic block display, 1/K1/4-164 Parking axis, 1/D1/2-20 Parts program end, 1/K1/2-81 Parts program start, 1/K1/2-80, 1/K1/2-113 Parts program start and parts program end, 1/K1/2-82 Parts programs Parts program interruption, 1/K1/2-71 Skipping of specific parts program blocks, 1/K1/2-25 Password, 1/A2/2-11 resetting, 1/A2/2-11 setting, 1/A2/2-11 Path axes, 1/B1/2-5, 1/K2/2-19, 1/K1/5-193 Path criterion, 1/B1/2-19 Path feed, 1/B1/2-7, 1/G2/2-6 PATH_TRANS_JERK_LIM, MD 32432, 1/B1/4-56 Path-related jerk limitation, 1/B2/2-7 Acceleration with jerk limitation, 1/B2/2-7 Profile with abrupt acceleration changes, 1/B2/2-9 Selection and deselection, 1/B2/2-8 PDA area, 1/K4/2-15 Physical quantities, 1/G2/2-10 PI services, Overview, 1/P3/4-117
Index-12
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Processing programs from external, extension (SW 4 and higher), 1/K1/1-6 PROFIBUS DP Address space, 1/K4/2-16 PROFIBUS DP Master, Slave, 1/K4/2-15 PROG_EVENT_MASK, 1/K1/4-145 PROG_EVENT_MASK_PROPERTIES, 1/K1/4-145 Program Hide several Program levels, 1/K1/4-131 Program action, 1/K1/2-76 Program control, 1/K1/2-101 Program operation mode, 1/K1/1-6, 1/K1/2-69 Program status, 1/K1/2-73 Program test, 1/K1/2-20 Repeating program sections, 1/K1/2-79 Runtime, 1/K1/1-7, 1/K1/2-127, 1/K1/7-202 Program code, 1/D2/2-6 Program control DRF, 1/K1/2-101 DRY, 1/K1/2-101 M01, 1/K1/2-101 PRT, 1/K1/2-101 ROV, 1/K1/2-101 SBL1, 1/K1/2-101 SKP, 1/K1/2-101 Program execution without setpoint outputs, 1/K1/2-20 Program interpreter, 1/D2/2-6 Program test, 1/K1/1-5 Program testing and SERUPRO, 1/S1/2-62 Programmable run-in and run-out paths, 1/V1/2-15, 1/V1/2-17 Programming and parameterizing tools, 1/P3/3-75 Programming area selection, 1/A2/5-73 Programming devices or PCs, 1/P3/3-75 PROTAREA_GEOAX_CHANGE_MODE, 1/A3/3-57 Protection level for access to tool carrier offsets..., 1/A2/4-52 Protection levels, 1/A2/2-13 Protection levels for MACHINE operating area for access to ..., 1/A2/4-57 Protection levels for PROGRAM operating area for access to ..., 1/A2/4-56
Protection zone Activation, 1/A3/2-41 Deactivation, 1/A3/2-41 Definition, 1/A3/2-36 Enabling of, 1/A3/2-45 Restrictions, 1/A3/2-52 Protection zone definition, Example, 1/A3/6-77 Protection zone definition with system variables, 1/A3/2-39 Protection zone for switchover of geo axes, 1/A3/3-57 Protection zone violation, 1/A3/2-45 Protection zones, 1/A3/1-3, 1/A3/2-32 2-dimensional, 1/A3/2-33 3-dimensional, 1/A3/2-33 Channel-specific interface signals, 1/A3/7-82 Channel-specific machine data, 1/A3/7-85 Channel-specific signals, 1/A3/5-72 Data storage, 1/A3/2-41 General machine data, 1/A3/7-83 Supplementary conditions, 1/A3/3-55 Protection zones for milling machine, 1/A3/2-35 Protection zones for turning machine, 1/A3/2-34 Protection zones, convex, 1/A3/2-39 Protection zones, concave, 1/A3/2-39 PS/2 Keyboard interface, 1/K4/2-9 Mouse interface, 1/K4/2-10 Pulse enable, 1/A2/2-33, 1/A2/5-95, 1/D1/2-17 Pulse multiplication factor, 1/G2/2-38 Pulses enabled, 1/A2/2-34, 1/A2/5-104
R
Ramp function generator rapid stop active, 1/A2/2-33 Ramp function generator rapid stop, 1/A2/2-32, 1/A2/5-92, 1/D1/2-17 Ramp function generator rapid stop active, 1/A2/5-100 Ramp-up function complete, 1/A2/2-34, 1/A2/5-107, 1/D1/2-21 Ramp-up phase, 1/D1/2-18, 1/D1/2-24 Ramp-up times, 1/A2/5-92
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-13
06.03 10.00
Rapid stop (with open, 1/A3/2-7, 1/A3/2-11, 1/A3/2-18, 1/A3/2-19, 1/A3/2-21, 1/A3/2-22 Rapid traverse, 1/B1/2-7, 1/K1/2-128 Rapid traverse override, 1/B1/2-7 Rapid traverse override switch, 1/V1/2-28 Read/write NC variables, 1/P3/2-55 Read/write PLC variable, 1/A2/1-3, 1/A2/2-41 Readers note, v Read-in disable, 1/K1/2-75 Reapproach contour with controlled REPOS, 1/K1/2-67 Reapproach point, 1/K1/2-68 Recall alarm cleared, 1/A2/5-78 Recall alarms, 1/A2/2-16 Reciprocal feed (G93), 1/V1/2-9 Reduction of jerking, 1/B1/2-24 REF, REF active machine function, DB11, ... DBX5.2, 1/R1/2-6 References, C-21 Reference point, 1/R1/1-3 Referencing Absolute offset, 1/R1/2-23 Axis-specific, 1/R1/2-6 By means of actual value adjustment, 1/R1/2-33 By parts program, 1/R1/2-6 Channel-specific, 1/R1/2-6 Reference cam, 1/R1/2-22 Reference cam adjustment, 1/R1/2-14 Reference mark, 1/R1/2-22, 1/R1/2-23 With distance-coded marks, 1/R1/2-20, 1/R1/2-25 With incremental measurement system, 1/R1/2-8 Replaceable geometry axes, 1/K2/2-15 REPOS Delay Ack, 1/K1/5-192 REPOS mode, 1/K1/2-68 REPOS offset, 1/K1/5-192 REPOS offset valid, 1/K1/5-192 REPOSDELAY, 1/K1/5-192, 1/K1/5-193 Repositioning neutral axes after SERUPRO, 1/K1/2-63 REPOSMODEEDGE, 1/K1/5-182 REPOSMODEEDGEACKN, 1/K1/5-190 Reset, 1/K1/2-75, 1/N2/2-9
Reset and starting response, 1/K1/4-154 RESET command, 1/K1/2-73 Reset response, 1/K1/7-198 Reset time, 1/K1/2-129 Resolutions, 1/G2/2-7 Revolutional feedrate (G95), 1/V1/2-9 Revolutional feedrate active, 1/V1/2-10 Rigidity control (DSC), 1/K4/2-20 RMB, 1/K1/5-182 RME, 1/K1/5-182 RMI, 1/K1/5-182 RMN, 1/K1/5-182 RMNOTDEF, 1/K1/5-182 Rotary axes, 1/K2/2-19 Rotary axis With rotary encoder on motor, 1/G2/2-41 With rotary encoder on the machine, 1/G2/2-42 Rough offset, 1/K2/1-9, 1/K2/2-43 Rounding, 1/B1/2-18 Rounding with contour tolerance, 1/B1/2-22 RS 232, 1/K4/1-3 RS 232 C external, 1/A2/5-74, 1/A2/5-79 RS 232 C OFF, 1/A2/5-74, 1/A2/5-80 RS 232 C stop, 1/A2/5-74, 1/A2/5-79 RS 232, 1/K4/5-31 RS 232 C ON, 1/A2/5-75, 1/A2/5-80 Run-in and run-out paths, programmable, 1/V1/2-15, 1/V1/2-17 Runtime Measurement; Example, 1/K1/2-128 Of the NC program, 1/K1/2-128 Of the path axes, 1/K1/2-128
S
Safe actual position, 1/D1/2-12 Safe input signals, 1/D1/2-12 Safe output signals, 1/D1/2-12 SAVE command, 1/K1/2-89 Screen bright, 1/A2/5-71 Screen is dark, 1/A2/5-77
Index-14
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Selection, 1/A2/5-75, 1/A2/5-81 Selection of the cutting edge when changing tool, 1/W1/2-6 Semi-automatic procedure for matching the machine data, 1/D2/2-20 SER_CLASS_WRITE_TOA_SUPVIS, 1/A2/4-52 Serial interface MMC 100: File types, 1/K4/2-6 MMC 101/102: File types, 1/K4/2-7 Serial interfaces, 1/K4/5-31 Serial interfaces (RS232), 1/K4/2-5 SERUPRO, 1/K1/2-36 SERUPRO sequence without defining a search target beforehand, 1/K1/2-46 SERUPRO_SPEED_FACTOR, 1/K1/4-151 Servo enable, 1/A2/2-25, 1/A2/5-90 Servo gain factor, 1/D1/2-9, 1/G2/2-45 Set REPOS response, 1/K1/2-61 SETINT, 1/K1/2-87 SETINT_ASSIGN_FASTIN, MD 21210, 1/K1/4-148 Setpoint output, 1/G2/2-23 Setpoint parameter set, 1/D1/2-20 Setpoint system, 1/G2/2-23 Setpoint/actual-value system, Configuration of drives for SINUMERIK 840Di, 1/G2/2-30 Setting data for processing programs from external, 1/K1/4-167 Setting the computer mode (turning, milling), 1/A2/4-51 Setting the constant cutting rate, 1/S1/2-59 Setting the speed, 1/S1/2-59 Setup mode, 1/D1/2-20 Setup mode active, 1/A2/2-33, 1/A2/5-100 Shift behavior of keyboard during booting, 1/A2/4-50 ShopMill control signal, 1/A2/5-74 Signal Descriptions, 1/A2/5-67 Signal distortion, 1/A3/2-5 Signaling states, 1/A2/1-3
Signals Alarm signals, 1/A2/2-8 Axis/spindle-specific (DB31, ... ), 1/A2/2-6 Channel-specific (DB21, ... ), 1/A2/2-6 General (DB10), 1/A2/2-6 OP-specific (DB19), 1/A2/2-6 PLC/axes, spindles, 1/P3/2-40 PLC/mode group, 1/P3/2-37, 1/P3/2-38 PLC/NC, 1/P3/2-37 PLC/NCK channels, 1/P3/2-39 Ready signals, 1/A2/2-7 Signals from axis/spindle, 1/A2/2-33, 1/A2/5-97 Signals from channel, 1/A2/5-84 Signals from NC to PLC (DB10), 1/A2/5-68 Signals from operator panel, 1/A2/5-77 Signals from PLC to NC (DB10), 1/A2/5-67 Signals to axis/spindle, 1/A2/2-32, 1/A2/5-85 Signals to channel, 1/A2/5-83 Signals to operator panel, 1/A2/5-71 Simulation axes, 1/G2/2-24 Simulation selected, 1/A2/5-78 SINUMERIK 802D, 1/K1/2-129 SINUMERIK 810D powerline, vi SINUMERIK 840D powerline, vi SINUMERIK 840Di|SRAM, 1/R1/3-45 SLASH_MASK, 1/A2/4-58 Slotting saw, 1/W1/2-28 Smooth approach and retraction Approach movement, 1/W1/2-41 Meaning, 1/W1/2-41 Retraction movement, 1/W1/2-41 Smoothed actual current value, 1/D1/2-19 SOFT, 1/B2/2-8 Software limit switches, 1/A3/2-25 Special axes, 1/K2/2-19 Special spindle interface, 1/S1/2-55 Specify gear stage, 1/S1/2-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-15
06.03 10.00
Speed Actual point, 1/D1/2-10 Closed-Loop Control, 1/A3/2-21 Servo enable NC, 1/D1/2-17 Setpoint, 1/D1/2-10, 1/D1/2-19 Setpoint smoothing, 1/D1/2-19 Speed control loop, 1/G2/2-43 Speed controller active, 1/A2/2-31, 1/A2/5-99 Speed controller integrator disable, 1/A2/5-95 Speed controller integrator disabled, 1/A2/5-103 Speed setpoint adjustment, 1/G2/2-34 Speed setpoint output, 1/G2/2-34, 1/G2/2-47, 1/G2/2-50, 1/G2/2-56, 1/G2/2-60, 1/G2/2-61 Speed setpoint routing, 1/G2/2-25 Speed setpoint smoothing, 1/A2/2-32, 1/A2/5-93 Speed setpoint smoothing active, 1/A2/2-33, 1/A2/5-101 SPI(n, 1/S1/2-53 SPIND_POSIT_DELAY_TIME, 1/S1/4-87 Spindle commands, 1/S1/2-57 Spindle disable, 1/A2/2-19 Spindle job, 1/S1/2-56 Spindle override factor, 1/V1/2-30 Spindle reset, 1/A2/2-28 Spindle speed, 1/G2/2-6 Spindle speed limitation with G96, 1/V1/2-12 Spindle speed setpoint current, 1/D1/2-10 Spindle speed setpoint programmed, 1/D1/2-10 Spindle stop, 1/K1/2-75 Spindle-specific functions, 1/S1/2-61 SPOS, 1/B1/2-14 START command, 1/K1/2-70 Start-up and synchronization of NCK PLC, 1/P3/2-50 Stop bits, 1/K4/3-21 Stop block, 1/K1/2-41 STOP commands, 1/K1/2-71 Stop routine, 1/K1/2-41 STOP_LIMIT_FACTOR, 1/B1/4-58
Structure of MD files for data backup, 1/A2/4-60 SUMCORR_DEFAULT, 1/W1/4-140 SUPPRESS_ALARM_MASK, 1/D1/4-35 SUPPRESS_SCREEN_REFRESH, 10131, 1/A2/4-58 SW 5.2, 1/K1/1-7, 1/K1/2-127, 1/K1/7-202 Switch over MCS/WCS, 1/A2/5-78 Switch over measuring system, 1/A2/2-24 Symbolic programming of user program with interface DB, 1/P3/2-56 Synchronization, 1/B1/2-9 Synchronous axes, 1/B1/2-14, 1/B1/2-19, 1/K2/2-22 System variables, 1/A2/4-65, 1/A2/7-121 Channel-specific, 1/K1/2-127 NCK-specific, 1/K1/2-127 With read/write access, 1/K1/2-129
T
T function, 1/W1/2-5 T_NO_FCT_CYCLE_NAME, 1/K1/4-138 Tabulator length, 1/A2/4-50 TABULATOR_SIZE, 1/A2/4-50 Tachogenerator compensation, 1/A3/2-19 TEACH IN, 1/K1/2-16 Technical exponent representation in three steps, 1/A2/4-52 TECHNOLOGY, 1/A2/4-51 Technology memory, 1/D2/2-10 Test mode, 1/A3/2-17 Threshold speed, 1/D1/2-23 Threshold torque, 1/D1/2-21 Timer activation, 1/K1/2-129 Timers, Channel-specific, 1/K1/2-128 TOA, 1/W1/2-7 TOCARR_BASE_FINE_LIM_LIN, 1/W1/4-134 TOCARR_BASE_FINE_LIM_ROT, 1/W1/4-135 TOCARR_FINE_CORRECTION, 1/W1/4-152
Index-16
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Tool, 1/W1/2-5 Base dimension/adapter dimension, 1/W1/2-34 Change, 1/W1/2-5 Change tool with M06, 1/W1/2-5 Cutting edge, 1/W1/2-26 Cutting edge position, 1/W1/2-29 DISC, 1/W1/2-55 Length compensation, 1/W1/2-30 Management, 1/K1/1-7, 1/K1/2-127, 1/K1/2-129 Operating time, 1/K1/2-128 Radius compensation, 1/W1/2-32 Select, 1/W1/2-5 T function, 1/W1/2-5 Tool clearance angle, 1/W1/2-35 Tool cutting edge, 1/W1/2-5 Tool radius compensation 2D (TRC), 1/W1/2-38 Tool type, 1/W1/2-27 Wear, 1/W1/2-33 Tool change D function, 1/W1/2-6 Offset memory, 1/W1/2-7 Tool length compensation, 1/W1/2-30 Tool master data, 1/D2/2-11 Tool offset, Calculation, 1/W1/2-8 Tool offset selection, 1/A2/5-73 Tool operating data, 1/D2/2-11 Tool radius compensation, change alarm response, 1/W1/2-66 Tool radius compensation (TRC), 1/W1/2-38 Tool radius compensation: 2D, 1/W1/2-38 Approach and retraction behavior, 1/W1/2-40 Collision detection, 1/W1/2-60 Compensation at inside corners, 1/W1/2-58 Compensation at outside corners, 1/W1/2-54 Deselection, 1/W1/2-54 G451 intersection, 1/W1/2-56 Selection, 1/W1/2-39 Smooth approach and retraction, 1/W1/2-41 Transition circle, 1/W1/2-55 Variable compensation value, 1/W1/2-61, 1/W1/2-85 Tool revolver axes, 1/K2/2-19 Tool type, Slotting saw, 1/W1/2-28 TOOL_LENGTH_CONST, 1/K2/4-100, 1/W1/4-150
TOOL_REF_GEO_AXIS1, 1/K2/4-85 TOOL_REF_GEO_AXIS2, 1/K2/4-85 TOOL_REF_GEO_AXIS3, 1/K2/4-85 TOOL_TEMP_COMP, 1/W1/4-152 TOOL_TEMP_COMP_LIMIT, 1/W1/4-141 TOOL_TEMP_COMP_ON, 1/W1/4-141 Toolholder selection, 1/W1/2-72 Toolholder, orientational, 1/W1/2-72 Control system response on Reset, program start, REPOS, 1/W1/2-94 Programming, 1/W1/2-86, 1/W1/2-89, 1/W1/2-93, 1/W1/6-154, 1/W1/6-157 Supplementary conditions, 1/W1/2-85, 1/W1/2-89, 1/W1/2-94 Tools with relevant tool point direction, 1/W1/2-36 Torque limit, 1/D1/2-19 Torque limit 2, 1/A2/2-32, 1/A2/5-93 Torque limit 2 active, 1/A2/2-33, 1/A2/5-101 Torque limitation value, 1/D1/2-12 TRANS, 1/K2/1-9, 1/K2/2-43 Transfer time, 1/K1/2-63 Transformation, 1/K2/2-35 TRANSMIT, 1/K2/2-35 Transverse axes, 1/P1/1-3 Diameter programming, 1/P1/2-6 Geometry axes, 1/P1/2-5 Travel to fixed stop, 1/F1/1-3, 1/F1/2-5 Analog drives, 1/F1/2-28 Analog drives, diagrams, 1/F1/2-34 Analog drives, FXS deselection, 1/F1/2-36 Analog drives, FXS selection, 1/F1/2-34 Analog drives, SIMODRIVE 611A (FDD), 1/F1/2-28 Analog drives, SIMODRIVE 611A (MSD), 1/F1/2-30 Axis/spindle-specific signals, 1/F1/5-48 Axis-specific machine data, 1/F1/4-39 Axis-specific setting data, 1/F1/4-44 Deselection, 1/F1/2-11 Functional sequence, 1/F1/2-8 Interface signals, 1/F1/7-53 Monitoring window, 1/F1/2-9 Programming, 1/F1/2-6, 1/F1/2-8 RESET, 1/F1/2-13 Selection, 1/F1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-17
06.03 10.00
Travel to fixed stop (F1) Alarms, 1/F1/2-10 Contour monitoring, 1/F1/2-19 Detailed Description, 1/F1/2-5 Function abort, 1/F1/2-13 Machine data, 1/F1/7-54 Positioning axes, 1/F1/2-19 POWER ON, block search, 1/F1/2-14 Setting data, 1/F1/2-10, 1/F1/2-18, 1/F1/7-54 Signal Descriptions, 1/F1/5-47 Status interrogation, 1/F1/2-19 Traversing ranges, 1/G2/2-6 Types of feed, 1/V1/1-3 Types of protection zone, 1/A3/2-32
USER_CLASS_DIRECTORY4_M, 1/A2/4-57 USER_CLASS_DIRECTORY4_P, 1/A2/4-56 USER_CLASS_READ_TCARR, 1/A2/4-52 USER_CLASS_WRITE_MAG_WGROUP, 1/A2/4-52 USER_CLASS_WRITE_TCARR, 1/A2/4-52 USER_CLASS_WRITE_TOA_ASSDNO, 1/A2/4-52 USER_CLASS_WRITE_TOA_EC, 1/A2/4-52 USER_CLASS_WRITE_TOA_SC, 1/A2/4-52 USER_DATA_FLOAT[n], 1/P3/9-284 USER_DATA_HEX[n], 1/P3/9-284 USER_DATA_INT[n], 1/P3/9-284
U
U(ZK), 1/A2/2-35 UDC-link lower than warning threshold, 1/A2/5-112 Universal Serial Bus, 1/K4/1-3 Unload, 1/A2/5-75, 1/A2/5-81 Updating the REPOS offset within the valid scope, 1/K1/2-66 USB, interface, 1/K4/2-9 Useful Tips on Programming with STEP7, 1/P3/7-257 Copying data, 1/P3/7-258 Useful tips on programming with Step7 ANY and POINTER, 1/P3/7-258 Multi-instance DB, 1/P3/7-263 POINTER or ANY variable, 1/P3/7-261 Strings, 1/P3/7-264 Use of ANY and POINTER in FC, 1/P3/7-259, 1/P3/7-260 USER_CLASS_BASE_ZERO_OFF_MA, 1/K2/4-84 USER_CLASS_BASE_ZERO_OFF_PA, 1/K2/4-84 USER_CLASS_DIRECTORY1_M, 1/A2/4-57 USER_CLASS_DIRECTORY1_P, 1/A2/4-56 USER_CLASS_DIRECTORY2_M, 1/A2/4-57 USER_CLASS_DIRECTORY2_P, 1/A2/4-56 USER_CLASS_DIRECTORY3_M, 1/A2/4-57 USER_CLASS_DIRECTORY3_P, 1/A2/4-56
V
Value storage scratching and PRESET, 1/K2/4-84 Variable signal 1, 1/D1/2-23 Variable signaling function, 1/A2/2-35, 1/A2/5-111 Velocities, 1/B1/2-7, 1/G2/2-5 Velocity adjustment, 1/G2/2-34 Velocity for zero cycle blocks, 1/B1/2-7 Velocity reduction according to overload factor, 1/B1/2-16
W
WCS, 1/A2/2-16 WEAR_SIGN, 1/W1/4-150 WEAR_SIGN_CUTPOS, 1/W1/4-149 Working area limitation, 1/A3/2-28 Workpiece Actual, 1/K1/2-129 Counter, 1/K1/1-7, 1/K1/2-129, 1/K1/7-202 Example, 1/K1/2-130 Counting, 1/K1/2-127 Setpoint, 1/K1/2-129 Total actual, 1/K1/2-129
Index-18
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
06.03 10.00
Workpiece coordinate system (WCS), 1/A2/2-16, 1/K2/1-7, 1/K2/2-42, 1/P1/1-3, 1/P1/2-6 WRITE_TOA_LIMIT_MASK, 1/K2/4-86
Z
Zeros and reference points, 1/K2/2-29 ZK1 messages, 1/D1/2-18, 1/D1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-19
06.03 10.00
Notes
Index-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
A
A_COORDINATE_SYSTEM, 1/K2/4-86 Absolute compensation value meas. system 1 or 2, 1/D1/2-9 ABSBLOCK_FUNCTION_MASK, 1/K1/4-164 Absolute dimension tool length compensation geometry axis 1, 1/K2/4-85 Absolute dimension tool length compensation geometry axis 2, 1/K2/4-85 Absolute dimension tool length compensation geometry axis 3, 1/K2/4-85 Acceleration, 1/B2/1-3, 2/H1/2-6, 2/H1/2-17, 2/H1/2-34, 3/TE4/2-19 Kneeshaped acceleration characteristic, 1/B2/2-15 Programmable, 1/B2/2-17 Acceleration (B2), 1/B2/1-3 Alarms, 1/B2/7-34 Axisspecific machine data, 1/B2/4-23 Channelspecific machine data, 1/B2/4-28 Channelspecific setting data, 1/B2/4-29 Machine data, 1/B2/7-31 Setting data, 1/B2/7-33 System variables, 1/B2/7-34 Acceleration characteristic, 2/N4/2-16 Acceleration limitation, 1/B2/2-11 Acceleration profiles, 1/B2/2-5 Abrupt acceleration changes, 1/B2/2-5 Acceleration with jerk limitation, 1/B2/2-5 Acceleration reduction characteristic (FM-NC only), 2/S6/4-20 Acceleration time constant, 3/G3/2-7 Acceleration warning threshold, 3/M3/5-98 Access authorization, 1/A2/2-10, 3/V2/2-8 Access features, 1/A2/2-10 Access protection, 1/A2/2-10 ACN, 2/R2/2-12 ACP, 2/R2/2-12 Action single block, 1/K1/2-22 Activate coupling parameters, 2/S3/2-21 Activate following axis overlay, 3/M3/5-97 Activate temperature, Compensation, 2/K3/2-8 Activate/deactivate, 2/W4/2-22 Activating remote diagnostics later (MMC 100.2), 2/F3/2-89 Activating the rotation, 3/F2/2-67 Activation, 3/F2/2-42, 3/K6/2-7 After power ON, 2/S3/2-11 Methods, 2/S3/2-10 Of coupling, 2/S3/2-10 Activation and priorities, 1/K1/2-17 Activation of block skip, 1/A2/4-58 Activation of protection zones, Example, 1/A3/6-80
Numbers
10670, 3/F2/4-89 10672, 3/F2/4-89 13201, 2/M5/4-69 13210, 2/M5/4-69 2-axis SC special kinematic, 3/TE4/2-39 3-axis kinematics, Articulated-arm kinematics, 3/TE4/2-25 3-axis NR kinematic, 3/TE4/2-25, 3/TE4/2-27 3-axis RR kinematic, 3/TE4/2-26 3-axis CC kinematic, 3/TE4/2-22, 3/TE4/2-29, 3/TE4/2-36 3-axis CS kinematic, 3/TE4/2-24, 3/TE4/2-31 3-axis kinematics, 3/TE4/2-21, 3/TE4/2-28, 3/TE4/2-34, 3/TE4/2-38 SCARA kinematic, 3/TE4/2-22 3-axis SC kinematic, 3/TE4/2-23, 3/TE4/2-30 12104,12105, 3/F2/2-29 34104 REFP_PERMITTED_IN_FOLLOWUP, 1/R1/4-57 4-axis kinematics Articulated-arm kinematics, 3/TE4/2-32 SCARA kinematics, 3/TE4/2-29 4-axis NR kinematic, 3/TE4/2-32 5-axis kinematics, SCARA kinematics, 3/TE4/2-36 5-axis NR kinematic, 3/TE4/2-37 5-axis machining package, 3/F2/3-85 5-axis transformation Channel-specific signals, 3/F2/5-113 Configuration of a machine, 3/F2/2-18 Data descriptions (MD, SD), 3/F2/4-87 Geometry of the machine, 3/F2/2-19 Interface signals, 3/F2/7-129 Machine data, 3/F2/7-130 Machine types, 3/F2/2-16 Singular positions, 3/F2/2-27 Tool orientation, 3/F2/2-23 611D Ready, 1/A2/2-7, 1/A2/5-69 7-layer model, 2/B3/1-9
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-21
09.03 10.00
Activation speed/-velocity for acceleration reduction, 2/S6/4-20 Activation/Deactivation, 3/V2/2-7 Active, 1/A2/5-81 Active data (frames) are immediately operative after editing, 1/K2/4-86 Active drive parameter set A, B, C, 1/A2/5-101 Active feedforward control, 3/K6/2-9 Active file system, 2/S7/2-5 Active meas. system, 1/D1/2-9 Active motor, 1/A2/2-34 Active motor A, B, 1/A2/5-102 Active or passive file system, 1/A2/5-76 Active state, 2/B3/1-14 Active/passive operating mode, 2/B3/5-142 Active/passive operating mode of MMC, 2/B3/5-142 ACTIVE_SEL_USER_DATA, 1/K2/4-86 Actual motor, 1/D1/2-21 Actual parameter set, 1/D1/2-20 Actual position value measuring system, 1/D1/2-9 Actual speed = set speed, 1/D1/2-23 Actual value synchronization, 1/A2/2-27 Actual value correction, 1/G2/2-24 Actual value in WCS, 1/A2/5-72 Actual value in workpiece coordinate system, 1/A2/2-16 Actual value processing, 1/G2/2-34, 1/G2/2-47, 1/G2/2-50, 1/G2/2-56, 1/G2/2-60, 1/G2/2-61 Actual value resolution, 1/G2/2-36 Actual value routing, 1/G2/2-25 Actual value sensing, 1/G2/2-23 Actual value system, 1/G2/2-23 Workpiecerelated, 1/K2/2-77 Actual values, 1/A3/2-20, 2/M5/2-17 Actual-value coupling, 2/S3/2-34 Adaptation, Dynamic performance, 1/B1/1-3 Adapting active frames, 1/K2/2-56 Adapting the motor/load ratios, 1/G2/2-31 Adaptive control, 2/S5/2-29 Additive control, 2/S5/2-29 Example, 2/S5/2-32 Multiplicative control, 2/S5/2-29 ADDFRAME, 1/K2/2-70 Additive frame in frame chain, 1/K2/2-70 Address, 2/B3/1-12 Air temperature alarm, 1/A2/2-8, 1/A2/5-70 Alarm Delete criterion, 1/D1/2-6 Server, 2/B3/1-14, 2/B3/1-22 Text file, 2/B3/1-18 Text management, 2/B3/1-18 Alarm area selection, 1/A2/5-73 Alarm for preprocessing stop, 1/W1/2-66 ALARM_PAR_DISPLAY_TEXT, 1/D1/4-37 ALARM_REACTION_CHAN_NOREADY, 1/D1/4-37
Alarms, 1/A2/7-121, 2/B3/1-20, 2/B3/1-21, 2/B3/1-23 Messages, 2/B3/1-18 Alternate interface, 2/N4/2-15 AMIRROR(C), 2/R2/2-21 Analog axis: alarms, 3/TE2/7-23, 3/TE3/7-62 Analog axis: brief description, 3/TE2/1-3, 3/TE3/1-3 Analog axis: detailed description, 3/TE2/2-5, 3/TE3/2-5 Analog axis: Hardware configuration, 3/TE4/2-6, 3/TE2/2-7 Analog axis: machine data, 3/TE2/7-24, 3/TE3/7-61 Analog axis: supplementary conditions, 3/TE2/3-13, 3/TE3/3-33 Analog inputs of the NCK, 2/A4/2-19 Analog inputs-/outputs on local P bus of FM-NC, 2/L1/2-13 Analog outputs of the NCK, 2/A4/2-22 Analog spindle 1, utilization in percent, 1/A2/5-73 Analog spindle 2, utilization in percent, 1/A2/5-73 Analog value representation, 2/A4/2-32 Analysis output, 3/K6/2-8 Angle, inclined axis, 2/M1/2-46 Angular offset LS/FS, 2/S3/2-34 POSFS, 2/S3/2-11 Angularity error compensation, 2/K3/2-23 Applicability of MD 9203 to edge data and location-dependent offsets, 1/K2/4-86 Application tool, 2/B3/1-19 ASCALE, 2/R2/2-18 ASCII editor, 1/D2/2-6 Assigned timers, 1/P3/6-253 Assignment Bus nodes d bus system, 2/B3/1-14 By axis groups, 2/B3/1-27 MMCs NCUs, 2/B3/1-14 Oscillation/infeed axis, 2/P5/2-23, 2/P5/2-24 Assignment between probe type and application, 2/M5/2-5 Assignment of DBs, 1/P3/6-251 Assignment of FBs and FCs, 1/P3/6-251 Assignment tool/toolholder, 1/W1/2-72 ASUBs, 1/P3/2-55 Asynchronous events, 1/A2/1-3 Asynchronous subroutines (ASUBs), 1/K1/2-86 ATRANS, 1/K2/1-9, 1/K2/2-43, 2/R2/2-18 AUTOMATIC, 1/K1/2-16 Automatic mode, 1/K1/2-128 Automatic start of an ASUB following block search (SW 6.1 and higher, 1/K1/2-31 Automatically activated pre-initiation time, 2/N4/2-15 Autonomous machine, 2/B3/1-23
Index-22
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Autonomous single axis operations, 2/P2/6-42 Auxiliary function output, 1/B1/2-15 Detailed Description, 1/H2/2-5 Overstore, 1/H2/2-30 Power ON, block search, 1/H2/2-29 Auxiliary functions, 1/H2/1-3 Axis transformations, 3/F2/3-85 Axis transformation, Call and application, 3/F2/2-41 Electronic gear, 3/M3/3-82, 3/M3/3-83 Helix interpolation, 1/K2/3-81 Screw interpolation, 1/K2/3-81 Workpiecerelated actualvalue system, 1/K2/3-82 Zero offset, 1/K2/3-82 Availability of basic offset in Machine operating area, 1/K2/4-84 Availability of basic offset in Parameters operating area, 1/K2/4-84 AX_JERK_MODE, 1/B2/4-24 AXCHANGE_MASK, 2/K5/4-27 Axial measurement, 2/M5/2-58 Axial sources, 3/M3/2-68 Axis, 1/A2/2-19 Container, 2/B3/1-27, 2/B3/1-28 Container rotation active, 2/B3/5-146 Data, 2/B3/1-7 Holding the workpiece, 2/B3/1-27 Local, 2/B3/1-27, 2/B3/1-28 Physical, 2/B3/1-7, 2/B3/1-27 Ready, 2/B3/5-146 Rotary, 2/B3/1-25 Usable, 2/B3/1-7 Work-holding, 2/B3/1-28 Axis accelerated, 3/M3/5-97 Axis configuration, 1/K2/2-23 Axis direction, Changing, 3/TE4/2-18 Axis identifiers, 3/V2/2-12 Axis monitoring functions, 1/A3/1-3 Actual velocity, 1/A3/2-19 Axis/spindlespecific interface signals, 1/A3/7-81 Axis/Spindlespecific machine data, 1/A3/3-58, 1/A3/7-83 Axis/spindlespecific setting data, 1/A3/7-85 Axis/spindlespecific signals, 1/A3/5-69 Channelspecific machine data, 1/A3/7-85 Clamping, 1/A3/2-7, 1/A3/2-11 Contour, 1/A3/2-5 Following error, 1/A3/2-6 Positioning monitoring., 1/A3/2-7 Setting data, 1/A3/3-66 Speed setpoint, 1/A3/2-17 Supplementary conditions, 1/A3/3-55 Zero speed, 1/A3/2-7, 1/A3/2-10 Axis monitoring, protection zones (A3), Channelspecific machine data, 1/A3/3-57 Axis parameter sets, 1/G2/2-46 Axis sequence, Changing, 3/TE4/2-17
Axis types, 1/K2/2-13, 3/TE4/2-19 Axis zero points, Matching, 3/TE4/2-19 Axis/spindle disable, 1/A2/5-85 Axis/spindle lock DB31, ... DBX1.3, 1/V1/2-27 Axis/spindle replacement, 2/K5/1-3, 2/K5/2-13 Axis/spindle service display, 1/D1/2-8 Axis/spindle stops, 1/A2/2-30, 1/A2/5-98 Axis/spindlespecific signals, 1/A2/5-85 AXIS_VAR_SERVER_SENSITIVE, 2/B3/4-125 Axisrelated jerk limitation, 1/B2/2-12 Jerk limitation, 1/B2/2-12 Axisspecific machine data, 1/K2/4-99 Axisspecific signals, 1/K1/5-192 Axis transformation, 3/F2/1-7 AXRESET DONE, 2/P2/5-38
B
Backlash compensation 2nd measuring system, 2/K3/2-13 Display, 2/K3/2-12 Mechanical backlash, 2/K3/2-12 Negative backlash, 2/K3/2-13 Positive backlash, 2/K3/2-12 Backup battery, 2/B3/1-19 Basic axis configuration, 3/TE4/2-12 Basic block display, 1/K1/4-164 Basic coordinate system (BCS), 1/K2/1-7, 1/K2/2-35 Basic setting for Program directory, 1/A2/4-49 Basic setting of acceleration pattern (FM-NC), 2/S6/4-20 Basic system, 1/G2/2-13 Basic tool orientation, 1/W1/6-156 Baud rate, 1/K4/3-21, 2/B3/1-8 Beam sag compensation, 2/K3/2-23 Behavior at inner corners, 3/W5/2-25 Behavior at outer corners, 3/W5/2-24 Behavior at pole, 3/F2/2-27 Beveled hand with elbow, 3/TE4/2-14 Bi-directional probe, 2/M5/2-6 Block, 1/K1/2-75 Program operation mode, 1/K1/2-22 Search, 1/K1/2-26 Single block suppression, 1/K1/2-98, 1/K1/2-100 Block change, 1/B1/2-8, 1/B1/2-10 Block change point, 1/B1/2-13 Block change response, 2/S3/2-10 Block cycle time, 3/G3/2-7 Block search, 1/K1/1-5, 1/K1/1-6, 2/M5/2-58, 2/P2/2-8 Block search via program test, 1/K1/2-36 Block SPARPI, 1/K1/2-44 Block-related limit (FOC), 1/F1/2-23 Blockwise feed FB, 1/V1/2-42 BRISK, 1/B2/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-23
09.03 10.00
Bus Address, 2/B3/1-6 Capacity, 2/B3/1-8 Design, 2/B3/1-23 Node, 2/B3/1-8, 2/B3/1-12 Nodes, 2/B3/1-11, 2/B3/1-14, 2/B3/1-17 Properties, 2/B3/1-8 System, 2/B3/1-10, 2/B3/1-11, 2/B3/1-12, 2/B3/1-14 Termination, 2/B3/1-23 Type, 2/B3/1-6 Bus addresses, 1/K4/2-13 Bus addresses on SINUMERIK 840D, 1/P3/2-46 Bus addresses on SINUMERIK FMNC, 1/P3/2-47
C
Cabling, 2/B3/1-13 Calculation method, 2/M5/2-21 Calculation resolution, 1/G2/2-9 Calipers, 1/V1/2-38, 2/S5/2-28 Call, 3/V2/2-10 Call condition, 3/V2/2-10 Calling the ASUB outside program operation, 1/K1/2-90 Cam positions Axis/cam assignment, 2/N3/2-15 Setting cam positions, 2/N3/2-14 Cam range/cam pair, 2/N3/2-5 Cam signal output Independent, timer-controlled, 2/N3/2-20 Timer-controlled, 2/N3/2-19 Cam signals Activation of signal output, 2/N3/2-17 For linear axes, 2/N3/2-6, 2/N3/2-10 For modulo rotary axes, 2/N3/2-7 Hardware assignment, 2/N3/2-18 Lead/delay times, 2/N3/2-15 Minus, 2/N3/2-17 Output to NCK I/Os, 2/N3/2-18 Output to PLC, 2/N3/2-17 Plus, 2/N3/2-17 Cancel alarm cleared, 1/A2/5-77 Cancel alarms, 1/A2/2-16 Carrying out SERUPRO in a group of channels, 1/K1/2-44 Cartesian PTP travel, 3/F2/2-79 STAT address, 3/F2/2-80 TU address, 3/F2/2-81 Cascaded block search (SW 6.1 and higher), 1/K1/2-31 Categories of kinematics, 3/TE4/2-5 Centerless Grinding Activation/deactivation, 3/S8/2-5 Calculating the speed of the regulating wheel, 3/S8/2-5 What does the function do?, 3/S8/1-4 Centerless grinding, 3/S8/1-3
Central hand, 3/TE4/2-14 Central MMC, 2/B3/1-23 CFC, 1/V1/2-8 CFCIN, 1/V1/2-8 CFINE, 1/K2/1-9, 1/K2/2-43 CFTCP, 1/V1/2-8 Chained transformations, 2/M1/2-53 Activation, 2/M1/2-55 Disabling, 2/M1/2-55 Example, 2/M1/2-55, 2/M1/6-85 Number, 2/M1/2-54 Special characteristics, 2/M1/2-55 Chaining direction, 2/M1/2-54 Chaining rule, 2/W4/2-10 Change defined angular offset, 2/S3/2-10 Change in insertion depth, 3/W5/2-16 Change in orientation, 3/W5/2-10, 3/W5/2-25 Change protection for coupling characteristics, 2/S3/2-8 Channel, 1/B1/2-6, 1/K1/1-5, 1/K1/2-13, 2/K5/1-3, 2/P2/2-6 Channel configuration, 1/K1/2-13 Channel machine data, 1/K1/2-129 Channel status, 1/K1/2-75 Gaps, 1/K1/2-9, 1/K1/2-11 Menu, 2/B3/1-19 Name, 2/B3/1-19 VDI signal, 1/K1/2-129 Channel axes, 1/K2/2-15 Channel axis identifiers with FXS, 1/F1/2-7 Channel number (FC9: ChanNo), 1/A2/5-82 Channel number of machine control panel on MMC, 1/A2/5-73 Channel synchronization, 2/K5/2-6 Channel-specific machine data, 3/V2/4-15 Channels, number of, 2/B3/1-5, 2/B3/1-10 Channelspecific NCK alarm is active, 1/A2/2-8 Channelspecific signals, 1/A2/5-83 Chat, 2/F3/2-106 Circularity test, 2/K3/2-49, 2/K3/2-50, 2/K3/2-80 Display, 2/K3/2-82 Measurement, 2/K3/2-81 Parameterization, 2/K3/2-80 Representation, 2/K3/2-81 Clamping axis/spindle, 2/B3/1-28 Clamping protection zone, 2/N4/2-32 Clear cancel alarms, 1/A2/5-72 Clear recall alarms, 1/A2/5-72 Clearance control: alarms, 3/TE1/7-49, 3/TE5/7-29, 3/TE6/7-25 Clearance control: brief description, 3/TE1/1-3, 3/TE5/1-3 Clearance control: detailed description, 3/TE1/2-5 Clearance control: detailed description, 3/TE0/2-5, 3/TE6/2-5 Clearance control: machine data, 3/TE1/7-53, 3/TE5/7-30 Clearance control: programming, 3/TE1/2-13
Index-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Clearance control: signals, 3/TE1/7-54, 3/TE5/7-30 Clearance control: suplementary conditions, 3/TE1/3-21 Clearance control: supplementary conditions, 3/TE5/3-13 Clearance control:signal descriptions, 3/TE1/5-41, 3/TE5/5-17, 3/TE6/5-21 Closed kinematic loop, 3/TE4/2-10 ClosedLoop Control, 1/G2/2-43 Collision detection, 1/W1/2-60 COM1, 1/A2/5-74, 1/A2/5-79 COM1 or COM2, 1/K4/2-6 COM2, 1/A2/5-74, 1/A2/5-79 Combination of different bus systems, 2/B3/1-14 Communication MMC 100, 1/K4/2-6 MMC 100/101/102, 1/K4/1-3 MMC 101/102, 1/K4/1-3 Communication log, 1/D1/2-28 Communication with global data (GD), 1/P3/2-33 Commutation limit, 1/B2/2-15 Comparator inputs, 2/A4/2-7, 2/A4/2-34 Compensation table, 2/K3/2-19 Compensations, Additional torque for electronic weight compensation, 2/K3/4-97 Compilation, 3/V2/2-7 Complete machining, 2/M1/2-9 Computer Link, 2/B3/1-6, 2/B3/2-34 Module, 2/B3/1-11 Computing capacity, 2/B3/1-25 Concurrent axes, 1/P3/2-54 Configurability of machine control panel, handheld unit, 1/P3/2-66 Configurable gear adaption, 1/S1/2-28 Configuration, 2/B3/1-19 Configuration file, 2/B3/1-11, 2/B3/2-40, 2/B3/2-57, 2/B3/2-63 NETNAMES.INI, 2/B3/6-169 Number, 2/B3/2-57 Configuring the software for HT6, 2/F3/2-83 for MMC 100.2, 2/F3/2-77 Conn_1, 2/B3/1-17 Connection of probe, 2/M5/2-7 Operating area, 2/B3/1-21 to 810D, 2/M5/2-9 to 840D, 810D, 2/M5/2-7 to 840Di, 2/M5/2-8 to FM-NC NCU 570.2, 2/M5/2-11 Connection setup, 2/F3/2-94 for Windows 3.1X, 2/F3/2-101 for Windows 95, 2/F3/2-94 for Windows NT, 2/F3/2-99 in MS-DOS (MMC 100.2), 2/F3/2-103
Connector X101, 2/B3/1-17 X122, 2/B3/1-21 Constant cutting rate (G96), 1/V1/2-11 Constant grinding wheel peripheral speed (GWPS), 2/W4/2-30 Constant speed G9, 1/V1/2-11 Constant workpiece speed for centerless grinding, 3/S8/2-5 Container axes, 1/K1/2-14 Contamination signal, 1/A3/2-23 Continuous Dressing, 2/W4/2-18 Jogging, 2/H1/2-10 Measurements, 2/M5/2-63 Mode, 2/T1/2-6 Traversal Continuous mode, 2/H1/2-10 Jog mode, 2/H1/2-10 Continuouspath mode, 1/B1/2-13 Continuouspath mode, exact stop and LookAhead (B1) Alarms, 1/B1/7-66 Axisspecific machine data, 1/B1/4-56 Axisspecific signals, 1/B1/5-61 Channelspecific machine data, 1/B1/4-50 Channelspecific signals, 1/B1/5-61 General machine data, 1/B1/4-49 Interface signals, 1/B1/7-63 Machine data, 1/B1/7-64 Contour deviation, 1/D1/2-9 Contour error, 1/A3/2-5 Contour handwheel, 2/H1/2-28 Pulses per detent position, 2/H1/4-44 Contour tunnel monitoring, 3/K6/2-7 Contour violation, 1/A3/2-28, 1/A3/2-31 Contrast, 1/A2/2-35 Control, 1/B2/2-15 Normal powerup, 1/K1/2-127 Unit, 2/B3/1-6, 2/B3/1-7, 2/B3/1-10, 2/B3/1-12, 2/B3/1-13, 2/B3/1-15, 2/B3/1-20 Unit switchover, 2/B3/1-14 Control deviation, 1/D1/2-9 Control direction, 1/G2/2-34 Control of JOG traverse functions, 2/H1/2-8 Control panel, Main, 2/B3/1-6 Control powerup, 1/K1/2-127 With default values, 1/K1/2-127 Control velocity continuously, 2/S5/2-20 Controller mode, 1/D1/2-11 Controller parameter set switchover, 1/A2/6-113 Controller parameter set switchover (checkback signal), 1/A2/5-99 Controller parameter set switchover (request), 1/A2/5-91 Controlling synchronous spindle coupling via PLC, 2/S3/2-15
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-25
09.03 10.00
Conversion of basic system, 1/G2/2-13 Coordinate system, 1/A3/2-36 Coordinate systems, 1/K2/1-5, 1/K2/1-6, 1/K2/1-7, 1/K2/2-32, 2/H1/2-7 Corner, 3/T3/1-3 Corner in area, 3/T3/6-20 COROS OP, 2/B3/1-13 Counting Algorithm, 1/K1/2-129 Pulse, 1/K1/2-129 Coupled Axes Behavior in operating modes, 3/M3/2-12 Programming, 3/M3/2-11 Coupled axes, Axis types, 3/M3/2-9 Coupled motion, Interface signals, 3/M3/2-13 Coupling Characteristics, 2/S3/2-8 Define new, 2/S3/2-19 Options, 2/S3/2-6 Parameters, 2/S3/2-25 Permanent coupling configuration, 2/S3/2-19 Type, 2/S3/2-8 User-defined, 2/S3/2-19 Coupling two FM-NCs with one PLC, Coupling two FM-NCs with one PLC, 1/P3/8-268 Coupling two FMNC Modules to one PLC, 1/P3/8-267 Basic program error messages, 1/P3/8-281 Coupling with the components MMC/MSTT/ OP, 1/P3/8-270 Function of the basic program for two FMNCs, 1/P3/8-275 Interface structure, 1/P3/8-271 Memory space, 1/P3/8-281 PLC/MCP/HHU interface, 1/P3/8-273 PLC/MMC interface, 1/P3/8-273 PLC/NCK interface, 1/P3/8-271 Special features of blocks when using two FMNCs, 1/P3/8-276 FB1: RUN_UP, 1/P3/8-276 FB2...5: Read/write NC variables, PI services, GUD variables, 1/P3/8-278 FC 15, 16, 18: POS_AX, PART_AX, SpinCtrl, 1/P3/8-279 FC 9: ASUB, 1/P3/8-280 Couplings, 1/K1/2-51 CRC error, 1/D1/2-18 Cross-communication, 2/B3/1-29 CTRANS, 1/K2/1-9, 1/K2/2-43 Current controller active, 1/A2/2-31, 1/A2/5-99 Current gear stage, 1/D1/2-11 Curve tables Axis types, 3/M3/2-15 Behavior in operating modes, 3/M3/2-25 Interface signals, 3/M3/2-26 Programming, 3/M3/2-17 CUT3DC, 3/W5/2-28 CUT3DF, 3/W5/2-28 CUT3DFF, 3/W5/2-28
CUT3DFS, 3/W5/2-28 Cutter material memory, 1/D2/2-10 Cutter shapes, 3/W5/2-18 Cutting edge number, 1/W1/2-10 Cutting edge position, relevant, 1/W1/2-36 Cycle times Defaults, 3/G3/2-6 Cycle Times Example, 3/G3/2-6 Cycle-independent path-synchronous switch signal output, Brief description, 3/TE8/1-3 Cycle/independent path/synchronous switch signal output, 3/TE8/2-5 Cycles with parameter, 3/V2/2-9 Cycles without parameter, 3/V2/2-9 Cyclic operation, 1/P3/2-50 Cyclical communication, 1/K4/2-15 Cyclical signal exchange, 1/A2/2-5, 1/P3/1-5 Cylinder coordinate system, 2/M1/2-29 Cylinder generated surface, 2/M1/1-6
D
D functions, 1/W1/2-5 D number structure, flat (without tool management), 1/W1/2-19 D numbers, Allocation of free ..., 1/W1/2-10 Darken screen, 1/A2/2-15, 1/A2/5-71 Data Backup via RS-232, 2/B3/1-17, 2/B3/1-21 Exchange, 2/B3/1-16 Management server, 2/B3/1-14 Data backup, 1/D1/2-6 Data channel, high-speed, 1/A2/2-41 Data Exchange Time, 3/G3/2-10 Data readoff, 1/D1/2-13 Data sets, 1/D2/2-19 DC link Backup, 3/M3/2-76 Energy balance, 3/M3/2-77 DC link backup, 3/M3/2-72 DC link status, 1/D1/2-18 DC link voltage, 1/B2/2-15 Deactivation of coupling, 2/S3/2-11 while spindles are moving, 2/S3/2-11 Deceleration methods, 3/K6/1-3, 3/K6/2-7 Decoding single block, 1/K1/2-22 Decoding single block SBL2 with implicit preprocessing stop, 1/K1/2-97 Default, 2/B3/1-13 Default passwords, 1/A2/2-11 Default settings, 2/S3/2-21 Default value for path feed, 1/V1/4-63 DEFAULT_FEED, 1/V1/4-63 Define number of skippable program levels, 1/K1/4-132 Defined short-circuits, 2/A4/4-46 Defining the reference for the path override, 1/V1/4-57
Index-26
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Definition, EG axis grouping, 3/M3/2-47 Definition of a joint, 3/TE4/2-8 Definition of synchronous spindles, 2/S3/2-7 Delay time for ESR single axis, 2/P2/4-35 Delete couplings, 2/S3/2-21 Delete distance to go, 1/A2/2-19 Delete distancetogo (axisspecific)/Spindle reset, 1/A2/5-91 Delete distancetogo (channelspecific), 1/A2/5-83 Descriptions of kinematics, 3/TE4/2-21 Deselecting synchronous mode, 2/S3/2-11 Deselection methods, 2/S3/2-12 Deviation in synchronism, 3/M3/2-41 Diagnostic tools General machine data, 1/D1/4-35 Machine data, 1/D1/7-42 Diagnostic tools (D1), 1/D1/1-3 Alarms, 1/D1/2-5 External, 1/D1/1-3 Integrated, 1/D1/1-3 Interface signals, 1/D1/7-41 Diagnostics, 1/D1/1-3, 1/D1/2-8 611D startup tool, 1/D1/2-31 Archiving of data, 1/D1/2-31 for alarms, 1/D1/2-14, 1/D1/2-24 of operational state errors, 1/D1/2-15 Diagnostics buffer on PLC, 1/P3/2-33 DIAMOF, 1/P1/1-3, 1/P1/2-6 DIAMON, 1/P1/1-3, 1/P1/2-6 Digital inputs of the NCK, 2/A4/2-12 Digital inputs-/outputs on local P bus of FM-NC, 2/L1/2-11 Digital outputs of the NCK, 2/A4/2-14 Direct connection, 2/B3/1-18 Direction of offset of tool for geometry axes with scratching, 1/K2/4-86 Disable synchronization, 2/S3/5-41 (DB31, ... DBX31.5), 2/S3/2-15 DISC, 1/W1/2-55 Display geo axes of channel first, 1/K1/4-131 Display mode of zero offset, 1/K2/4-87 Display of orientation axes as Euler angle, 1/K2/4-84 Display resolution, 1/A2/2-36, 1/G2/2-9 Displayed channel number of MMC, 1/A2/5-78 Distance control, 1D/3D, 3/TE1/2-10 DL auxiliary function for sum offset, 1/H2/2-11 Double addressing, 2/B3/1-16 DP cycle, 3/G3/2-9 DP cycle time, 3/G3/2-10 DRAM, 2/S7/2-6 Memory requirements, 2/S7/2-25 Dressing during machining process, 2/W4/2-18 DRF, 2/H1/1-3, 2/H1/2-38, 2/T1/2-21 Offset, 2/H1/2-38 Drift, 2/K3/2-87 Drift compensation, 2/K3/2-87 DRIFT_LIMIT, 2/K3/2-87 Drive configuration, 1/G2/2-30
Drive control, 2/B3/1-27 Drive enable, 1/D1/2-17 Drive parameter set selection, 1/A2/2-32 Drive parameter set selection A, B, C, 1/A2/5-94 DRIVE ready, 1/A2/2-34 Drive Ready, 1/A2/5-103 Drive service display, 1/D1/2-15 Drive status, 1/D1/2-18 DRIVE_AX_RATIO_DENOM, 1/S1/4-76 DRIVE_AX_RATIO2_NUMERA, 1/S1/4-77 Drum, 2/B3/1-27 Drum/rotary switching axis, 2/B3/1-25 Dry run feed, 1/K1/2-24, 1/V1/2-33 Dry run feedrate, 2/P2/2-32 Dry run feedrate (DryRun), 1/S1/2-62 DRY_RUN_FEED_MODE, MD 42101, 1/V1/4-63 DRYRUN_MASK, 1/V1/2-34 Dx, 3/G3/2-10 Dyn. stiffness control: delay, 2/K3/4-105 Dynamic MMC property, 2/B3/1-13 Response adaptation, 2/S3/2-33 Switchover, 2/B3/1-6 Dynamic response adaptation, 1/G2/2-45 Dynamic Stiffness Control Config., MD 32642, 2/K3/4-105
E
EG, Electronic gear, 3/M3/2-38 EG axis grouping Activating, 3/M3/2-48 Defining, 3/M3/2-47 Deactivating, 3/M3/2-52 Deleting, 3/M3/2-53 EG axis groupings, 3/M3/2-39 Electronic gear, 3/M3/1-6, 3/M3/2-38 System variables, 3/M3/2-54 Electronic weight compensation, 2/K3/2-89 EMERGENCY STOP, 1/N2/1-3, 1/N2/2-5 Acknowledgment, 1/N2/2-8 PLC/NCK, 1/N2/2-6 Sequence, 1/N2/2-7 Enable pulses, 1/D1/2-18 ENABLE_ALARM_MASK, 1/D1/4-37 ENABLE_CHAN_AX_GAP, 1/K2/4-92 ENC_IS_DIRECT2, 1/S1/4-76 Encoder coding, 1/G2/2-37 Encoder monitoring functions, 1/A3/2-21 Encoder frequency, 1/A3/2-21 Zero marks, 1/A3/2-22 Encoder switchover, 3/K6/2-7 End of motion criterion with block search, 2/P2/2-27 Equidistant index intervals, 2/T1/2-12 Error, 1/A2/5-78, 1/A2/5-81 Error RS232C, 1/A2/5-80
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-27
09.03 10.00
ESR, 3/M3/2-60 Activation, 3/M3/2-69 Logic operation, 3/M3/2-69 Trigger sources, 3/M3/2-68 ESR_DELAY_TIME1, MD 21380, 3/M3/4-87 ESR_DELAY_TIME2, MD 21381, 3/M3/4-88 ESR_REACTION, MD 37500, 3/M3/4-89 Euler, 3/TE4/2-43 Euler angle, 3/F2/2-23 Eventcontrolled program sequences, 1/K1/2-80 Eventdriven signal exchange, 1/P3/1-5, 1/P3/1-6 Exact stop, 1/B1/2-9 Exact stop criteria, 1/B1/2-10 Exact stop coarse, 1/A3/2-8, 1/B1/2-11 Exact stop fine, 1/A3/2-9, 1/A3/2-10, 1/B1/2-11 Exact stop criterion, 1/B1/2-13 Exact stop limit fine, 1/A3/2-8 EXACT_POS_MODE, MD 20550, 1/B1/4-54 Example Cont. mesurement on completion of prog. traversing movement, 2/M5/6-74 Continuous measurements modally over several blocks, 2/M5/6-75 Continuous measurements with deletion of distance-to-go, 2/M5/6-75 Measuring mode 1, 2/M5/6-73 Measuring mode 2, 2/M5/6-74 One operator panel, three NCUs, 2/B3/6-170 TRAANG, 2/M1/6-83 TRACYL, 2/M1/6-80 TRANSMIT, 2/M1/6-79 Two operator panels, one NCU, 2/B3/6-169 Example of auxiliary function output, 1/H2/2-20 Example of functional test, 2/M5/6-76 Example of functional test on probe, 2/M5/2-65 Example: Clearance control, 3/TE1/6-45, 3/TE5/6-19, 3/TE6/6-23 Example: Tangential control, 3/T3/6-19, 3/TE2/6-17, 3/TE3/6-53 Execute external subroutine, 1/K1/2-109, 1/K1/2-110 Execution from external source, extension (SW 4 and higher), 1/K1/2-109 Expansions to punching and nibbling functions, 2/N4/2-15 EXPONENT_LIMIT, 1/A2/4-52 EXPONENT_SCIENCE, 1/A2/4-52 EXTCALL, 1/K1/2-110 Extended stop and retract, 3/M3/2-60 External data communications connector, 1/K4/1-3 External protection zone, 1/A3/2-38
F
Face milling, 3/W5/2-18 Factor of acceleration reduction, 2/S6/4-20 Fast analog NCK inputs, 2/A4/2-20 Faults, 2/B3/1-18 FB 10: Safety relay, 1/P3/4-152 FB 11: Brake test, 1/P3/4-155 FB 2: GET, 1/P3/4-102 FB 29: Signal recorder and data trigger diagnostics, 1/P3/4-159 FB 3: PUT, 1/P3/4-109 FB 4: PI_SERV General PI services, 1/P3/4-115 FB 5: GETGUD Read GUD variable, 1/P3/4-138 FB 7: PI_SERV2 General PI services, 1/P3/4-143 FB 9 M:N control unit switchover, 1/P3/4-147 FB 9: Operating unit switchover, 1/P3/4-89 FC 10: AL_MSG, 1/P3/4-182 FC 13: BHGDisp, 1/P3/4-185 FC 15: POS_AX, 1/P3/4-188 FC 16: PART_AX, 1/P3/4-193 FC 17: YDelta, 1/P3/4-197 FC 18: SpinCtrl, 1/P3/4-200 FC 19: MCP_IFM, 1/P3/4-209 FC 2: GP_HP, 1/P3/4-163 FC 22: TM_DIR, 1/P3/4-224 FC 24: MCP_IFM2, 1/P3/4-226 FC 25: MCP_IFT, 1/P3/4-230 FC 3: GP_PRAL, 1/P3/4-164 FC 5: GP_DIAG, 1/P3/4-167 FC 7: TM_REV, 1/P3/4-168 FC 8: TM_TRANS, 1/P3/4-171 FC 9: ASUB, 1/P3/4-179 FC9: Start (measuring in Jog mode), 1/A2/5-82 Feed disable, 1/V1/2-26 Feed disable DB21, ... DBX6.0, 1/V1/2-26 Feed FB, Blockwise, 1/V1/2-42 Feed for chamfer/rounding, 1/V1/2-40 Feed override, 1/B1/2-7, 1/R1/2-15 Feed override switch, 1/V1/2-27 Feed stop, 1/K1/2-75 Feed/spindle stop, 1/V1/2-26 Feedforward control, 2/K3/1-3, 2/K3/2-39 Feedrate, 1/B1/2-7, 1/R1/2-15, 2/P2/2-28 Feedrate override, 2/H1/2-6, 2/P2/2-11, 2/P2/2-23, 2/P2/2-27, 2/P2/2-28 Feedrate/rapid traverse override, 2/H1/2-33
Index-28
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Feedrates Dry run feed, 1/V1/2-33 Feed control, 1/V1/2-26 Feed disable, 1/V1/2-26 Feed override, 1/V1/2-27, 1/V1/2-32 Feed/spindle stop, 1/V1/2-26 Feeds in one block, 1/V1/2-34 G93, G94, G95, 1/V1/2-9 Path feed F, 1/V1/2-7 Positioning axes FA, 1/V1/2-24 Positioning feed G94, 1/V1/2-25 Rigid tapping G331/G332, 1/V1/2-23 Several in one block, 2/S5/2-25 Spindle override, 1/V1/2-30 Tapping with compensation chuck G63, 1/V1/2-23 Thread cutting G33, 1/V1/2-14 FGROUP, 1/K2/2-19, 1/K2/2-22 Field weakening, 1/B2/2-15 File, Transfer, 2/F3/2-105 File types BIN, 1/K4/2-6 BOT, 1/K4/2-6 COM, 1/K4/2-6 CPA, 1/K4/2-6 DIR, 1/K4/2-6 GIA, 1/K4/2-6 GUD, 1/K4/2-6 IKA, 1/K4/2-6 INI, 1/K4/2-6 LUD, 1/K4/2-6 MPF, 1/K4/2-6 OPT, 1/K4/2-6 RPA, 1/K4/2-6 SEA, 1/K4/2-6 SPF, 1/K4/2-6 SYF, 1/K4/2-6 TEA, 1/K4/2-6 UFR, 1/K4/2-6 WPD, 1/K4/2-6 Fine interpolation, 1/G2/2-44 Fine offset, 1/K2/1-9, 1/K2/2-43 Fine/coarse synchronism, 2/S3/2-17 FIPO, 1/G2/2-44 Fixed coupling configuration, 2/S3/2-6 Fixed feed values, 1/V1/2-39 Flat D number structure, 1/W1/2-19 D number programming, 1/W1/2-21 Read D number from the PLC, 1/W1/2-20 Floppy disk drive, 1/K4/2-10 FM, 1/P3/8-268 FM 354 as 5th axis, 2/L1/2-8 Interfaces and front-panel elements, 2/L1/2-9 Machine data, 2/L1/2-10 FM-NC, 2/B3/1-22 Following error, 1/D1/2-9
Following error compensation, 2/K3/2-39 (feedforward control) Axial following errors, 2/K3/2-39 Feedforward control methods, 2/K3/2-39 Speed feedforward control, 2/K3/2-41 Torque feedforward control, 2/K3/2-45 Dynamic response adaptation, 2/K3/2-47 Parameter, 2/K3/2-40 Parameters, 2/K3/2-46 Following error compensation (feedforward control), speed feedforward control, 1/G2/2-51 Followup, 1/A2/2-21 Followup mode, 1/A2/2-20, 1/A2/5-87, 1/A3/2-6, 1/A3/2-11 Followup mode active, 1/A2/2-30, 1/A2/5-97 Foreground language, 1/A2/2-35 FRAME, 1/K2/1-5, 1/K2/2-15, 1/K2/2-42 FRAME chaining, 1/K2/2-67 MIRROR, 1/K2/2-54 SCALE, 1/K2/2-54 Frame, 3/TE4/2-6 Friction Compensation, (quadrant error compensation), Start-up, 2/K3/2-50 Friction compensation, 2/K3/2-48 (quadrant error compensation) Amplitude adaptation, 2/K3/2-49 Characteristic parameters, 2/K3/2-50 Quadrant errors, 2/K3/2-48 Conventional, 2/K3/2-49 Full-/half-step, 2/S6/3-17 Function overview of inch/metric switchover (SW 5 and higher), 1/G2/2-21 Data backup, 1/G2/2-19 Rounding machine data, 1/G2/2-20 Synchronized actions, 1/G2/2-15 Function Retrace Support, 3/TE7/2-5 Function viewer PC MS-DOS, 2/F3/2-112 Functional testing of probe, 2/M5/2-65 Functionality, 3/V2/2-5
G
G groups, 1/K1/2-69 G0 logic in G96, 1/V1/4-60 G40, 1/W1/2-39 G41, 1/W1/2-39 G42, 1/W1/2-39 G450, 3/W5/2-10 G450/G451, 1/W1/2-54 G451, 1/W1/2-56, 3/W5/2-13 G460, 1/W1/2-68 G461, 1/W1/1-4, 1/W1/2-69 G462, 1/W1/1-4, 1/W1/2-69 G58, 1/K2/1-9, 1/K2/2-43 G59, 1/K2/1-9, 1/K2/2-43
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-29
09.03 10.00
G91, Frames, 1/K2/3-82 G91 Extension, Machine zero, 3/F2/2-61 G91 extension, offset external (WOE), 1/W1/2-97 Gantry Axes Start-up, 3/G1/2-18 Terms, 3/G1/2-5 Gantry axes, 3/G1/1-3 Differences between gantry axes and coupled axes functions, 3/G1/2-25 Referencing and synchronization, 3/G1/2-10 Gap, 1/K1/2-11 GC, 3/G3/2-10 Gear stage change from NC, 1/S1/2-28 Gear stages, 1/S1/2-28 General, 2/M5/2-5 General machine data, 1/A3/3-57, 2/K5/4-27, 3/V2/4-13 General notes, 3/V2/2-5 General reset, 2/B3/1-19 General sources, 3/M3/2-68 Generator operation, 3/M3/2-72, 3/M3/2-78 Generic 5-axis transformation, 3/F2/2-42 Geometry axes, 2/H1/2-7 in JOG mode, 2/H1/2-33 Geometry axes, 1/B1/2-5, 1/B1/2-14, 1/B1/2-18, 1/K2/2-15, 1/K2/2-19, 1/K2/2-35, 1/P1/1-3 Geometry model, 1/D2/2-6 Geometry monitoring, 2/W4/2-27 Global control telegramm, 3/G3/2-10 Global data, 2/B3/1-16 GMMC_INFO_NO_UNIT, 1/K1/4-143 GMMC_INFO_NO_UNIT_STATUS, 1/K1/4-143 Grinding operations, 2/M1/2-40 Grinding tools, 2/W4/2-5, 2/W4/2-14 Grinding-specific tool monitoring, 2/W4/2-27 Groove machining, 2/M1/2-28 Groove side compensation, 2/M1/1-6 Groove traversing-section, 2/M1/2-30 GroupSerupro, 1/K1/2-42, 1/K1/2-45 GWPS, 2/W4/2-30 in all operating modes, 2/W4/2-32
H
Hand axes Configuration, 3/TE4/2-13 Parameterization, 3/TE4/2-13 Handheld programming unit (HPU), 2/B3/1-13, 2/B3/1-16 Handheld unit (HHU), 1/K4/2-11
Handling Transformation Package Alarms, 3/TE4/7-76 Brief Description, 3/TE4/1-3 Channel-specific machine data of standard system, 3/TE4/4-57 Channel-specific signals, 3/TE4/5-69 Configuring data, 3/TE4/2-17 Creating alarm texts, 3/TE4/3-53 Data Description, 3/TE4/4-57 Data Fields, Lists, 3/TE4/7-75 Detailed Description, 3/TE4/2-5 Example, 3/TE4/6-71 General machine data, 3/TE4/2-9 Interface signals, 3/TE4/7-75 Limitations of function, 3/TE4/3-54 NC machine data, 3/TE4/7-75 Options, 3/TE4/3-53 Signal Descriptions, 3/TE4/5-69 Start-up, 3/TE4/6-71 Supplementary conditions, 3/TE4/3-53 Handwheel 840Di, 2/H1/4-43 Assignment, 2/H1/2-15 Connection, 2/H1/2-15 Path definition, 2/H1/2-28 Selection from MMC, 2/H1/2-16 Traversal in JOG, 2/H1/2-15 Velocity specification, 2/H1/2-28 Via actual-value input, 2/H1/2-25 Handwheel override in AUTOMATIC mode Path definition, 2/H1/2-19 Programming and activation, 2/H1/2-22 Velocity override, 2/H1/2-20 Hardware configuration Internet, 2/F3/1-18 ISDN, 2/F3/1-15 Modem, 2/F3/1-15 Network, 2/F3/1-17 Windows with Gateway, 2/F3/1-19 Hardware faults, 1/A3/2-23 Hardware limit switches, 1/A3/2-24, 2/H1/2-35 Heatsink temperature prewarning, 1/A2/2-34, 1/A2/5-106 Heatsink temperature warning, 1/D1/2-21 Helical interpolation, 1/K2/2-22 Helix interpolation, 1/K2/2-22 HHU, 2/B3/1-16 Hide several program levels, 1/K1/4-131 High-speed data channel, 1/A2/2-41 Higraph first error display, 1/A2/5-73 Hirth tooth system, 2/T1/2-13
Index-30
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
HMI Embedded, 1/K4/2-6 Hold, 1/A2/2-21 Homogeneous network, 2/B3/1-20 Host computer, 2/B3/1-6, 2/B3/2-34 HPU, 2/B3/1-13, 2/B3/1-16 HPU address, 1/K4/2-13
I
I/O device interface, 2/M5/2-10, 2/M5/2-12 ID check, 1/K1/2-129 Identification, operator panels, 2/B3/2-58 Identification of axis sequence, 3/F2/2-18 Implicit continuouspath mode, 1/B1/2-17 Implicit exact stop, 1/B1/2-14 INC, 1/P1/2-6, 2/T1/2-5, 2/T1/2-6 Inch measuring system, 1/G2/2-13 Inch or metric units of measurement, 2/M5/2-24 Inclined axis, 2/M1/3-61 TRAANG, 2/M1/2-40 Incremental jogging, 2/H1/2-12 Incremental jogging (INC) Continuous mode, 2/H1/2-12 Jog mode, 2/H1/2-12 Independent drive, 3/M3/2-73 Independent drive generator operation, 3/M3/2-62 Independent drive reactions, 3/M3/2-62 Independent drive retract, 3/M3/2-62, 3/M3/2-74 Independent drive stop, 3/M3/2-63 Indexing axes, 2/T1/2-5 Coded position, 2/T1/2-10 Coded positions, 2/T1/2-7 Continuous traversal, 2/T1/2-6 Handwheel, 2/T1/2-6 Incremental traversal (INC), 2/T1/2-6 Parameterization, 2/T1/2-9 Programming, 2/T1/2-10 Reference point approach, 2/T1/2-5, 2/T1/2-21 Start-up, 2/T1/2-18 Traversal by PLC, 2/T1/2-8 Infeed, 2/P5/1-3 at 2 reversal points, 2/P5/2-21 at reversal point, 2/P5/2-19 in reversal point range, 2/P5/2-19 Influence path axes individually, 1/K1/2-67 Influence SERUPRO behavior, 1/K1/2-37 Initial learning, 2/K3/2-69 Initial setting, 1/B1/2-7 Initial settings, 1/K1/2-69 Input resolution, 1/G2/2-9 Input Time, 3/G3/2-10 Input values, 2/M5/2-16 Insertion depth ISD, 3/W5/2-8
Installing Remote diagnosis on the control system, 2/F3/1-51, 2/F3/1-53, 2/F3/2-65 the PC card MMC 100.2, 2/F3/2-76, 2/F3/2-77, 2/F3/2-83 the TCP/IP protocol, 2/F3/1-34 Integrator disable, 1/A2/2-33, 1/D1/2-19 Integrator ncontroller disabled, 1/A2/2-34 Interactive Programming Adaptation of simulation data (SW 3.1 and higher), 1/D2/2-14 Adaptation of simulation data (SW 3.2 and higher), 1/D2/2-18 Adapting the technology memory, 1/D2/2-10 Archiving of configuration data, 1/D2/2-31 Area of application, 1/D2/2-5 Axisspecific machine data, 1/D2/7-40 Basic procedure, 1/D2/1-3 Channelspecific machine data, 1/D2/7-39 Compatibility, 1/D2/2-7 Configuring the user interface, 1/D2/2-8 Creation of a tool catalog, 1/D2/2-11 Customizing the axis names, 1/D2/2-13 Example, 1/D2/6-37 General conditions, 1/D2/2-7 General machine data, 1/D2/7-39 Matching the tool offset data, 1/D2/2-27 Milling, 1/D2/2-12 Restriction, 1/D2/2-7 Setting up, 1/D2/2-12 Simulation data, special conditions, 1/D2/2-22 Supplementary conditions, 1/D2/3-33 Turning, 1/D2/2-12 Interactive programming (D2), 1/D2/1-3 Interface, 2/B3/1-11, 2/H1/2-8, 2/M5/2-10 Interface signal, 840Di, 1/A2/2-9 Interface signal, PC Shutdown, 1/A2/2-9 Channelspecific NCK alarm is active, 1/A2/5-84 Interface signals, 2/K5/5-29 Activate channelspecific protection zone, 1/A3/5-73 Activate dry run feed, 1/V1/5-66 Activate M01, 1/K1/5-175 Activate machinerelated protection zone, 1/A3/5-73 Activate program test, 1/K1/5-176 Activate referencing, 1/R1/5-65 Activate single block, 1/K1/5-175 Active drive parameter set, 1/A2/2-34 Active G function of groups 1 to 60, 1/K1/5-188 Active machine function REF, 1/K1/5-175 Active machine function REPOS, 1/K1/5-174 Active machine function TEACH IN, 1/K1/5-174
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-31
09.03 10.00
Active mode AUTOMATIC, 1/K1/5-173 Active mode JOG, 1/K1/5-173 Active mode MDA, 1/K1/5-173 Active spindle control mode, 1/S1/5-107 Active spindle mode oscillation mode, 1/S1/5-107 Active spindle positioning mode, 1/S1/5-107 Actual direction of rotation clockwise, 1/S1/5-105 Actual gear stage A to C, 1/S1/5-99 All axes referenced, 1/R1/5-66 All channels in Reset state, 1/K1/5-174 AUTOMATIC mode, 1/K1/5-169 Block search active, 1/K1/5-184 Change gear, 1/S1/5-104 Channel status active, 1/K1/5-187 Channel status interrupted, 1/K1/5-187 Channel status reset, 1/K1/5-187 Channelspecific protection zone preactivated, 1/A3/5-74 Channelspecific protection zone violated, 1/A3/5-75 Clamping in progress, 1/A3/5-69 Delete S value, 1/S1/5-98 Dry run feedrate selected, 1/V1/5-71 Enable protection zones, 1/A3/5-72 Encoder limit frequency exceeded, 1/A3/5-71 F function for positioning axis, 1/V1/5-79 Feed disable, 1/V1/5-70 Feed hold (Geometry axis 1 to 3), 1/V1/5-71 Feed override, 1/V1/5-66 Feed override (axisspecific), 1/V1/5-73 Feed override active, 1/V1/5-71 Feed override for rapid traverse selected, 1/V1/5-72 Feedrate hold/spindle stop (axisspecific), 1/V1/5-78 For operator panel, 1/A2/2-15 Gear changed, 1/S1/5-99 Hardware limit switches plus and minus, 1/A3/5-70 Invert M3/M4, 1/S1/5-100 JOG mode, 1/K1/5-169 M function for spindle, 1/S1/5-108 M00/M01 active, 1/K1/5-183 M01 selected, 1/K1/5-181 M02/M30 active, 1/K1/5-184 Machine function REF, 1/K1/5-172 Machine function REPOS, 1/K1/5-171 Machine function TEACH IN, 1/K1/5-171 Machinerelated protection zone preactivated, 1/A3/5-73 Machinerelated protection zone violated, 1/A3/5-74 MDA mode, 1/K1/5-169 Measuring status, 2/M5/5-71 Mode group ready, 1/K1/5-174 Mode group reset, 1/K1/5-171 Mode group stop, 1/K1/5-170
Mode group stop axes plus spindles, 1/K1/5-170 Mode switchover disable, 1/K1/5-170 n (act) < n(x), 1/A2/2-35 NC Start, 1/K1/5-178 NC start disable, 1/K1/5-178 NC Stop, 1/K1/5-179 NC Stop at block limit, 1/K1/5-178 NC Stop axes plus spindles, 1/K1/5-180 Oscillation speed, 1/S1/5-101 Oscillation via PLC, 1/S1/5-101, 1/S1/5-102, 1/S1/5-103 Override active, 1/V1/5-77 Probe actuated, 2/M5/5-71 Program level abort, 1/K1/5-178, 2/K5/5-29 Program status aborted, 1/K1/5-187 Program status interrupted, 1/K1/5-186, 1/K1/5-189 Program status running, 1/K1/5-185 Program status stopped, 1/K1/5-186 Program status wait, 1/K1/5-186 Program test active, 1/K1/5-185 Program test selected, 1/K1/5-181 Rampfunction generator rapid stop active, 1/A2/2-33 Rapid traverse override, 1/V1/5-68 Rapid traverse override active, 1/V1/5-70 Readin disable, 1/K1/5-177 Reference point approach delay, 1/R1/5-67 Reference point value 1 to 4, 1/R1/5-66 Referenced/synchronized 1, 1/R1/5-67 Referenced/synchronized 2, 1/R1/5-67 Referencing active, 1/R1/5-65 Reset, 1/K1/5-181 Resynchronize spindle 1 and 2, 1/S1/5-98 Resynchronize spindle during positioning 2 and 1, 1/S1/5-100 Revolutional feedrate active, 1/V1/5-79 Rigid tapping active, 1/S1/5-108 S function for spindle, 1/S1/5-108 Second software limit switch plus or minus, 1/A3/5-70 Selected machine function REF, 1/K1/5-173 Selected mode AUTOMATIC, 1/K1/5-172 Selected mode JOG, 1/K1/5-172 Selected mode MDA, 1/K1/5-172 Selected mode TEACH IN, 1/K1/5-172, 1/K1/5-173 Set counterclockwise/Set clockwise, 1/S1/5-100 Set gear stage A to C, 1/S1/5-104 Setpoint speed increased, 1/S1/5-106 Setpoint speed limited, 1/S1/5-106 Skip block, 1/K1/5-176 Speed limit exceeded, 1/S1/5-106 Spindle in setpoint range, 1/S1/5-105 Spindle override, 1/V1/5-75
Index-32
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Spindle reset/Delete distancetogo, 1/S1/5-97 Spindle/no axis, 1/S1/5-103 Velocity/spindle speed limitation, 1/A3/5-70 Zero offset, 1/K2/5-102 Interface signals (A2), 1/A2/1-3 Interface signals for digital drives, 1/A2/2-32 Interface signals from and to channel, 1/A2/2-19 Interface signals from axis/spindle, 1/A2/2-30 Interface signals to axis/spindle, 1/A2/2-19 Interface signals Table, 1/A2/7-115 Intermediate block, 3/T3/1-3 Intermediate blocks, 3/W5/2-28 Internal protection zone, 1/A3/2-38 Interpolation, 2/B3/1-27 Interpolation buffer, reduced, 1/K1/2-103 Interpolation cycle, 2/B3/1-8, 2/B3/1-29 Interpolation functions, 2/P2/2-10, 2/P2/6-41 Interpolation of the angle of rotation, 3/F2/2-66 Interpolation of the rotation vector, 3/F2/2-66 Interpolation parameter sets, 1/G2/2-47 Interpolator, 1/K1/2-13 Interpolator cycle, 3/G3/2-7 Interpolator cycle, 840Di, 3/G3/2-10 Interpolator end, 1/B1/2-11 Interpolatory axis grouping, 1/A2/2-27 Interpolatory compensation Linear interpolation, 2/K3/2-17 Methods, 2/K3/2-15 Interrupt routines, 1/K1/1-6, 1/K1/2-86, 1/K1/4-131 Intersection behavior for 3D compensation, 3/W5/2-13 Invert M3/M4, 1/S1/2-58 INVFRAME, 1/K2/2-68 IPO cycle, 3/G3/2-8 IS Feedrate stop/spindle stop (DB31, ... DBX4.3), 2/S3/2-16 ISD, 3/W5/2-8
Keyswitch, 1/A2/2-12 Keyswitch position, 1/A2/5-67 Kinematic transformation, 1/K2/2-35, 3/F2/2-15, 3/TE4/2-5 Configuration, 3/TE4/2-9 Start-up, 3/TE4/6-74 Kinematics of machines, 3/F2/2-16 Knee-shaped acceleration characteristic, 2/S6/2-8 Activation, 2/S6/2-12 Equivalent path characteristic, 2/S6/2-11 G64-Block transition, 2/S6/2-13 G64-Braking ramp, 2/S6/2-14 Parameterization of axis characteristic, 2/S6/2-8 Path characteristic, 2/S6/2-10 Kneeshaped acceleration characteristic, Selection and deselection, 1/B2/2-16 KONT, 1/W1/2-40 Kv factor, 1/A3/2-5, 1/D1/2-14, 1/G2/2-44
L
Labels, 1/K1/2-79 Language command SPN, 2/N4/2-22 SPP, 2/N4/2-20 Language commands ACC, 1/B2/2-17 BRISK, 1/B2/2-8 SOFT, 1/B2/2-8 Large batch production, 2/B3/1-25 Laser cutting: clearance control, 3/TE1/2-5 Last action block active, 1/K1/5-183 Learning ON / OFF, 2/K3/2-66 the neural network, 2/K3/2-65 LEN_PROTOCOL_FILEX, 11420, 1/D1/4-37 LIFTFAST, 1/K1/2-87 LIFTFAST_WITH_MIRROR, 1/K1/4-148 Limit angle for the fifth axis, 3/F2/2-27 Limit switch monitoring, 1/A3/2-24 Limit value for offsets fine, 1/K2/4-87 Limit value for wear fine, 1/K2/4-87 Linear axis, 2/T1/2-9 with linear scale, 1/G2/2-38 with rotary encoder on motor, 1/G2/2-39 with rotary encoder on the machine, 1/G2/2-40 Linear drives, 1/K4/2-20 Linear feed (G94), 1/V1/2-9 Link axes, 1/K1/2-14 Link axis, 2/B3/1-27, 2/B3/1-28 Link changeover, instant, 2/B3/1-17 Link frames, 3/TE4/2-15 Link module, 2/B3/1-28, 2/B3/1-29 Link variables, 2/B3/1-7 Global, 2/B3/1-29
J
Jerk limit, 1/B1/2-24 Jerk limitation, 1/B1/2-23 Smoothing method, 1/B2/2-13 Jerk limitation on the path, Example, 1/B1/7-63 JOG, 1/K1/2-16, 1/P1/2-6, 2/H1/2-36, 2/T1/2-5 JOG mode, 2/H1/2-5, 2/H1/2-33, 2/T1/2-6
K
Keep tool radius compensation constant, 1/W1/2-63 Key disable, 1/A2/2-15, 1/A2/5-71 Keyboard, 2/B3/1-11 Keyboard type, 1/A2/4-50 KEYBOARD_STATE, 1/A2/4-50 KEYBOARD_TYPE, 1/A2/4-50
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-33
09.03 10.00
Link-changeover, attempt, 2/B3/1-21 Little/big endian representation for PLC I/O, 2/A4/4-54 Load, 1/A2/5-81 Load parts program, 1/A2/5-75 Loader axes, 1/K2/2-19 Local NCU, 2/B3/1-22 Local P-bus, 2/L1/2-5 Configuration, 2/L1/2-5, 2/L1/2-6, 2/L1/2-7 FM 354 as 5th axis, 2/L1/2-7 Inputs/-outputs, 2/L1/2-7 Lockable data areas, 1/A2/2-13 Log book, 1/D1/2-29 Longitudinal grooves, 2/M1/1-6 Look Ahead, 1/B1/2-13, 1/B1/2-42 Block cycle problem, 1/B1/2-46 Continuouspath mode, 1/B1/2-42 Exact stop, 1/B1/2-42 Following block velocity, 1/B1/2-44 Override, 1/B1/2-45 Selection and deselection, 1/B1/2-46 Velocity profiles, 1/B1/2-44 LOOKAH_SMOOTH_WITH_FEED, MD 20462, 1/B1/4-51 LookAhead, Number of blocks, 1/B1/2-43 Lubrication pulse, 1/A2/2-31, 1/A2/5-100 LVDS, 1/K4/1-3
M
M command, 2/W3/1-3 M decoding acc. to list, 1/P3/2-58 M:N concept, 2/B3/1-10 M:N switchover, 2/B3/1-13 M(d) less than M(dx), 1/A2/5-108 M_NO_FCT_CYCLE, 1/K1/4-137 M_NO_FCT_CYCLE_NAME, 1/K1/4-137 MA_AXES_SHOW_GEO_FIRST, 1/K1/4-131 MA_MAX_SKP_LEVEL, 1/K1/4-132 MA_ORIAXIS_EULER_ANGLE_NAME, 1/K2/4-84 MA_PRESET_MODE, 1/K1/4-132 MA_PREST_FRAMEIDX, 1/K2/4-84 MA_SCRATCH_DEFAULT_MODE, 1/K2/4-86 MA_STAT_DISPLAY_BASE, 1/K2/4-83 MA_TU_DISPLAY_BASE, 1/K2/4-83 Machine Control panel, 2/B3/1-11, 2/H1/2-8 Rear panel, 2/B3/1-20 State, global, 2/B3/1-29 Machine axes, 1/K2/2-14 Machine coordinate system, 1/A2/2-16 Machine coordinate system (MCS), 1/K2/1-7, 1/P1/2-6 Machine coordinate systems (MCS), 1/K2/2-34
Machine data, 1/A2/7-118, 3/V2/7-20 10134 (MM_NUM_MMC_UNITS), 2/B3/1-18 20000 (CHAN_NAME), 2/B3/1-19 for analog inputs-/outputs, 2/L1/4-18 for digital inputs-/outputs, 2/L1/4-18 for the 5th axis, 2/L1/4-17 TRAANG, 2/M1/4-71 TRACYL, 2/M1/4-69 Transformation-specific, 2/M1/4-64 TRANSMIT, 2/M1/4-67 Machine data for operator panel, 1/A2/4-47 Machine data for processing programs from external, 1/K1/4-143 Machine data in the transformation standard set, channel-specific, 3/TE4/4-58 Machine data, channelspecific, 1/A2/4-60 Machine data, general, 1/A2/4-58 Machine kinematics, 3/F2/2-42 Swiveling linear axis, 3/F2/1-9 Machine tool axes, 1/K2/2-19 Machine types, 3/F2/2-16, 3/F2/2-18, 3/F2/2-43 Machine zero, 1/R1/1-3 Machining, face-end, 2/M1/1-5 Main axes, 1/K2/2-21 Main control panel, 2/B3/1-14 Main technological application, 1/K1/2-15 Manual specification of a gear stage, 1/S1/2-33 Manual stroke initiation, 2/N4/5-43 Manual switchover of the basic system General, 1/G2/2-17 Input resolution and calculation resolution, 1/G2/2-19 JOG and handwheel evaluation, 1/G2/2-19 Reference point, 1/G2/2-18 System data, 1/G2/2-18 Tool data, 1/G2/2-18 Manual switchover of the basic system (SW 5 and higher), 1/G2/2-17 Manual traverse in JOG, 2/H1/2-5 Master Application Cycle, 3/G3/2-10 Master axis, 3/G1/2-5 Master computer, 2/B3/1-7 Master Time, 3/G3/2-10 Master value coupling Axis types, 3/M3/2-30 Interface signals, 3/M3/2-37 Programming, 3/M3/2-33 Response in operating modes, 3/M3/2-36 Master, slave communication, 2/B3/1-6 Matching the machine data, 1/D2/2-16 Material memory, 1/D2/2-10 Maximum permissible path feed for compression, 1/V1/4-59 Maximum stepper motor frequency, 2/S6/3-17, 2/S6/4-19 MAXNUM_USER_DATA_FLOAT, 1/P3/9-284
Index-34
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
MAXNUM_USER_DATA_HEX, 1/P3/9-283 MAXNUM_USER_DATA_INT, 1/P3/9-283 MCP, 2/B3/1-11, 2/B3/1-17 Control unit, 2/B3/1-6 MCP changeover, 2/B3/1-14, 2/B3/2-50 MCP switchover disable, 2/B3/5-141 MCS, 1/A2/2-16 MCS Coupling: Brief Description, 3/TE6/1-3 MCS coupling: Supplementary Conditions, 3/TE6/3-13 MD 37500, ESR_REACTION, 3/M3/4-89 MD_FILE_STYLE, 1/A2/4-60 MDA (MDI), 1/K1/2-16 MEAC, 2/M5/2-63 MEAS, MEAW commands, 2/M5/2-13 MEAS_PROBE_LOW_ACTIVE, 2/M5/4-69 MEAS_PROBE_SOURCE, 2/M5/4-69 MEAS_TYPE, 2/M5/4-69 Measurement Accuracy, 2/M5/2-65 Results, 2/M5/2-61 Measuring Cycles, 2/M5/2-22 Mode 1, 2/M5/2-59 Mode 2, 2/M5/2-59 Points, 2/M5/2-17 Measuring systems, 1/G2/2-24 Memory Capacity, Hardware configuration 840Di, 2/S7/2-7 Configuration, 2/S7/2-8 Organization, 2/S7/2-8 Memory required, 3/V2/2-8 Memory requirements of basic PLC program, 1/P3/6-254 Maximum, 1/P3/6-256 Minimum, 1/P3/6-256 Menu Connections/Service, 2/B3/1-18 Start-up/MMC/Operator panel, 2/B3/1-19 Message signals in DB2, 1/P3/5-247 Metric measuring system, 1/G2/2-13 Milling/drilling unit, 2/B3/1-25 Minimum speed, 1/D1/2-23 Minimum time interval between two consecutive strokes, 2/N4/2-16, 2/N4/4-39 MIRROR(C), 2/R2/2-21 MIRROR_TOOL_LENGTH, 1/W1/4-149 MIRROR_TOOL_WEAR, 1/W1/4-149 Mirroring, Retraction direction (lift fast), 1/K1/2-87 Mixing axes of setpoint output with actual value input, 2/L1/3-15 MM_ABSBLOCK, 1/K1/4-164 MM_ABSBLOCK_BUFFER_CONF, 1/K1/4-164 MM_NUM_MMC_UNITS, 2/B3/1-18 MM_NUM_VDIVAR_ELEMENTS, 1/P3/9-285 MM_SERVO_FIFO_SIZE, MD 18720, 2/B3/4-125, 2/B3/4-128
MM_SYSTEM_FRAME_MASK, 1/K2/4-99 MMC, 1/K1/2-128, 1/K1/2-129, 2/B3/1-18, 2/B3/1-19 Control unit, 2/B3/1-6 Operator action, 2/B3/1-13 PLC interfaces, 2/B3/1-11 Properties static/dynamic, 2/B3/1-13 State, 2/B3/1-11 Switchover, 2/B3/2-43 MMC 1 requests active operating mode, 2/B3/5-141 MMC 1 switchover disable, 2/B3/5-141 MMC 100 / MMC 102 / 103, 2/B3/1-16 MMC 100.2/102/103, 2/B3/1-11 MMC alarm, 1/A2/2-8 MMC alarm is active, 1/A2/5-68 MMC CPU1 Ready, 1/A2/2-7, 1/A2/5-68 Modal activation (FOCON/FOCOF), 1/F1/2-23 Modal execution from external source, 1/K1/2-109 Modally active synchronized actions, 1/K1/2-16 Mode change disable, 1/A2/5-77 Mode group, 1/K1/2-9, 1/P3/2-51, 2/K5/1-3, 2/K5/2-5 Number, 1/K1/2-11 Ready to operate, 1/K1/2-12 Reset, 1/K1/2-12 Mode group number, 1/A2/5-82 Mode groups, 1/K1/2-16 Group, 1/K1/1-5, 1/K1/2-10 Interlocks, 1/K1/2-18 Monitoring functions, 1/K1/2-18 Operating mode switchover, 1/K1/2-19, 1/K1/2-130 Modes, 2/H1/2-36 Modified activation of machine data, 2/T1/2-15 Modify the torque FXS, 1/F1/2-22 Modular machine concept, 2/B3/1-5 Modulo, 2/T1/2-9 Modulo 360, 2/R2/2-9 Monitor type, 1/A2/2-35 Monitoring functions, 2/H1/2-35 Monitoring functions in the modes, 1/K1/2-18 Monitoring of Stepper motor rotation with BERO, 2/S6/2-7 The input signal, 2/N4/2-15 Monitoring of static limits, 1/A3/2-24 Mono-directional probe, 2/M5/2-6 Motion control, 2/B3/1-27 Motion monitoring functions, 1/A3/2-5 Motion specification, 1/S1/2-58 Motion-synchronous actions, 2/S5/2-6 Conditions, 2/S5/2-8 Principle, 2/S5/2-6 Real-time variables, 2/S5/2-10 Structure, 2/S5/2-7 Motion-synchronous conditions, 2/P5/2-17 Motor, 1/A2/2-32 Motor selection, 1/D1/2-20
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-35
09.03 10.00
Motor selection A, B, 1/A2/5-94 Motor selection in progress, 1/A2/5-95 Motor temperature, 1/D1/2-19 Motor temperature warning, 1/A2/2-34, 1/A2/5-105, 1/D1/2-21 MPI, 2/B3/1-12, 2/B3/1-16, 2/B3/1-21 MPI, Network rules, 2/B3/1-24 MPI/DP, interface, 1/K4/2-11 MPI/DP interface (RS485), 1/K4/2-10 Multi-directional probe (3D), 2/M5/2-6 Multi-face machining, 2/B3/1-25 Multi-point interface (MPI), 2/B3/1-12 Multi-spindle machine, 2/B3/1-25 Multi-spindle turning machine, 2/B3/1-5 Multiple feed values in one block, 1/V1/2-34 Multiple feedrate values in one block, 2/S5/2-25 Multiple starts with SERUPRO, 1/K1/2-42
N
n(act) equals n(set), 1/A2/5-110 n(act) less than n(min), 1/A2/5-110 n(act) less than n(x), 1/A2/5-110 NC Address, 2/B3/1-12, 2/B3/1-16 NC instruction, 1/K1/2-70 NC Start, 1/K1/2-70, 1/K1/2-128 Production center, 2/B3/1-5 Program, 1/K1/2-128 Stop, 1/K1/2-75 Reset, 1/K1/2-128, 1/K1/2-130 NC address, 2/B3/1-17 NC failure, 1/P3/2-53 NC Ready, 1/A2/5-69 NC VAR selector, 1/P3/3-78 Startup, installation, 1/P3/3-88 NC variables, 1/P3/3-83 NC-controlled extended stop, 3/M3/2-64 NC-controlled retraction, 3/M3/2-66 NC-PLC data exchange, 2/B3/1-19 NCK alarm handler, 1/D1/2-5 NCK alarm is active, 1/A2/2-8, 1/A2/5-69 NCK alarm with processing stop, 1/A2/2-8 NCK alarm with processing stop present, 1/A2/5-84 NCK battery alarm, 1/A2/2-8, 1/A2/5-70 NCK CPU Ready, 1/A2/2-7, 1/A2/5-68 NCK I/Os, 2/A4/2-5 NCK machine data, axis/spindlespecific data, 1/A2/4-61 NCspecific signals, 1/A2/5-67 NCU, 2/B3/1-21 Grouping, 2/B3/1-7 Link, 2/B3/1-6, 2/B3/1-10, 2/B3/1-25, 2/B3/2-34 Operation, 2/B3/1-22 Replacement, 2/B3/1-19
NCU link active, 2/B3/5-146 NCU link axis active, 2/B3/5-146 NCU-NCU communication, 2/B3/1-25 NCU_LINKNO, 2/B3/4-125 NETNAMES.INI, 2/B3/1-11, 2/B3/1-14, 2/B3/1-15, 2/B3/1-17, 2/B3/1-19, 2/B3/2-57 Syntax, 2/B3/2-57 Network rules, 2/B3/1-13, 2/B3/1-24 Networked NCUs, 2/B3/1-25 Neural quadrant error compensation, 2/K3/2-57 Optimization, 2/K3/2-72 Parameterization, 2/K3/2-59 Start-up, 2/K3/2-69 Noncyclic communication, 1/K4/2-15 NORM, 1/W1/2-40 Normalization, 1/G2/2-7 Normalization of machine and setting data, 1/G2/2-10 Number of Analog inputs-/outputs, 2/L1/3-15 Axes, 2/B3/1-5, 2/B3/1-10 Bus nodes, 2/B3/1-17 Chained transformations, 2/M1/2-54 Direct read inputs bytes of PLC I/Os, 2/A4/4-52 Direct write output bytes of PLC I/Os, 2/A4/4-52 Synchronous spindles, 2/S3/2-5 Number of places to be displayed without exponent, 1/A2/4-52 Numerical basis for display of moving joint STAT, 1/K2/4-83 Numerical basis for display of rotary axis position TU, 1/K2/4-83
O
O.K., 1/A2/5-79, 1/A2/5-80 OEM solution, 2/B3/1-22 Offline Request, 2/B3/2-44 State, 2/B3/1-14 Offset number, 1/W1/2-11 Online Changeover, 2/B3/1-17 State, 2/B3/1-14 Online tool offset, 2/W4/2-18 Online tool radius compensation, 2/W4/2-26 OP030, 2/B3/1-16, 2/B3/1-20 OP030/OP031/OP032, 2/B3/1-11 Operating Area, 2/B3/1-17, 2/B3/1-18, 2/B3/1-21, 2/B3/1-22 Unit, 2/B3/1-5
Index-36
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Operating mode changeover, 2/M5/2-58 Operating mode changeover rejected, 2/B3/5-142 Operator, 2/B3/1-14 Component, 2/B3/1-18 Components Manual, 2/B3/1-12, 2/B3/1-23 Display, 2/B3/1-21 Interface, 2/B3/1-12 Panel, 2/B3/1-10, 2/B3/1-11, 2/B3/1-12, 2/B3/1-14, 2/B3/1-16, 2/B3/1-17, 2/B3/1-18, 2/B3/1-19, 2/B3/1-20, 2/B3/1-21, 2/B3/1-23 Panel interface (OPI), 2/B3/1-12 Screen, 2/B3/1-22 Station, 2/B3/1-10 Operator panel, Main secondary, 2/B3/1-11 Operator panel reset, 1/K1/2-81, 1/K1/2-83 Operators Guide, 2/B3/1-12 OPI, 2/B3/1-12, 2/B3/1-16, 2/B3/1-23 Network rules, 2/B3/1-24 Options in synchronous mode, 2/S3/2-6 ORIC, 3/W5/2-10, 3/W5/2-25 ORID, 3/W5/2-12 Orientation, 1/A3/2-36, 3/F2/2-48 Orientation axes, 1/B1/2-18, 3/F2/1-11, 3/F2/1-12, 3/F2/2-56 Definition, 3/F2/1-11 Introduction, 3/F2/1-11, 3/F2/1-12 Programming, 3/F2/2-58 Orientation axis, 1/B1/2-5 Orientation direction, 3/F2/2-65 Orientation in TCS and MCS, 3/F2/2-23 Orientation path in pole vicinity, 3/F2/2-28 Orientation programming, 3/F2/2-23 Orientation transformation, 3/F2/2-15 Orientation vectors, 3/F2/2-62 Orientational toolholder, 1/W1/1-4, 1/W1/2-72, 1/W1/6-153 ORIMKS, 3/F2/2-24, 3/TE4/2-44 ORIWKS, 3/F2/2-24, 3/TE4/2-44 OS, 2/P5/2-10 OSCILL, 2/P5/2-17, 2/P5/2-23, 2/P5/2-24 Oscillation, 2/P5/1-3 Asynchronous, 2/P5/1-3, 2/P5/2-6 Continuous infeed, 2/P5/1-3 Infeed, 2/P5/2-25 PLC control, 2/P5/2-12 With synchronized actions, 2/P5/2-16, 2/P5/6-37, 2/P5/6-39 Oscillation axis, 2/P5/1-3 Oscillation movement Restarting, 2/P5/2-23 Stopping, 2/P5/2-22 OSCTRL, 2/P5/2-11 OSE, 2/P5/2-12 OSNSC, 2/P5/2-12 OSP, 2/P5/2-10 OST, 2/P5/2-10
Outer corners/inner corners, 3/W5/2-9 Output Time, 3/G3/2-10 Overlaid movement, 2/S3/2-9 Overload factor, 1/B1/2-16 Override, 1/D1/2-10, 1/K1/2-127 Overstore, 1/H2/2-30
P
P-bus, 2/B3/1-8 PA_ZOA_MODE, 1/K2/4-87 Parallel interface, 1/K4/5-32 Parallel interface (Centronics), 1/K4/2-8 Parameter Process Data Object (PPO), 1/K4/2-15 Parameter set (axis), 1/D1/2-11 Parameter sets of the position controller, 1/G2/2-46 Parameterization of basic block display, 1/K1/4-164 Parameterization of machine geometry, 3/TE4/2-10 Parameterization of stepper motor frequency, 2/S6/2-15 Parking axis, 1/D1/2-20 Parts program, 2/B3/1-28, 2/B3/1-29 Parts program end, 1/K1/2-81 Parts program start, 1/K1/2-80, 1/K1/2-113 Parts program start and parts program end, 1/K1/2-82 Parts programs Parts program interruption, 1/K1/2-71 Skipping of specific parts program blocks, 1/K1/2-25 Passive File system, 2/S7/2-5 State, 2/B3/1-14 Password, 1/A2/2-11 Resetting, 1/A2/2-11 Setting, 1/A2/2-11 Path axes, 1/B1/2-5, 1/K2/2-19, 2/P2/2-7 Path axis, 1/K1/5-193 Path criterion, 1/B1/2-19 Path definition by handwheel, 2/H1/2-28 Path feed, 1/B1/2-7, 1/G2/2-6 Path-synchronous switch signal output, Brief description, 3/TE8/1-3 Path/synchronous switch signal output, 3/TE8/2-5 PATH_TRANS_JERK_LIM, MD 32432, 1/B1/4-56 Pathrelated jerk limitation, 1/B2/2-7 Acceleration with jerk limitation, 1/B2/2-7 Profile with abrupt acceleration changes, 1/B2/2-9 Selection and deselection, 1/B2/2-8 PDA area, 1/K4/2-15 Peripheral milling, 3/W5/2-8 Peripheral surface transformation, 2/M1/3-61
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-37
09.03 10.00
PG diagnostics, 2/B3/1-13 Physical axis, 2/B3/1-7 Physical quantities, 1/G2/2-10 PI services, Overview, 1/P3/4-117 PKW area, 1/K4/2-15 PLC Address, 2/B3/1-12, 2/B3/1-16 Basic routine, 2/B3/1-16, 2/B3/1-17, 2/B3/1-23 Controls axis, 2/P2/5-39 CPU 314, 2/B3/1-12, 2/B3/1-19, 2/B3/1-22 CPU 315, 2/B3/1-12, 2/B3/1-16 Local I/Os, 2/B3/1-6 Master, 2/B3/1-29 PLC communication, 2/B3/1-6, 2/B3/1-7 Service display, 2/M5/2-14, 2/M5/2-62 Slave, 2/B3/1-29 PLC CPUs, properties, 1/P3/2-30 PLC index, 1/A2/5-75, 1/A2/5-76 PLC line offset, 1/A2/5-76 PLC messages, 1/P3/2-42 PLC program, 1/K1/2-127 PLC status, 1/D1/2-30 Change in status, 1/D1/2-30 Status display, 1/D1/2-30 PLC/NCK 840D, 1/P3/2-30 FMNC, 1/P3/2-32 PLC/MCP, 1/P3/2-44 PLC/MMC, 1/P3/2-41 PLC/NCK interface, 1/A2/2-5, 1/P3/2-35 PLC-CPU 315, 2/B3/1-16, 2/B3/1-21 PLC_CYCLIC_TIMEOUT, 1/P3/9-283 PLCCPU, Key data, 1/P3/2-7 PLCIO_IN_UPDATE_TIME, MD 10398, 2/A4/4-53 PLCIO_LOGIC_ADDRESS_IN, MD 10395, 2/A4/4-52 PLCIO_LOGIC_ADDRESS_OUT, MD 10397, 2/A4/4-53 PLCIO_NUM_BYTES_IN, MD 10394, 2/A4/4-52 PLCIO_NUM_BYTES_OUT, MD 10396, 2/A4/4-52 PLCIO_TYPE_REPRESENTATIION, MD 10399, 2/A4/4-54 PO_SYSCLOCK_TIME_RATIO, 3/G3/2-16 Pole, 3/F2/2-27 Polynomial, Intersection procedure, 1/W1/2-67 Polynomial definition, 2/S5/2-19 Polynomial interpolation, 3/F2/2-62 Polynomial, 5th degree, 3/F2/2-66 POS, 1/B1/2-14, 1/K2/2-19, 1/K2/2-20 POSA, 1/K2/2-19, 1/K2/2-20 POSCTRL_DESVAL_DELAY, MD 10065, 2/B3/4-124 POSCTRL_DESVAL_DELAY_INFO, MD 32990, 2/B3/4-130 POSCTRL_SYSCLOCK_TIME_RATIO, 3/G3/2-15 Position, Control, 2/B3/1-27
Position actual value measuring system 1/2, 1/D1/2-21 Position control, 1/G2/2-46 Position control cycle, 3/G3/2-7 840Di, 3/G3/2-10 Position control cycle offset, 840Di, 3/G3/2-11 Position control direction, 1/A3/2-20 Position control loop, 1/G2/2-43 Position controller active, 1/A2/2-30, 1/A2/5-98 Position controller gain, 1/A3/2-9 Position measuring system, 1/A2/2-24 Position measuring system 1 and 2, 1/A2/5-88 Position setpoint, 1/D1/2-9 Position switching signals, 2/N3/2-5 Position-time cams, Properties, 2/N3/2-22 Positioning accuracy of the control system, 1/G2/2-7 Positioning axes, 1/G2/2-6, 1/K2/2-20, 1/P1/2-6, 2/P2/1-3, 2/P2/2-5 Axis interpolator, 2/P2/2-10 Axis-specific signals, 2/P2/2-29 Block change, 2/P2/2-19 Channel-specific signals, 2/P2/2-29 Concurrent positioning axis, 2/P2/2-9 Dependence of positioning axes, 2/P2/2-8 FC15, 2/P2/2-29 Independence of path and positioning axes, 2/P2/2-7 Path interpolator, 2/P2/2-10, 2/P2/2-23 Positioning axis type 1, 2/P2/2-32 Programming, 2/P2/2-30 Type 1 positioning axis, 2/P2/2-7, 2/P2/2-19 Type 2 positioning axis, 2/P2/2-7, 2/P2/2-21 Velocity, 2/P2/2-28 Positioning axis type POS, 1/B1/2-8 Positioning axis type POSA, 1/B1/2-8 Positioning window large, 1/A3/2-9 POSP, 2/P5/2-17, 2/P5/2-25 Power, Supply, 2/B3/1-11 Power failure detection, 3/M3/2-70 Power ON, 2/H1/2-40 Power ON, block search, 1/K1/2-27, 1/K1/7-198 Power supply connection, 2/M5/2-12 Power-up, 2/B3/1-14, 2/B3/1-19 Powerup, 1/K1/2-82 Preconditions, 2/K5/2-14 Preprocessing, Machine data, 3/V2/4-13 Prerequisites for synchronous mode, 2/S3/2-13 Preset actual value memory, 2/M5/2-15 PRG_DEFAULT_DIR, 1/A2/4-49 Probe types, 2/M5/2-5 Process alarm processing, 1/P3/2-52 Processing programs from external, extension (SW 4 and higher), 1/K1/1-6 Profibus, 2/B3/1-16, 2/B3/1-28 DP I/Os, 2/A4/2-6 Interface, 2/B3/1-25 PROFIBUS DP Address space, 1/K4/2-16
Index-38
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
PROFIBUS DP Master, Slave, 1/K4/2-15 PROFIBUS shutdown handling, 3/G3/2-18 PROFIBUS_SHUTDOWN_TYPE, 3/G3/2-18 PROG_EVENT_MASK, 1/K1/4-145 PROG_EVENT_MASK_PROPERTIES, 1/K1/4-145 Program Hide several Program levels, 1/K1/4-131 Program action, 1/K1/2-76 Program control, 1/K1/2-101 Program operation mode, 1/K1/1-6, 1/K1/2-69 Program status, 1/K1/2-73 Program test, 1/K1/2-20 Repeating program sections, 1/K1/2-79 Runtime, 1/K1/1-7, 1/K1/2-127, 1/K1/7-202 Server, 2/B3/1-22 Program code, 1/D2/2-6 Program control, 2/P2/2-8 DRF, 1/K1/2-101 DRY, 1/K1/2-101 M01, 1/K1/2-101 PRT, 1/K1/2-101 ROV, 1/K1/2-101 SBL1, 1/K1/2-101 SKP, 1/K1/2-101 Program coordination, 2/K5/2-6 Program coordination, example, 2/K5/2-8 Program execution without setpoint outputs, 1/K1/2-20 Program interpreter, 1/D2/2-6 Program test, 1/K1/1-5 Program testing and SERUPRO, 1/S1/2-62 Programmable block change, 2/S3/2-22 Programmable contour accuracy, 3/K6/1-5, 3/K6/2-9 Application, 3/K6/2-9 Programmable run-in and run-out paths, 3/TE1/2-17, 3/TE1/2-18 Programmable runin and runout paths, 1/V1/2-15, 1/V1/2-17 Programming, 2/M5/2-60 Programming and parameterizing tools, 1/P3/3-75 Programming area selection, 1/A2/5-73 Programming devices or PCs, 1/P3/3-75 PROTAREA_GEOAX_CHANGE_MODE, 1/A3/3-57 Protection level, 2/B3/1-20 Service, 2/B3/1-18 Protection level for access to tool carrier offsets..., 1/A2/4-52 Protection levels, 1/A2/2-13 Protection levels for MACHINE operating area for access to ..., 1/A2/4-57 Protection levels for PROGRAM operating area for access to ..., 1/A2/4-56
Protection zone Activation, 1/A3/2-41 Deactivation, 1/A3/2-41 Definition, 1/A3/2-36 Enabling of, 1/A3/2-45 Restrictions, 1/A3/2-52 Protection zone definition, Example, 1/A3/6-77 Protection zone definition with system variables, 1/A3/2-39 Protection zone for switchover of geo axes, 1/A3/3-57 Protection zone violation, 1/A3/2-45 Protection zones, 1/A3/1-3, 1/A3/2-32 2-dimensional, 1/A3/2-33 3-dimensional, 1/A3/2-33 Channelspecific interface signals, 1/A3/7-82 Channelspecific machine data, 1/A3/7-85 Channelspecific signals, 1/A3/5-72 Data storage, 1/A3/2-41 General machine data, 1/A3/7-83 Supplementary conditions, 1/A3/3-55 Protection zones for milling machine, 1/A3/2-35 Protection zones for turning machine, 1/A3/2-34 Protection zones, convex, 1/A3/2-39 Protection zones, concave, 1/A3/2-39 Protocol layers, 2/B3/1-8 PS/2 Keyboard interface, 1/K4/2-9 Mouse interface, 1/K4/2-10 PS/2 keyboard/mouse interface, 1/K4/2-9 Pulse enable, 1/A2/2-33, 1/A2/5-95, 1/D1/2-17 Pulse multiplication factor, 1/G2/2-38 Pulses between two BERO-edges for monitoring stepper motor rotation, 2/S6/4-19 Pulses enabled, 1/A2/2-34, 1/A2/5-104 Punching and nibbling Language commands, 2/N4/2-11 Path segmentation, 2/N4/2-19
Q
Quadrant error compensation, 2/K3/2-48, 2/K3/2-57 Quantization of characteristic, 2/K3/2-62 Quick start-up, 2/K3/2-77
R
Ramp-function generator rapid stop active, 1/A2/2-33 Rampfunction generator rapid stop, 1/A2/2-32, 1/A2/5-92, 1/D1/2-17
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-39
09.03 10.00
Rampfunction generator rapid stop active, 1/A2/5-100 Rampup function complete, 1/A2/2-34, 1/A2/5-107, 1/D1/2-21 Rampup phase, 1/D1/2-18, 1/D1/2-24 Rampup times, 1/A2/5-92 Rapid stop (with open, 1/A3/2-7, 1/A3/2-11, 1/A3/2-18, 1/A3/2-19, 1/A3/2-21, 1/A3/2-22 Rapid traverse, 1/B1/2-7, 1/K1/2-128 Rapid traverse override, 1/B1/2-7, 2/H1/2-6, 2/P2/2-28 Rapid traverse override switch, 1/V1/2-28 Read Current angular offset, 2/S3/2-11, 2/S3/2-23 Measurement results in PP, 2/M5/2-14 Offset, 2/S3/2-16 Read/write NC variables, 1/P3/2-55 Read/write PLC variable, 1/A2/1-3, 1/A2/2-41 Readin disable, 1/K1/2-75 Reading the current coupling status, 2/S3/2-23 Reapproach contour with controlled REPOS, 1/K1/2-67 Reapproach point, 1/K1/2-68 Recall alarm cleared, 1/A2/5-78 Recall alarms, 1/A2/2-16 Reciprocal feed (G93), 1/V1/2-9 Reduction of jerking, 1/B1/2-24 REF, REF active machine function, DB11, ... DBX5.2, 1/R1/2-6 Reference point, 1/R1/1-3 Reference point approach, 2/H1/2-40, 2/S6/1-3, 2/T1/2-5 Reference point approach for stepper motors, 2/S6/2-5 BERO_edge, 2/S6/2-6 Synchronization with reference point-BERO, 2/S6/2-5 With incremental encoder, 2/S6/2-5 Without incremental encoder, 2/S6/2-5 Referencing Absolute offset, 1/R1/2-23 Axisspecific, 1/R1/2-6 By means of actual value adjustment, 1/R1/2-33 By parts program, 1/R1/2-6 Channelspecific, 1/R1/2-6 Reference cam, 1/R1/2-22 Reference cam adjustment, 1/R1/2-14 Reference mark, 1/R1/2-22, 1/R1/2-23 With distancecoded marks, 1/R1/2-20, 1/R1/2-25 With incremental measurement system, 1/R1/2-8 Relearning, 2/K3/2-70
Remote control, 2/F3/2-104 Remote diagnosis Availability, 2/F3/3-115 Communication, 2/F3/1-13 Exit, 2/F3/2-107, 2/F3/2-111 General, 2/F3/1-13 Hardware configuration, 2/F3/1-15 Help, 2/F3/2-107 Keyboard, 2/F3/1-13 Remote diagnosis (F3), 2/F3/1-5 Software installation, 2/F3/1-50, 2/F3/2-65 Start-up, 2/F3/1-50, 2/F3/2-65 Remote diagnosis MMC 100.2, 2/F3/1-8 Remote diagnostics for HT6, 2/F3/1-10 MMC 100.2, 2/F3/1-10 Replaceable geometry axes, 1/K2/2-15 REPOS, 2/M5/2-58 REPOS Delay Ack, 1/K1/5-192 REPOS mode, 1/K1/2-68 REPOS offset, 1/K1/5-192 REPOS offset valid, 1/K1/5-192 REPOSDELAY, 1/K1/5-192, 1/K1/5-193 Repositioning neutral axes after SERUPRO, 1/K1/2-63 REPOSMODEEDGE, 1/K1/5-182 REPOSMODEEDGEACKN, 1/K1/5-190 Reset, 1/K1/2-75, 1/N2/2-9 Reset and starting response, 1/K1/4-154 RESET command, 1/K1/2-73 Reset response, 1/K1/7-198 Reset time, 1/K1/2-129 Resolutions, 1/G2/2-7 Response to setpoint changes, 2/S3/2-32 Restart, 2/B3/1-17 Retrace Support, 3/TE7/2-5 Retrace/Continue Machining Support: Signal Descriptions, 3/TE7/5-31 Retract, 3/M3/1-7 Retract and stop, 3/M3/2-60 Reversal points, 2/P5/1-3 Revolutional feedrate (G95), 1/V1/2-9 Revolutional feedrate active, 1/V1/2-10 Rigidity control (DSC), 1/K4/2-20 RMB, 1/K1/5-182 RME, 1/K1/5-182 RMI, 1/K1/5-182 RMN, 1/K1/5-182 RMNOTDEF, 1/K1/5-182 Rotary Axis, 2/R2/2-5, 2/T1/2-9 Button pad, 2/B3/1-11 Indexing machine, 2/B3/1-5, 2/B3/1-25
Index-40
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Rotary axes, 1/K2/2-19, 2/R2/1-3 Absolute dimension programming, 2/R2/2-12, 2/R2/2-16 Axis addresses, 2/R2/2-6 Feedrate, 2/R2/2-8 Incremental dimension programming, 2/R2/2-16, 2/R2/2-17 Mirroring, 2/R2/2-21 Modulo 360, 2/R2/2-9 Modulo conversion, 2/R2/2-12, 2/R2/2-16 Operating range, 2/R2/2-7 Positioning display, 2/R2/2-8 Software limit switches, 2/R2/2-21 Start-up, 2/R2/2-19 Units of measurement, 2/R2/2-7 Rotary axis with rotary encoder on motor, 1/G2/2-41 with rotary encoder on the machine, 1/G2/2-42 Rotation, 3/TE4/2-7 Rotation monitoring, 2/S6/1-3 Error, 2/S6/5-21 ON/OFF, 2/S6/5-21 Rotation of the orientation vector, 3/F2/2-64, 3/F2/2-65 Rough offset, 1/K2/1-9, 1/K2/2-43 Rounding, 1/B1/2-18 Rounding with contour tolerance, 1/B1/2-22 RPY, 3/F2/2-23, 3/TE4/2-43 RS 232, 1/K4/1-3 RS-232-C external, 1/A2/5-74, 1/A2/5-79 RS-232-C OFF, 1/A2/5-74, 1/A2/5-80 RS-232-C stop, 1/A2/5-74, 1/A2/5-79 RS232, 1/K4/5-31 RS232C ON, 1/A2/5-75, 1/A2/5-80 Run-in and run-out paths, programmable, 3/TE1/2-17, 3/TE1/2-18 Runin and runout paths, programmable, 1/V1/2-15, 1/V1/2-17 Runtime, 2/B3/1-14 Measurement; Example, 1/K1/2-128 of the NC program, 1/K1/2-128 of the path axes, 1/K1/2-128 Runtime optimization, 3/V2/2-5
S
Safe actual position, 1/D1/2-12 Safe input signals, 1/D1/2-12 Safe output signals, 1/D1/2-12 Sag compensation, Compensation values in grid structure, 2/K3/2-32 SAVE command, 1/K1/2-89 SCALE, 2/R2/2-18 Scratching, 2/M5/2-15 Screen bright, 1/A2/5-71
Screen is dark, 1/A2/5-77 Second operator panel, 2/B3/1-20 Secondary Control panel, 2/B3/1-6, 2/B3/1-14 Unit, 2/B3/1-20 Selecting synchronous mode, 2/S3/2-10 Selection, 1/A2/5-75, 1/A2/5-81 Selection of the cutting edge when changing tool, 1/W1/2-6 Selection of type of interpolation, 3/F2/2-62 Selection/deselection, 3/W5/2-28 Semiautomatic procedure for matching the machine data, 1/D2/2-20 SER_CLASS_WRITE_TOA_SUPVIS, 1/A2/4-52 Serial interface MMC 100: File types, 1/K4/2-6 MMC 101/102: File types, 1/K4/2-7 Serial interfaces, 1/K4/5-31 Serial interfaces (RS232), 1/K4/2-5 SERUPRO, 1/K1/2-36 SERUPRO sequence without defining a search target beforehand, 1/K1/2-46 SERUPRO_SPEED_FACTOR, 1/K1/4-151 Service case, 2/B3/1-19 Service display for FS, 2/S3/2-34 Service/installation and start-up, 2/B3/1-13 Servo enable, 1/A2/2-25, 1/A2/5-90 Servo enabling on SM-axis, 2/S6/3-17 Servo gain factor, 1/D1/2-9, 1/G2/2-45, 2/K3/2-47 Servo gain for SM-control without measuring system, 2/S6/3-17 Servo gain for SM-control with measuring system, 2/S6/3-17 SERVO_FIFO_SIZE, MD 10087, 2/B3/4-125 Set REPOS response, 1/K1/2-61 SETINT, 1/K1/2-87 SETINT_ASSIGN_FASTIN, MD 21210, 1/K1/4-148 Setpoint exchange: detailed description, 3/TE5/2-5 Setpoint output, 1/G2/2-23 Setpoint parameter set, 1/D1/2-20 Setpoint switchover, 3/TE5/1-3 Setpoint system, 1/G2/2-23 Setpoint/actualvalue system, Configuration of drives for SINUMERIK 840Di, 1/G2/2-30 Setting data for processing programs from external, 1/K1/4-167 Setting the computer mode (turning, milling), 1/A2/4-51 Setting the constant cutting rate, 1/S1/2-59 Setting the speed, 1/S1/2-59 Setup mode, 1/D1/2-20 Setup mode active, 1/A2/2-33, 1/A2/5-100 Several NCUs, 2/B3/1-21, 2/B4/1-4 SW 3.5 and higher, 2/B3/1-23
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-41
09.03 10.00
Several operator panels Alarm text storage, 2/B3/2-62 Alarms/messages, 2/B3/2-61, 2/B3/2-66 Applications, 2/B4/1-3 Availability, 2/B3/3-120, 2/B4/4-17 Buses, 2/B3/2-58 Compatibility, 2/B3/2-41, 2/B3/2-60 Configuration files, Number, 2/B3/2-57 Configurations, 2/B3/2-56 Connections, 2/B3/2-58 Defaults, 2/B3/2-41, 2/B3/2-60 Features in operation, 2/B4/2-15 Implementation in SW 3.1, 2/B3/1-20 Implementation SW 3.1, 2/B4/1-3 Link check, 2/B3/2-62 NCU components, 2/B3/2-59 No. of communications partners, 2/B3/4-123 Operational characteristics, 2/B3/1-20 Operator interface, 2/B3/2-66 Operator panel components, 2/B3/2-59 Switchover of connection, 2/B3/2-61, 2/B3/2-62 User interfaces, 2/B4/1-4 Shift behavior of keyboard during booting, 1/A2/4-50 ShopMill control signal, 1/A2/5-74 Signal, Transformation active, 2/M1/5-77, 2/M5/5-71 Signal Descriptions, 1/A2/5-67 Signal distortion, 1/A3/2-5 Signaling states, 1/A2/1-3 Signals, 2/B3/1-7 Alarm signals, 1/A2/2-8 Axis/spindlespecific (DB31, ... ), 1/A2/2-6 Channelspecific (DB21, ... ), 1/A2/2-6 For digital and analog inputs-/outputs, 2/L1/5-19 For the 5th axis, 2/L1/5-19 General (DB10), 1/A2/2-6 OPspecific (DB19), 1/A2/2-6 PLC/axes, spindles, 1/P3/2-40 PLC/mode group, 1/P3/2-37, 1/P3/2-38 PLC/NC, 1/P3/2-37 PLC/NCK channels, 1/P3/2-39 Ready signals, 1/A2/2-7 Signals from axis/spindle, 1/A2/2-33, 1/A2/5-97 Signals from channel, 1/A2/5-84 Signals from NC to PLC (DB10), 1/A2/5-68 Signals from operator panel, 1/A2/5-77 Signals from PLC to NC (DB10), 1/A2/5-67 Signals to axis/spindle, 1/A2/2-32, 1/A2/5-85 Signals to channel, 1/A2/5-83 Signals to operator panel, 1/A2/5-71 SIMATIC, 2/B3/2-39, 2/B3/2-60 Simulation axes, 1/G2/2-24 Simulation selected, 1/A2/5-78 SINCOM, 2/B3/1-6, 2/B3/2-34 Single block, 2/P2/2-8, 2/P2/2-32 Single-axis rotary table, 3/F2/2-17
Single-axis swivel head, 3/F2/2-17 Singular positions, 3/F2/2-27, 3/TE4/2-48 Singularities, 3/F2/2-51 SINUMERIK 810D, 2/B3/1-22 840D Installation Guide, 2/B3/1-13 SINUMERIK 802D, 1/K1/2-129 SINUMERIK 840Di|SRAM, 1/R1/3-45 SLASH_MASK, 1/A2/4-58 Slide, 2/B3/1-25 Slimline screen, 2/B3/1-11 Slotting saw, 1/W1/2-28 Smooth approach and retraction Approach movement, 1/W1/2-41 Meaning, 1/W1/2-41 Retraction movement, 1/W1/2-41 Smoothed actual current value, 1/D1/2-19 SOFT, 1/B2/2-8 Soft key, 2/B3/1-17 Conn..., 2/B3/1-17 Softkey, 2/B3/1-11, 2/B3/1-21, 2/B3/1-22 Software cams, 2/N3/2-5 Software limit switches, 1/A3/2-25, 2/H1/2-35, 2/R2/2-21, 2/T1/2-21 Sparking-out strokes, 2/P5/1-3 Special 2-axis NR kinematic, 3/TE4/2-42 Special 3-axis SC kinematic, 3/TE4/2-40 Special 4-axis SC kinematic, 3/TE4/2-41 Special axes, 1/K2/2-19 Special kinematics, 3/TE4/2-38 Special spindle interface, 1/S1/2-55 Specify gear stage, 1/S1/2-28 Speed, 2/H1/2-34 Actual point, 1/D1/2-10 ClosedLoop Control, 1/A3/2-21 Servo enable NC, 1/D1/2-17 Setpoint, 1/D1/2-10, 1/D1/2-19 Setpoint smoothing, 1/D1/2-19 Speed control, 2/S6/1-3, 2/S6/2-8 Activation, 2/S6/2-14 Constant speed time, 2/S6/2-14 Knee-shaped acceleration characteristic, 2/S6/2-8 Response to acceleration rate changes, 2/S6/2-14 Speed control loop, 1/G2/2-43 Speed controller active, 1/A2/2-31, 1/A2/5-99 Speed controller integrator disable, 1/A2/5-95 Speed controller integrator disabled, 1/A2/5-103 Speed feedforward control, 2/K3/2-39 Speed monitoring, 2/W4/2-28 Speed ratio, 2/S3/2-7 Speed setpoint adjustment, 1/G2/2-34 Speed setpoint output, 1/G2/2-34, 1/G2/2-47, 1/G2/2-50, 1/G2/2-56, 1/G2/2-60, 1/G2/2-61 Speed setpoint routing, 1/G2/2-25 Speed setpoint smoothing, 1/A2/2-32, 1/A2/5-93 Speed setpoint smoothing active, 1/A2/2-33, 1/A2/5-101
Index-42
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Speed/acceleration limits, 2/S3/2-18 SPI(n, 1/S1/2-53 SPIND_POSIT_DELAY_TIME, 1/S1/4-87 Spindle Replacement, 2/K5/2-13 Start-up, 2/S3/2-32 Spindle commands, 1/S1/2-57 Spindle disable, 1/A2/2-19 Spindle job, 1/S1/2-56 Spindle number, 2/W4/2-10 Spindle override factor, 1/V1/2-30 Spindle position with mono probe, 2/M5/2-6 Spindle reset, 1/A2/2-28 Spindle speed, 1/G2/2-6 Spindle speed limitation with G96, 1/V1/2-12 Spindle speed setpoint current, 1/D1/2-10 Spindle speed setpoint programmed, 1/D1/2-10 Spindle stop, 1/K1/2-75 Spindle traversal in JOG mode, 2/H1/2-34 Spindlespecific functions, 1/S1/2-61 SPOS, 1/B1/2-14 SRAM, 2/S7/2-6 Memory requirements, 2/S7/2-27 Standard alarm texts, 2/B3/1-18 Start address of Direct read input bytes of PLC I/Os, 2/A4/4-52 Direct write output bytes of PLC I/Os, 2/A4/4-53 START command, 1/K1/2-70 Start operating area, 2/B3/1-17, 2/B3/1-21 Start-up, and installation MMC 100.2, 2/F3/2-76 Start-up, 2/B3/1-18, 2/B3/1-19 Of neural QEC, 2/K3/2-69 Tool, 2/B3/1-22 Startup and synchronization of NCK PLC, 1/P3/2-50 Static MMC property, 2/B3/1-13 Station/position change, 2/B3/1-28 Status query, HW outputs, 2/N3/2-18 Stepper motor control Axis-specific machine data, 2/S6/4-19 Axis-specific signals, 2/S6/5-21 Interface signals, 2/S6/7-24 Machine data, 2/S6/7-23 Stepper motor drive without measuring system, 2/S6/3-18 Stop, 3/K6/2-7, 3/M3/1-7 Stop and retract, 3/M3/2-60 Stop bits, 1/K4/3-21 Stop block, 1/K1/2-41 STOP commands, 1/K1/2-71 Stop routine, 1/K1/2-41 STOP_LIMIT_FACTOR, 1/B1/4-58 Structure of MD files for data backup, 1/A2/4-60 Suitable probes, 2/M5/2-5 SUMCORR_DEFAULT, 1/W1/4-140 SUPPRESS_ALARM_MASK, 1/D1/4-35 SUPPRESS_SCREEN_REFRESH, 10131, 1/A2/4-58
Suppression Algorithm, 2/B3/1-15, 2/B3/2-43 Mechanism, 2/B3/1-11 Priority, 2/B3/1-14 Rules, 2/B3/2-45 Strategy, 2/B3/1-15, 2/B3/2-44, 2/B3/2-49 SW 5.2, 1/K1/1-7, 1/K1/2-127, 1/K1/7-202 SW_CAM_MODE, 2/N3/4-33 Switch over MCS/WCS, 1/A2/5-78 Switch over measuring system, 1/A2/2-24 Switchover Behavior OP030, MMC 100, MMC 102/103, 2/B3/1-17 Conditions, 2/B3/2-45 Swiveled linear axis Application, 3/F2/2-31 Channel-specific MD, 3/F2/4-99 Kinematics variants, 3/F2/2-31 Parameter assignments, 3/F2/2-31 Pole, 3/F2/2-31 Swiveled linear axis Type of machine, 3/F2/2-36 Zero position, 3/F2/2-34 Swiveling linear axis, 3/F2/1-9 Symbol name, 2/B3/1-14, 2/B3/1-19 Symbolic programming of user program with interface DB, 1/P3/2-56 Synchronism deviation, Scanning, 3/M3/2-43 Synchronization, 1/B1/2-9 Synchronization cycle, 2/B3/1-8 Synchronized Actions, 2/B3/1-29 State reached, 2/S3/2-15 Synchronized axis, 3/G1/2-5 Synchronous Procedure, 2/S5/2-15 Spindle pair, 2/S3/2-5 Synchronous axes, 1/B1/2-14, 1/B1/2-19, 1/K2/2-22 Synchronous mode, 2/S3/2-5 Activate, 2/S3/2-22 Control dynamics, 2/S3/2-27 Deactivate, 2/S3/2-22 Feedforward control, 2/S3/2-27 Knee-shaped acceleration characteristic, 2/S3/2-28 Multiple couplings, 2/S3/2-27 Response to alarms, 2/S3/2-28 Speed/acceleration limits, 2/S3/2-27 Syntax check, 3/V2/2-11 SYSCLOCK_SAMPL_TIME_RATIO, 3/G3/2-17 System clock cycle, 3/G3/2-5 840Di, 3/G3/2-10 System clock rate for FM NC with five axes-NC, 2/L1/3-15 System of units, SW cams, 2/N3/2-14 System requirements, 2/M5/2-13 System variable, 2/M5/2-14, 2/M5/2-61
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-43
09.03 10.00
System variables, 1/A2/4-65, 1/A2/7-121, 2/B3/1-29 Channelspecific, 1/K1/2-127 Global, 2/B3/1-29 NCKspecific, 1/K1/2-127 with read/write access, 1/K1/2-129
T
T function, 1/W1/2-5, 2/W3/1-3 T_FL_WP, 3/TE4/2-16 T_IRO_RO, 3/TE4/2-15 T_NO_FCT_CYCLE_NAME, 1/K1/4-138 T_X3_P3, 3/TE4/2-16 Tabulator length, 1/A2/4-50 TABULATOR_SIZE, 1/A2/4-50 Tachogenerator compensation, 1/A3/2-19 Tangential Control, Applications, 3/T3/1-4 Tangential control, 3/T3/1-3 Activation of follow-up control, 3/T3/2-8 Following axis, 3/T3/2-8 Leading axis, 3/T3/2-8 Limit angle, 3/T3/2-13 Termination of follow-up control, 3/T3/2-10 TANGON, 3/T3/2-9 TDP, 3/G3/2-10 TDX, 3/G3/2-10 TEACH IN, 1/K1/2-16 Technical exponent representation in three steps, 1/A2/4-52 TECHNOLOGY, 1/A2/4-51 Technology memory, 1/D2/2-10 Temperature compensation Coefficient tan(T), 2/K3/2-11 Compensation equation, 2/K3/2-6 Deformation, 2/K3/2-5 Error curves, 2/K3/2-5 Monitoring functions, 2/K3/2-9 Parameter, 2/K3/2-7 Parameters, 2/K3/2-8 Position display, 2/K3/2-9 Sensor equipment, 2/K3/2-5 Temporary assignment, 2/B3/1-7 Terminal emulation, 2/F3/2-107, 2/F3/2-111 Test mode, 1/A3/2-17 Test program for testing repeat accuracy, 2/M5/6-76 Threshold for change in handwheel direction, 2/H1/4-44 Threshold speed, 1/D1/2-23 Threshold torque, 1/D1/2-21 Threshold values, 2/S3/2-18 Threshold values for coarse/fine synchronism, 2/S3/2-34 TI, 3/G3/2-10
Timer activation, 1/K1/2-129 Timers, Channelspecific, 1/K1/2-128 TM, 3/G3/2-10 TMAPC, 3/G3/2-10 TO, 3/G3/2-10 TOA, 1/W1/2-7 TOCARR_BASE_FINE_LIM_LIN, 1/W1/4-134 TOCARR_BASE_FINE_LIM_ROT, 1/W1/4-135 TOCARR_FINE_CORRECTION, 1/W1/4-152 Tolerance of BERO -edges in pulses for monitoring stepper motor rotation, 2/S6/4-19 Tool, 1/W1/2-5 Base dimension/adapter dimension, 1/W1/2-34 Change, 1/W1/2-5 Change tool with M06, 1/W1/2-5 Cutting edge, 1/W1/2-26 Cutting edge position, 1/W1/2-29 DISC, 1/W1/2-55 Length compensation, 1/W1/2-30 Management, 1/K1/1-7, 1/K1/2-127, 1/K1/2-129 Operating time, 1/K1/2-128 Radius compensation, 1/W1/2-32 Select, 1/W1/2-5 T function, 1/W1/2-5 Tool clearance angle, 1/W1/2-35 Tool cutting edge, 1/W1/2-5 Tool radius compensation 2D (TRC), 1/W1/2-38 Tool type, 1/W1/2-27 Wear, 1/W1/2-33 Tool change Change point, 2/W3/1-3, 2/W3/2-7 D function, 1/W1/2-6 Fixed points, 2/W3/2-7 Offset memory, 1/W1/2-7 Tool diameter ($AC MEAS TYPE = 11), 2/M5/2-57 Tool length ($AC MEAS TYPE = 10), 2/M5/2-55 Tool length compensation, 1/W1/2-30 Tool master data, 1/D2/2-11 Tool offset, 2/P2/2-31 Calculation, 1/W1/2-8 Tool offset for grinding operations, 2/W4/2-5 for grinding tools, 2/W4/2-5 Tool offset selection, 1/A2/5-73 Tool operating data, 1/D2/2-11 Tool orientation, 3/F2/1-11, 3/TE4/2-43, 3/W5/2-7 4-axis kinematics, 3/TE4/2-46 5-axis kinematic, 3/TE4/2-47 Tool orientation using orientation vectors, 3/F2/2-26 Tool programming, 3/TE4/2-51, 3/TE4/2-52 Tool Radius Compensation, 3/W5/1-3
Index-44
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Tool radius compensation, change alarm response, 1/W1/2-66 Tool radius compensation (TRC), 1/W1/2-38 Tool radius compensation: 2D, 1/W1/2-38 Approach and retraction behavior, 1/W1/2-40 Collision detection, 1/W1/2-60 Compensation at inside corners, 1/W1/2-58 Compensation at outside corners, 1/W1/2-54 Deselection, 1/W1/2-54 G451 intersection, 1/W1/2-56 Selection, 1/W1/2-39 Smooth approach and retraction, 1/W1/2-41 Transition circle, 1/W1/2-55 Variable compensation value, 1/W1/2-61, 1/W1/2-85 Tool radius offset, 3/M3/2-15 Tool revolver axes, 1/K2/2-19 Tool tip at a fixed point in space, 3/F2/2-24 Tool type, Slotting saw, 1/W1/2-28 Tool types for grinding tools, 2/W4/2-9 TOOL_LENGTH_CONST, 1/K2/4-100, 1/W1/4-150 TOOL_REF_GEO_AXIS1, 1/K2/4-85 TOOL_REF_GEO_AXIS2, 1/K2/4-85 TOOL_REF_GEO_AXIS3, 1/K2/4-85 TOOL_TEMP_COMP, 1/W1/4-152 TOOL_TEMP_COMP_LIMIT, 1/W1/4-141 TOOL_TEMP_COMP_ON, 1/W1/4-141 Toolholder, Orientational, 1/W1/2-72 Toolholder selection, 1/W1/2-72 Toolholder, orientational Control system response on Reset, program start, REPOS, 1/W1/2-94 Programming, 1/W1/2-86, 1/W1/2-89, 1/W1/2-93, 1/W1/6-154, 1/W1/6-157 Supplementary conditions, 1/W1/2-85, 1/W1/2-89, 1/W1/2-94 Toolholders, orientable, Programming, 3/F2/2-60 Tools with relevant tool point direction, 1/W1/2-36 Torque feedforward control, 2/K3/2-39 Torque limit, 1/D1/2-19 Torque limit 2, 1/A2/2-32, 1/A2/5-93 Torque limit 2 active, 1/A2/2-33, 1/A2/5-101 Torque limitation value, 1/D1/2-12 TRAANG Activation, 2/M1/2-48 Availability, 2/M1/3-61 Brief description, 2/M1/1-7 Deactivation, 2/M1/2-48 Number of, 2/M1/2-42 Preconditions, 2/M1/2-41 Restrictions, 2/M1/2-49 Specific settings, 2/M1/2-44 TRAANG, Inclined axis, 2/M1/2-40
TRACYL, 2/M1/1-6, 2/M1/2-28 Activation, 2/M1/2-36 Availability, 2/M1/3-61 Axis image, 2/M1/2-33 Deactivation, 2/M1/2-37 Number of, 2/M1/2-30 Preconditions, 2/M1/2-30 Restrictions, 2/M1/2-37 Specific settings, 2/M1/2-33 TRANS, 1/K2/1-9, 1/K2/2-43, 2/R2/2-18 Transfer time, 1/K1/2-63 Transformation Activation, 3/TE4/2-49 Actual-value display, 3/TE4/2-50 Chaining sequence, 2/M1/2-54 Deactivation, 3/TE4/2-49 End of program, 3/TE4/2-49 Transformation, 1/K2/2-35 Transformation active, 3/F2/2-41 Transformation group, 3/F2/2-41 Transformation types, 3/F2/2-22 Transformed axes, Number of, 3/TE4/2-17 Translation, 3/TE4/2-6 TRANSMIT, 1/K2/2-35, 2/M1/1-5, 2/M1/2-9 Activation, 2/M1/2-16 Availability, 2/M1/3-61 Axis image, 2/M1/2-13 Deactivation, 2/M1/2-16 Restrictions, 2/M1/2-17 Specific settings, 2/M1/2-13 Structures, Number of, 2/M1/2-10 Transverse axes, 1/P1/1-3, 2/H1/2-37 Diameter programming, 1/P1/2-6 Geometry axes, 1/P1/2-5 Transverse grooves, 2/M1/1-6 Travel to fixed stop, 1/F1/1-3, 1/F1/2-5 Analog drives, 1/F1/2-28 Analog drives, diagrams, 1/F1/2-34 Analog drives, FXS deselection, 1/F1/2-36 Analog drives, FXS selection, 1/F1/2-34 Analog drives, SIMODRIVE 611A (FDD), 1/F1/2-28 Analog drives, SIMODRIVE 611A (MSD), 1/F1/2-30 Axis/spindlespecific signals, 1/F1/5-48 Axisspecific machine data, 1/F1/4-39 Axisspecific setting data, 1/F1/4-44 Deselection, 1/F1/2-11 Functional sequence, 1/F1/2-8 Interface signals, 1/F1/7-53 Monitoring window, 1/F1/2-9 Programming, 1/F1/2-6, 1/F1/2-8 RESET, 1/F1/2-13 Selection, 1/F1/2-8
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-45
09.03 10.00
Travel to fixed stop (F1) Alarms, 1/F1/2-10 Contour monitoring, 1/F1/2-19 Detailed Description, 1/F1/2-5 Function abort, 1/F1/2-13 Machine data, 1/F1/7-54 Positioning axes, 1/F1/2-19 Power ON, block search, 1/F1/2-14 Setting data, 1/F1/2-10, 1/F1/2-18, 1/F1/7-54 Signal Descriptions, 1/F1/5-47 Status interrogation, 1/F1/2-19 Traverse against fixed stop, 2/S6/3-17 Traversing ranges, 1/G2/2-6 Tunnel size, 3/K6/2-7 Two-axis rotary table, 3/F2/2-17 Two-axis swivel head, 3/F2/2-16 Types of feed, 1/V1/1-3 Types of protection zone, 1/A3/2-32
USER_CLASS_DIRECTORY2_P, 1/A2/4-56 USER_CLASS_DIRECTORY3_M, 1/A2/4-57 USER_CLASS_DIRECTORY3_P, 1/A2/4-56 USER_CLASS_DIRECTORY4_M, 1/A2/4-57 USER_CLASS_DIRECTORY4_P, 1/A2/4-56 USER_CLASS_READ_TCARR, 1/A2/4-52 USER_CLASS_WRITE_MAG_WGROUP, 1/A2/4-52 USER_CLASS_WRITE_TCARR, 1/A2/4-52 USER_CLASS_WRITE_TOA_ASSDNO, 1/A2/4-52 USER_CLASS_WRITE_TOA_EC, 1/A2/4-52 USER_CLASS_WRITE_TOA_SC, 1/A2/4-52 USER_DATA_FLOAT[n], 1/P3/9-284 USER_DATA_HEX[n], 1/P3/9-284 USER_DATA_INT[n], 1/P3/9-284 Userdefined system ASUBs, 1/K1/2-94 Using DMP modules, 1/K2/3-81 Utilization property, 2/B3/1-14
U
U(ZK), 1/A2/2-35 UDClink lower than warning threshold, 1/A2/5-112 Universal milling head, 3/F2/1-11, 3/F2/2-37 Applications, 3/F2/2-37 Features, 3/F2/1-11 JOG, 3/F2/2-40 Parameterization, 3/F2/2-39 Universal Serial Bus, 1/K4/1-3 Unload, 1/A2/5-75, 1/A2/5-81 Update time for PLC I/O input cycle, 2/A4/4-53 Updating the REPOS offset within the valid scope, 1/K1/2-66 USB, interface, 1/K4/2-9 Useful Tips on Programming with STEP7, 1/P3/7-257 Copying data, 1/P3/7-258 Useful tips on programming with Step7 ANY and POINTER, 1/P3/7-258 Multiinstance DB, 1/P3/7-263 POINTER or ANY variable, 1/P3/7-261 Strings, 1/P3/7-264 Use of ANY and POINTER in FC, 1/P3/7-259, 1/P3/7-260 User Alarm, 2/B3/1-18 Communication, 2/B3/1-7 User-defined coupling, 2/S3/2-6 USER_CLASS_BASE_ZERO_OFF_MA, 1/K2/4-84 USER_CLASS_BASE_ZERO_OFF_PA, 1/K2/4-84 USER_CLASS_DIRECTORY1_M, 1/A2/4-57 USER_CLASS_DIRECTORY1_P, 1/A2/4-56 USER_CLASS_DIRECTORY2_M, 1/A2/4-57
V
Value storage scratching and PRESET, 1/K2/4-84 Variable signal 1, 1/D1/2-23 Variable signaling function, 1/A2/2-35, 1/A2/5-111 VDI-Signals when stepper motor is used, 2/S6/3-18 Velocities, 1/B1/2-7, 1/G2/2-5 Velocity, 2/H1/2-6, 2/H1/2-16, 3/TE4/2-19 Velocity adjustment, 1/G2/2-34 Velocity and acceleration, 2/H1/2-36 Velocity coupling, 2/S3/2-34 Velocity for zero cycle blocks, 1/B1/2-7 Velocity increase, 3/TE4/2-48 Velocity reduction according to overload factor, 1/B1/2-16 Velocity warning threshold, 3/M3/5-97 Vertical axis, 2/K3/2-89 Viewer MS-DOS (MMC 100.2), 2/F3/2-92 Viewer PC functions, 2/F3/2-108 Vocabulary, 3/V2/2-12
W
WAITMC, 2/P2/2-31 WAITP, 2/P2/2-7, 2/P2/2-31 Oscillation axis, 2/P5/2-17 WAITP coordination, 2/P2/2-31 WCS, 1/A2/2-16 WEAR_SIGN, 1/W1/4-150 WEAR_SIGN_CUTPOS, 1/W1/4-149 Working area limitation, 1/A3/2-28, 2/H1/2-35, 2/R2/2-21
Index-46
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
09.03 10.00
Workpiece Actual, 1/K1/2-129 Clamping, 2/B3/1-25, 2/B3/1-29 Counter, 1/K1/1-7, 1/K1/2-129, 1/K1/7-202 Example, 1/K1/2-130 Counting, 1/K1/2-127 Measuring, 2/M5/2-15 Setpoint, 1/K1/2-129 Total actual, 1/K1/2-129 Workpiece coordinate system, 1/A2/2-16 Workpiece coordinate system (WCS), 1/K2/1-7, 1/K2/2-42, 1/P1/1-3, 1/P1/2-6
Writ, Online tool offset discretely, 2/W4/2-24 Write Continuously, 2/W4/2-20 Real-time variable, 2/S5/2-13 WRITE_TOA_LIMIT_MASK, 1/K2/4-86
Z
Zeros and reference points, 1/K2/2-29 ZK1 messages, 1/D1/2-18, 1/D1/2-24
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Index-47
09.03 10.00
Notes
Index-48
Siemens AG, 2003. All rights reserved SINUMERIK 840D/840Di/810D Description of Functions Basic Machine (FB1) 11.2003 Edition
Should you come across any printing errors when reading this publication, please notify us on this sheet. Suggestions for improvement are also welcome.
Phone: Fax:
/ /
User Documentation
SINUMERIK 840D/810D
Brochure
Operators Guide HT 6
Diagnostics Guide *)
User Documentation
Manufacturer/Service Documentation
SINUMERIK 840D/810D
SINUMERIK 840Di
SINUMERIK
SINUMERIK 840D/810D
Program. Guide Short Guide Fundamentals *) Advanced *) Cycles Measuring Cycles ISO Turning/Milling
Operators Guide System Overview ManualTurn Short Guide ManualTurn ShopMill Short Guide ShopMill ShopTurn Short Guide ShopTurn
Manufacturer/Service Documentation
SINUMERIK SIMODRIVE 611D 840D/810D
SINUMERIK 840D/810D
SINUMERIK 840D/810D
Description of Description of Functions Functions Drive Functions *) Basic Machine *) Extended Functions Special Functions
Motion Control Information System Computer Link SinCom Tool Information System SinTDI DNC NC Program Management Tool Data Inform./TDI Ident Connec. Tool Data Information Communication
Manufacturer/Service Documentation
SINUMERIK SIMODRIVE SIROTEC
SINUMERIK SIMODRIVE
SINUMERIK 840D
SINUMERIK SIMODRIVE
Lists *)
Manufacturer/Service Documentation
Electronic Documentation
SINUMERIK SIMODRIVE 840D/840Di/ 810D 611, Motors
SINUMERIK 840Di
SINUMERIK 840D/810D
Siemens AG Automation & Drives Motion Control Systems P.O. Box 3180, D-91050 Erlangen Germany www.ad.siemens.de Siemens AG, 2003 Subject to change without prior notice Order No.: 6FC5297-6AC20-0BP3 Printed in Germany