Siemens SINUMERIK 840D sl Function Manual page 971

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

Advertisement

U
U
R
CALL FB5, DB111(
);
Writing the GUD variables: FB3 with instance DB112
GUD variable token from FB5, parameter: "VarToken" for writing with FB3, parameter "Addr1"
CALL FB3, DB112(
);
Call example 2
Read a GUD variable from channel 1:
● Name "GUD_STRING"
● Type: STRING[32]
Conversion to a 10 byte variable pointer.
Reading the GUD variables: FB5 with instance DB111
// Data block for GUD variable
DATA_BLOCK DB_GUDVAR
STRUCT
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
I 7.6;
M 102.0;
M 100.0;
Req
Area
Unit
Index1
Index2
CnvtToken
VarToken
Error
Done
State
RD
Req
NumVar
Addr1
Error
Done
State
SD1
GUDVarS : STRING[32] := 'GUD_STRING';
GUDVarSToken :
P3: Basic PLC program for SINUMERIK 840D sl
// Manual error acknowledgment
// Error pending
// Terminate job
:= M 100.0,
// Starting edge for reading
:= B#16#2,
// Channel variable
:= B#16#1,
// Channel 1
:= 0,
// No array index 1
:= 0,
// No array index 2
:= TRUE,
// Request: Conversion into 10-byte
token
:= "DB_GUDVAR".GUDVar1Token, // Address of the token
:= M 102.0,
:= M 100.1,
:= MW 104
:= P#DB99.DBX0.0 DINT 1
:= M 200.0,
:= 1,
:= "DB_GUDVAR".GUDVar1Token, // Token
:= M 102.0,
:= M 100.1,
:= MW 104
:= P#DB99.DBX0.0 DINT 1
// Assignment in symbol table
13.17 Block descriptions
// free memory area
// one GUD variable
// Name defined by user
971

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents