hit counter script

Reading (Rnp) And Writing (Wnp) System Or User Variables - Siemens SINUMERIK 828D Commissioning Manual

Hide thumbs Also See for SINUMERIK 828D:
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)
142
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
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents

Save PDF