Siemens SINUMERIK 840D sl Function Manual page 966

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
Parameters "Area", "Unit", "Index1", and "Index2": Additional information for addressing the
variables
When the parameter "CnvtToken" is activated, the user receives a token (variable pointer) for
the GUD variable to be read. Using this, the GUD variables can then be read or written via
FB2 and FB3 with parameter "Addr1" ... "Addr8" = "<Token>". Addressing by means of a token
is mandatory for writing GUD variables. For GUD variable arrays, the parameter "Line1" ...
"Line8" = "<array index>" must also be written.
To read a GUD variable of the DOUBLE type without adapting the format, an ANY pointer of
the REAL2 type must be specified in the target area. E.g. P#M100.0 REAL 2. The value of the
GUD variables of the DOUBLE type is then adopted in the PLC data area as a 64-bit floating
point number.
Completion of the read request
Read request successfully completed: Parameter "Done" == 1.
Read request completed with error:"Parameter "Error" == 1, error cause in parameter "State"
Prerequisites
● Release of the NC/PLC communication by OB100, FB1 parameter "NCKomm" = 1
● For the data block DB120 (data interface), the S7 Symbol Editor must be used to assign a
symbol (default: NCVAR) in the S7 symbol table of the S7 project. Via this symbol, the NC
variable is then specified in the FB2 parameters "Addr<x>", e.g. "ADDR1":= "NCVAR".<NC-
Variable>"
General conditions
● FB5 has multi-instance capability.
● Every call of FB5 must be assigned a separate instance DB from the user area.
● Reading of a GUD variable (FB5 call with Req = 1) is only permitted in the cyclic part of the
PLC basic program (OB1). If the job is not started (FB5 call with Req = 0), the parameters
can also be written in the start-up part of the PLC basic program (OB100). The job can then
be executed using the already written parameters in the cyclic part of the PLC basic program
(OB1) by calling FB5 with Req = 1.
● Only capital letters may be used for the names of GUD variables.
● Reading of a GUD variable generally extends over several PLC cycles.
● When channel-specific variables are read, only variables from exactly one channel may be
addressed via "Addr1" to "Addr8" if FB2 is called.
● When drive-specific variables are read, only variables from exactly one SERVO drive object
may be addressed via "Addr1" to "Addr8" if FB2 is called. The SERVO drive object must
be assigned to a machine axis of the NC. The line index corresponds to the logical drive
number.
● In a read job, only variables from the same area, channel, or drive object can be read.
966
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents