Fb7: Pi_Serv2 - Request Pi Service - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

);
Writing the GUD variables: FB3 with instance DB112
GUD variable token from FB5, parameter: "VarToken" for writing with FB3, parameter "Addr1"
CALL FB3, DB112(
);
13.17.6

FB7: PI_SERV2 - request PI service

Function
With the exception of a higher number of "WVar" parameters ("WVar11" - "WVar16"), function
block FB7 has the same functionality as function block FB4. It is recommended that function
block FB7 be used instead of function block FB4.
For a detailed description, refer to Chapter "FB4: PI_SERV - request PI service (Page 937)".
Declaration of the function
FUNCTION_BLOCK FB7
Var_INPUT
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Addr
Area
Unit
Index1
Index2
CnvtToken
VarToken
Error
Done
State
RD
Req
NumVar
Addr1
Error
Done
State
SD1
Req:
BOOL;
PIService:
ANY;
Unit:
INT;
Addr1:
ANY;
P3: Basic PLC program for SINUMERIK 840D sl
:= "DB_GUDVAR".GUDVarS,
:= B#16#2,
// Channel variable
:= B#16#1,
// Channel 1
:= 0,
// No array index
:= 0,
// No array index
:= TRUE,
// Request: Conversion into 10-byte
token
:= "DB_GUDVAR".GUDVarSToken, // Address of the token
:= M 102.0,
:= M 100.1,
:= MW 104
:= "DB_GUDVAR".string_of_GUD
:= M 200.0,
:= 1,
:= "DB_GUDVAR".GUDVarSToken, // Token
:= M 102.0,
:= M 100.1
:= MW 104
:= "DB_GUDVAR".new_name
13.17 Block descriptions
// one GUD variable
973

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents