Siemens SINUMERIK Commissioning Manual page 440

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming
2.7 Functions
2.7.19
Read NC/PLC (RNP), Write NC/PLC (WNP)
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:
2-90
System or user variable", value
RNP ("
Reads NC or PLC variable or machine data
System or user
Name of NC or PLC variable
variable
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.
("System or user variable", value)
WNP
Writes NC or PLC variable or machine data
System or user
variable
Value
)
;
Read NC variable
Name of NC or PLC variable
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.
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents