PLC Program
5.1
Structure of the PLC program
5.2
Example source files
© Siemens AG 2006 All Rights Reserved
SINUMERIK 840D sl Commissioning Manual CNC: ShopMill – 11/2006 Edition
The tool management and the basic PLC program (FB1, FC2, ...) must be
called in the OBs 1, 40 and 100.
For a description of the function blocks and the basic PLC program see:
References:
/FB1/, Description of basic machine functions,
P3, "Basic PLC program"
ShopMill supplies various source files for sample blocks. You can adapt and
compile these source files or you can use your own blocks.
Table 5-1
Example source files
Source
Mnemonics
TM_W_GR.
German
AWL
TM_WO_GR.
AWL
TM_W_UK.
English
AWL
TM_WO_UK.
AWL
The sample blocks are located in the toolbox under \ShopMill_Turn.
Note
Block
The indicated
FC 100
block numbers
are pro-
grammed in
absolute terms.
FB 110
DB 110
same as TM_W_GR.AWL and TM_WO_GR.AWL
5
Comment
Sample block for config-
uring tool management
The block is called in
OB100.
Sample block for data
transfer of tool manage-
ment. The block is
called in OB1.
Instance data block for
FB 110
5-27