Siemens SINUMERIK 828D Function Manual page 971

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Any errors are displayed via the output parameters "Error" and "State".
Note
In order to read a double variable from the NCK without adapting the format, an ANY pointer
of the REAL 2 type must be specified in the target area for read data (e.g.: P#M100.0 REAL
2). If the basic program recognizes REAL 2 as the target type when reading a "double"
variable, the data is applied to the PLC data area as a 64-bit floating point number.
FB 5 can only write GUD variables if basic program parameter "NCKomm" has been set to
"TRUE" (in OB 100: FB 1, DB 7; see "FB 1: RUN_UP Basic program, start­up section [Page
925]").
Declaration of the function
FUNCTION_BLOCK FB 5
KNOW_HOW_PROTECT
VERSION : 3.0
VAR_INPUT
Req :
BOOL;
Addr:
ANY ;
Area
BYTE ;
Unit :
BYTE ;
Index1:
INT;
Index2:
INT;
CnvtToken:
BOOL;
VarToken
ANY ;
END_VAR
VAR_OUTPUT
Error :
BOOL;
Done :
BOOL;
State :
WORD ;
END_VAR
VAR_IN_OUT
RD:
ANY ;
END_VAR
BEGIN
END_FUNCTION_BLOCK
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
//Server name
//Variables name string
//Area: NCK = 0, channel = 2
//Field index 1
//Field index 2
//Conversion into 10-byte token
//Struct with 10 bytes for the variable token
P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
971

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents