Siemens SINUMERIK 840Di Function Manual page 1279

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

Output parameters
The output parameters in FB 1 provide the PLC user with information about the control
system configuration. These data can also be accessed in the cyclic program section.
There are two access options:
1. Direct access to the DB 7 data block (instance of the FB 1) in symbolic format (e.g.,
2. Assignment of a flag; during parameterization of the FB 1, the data element is assigned
840D declaration
Code
FUNCTION_BLOCK FB 1
VAR_INPUT
MCPNum:
MCP1In:
MCP1Out:
MCP1StatSend:
MCP1StatRec:
MCP1BusAdr:
MCP1Timeout:
MCP1Cycl:
MCP2In:
MCP2Out:
MCP2StatSend:
MCP2StatRec:
MCP2BusAdr:
MCP2Timeout:
MCP2Cycl:
PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
L gp_par.MaxChan; in this case, gp_par is the symbolic name of the DB 7).
to the relevant parameter (e.g., MaxChan:=MW 20) Information about the maximum
number of channels can then be polled in memory word 20 in the rest of the user
program.
Note
An additional SDB 210 must be generated via the STEP7 NetPro tool for the operator
components connected on the MPI interface.
The corresponding procedure is explained in the Installation and Start-up Guide. For
more information about the assignment of MCP and HHU parameters, see "MCP/HHU
configuration".
INT:= 1;
POINTER;
POINTER;
POINTER;
POINTER;
INT:= 6;
S5TIME:= S5T#700MS;
S5TIME:= S5T#200MS;
POINTER;
POINTER;
POINTER;
POINTER;
INT ;
S5TIME:= S5T#700MS;
S5TIME:= S5T#200MS;
Comment
//0: No MCP
//1: 1 MCP (default)
//2: 2 MCPs
//Start addr. input signals MCP 1
//Start addr. output signals MCP 1
//Status DW for sending MCP 1
//Status DW for receiving MCP 1
//Default
//Start addr. input signals MCP 2
//Start addr. output signals MCP 2
//Status DW for sending MCP 2
//Status DW for receiving MCP 2
Detailed Description
2.12 Block descriptions
2-85

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents