EasyManuals Logo

Siemens SINUMERIK ONE MCP 2400.4c Function Manual

Siemens SINUMERIK ONE MCP 2400.4c
2050 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1291 background imageLoading...
Page #1291 background image
Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-97
Call example
Reading of three channel-specific machine data from channel 1, whose address
specifications are stored in DB120.
Select data with NC VAR selector and store in file DB120.VAR; then create file DB120.AWL:
Area Block Name Type No. Byte S7 Name
C[1] M MD20070:
AXCONF_MACHAX_USED[1]
char 20070 1 C1AxConfMachAxUsed1
C[1] M MD20070:
AXCONF_MACHAX_USED[2]
char 20070 1 C1AxConfMachAxUsed2
C[1] M MD20090:
SPIND_DEF_MASTER_SPIND
int 20090 1 C1SpindDefMasterSpind
S7 (ALIAS) names have been selected in order to:
Incorporate the channel designation into the name
and
Remove the characters [ ], which are not legal in a STEP 7 symbol.
Entry of the name in the S7 SYMBOL table (e.g., NCVAR for DB 120):
Symbol Operand Data type
NCVAR DB120 DB120
File DB120.AWL must be compiled and transferred to the PLC.
Parameterization of FB 2 with instance DB 110:
DATA_BLOCK DB 110 //Unassigned user DB, as
instance for FB 2
FB 2
BEGIN
END_DATA_BLOCK
Function FC "VariablenCall": VOID
U I 7.7; //Unassigned machine control panel key
S M 100.0; //Activate req.
U M 100.1; //NDR completed message
R M 100.0; //Terminate job
U I 7.6; //Manual error acknowledgment
U M 102.0; //Error pending
R M 100.0; //Terminate job
Call fb 2, db 110(
Req := M 100.0,
NumVar := 3, //Read 3 variables
Addr1 := NCVAR.C1AxConfMachAxUsed1,
Addr2 := NCVAR.C1AxConfMachAxUsed2,
Addr3 := NCVAR.C1SpindDefMasterSpind,
Error := M102.0,
NDR := M100.1,

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals