Siemens SINUMERIK 840D Operator's Manual page 171

Hide thumbs Also See for SINUMERIK 840D:
Table of Contents

Advertisement

09.01
Give softkey
designation
Result:
Source file
OEM_2
© Siemens AG, 2001. All rights reserved
SINUMERIK 840D/810D Configuring the OP 030 Operator Interface (FBO) – 09.01 Edition
1. In the "APP_WIN1.C" file, change the softkey designation in the softkey
object list:
SOFTKEY(200,0,KEY_F1,2,NOT_PRESSED)
SOFTKEY(200,T_SK1H,KEY_F1,2,NOT_PRESSED)
2. Assign a text in the relevant text file OEM_1.txt to the symbolic softkey text
name: e.g. T_SK1H "Go to Win2".
3. Initiate the text converter run, compile (everything), link
Application: OEM_2
APP_MENU.C
See APP_MENU.C from the OEM_1 application
APP_WIN1.C
#include "proj.h"
#include "mwl_app.h"
#include "OEM_2.h"
BEGIN_OBJECT_LIST (OB_WIN_1)
/* clearing and repainting window rectangle */
RECTANGLE (100,
BEGIN_X, BEGIN_Y,
WIDTH_M_INI, HEIGHT_M_INI,
FILLED,
W_FCOL,
0xff)
/* painting window header */
RECTANGLE (110, BEGIN_X, BEGIN_Y, WIDTH_M_INI, HEADER, FILLED,
W_HL_FCOL, 0xff)
/* printing window header text */
TEXT (120,
HEADER_X, HEADER_Y,
T_APP_WIN_1_HEADER,
CS_SMALL,
0,
W_HL_TCOL)
END_OBJECT_LIST (OB_WIN_1)
BEGIN_SOFTKEY_OBJECT_LIST (SOB_WIN_1)
/* horizontal softkeys */
SOFTKEY (200,
T_SK1H_WIN1,
KEY_F1, /* softkeycode */
2,
NOT_PRESSED)
SOFTKEY (210, 0, KEY_F2, 2, NOT_PRESSED)
SOFTKEY (220, 0, KEY_F3, 2, NOT_PRESSED)
SOFTKEY (230, 0, KEY_F4, 2, NOT_PRESSED)
SOFTKEY (240, 0, KEY_F5, 2, NOT_PRESSED)
SOFTKEY (250, 0, KEY_F6, 2, NOT_PRESSED)
SOFTKEY (260, 0, KEY_F7, 2, NOT_PRESSED)
SOFTKEY (270, 0, KEY_F8, 2, NOT_PRESSED)
/* vertical softkeys */
Introduction to Configuring (PSE)
in e.g.
/* id */
/* x-, y-position */
/* width, height of
rectangle */
/* filled with W_FCOL */
/* color of window */
/* style of border */
/* id */
/* x-, y-position */
/* textname */
/* character set */
/* no attributes */
/* header-text color */
/* id */
/* softkeytext */
/* softkeylines */
/* softkeystatus */
8 Examples
PSE/8-43

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810d

Table of Contents