Siemens SINUMERIK 840D sl Function Manual page 967

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

Advertisement

Note
Error case
When reading variables from different channels or drive objects, or simultaneously from a
channel and a drive object, the following feedback message is output:
● "Error" == TRUE
● "State" == W#16#02
Note
To read a variable of the DOUBLE type from NC 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). If the basic
program recognizes REAL 2 as the target type when reading a variable of the DOUBLE type,
the data is applied to the PLC data area as a 64-bit floating-point number.
Declaration of the function
FUNCTION_BLOCK FB5
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR_IN_OUT
END_VAR
BEGIN
END_FUNCTION_BLOCK
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
KNOW_HOW_PROTECT
VERSION : 3.0
Req :
BOOL;
Addr:
ANY;
Area
BYTE ;
Unit :
BYTE ;
Index1:
INT;
Index2:
INT;
CnvtToken:
BOOL;
VarToken
ANY;
Error :
BOOL;
Done :
BOOL;
State :
WORD;
RD:
ANY;
P3: Basic PLC program for SINUMERIK 840D sl
//Server name
// Variable name
//Area: NCK = 0, channel = 2
// Array index 1
// Array index 2
// Conversion into 10-byte token
// Struct with 10 bytes for the variable token
13.17 Block descriptions
967

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents