Supplementary Commands; Writing String In Opi Variable (Wrtpr) - Siemens Sinumerik 840D sl Programming Manual

Fundamentals
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Supplementary commands

15.2 Writing string in OPI variable (WRTPR)

Examples
Example 1: Output/delete message
Program code
N10 G91 G64 F100
N20 X1 Y1
N... X... Y...
N20 MSG ("Machining part 1")
N30 X... Y...
N... X... Y...
N400 X1 Y1
N410 MSG ("Machining part 2",1)
N420 X1 Y1
N... X... Y...
N900 MSG ()
Example 2: Message text with variable
Program code
N10 R12=$AA_IW [X]
N20 MSG ("Check position of X axis"<<R12<<)
...
N90 MSG ()
15.2
Writing string in OPI variable (WRTPR)
Using the WRTPR() function, you can write any character string from the part program into the
OPI variable progProtText.
Syntax
WRTPR(<character string>[,<execution>])
Meaning
WRTPR:
<character
string>:
<Execution>:
348
Comment
; Continuous path mode
; The message is first output with N30.
; continuous-path mode is retained.
; The message is output with N410.
; continuous-path mode is interrupted.
; Delete message.
Comment
; Actual position of the X axis in R12.
; Output message with variable R12.
; Clear message from N20.
Function to output a character string.
Any character string, which is written to the OPI variable progProtText.
Type:
STRING
Maximum length:
128 characters
Optional parameters to define the instant in time when the string is written.
Range of values: 0, 1
Programming Manual, 01/2015, 6FC5398-1BP40-5BA2
Fundamentals

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents