Siemens SINUMERIK 840DE sl Commissioning Manual page 1158

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

Advertisement

Programming commands
6.3 Functions
6.3.29
Reading (RNP) and writing (WNP) system or user variables
Description
The RNP (Read NC PLC) command can be used to read NC or PLC variables or machine
data.
Programming
Syntax:
Description:
Parameters:
Example
VAR2=RNP("$AA_IN[2]")
Description
The WNP (Write NC PLC) command can be used to write NC or PLC variables or machine
data.
NC/PLC variables are accessed anew every time the WNP function is executed, i.e., NC/PLC
access is always executed in a CHANGE method. It is advisable to use this option in cases
where a system or user variable changes value frequently. If an NC/PLC variable is to be
accessed only once, then it must be configured in a LOAD or UNLOAD method.
Programming
Syntax:
Description:
Parameters:
Example
WNP("DB20.DBB1",1)
172
System or user variable", value )
RNP ("
Reads NC or PLC variable or machine data
System or user varia‐
Name of NC or PLC variable
ble
Value
Value that is to be written to the system or user variable.
If the value is a String type, it must be written in double
quotation marks.
; Read NC variable
("System or user variable", value)
WNP
Writes NC or PLC variable or machine data
System or user variable
Value
; Write PLC variable
Name of NC or PLC variable
Value that is to be written to the system or user var‐
iable.
If the value is a String type, it must be written in dou‐
ble quotation marks.
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents