Siemens SINUMERIK 840D sl Function Manual page 970

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
Conversion to a 10 byte variable pointer. See table in "Assignment of the data types" in Chapter
"FB2: GET - read NC variable (Page 922)"
Reading the GUD variables: FB5 with instance DB111
// Data block for GUD variable
DATA_BLOCK DB_GUDVAR
STRUCT
GUDVar1 : STRING[32] := 'GUDVAR1';
GUDVar1Token :
STRUCT
END_STRUCT;
END_STRUCT;
BEGIN
END_DATA_BLOCK
// Unassigned user DB, as instance for FB5
DATA_BLOCK DB111
BEGIN
END_DATA_BLOCK
// Unassigned user DB, as instance for FB3
DATE_BLOCK DB112
BEGIN
END_DATA_BLOCK
// Reading of a channel-specific GUD variable from channel 1, with conversion
to a variable pointer
Function FC "VariablenCall" : VOID
U
S
U
R
970
// Assignment in symbol table
SYNTAX_ID : BYTE ;
area_and_unit : BYTE ;
column : WORD;
line : WORD;
block type : BYTE ;
NO. OF LINES : BYTE ;
type : BYTE ;
length : BYTE ;
FB5
FB3
I 7.7;
// Unassigned machine control panel key
M 100.0;
// Activate req.
M 100.1;
// Done completed message
M 100.0;
// Terminate job
// Name is defined by user
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