P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
946
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
13.13.4
FB 4: PI_SERV PI services
Function
FB PI_SERV can be used to start program-instance services in the NCK area.
A program section, which carries out a particular function (e.g. with tool management, search for empty location
in a magazine), is executed in the NCK by making a request via the PI service.
Every FB 4 call must be assigned an instance DB from the user area.
The specified service is referenced via the "PIService" parameter. The selected PI service is supplied via the
freely assignable additional input variables with varying data types (Addr1 to Addr4 for strings, WVar1 to WVar
10 for INTEGER or WORD variables).
A job is started when FB 4 is called by means of a positive edge change at control input Req. Successful
execution of the job is displayed by means of a logical "1" in status parameter "Done". Any errors are indicated by
Error and State.
The "PI" data block (DB16) contains internal descriptions of the possible PI services. A name must then be
assigned to this DB in the signal list. On calling the FB 4, "DB-Name.PI-Name" is transferred as the actual
parameter for "PIService".
The execution of the PI service extends over several PLC cycles (generally 1 to 2).
The block can be called up in cyclic mode only.
Declaration of the function
State :=
MW 12,
SD1 :=
P#M 4.0 REAL 1,
SD2 :=
P#M 24.0 REAL 1);
Note
Recommendation: Use the extended FB 7 in place of FB 4.
Note
FB 4 can start PI services only if the basic program parameter "NCKomm" has been set to
"1" (in OB 100: FB 1, DB 7). The call is permitted only in cyclic program OB1. An assignment
for all parameters with Req = 0 is also permitted in OB 100.
FUNCTION_BLOCK FB 4
VAR_INPUT
Req :
BOOL ;
PIService :
ANY ;
Unit :
INT ;
Addr1 :
ANY ;
Addr2 :
ANY ;
Addr3 :
ANY ;
Addr4 :
ANY ;
Содержание 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 ...