P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
977
After a successful FB-5 call the writing can be done via the returned address of the FB 5 parameter ("VarToken")
with the help of FB3.
13.13.6
FB 7: PI_SERV2 PI-services
Function
A detailed description of the FB 7 is contained in the description of FB 4.
The FB is multi-instance-capable. The call is permitted only in cyclic program OB1. An assignment for all
parameters with Req = 0 is also permitted in OB 100.
The only difference to FB 4 is the number of WVar1 and subsequent parameters. These are defined in FB 7 from
WVar1 to WVar16 (FB 4 in the VAR_INPUT from WVar1 to WVar10). All the other parameters are identical to FB
4.
This PI server can be used for all PI services that have been implemented with FB 4. In addition, the PI services
listed below can only be executed with FB 7.
CALL FB 5, DB 111 (
Req
:= M 100.0,
//Starting edge for reading
Addr
:= DB_GUDVAR.GUDVarS,
Area
:= B#16#2,
//Channel variable
Unit
:= B#16#1,
//Channel 1
Index1
:= 0,
//No field index
Index2
:= 0,
//No field index
CnvtToken
:= TRUE,
//Conversion into 10-byte token
VarToken :=
DB_GUDVAR.GUDVarSToken,
Error
:= M 102.0,
Done
:= M 100.1,
State
:= MW 104
RD :=
DB_GUDVAR.string_of_GUD);
CALL FB 3, DB 112 (
Req
:= M 200.0,
NumVar
:= 1,
//Write 1 GUD variable
Addr1 :=
DB_GUDVAR.GUDVarSToken,
Error
:= M 102.0,
Done
:= M 100.1
State
:= MW 104
SD1
:= DB_GUDVAR.new_name);
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...