P3: Basic PLC Program for SINUMERIK 840D sl
13.15 Programming tips with STEP 7
Basic Functions
1080
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Addr1 : ANY ;
//Observe predetermined order
Addr2 : ANY ;
Addr3 : ANY ;
Addr4 : ANY ;
END_VAR
VAR_TEMP
dbchr : WORD ;
Number: WORD ;
type : BYTE ;
Temp_addr : ANY ;
END_VAR
BEGIN
NETWORK
TITLE =
L WhichAny;
DEC 1;
L
P#10.0;
//10 bytes per ANY
*I;
LAR2;
L
P##Addr1;
+AR2;
//Add ANY start addresses
L
P##Temp_addr;
LAR1 ;
//Retrieve pointer from VAR_TEMP
L
DID [AR2,P#0.0];
//Transfer pointer value to VAR_TEM
T LD
[AR1,P#0.0];
L DID
[AR2,P#4.0];
T LD
[AR1,P#4.0];
L DIW
[AR2,P#8.0];
T LW
[AR1,P#8.0];
CALL FB 101, DB 100
(ANYPAR := #Temp_addr);
//ANYPAR is data type ANY
Code
Comment
Содержание 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 ...