Siemens SINUMERIK 840D sl Commissioning Manual page 697

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Use
Syntax:
Description:
Parameters:
Example
PRESS(VS1)
VAR01 = 16 SHR 2
VAR02 = VAR02 SHR VAR04
END_PRESS
6.2
Methods
Overview
Various types of event (exit input field, actuate softkey) can initiate specific actions in dialogs
and dialog-dependent softkey menus (softkey menus that are called from a newly configured
dialog). These actions are configured in methods.
The following table shows the basic principle used to program a method:
Definition block
PRESS(HS1)
LM...
LS...
Var1.st = ...
Var2 = Var3 + Var4
...
EXIT
END_PRESS
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
value
increment
variable =
SHR
Shift Right
value
value to be shifted
increment
number of shift increments
; Result = 4
; Convert content of VAR02 to 32-bit unsigned
,
and shift content to right by number of bits
specified in VAR04. Then convert 32-bit value back
to format of variable VAR02.
Comment
;Method start identifier
;Functions
;Changing properties
;Calculation with variables
;Method end identifier
Programming commands
6.2 Methods
Chapter reference
See chapter "Functions"
see chapter "Softkey menu"
and chapter "Dialog elements"
See chapter "Defining variables"
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents