EasyManuals Logo

Siemens MCP 398C Function Manual

Siemens MCP 398C
2184 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 #1427 background imageLoading...
Page #1427 background image
Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
153
BEGIN
END_DATA_BLOCK
DATE_BLOCK 112
//Unassigned user DB, as instance for FB 3
FB 3
BEGIN
END_DATA_BLOCK
//A user-defined channel variable from channel 1 must be read
//with conversion into a variable pointer to allow subsequent
//writing of a variable.
Function FC "VariablenCall" : VOID
U I 7.7;
//Unassigned machine control panel key
S M 100.0;
//Activate req.
U M 100.1;
//Done 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 5, DB 111 (
Req := M 100.0,
//Starting edge for reading
Addr := GUDVAR.GUDVar1,
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 := GUDVAR.GUDVar1T,
Error := M102.0,
Done := M100.1,
State := MW104,
RD := P#DB99.DBX0.0 DINT 1);
Following a successful FB5 call, FB3 can be used to write the returned address in the
"VarToken" parameter.
CALL FB 3, DB 112 (
Req := M 200.0,
//Starting edge for writing
NumVar := 1,
//Write 1 GUD variable
Addr1 := GUDVAR.GUDVar1T,
Error := M102.0,
Done := M100.1,
State := MW104,
SD1 := P#DB99.DBX0.0 DINT 1);

Table of Contents

Other manuals for Siemens MCP 398C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens MCP 398C and is the answer not in the manual?

Siemens MCP 398C Specifications

General IconGeneral
BrandSiemens
ModelMCP 398C
CategoryControl Systems
LanguageEnglish

Related product manuals