Navigation

  • Page 1

    Configuring Syntax 09/2003 Edition sinumerik SINUMERIK 840D/810D Configuring Syntax

  • Page 2

  • Page 3

    Preface Introduction 1Configurable Lists 2Display Elements 3Action and Reaction Routines 4Accessing Data on NCK / PLC / MMC 5MMC Variables 6Data Types and Parameters 7 Appendix AIndex I 0,SINUMERIK 840D/810D 0,Configuring Syntax 0, 0,Planning Guide Valid for Control Software version SINU...

  • Page 4

    SINUMERIK® Documentation Printing history Brief details of this edition and previous editions are listed below. The status of each edition is indicated by the code in the “Remarks” columns. Status code in the “Remarks” column: A .... New documentation. B .... Unrevised reprint with n...

  • Page 5

    5,09.03 5, Contents Contents 1 Introduction................................................................................................................ 15,1-15 15, 1.1 Structure of the Documentation 16,....................................................................1-16 16, 1.2 Term...

  • Page 6

    09.03 Contents 3.1.14 Dynamic ellipse - ELLIPSE_DYN (MMC100/EBF) ................................. 64,3-64 64, 3.1.15 Fill pattern - definition - DEF_PATTERN ................................................ 65,3-65 65, 3.1.16 Load color pallet - COL_TAB (MMC100/EBF)...............................

  • Page 7

    09.03 Contents 4 Action and Reaction Routines 139,................................................................................. 139,4-139 139, 4.1 Routines that affect lists and objects ............................................................ 142,4-142 142, 4.1.1 NEW_MENU: Opening a n...

  • Page 8

    09.03 Contents 4.2.2 SET_BYTE, SET_WORD, SET_LONG, SET_DOUBLE: Setting a value 176,...................................................................................... 176,4-176 176, 4.2.3 CALC_UWORD, CALC_LONG, CALC_DOUBLE: Calculating values .. 177,4-177 177, 4.2.4 CALC_DATA: Calculati...

  • Page 9

    09.03 Contents 6 MMC Variables 211,........................................................................................................... 211,6-211 211, 6.1 MMC variables for OP 030............................................................................ 212,6-212 212, 6.1.1 Variables ...

  • Page 10

    09.03 Contents © Siemens AG, 2003. All rights reserved SINUMERIK 840D/810D Configuring Syntax (PS) – 09.03 Edition x

  • Page 11

    11,09.03 11, Preface Preface Structure of the Documentation The SINUMERIK documentation is organized in 3 parts: • General Documentation • User Documentation • Manufacturer/service documentation From 09/2001 • SINUMERIK 840D powerline and • SINUMERIK 840DE powerline will be available...

  • Page 12

    Preface 09.03 Finding Your Way Around To help you navigate through the document, in addition to the list of contents, diagrams and tables, the following information is provided in the Appendix: 1. List of Abbreviations 2. References 3. Index Qualified personnel Commissioning and operation of th...

  • Page 13

    09.03 Preface Warnings The following warning notices with varying degrees of significance are used in the document: ! Danger This symbol indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken. ! Warning This symbol indicates...

  • Page 14

    Preface 09.03 © Siemens AG, 2003. All rights reserved 0-14 SINUMERIK 840D/810D Configuring Syntax (PS) - 09.03 Edition Notes

  • Page 15

    09.03 1 Introduction 1.1 Structure of the Documentation 1 15,1 Introduction 16,1.1 16, Structure of t 16,he Documentation 16,....................................................................1-16 16, 17,1.2 17, Terminology 17,– basic 17, mechanisms..................................

  • Page 16

    1 Introduction 09.03 1.1 Structure of the Documentation 1.1 Structure of the Documentation The description of the functions for configuring the user interface for the SINUMERIK OP 030 is subdivided into the following documents: OP 030 • SINUMERIK OP 030 Configuring Syntax General descripti...

  • Page 17

    09.03 1 Introduction 1.2 Terminology – basic mechanisms Notation of the configuration language The following grammar rules apply: "|" separates alternatives (if not explicitly expressed as a logical combination), "[" and "]" bracket optional components, "....

  • Page 18

    1 Introduction 09.03 1.2 Terminology – basic mechanisms Dialog fields are, for example, output fields, input fields, input/output fields, edit fields, single/multiple selection fields, scroll bars, inverted fields, action fields and tables. Process dialog operation sequence The process dialog...

  • Page 19

    09.03 1 Introduction 1.2 Terminology – basic mechanisms It generally reflects the main logical subdivision of the user interface. The individual local menus, which are hidden at this level behind the soft key, are therefore also known as the user area. One menu is normally allocated to one u...

  • Page 20

    1 Introduction 09.03 1.2 Terminology – basic mechanisms • A unique list identifier assigned by the person configuring the system (list identity). • One start, one end, and • A variable number of elements with different functionality (list elements). Each list in the system can be identif...

  • Page 21

    09.03 1 Introduction 1.2 Terminology – basic mechanisms Application operator area The machine tool manufacturer has the option of extending or replacing part or all of the standard user areas with his own application user area. Compiling Configuring files (*.C files) created by the machine...

  • Page 22

    1 Introduction 09.03 1.2 Terminology – basic mechanisms © Siemens AG, 2003. All rights reserved 1-22 SINUMERIK 840D/810D Configuring Syntax (PS) - 09.03 Edition Notes

  • Page 23

    09.03 2 Configurable Lists 2.1 Configuring lists 2 23,2 Configurable Lists 25,2.1 25, Configuring 25,lists............................................................................................. 25,2-25 25, 25,2.1.1 25, 25,BEGIN_END_: List 25, ID, list type..........................

  • Page 24

    2 Configurable Lists 09.03 2.1 Configuring lists The user interface of the SINUMERIK OP 030/MMC 100/UOP is defined by freely configurable lists (see also Introduction). There are separate list directories for both standard operating areas and application operating areas. For further details a...

  • Page 25

    09.03 2 Configurable Lists 2.1 Configuring lists 2.1 Configuring lists 2.1.1 BEGIN_END_: List ID, list type Description Lists are configured in the form of C preprocessor macros arranged in list form. Each list is identified by its • List type, • Start and an end identifier • List i...

  • Page 26

    2 Configurable Lists 09.03 2.1 Configuring lists CLOSE_LIST_PTR (id) EXTERN_CLOSE_LIST (id) Action list BEGIN_ACTION_LIST (id) END_ACTION_LIST (id) ACTION_LIST_PTR (id) EXTERN_ACTION_LIST (id) Event list BEGIN_EVENT_LIST (id) END_EVENT_LIST (id) EXTERN_EVENT_LIST (id) Reaction list BEGIN_RE...

  • Page 27

    09.03 2 Configurable Lists 2.1 Configuring lists ... /* List pointer for window display object list */ OBJECT_LIST_PTR (OB_WIN_START) /* List pointer for window soft key response list */ SOFTKEY_REACTION_LIST_PTR (SRC_WIN_START) ... END_WINDOW (WIN_START) 2.1.2 MENU – menu d...

  • Page 28

    2 Configurable Lists 09.03 2.1 Configuring lists cll_id ID on a menu close list that is executed when the menu is closed. Note The menu definition block only ever contains one element (one-dimensional list) and always has a predefined length. Order of execution of lists when a new menu is...

  • Page 29

    09.03 2 Configurable Lists 2.1 Configuring lists W_FOCUS_DISABLE The window does not have a focus, i.e. the window is displayed without a border. W_OPEN_AFTER_OBJ The window open list is not executed from the object list until the graphic has been displayed. x, y Relative position of the w...

  • Page 30

    2 Configurable Lists 09.03 2.1 Configuring lists configuration special definitions are available which are listed in the following. The metrics are saved in the files *.sym and can be modified. WINDOW_HEADER (win_id, x, y, w, h, OBJECT_LIST_PTR(obj_list)) Syntax Parameters win_id Unique iden...

  • Page 31

    09.03 2 Configurable Lists 2.1 Configuring lists … END_OBJECT_LIST(OB_MA_W_REFP) BEGIN_WINDOW(W_MA_REFPOINT) 0x0000 X_W_ISTW, Y_W_ISTW WIDTH_W_ISTW, HEIGHT_W;ISTW SYC_BK_CLEAR SYC_W_FILL NULL OPEN_LIST_PTR (OP_MA_W_REFPOINT) CLOSE_LIST_PTR(CL_MA_W_REFPOINT) OBJECT_LIST_PTR(OB_MA_W...

  • Page 32

    2 Configurable Lists 09.03 2.1 Configuring lists • the position of the menu to which the relevant window belongs, • the position of the window, the position of any macro over it and • the position configured for the element. An object list that is executed only when a window is opened doe...

  • Page 33

    09.03 2 Configurable Lists 2.1 Configuring lists 2.1.7 ACTION_LIST - definition of an action list An action list is a list containing any number of action elements. The action list is executed in conjunction with an action field (ACTION_FIELD) in response to an event. It can also be executed ...

  • Page 34

    2 Configurable Lists 09.03 2.1 Configuring lists 2.1.8 OPEN_LIST - definition of an open list Description An open list contains any number of action elements which can be executed when a menu is activated or a window opened. The relevant menu or window definition block then contains a referenc...

  • Page 35

    09.03 2 Configurable Lists 2.1 Configuring lists 2.1.9 CLOSE_LIST - definition of a close list Description A close list is an action list containing any number of action elements (see above) which can be executed when a menu or window is closed. The relevant menu or window definition block th...

  • Page 36

    2 Configurable Lists 09.03 2.1 Configuring lists d_typ, cmp_val_d, v_adr, v_p1, v_p2, v_p3, v_p4) ... END_EVENT_LIST (evl_id) Parameters evl_id Unique identifier of the event list. ev_id Unique identifier of event element; it is freely assigned and must be unique within a C module. The nume...

  • Page 37

    09.03 2 Configurable Lists 2.1 Configuring lists An event is generated if one of the bits specified by the bit mask changes state from HIGH to LOW. IS_HIGH An event is generated if one of the bits specified by the bit mask is set. IS_LOW An event is generated if one of the bits specified by th...

  • Page 38

    2 Configurable Lists 09.03 2.1 Configuring lists WATCH_EQUAL (Type 1) An event is generated if the content of the configured data has changed and its value is equal to the comparison value (cmp_val_d). WATCH_NOT_EQUAL (Type 2) An event is generated if the content of the configured data has chan...

  • Page 39

    09.03 2 Configurable Lists 2.1 Configuring lists 2.1.11 REACTION_LIST – definition of a reaction list The reaction list is a configurable list which may contain any chosen number of reaction elements. In contrast to action elements, the elements in the reaction list (reaction elements) are...

  • Page 40

    2 Configurable Lists 09.03 2.1 Configuring lists b) Use as a basic reaction list A basic reaction list is used independently of dialog and active as soon as it is registered with the basic control. It remains valid until it is deactivated again. A basis reaction list is activated and de-activa...

  • Page 41

    09.03 2 Configurable Lists 2.1 Configuring lists for initializing new dialogs where necessary and for terminating an active dialog in a defined manner. Since each soft key reaction list belongs to a very specific screen dialog, only one of these lists can ever be active at one time. It is also...

  • Page 42

    2 Configurable Lists 09.03 2.1 Configuring lists 2.1.13 SYSTEM_INIT_LIST – definition of an initialization list Description The initialization list , like the action list, comprises action elements that are processed during system initialization. An initialization list is always processed as...

  • Page 43

    09.03 2 Configurable Lists 2.1 Configuring lists dia_id ID of the input/output field that is valid for the limiting. The object list of the window that is assigned the input limit limit value list must be an input/output field with this identifier. check Type of limit value monitoring LIMI...

  • Page 44

    2 Configurable Lists 09.03 2.2 Break and skip functions in lists 2.2 Break and skip functions in lists It is possible to skip elements in lists, either conditionally or unconditionally, using control commands. By the same means, it is possible to abort processing of a list, either conditionall...

  • Page 45

    09.03 2 Configurable Lists 2.2 Break and skip functions in lists ! Important The jump distance always causes the corresponding number of RC list elements to be skipped, irrespective of their event code. 2.2.3 BREAK_IF – conditional break Description When this object or list element is rea...

  • Page 46

    2 Configurable Lists 09.03 2.2 Break and skip functions in lists OB_V_B_BREAK_IF (id, v_adr, v_p1, v_p2, v_p3, cmp_op, v2_adr, v2_p1, v2_p2, v2_p3) AC_V_B_BREAK_IF (id, v_adr, v_p1, v_p2, v_p3, cmp_op, v2_adr, v2_p1, v2_p2, v2_p3) RC_V_B_BREAK_IF (id, ev_code, v_adr, v_p1, v_p2, v_p3, cmp_op,...

  • Page 47

    09.03 2 Configurable Lists 2.2 Break and skip functions in lists The value of the (first) configured data is ANDed with the constant or value of the second configured data. Abort if the result is >0. NOT_BITMASK (not with DOUBLE format) The value of the (first) configured data is negated a...

  • Page 48

    2 Configurable Lists 09.03 2.2 Break and skip functions in lists Whether a variable must be compared with a constant or another variable is - like the data format of the compared values - apparent from the respective call. Compare variable and constant (C_): Syntax BYTE values (B_): OB_C_B_SKI...

  • Page 49

    09.03 2 Configurable Lists 2.2 Break and skip functions in lists RC_V_W_SKIP_IF (id, ev_code, dist, v_adr, v_p1, v_p2, v_p3, cmp_op, v2_adr, v2_p1, v2_p2, v2_p3) LONG values (L_): OB_V_L_SKIP_IF (id, dist, v_adr, v_p1, v_p2, v_p3, cmp_op, v2_adr, v2_p1, v2_p2, v2_p3) AC_V_L_SKIP_IF (id, dis...

  • Page 50

    2 Configurable Lists 09.03 2.2 Break and skip functions in lists BITMASK (not with DOUBLE) The value of the (first) configured data is ANDed with the constant or value of the second configured data. Jump if the result is >0. NOT_BITMASK (not with DOUBLE) The value of the (first) configured ...

  • Page 51

    09.03 2 Configurable Lists 2.2 Break and skip functions in lists 2.2.6 GOTO_LABEL – jump to jump destination Description Jumps to a label (OB_|AC_|RC_LABEL) within the list. The jump destination can be positioned either before or after the jump function OB_|AC_|RC_GOTO_LABEL, but must be w...

  • Page 52

    2 Configurable Lists 09.03 2.2 Break and skip functions in lists © Siemens AG, 2003. All rights reserved 2-52 SINUMERIK 840D/810D Configuring Syntax (PS) - 09.03 Edition Example OB_DO_ACTION_LIST (1896;ACTION_LIST_PTR(AC_DI_OB_LLW_SOFTKEYS))

  • Page 53

    09.03 3 Display Elements 3.1 Static display elements 3 53,3 Display Elements 56,3.1 56, Static 56, display elements 56,................................................................................. 56,3-56 56, 56,3.1.1 56, 56,Point - PIXEL (MMC100/EBF) 56,..............................

  • Page 54

    3 Display Elements 09.03 3.1 Static display elements 120,3.2.17 120, 120,Macro element (sub-object lis 120,ts) - MACRO 120,............................................ 120,3-120 120, 121,3.2.18 121, 121,Dynamic 121, macro element (sub-object 121, lists) - MACRO_DYN 121,...................

  • Page 55

    09.03 3 Display Elements 3.1 Static display elements Display elements are display objects contained in object (OBJECT_LIST) or soft key object lists (SOFTKEY_OBJECT_LIST) which determine the appearance of screen dialogs. Display elements are classed as either "static" or "dyna...

  • Page 56

    3 Display Elements 09.03 3.1 Static display elements 3.1 Static display elements Static display elements, i.e. elements that are not linked to a variable, are output once on the screen when an object list or soft key object list is processed and then remain unchanged. A soft key object list ma...

  • Page 57

    09.03 3 Display Elements 3.1 Static display elements 3.1.3 Line - LINE Description Output a line on the screen. LINE (id, x1, y1, x2, y2, color, style) Syntax Parameters id Unique identifier of element. x1, y1 Starting point of the line in pixels, relative to the reference position. x2, y...

  • Page 58

    3 Display Elements 09.03 3.1 Static display elements Note The contents of notepad nb_x1 must be less than or equal to the contents of notepad nb_x2. 3.1.5 Arrowhead - ARROW (MMC100/EBF) Description Display an arrowhead on the screen. ARROW (id, x, y, len, angle, color) Syntax Parameters i...

  • Page 59

    09.03 3 Display Elements 3.1 Static display elements 3.1.7 Rectangle - RECTANGLE Description Display a rectangle on the screen. RECTANGLE (id, x, y, w, h, fill, color, style) Syntax Parameters id Unique identifier of element. x, y Position of top left-hand corner of the rectangle in pixe...

  • Page 60

    3 Display Elements 09.03 3.1 Static display elements Parameter id Unique identifier of element. nb_x, nb_y Notepads containing the position of the top, left-hand corner of the rectangle in pixels relative to the reference position (window, menu). nb_w, nb_h Notepads containing the width (w...

  • Page 61

    09.03 3 Display Elements 3.1 Static display elements Only the border of the circle is displayed in the color defined in color. Only pixels defined in style are taken into account. FILLED The entire area of the circle (including border) is displayed in the color defined in color. color Color: ...

  • Page 62

    3 Display Elements 09.03 3.1 Static display elements style Line style for the circle border as an 8-bit value. Each bit in the specified numerical value (preferably hexadecimal) represents a pixel. A pixel of the color defined in color is drawn for each set bit. Bits that are not set cause the ...

  • Page 63

    09.03 3 Display Elements 3.1 Static display elements 3.1.12 Dynamic arc, sector - ARC_DYN (MMC100/EBF) Description Display a circle/sector on the screen; its position, radius and color data are read from notepads. ARC_DYN (id, nb_xs, nb_ys, nb_xe, nb_ye, nb_r, direct, sector, nb_color, sty...

  • Page 64

    3 Display Elements 09.03 3.1 Static display elements 3.1.13 Ellipse - ELLIPSE (MMC100/EBF) Description Display an ellipse on the screen. ELLIPSE (id, x, y, rx, ry, fill, color, style) Syntax Parameters id Unique identifier of element. x, y Ellipse center point in pixels relative to the refe...

  • Page 65

    09.03 3 Display Elements 3.1 Static display elements nb_rx, nb_ry Numbers of notepads containing the radius in x and y directions in pixels. fill Number of the fill pattern for the ellipse. Using DEF_PATTERN (refer below), the user can define the required fill pattern. Predefined settings are...

  • Page 66

    3 Display Elements 09.03 3.1 Static display elements effective only for graphic objects to be displayed subsequently. Elements already displayed on the screen are unaffected. If a graphic object is output with a fill pattern, only the pixels set in the pattern with the color configured in the g...

  • Page 67

    09.03 3 Display Elements 3.1 Static display elements transferred, but a fixed text. The text itself must be in " ", and must not be longer than 49 characters including this identifier Note FIXTEXT(s) must be language-independent. Syntax For texts from text lists: TEXT (txt_id, x,...

  • Page 68

    3 Display Elements 09.03 3.1 Static display elements The characters are doubled in the x and y directions and thus displayed with double line thickness. TEXT_WRITE_LF Line feeds in the display text are represented symbolically. TEXT_RIGHT_ADJUST The text is right justified, i.e. written to the ...

  • Page 69

    09.03 3 Display Elements 3.1 Static display elements Content of NB_SY_PLANE Control character: %p1 Control character: %p2 Control character: %p3 1 (X-Y plane) Axis name axis 1 Axis name axis 2 Axis name axis 3 2 (Z-X plane) Axis name axis 3 Axis name axis 1 Axis name axis 2 3 (Y-Z plane) Axis ...

  • Page 70

    3 Display Elements 09.03 3.1 Static display elements 15 Diameter %<Sym1,15> 16 1. Part 3 Position spindle %<Sym1,16>%<Sym1,17>%<Sym1,18> 17 2. Part 3 Position spindle %<Sym1,16>%<Sym1,17>%<Sym1,18> 18 3. Part 3 Position spindle %<Sym1,16>%<...

  • Page 71

    09.03 3 Display Elements 3.1 Static display elements Parameters id Unique identifier of element. nb_x Number of notepad containing the X position of the text in pixels relative to the higher-level object. The reference point in the x direction depends on the attribute (attr). nb_y Number of ...

  • Page 72

    3 Display Elements 09.03 3.1 Static display elements The text is output at the exact pixel position. If this attribute is not set, the text is output at the next-lower x position divisible by 8 (byte limit) to save time. nb_color Number of notepad containing the color. Colors and gray scales ar...

  • Page 73

    09.03 3 Display Elements 3.1 Static display elements 3.1.20 Polymarker definition - DEF_POLYMARKER (only MMC100/EBF) Description You can define any number of polymarkers within an application using this element. A polymarker consists of a bit pattern, 16 x 16 pixels in size, which can be defi...

  • Page 74

    3 Display Elements 09.03 3.1 Static display elements #define MY_FIRST_POLYMARKER LOCAL_POLY_LIST #define MY_SECOND_POLYMARKER MY_FIRST_POLY_MARKER+1 #define MY_THIRD_POLYMARKER MY_FIRST_POLY_MARKER+2 etc. Example Add polymarkers to the sample application in the screen kit. Entry in file ap_l_...

  • Page 75

    09.03 3 Display Elements 3.1 Static display elements BEGIN_POLY_LIST(LOCAL_POLY_LIST, example) /* Spindle stopped */ { 0x0000, 0x0000, 0x01f0, 0x0110, /* 200 */ 0x3f1c, 0x0114, 0x0114, 0x0114, 0x0114, 0x0114, 0x0114, 0x3f1c, 0x0110, 0x01f0, 0x0000, 0x0000}, ...

  • Page 76

    3 Display Elements 09.03 3.1 Static display elements IO_FIELD (140, X_T_APP, (Y_T_APP + (0 * Y_T_DIFF)), 10, W_O_TCOL, W_O_FCOL, CS_SMALL, 0, 160, 160, 160, 160, 0, 1, 0, P_C_RP_rpa, 10+1, 0, 0, CON_DECIMAL, F_DOUBLE, 8, 0) /* printing text comment for NB20 */ TEXT (150,...

  • Page 77

    09.03 3 Display Elements 3.1 Static display elements PRESSED) /* subtract 1.234 from R-parameter 10 */ RC_CALC_DATA (240, KEY_F2_V, P_C_RP_rpa, 10+1, 0, 0, AC_SUB, P_NB, NB_CALC_WITH_R10, 0, 0, BTSS_DOUBLE) /* reinverting second vertical soft key */ RC_DRAW_SOFTKEY (250, KEY_F2_V, T_SK2V_S...

  • Page 78

    3 Display Elements 09.03 3.1 Static display elements 3.1.21 Polymarker - POLYMARKER Description Displays a polymarker (Icon with 16 * 16 pixels) that has been defined with DEF_POLYMARKER on the screen. POLYMARKER (id, x, y,poly_nr, color) Syntax Parameters id Unique identifier of element. ...

  • Page 79

    09.03 3 Display Elements 3.1 Static display elements nb_color Number of notepad containing the color. Colors and gray scales are system-dependent (refer to the Section Colors for valid values). Note Polymarkers have no background color, i.e. only the pixels to be set are output on the scree...

  • Page 80

    3 Display Elements 09.03 3.1 Static display elements The standard configuration resides in files \proj_hpu\std\src\softkey.c and \proj_hpu\h\softk.h allows a representation possibility using macros, that can also be used in the application. These macros are structured in the same form as the l...

  • Page 81

    09.03 3 Display Elements 3.1 Static display elements 3.1.24 SOFTKEY_PRO Description This element represents a soft key with expanded parameterizability. It can only be used in object lists and soft key object lists. This element allows either 2 soft key texts or 2 bitmaps to be configured wit...

  • Page 82

    3 Display Elements 09.03 3.1 Static display elements x1, y1 Free positions for the 1st element (this is only effective if the attribute bit SK_LAYOUT_POSITION is set in the parameter LAYOUT_ATTR). This element is not displayed if the position is invalid. x2, y2 Free positions for the ...

  • Page 83

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields 8th soft key: as for soft key 4, however attribute SK_PRESSED set 3.2 Dynamic display elements – dialog fields Description Data of the NCK, PLC and MMC can be displayed by means of dynamic display elements and modifi...

  • Page 84

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields cursor_txt_id, v_adr, v_p1, v_p2, v_p3, con, con_p1, con_p2, con_p3) Parameters id Unique identifier for the IO_FIELD object in the current module. x, y Position of top left-hand corner of field in pixels relative to th...

  • Page 85

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields IO_LEFT_ADJUST Text is left-justified within the field. IO_CENTRE_ADJUST Text is centered within the field. If you do not specify either of the two justification attributes (IO_LEFT_ADJUST, IO_CENTRE_ADJUST), the followin...

  • Page 86

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields Keyswitch setting 2. IO_ACC_KEY_SWITCH_1 Keyswitch setting 1. IO_ACC_KEY_SWITCH_0 Lowest access level keyswitch setting 0. cur_r, cur_l, cur_d, cur_u, Identifiers of the fields where the dialog cursor for cursor right, ...

  • Page 87

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields v_adr, v_p1, v_p2, v_p3, con, con_p1, con_p2, con_p3) Parameters id Unique identifier for the O_FIELD object in the current module. x, y Position of top left-hand corner of field in pixels relative to the object above i...

  • Page 88

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields If you do not specify either of the two justification attributes (IO_LEFT_ADJUST, IO_CENTRE_ADJUST), the following standard applies: Text is left-justified in spring fields (conversion format CON_STRING or CON_STRING_LIMIT)...

  • Page 89

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields PBAR_VERTICAL: Vertical representation (default: horizontal PBAR_BACKWARD: Display direction reversed (from right to left or from top to bottom) Default is: from left to right or from bottom to top PBAR_SIGNAL_COL: Dis...

  • Page 90

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields Display starts at bottom right and goes in counter-clockwise direction (default: bottom left, clockwise) TACO_CENTRE_START: Display starts in the top center and goes in positive and negative directions TACHO_SIGNAL_COL: ...

  • Page 91

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields fc Foreground color (text color). Colors and gray scales are system-dependent (refer to the Section Colors for valid values). bc Background color. Colors and gray scales are system-dependent (refer to the Section Colors fo...

  • Page 92

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields IO_ACC_USER End user. IO_ACC_KEY_SWITCH_3 Keyswitch setting 3. IO_ACC_KEY_SWITCH_2 Keyswitch setting 2. IO_ACC_KEY_SWITCH_1 Key switch setting 1 (value 6). IO_ACC_KEY_SWITCH_0 Lowest access level keyswitch setting 0 (value ...

  • Page 93

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields 3.2.6 Graphic list field for cursor - CUR_PICT_FIELD Description A static object list is output once or cyclically in a graphic list field, controlled by the value of a linked variable from the NCK/PLC or MMC. Unlike the ...

  • Page 94

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields 3.2.7 Single and multiple option boxes - CHECK_FIELD Description You can display single-option / and multiple-option boxes (checkboxes) ⌧/ with this element. These enable you to simulate control elements as they are used...

  • Page 95

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields CS_19_27: Character set 19 x 27 pixels (only for MMC 100/UOP); character set must be loaded first using AC/RC_LD_FONT. field_attr Attribute parameter. The individual attributes can be combined by OR'ing: IO_INPUT_DISABLE Y...

  • Page 96

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields IO_ACC_OEM_0 Service. IO_ACC_USER End user. IO_ACC_KEY_SWITCH_3 Keyswitch setting 3. IO_ACC_KEY_SWITCH_2 Keyswitch setting 2. IO_ACC_KEY_SWITCH_1 Keyswitch setting 1. IO_ACC_KEY_SWITCH_0 Lowest access level keyswitch settin...

  • Page 97

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields 3.2.8 Edit field /NC – data overview – EDIT_FIELD Description The purpose of the edit field is to display an NC file, an NC directory, a DOS file (not for OP 030).. The edit field is also used to display the current ...

  • Page 98

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields CS_6_9: Character set 6 x 9 pixels (for MMC 100/UOP only); character set must be loaded first using AC/RC_LD_FONT. CS_8_12: (as for CS_SMALL; only for MMC 100/UOP) CS_19_27: Character set 19 x 27 pixels (only for MMC 100/UO...

  • Page 99

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields E_NOT_DISPLAY (for HPU only) The content of the EDIT_FIELD is not displayed on the screen. Useful for processing an object (e.g. part program) in the background E_SCROLLBAR The scrollbar is automatically updated by the edi...

  • Page 100

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields max_bl_len Maximum length of a block (block up to and including LF) accepted by the editor (including copying and insertion). The highest possible value is stored in ED_MAX_RECORD_LEN. This should be passed as the default h...

  • Page 101

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields Only the number of configured lines is read. From HMI-Embedded 06.02 onwards. E_SHOW_LF_AS_BLANK The end of line is not represented as line feed. From HMI-Embedded 06.02 onwards. E_NC_VERSION (internal) An NC directory is ...

  • Page 102

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields 3.2.10 Table - TABLE Description A table is a composed dynamic display element. The contents of multiple NC variables, PLC variables or MMC variables can be displayed in the table either in columns or rows. A table consist...

  • Page 103

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields serv_fkt_id Identifier for data server function. (for OP 030: only VAR_SERVER possible) serv_fkt_p1 - 4 Parameter for data server. (for OP 030 and VAR_SERVER, all 0 !) Only one table can be defined in this object ...

  • Page 104

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields OP_OUTPUT_FIELD Output field only. No cursor display and no input possible, the values are only output. OP_INPUT_FIELD Only input field – with cursor – input possible, values supplied from MMC, NCK or PLC are not ...

  • Page 105

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields refresh Refresh cycle for visualization (display refresh) and data access (data refresh). ! Important If there is a TAB_ITEM for this column containing data access to drive data, you must not enter a refresh factor here! ...

  • Page 106

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields 3.2.12 Table data element – line entry - TAB_ITEM This configuration list is only used for the table data server VAR_SERVER. Description Exactly one table data element for output in a column is defined via TAB_ITEM. All ...

  • Page 107

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields lim_check Type of limit value check for input. When the value range is violated, the limit values are displayed in the dialog line. Possible checks: CHECK_OFF No limit value check. CHECK_ON Check for violation of the un...

  • Page 108

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields IO_ACC_KEY_SWITCH_0 Lowest access level keyswitch setting 0. acc_class Number of notepad containing the minimum required access level for write operations. If you enter a notepad no. (value other than 0), configured access ...

  • Page 109

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields Time (s). UNIT_KV Servo gain factor (1/s). UNIT_REV_FEED Rotary feed rate (mm/rev, inch/rev). UNIT_INERTIA Moment of inertia (kgm2) UNIT_PERCENT Percent (%). UNIT_FREQU Frequency (Hz) UNIT_VOLTAGE Voltage (V) UNIT_CURRENT ...

  • Page 110

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields Time (ms) UNIT_611D_TIME4 Time (s) UNIT_POWER Power (kW) UNIT_CURRENT_SMALL Small current (µA) UNIT_611D_VS (Vs) UNIT_611D_VS_SMALL (µVs) UNIT_TORQUE_SMALL Small torque (µNm) UNIT_611D_AOVERVS (A / Vs) UNIT_PROMILLE 1/10...

  • Page 111

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields Index the variable address column (see also section on data identifiers for variable access). Example: Actual value for all geometry axes: v_adr,..p3: P_C_SGA_progDistToGo, 1, 0, 0 item_index_typ: VAR_TOKEN_INDEX_ROW v...

  • Page 112

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields TAB_ITEM ( 20, P_C_SEMA_trackErrContr, 1, 0, 0, /* token column identifier */ CON_DECIMAL, F_DOUBLE, 0, CON_IO_RESOLUTION, /* convert function */ CHECK_OFF, 0.0 , 0.0, /* limit check */ 0, /* text attribut...

  • Page 113

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields VAR_TEXT, /* column attributes */ OBJECT_LIST_PTR (OB_TAB_ITEM_SEMA) /* ptr to TAB_ITEM */ ) TAB_COLUMN (20, SEMA_TAB_X_VALUE, SEMA_TAB_Y_ROW, SEMA_TAB_W_VALUE, /* position of column */ CS_SMALL, /*...

  • Page 114

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields TEST_ROW_DIST_TAB, TEST_ROW_CNT_TAB, /* row distance, row count */ W_FCOL, /* background color */ TEST_SEMA_SB_ID, /* scrollbar-id */ 0, /* not used */ OBJECT_LIST_PTR (OB_TAB_COLUMN_SEMA), /* ptr to ta...

  • Page 115

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields bc Background color. Colors and gray scales are system-dependent (refer to the Section Colors for applicable values). refresh Refresh cycle for visualization (display refresh) and data access (data refresh). Also refer to...

  • Page 116

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields 3.2.14 Action field - ACTION_FIELD Description These fields do not display values of the control system, but trigger, in response to events and in conjunction with reaction routine D_ACTIVATE_ACTION, the actions stored in ...

  • Page 117

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields ... END_REACTION_LIST (40040) BEGIN_OBJECT_LIST(45020) ... ACTION_FIELD (2, 40, 60, /* ID (here: 2), x, y */ 50, 18, 0, 0, /* width, height, attribute */ 0, /* CURSOR-TEXT_ID*/ 6, 8, 10, 0, /* Cursor sequences */ ...

  • Page 118

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields 3.2.15 Inverse field - INVERSE_FIELD Description The purpose of an inverse field is to display a screen area either normally or in reverse video as a function of an NC/PLC/MMC variable. The field is displayed in reverse vi...

  • Page 119

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields KEY_PAGE_PLUS, KEY_UP, KEY_DOWN, ..) and a scrollbar refresh using reaction routine RC_SCROLL_BAR_REFRESH is called. The scrollbar is automatically refreshed with the Table and Editor control elements. The link to these is...

  • Page 120

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields Y_DIRECTION (currently possible value). num_lines Number of lines shown in the display (line cutout). nb_nr_max_lines Notepad entry identifier: NOTEPAD if the following parameter is a notepad entry number. 0 if the fo...

  • Page 121

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields x, y Position of top left-hand corner of macro in pixels relative to the object above it. obl_id Unique identifier of an object list to be displayed relative to the specified macro positions. 3.2.18 Dynamic macro elemen...

  • Page 122

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields x, y x, y position relative to window or the macro located above w,h Width, height of the complete output range fc, bc, Foreground color (color of the value display), background color sc Signal color (100% value), color o...

  • Page 123

    09.03 3 Display Elements 3.2 Dynamic display elements – dialog fields fc, bc, Foreground color (color of the value display), background color sc Signal color (100% value), color of display when signal value is exceeded. a Attribute with the following meaning TACHO_RIGHT_START Display from ...

  • Page 124

    3 Display Elements 09.03 3.2 Dynamic display elements – dialog fields pcx_name Name of converted file (in inverted commas). You can use up to 8 characters, (e.g. "fci_sp" without extension) Note PCX images must be converted to binary data using the pcxconv.exe tool and then stored ...

  • Page 125

    09.03 3 Display Elements 3.3 Colors 3.3 Colors Numerical values are used to define colors. OP030, HPU and MMC 100/UOP use different color definitions. 3.3.1 Colors for OP 030 and HPU The OP030 and HPU only use color definitions BLACK and WHITE, i.e. only BLACK or WHITE may be specified for ...

  • Page 126

    3 Display Elements 09.03 3.3 Colors • WHITE3 • WHITE • ORANGE • ORANGE_D • PETROL • BLUE • RED • YELLOW • NO_COLOR --> no color To simplify the configuring of colors and gray scales, you can create bit combinations of one color shade and one grey shade in each case. For exa...

  • Page 127

    09.03 3 Display Elements 3.4 Refresh factor – display and data refresh 3.4 Refresh factor – display and data refresh Description The refresh cycle specifies both a factor for the visualization refresh rate (display refresh) and for the data access refresh rate (data refresh). Display ref...

  • Page 128

    3 Display Elements 09.03 3.5 Data conversion When cyclical refresh is selected, the variable address is not regenerated each time. In other words, an error will occur if the display is not re-build after the index of a variable has been changed. 3.5 Data conversion Description Conversion ro...

  • Page 129

    09.03 3 Display Elements 3.5 Data conversion 3.5.1 Data format for the conversion Dynamic fields are linked to the data conversion via an 8-byte wide area. These eight bytes are interpreted differently depending on the conversion routine and setting of the data format parameter below. The dat...

  • Page 130

    3 Display Elements 09.03 3.5 Data conversion 3.5.3 CON_TEXT_OFFSET Description This conversion method is used to display a variety of fixed texts depending on the value supplied. The value supplied to the dynamic fields is interpreted as an offset to the text number specified in the conversion...

  • Page 131

    09.03 3 Display Elements 3.5 Data conversion 3.5.4 CON_TEXT_BOOL Description Output exactly two different texts, dependent on the return value. If a value other than 0 is supplied to the dynamic field, then the text specified in the conversion parameter is output. Otherwise (i.e. value equal...

  • Page 132

    3 Display Elements 09.03 3.5 Data conversion 3.5.6 CON_STRING Description This conversion routine is used to display and input strings. The read value is interpreted as a pointer to a string. The character string must end with ‘\0’. It is output in the dynamic display field. This routine...

  • Page 133

    09.03 3 Display Elements 3.5 Data conversion IO_FIELD (213, X_T_APP+150, Y_T_APP, 5, WHITE, BLACK, CS_SMALL, IO_LEFT_ADJUST, 201, 214, 214, 214, 0, REFR_MEDIUM, 0, P_NB, NB_20, 0, 0, CON_STRING, 0, 0 ,0 ) /* Display and input option for text variable 1 */ IO_FIELD (214, X_T_APP+...

  • Page 134

    3 Display Elements 09.03 3.5 Data conversion 3.5.8 CON_DECIMAL Description This conversion routine is used to display and input integers and floating-point values. Depending on the parameter settings, the read value is interpreted as an 8/16/32 bit value, with or without sign, or as a 32-bit f...

  • Page 135

    09.03 3 Display Elements 3.5 Data conversion Note If the length of the number exceeds the configured width of the input/output field, then you must specify attribute IO_EDITOR_SCROLL. You will then be able to scroll in the field using the cursor. con_p1 con_p2 con_p3 F_DOUBLE F_FLOAT Number...

  • Page 136

    3 Display Elements 09.03 3.5 Data conversion CON_DIGIT_GROUPS Values are displayed in groups of 4 characters (e.g. instead of 020ABC4D -> 020A BC4D). CON_HEX_SIGN A preceding "H" indicates that the value is a hexadecimal number. CON_NO_LEADING_ZEROS Leading zeros are not inserted i...

  • Page 137

    09.03 3 Display Elements 3.5 Data conversion 3.5.12 CON_BIT Description This conversion routine displays "0" or "1" in the dynamic display field. In this case, the display depends on whether the specified bit is set ("1") or not set ("0") in the supplie...

  • Page 138

    3 Display Elements 09.03 3.5 Data conversion © Siemens AG, 2003. All rights reserved 3-138 SINUMERIK 840D/810D Configuring Syntax (PS) - 09.03 Edition Notes

  • Page 139

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects 4 139,4 Action and Reaction 139,Routines 142,4.1 142, Routines that affect lists 142,and objects 142,............................................................4-142 142, 142,4.1.1 142, 142,NEW_MENU: Open...

  • Page 140

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects 171,4.1.40 171, 171,APPEND_TXT_NB_TXT_NB: Attaching text 171,variables.......................... 171,4-171 171, 171,4.1.41 171, 171,CLEAR_TXT_NB: Deleting a text variable 171,...................................

  • Page 141

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects A range of action and reaction routines are available for implementing functions. They can be activated through configuring measures, i.e. you need to enter the relevant action or reaction elements in the appropriat...

  • Page 142

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects 4.1 Routines that affect lists and objects 4.1.1 NEW_MENU: Opening a new menu Description This routine activates a new menu. First the currently active menu plus all its associated windows is closed in a defined ...

  • Page 143

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects Syntax Action element: AC_NEW_MENU_NB (ac_id, nb_nr, menu_typ) Reaction element: RC_NEW_MENU_NB (rc_id, ev_code, nb_nr, menu_typ) Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_cod...

  • Page 144

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects GLOBAL All windows and object positions are calculated relative to the global menu. LOCAL All windows and object positions are calculated relative to the local menu. Note All the attributes defined in the window de...

  • Page 145

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects Syntax Action element: AC_OPEN_WINDOW_NB (ac_id, nb_nr, menu_typ) Reaction element: RC_OPEN_WINDOW_NB (rc_id, ev_code, nb_nr, menu_typ) Parameters ac_id, rc_id Unique identifier of the action or reaction element. ...

  • Page 146

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects LOCAL The window is removed from the local menu. cl_mode Mode for closing the window 0 The window graphic is not deleted. WIN_CLOSE_DEL_BC The window area is filled with the background color from the window. WIN_C...

  • Page 147

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects cl_mode Mode for closing the window 0 The window graphic is not deleted. 1 The window area is filled with the background color from the window. Note All the attributes defined in the window definition block and r...

  • Page 148

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects DO_OPEN_LIST Any open list configured for the window will be processed when it is refreshed. Whether this list must be activated before or after the display objects are output is taken into account (as specified in ...

  • Page 149

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects 4.1.9 NEW_SOFTKEY_ASSIGN: Activating a new soft key bar Description This routine assigns a soft key menu to a window located in the chain of the local menu. This is not activated until the focus is placed on the wi...

  • Page 150

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects Note A maximum of 5 basic reaction lists can be active at the same time. The user list directory (file ap_l_dir.h) must contain the following pointer to the configured reaction list: EXTERN_REACTION_LIST (rcl_id). ...

  • Page 151

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects 4.1.13 CLOSE_EVENT_LIST: Closing an event list Description An active event list is closed again when this routine is called. Syntax Action element: AC_CLOSE_EVENT_LIST (ac_id, evl_id) Reaction element: RC_CLOSE_EV...

  • Page 152

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects win_id Identifier of a window that has already been opened that should be assigned the input limit value list. Note The window to which the input limit-value list must be assigned must be opened in the specified me...

  • Page 153

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects NULL, /* pointer to Reaction-List */ NULL, /*pointer to SKO-List */ NULL, /* pointer to SKR-List */ END_WINDOW( W_INOUT ) 4.1.15 CLOSE_LIMIT_LIST: Closing an input limit value list Description This routine clo...

  • Page 154

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects ac_id, rc_id Unique identifier of the action or reaction element. Parameters ev_code Code of event which must trigger processing of the reaction element. obl_id Identifier of the object list to be processed. menu_...

  • Page 155

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects Note The action list to be processed must be entered in the user list directory (file ap_l_dir.h). EXTERN_ACTION_LIST (acl_id) 4.1.18 DRAW_SOFTKEY: Output of a soft key (not HPU) Description This routine displa...

  • Page 156

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects 4.1.19 ACTIVATE_SK_GRAPHIC: Activating the soft key display Description This routine reactivates the soft key display and shows the current SK menu on the screen. Afterwards, the soft key graphic is output immediat...

  • Page 157

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects Syntax Action element: AC_ENABLE_SK_VISUALISATION (id) Reaction element: RC_ENABLE_SK_VISUALISATION (id, event) Parameters id Unique identifier of the action or reaction element. event Event for which the routin...

  • Page 158

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_code Code of event which must trigger processing of the reaction element. 4.1.24 SET_MORE, RESET_MORE, SET_RECALL, RESET_RECALL Des...

  • Page 159

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects Syntax Action element: AC_D_CLOSE (ac_id) Reaction element: RC_D_CLOSE (rc_id, ev_code) Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_code Code of event which must trigger process...

  • Page 160

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects Syntax Action element: AC_D_GOTO_DIAFIELD (ac_id, df_id) Reaction element: RC_D_GOTO_DIAFIELD (rc_id, ev_code, df_id) Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_code Code of ev...

  • Page 161

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects COPY_DIA_ID: 1. Move cursor – 2. Write dialog field_ID to notepad COPY_CURRENT_DIA_ID: 1. Write dialog field_ID to notepad – 2. Move cursor Syntax Action element: AC_COPY_CURRENT_DIA_ID (id, nb) Reaction elemen...

  • Page 162

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects Syntax Action element: AC_SET_WIN_ATTR (id, attr, win, menu) Reaction element: AC_ SET_WIN_ATTR (id, event, attr, win, menu) Parameters id Unique identifier of the element within the module. event Event for whi...

  • Page 163

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects Cursor right: The cursor is positioned on the nearest cursor field to the right of the current field which is superimposed on the current field in a horizontal direction. Cursor left: The cursor is positioned on the...

  • Page 164

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects win_id Identifier of the window in which the dialog field attributes are to be changed. If 0xffff is entered here, then the attributes of all of the dialog fields are changed in all of the opened windows. df_id_1 I...

  • Page 165

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects ! Important • By using attributes other than those described above, you intervene significantly in the operation of the system. This may render the system software inoperable. • The configuring engineer must tho...

  • Page 166

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects df_attr Attribute to be reset. Several attributes can be specified as OR operations (|). The following dialog field attributes can be reset: IO_CALCULATOR_OFF Deactivate pocket calculator function. IO_EDITOR_SCROLL ...

  • Page 167

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects 4.1.34 ACTIVATE_DIA_REFR: Updating dialog fields Description This routine refreshes one or several dialog fields in one or all windows of a menu. Syntax Action element: AC_ACTIVATE_DIA_REFR (ac_id, menu_typ, win_i...

  • Page 168

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects 4.1.36 NB_DECREMENT: Decrementing the contents of a notepad entry Description This routine reduces the value in a notepad entry by the configured, constant value. The value is not reduced to less than the lower lim...

  • Page 169

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects ev_code Code of event which must trigger processing of the reaction element. nb_nr Number of notepad entry whose content must be incremented. plim_h Maximum permissible upper limit of notepad entry content. dist Con...

  • Page 170

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects txt_nr and txt_nr + 1 are copied (except for SET_TXT_NB_SINGLE). nb_nr Notepad number and notepad number+1 in which the addresses (e.g. for C function access operations) of the text variables (txt_var_id and txt_var...

  • Page 171

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects 4.1.40 APPEND_TXT_NB_TXT_NB: Attaching text variables Description This routine appends the content of one text variable to another text variable. If the total resulting text exceeds a maximum length of 100 characte...

  • Page 172

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_code Code of event which must trigger processing of the reaction element. nb_nr Number of notepad entry which must contain the address...

  • Page 173

    09.03 4 Action and Reaction Routines 4.1 Routines that affect lists and objects Not NOTEBOOK The following parameter d_index contains the index to the current data. d_index Number of the notepad containing the index to the current data, or the index to the current data itself (depending on prec...

  • Page 174

    4 Action and Reaction Routines 09.03 4.1 Routines that affect lists and objects events in the OPEN list for processing in the system basic reaction list (AC_SET_EVENT_REACTION routine). When you switch to another operating area, the default status is restored automatically, i.e. all events in t...

  • Page 175

    09.03 4 Action and Reaction Routines 4.2 Copying and calculation routines Syntax Reaction element RC_BREAK_EVENT (rc_id, event) Parameters rc_id Unique identifier of the reaction element. event Event whose processing list is to be cancelled. 4.1.45 SET_ICON_POS: Setting the user icon bar ...

  • Page 176

    4 Action and Reaction Routines 09.03 4.2 Copying and calculation routines Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_code Code of event which must trigger processing of the reaction element. bit_mask Mask with bits to be set, reset or inverted. The mask is ...

  • Page 177

    09.03 4 Action and Reaction Routines 4.2 Copying and calculation routines 4.2.3 CALC_UWORD, CALC_LONG, CALC_DOUBLE: Calculating values Description These routines are used to perform arithmetic operations. In each operation, a constant value and a variable in format UWORD, LONG or DOUBLE as con...

  • Page 178

    4 Action and Reaction Routines 09.03 4.2 Copying and calculation routines 4.2.4 CALC_DATA: Calculating with two variables Description These routines are used to perform arithmetic operations on two configured variables In this case, the configured variables are combined as specified in parame...

  • Page 179

    09.03 4 Action and Reaction Routines 4.2 Copying and calculation routines BTSS_LONG = long int BTSS_DOUBLE = double (not with modulo, AC_MOD) If the calculated value must be displayed, the field must be converted in the same way as the calculation. 4.2.5 COPY_DATA: Copying a variable Descrip...

  • Page 180

    4 Action and Reaction Routines 09.03 4.2 Copying and calculation routines v_adr Data identifier for accessing the data source in the NC/PLC/MMC (see Chapter 5). v_p1 ... v_p3 Additional parameters for accessing the data source (see Chapter 5). nb_nr Number of the notepad in which the value, rea...

  • Page 181

    09.03 4 Action and Reaction Routines 4.2 Copying and calculation routines 4.2.8 CONVERT_DATA_FORMAT: Converting a data format Description This routine reads the content of an NC/PLC variable and stores the value in the desired data format in a notepad. Syntax Action element: AC_CONVERT_DATA_F...

  • Page 182

    4 Action and Reaction Routines 09.03 4.3 General routines 4.3 General routines 4.3.1 CHANGE_MODE: NC operating mode change) only OP 030) Description This routine is used to change operating modes and designed specially for use on the SINUMERIK 840D/810D and FM-NC. Syntax Action element: AC_...

  • Page 183

    09.03 4 Action and Reaction Routines 4.3 General routines Syntax Action element: AC_CHANNEL_SWITCH (ac_id) Reaction element: RC_CHANNEL_SWITCH (rc_id, ev_code) Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_code Code of event which must trigger processing of t...

  • Page 184

    4 Action and Reaction Routines 09.03 4.3 General routines Reaction element: OP 030: RC_SET_MESSAGE (rc_id, ev_code, msg_nr) MMC 100/UOP: RC_SET_MESSAGE (rc_id, ev_code, msg_nr, 0, 0) RC_RESET_MESSAGE (rc_id, ev_code) Parameters ac_id, rc_id Unique identifier of the action or reaction element. ...

  • Page 185

    09.03 4 Action and Reaction Routines 4.3 General routines 4.3.6 SET_CUR_TXT_POS: Setting the position of the cursor text Description This routine is used to set the position, character length and foreground and background colors of the cursor text line. (Cursor appears when the cursor is moved...

  • Page 186

    4 Action and Reaction Routines 09.03 4.3 General routines Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_code Code of event which must trigger processing of the reaction element. Note The SET_INFO and RESET_INFO routines are not available for OP 030! 4.3....

  • Page 187

    09.03 4 Action and Reaction Routines 4.3 General routines Parameters ac_id, rc_id Unique identifier of the action or reaction element. ev_code Code of event which must trigger processing of the reaction element. nb_tool Notepad number from which routine reads the number of tool to be created. ...

  • Page 188

    4 Action and Reaction Routines 09.03 4.4 Routines to handle part programs 4.4 Routines to handle part programs 4.4.1 PP_EDIT_OPEN: Opening an edit field for part programs Description This routine opens an edit field (editor) in a window. A corresponding EDIT_FIELD must be configured in the o...

  • Page 189

    09.03 4 Action and Reaction Routines 4.4 Routines to handle part programs 4.4.2 PP_EDIT_CLOSE: Closing an edit field for part programs Description This routine closes an edit field (editor) in a window. Syntax Action element: AC_PP_EDIT_CLOSE (ac_id, menu_typ, win_id) Reaction element: RC_PP_...

  • Page 190

    4 Action and Reaction Routines 09.03 4.5 Routines for diagnostics functionality 4.5 Routines for diagnostics functionality 4.5.1 DG_INIT_ALARM: Initializing for the alarm overview (OP 030) Description This routine initializes the display of alarms (NCK alarms, MMC alarms and PLC alarms). The...

  • Page 191

    09.03 4 Action and Reaction Routines 4.5 Routines for diagnostics functionality OB_POLY_POWER_ON (for Power-on alarm), OB_POLY_RESET (for Reset alarms), OB_POLY_CANCEL (for Cancel alarms), OB_POLY_NC_START (for NC Start alarm), OB_POLY_KEY (for Big-Mac alarm key or soft key), OB_POLY_EMPTY (n...

  • Page 192

    4 Action and Reaction Routines 09.03 4.5 Routines for diagnostics functionality OB_POLY_POWER_ON (for Power-On alarm), OB_POLY_RESET (for Reset alarms), OB_POLY_CANCEL (for Cancel alarms), OB_POLY_NC_START (for NC Start alarm), OB_POLY_KEY (for Big-Mac alarm key or soft key), OB_POLY_EMPTY (no ...

  • Page 193

    09.03 4 Action and Reaction Routines 4.5 Routines for diagnostics functionality 4.5.4 CLOSE_VERSION: Closing the NCK version display Description This routine ends the display of the NCK version file and releases the dynamic memory which has been requested by the OPEN_VERSION routine. It must b...

  • Page 194

    4 Action and Reaction Routines 09.03 4.5 Routines for diagnostics functionality 4.5.6 DG_CLOSE_PASSW: Closing the password dialog Description This routine ends the password dialog in a defined manner, also releasing the dynamic memory again that was requested by the 'dg_init_passw' routine. It...

  • Page 195

    09.03 4 Action and Reaction Routines 4.5 Routines for diagnostics functionality 4.5.8 DG_CHG_PASSW: Changing the password for the actual access stage Description This routine changes the password for the current access level, i.e. the password for the desired access level must already be set (...

  • Page 196

    4 Action and Reaction Routines 09.03 4.5 Routines for diagnostics functionality © Siemens AG, 2003. All rights reserved 4-196 SINUMERIK 840D/810D Configuring Syntax (PS) - 09.03 Edition Notes

  • Page 197

    09.03 5 Accessing Data on NCK / PLC / MMC 5.1 NCK variables – address structure 5 197,5 Accessing Data 197,on NCK / PLC / MMC 198,5.1 198, NCK variables 198, – address 198, structure 198,...............................................................5-198 198, 201,5.2 201, NCK varia...

  • Page 198

    5 Accessing Data on NCK / PLC / MMC 09.03 5.1 NCK variables – address structure The three variable types listed can be used with all dynamic display elements and computation or copy routines. The display elements represent the variables on the operator interface. 5.1 NCK variables – addre...

  • Page 199

    09.03 5 Accessing Data on NCK / PLC / MMC 5.1 NCK variables – address structure Unit The unit specifically defines the area. The variable address includes 5 bits for the unit, allowing units 1-31 to be addressed (value 0 is reserved). e.g.: area C, unit 1 => first channel area A, unit 3 ...

  • Page 200

    5 Accessing Data on NCK / PLC / MMC 09.03 5.1 NCK variables – address structure PA Protection areas RP Arithmetic parameters SE Setting data GUD Global user data LUD Local part program data M Machine Data The identifiers listed above are symbolic defines only and are replaced by values i...

  • Page 201

    09.03 5 Accessing Data on NCK / PLC / MMC 5.2 NCK variable - configuring 5.2 NCK variable - configuring NC variable definition OPI - btss_var.h Find the variable that you wish to use in document References: /LIS/, Lists Include-File btss_var.h. This list specifies the variable name, the bl...

  • Page 202

    5 Accessing Data on NCK / PLC / MMC 09.03 5.2 NCK variable - configuring BTSS_FLOAT 32 +/- 10 -037 .. +/- 10 +038 BTSS_DOUBLE 64 +/- 10 -307 .. +/- 10 +308 BTSS_STRING_1 .. 100 BTSS_STRING_<string length> 8* String length ASCII string of length "String length" (1-100) incl. &qu...

  • Page 203

    09.03 5 Accessing Data on NCK / PLC / MMC 5.2 NCK variable - configuring <Notepad number> NB_ROW <Offset> Row index = (contents from <Notepad number>) + <Offset> If the unit = 0 and the area = C, then Unit is set to the current channel; when area = B, it is set to the c...

  • Page 204

    5 Accessing Data on NCK / PLC / MMC 09.03 5.3 PLC variable – address structure 5.3 PLC variable – address structure Address structure for PLC variables The variable address for the PLC comprises 10 bytes, which uniquely define the variable within the PLC. 15 7 Syntax ID = Type= Number = ...

  • Page 205

    09.03 5 Accessing Data on NCK / PLC / MMC 5.3 PLC variable – address structure The identifiers listed above are symbolic defines only and are replaced by values in the real variable address. Sub-area DB number for area PLC_DB Block number for area PLC_DS Offset Offset in bits for area PLC_...

  • Page 206

    5 Accessing Data on NCK / PLC / MMC 09.03 5.4 PLC variable - configuring 5.4 PLC variable - configuring Standard PLC variable definitions for SINUMERIK 840D/FM-NC - plc_var.h Include file "plc_var.h" contains predefined symbolic PLC variable addresses for the standard PLC variables o...

  • Page 207

    09.03 5 Accessing Data on NCK / PLC / MMC 5.4 PLC variable - configuring #define P_PLC_N_S_batt_alarm PLC10, BTSS_S7_BOOL, \ DB_AREA_NC, \ (UWORD)(PLC_DB << 8),NC_DB_ALARM+7 #define P_PLC_N_S_luft_alarm PLC10, BTSS_S7_BOOL, \ DB_AREA_NC, \ (UWORD)(PLC_DB << 8), NC_DBX_ALARM+6 For mo...

  • Page 208

    5 Accessing Data on NCK / PLC / MMC 09.03 5.4 PLC variable - configuring Par1 Par2 Meaning 0 0 No modification of sub-area <Sub-area> PLC_SA Set sub-area with <Sub-area> <Notepad number> PLC_SA_NB Set sub-area with content from <notepad number> <Sub-area offset>...

  • Page 209

    09.03 5 Accessing Data on NCK / PLC / MMC 5.5 MMC-variable (notepad entry – address structure 5.5 MMC-variable (notepad entry – address structure Notepad entries MMC variables that can be used internally in the OP 030 and MMC 100/UOP are called "notepad" entries. A notepad is a ...

  • Page 210

    5 Accessing Data on NCK / PLC / MMC 09.03 5.6 MMC variable (notepad entry) - configuring © Siemens AG, 2003. All rights reserved 5-210 SINUMERIK 840D/810D Configuring Syntax (PS) - 09.03 Edition 5.6 MMC variable (notepad entry) - configuring Notepad entries are identified by P_NB in the conf...

  • Page 211

    09.03 6 MMC Variables 6.1 MMC variables for OP 030 6 211,6 MMC Variables 212,6.1 212, MMC variables 212, for OP 030............................................................................6-212 212, 212,6.1.1 212, 212,Variables 212, for alarms 212, and messages 212,.....................

  • Page 212

    6 MMC Variables 09.03 6.1 MMC variables for OP 030 6.1 MMC variables for OP 030 6.1.1 Variables for alarms and messages Description The following MMC variables can be accessed only via output fields (O_FIELD). MMC variable Par1 Par2/Par3 Format P_ALARM No meaning CON_STRING P_DG_ALARM Numb...

  • Page 213

    09.03 6 MMC Variables 6.1 MMC variables for OP 030 is used for this purpose so that you can scroll through the field content (attribute IO_EDITOR_SCROLL). IO_FIELD (340, X_IO, Y_IO_1+6*VD, /* ID, x, y */ N_IO, /* width */ BLACK, WHITE, /* foreground, background */ CS_ASIA_SMALL, /* charac...

  • Page 214

    6 MMC Variables 09.03 6.1 MMC variables for OP 030 Open list for the window in which the field with variable identifier P_DG_ALARM is used. The routine DG_INIT_ALARM must be called in this list. BEGIN_OPEN_LIST (OP_W_ALARM) AC_DG_INIT_ALARM (210, NB_ALM_VISU, NB_ALM_PAGE, NB_ALM_CNT, ...

  • Page 215

    09.03 6 MMC Variables 6.1 MMC variables for OP 030 Example In the example below, the column index is copied to a notepad: RC_COPY_DATA (420, /* COPY_DATA, ID */ KEY_F5, /* EVENT, */ P_GET_COL, /* MMC variable, */ 0, 0, 0, /* Parameter, */ P_NB, /* Variable, */ NB_COLUMN, /* no...

  • Page 216

    6 MMC Variables 09.03 6.1 MMC variables for OP 030 © Siemens AG, 2003. All rights reserved 6-216 SINUMERIK 840D/810D Configuring Syntax (PS) - 09.03 Edition Notes

  • Page 217

    09.03 7 Parameter Data Types 77 217,Parameter Data Types A ac_id ......................................................................................UWORD acc_class ...............................................................................UWORD acl_id.....................................

  • Page 218

    7 Parameter Data Types 09.03 cursor_txt_id...........................................................................ULONG cycle.......................................................................................WORD D d_index......................................................................

  • Page 219

    09.03 7 Parameter Data Types M mask ......................................................................................UWORD max_bl_len.............................................................................UWORD max_lines ....................................................................

  • Page 220

    7 Parameter Data Types 09.03 R r_acc_class, w_acc_class ......................................................UWORD rc_id .......................................................................................UWORD rcl_id .............................................................................

  • Page 221

    09.03 7 Parameter Data Types v_item_index ..........................................................................t_btss v_item_index_p1 ... v_item_index_p3 ....................................UWORD v_p1 ... v_p4, v2_p1 ... v2_p3, p1_l ... p3_l, p1_h ... p3_h....UWORD v_txt_1, v_txt_2 ...........

  • Page 222

    7 Parameter Data Types 09.03 © Siemens AG, 2003. All rights reserved 7-222 SINUMERIK 840D/810D Configuring Syntax (PS) - 09.03 Edition Notes

  • Page 223

    09.03 A Appendix AA 223,Appendix A.1 References General Documentation /BU/ SINUMERIK & SIMODRIVE, Automation Systems for Machine Tools Catalog NC 60 Order No.: E86060-K4460-A101-A9-7600 /IKPI/ Industrial Communication and Field Devices Catalog IK PI Order No.: E86060-K6710-A101-B2-...

  • Page 224

    A Appendix 09.03 User Documentation /AUK/ SINUMERIK 840D/810D (09.99 Edition) Short Guide AutoTurn Operation Order No.: 6FC5298-4AA30-0BP2 /AUP/ SINUMERIK 840D/810D (02.02 Edition) Operator's Guide AutoTurn Graphic Programming System Programming / Setup Order No.: 6FC5298-4AA40-0BP3 ...

  • Page 225

    09.03 A Appendix /CAD/ SINUMERIK 840D/840Di/810D (03.02 Edition) Operator's Guide CAD-Reader Order No.: (included in online help) /DA/ SINUMERIK 840D/840Di/810D (11.02 Edition) Diagnostics Guide Order No.: 6FC5298-6AA20-0BP3 /KAM/ SINUMERIK 840D/810D (04.01 Edition) Short Guide Ma...

  • Page 226

    A Appendix 09.03 Manufacturer/Service Documentation a) Lists /LIS/ SINUMERIK 840D/840Di/810D (11.02 Edition) SIMODRIVE 611D Lists Order No.: 6FC5297-6AB70-0BP3 b) Hardware /ASAL/ SIMODRIVE (10.03 Edition) Planning Guide General Information for Asynchronous Motors Order No.: 6...

  • Page 227

    09.03 A Appendix /PFK6/ SIMODRIVE (05.03 Edition) Planning Guide 1FK6 Three-Phase AC Servomotors Order No.: 6SN1197-0AD05-0BP0 /PFK7/ SIMODRIVE (01.03 Edition) Planning Guide 1FK7 Three-Phase AC Servomotors Order No.: 6SN1197-0AD06-0BP0 /PFS6/ SIMOVERT MASTERDRIVES (07.03 Editi...

  • Page 228

    A Appendix 09.03 /PJM/ SIMODRIVE (11.00 Edition) Planning Guide Motors Three-Phase AC Servo Motors for Feed and Main Spindle Drives Order No.: 6SN1197-0AA20-0BP4 /PJM2/ SIMODRIVE (07.03 Edition) Planning Guide Servomotors Three-Phase AC Motors for Feed and Main Spindle Drives Ord...

  • Page 229

    09.03 A Appendix c) Software /FB1/ SINUMERIK 840D/840Di/810D/FM-NC (09.03 Edition) Description of Functions Basic Machine (Part 1) (the various sections are listed below) Order No.: 6FC5297-6AC20-0BP3 A2 Various Interface Signals A3 Axis Monitoring, Protection Zones B1 Continuous Path Mode...

  • Page 230

    A Appendix 09.03 /FB3/ SINUMERIK 840D/840Di/810D (11.02 Edition) Description of Functions Special Functions (Part 3) (the various sections are listed below) Order No.: 6FC5297-6AC80-0BP2 F2 3-Axis to 5-Axis Transformation G1 Gantry Axes G3 Cycle Times K6 Contour Tunnel Monitoring M3 Coupled ...

  • Page 231

    09.03 A Appendix /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 DNC Plant/DNC Cell DN2 DNC IFC SINUMERIK, NC Data Transfer via Network /FBFA/ SINUMERIK 840D/840...

  • Page 232

    A Appendix 09.03 /FBR/ SINUMERIK 840D/810D (09.01 Edition) IT Solutions Description of Functions Computer Link (SinCOM) Order No.: 6FC5297-6AD60-0BP0 NFL Host Computer Interface NPL PLC/NCK Interface /FBSI/ SINUMERIK 840D/SIMODRIVE (07.02 Editio...

  • Page 233

    09.03 A Appendix /HBA/ SINUMERIK 840D/840Di/810D (03.02 Edition) Manual @Event Order No.: 6AU1900-0CL20-0BA0 /HBI/ SINUMERIK 840Di (09.03 Edition) Manual SINUMERIK 840Di Order No.: 6FC5297-6AE60-0BP2 /INC/ SINUMERIK 840D/840Di/810D (06.03 Edition) System Description Commissioning...

  • Page 234

    A Appendix 09.03 © Siemens AG, 2003. All rights reserved A-234 SINUMERIK 840D/810D Configuring Syntax (PS) – 09.03 Edition /S7S/ SIMATIC S7-300 (04.02 Edition) FM 353 Positioning Module for Stepper Drive Order together with configuring package /S7L/ SIMATIC S7-300 (04.02 Edition) ...

  • Page 235

    09.03 I Index II 235,Index I.1 Keyword index CLOSE_VERSION 193,.....................................4-193 A COL_TAB 66,.....................................................3-66 Color palett 66,...................................................3-66 Action element 33,.........................

  • Page 236

    I Index 09.03 L Dynamic circle 61,.............................................. 61,3-61 Dynamic circle, sector 63,.................................. 63,3-63 Dynamic display element 83,............................. 83,3-83 LABEL 50,.........................................................2-...

  • Page 237

    09.03 I Index © Siemens AG, 2003. All rights reserved SINUMERIK 840D/810D Configuring Syntax (PS) – 09.03 Edition I-237 PIXEL_DYN ................................................. 56,3-56 Polymarker 78,................................................... 78,3-78 Polymarker definition 72,......

  • Page 238

    I Index 09.03 © Siemens AG, 2003. All rights reserved I-238 SINUMERIK 840D/810D Configuring Syntax (PS) – 09.03 Edition

  • Page 239

    To Siemens AG Suggestions Corrections A&D MC BMS P.O. Box 3180 For Publication/Manual: 0,SINUMERIK 840D/810D D-91050 Erlangen, Germany Phone ++49-180-5050-222 [Hotline] Fax ++49-09131-98-2176 E-mail motioncontrol.docu@erlf.siemens.de) 0,Configuring Syntax 0, 0, 0,Manufacturer Docu...

  • Page 240

  • Page 241

    User DocumentationSINUMERIK840D/810DSINUMERIKOverview of SINUMERIK 840D/840Di/810D Documentation BrochureCatalog Ordering Info.NC 60 *)Description of Functions Drive Functions *)Description of Functions– Basic Machine *) – Extended Functions– Special Functions611D840D/810DSINUMERIK840D/840D...

  • Page 242

    © Siemens AG 2003Subject to change without prior notice Order No.: Only OnlineSiemens AG Automation and DrivesMotion Control Systems P. O. Box 3180, D – 91050 Erlangen Germany www.siemens.com

x