PLC Subroutines Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
7
Overview
1
The PLC subroutines consist of three project files:
● default_turning.ptp (sample application for turning machines)
● default_milling.ptp (sample application for milling machines)
● default_ManMachPlus_T.ptp (sample application for Manual Machine Plus)
With the sample applications, you can get a good understanding about how to create or call
a PLC subroutine. You can realize most machine functions by re-organizing the PLC
subroutines or modifying some must networks.
WARNING
Make sure that you perform a complete machine test to all subroutines used in your main
program, in order to verify that all the subroutines called by the main program function as
you desire. Failure to observe may cause personal injury or property damage.
System resource distribution
The system resources can be distributed into three parts:
● PLC system
– Inputs
I0.0 to I2.7 (24 inputs of the SINUMERIK 808D)
I3.0 to I8.7 (distributed 48 inputs)
– Outputs
Q0.0 to Q1.7 (16 inputs of the SINUMERIK 808D)
Q2.0 to Q5.7 (distributed 32 outputs)
– Memory
M0.0 to M255.7 (256 bytes)
– Non-volatile memory
DB1400.DBX0.0 to DB1400.DBX127.7 (128 bytes)
– PLC user alarms:
DB1600.DBX0.0 to DB1600.DBX15.7 (128 user alarms)
– Timer
T0 to T15 (100ms timer)
T16 to T63 (10ms timer)
– Counter
C0 to C63 (64 counters)
● NCK
– PLC machine data: MD14510, MD14512, MD 14514
– MD14510 machine data INT: DB4500.DBW0 to DB4500.DBW62 (32 words)
– MD14512 machine data hex: DB4500.DBB1000 to EDB4500.DBB1031 (32 bytes)
– MD14514 machine data real: DB4500.DBD2000 to DB4500.DBD2028 (8 Dword)