P3: Basic PLC Program for SINUMERIK 840D sl
13.7 Interface structure
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
871
User program
The user PLC program merely needs to call the basic program block FC 10 with appropriate parameter settings
in the cyclic program section and set or reset the bit fields in DB2. All further necessary measures are
implemented by the basic program and HMI.
Figure 13-9 Acquisition and signaling of PLC events
Extensions of the PLC alarms via the block FC 10
The FB 1-parameter "ExtendAlMsg" helps in making a selection of the PLC alarm mechanism.
If "ExtendAlMsg:= FALSE" the earlier process of the FC10 with the DB2 is active as bit-field data block. The
known restrictions regarding the number of channels and axes are applicable.
On the other hand, in case of "ExtendAlMsg:= TRUE" the extension of the FC10 becomes active. The DB 2 and
DB 3 are created as usual. The user must set or reset the bits in DB 2. The parameter setting via message and
alarm and a parameter setting of the numeric value of the 2nd decade of the user alarms are contained in DB 5.
$/$50B6
$/$50B64
6)&
+0,23
3*
)HHGGLVDEOH
5HDGLQGLVDEOH
1&VWDUWGLVDEOH
&KDQQHO
&KDQQHOQ
$[LVVSLQGOH
$[LVVSLQGOHQ
)HHGUDWHVSLQG
OHGLVDEOH
0HVVDJH
DFTXLVLWLRQ
,QWHUUXSW
EXIIHU
0HVVDJHVHUYLFH
$FTXLVLWLRQ
RIJURXSVLJQDOV
IRUFKDQQHODQG
D[LV'%
*URXSVLJQDOV
GLVDEOHVLJQDOV
%LWILHOGV
&KDQJHVLJQDOV
8VHUDUHD