Professional Documents
Culture Documents
Machine Commissioning
Sinumerik 828D
Edition 2009.8
Training Manual
Commissioning Manual
Turning and Milling
Valid for
Controller:- Software:-
Sinumerik 828D 2.06.28
Contents
1 Brief description
Module Objective:-
Upon completion of this module you will know the Sinumerik 828D system and the components which
make up the system.
Module Description:-
The Sinumerik 828D system is made up of a variety of hardware components. This module gives a
graphical overview of those components and shows where each component is connected.
A brief description of the hardware components is also given.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B060
Contents:- B011
Section 2
System Overview Page 3
Section 3
828D/PPU Page 4
Section 5
Drive Components Page 10
Section 6
NX10 Module Page 14
Section 7
Sensor Modules Page 15
Section 9
Hand-held Units Page 20
MCP310PN
MCP483PN
USB
GSM/GPRS
USB modem
Compact
Flash
PN1 & PN2
Profinet
interfaces.
X140
X1 PN1 PN2 X135 RS232
interface Mini
HHU
X145 X140
Digital I/O
X125 X122, X132 & X142
Sinumerik 828D
X127 & PPU2xx.1 X122
X132
X142
}
X143
X100 X101 X102 X130 X130-Facxtory Ethernet
Hand-wheels
X100, X101 & X103
X127 Service
DriveCliq interfaces.
Ethernet
DMC20
DriveCliq
hub
Sinamics S120
Booksize drive
Modules.
Filter
SMC20/30 SMC20/30
NX10
Reactor
General information.
The controller is available in vertical or horizontal formats. The functionality of the two
variants is identical.
The PPU includes “Qwerty” and numerical keyboard inputs and shortcut keys to spe-
cific machine areas.
The 828D encompasses the HMI, NC, PLC and CU logical components.
PPU interfaces:-
X125 USB interface.
X127 Ethernet service port.
X145 Compact Flash (CF) interface.
RDY Green ready LED
NC Red fault LED
CF Amber CF card activity LED
828D interfaces:-
X1-24V DC supply.
X100 to X103 –Drive Cliq interface.
X130-Ethernet factory network.
X135-USB interface.
X140-RS232 interface
X122 & X132-Digital I/O for Sinamics
X142-Digital I/O for NCK
X143-Hand-wheels x 2
LED Indicators:-
FAULT-Red-fault present, contact Siemens.
SYNCH-Green-synchronisation OK
Rx/Tx-Yellow network activity LED (1 each for PN1, PN2 & X130 interfaces)
Link-Green network connection indicator (1 each for PN1, PN2 & X130 interfaces)
Horizontal variant
PPU2x1.1
Vertical variant:
PPU2x0.1
Part numbers
General Information.
The PPU type can be identified by the PPU number:-
PPU2xx.1
0 - Vertical
1 - Horizontal
6 - Standard
8 - Performance
Standard version
6FC5370-5AA00-0AA0 PPU261.1 without system software.
Performance version
6FC5370-7AA00-0AA0 PPU281.1 without system software.
Standard version
6FC5370-6AA00-0AA0 PPU260.1 without system software.
Performance version
6FC5370-8AA00-0AA0 PPU280.1 without system software.
Turning
6FC5831-1GY00-0YA0 Standard for PPU260/PPU261
6FC5830-1GY00-0YA0 Performance for PPU280/PPU281 (Max 8 axes with NX10)
Specifications
Part Number:-
6FC5303-0AF23-0AA1
Features:-
49 mechanical keys with LED
Indicators (16 user assignable)
Feed override control(16 positions)
Key switch
Emergency stop/Spindle override
optional Consumable items:-
6 x Pre-drilled holes for hard wired 6FC5247-0AF13-1AA0-Feed
user buttons override rotary switch incl. cap, button,
Connections for 9 user Inputs & 6 pointer & dials.
outputs. 6FC5247-0AF12-1AA0-Spindle
Connection via Profinet. override rotary switch incl. cap, button,
pointer & dials.
Interfaces:-
X10 24V DC supply
X20 Ethernet port 1
X21 Ethernet port 1
X30 Feed override switch input
X31 Spindle override switch input
X51 User input connections.
X52 User input connections.
X55 User input connections.
X53 User output connections.
X54 User output connections.
H1 LED POWER OK
H2 LED BUSSYNC
H3 LED BUSFAULT
S2 IP address selection switch.
Part Number:-
6FC5303-0AF23-1AA1
Features:-
49 membrane keys with LED
Indicators (16 user assignable)
Feed override control(16 positions)
Key switch
Emergency stop/Spindle override
optional Consumable items:-
6 x Pre-drilled holes for hard wired 6FC5247-0AF13-1AA0-Feed
user buttons override rotary switch incl. cap, button,
Connections for 9 user Inputs & 6 pointer & dials.
outputs. 6FC5247-0AF12-1AA0-Spindle
Connection via Profinet. override rotary switch incl. cap, button,
pointer & dials.
Interfaces:-
X10 24V DC supply
X20 Ethernet port 1
X21 Ethernet port 1
X30 Feed override switch input
X31 Spindle override switch input
X51 User input connections.
X52 User input connections.
X55 User input connections.
X53 User output connections.
X54 User output connections.
H1 LED POWER OK
H2 LED BUSSYNC
H3 LED BUSFAULT
S2 IP address selection switch.
Hardware information
Part Number:-
6FC5303-0AF22-0AA1
Features:-
50 mechanical keys with LED
indicators (17 user assign-
able)
Spindle & feed override con-
trol.
Key switch
Emergency stop button Consumable items:-
2 x Pre-drilled holes for hard 6FC5247-0AF13-1AA0-Feed override
wired user buttons rotary switch incl. cap, button, pointer & di-
Connection via Ethernet als.
2 x Hand-wheel connections 6FC5247-0AF12-1AA0-Spindle override ro-
tary switch incl. cap, button, pointer & dials.
Connections for 9 user
Inputs & 6 outputs.
Connection via Profinet
Interfaces:-
X10 24V DC supply
X20 Ethernet port 1
X21 Ethernet port 2
X30 Feed override switch input
X31 Spindle override switch input
X51 User input connections.
X52 User input connections.
X55 User input connections.
X53 User output connections.
X54 User output connections.
LED Indicators:-
H1 LED POWER OK LED
H2 LED BUSSYNC (Bus ok & synchronised)
H3 LED BUSFAULT (Bus fault)
S1 Hand-wheel type selection switch
S2 IP address selection switch
Hardware information
Part Number:-
6FC5303-0AF22-1AA1
Features:-
50 membrane keys with LED
indicators (17 user assign-
able)
Spindle & feed override con-
trol.
Key switch
Emergency stop button Consumable items:-
2 x Pre-drilled holes for hard 6FC5247-0AF13-1AA0-Feed override
wired user buttons rotary switch incl. cap, button, pointer & di-
Connection via Ethernet als.
2 x Hand-wheel connections 6FC5247-0AF12-1AA0-Spindle override ro-
tary switch incl. cap, button, pointer & dials.
Connections for 9 user
Inputs & 6 outputs.
Connection via Profinet
Interfaces:-
X10 24V DC supply
X20 Ethernet port 1
X21 Ethernet port 2
X30 Feed override switch input
X31 Spindle override switch input
X51 User input connections.
X52 User input connections.
X55 User input connections.
X53 User output connections.
X54 User output connections.
LED Indicators:-
H1 LED POWER OK LED
H2 LED BUSSYNC (Bus ok & synchronised)
H3 LED BUSFAULT (Bus fault)
S1 Hand-wheel type selection switch
S2 IP address selection switch
General.
Line modules are responsible for generating the DC link supply for the drive system.
They require 3-phase AC for the DC link and +24V DC for the electronic supply.
The DC link and 24V DC voltages are distributed to other drive modules in the
system via a bus bar system.
The modules are available in several variants of size and functionality.
Interfaces:-
SLM (5 & 10Kw variant)
X21-Enable, ready and fault signals
X22-Regeneration inhibit and fault reset signals.
X24-24V DC electronics supply.
U1, V1, W1-3-Phase supply.
X200, X201, X202-DriveCliq connections.
SLM (16Kw and above) & ALM (All variants)
X21-Enable & temperature sensor input.
X24-24V DC electronics supply.
U1, V1, W1-3-Phase supply.
X200, X201, X202-DriveCliq connections
Part Numbers-ALM
6SL3130-7TE21-6AA3 16Kw Internal cooling.
6SL3130-7TE23-6AA3 36Kw “ “
6SL3130-7TE25-5AA3 55Kw “ “
6SL3130-7TE28-0AA3 80Kw “ “
6SL3130-7TE31-2AA3 120Kw “ “
6SL3131-7TE21-6AA3 16Kw External cooling
6SL3131-7TE23-6AA3 36Kw “ “
6SL3131-7TE25-5AA3 55Kw “ “
6SL3131-7TE28-0AA3 80Kw “ “
6SL3131-7TE31-2AA3 120Kw “ “
Interfaces:-
MM –Single
X1-Output to Motor.
X21-Enable & temperature sensor input
X200, X201, X202-DriveCliq
connections.
MM –Double
X1 & X2-Output to Motors.
X21-Enable & temperature sensor input
(Motor 1)
X22-Enable & temperature sensor
input (Motor 2)
X200, X201, X202, X203-DriveCliq
Single MM Double MM
connections.
Part Numbers-
6SL3100-1AE31-0AB0 Braking Module 1.5Kw rated power
6SN1113-1AA00-0DA0 Braking Resistor 0.3Kw rated power
6SL3100-1BE31-0AA0 Braking Resistor 1.5Kw rated power
Part number:-6SL3100-1DE22-0AA0
Control Supply
Module
General.
General.
SMC10/SMC20
SMC10
For the evaluation of 2-pole resolvers & Multi-pole resolvers, including motor
temperature evaluation (KTY84-130)
Interfaces:-
X500 DriveCliq.
X520 Measuring system input (25 pin D-type connector)
X524 24V DC supply
Status LED’s
Part Number:-
6SL3055-0AA00-5AA0
SMC20
For the evaluation of the following measuring systems:-
Incremental sin/cos 1v pp
Absolute EnDat encoders
SSI with incremental signals Sin/Cos 1V pp
(Temperature evaluation-KTY84-130 can also be used)
Interfaces:-
X500 DriveCliq.
X520 Measuring system input (25 pin D-type connector)
X524 24V DC supply
Status LED’s
Part Number:-
6SL3055-0AA00-5BA1
SMC30
SMC30
Interfaces:-
X500 DriveCliq.
X520 TTL measuring system input (25 pin D-type connector)
X521 HTL/TTL measuring system input (Screw type connector)
X531 “ measuring system input (Screw type connector)
Status LED’s
X524 24V DC supply
Note-The extra measuring system interfaces offer more flexibility for
connecting the encoder, The device however can only handle a single
encoder.
Part Number:-
6SL3055-0AA00-5CA1
SME20 SME25
For the evaluation of the following measuring systems:-
Incremental sin/cos 1v pp with C and D tracks 5V supply-SME20
Absolute EnDat encoders 5V supply-SME25
Absolute SSI with incremental signals 5V supply Sin/Cos 1V pp-SME25
Interfaces:-
DriveCliq-Also supplies 24V DC.
Measuring system input
Part Number:-
6SL3055-0AA00-5EA0-SME20
6SL3055-0AA00-5HA0-SME25
SME20SME25
SME120SME125
For the evaluation of the following measuring systems:-
Incremental sin/cos 1v pp with C and D tracks 5V supply-SME120
Absolute EnDat encoders 5V supply-SME125
(Temperature evaluation-KTY84-130 can also be used)
Interfaces:-
DriveCliq-Also supplies 24V DC.
Measuring system input
Hall effect sensor input
Temperature sensor input
Part Number:-
6SL3055-0AA00-5JA0-SME120
6SL3055-0AA00-5KA0-SME25
SME120SME125
There are two variants, one of which is all digital while the other offers both digital and
analogue functionality.
In total 72 digital inputs and 48 digital outputs are available on each of the two
variants.
The analogue module has an additional two analogue inputs and two analogue out-
puts.
Interface Location:-
S1
X111
X222
X2 X2
Port 2 Port 1
X333
X1
The PP72/48 is part of the Profinet network and as such needs to be addressed so
that the system associates the various I/O with the correct function.
To introduce some compatibility the default start address for the inputs and outputs
should be defined as 0.
This is determined by the setting of switch S1 on the PP72/48 module. Each profinet
device has an IP address of 192.168.214.xxx . The S2 setting determines the last part
of the IP address (xxx)
For Profinet applications switch positions 9 and 10 always need to be set to on.
Switch S1 Binary
Position Value
1 1
2 2
3 4
4 8
5 16
6 32
7 64
8 128
To assign the default start address of 0, switch S1 should be set to 9 (S1.1 and 1.4
set to on). To release the I/O for use by the PP72/48 the relevant machine data
should be set to a value of –1
In this case this is machine data 12986[0]. By default this will have the value of 0.
Further PP72/48 modules will need to be addressed in a similar fashion.
Notes Ribbon cable connections. Below is an example of the pins and associated
I/O addresses. This is assuming the PP72/48 is addressed with input bytes 0, 1, & 2
and output bytes 0 & 1.
Consult the manufacturers documentation for actual addressing.
X111
Pin Signal Pin Signal Pin Signal
1 0V DC 19 I2.0 37 Q0.6
2 +24V DC Output 20 I2.1 38 Q0.7
3 I0.0 21 I2.2 39 Q1.0
4 I0.1 22 I2.3 40 Q1.1
5 I0.2 23 I2.4 41 Q1.2
6 I0.3 24 I2.5 42 Q1.3
7 I0.4 25 I2.6 43 Q1.4
8 I0.5 26 I2.7 44 Q1.5
9 I0.6 27 Not used 45 Q1.6
10 I0.7 28 Not used 46 Q1.7
11 I1.0 29 Not used 47 +24V DC Input
12 I1.1 30 Not used 48 +24V DC Input
13 I1.2 31 Q0.0 49 +24V DC Input
14 I1.3 32 Q0.1 50 +24V DC Input
15 I1.4 33 Q0.2
16 I1.5 34 Q0.3
17 I1.6 35 Q0.4
18 I1.7 36 Q0.5
X222 Notes
X333
Pin Signal Pin Signal Pin Signal
1 0V DC 19 I8.0 37 Q4.6
2 +24V DC Output 20 I8.1 38 Q4.7
3 I6.0 21 I8.2 39 Q5.0
4 I6.1 22 I8.3 40 Q5.1
5 I6.2 23 I8.4 41 Q5.2
6 I6.3 24 I8.5 42 Q5.3
7 I6.4 25 I8.6 43 Q5.4
8 I6.5 26 I8.7 44 Q5.5
9 I6.6 27 Not used 45 Q5.6
10 I6.7 28 Not used 46 Q5.7
11 I7.0 29 Not used 47 +24V DC Input
12 I7.1 30 Not used 48 +24V DC Input
13 I7.2 31 Q4.0 49 +24V DC Input
14 I7.3 32 Q4.1 50 +24V DC Input
15 I7.4 33 Q4.2
16 I7.5 34 Q4.3
17 I7.6 35 Q4.4
18 I7.7 36 Q4.5
The HHU offers manual axis movement via hand wheel or jog buttons.
A rotary switch is used to select the required axis, it is only possible to select one axis
at a time from the maximum of five axes.
Safety is provided via a 2 channel emergency stop button and a 3 position “Dead
mans” enable button.
The casing has magnets which are useful to attach the unit to any suitable metallic
surface, alternatively a holder can purchased for this purpose.
A terminating connector is available to facilitate the (Cold) removal of the HHU
without affecting the machine operation.
In addition to the +/- & Rapid jog buttons there are three user assignable buttons.
The signals from the HHU are split into three categories.
1. The emergency and enabling buttons should be used in the safety/enabling
circuit of the machine.
2. The jog and axis selection should be done via the user PLC program
3. The hand-wheel signals need to be taken to X143 of the PPU
Part numbers:-
6FX2007-1AD03 Mini HHU with coiled cable, 1.5m (4.92 ft) stretches to 3.5m (11.5 ft)
6FX2007-1AD13 Mini HHU with straight cable, 5m (16.4 ft)
6FX2006-1BG03 Non assembled connection kit with terminator.
6FX2006-1BG13 Non assembled connection kit without terminator.
6FX2006-1BG20 Pre assembled connection kit with terminator.
6FX2006-1BG25 Pre assembled connection kit without terminator.
6FX2006-1BG70 Holding cradle
1 Brief Description.
Module Objective:
Upon completion of this module you will be able to set the different protection levels via a password
or key switch.
You will also be able to change the protection levels of individual programmes.
Module Description:
The data of 828D controller is protected by seven protection levels. Four of which are set via inputs
and three by password.
This module explains the different protection levels, how to set these levels and how to protect
individual files.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B021
Contents: B021
Protection
Intended user:- Protected via:-
level
1 Manufacturer Password: SUNRISE
2 Service Password: EVENING
3 User Password: CUSTOMER
4 End user: Programmer, Setter Key-switch position 3
5 End user: Qualified operator Key-switch position 2
6 End user: Trained operator Key-switch position 1
7 End user: Untrained operator Key-switch position 0
The key switch is located to the bottom right of the MCP and has four positions.
Three colour coded keys are available, each of which allow a different access level.
This is from a standard Siemens machine control panel. It is possible that a
manufacturer may use a different method to set the interface signal.
No key required 0 7
Black 0&1 6-7
Green 0, 1 & 2 5-7
Orange 0, 1, 2 & 3 4-7
The signals from the key switch are automatically set via the MCP interface.
The higher the authorisation level the more data is available to the user.
Example:- The machine data area is not available unless protection level 4 (Key
position 3) or higher is released.
A dialogue box is opened, this box shows the current access level and allows a
password to be entered using the keyboard.
After typing the password it is confirmed by pressing the “OK” soft key.
The dialogue box disappears and the current access level is displayed above the left
hand horizontal soft-keys.
A dialogue box is opened, this box shows the current access level and asks if you
really want to delete the current password, if yes select the “OK” softkey to delete the
password
The dialogue box will then disappear. The access level will be now be determined by
the key switch position.
The password remains active after power on. If working on a machine the password
should always be set back to the level found on arrival.
The following dialogue box will be displayed. This allows a new password to be
entered and confirmed.
In this example the “Manufacturer” password is active, this allows the Manufacturer,
Service & User passwords to be changed.
Navigation of the dialogue box is achieved via the cursor and select keys,
confirmation is via the “OK” soft key.
In this example the “Manufacturer” password is active, this allows the Manufacturer,
Service & User passwords to be changed.
By highlighting the correct directory and opening it with the “Input” key we can see
the program “828D.MPF”. Ensure this is highlighted.
The properties of the file are found by paging right and selecting the properties
Soft-key.
A dialogue box allows four properties to be changed. In the following example, the
program:-
Can only be executed if the “Service” password or higher is active
Can only be written to (Edited) if the “Manufacturer” password or higher is active
Will only be listed if the key switch position 0 or higher is active
Can only be read if the key switch position 1 or higher is active
When the correct settings have been entered the “OK” soft key has to be selected.
1 Brief description
Module Objective:
Upon completion of this module you will be able to install the commissioning tools required to
commission and service a machine with the 828D controller.
Module description:
The machine with the 828D controller is commissioned using software obtained from the Toolbox
DVD which is supplied with each controller. The software needs to be installed on to a PG/PC before
the commissioning procedure commences.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B002
Contents:- B002
Section 2
Toolbox Installation
Page 3
Please bear in mind that the actual views may differ from PG/PC to PG/PC.
Installation Process.
Each controller is delivered with a Toolbox DVD. This Toolbox DVD contains a
number of files and folders.
One of these Files is an executable file named “Setup.exe”. The installation is started
by double clicking this file.
The installation process will now begin with a series of dialogue boxes which need to
be acknowledged.
It is possible that the installation process will display different messages, this could be
due to the detection of existing software installed on the PG/PC.
To reiterate the point made earlier, it is suggested that the software be installed on
dedicated hard disk, dual boot system or a VM ware partition.
Type in the path directly or locate the path via the “Directories” and “Drives” options.
Notes If a new non-existent directory is typed the system will create it for you.
The program will now be installed. When installation is complete the following
dialogue box will be displayed. Acknowledge this with the “Finish” button.
Licence agreement.
The 828D controller operates with the Sinamics drive system, therefore the
The program will display the following dialogue box, select finish to complete the
installation.
RCS Commander is not part of the Toolbox but is required for certain commissioning
procedures.
RCS Commander allows connection between the 828D controller and remote PG/PC’s.
The software incorporates VNC viewer which the user can view and change the
controller settings (Depending upon access rights set up on the controller).
A backup function is also available which is used to create an image of the system CF
card. This image can then be used to restore the system, in the event of a CF card
failure.
To install the RCS Commander software, locate the “Setup.exe” in the root of the DVD.
Start the installation by double clicking the file.
Allow a few moments for the following dialogue box to appear then select the “Next”
key:-
From the drop down menu choose the preferred destination. A new folder can be
Created via the “New Folder” button. Confirm the destination folder with the ok button
1 Brief description
Module objective:
Upon completion of this module you will be able to set the time and date for the system.
Module description:-
Before the date and time displays can be edited, the password for the “User” or higher must be
entered.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B025
Contents:- B025
The Date/Time screen is reached with the following soft key sequence:-
The time and date can now be checked and corrected if necessary.
Use the cursor keys to move between the data fields.
The format can be changed by highlighting the required box and using the “Select”
key
If the date or time is changed, each element has to be confirmed using the “Input” key.
Once the time & date are correct press the “OK” soft key.
1 Brief Description.
Module objective:
Upon completion of this module you will be able to locate the status LED's and determine the status
of the CNC controller.
You will also be able to locate the general connections and understand their functionality.
Module description:
The 828D PPU can be diagnosed using status LED’s. The status can be quickly assessed prior to
using more detailed diagnostic tools.
For the controller to function correctly the interfaces should be correctly connected, the location and
functionality of these interfaces is described in this module.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B010
Contents:- B010
RDY
NC LED status indicators, see table below.
CF
USB port for keyboard and memory
X125 devices.
Booting in
System
RDY PLC/Periphery fault Progress
healthy
(Alternating)
System healthy
NC Internal NCK error
(Flashes at 1Hz)
Internal/External CF
CF card access
(Flashes randomly)
Interface connectors:
X1 24V DC supply
X100 DriveCliq interface for line/motor modules
X101 DriveCliq interface for DMC modules
X102 DriveCliq interface for NX modules
X120 Profinet interface
X121 Profinet interface
X130 Ethernet-Factory network
X135 USB interface
X140 RS232 interface for modem only.
X122 Digital I/O for Sinamics
X132 Digital I/O for Sinamics
X142 Digital I/O for NC
X143 Interface for two Hand-wheels
T0 Analogue output measuring socket
T1 Analogue output measuring socket
T2 Analogue output measuring socket
M Electronic ground for analogue measuring sockets
LED Indicators:
1 Brief Description.
Module Objective:
Upon completion of this module you will be able to check the control for the correct licence and
activate options.
Module Description:
When a controller and options are purchased a licence key is issued. The licence key is unique to the
internal flashcard of the controller.
This module explains here the licence number can be checked and how to switch on a licensed
option.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B044
Contents:- B044
Information regarding the license and the CF card serial number is displayed.
The licence number is specific to the internal compact flash card serial number.
For this reason a copied CF card cannot be used without generating an error
message.
The licence key can be entered on this page. This is activated by an NCK reset using
the “Reset (po)” soft-key.
The control should arrive with documentation regarding the licence key and options.
This needs to be kept in a secure place.
The licence key should be saved at first commissioning and prior to attempting any
work where the NC data might be lost/reloaded.
The new folder appears in the chosen place. Select “OK” to save the licence key file
to this folder.
To check that the licence save was successful select the “Exp. Licence requirement”
soft-key again.
The file is automatically given a name by the system.
Highlight the licence key file and press the “OK” soft-key
The licence key should now appear in the licence key box.
To select an option use the cursor keys to highlight the desired option and the press
the “Select” key to activate or enter a number depending on the type of option being
activated.
A “Reset (po)” is required to complete the procedure.
1 Brief Description
Module Objective:
Upon completion of this module you will know to create archives using the Data Class system of the
828D controller and how to create and restore a system image.
Module Description:
The 828D controller operates using data which is separated into Data Classes. Data Classes allow
archives to be created which contain only the data from a specific area of the controller. This enables
upgrades etc to be carried out while leaving other non-related data in the controller untouched.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B003
Contents:- B003
Section 2
Data Classes Page 3
Section 3
Creating Archives Page 5
Section 4
Restoring Archives Page 9
Section 5
Save Data Function Page 12
Section 6
Restore Data Function Page 13
Section 7
Creating a System
Page 16
Image
Section 8
Restoring a System Page 18
Image
User - This data is user specific (Part programs, tool data, zero points etc). An
archive of the User type could be used to transfer data to an identical machine
cutting the same component (Offsets etc will need adjusting) or in the case of a soft-
ware update.
When looking at the machine data area of the controller it is possible to see which
machine data belong to which Data Class.
Use the following soft-keys to locate the axis machine data area of the controller.
The right hand column indicates the type of data class that the machine data belongs
to. This class will determine whether or not the machine data is included in a
particular archive.
It is also possible to select the Data Class of Data Blocks in the User PLC program.
When a Data Block is first created, the properties box is displayed.
The Data Class can be changed via the drop down menu. If the Data Block already
exists, the properties can be viewed by right clicking on the Data Block and selecting
properties.
Ensure that the option “Create series start-up” is selected and select “OK”
A number of choices are available regarding what to include in the archive you are
about to create.
Individual:-This archive will save only machine specific machine data such
Ball-screw compensations, reference point offsets etc.
User:-This archive will save user specific data such as part programs, tool & zero
offsets etc
All:- This selection will create an archive containing all the above
Components.
The type of archive depends upon what the archives intended use is.
Control Components:-
This is where the it must be decided which of the four main components of the con-
troller should be included in the archive file.
When all the selections have been made and the comments etc entered, the
“Generate archive” soft key needs to be pressed.
The destination of the file can be chosen, this can be on the controller or external
device such as a compact flash card or USB memory device.
Data saved to the “Archives\Manufact” folder is stored on the internal flashcard of the
controller. This method ensures that the data remains with the controller.
1 2
The start up menu should be displayed. Use the cursor key to select what action is
required. Example:-If an NC archive is to be restored then choose the option “NCK
default data”.
Press the input key to continue
Allow the control to fully boot. This is indicated by the permanently illuminated top
green LED and the flashing orange middle LED directly above the CF and USB
sockets.
Alarms will be present (Alarm numbers 4060 & 400006) which can be ignored.
Set the password to “service” or higher.
Use the following key combination to reach the area for reading in archives
The archive will now be read in, depending on the type of machine this will take
several minutes.
Various alarms and dialogue boxes will appear and disappear and the machine
control panel LED’s will flash which is normal
The “Save data” function is started by selecting the “Save data” soft key:-
The saved data can also be manually loaded. This is done by entering the service
menu on start up:-
Reboot the controller and wait for the following screen to be displayed,
immediately this screen appears press the keys indicated in the numerical order
shown.
1 2
Cursor to the “Reload saved user data” option and press the “Input” key.
Allow the procedure to continue, this could take about five minutes.
When the process is complete a message is displayed warning that the backup data
has been loaded.
This message can be cleared with the “Reset” key, however it should be noted that
the data that has been restored will be old data and may contain incorrect tool data
etc. The operator should be warned of this fact and be prepared to check the data
before operating the machine.
In the event of the data being automatically reloaded due to the dissipation of the
“Goldcap” capacitor., the same message will be displayed.
1 2
Enter a suitable name for the file, the “tgz” extension must remain.
The file will now be created, as the process continues the file size indicated in the
brackets will increase.
Message confirming the file was created and requesting removal of storage device
and power off/on of the controller.
A CF card/USB stick containing the system back up image is required along with
the replacement CF card of at least 2GB.
The blank CF card should be inserted into a PG/PC using a suitable adaptor.
The software package “RCS Commander” is required and a recovery file called
“minsys.img”. This file is installed as part of the toolbax and is found within the folder
named “Recoverysys” in the toolbax directory.
Remove the CF card and insert it into the rear CF card slot of the controller. Switch
the controller on and allow to boot to the following screen then select the “Input” key.
The data backup is now written to the internal card. Allow the process to finish
Switch off the controller, remove the front CF card/USB stick and the switch the
controller on.
Switch off the controller, remove the front CF card/USB stick and the switch the
controller on.
The password will require entering and then the archive(s) will have to be reloaded as
described in section 4.
The licence key is linked to the serial number of the internal CF card. It is because of
this that the licence key message is displayed.
A new licence key is required, the only method of getting a new licence key is via the
Siemens hotline.
In order for a new licence key to be issued, the numbers of the original faulty CF and
the replacement CF card are required.
On obtaining a licence key it has to be entered, this process is described in
Module B044.
The archives used to restore the controller will more than likely contain old data. the
data should be checked and the machine tested with this in mind.
1 Brief description
Module Objective:
Upon completion of this module you will know how to configure the machine control panel (MCP)
Module Description:
The 828D controller operates using one of two machine control panel variants.
The MCP483 is 483mm in length and is recommended for use with the to the horizontal variant of
828D controller.
The MCP310 is 310mm in length and is recommended for use with the vertical variant of the 828D
controller.
In order to function correctly the machine control panel has to be configured using switch settings and
machine data, this is described in this module along with various information regarding the interfaces.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B008
Contents:- B008
Section 2
Machine Control Panel Types Page 3
Section 3
MCP483 Front & Rear Layout Page 4
Section 4
MCP310 Front & Rear Layout Page 6
MCP483 Section 5
Input/Output Assignment table Page 8
MCP310 Section 6
Input/Output Assignment table Page 9
Section 7
MCP Configuration Page 10
Section 8
User I/O Assignment Page 11
SINUMERIK 828D
S1
B008
Section 3 MCP483 PN Button Layout
SINUMERIK 828D
JOG REP REF T1 T2 T3 X Y Z
7 th 8th 9th
MDA 10 100 T7 T8 T9
Axis Axis Axis
MCS
Auto 1000 10000 T10 T11 T12
WCS
Page 4
Blank for Blank for Single Cycle Cycle Spindle Spindle Feed Feed
Reset T13 T14 T15 — Rapid +
user user block Stop Start stop start Start Stop
Note:- Cycle stop, Feed stop & Spindle stop-signals are inverted i.e. Normally closed.
The two blanks can be removed to allow the user to add extra buttons/switches/lamps.
Notes
B008
Section 3 MCP483PN Rear View
SINUMERIK 828D
X10
X53
X54
X51
X52
X55 X20
S2 X21
X50
Page 5
Interface Description:- X51 Digital inputs For manufacturer lamps/switches
X5 Key-switch interface X52 Digital inputs “ “
X10 24V DC supply X53 Digital outputs “ “
X20 Port 1 Profinet connection in. X54 Digital outputs “ “
X21 Port 2 Profinet connection out. X55 Digital inputs “ “
Notes
B008
Section 4
B008
MCP310PN Button Layout
Notes
Spindle Spindle
JOG REP REF VAR T1 T2 T3 100 %
Dec. Inc. Blank for
spindle
override/
Teach Spindle Spindle Spindle E stop
MDA T13 1 T4 T5 T6
In right stop left
Page 6
Cycle Cycle WCS Feed Feed
1000 - Rapid +
Stop Start MCS Stop Start
Key Blank for Blank for Blank for Blank for Blank for Blank for
Switch user user user user user user
SINUMERIK 828D
Note:- Cycle stop, Feed stop & Spindle stop-signals are inverted i.e. Normally closed.
The six blanks can be removed to allow the user to add extra buttons/switches/lamps.
SINUMERIK 828D
X10
X53
Page 7
X30
X21
S2 X5
B008
Section 5 Machine Control Panel Description & Configuring
REPOS REF var. INC 10000 1000 INC 100 INC 10 INC 1 INC
IB113 INC
QB118 Reset
Feedrate override
IB 115 RESET Key- Key-
switch switch E D C B A
position 2 position 1 (16) (8) (4) (2) (1)
Direction keys
Rapid KT5 KT4 KT3 KT2 KT1
IB 116 + - traverse (X52.2) (X52.1) (X51.3) (X51.2) (X51.1)
Axis selection
IB 117 T16 KT6
(X52.3) 6 axis 5 axis 4 axis Z axis Y axis X axis
IB 120
IB 121
Spindle Override
IB 122 E D C B A
(16) (8) (4) (2) (1)
QB119 T1 T2 T3 T4 T5 T6 T7 T8
Switch S2 Binary
Position Value
1 1
2 2
3 4
4 8
5 16
6 32
7 64
8 128
1 8 9 to 17 6 to 11 4 on
2 7 18 to 26 12 to 17 1, 2 & 3 on
3 6 27 to 35 18 to 23 2 & 3 on
4 5 36 to 44 24 to 29 1 & 3 on
To assign the default start address of 112, switch S2 should be set to 64 (S1.7 set to
on). To release the I/O for use by the MCP the relevant machine data should be set to
a value of –1
In this case this is machine data 12986[6]. By default this will have the value of 112.
The machine control panel is now ready for use providing the interface signal have
been utilised within the user PLC program.
The 9 inputs and 6 outputs available on plugs X51 to X55 are designed for use with
switches/buttons and indicator lamps which can be installed in the blanked holes of
the MCP.
Below shows the I/O assignment of each individual plug.
All signals are based on a nominal +24Vdc supply from the MCP
Q119.0 Q119.3
1 1
Q119.1 Q119.4
2 2
Q119.2 Q119.5
3 3
M 0volts M 0volts
4 4
X53 X54
The outputs are capable of supplying 1.2 Watts per output, it is not permissible to
connect relays, valves or other inductive devices.
1 Brief description
Module Objective:-
Upon completion of this module you will understand how to create a PLC program and load it to the
controller.
Module description:
The programming tool PLC828 is used in the creation of a PLC program. This module
describes how to use this programming tool.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B026
Contents:- B026
Creating a Section2
PLC program Page 3
Loading a Section 3
PLC program Page 9
The blank project is called “Project1” by default. It is advisable that this is saved
under a different and appropriate name.
To save the project select “Save as” from the drop down menu.
The name of the project can be entered then saved.
The destination of the file can be changed to suit.
The larger window to the right (SIMATIC LAD) is where the PLC ladder logic is
inserted. It is only possible to write the program in ladder format.
By default the blank project contains two empty blocks:-
MAIN (OB1) is the Organisation Block (OB), calls to other blocks should be made
from here. This block runs once every PLC cycle.
SBR_0 (SBR0) Is a blank Subroutine (SUBR). Subroutines should be used for all
PLC logic.
Subroutines need to be called otherwise the code contained in them will not be
executed.
It makes sense to split the program into subroutines. For example, a subroutine could
be written which contains only the code for enabling the axes of a machine.
By right clicking on the SBR a suitable name can be entered to assist with fault
diagnosis.
The SBR is split in to networks in which the PLC code is entered. The network can be
given a title to help with identification. This is done by double clicking on the network
title. Further comments can be entered if desired. Select “OK” to confirm.
The selected operand will now be entered into the network. The operand then has to
be given the correct identifier.
Position the rectangle at the place where the next operand is to be inserted and then
select an operand in the same way as before.
When the SBR is complete it will need to be called in the “Main” blockOB1.
Providing that there are no errors in the program then the cross reference table will
be displayed.
Double clicking an element will automatically open the block where that element is
used
The “Symbolic Addressing” option described earlier also functions with the Cross
Reference table.
The correct network adapter needs to be selected, if the correct adapter is not
shown, double click the following icon:-
The PLC is still in stop, to restart it select the “run” button on the toolbar followed by
the “Yes” button on the dialogue box that appears.
The controller will carry out a warm restart, when this complete there should be no
errors relating to the PLC and the machine control panel should be operational
The functionality of the machine can now be tested with caution.
1 Brief description
Module Objective:-
Upon completion of this module you will understand the PLC828 Programming Tool instruction list.
Module Description:
The Sinumerik 828D operates using the in-built S7-200 PLC. Programming is performed with the
software package PLC828. This modules describes the instructions available to the user.
Module B026 should be consulted in conjunction with this module.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B019
Contents:- B019
Floating Point
Page 16
Number Functions
Or Functions Page 22
Program Control
Functions Page 25
Shift/Rotate
Page 28
Functions
Timer
Page 29
Functions
Libraries Page 32
Bit- This refers to a single element of logic e.g. I6.0, Q5.5, M100.6, V38040002.1
The Bit part is the number after the decimal point. The value of a bit is either 1 or 0
In this example I6.1, I6.2, I6.5 & I6.7 are equal to 1. Another term for being equal to 1
is that these bits are High
The bits equal to 0 are termed as being Low
Output Bytes (QB), Marker Bytes (MB) and Variable Bytes can also be used in the
same way.
A Word can only be addressed as 0 or an even number, (IW0, IW2, IW4, etc) odd
numbers are not
allowed.
As with the Byte format the numbering starts from the right
Example IW6
IB7 IB6
Bit no 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Value 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 1
In this example I6.1, I6.1, I6.4, I6.5, I6.6, I7.1, I7.2, I7.5, I7.7. are equal to 1.Output
Words (QW), Marker Words (MB) and Variable Words can also be used in the
same way.
Double Word– A Double Word is a collective of 32 bits of logic which encompasses
two consecutive Words (Four consecutive Bytes).
Example ID6
IB9 IB8 IB7 IB6
Bit no 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Value 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 1 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 1
Output Words (QD), Marker Words (MD) and Variable Words (VD) can also be used
in the same way.
The instructions are divided into different sections, these are expanded by clicking on
the “+” symbol.
Mouse pointer placed on the operand Right clicking on the operand gives the
reveals the type. chance to see a help file.
Selecting Hide will make the whole
instruction tree disappear.
The PLC program is built up of a series of blocks called subroutines. The blocks
contain networks, the user PLC is written into these networks.
The first instruction category in the list is Bit Logic. This group is the simplest of the
instructions.
The individual items in the Bit Logic area are referred to as Operands.
These operands need to be addressed, the type of address depends upon the
operand.
Terminology
Inputs:- Typically they are represent the physical state of the machine i.e. Limit
switches, buttons, pressure switches, door switches etc. and are identified by the
letter I e.g. I7.0. They can also appear in Byte, Word and Double Word formats.
Outputs:- Outputs are used to switch on relays, contactors, solenoids, lamps etc.
and are identified by the letter Q e.g. Q4.1. They can be used as coils or contacts,
they can also appear in Byte, Word and Double Word formats
Markers:- These are internal memory operands which can be used as contacts and
coils. They are represented by the letter M e.g. M20.0. They can also appear in Byte,
Word and Double Word formats
Contacts:
The most commonly used operands are “contacts”. Combinations of contacts are used
to achieve the end result of activating an output.
These contacts can be assigned to system/user variables, markers, physical outputs or
inputs and can be of the normally open or normally closed types.
When the operand is high (Equal to one) the contact will be closed and the logic will be
true.
When the logic is true the centre of the contact will be coloured.
In the terms of an electrical service the contact will be closed and current can flow.
In this situation when the status of the operand is high (Equal to one) the logic will be
false.
In terms of an electrical circuit, the contact will be open and current cannot flow
through to the next operand.
This is the opposite of the Normally Open operand.
I6.5= 0, however Q4.5 remains high I6.6 = 1, this has the effect of
because it is a “Set” output resetting Q4.5 to 0
Not operands.
The Not operand is used to reverse the state of the logic. i.e. A status of one will
Become a status of zero while a status of zero will become a status of one.
I6.2 = 1 but Q4.2 remains low because the not operand inverts the signal.
I6.2 = 0 but Q4.2 is high because the not operand inverts the signal.
The Positive Transition operand monitors the preceding operand status for a rising
edge (Signal state change from 0 to 1) on seeing a rising edge the logic will become
true for one scan of the PLC
When I6.3 changes from 0 to 1, Q4.3 will become high for one scan of the PLC cycle
The Negative Transition operand monitors the preceding operand status for a falling
edge (Signal state change from 1 to 0) on seeing a falling edge the logic will become
true for one scan of the PLC
When I6.3 changes from 1 to 0, Q4.4 will become high for one scan of the PLC cycle
A network cannot be left in an unfinished state, this leads to errors when the program
is compiled and prevents the program from being loaded.
An unfinished network.
If the program is in the development stages then a “No Operation” operand can be
inserted, this prevents the network from being operational and allows the program to
be compiled and loaded to the controller
Immediate Outputs.
These operands are effective immediately upon activation, they are not subject to the
PLC scan cycle time. They are identified by the letter “I”.
The following example is using the Compare Byte function to compare Input
bytes 6 & 7.
IB6 = 14 and IB7 = 15, they are IB6 = 14 and IB7 = 14, they are
not equal so the status is low. equal so the status is high.
Q5.0 = 0. Q5.0 = 1.
IB6 = 14 and IB7 = 14, they are IB6 = 15 and IB7 = 14, they are
equal so the status is low. Q5.1 not equal so the status is high.
= 1. Q5.1 = 1.
IB6 = 14 and IB7 = 15, IB6 is IB6 = 15 and IB7 = 14, IB6 is
less than IB7 so the status is greater than IB7 so the status is
low. Q5.2 = 0 high. Q5.2 = 0.
This would also be the case if
the values were equal
IB6 = 6 and IB7 = 7, IB6 is less IB6 = 15 and IB7 = 14, IB6 is
than IB7 so the status is false. greater than IB7 so the status is
Q5.4 = 0 high. Q5.4 = 1
IB6 = 15 and IB7 = 14, IB6 is IB6 = 6 and IB7 = 7, IB6 is less
greater than IB7 so the status is than IB7 so the status is high.
low. Q5.5 = 0 Q5.5 = 1
The same principle applies to the other number formats of Integer, Double Integer
and Real
Convert Functions
Convert functions are used to change one number format into another.
The functions available are:-
Double Integer to Real
Truncate
Binary Coded Decimal to Integer
Integer to Binary Coded Decimal
When the block is inserted into the network it needs to be parameterised. The input is
the number that is to be converted, the output is the result of the conversion.
The number format of the input and output is dependant on the type of conversion i.e.
word, double word, byte.
The source and destination of the input/output can be a System/User Variable,
Input, Output or Marker.
When I6.0 is true the integer value in MD0 will be converted into a real number and
the result placed into MD4.
It is also possible to extend the network via the “ENO” output to other operands. The
“ENO” output will be high if the convert function was successful.
SINUMERIK 828D Page 9 B019
Section 2
Convert Functions
Notes Truncate (Converts 32-bit real to 32 bit signed integer).
The Truncate Function takes a 32 bit Real number and coverts it into a 32 bit Double
Integer which is signed. In other words only the whole number portion of the real
number is transferred. The fraction is discarded.
Example:-
When input I6.1 is true the value of –1.1 in MD0 was transferred to MD8 as a value of
–1. Output Q4.5 was set high by the ENO output
Example:- When input I6.2 is true the value in MW0 (0000000001010100 = 54) will
be converted into an integer and the result placed in MW12. Output Q4.6 will become
high provided that the value in MW0 is within the ranges specified above and I6.2
remains true.
Example:- When input I6.3 is true the value in MW18 (96) will be converted into an
BCD and the result placed in MW16.(96 = 0000000010010110) Output Q4.6 will
become high provided that the value in MW0 is within the ranges specified above and
I6.3 remains high.
Below:-A counter selected in the user program but not yet parameterised.
A preset value is
entered here e.g 10
Below:-Network 19 count up counter C1. The count value can be seen to be equal to
six, this mean that the CU input (I6.4) has detected a rising edge on 6 occasions
since the reset (I6.4) was triggered.
Network 20 is an example of how the counter can be used in the PLC logic. In this
case the preset value (PV) of 10 has not been reached so the status is low.
Counter C1 with a
count value of 6.
C1 count value = 10
Below:-The reset input has been switched from low to high resulting in the count
value being reset to zero and the C1 operand becoming false. No further counting
can take place until the reset signal is set to low.
C1 count value = 0
Countdown counters
Countdown counters are used to monitor the rising edge of a signal, each time a
rising edge is detected on the CD input the count value will decrement by one.
When the count value reaches zero the counter operand becomes high.
Prior to using the countdown counter a value has to be entered into the Preset Value
PV input field.
This value has is then transferred into the counter when the LD input (I7.1) changes
from low to high.
The count value can be reloaded at any time by setting the LD input from low to high.
When the counter is first selected in the user program it needs to be given a unique
name (Available range C0 to C63).
Counter C2 with a
count value of 4.
Counter C2 with a
count value of 0.
C2 count value = 10
Countdown/count-up counters
Countdown/count-up counters are used to monitor the rising edge of two signals. One
signal (CU) increases the count value while the other signal (CD) decreases the
count value.
A preset value (PV) can be entered. The counter operand will become high if the
actual count value matches or is above this preset value. As soon as the value less
than the preset value the counter operand will become low.
The stored count value can be reset at any time by setting the reset input (R) to high
Below:- When the count value is more than the preset value the C3 operand will be
high. In this example the count value is 11 after the count-up input I7.3 was switched
from low to high.
The counter C3 has a
count value of 11
which is more than
the preset value.
Values to be added:
IN1 32 bit real number
IN2 32 bit real number added to IN1
Result:-
OUT 32 bit real number
Confirmation:-
ENO Bit goes high if operation successful
Below:- Input I9.0 is high and the ADD function has been performed. The result is
placed in MD108. The ENO output is high which sets output Q6.0 high, this indicates
that the ADD function was a success.
The SUBTRACT function is parameterised in the same way as the ADD function.
When the function runs the IN2 value will be subtracted from the IN1 value and the
result placed in OUT.
The Multiply function is parameterised in the same way as the ADD function.
When the function runs the IN1 and IN2 values will be multiplied together and the
result placed in OUT.
Below:- Example of the multiply function. MD100 x MD104 = MD112 (16 X 2 = 32)
Output Q6.2 is high
The Divide function is parameterised in the same way as the ADD function.
When the function runs the IN1 value will be divided by the IN2 value and the
result placed in OUT.
Result:-
OUT 16 bit integer or 32 bit double integer
Confirmation:-
ENO Bit goes high if the operation was successful.
Adding Integers
Subtracting Integers
Division of integers.
This function divides one word by another and converts the result to a double word.
The result is in two parts, the high word section of the double word represents the
whole number while the low word represents the remainder. The format is
hexadecimal.
In the example below the result of 100 ÷ 8 shows a value of 000C in hex format which
is equal to 12 as an integer. The remainder is 0004 which is equal to 4 as an integer.
Incrementing Byte
Incrementing Word
Decrementing Byte
Decrementing Word
Decrementing Byte
Interrupt Function
The interrupt function will freeze the processing of the PLC in all networks after the
network containing the interrupt. This is only effective in the Sub routine where the
interrupt is used .
Examples:-
With the interrupt active, the output Q8.1 is not set even
though the proceeding element, Input 11.2 is true.
Invert Functions
The invert function inverts the bit pattern of a byte, word or double word. When
viewed in the program status area this is not very clear.
It is better to look in the chart status area.
Invert Byte
Invert Word
To locate the chart status area select the following icon on the toolbar.
In the example below it can be seen that the status of the inputs is the exact opposite
of the output status
And Functions
The AND function compares two bytes, words or double words. If two corresponding
bits are high the relevant output bit will be set.
And Byte
And Word
OR Byte
OR Word
OR Double Word
Exclusive OR Byte
Exclusive OR Byte
Move Word
Immediate move functions as the name suggests, have an immediate effect on the
PLC. They are only available for use with bytes.
The Immediate Read function is used to read physical inputs, these can then be read
out to Markers, Variables, Inputs, Outputs, Accumulators and Load instructions.
The Immediate Write function writes only to an output byte from Markers, Variables,
Inputs, Outputs, Accumulators and Load instructions.
The Swap function takes the lower byte data and places it in the higher byte and vice
versa. The swap is initialised via the EN input. The swapping continues every PLC
cycle as long as the input is high. A positive edge instruction can be used to control
the swapping of data more effectively.
Swap Function
When the Conditional End Instruction is active, no further processing takes place.
Outputs, markers etc which were already high will remain so until influenced from
elsewhere in the program.
The example below shows the result when viewed in ladder status, a better idea of
this is seen in Chart Status.
Below:-The Chart Status shows that status of IB9 has been shifted left by four places
and the result placed in MB100.
Below:-The Chart Status shows that status of IB9 has been shifted left by four places
and the result placed in MB100.
Shift Right Byte.
The Shift Right Byte function operates in the same way as the Shift Left Byte, except
that the move is to the right.
Below:-Example of a Shift Right Byte by 2 places operation.
Shift Left:
Shift Right:
The Results:
Shift Left:
Shift Right:
The Results:
On-Delay Timer
When a timer is selected it needs to be given a name (To to T127) and a Preset
Time value (PT)
Below:- Input I7.0 is high and T1 has started to count. The T1 operand in network 8
is still low as the PT value of 50 has not been reached.
Below:-Input I7.0 has gone low and the T1 time value is reset to zero. The T1
operand also goes low as a result.
The Retentive On-Delay Timer works in the same way as the ON-Delay Timer
except that when the IN signal is removed the Timer operand remains high. The
Timer operand will need to be reset by the user which also resets the time value to
zero.
Below:- Retentive On-Delay timer T2 has been triggered by I7.1 and the time value
has passed the 10 second PT value (100 x 100ms = 10 seconds). The T2 operand is
high and has switched Q5.1 high.
The timer is reset using the Reset function which can be seen in network 8 below.
Off-Delay Timer
The Off-Delay Timer T3 shown below monitors the IN input. When this input is high,
the T3 operand is also high as seen in network 12.
When the timer detects a falling edge on the IN input the time value in T3 will count
up, when this value reaches the value of PT (75 x 100ms = 7.5 seconds) the T3 oper-
and will be set to zero.
The Off-Delay Timer T3 shown below monitors the IN input. When this input is high,
the T3 operand is also high as seen in network 12.
When the timer detects a falling edge on the IN input the time value in T3 will count
up, when this value reaches the value of PT (75 x 100ms = 7.5 seconds) the T3 oper-
The Timer has counted up to the PT value, as a result the T3 operand has been reset
to zero. The timer value is reset to zero when the IN input goes from low to high.
Libraries.
The Library contains system blocks for executing specific tasks. These
blocks consist of Interrupt Routines and Data Blocks.
Interrupt Routines.
Data Blocks
The S7-200 PLC works cyclically, at the beginning of the scan the status of the
inputs is copied to the Process Image Table (Inputs). This is then applied to the
user PLC logic. The Subroutines are processed in the order they appear in
OB1. This means that, for example an output set early in the scan might be
reset later in the scan. It is the command that appears later in the scan that
takes precedent.
When the scan is complete the results are transferred to the Process Image
Table (Outputs) which is then physically output to the machine periphery
devices.
The diagram below shows the position of the Interrupt Blocks INT_100 and
INT_101.
Their position enables them to be used to influence the state of the inputs and
outputs without making changes to the main user programme.
Beginning
Of
Scan
Subroutine
Subroutine
Subroutine
End
Of
Scan
The Rewire Function is located by right clicking inside a program block and
selecting the Rewire option.
A dialogue box will open. The program blocks where the rewire function is to
be used need to be selected.
The results of the operation can be seen in the “Rewire Results” area.
Rewire Results
1 Brief description.
Module Objective:
Upon completion of this module you will be know the Sinumerik 828D PLC interface structure and
use it to help write the PLC.
Module Description:
Information to and from the different system areas of the controller is handled by interfaces. This
module describes how the different areas operate together.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B034
Contents:- B034
Section 2
Interface Structure Overview Page 3
Section 3
Operand Description & Ranges Page 4
Section 4
Interface Description Page 4
SINUMERIK 828D
Double Word formats. e.g:-
Bit:-DB1600.DBX0.0
Byte:-DB1600.DBB0
Word:-DB1600DBW0
Double Word:-DB1600.DBD0
The interface is used to control/monitor the NC, HMI & Drive areas of the system via the user PLC
Interface Structure:-
PLC User NC
Interface
PLC Interface Structure Overview.
Page 3
PLC User
Program
Periphery Drives
Devices-
PP72/48, MCP.
HMI
B034
Section 3 PLC Interface Structure-Detailed Description
Notes Operand Description & Ranges.
Operand identifiers Description Area
DB Data DB1000 to DB7999
DB9000 to DB9036
DB9900 to DB9905
T Timers T128
T0 - T15 = 100ms
T16 - T127 = 10ms
C Counters C0 to C63
I Digital Inputs I0.0 to I256.3
Q Digital Outputs Q0.0 to Q256.3
M Marker M0.0 to M511.7
SM Special Marker SM0.0 to SM 0.6 (see below)
A ACCU AC0 to AC3 (Dword)
Byte DB3801.DBB0 8
Word DB3801.DBW2 16
Special Markers
The interface structure also consists of “Special Markers” (Flags) which are a set of
operands to be used at the convenience of the user throughout the PLC program
SM bits Description
SM0.1 Initial setting: first PLC cycle ’1’, following cycles ’0’
SM0.2 Buffered data lost - only valid in first PLC cycle (’0’ data ok, ’1’ data
lost)
SM0.3 Power On: first PLC cycle ’1’, following cycles ’0’
SM 0.5 1 s cycle (alternating ’0’ for 0.5 s, then ’1’ for 0.5 s
SM 0.6 PLC cycle (alternating one cycle ’0’, then one cycle ’1’)
General
Variables that can only be read are identified with [r]
Variables that can be read and written to are identified with [r/w]
IB 114 Key- Key- Spindle *Spindle Feed *Feed NC Start *NC Stop
switch switch start stop start stop
Direction keys
Rapid KT5 KT5 KT5 KT5 KT5
IB116 traverse
(X52.2) (X52.2) (X52.2) (X52.2) (X52.2)
+ - R14
R15 R13
Axis selection
T16 KT5
IB117 (X52.3) 6th axis 5th axis 4th axis Z axis Y axis X axis
QB115
Minus Plus Rapid
Direction Direction Traverse
QB116
QB119 T1 T2 T3 T4 T5 T6 T7 T8
Reading/Writing of NC data.
It is possible to read/write data too/from the NC &PLC. Variables are
available to facilitate this function.
Below:- Defining read or write, how many variables and setting the start
Signal.
120x3002
4001 PI-Index
4002
4003
4004 PI-Parameter 1
4006 PI-Parameter 2
4008 PI-Parameter 3
4010 PI-Parameter 4
4012 PI-Parameter 5
4014 PI-Parameter 6
4016 PI-Parameter 7
4018 PI-Parameter 8
4020 PI-Parameter 9
4022 PI-Parameter 10
5001
5002
DB1400 [r/w]
User area
0001
User area
0002
User area
0004
etc
User area
0126
User area
0127
etc
etc
etc
etc
etc
2001-2003
3001
3002
3003
Easy Extend
0003
1003
Alarm
3000
8 7 6 5 4 3 2 1
Alarm
3001
16 15 14 13 12 11 10 9
Alarm
3002
24 23 22 21 20 19 18 17
Alarm
3003
32 31 30 29 28 27 26 25
Service Task
4000
8 7 6 5 4 3 2 1
Service Task
4001
16 15 14 13 12 11 10 9
Service Task
4002
24 23 22 21 20 19 18 17
Service Task
4004
32 31 30 29 28 27 26 25
Service Task
5000
8 7 6 5 4 3 2 1
Service Task
5001
16 15 14 13 12 11 10 9
Service Task
5002
24 23 22 21 20 19 18 17
Service Task
5004
32 31 30 29 28 27 26 25
0002
0003
0006
0007
1000
1001
1002
5002
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
M7 M6 M5 M4 M3 M2 M1 M0
etc
1013
up to
1015
Transferred M functions
DB2500. M functions from NCK channel
NCK interface PLC
Transferred S functions
4016
4020
Transferred D functions
NCK Signals
DB2600. PLC interface NCK
0002
0003
0004
0005
0006
0014
0015 Modification counter, inch metric unit system.
etc
0019
Machine function
0003
Machine function
0003
Feed-rate override
0004
H G F E D C B A
0012
Do not Deactivate
0013 disable workpiece
tool counter
Activate Activate
0015 skip block skip block
9 8
0018
0016
0017
0018
0019
1002
1003
Geometry axis 2 (Axis 2 in WCS)
1004
Traversing keys Rapid Traversing Feedrate Activate handwheel
traverse key lock stop
+ - override 2 1
1006
1007
Geometry axis 3 (Axis 3 in WCS)
1008
Traversing keys Rapid Traversing Feedrate Activate handwheel
traverse key lock stop
+ - override 2 1
1010
1011
0004 NCK alarm Specific All axes All axes Stop Start
without NCK alarm stationary referenced Request request
processing is active
Protection
0007 zones no
longer
guaran-
teed
1002
1003
1007
Geometry axis 3 (Axis 3 in WCS)
1008
Motion Command Travel request Active Hand-wheel
1010
1011
4007
4008-4011 Reserved
0003
ASUP result
Machine function
0005
Continu- Inc var INC10000 INC1000 INC100 INC10 INC1
ous travel
0006
0007
Request Activation Request
0008 PLC axis signal by NC axis
byte signal
change
0009-
0011
Delay Modulo 2nd software limit switch Hardware limit switch
1000 reference Limit
point Reached
approach Plus Minus Plus Minus
1001-
1003
Signals to spindle
DB380x PLC interface NCK
Spindle override
2003
H G F E D C B A
3005
3006
3007
3008 Feedrate (Real number)
If = 0 value is taken from machine data POS_AX_VELO
3009
3010
3011
Signals to drive
4002
4003
0003
1001
Rotary Indexing Positioning Path axis Lubrication
1002 axis in axis in axis pulse
position position
1003
2003 Spindle in
position
3001
3002
Variable nact = nset nact < nx nact < nmin Md < Mdx Ramp up Temperature
4002 message completed pre-warning
function 1
Heat Sink Motor
5000
5001
ESR Accelera- Velocity Overlaid
5002 reaction tion warning movement
initiated warning threshold
threshold reached
reached
5005
5006
5007
5008
0001 Offset 1
0002 Offset 2
Up to Offset 1023
1023
1000
1004
1 Brief description
Module objective:
Upon completion of this module you will be able to configure and activate and set the attributes of
messages and alarms.
Module description:-
Alarms and messages are essential to inform operators, maintenance personnel etc of the state of
the machine.
Messages usually deal with non critical states while alarms often inhibit the machine from
functioning.
This module describes how the alarms and messages are activated. The effect an alarm has on the
system is shown as well as the method of resetting an alarm.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B031
Contents:- B031
Section 2
Alarm Configuration. Page 3
Section 5
Alarm log. Page 9
Below:-An example of how Alarm 700000 might be activated via input I6.5
The configuration machine data is used to determine how the controller reacts to that
particular alarm. Each alarm has a machine data assigned to it for this purpose.
Machine Data 14516 functionality:-
Machine Data 14516 is also used to determine whether the message/alarm appears
as on the alarm or a message screen (See page 8)
If neither bits 6 & 7 are used, then the message/alarm requires no acknowledgement
and will clear as soon as the activation bit becomes zero.
The alarm/message will appear on the message page.
If bits 6 & 7 are used then the alarm/message appears on the alarm page and an
acknowledgement is required.
The machine data is activated with a power off/on via the “Reset (po)” soft key.
It is possible to use the same alarm number for different alarms. This is done using
the variables in the “Variable for extended alarm function” column of the previous
Table.
Example:- The alarm number 700011 is to be used to signal that several axes are in
the parked position.
From the table we can see that the bit to activate this alarm is DB1600.DBX1.3 and
that the extended function variable is DB1600.DBD1044.
By selecting one of the following identifiers and entering it into the alarm text line,
when the alarm is then triggered the contents of DB1600.DBD1044 will appear in
place of the identifier of the alarm.
%d Decimal value
%x Hexadecimal
%b Binary
%o Octal
%u Unsigned integer
%f Floating point number
Use the cursor key to highlight the required alarm type and select “OK”
Up to 248 alarm numbers and text can now be typed in using the key board..
Existing alarms can also be edited here
The colour of the alarm text can be either black or red. This is selected at the right of
the text input field.
When an alarm text entry is complete press the “Input” key to confirm the entry.
The vertical soft-keys offer copy, paste, delete and search functionality.
The search function can be used to search for text or alarm numbers.
The option to search forward or backward is available as well as a case sensitive
option.
The cursor are used to navigate and the select key to toggle between the choices.
The search is started when the “OK” soft key is pressed. The “Continue search” soft
key can be used to identify any further matches.
The cursor and page up/down keys can also be used for finding a particular alarm.
When the search soft-key is selected further options are revealed which can be used
Notes Select the following keys to locate the screen where the active alarms and messages
are displayed.
Depending on the configuration, there are two areas where an active alarm might be
displayed.
The “Alarm list” screen displays serious alarms which result in the
machining process being halted.
This shows the time when the alarm occurred and when it was cleared
The “Display new” soft key is used to refresh the list and display any alarms that have
recently occurred.
The “Settings” soft key is used to refresh the list and display any alarms that have
recently occurred.
There are a number of options which can be selected by using the cursor and select
keys and confirmed with the “OK” soft key:-
Time controlled– The log will be saved at the interval entered in the Write interval
area (Max 32000 seconds)
This option carries similar risk to the “At every event” option and the same warning is
displayed
The file destination is displayed at the bottom of the screen for several moments after
pressing the “Store log” soft key
Use the following soft key sequence to locate the log file:-
1 Brief description
Module Objective:
Upon completion of this module you will be able to connect remotely to the system using the Remote
Diagnosis function and the RCS Commander software tool.
Module Description:
It may be a requirement for service personnel to remotely diagnose problems with the controller or
machine. This can be achieved by setting the Remote Diagnosis option on the controller and using
the RCS Commander software package installed on a PG/PC.
When connected, the remote user will see the exact screen that is displayed on the controller and will
be able to enter data to directly influence the system.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B032
Contents:- B032
Section 3
Configuring the controller Page 4
Section 4
RCS Commander Software Page 6
Page/cursor the entry “MC Information System RCS Host”. If a green tick does not
appear in the ”Set” column this can be activated via the select key providing there is
a green tick in the adjacent “Licensed” column.
If no tick is available in the “Licensed” column then the current licence is not sufficient
and advice must be sought from your local Siemens service centre.
If the option required setting it is not active until the controller has had a warm restart
via the “Reset (po)” soft key.
Notes Use the following soft key sequence to locate the Remote Diagnosis set up screens:-
To change the settings select the “Change” soft key. The screen is navigated and
options selected by using the cursor and select keys.
These options can be activated directly on the HMI or via the user PLC interface-
Selected by HMI
Specified by PLC
When the settings are correct select the “OK” soft key
Before proceeding ensure that an ethernet cable is connected to ethernet port X127 Notes
of the controller and the ethernet port of the PG/PC.
The software is available from the toolbox supplied with the controller. Start the soft
ware by double clicking the desktop icon.
A dialogue box appears offering the chance of a direct connection via a default
Setting which is for ethernet service port X127. The IP address of 192.168.215.1 is
the default setting for this port. X127 is a DHCP server port and issues IP addresses.
The Ethernet port on the external PG/PC should be set so that it automatically
acquires an IP address
Select the “Connect” button
After a short while the connection should be established. This is indicated in several
areas. The lower half of the RCS program will show various folders (CF-Card sys-
tem, NCK-File system) which are folders on the controller
Alternatively select “Start” from the “Remote control” drop down menu.
The screen of the controller will be displayed along with a dialogue box. Select the
“Yes” option.
If the “Allow remote operation” option was selected in the setup page it should now
be possible to access all areas of the system
The following keys are used to navigate the controller from the remote PC or USB
keyboard:-
F1 to F8 - Horizontal soft-keys
Shift & F1 to F8 - Vertical soft-keys
F9 - Page Back/Up
F10 - Menu Select
Shift & F9 - Page right
F12 - Help function
Escape - Alarm Cancel
Select - Space Bar
1 Brief Description.
Module Objective:
Upon completion of this module you will know the available PLC functions.
Module Description:
PLC Functions are tasks which are initiated from the user PLC program. These tasks include
selecting and running an ASUP, resetting the active password, saving data, exchanging data
between the NC & PLC. This modules explains these functions including the necessary interface
signals and shows examples.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B033
Contents:- B033
PI Services Section 2
(Program Invocation Page 3
Services)
Section 3
Reading Axis Positions
Page 7
0001 Asup 2
start
0002
0003
4001 PI-Index
4002
4003
4004 PI-Parameter 1
4006 PI-Parameter 2
4008 PI-Parameter 3
4010 PI-Parameter 4
4012 PI-Parameter 5
4014 PI-Parameter 6
4016 PI-Parameter 7
4018 PI-Parameter 8
4020 PI-Parameter 9
4022 PI-Parameter 10
5001
5002
A PLC ASUP is a program which can be selected and run from the user PLC,
independently of the normal NC operations.
Two ASUPS are available (PLCASUP1.SPF & PLCASUP2.SPF)
PI parameter.
The behaviour of the ASUP is affected by the setting of the relevant PI parameter.
LIFTFAST: When the ASUP is requested, fast retraction of the tool from the contour
takes place prior to the ASUP running.
BLSYNC: When the ASUP is requested, the current program block is processed prior
to the ASUP running.
When the service is started, the tool management performs a search for an empty
location in the ―Target magazine‖ for the tool set in the ―Source location‖. The PLC
then receives an order for tool reloading. The ―Target magazine‖ must be a real
Magazine.
The ASUP has to be created either offline and loaded to the controller or it can be
created directly on the controller. To create on the controller use the following
soft-key sequence
The file will open automatically to allow the program commands to be entered. In this
example a 3 second dwell is used.
A subroutine should be created in which to write the PLC code to call the ASUP.
The ASUP will appear on the ―Automatic‖ machine page and will automatically be
executed. When the ASUP has finished running it will be cleared from the screen, any
program that was present prior to the ASUP running will now re-appear.
Below is an example of how the axis position and distance to go values can be read
into a marker double word. (MD100)
Below:- Interface signals used for the reading and writing of NC data
Read:0
0000 Start
Write:1
Variable Index:
1000 1: Tool data; 2: Tool edge Number; 3: Zero offset; 4: Number of axes, 5: R parameter
7: Location type; 8: Location status; 9: Tool number at the location specified
1006
Error in Request
2000
job complete
2001
Valid
3000
variable
Access result
3001
0: No error; 1:Illegal access to object; 5: Invalid address; 10: Object does not exist.
3002
There are seven types of NC variable that can be read/written. These are
described in the following tables.
DB120x.DBB1000 1
DB120x.DBB1001 —
DB120x.DBW1004
DB120x.DBB1000 2
DB120x.DBB1001 —
DB120x.DBW1002 —
DB120x.DBW1004 —
DB120x.DBD1008 —
DB120x .DBB1000 2
DB120x .DBB1001 —
DB120x .DBW1004 —
DB120x .DBD1008 —
0: ACTFRAME =
1: IFRAME = Current settable work offset.
2: PFRAME = Current programmable work offset.
3: EXTFRAME = Current external work offset.
4: TOTFRAME = Current total work offset (ACTFRAME + EXTFRAME).
5: ACTBFRAME = Current total base frame.
6: SETFRAME = Current 1st system frame (PRESET, Scratching).
7: EXTSFRAME = Current 2nd system frame (PRESET, Scratching).
8: PARTFRAME = Current 3rd system frame (TCARR and PAROT with
Orientating tool carrier).
9: TOOLFRAME = Current 4th system frame (TAROT and TOFRAME).
10: MEASFRAME = Result frame for work piece and tool gauging.
11: WPFRAME = Current 5th system frame (Work piece reference points)
12: WPFRAME = Current 6th system frame (Cycles)
DB120x .DBB1000 4
DB120x .DBB1001 —
DB120x .DBW1002 —
DB120x .DBW1004 —
DB120x .DBD1008 —
DB120x .DBB1000 5
DB120x .DBB1001 —
DB120x .DBW1004 —
DB120x .DBB1000 7
DB120x .DBB1001 —
DB120x .DBD1008
DB120x .DBB1000 8
DB120x .DBB1001 —
DB120x .DBD1008
1. Disabled
2. Unassigned
4. Reserved for tool in buffer
8. Reserved for tool to be loaded
16. Assigned to the left half location
32. Assigned to the right half location
64. Assigned to the upper half location
128. Assigned to the lower half location
DB120x .DBB1000 9
DB120x .DBB1001 —
DB120x .DBD1008
1 = Error signal.
For the example it is better to have a value other than zero in the
selected R parameter. To locate the R Parameter screen use the following
key selection:
When the start signal is set to high, the value in R10 will be transferred to
DB1200.DBD3004
Below: Status of target variable prior to the start signal.
Start signal = 1
Error signal = 0
The value from R10 will now appear in DB1200.DBD3004. This value remains
there only as long as the start signal is present.
Value of 25 placed in
DB1200.DBD1008
Read/write signal = 1
Start signal = 1
The value from DB1200.DBD1008 will now appear in R10. This value remains
there when the start signal is removed.
It is possible to use Byte, Word, Double Word and floating point numbers to
be used as shown below:
To test the function, the value stored in R10 will be written into $A_DBB[4]
(The 4th byte of DB4900, i.e. DB4900.DBB4
The following program code has to be typed into the MDA area of the
Controller: $A_DBR[4]=R10
When the cycle start button is pressed the value be copied from
R10 to the destination variable.
This can be checked in the Chart Status of the PLC828 programming tool:
To read data the other way is a similar operation. In the MDA area type the
line: R11=$A_DBR[4]
This will copy the contents of $A_DBR[4] into R11
Notes:
1. The data structure in the data area is defined by the user.
2. Data reading by the NC can activate a pre-read stop (Internal STOPRE)
3. A maximum of 3 sets of data can be written by the NC in the same
program block
1 Brief description
Module Objective:-
Upon completion of this module you will be able to use the 828D PLC onboard diagnostics.
Module description:
The 828D controller has on board PLC diagnostic capabilities to aid the user with the fault finding
process. It is possible to check the status of inputs, outputs etc, there is also a ladder editor which
allows minor changes to be made to the PLC.
This module shows how to locate and the diagnostic screens and how to use the ladder editor.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B058
Contents:- B058
Section 2
PLC Diagnostics
Page 3
Section 3
Interrupt Routines
Page 23
By default the first page displayed is the “PLC-CPU” screen contains information re-
garding the PLC project and cycle time information.
Operating Status-See
Name: Taken from the PLC828D
project name.
Last Changed: Last time the
Operating Status:
The operating status can be in Run or Stop mode, this is indicated by in two places at
the top of the screen. It is possible to change the operating state via soft-keys.
After certain procedures the PLC may be left in STOP mode and require manually
starting. It my also be necessary to stop and start the PLC to clear PLC related faults.
PLC Run:-
PLC Stop:-
Later in the module there is detailed example of how to diagnose a problem with the
user PLC programme.
NC/PLC Status
The status of the operands/variables used within the PLC program can be checked via
the “PLC Status” soft key.
Bit- This refers to a single element of logic e.g. I6.0, Q5.5, M100.6, V38040002.1
The Bit part is the number after the decimal point. The value of a bit is either 1 or 0
In this example I6.1, I6.2, I6.5 & I6.7 are equal to 1. Another term for being equal to 1
is that these bits are High
The bits equal to 0 are termed as being Low
Output Bytes (QB), Marker Bytes (MB) and Variable Bytes can also be used in the
same way.
A Word can only be addressed as 0 or an even number, (IW0, IW2, IW4, etc) odd
numbers are not
allowed.
As with the Byte format the numbering starts from the right
Example IW6
IB7 IB6
Bit no 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Value 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 1
In this example I6.1, I6.1, I6.4, I6.5, I6.6, I7.1, I7.2, I7.5, I7.7. are equal to 1.Output
Words (QW), Marker Words (MB) and Variable Words can also be used in the
same way.
Double Word– A Double Word is a collection of 32 bits of logic which encompasses
two consecutive Words (Four consecutive Bytes).
Example ID6
IB9 IB8 IB7 IB6
Bit no 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Value 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 1 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 1
Output Words (QD), Marker Words (MD) and Variable Words (VD) can also be used
in the same way.
Data Blocks (DB’s):-
System Data Blocks are used for interfacing between different areas of the controller
and the User PLC Module B034 describes this in more detail.
The user can also create Data Blocks.
B = Binary
D = Decimal
H = Hexadecimal
F = Floating point number (Only for Double Words)
By using the “Operand +” and ”Operand -” soft keys it is possible to quickly locate a
different operand in a similar range.
The “Delete” soft key will delete all entries on the list
Individual entries can be edited/deleted by using the Insert, Delete and Cursor keys
found on the keyboard
For test purposes it may be necessary to manually change (Force) an operand. This is
achieved with the “Change” soft key
The operand in question has to be highlighted and the new value entered and
confirmed with the “OK” soft key
It is useful to have this function in the commissioning stages. Sometimes after data
loss, it may also be necessary to enter values into Data Blocks using this method. This
depends upon the machine manufacturer. Caution should be taken when attempting
to manually enter data as unwanted movements may occur.
It is not possible to force operands which are being addressed by the PLC program.
The values stored in counters and timers can also be viewed. This is best done in
decimal format.
Insert Variable.
The “Insert Variable” soft-key opens a list system variables which can be directly
selected for monitoring.
Filter:
The Filter is available to narrow down the number of variables on display. Cursor to
the filter tab, the list is revealed by selecting the “Insert” key
Search:
Ensure the “Search” tab is highlighted and type all or part of the variable name. The
search is automatic and as soon as the first letter is entered the search will begin.
When the desired variable is found and highlighted, select the “OK” soft-key. The
variable will then appear in the NC/PLC Status List.
[U1,1]
By selecting the “Operand +” & “Operand -” soft keys the variable can be change to
view different axes.
Further information about the variable can be displayed by selecting the “Display
Comments” and “Details” soft-key.
Save Screen: The list of operands that have been typed can be saved to a file.
Confirmation of the file save is displayed above the horizontal soft-keys for several
seconds.
Load Mask: Previously saved files can be loaded using this function.
A default list of operands is shown. The “Set address” soft key allows this list to be
configured.
The value entered in box will become the first number at the top of the list. Each of
the three columns can be changed this way . Navigation between the columns is done
with the cursor keys.
The PLC program can be seen by selecting the “Window 1 OB1” soft key.
This opens up OB1 of the user PLC. The status of the PLC is shown by selecting
“Program stat. ON” soft key. The operands which are true are highlighted in blue. It is
recommended that the status be switched when not in use to free more resources for
the system. The program status mode is indicated at the top of the screen:-
Both these soft keys can be changed to open up different blocks within the program.
By selecting the “Symbolic” option, the operands will be displayed with letter notation
taken from the symbols table.
The “Absolute” selection will display numerical notation.
The cursor keys can be used to position the orange box around an operand. This
allows further information about the operand. In some cases the full variable number is
not displayed, by pressing the “Select” key this information is displayed.
Further information can be displayed if the “Input” key is pressed
Default display
The display can be magnified via the “Zoom +” and “Zoom -” soft keys.
Example:-The display at
minimum magnification.
Example:-The display at
maximum magnification.
The search function allows operands etc to be located easily in the program.
By pressing the select key it is possible to choose between “Find operand”, “Go to” or
“Find subroutine command” instructions. Use the cursor keys to highlight the option
required.
The “Select” key is used to expand the menu and reveal the choices which are con-
firmed by the “Enter” key
After typing in the search target it is possible to choose between “Find all”, “Search
downwards” or “Search upwards”
It is also possible to search in the current program block or all program blocks.
When the search parameters are correct the “OK” key is selected to start the search.
The “Go to” option is used for searching for a network within the open program block
The “Find subroutine command” option is used for searching for a specific instruction
within the program.
A table will appear containing the symbol information for that particular network.
Due to space restrictions some operand names may be truncated. To view the
operand in full, use the cursor keys to select the operand and then the “Select” key
display.
The information boxes are cleared with the “Back” Soft key.
Symbol table.
The “Symbol table” soft key allows different symbol tables to be selected, the tables
can also be edited here.
A combination of these soft-keys and the “Insert” key is used to edit the
symbol table
The changes can be saved while the PLC is in RUN or STOP. A warning message is
displayed. Loading in RUN can be dangerous and damaging and should be carried out
by trained personnel
When the dialogue box clears the PLC has to be placed in RUN.
After approximately 30 seconds the Operating Status of the PLC should change to run
The new entry should be visible when the symbol table is viewed.
The ere are two types of symbol table available, the system symbol tables are not
available for editing. these are named “SYS_SYM0”,” SYS_SYM1” etc.
The “USER_SYM0”,”SYS_SYM1” tables etc, are for the user and can be created &
edited.
To insert a new symbol table select the “Insert symbol table” soft-key. A name for the
table needs to be entered and confirmed with the “OK” soft-key.
The “Delete” soft-key” is used to remove any unwanted symbol tables. The table is
deleted immediately the soft-key is pressed, no confirmation dialogue box is shown.
To rename the symbol table use the “Change symbol table” soft-key.
Cross Reference.
The “Cross ref.” function allows the user to see what operands are in use and in which
blocks they are used.
Operands can be located with the “Search” function or the cursor keys.
OR
OR
The cross reference list can be displayed with symbolic or absolute addresses.
The default is set to absolute as shown on the previous page.
When the “Symbolic addresses soft key is selected a text description of the operand
is displayed as seen below. This text description is taken from the symbols table. If no
symbol has been written for a particular operand the absolute address remains.
PLC in stop.
If the PLC goes into stop mode further information is available on the diagnostics
screen. To locate the diagnostics screen, use the following soft-key sequence.
Several alarms will occur, some are as a result of the PLC going into stop. The
important alarm is the one that indicates the cause of the PLC going into stop In this
case it is alarm “400010 Arithmetic error in user program: Type 1 SBR3 network 1”
The S7-200 PLC works cyclically, at the beginning of the scan the status of the inputs
is copied to the Process Image Table (Inputs).
This is then applied to the user PLC logic.
The Subroutines are processed in the order they appear in OB1.
This means that for example, an output set early in the scan might be reset later in the
scan. It is the command that appears later in the scan that takes precedent.
When the scan is complete the results are transferred to the Process Image Table
(Outputs) which is then physically output to the machine periphery devices.
The diagram below shows the position of the Interrupt Blocks INT_100 and INT_101.
Their position enables them to be used to influence the state of the inputs and outputs
without making changes to the main user programme.
Beginning
of
Scan
Subroutine
Subroutine
Subroutine
End
of
Scan
OR
The above list shows that the blocks are not loaded. To load the blocks select
the “Add” soft-key.
The option to add interrupt block INT100 is given. Details can be added to
identify the author and indicate the purpose of the block. Use the “OK” soft-key
to complete the action.
Use the mouse to reveal the list under the „Number of interrupt program” heading.
Select the number “101” with the mouse and press the “OK” soft-key.
To open a block first highlight it and then select the “Open” soft-key.
OR
To add logic to the block the “Line” in the network has to be highlighted and the
“Insert operation” soft-key selected.
Type the name of the operand in to the box, in this example I6.0 is used.
To add the next operation the next part of the network should be selected with the
cursor key and the “Insert Operation” soft-key
Example:-
I7.0 fails to change state when the +24V signal is applied/removed.
I6.0 is an unused input, remove wire from I7.0 and connect to I6.0
Use the interrupt INT_100 as shown so that I7.0 is the same state as I6.0.
The position of interrupt INT100 in the PLC scan means that the logic contained within
takes precedent over the PII table.
This solution can save time waiting for replacement hardware and unnecessary editing
of the PLC.
This function can also be used in the event of a hardware failure of the periphery
components.
Example:-
Physical output Q4.0 fails to change state in line with the PLC logic.
Q5.0 is an unused input, remove wire from Q4.0 and connect to Q5.0
Use the interrupt INT_100 as shown so that Q5.0 is always the same state as Q4.0.
The position of interrupt INT101 in the PLC scan means that the logic contained within
takes precedent over the logic in the standard program blocks and writes directly to
the PIQ table.
This solution can save time waiting for replacement hardware and unnecessary editing
of the PLC.
The changes can be saved while the PLC is in RUN or STOP. A warning message is
displayed. Loading in RUN can be dangerous and damaging and should be carried out
by trained personnel
1 Brief Description.
Module Objective:
Upon completion of this module you will be able to locate the different Machine/Setting data areas
and be able to carry out adjustments if required.
Module Description:
Machine & Setting data are used in many ways to influence the operation of a machine.
During commissioning some of the machine data is automatically set while other machine data has to
be set manually.
Over time, as the machine mechanically wears it may be necessary to edit certain machine data such
as compensation values.
This module shows the different machine data areas and other criteria such as how to activate the
machine data.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B041
Contents. B041
Section 3
Data Types. Page 4
Section 4
Data Identifiers Page 5
The display should now show the machine data area with soft-keys available to
switch between the different machine data areas.
The machine data which are available for viewing is dependant on the access/
password level. The above screen is with access level 3 in the General Machine data
area. Below shows the same screen with the access level 1 active.
Note:-
Machine Data is often referred to as “MD”
Setting Data is often referred to as “SD”
For further data the “Menu Extension” key must be selected. This allows access to
the Setting Data and also the Display Machine Data.
1st character
$ = System variable
2nd character
M = Machine data S = Setting data
3rd character
M = Display Machine Data
N = General Machine Data / Setting data
C = Channel Machine Data / Setting data
A = Axis Machine Data / Setting Data
D = Drive Machine Data
Some machine datas have “Indexes”. This is where the machine data number is
repeated but with a different number in square brackets (Index). The index can have
additional functions depending upon the machine data in question.
Examples:-
30240[0] $MA_ENC_TYPE = The type of encoder connected to the 1st measuring
system input.
30240[1] $MA_ENC_TYPE = The type of encoder connected to the 2nd measuring
system input.
When the correct MD has been found, a value can be entered. In this example we
are going to change Display MD 9900 from 0 to 1. This will change the MD/SD
description from system language to plain text.
On pressing the “Input” key the text of the machine data changes immediately (See
below)
The activation of the MD & SD varies depending on the type of data being altered.
Some data is active as soon as it is entered while some require a system power off/
on. The text in the column to the right of the data value indicates when the data is
activated.
Data Activation:-
1 Brief description
Module Objective:
Upon completion of this module you will be able to commission the 828D controller in the
configuration of a milling machine with a main spindle and four axes.
Module Description:
To ensure the stability of the system it is necessary to commission the controller in a particular
sequence.
Each controller is supplied with a software toolbox DVD containing the necessary software for
carrying out the commissioning sequence.
This sequence is described in the module which takes the form of a running example.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B068
Contents:- B068
Hardware/Software Section 2
Requirements Page 3
Section 3
Preparing the Controller
Page 4
Section 4
Connecting to the controller
Page 8
Section 7
Axis Enables
Page 23
Section 2
Additional Axis Page 24
The software tools are obtained fro the Toolbox CD which is delivered with each con-
troller. The installation of the toolbox is described in Module B002.
Before commissioning a machine it is essential to check that the hardware has been
installed to the required specification. These specifications are found in Module B006
The Start-up sequence is a series of steps designed to get the machine to a position
where the control, drives, periphery devices are all functioning.
More work will be required such as a finished user PLC program, drive optimisation
etc before the machine is fully operational
In order to load the default data the Setup menu has to be selected during boot up.
Apply power to the controller and wait until the screen below is displayed. Promptly
press the indicated soft-keys in the numerical order shown.
1 2
The setup menu will be displayed. Cursor to the “Factory settings” option and press
the “Input” key.
Confirm that this is the procedure to be carried out by selecting the “Yes” option.
It is possible that the system is not in the desired language, if this is the case the
language is easily changed.
Setting of the password is now necessary to enable machine data etc to be viewed
and altered.
Alarm number 120402 can be acknowledged with the “Alarm Cancel” key.
The configuration of the machine at present is a milling machine with a main spindle
and 3 axes (X, Y & Z). The 4th axis (A) needs to be added by changing machine
data. For further information about machine data please refer to Module B041
To activate the extra axis iensure that the option is available and activated. This is
checked in the licensing area of the controller as explained in
Module B044.
To check/activate the licence use the key sequence:-
In this example the possibility is available to set up to two extra axes. Only one is
required so enter a value of 1 in the “Set” column.
It is possible to make all the previous changes and activate with one NCK reset. It
makes more sense to follow a certain procedure and not make too many changes at
once.
RDY
NC LED status indicators, see table below.
CF
USB port for keyboard and memory
X125 devices.
Before uploading the programme a connection between the PC/PG and the controller
has to be made.
X127 has a fixed address of 192.168.215.1. Type this into the IP address area if
necessary.
The connection setting can be saved with a suitable name, do not change any other
settings. Select “Finish” to complete the task.
Ensure the correct ethernet cable is connected to the correct sockets. Run the Start-
up tool via the “Start-Up Tool” shortcut.
On completion of the NCK power on reset, the Start-up Tool will display an alarm
This can be cleared in the “Diagnosis” Area with the “Acknowledge HMI Alarm” soft-
key.
The servos that were recognised during the configuration can be seen in the start up
area of the controller.
In certain situations it is not possible for the topology to assign components correctly.
In this situation the assignment has to be done manually. The following
example is necessary because the Spindle Direct Measuring System (DMS) is
connected into another axis (A axis). The system needs to be configured so that it
associates this encoder with the spindle.
To continue select the “Drives” soft-key
Use the “Drive +” / “Drive -” soft-keys to locate the drive which has been incorrectly
assigned the DMS.
The drive required in this case is servo 6. The “Identify via LED” function can be used
to aid the identification of the correct module.
By paging down to the bottom it can be seen that this drive does in fact have two
encoders assigned to it.
Continue with the following sequence, a series of dialogue boxes will be temporarily
displayed.
Press the “Next” soft-key until the following message box appears.
As the configuration process is not finished select “No” to the dialogue box.
Paging to the bottom shows that only one encoder is assigned to this axis at the
moment.
A similar procedure is carried out to assign the encoder to the correct axis.
Use the cursor/select keys or mouse to select the second encoder check box and to
highlight the correct encoder from the list. Two encoders are available, one is already
assigned to encoder one so the spare one should be highlighted and confirmed with
the “Input” key followed by the sequence of soft-key presses.
When the above information box has closed select the “Next” soft-key
In this case the encoder is a rotary, incremental Sine/Cosine with 1024 pulses per
revolution.
The encoder position actual value needs to be inverted due to the mounting method
on the spindle motor.
Press the “Next” soft-key until the following message box appears.
Use the cursor/select keys to highlight the correct axis for the selected motor and
confirm with the “Input” key.
This particular training equipment also requires output Q4.0 to be set to enable the
“OFF3” enable signal.
The letter x is the axis identifier and has to be substituted for a valid axis number.
0 = 1st axis
1 = 2nd axis
2 = 3rd axis
3 = 4th axis
etc
etc
The 1st axis is X, this is the 1st NC axis, the other axes follow in the same pattern.
Example:- DB3802.DBX2.1 is the third axis and therefore this will be the
controller enable for the Z axis.
Once the signals for the axes are complete the changes can be downloaded to the
controller.
The switches should be activated and the motors tested in jog mode.
CHANNEL MD
20700 =0 NC start possible without referencing (Not recommended on actual
machines)
<AGM>
<OPTION_MD name = "$MN_USER_DATA_INT[0]" />
<DEVICE>
<list_id>1</list_id>
<name> "Activate axis 5" </name>
<SET_ACTIVE>
<data name = "drive/dc/p105[DO5]">1</data>
<data name = "$MC_AXCONF_MACHAX_USED[4]">5</data>
<data name = "drive/dc/p971[DO5]">1</data>
<control_reset resetnc=“true” />
</SET_ACTIVE>
<SET_INACTIVE>
<data name = "drive/dc/p105[DO5]">0</data>
<data name = "$MC_AXCONF_MACHAX_USED[4]">0</data>
<data name = "drive/dc/p971[DO5]">1</data>
<control_reset resetnc=“true” />
</SET_INACTIVE>
</DEVICE>
</AGM>
As can be seen in the example XML file, the drive parameter-“P105 Activate/
deactivate drive object” is responsible for activating/de-activating the drive part of the
system.
Drive parameter “P971Save drive object parameters” is set to 1 to save the drive
Parameters. When the data has been saved the parameter automatically reverts to a
value of 0.
To activate/de-activate the axis in the NC part of the system, channel machine data
“20070 $MC_AXCONF_MACHAX_USED” is used.
Activated:-
1 Brief description
Module Objective:-
Upon completion of his module you will be able to use the controller diagnostic functions to help solve
drive and axis faults.
Module Description:
In the event of a problem with the machine it may be necessary to check the status of an axis/drive.
The information obtained from these screens can be very useful to technical personnel and help
speed up the fault finding process.
Sinumerik 828D
Contents. B053
The screen should now show the status of various enable/monitoring signals via
indicators.
The signal is healthy, in the case of an enable, the signal is high. For a
monitoring signal there is no fault present.
The “Active axes” soft-key will only display axes that are currently
active. Axes disabled via machine data or parked axes will not be
displayed.
The “All axes” soft-key will display any axes that are currently
configured as active or inactive.
A great deal of information about a particular axis is available. This information is very
useful when a problem occurs on the machine.
Each axis is displayed separately, changing to another axis is done with the “Axis +”
and “Axis -” soft keys.
An alternative method of selecting the required axis is via the “Axis selection” soft key.
This the quickest method on a machine with many axes.
Useful information about the axis in question ranging from positional data to current
and torque readings is available.
Further information can be seen by using the page/cursor keys.
The drive diagnostics screen shows useful information regarding the motor and drive
states such as motor temperature, DC link voltage etc.
Further drive diagnostic information, more specifically Sinamics related, can be found
by selecting the “Drive system” soft key.
A typical page showing that the MSP1 drive has a status of 31. By using the cursor
keys and selecting the “Details” soft key, more information is displayed.
For a list of fault numbers and their meaning please consult the following table
1 Brief description
Module Objective:-
Upon completion of this module you will be able to synchronise/adjust the measuring system for the
Sinumerik 828D controller.
Module Description:-
All positioning axes require referencing in order for the controller to position them. The procedures for
the referencing of incremental and absolute encoders is described along with the most important
machine data.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B084
Content. B084
Section 5
Automatic Referencing Page 10
Axes equipped with incremental encoder require referencing each time that the NCK is
powered off/on or reset.
This usually entails traversing the axis to a switch which then initiates the referencing
Procedure. Certain machine data are available to influence this procedure and tailor it
to individual requirements.
Some axes have a second encoder fitted for positioning operations. It needs to be
checked which measuring system is active as that will be the one which requires
referencing.
To check which measuring system is active we must look at the “Axis diagnostics”
area.
Look for the “Active measuring system” signal. A value of 1 indicates that the 1st
measuring system is active, typically the motor encoder. A value of 2 indicates that the
2nd measuring circuit is active, typically a linear scale.
Some manufacturers may also switch between measuring systems. If there is
uncertainty about this please contact the manufacturer for information.
If it is uncertain whether an axis has an incremental or absolute encoder fitted, this can
be checked via axis machine data 30240.
To check the machine data use the following soft key sequence.
Machine data 30240[0] & [1] should be checked depending upon the active measuring
circuit.
If the active measuring circuit is number 1 then machine data 30240[0] is the one to
note. If the active measuring circuit is 2, the machine data 30240[1] should be noted.
Incremental encoders will have a value of 1.
Absolute encoders will have a value of 4.
Confirmation that the correct mode is selected can be seen at the top of the screen.
Each individual axis can be referenced separately. It is also possible to reference the
axes automatically. This usually set up by the machine builder and will be explained in
more detail later in the module.
To reference an individual axis select the correct axis via the machine control panel.
The axis must now be jogged in the direction of the reference switch. The direction is
set up via machine data. The user PLC should also prevent any movement in the
wrong direction as this would put the machine at risk of a collision.
The axis should now continue towards the reference switch. Some systems require that
the jog direction button is continually depressed throughout the reference cycle, it is
more common to find that the axis will continue to move even when the jog direction
button is released.
Velocity
Position
Cam switch 0 1
The control receives a reference axis command, the axis accelerates to the
feed-rate in machine data 34020 $MA_REFP_VELO_SEARCH_CAM then
searches for the reference switch input to become high.
Procedure:-
First it must be ascertained that the encoder is of the absolute type. This can be done
checking the motor data rating plate in the case of an integrated motor encoder. Also
checking with the supplier of the encoder might help determine the correct type.
Another method is to check the machine data.
Machine data 30240[0] & [1] should be checked depending upon the active measuring
circuit. (See page 4)
If the active measuring circuit is number 1 then machine data 30240[0] is the one to
note. If the active measuring circuit is 2, the machine data 30240[1] should be noted.
Incremental encoders will have a value of 1.
Absolute encoders will have a value of 4.
The procedure requires that the axis be moved to a know mechanical position e.g.
150mm. Locate machine data 34100 $MA_REFP_SET_POS and enter 150.
Check that machine data 34200 ECN_REFP_MODE is set to 0 This enables the control
to take over the value in machine data 34100 $MA_REFP_SET_POS.
Check that machine data 34210 ENC_REFP_STATE is set to 1. This is to enable
encoder calibration to take place.
Confirmation that the correct mode is selected can be seen at the top of the screen.
If a machine does not have reference switch cam it is possible to reference from the
zero mark by changing machine data- 34000 $MA_REFP_CAM_IS_ACTIVE (Default
value 1) A value of 0 will deactivate the cam. This is used for example on axes that
have only one reference mark along the entire traversing range and rotary axes that
have only one reference mark per revolution.
The direction that the axis approaches the reference switch can be changed by machine
data- 34010 $MA_REFP_CAM_DIR_IS_MINUS (Default value 0) The default value will
result in the reference point approach in a positive direction. To reverse the direction a
value of 1 has to be entered.
If the axis fails to reach the reference cam it is probably due to machine data-
34030 $MA_REFP_MAX_CAM_DIST (Default value 10000 mm) This is the maximum
distance to the reference cam.
The controller will issue alarm:-20000 Channel %1 axis %2 reference cam not reached.
When the reference switch is activated the axis reverses direction in search of the
reference marker. This search speed is determined by machine data-
34040 $MA_REFP_VELO_SEARCH_MARKER (Default value 300.0 mm/min).
The direction that the reference marker search direction is changed by machine data-
34050 $MA_REFP_SEARCH_MARKER_REVERSE (Default value 0) The default value
cause the axis to search for the reference cam in the opposite direction to the
direction specified in machine data 34010 $MA_REFP_CAM_DIR_IS_MINUS.
Entering a value of 1 in machine data 34050 will reverse the cam search direction.
If the axis fails to reach the reference marker it is probably due to machine data-
34060 $MA_REFP_MAX_MARKER_DIST (Default value 20 mm) This is the maximum
distance the axis can travel without finding the marker..
The controller will issue alarm:-20002 Channel %1 axis %2 zero mark missing.
When the marker is detected the axis will either stop or move to a position determined
by the values of two machine data (34080 & 34090 see below for further explanation)
The speed at which this position sought is determined by machine data-
34070 $MA_REFP_VELO_POS (Default value 10000.0 mm/min).
34080 $MA_REFP_MOVE_DIST (Default value -2.0 mm). Once the marker has been
detected it is advisable to move the axis away from the marker (Into the machining
area). This is achieved by putting a value in machine data 34080.
If the axis was asked to reference again while still on the marker this could result in the
axis going toward the end of the slide.
Usually the position display shows zero after an axis has been referenced. This can be
changed by machine data- 34100 $MA_REFP_SET_POS (Default value 0.0 mm)
The value entered in here will be displayed on the screen as soon as referencing is
complete. This is used when the reference position is not the mechanical zero of the
machine. The machine data does not result in the axis physically moving.
To initiate the automatic cycle the necessary interface bit has to be set. This is
variable DB3200.DBX1.0 which is channel related.
1 Brief description
Module Objective:-
Upon completion of this module you will be able to set up maintenance tasks using the Maintenance
Planner function.
Module Description:-
The 828D controller has a Maintenance Planner function which allows the user to set up
maintenance tasks. The tasks require an acknowledgement to confirm that the task has been
completed, they are based on timed intervals. Each task has to be parameterised to suit the
individual requirements of that task. This module explains how the tasks are created and parameter-
ised.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B020
Contents. B020
Section 4
XML Data Files Page 7
Section 5
PLC Interface Signals Page 9
Confirming/Resetting Section 6
Maintenance Tasks Page 10
To create the Data Blocks first open up the correct project and open the Data Block
folder
It is possible to change the Data Class of the Data Block and add the name of the
author if needed.
The box is closed by clicking the “OK” key.
Notes
To locate the maintenance Planner screen use the following key sequence.
The maintenance tasks are entered by selecting the “Change”, “Cursor”, “Insert” &
“OK” keys.
Example:-
In the following example, the interval is 168 hours. The 1st warning will appear after
144 hours and then every 3 hours until the alarm is triggered after 168 hours.
The interval for between the warning is obtained by the following:-
168 - 144
=3
8
To confirm the data, use the “Input” key, to navigate the dialogue boxes use the cursor
keys. When the data required fields have been entered press the “Enter” key.
The information entered earlier via the screen can be seen in the text of the file. It is
possible to use an XML editor for creating an offline file. The file should then be placed
in the correct folder.
Below is the “oem_maintenance_data.xml” file containing the data of the example
used in Section 3.
For a maintenance task to have an effect on the controller the interface signals have
to be used in the user PLC program
When a first warning or interval is reached a message must be generated to warn/
advise the operator of any action required.
Data Blocks and variables are available to assist with this.
When values are entered via the HMI they are transferred into DB9903 (Initial Data
Table) The system uses these values to determine when the interface bits need
setting.
DB9903 uses 4 data words per maintenance task.
The sequence continues up to the maximum number of tasks (Task 32, data words
248 to 254)
4 Reserved
6 Reserved
12 Reserved
14 Reserved
252 Reserved
254 Reserved
The following interface signals are used for signalling that an alarm or message has
been activated. Example: by checking that the remaining time is not zero then the
user PLC can be written to produce a message can be issued. If the remaining time is
zero then an alarm can be issued in the same way. The signal is active for one PLC
cycle.
DB1800 Warning/Alarm signals
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
3000 Alarm 8 Alarm 6 Alarm 5 Alarm 4 Alarm 3 Alarm 2 Alarm 1 Alarm 0
3001 Alarm 16 Alarm 15 Alarm 14 Alarm 13 Alarm 12 Alarm 11 Alarm 10 Alarm 9
It may be necessary to deactivate a task, switching the signal high will result in the
task being frozen.
Once the maintenance task is complete then it can be acknowledged by pressing the
“Maintenance Completed” soft-key.
This will reset the interval time back to the original and the interface bit will remain
high for one PLC cycle. This can be used by the user PLC to acknowledge user
alarms etc. It is possible to reset a maintenance task at ant time prior to the interval
Task can be changed or deleted at any time with the “Change task” &
“Delete task” soft-keys.
Setting the
alarm
Setting the
message
Resetting the
alarm
Resetting the
message
Deactivating the
service interval
1 Brief description
Module objective:
Upon completion of this module you will be able to set-up options using the Easy Extend function.
Module description:
Easy Extend is a function of the Sinumerik 828D which allows the manufacturer to setup machine
options. Typically a prototype machine would be commissioned with all available options. Each
option would then be assigned to an Easy Extend device.
When a requirement for an option arises, the Easy Extend device is easily enabled and activated via
user friendly screens.
It is also possible to protect each option via a password.
The function relies upon xml scripts and User PLC logic .
This module shows working examples of how the Easy Extend function can be used, including
descriptions of the various xml script instructions.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B009
Contents:- B009
Page 4
User PLC Requirements. Section 3
Page 8
Creating XML scripts. Section 4
Page 12
Examples of XML Scripts. Section 6
Page 22
Addressing of Variables. Section 8
Page 25
General Tag Descriptions. Section 9
The device may be an additional axis or simply a screen that allows the operator to
enter or edit data.
Easy Extend allows each device to be enabled and activated through user friendly
customised screens.
The OEM must ensure that the user PLC logic is available and has been tested for
each device.
The PLC logic is responsible for the handling of the device interface
signals between the HMI and the user PLC.
It is also used when enabling of the device is to be password protected.
Device enabling can also be achieved via user plc machine data.
The xml script files should also be fully tested before machine dispatch. The xml files
contain the instructions that are required to enable/disable/activate/deactivate a
device.
Extended Mark-up Language (xml) is used as the script language.
This offers features such as:-
It is possible to set up some very complex operations using the xml scripts. This
module is aimed at giving confidence to inexperienced users who can then go on and
develop their own skills. The course CD provides examples of some of these complex
script files which can be used as a reference.
As always, before embarking upon tasks of this nature it is always a good idea to save
the original status of the machine use the archiving functionality.
The DB9905 now appear in the Data Block folder of the project.
The data block now has to be populated with data. In the example below a bit has
been designated for each of the sixteen devices. (Up to 64 devices can be addressed
in this way) These bits will be used later in the user plc programme and the XML files.
A data block for the password entry should also be created. An example of this is seen
below. The user PLC programme will be used to compare the entered and assigned
values and providing they match, the device will be enabled.
The properties of the new subroutine can be changed, including the name and
number, a password can also be set.
Every tag needs to be opened before any script is written. When the script is complete
the tag has to be closed.
Examples:-
Open Tag <name of tag>
Enter script in here
Close Tag </name of tag>
The agm tag is the root element of the agm.xml. All other tags are written inside this
tag.
Creation of the xml file can be done in several ways depending on personal choice.
To create directly on the controller it is necessary to locate the system data area. Use
the following key selection in order to do this:-
The xml files can also be created remotely and then saved to the controller with the
RCS Commander software.
When the software is running and connected, the lower half of the programme shows
the controller contents. Locate the “dvm” folder as seen below.
The top half of shows the files on the host computer. Locate the required file and copy
it to the controller using the standard “Copy/paste” function.
The entries made so far in the agm.xml file are explained below:-
<!--Password Example--> Any text written after the exclamation mark is ignored.
<!Data blocks DB9000 9001& DB9905 are required in the user plc-->
When used in conjunction with the previously written PLC it will be possible to see the
device in the Easy Extend area.
The option is enabled by the “Enable function” soft-key. Enter the password
determined earlier via the PLC program, in this example the password is 1111.
By looking at the PLC in status mode it can be seen that the option enable bit has
been set.
The device is enabled but it is not operational until it is activated. This is achieved by
pressing the “Activate” button.
When the “Deactivate” soft-key is pressed the “Deactivate” interface signal is high for
one PLC cycle. This should be used in the PLC logic to reset the “Activate” signal
<AGM>
Declaring the PLC variable for
<OPTION_MD name = "PLC/DB9000.DBD0" index="0" /> enabling the devices.
<!OPTION_MD name = "PLC/DB9000.DBD0" index="1" /> Index 0 - Devices 1 to 16 Bits 0 to 15
<!OPTION_MD name = "PLC/DB9000.DBD0" index="2" /> Index 0 - Devices 17 to 32 “ “
Index 0 - Devices 33 to 48 “ “
<!OPTION_MD name = "PLC/DB9000.DBD0" index="3" /> Index 0 - Devices 49 to 64 “ “
</AGM>
The xml file for each individual device should be placed in the same directory as the
AGM.XML file. This file will contain the code for activating the device.
Example:-
Password_test.xml:
<DEVICE>
<list_id> 1 </list_id>
<name> "Test Password" </name>
<password refvar = "plc/db9001.dbd4" />
</DEVICE>
There are a large number of functions that can be performed depending on what is
written in the xml files. These functions have to be tailored for each device by using
the relative tag . A list of tags and functions is available in sections 8 & 9
The Set_Active tag is used to action these functions. This tag becomes active when
the “Activate” soft-key is selected. Likewise, the “Deactivate” soft-key runs the
functions included in the Set_Inactive tag.
<AGM>
</AGM>
<password refvar="plc/db9001.dbd4"></password>
<SET_ACTIVE>
<LET name = "var_return"> 0</LET>
<MSGBOX text="Activate Option 1. %n Press OK" caption="Activation of Option"
retvalue="var_return" type="BTN_OK" />
</SET_ACTIVE>
<SET_INACTIVE>
</SET_INACTIVE>
</DEVICE>
Attributes:-
text - The text to be displayed in the message box.
Using the characters “%n” results in a new line.
retvalue -
Defines the variable where the return value is copied.
Return values– OK = 1, CANCEL = 0.
When the “Activate” soft-key is pressed a message box will appear containing the
specified text. To activate the device select the “OK” soft-key. The device will then be
activated in the usual way.
Create the device file containing the function for switching a PLC output. This example has also
been configured with a cancel soft-key. The functions IF, THEN & ELSE are used to evaluate
whether the OK or Cancel key was pressed. If the cancel key is pressed the system variable
“$actionresult” is set to 0. This interrupts the processing of the function.
<DEVICE>
<list_id>1</list_id>
<password refvar="plc/db9001.dbd4"></password>
<SET_ACTIVE>
<LET name = "var_return"> 0</LET>
<MSGBOX text="Activate Option 1. %n Press OK%n%nAbort press Cancel"
caption="Activation of Option" retvalue="var_return" type="BTN_OKCANCEL" />
<IF>
<condition> var_return==1 </condition>
<THEN>
<DATA name = "PLC/Q4.7"> 1</DATA>
</THEN>
<ELSE>
<OP>"$actionresult" = 0</OP>
</ELSE>
</IF>
</SET_ACTIVE>
<SET_INACTIVE>
<LET name = "var_return"> 0</LET>
<MSGBOX text="Deactivate Option 1. %n Press OK%n%nAbort press Cancel"
caption="Deactivation of Option" retvalue="var_return" type="BTN_OKCANCEL"/>
<IF>
<condition> var_return==1 </condition>
<THEN>
<DATA name = "PLC/Q4.7"> 0</DATA>
</THEN>
<ELSE>
<OP> "$actionresult" = 0 </OP>
</ELSE>
</IF>
</SET_INACTIVE>
</DEVICE>
Another option is to create “Global” files. These files should contain commands that
standard for every or most of the devices. Two types of file which can be used:-
An example is to check that the machine is in Emergency Stop and Reset conditions
before proceeding with the enabling of certain options.
This tag is used to check that the requested actions have been successfully achieved. In the
example below the tag has been used to check that the output Q4.7 is set to one.
<DEVICE>
<list_id>1</list_id>
<password refvar="plc/db9001.dbd4"></password>
<SET_ACTIVE>
<LET name = "var_return"> 0</LET>
<MSGBOX text="Activate Option 1. %n Press OK%n%nAbort press Cancel"
caption="Activation of Option" retvalue="var_return" type="BTN_OKCANCEL" />
<IF>
<condition> var_return==1 </condition>
<THEN>
<DATA name = "PLC/Q4.7"> 1</DATA>
</THEN>
<ELSE>
<OP>"$actionresult" = 0</OP>
</ELSE>
</IF>
</SET_ACTIVE>
<SET_INACTIVE>
<LET name = "var_return"> 0</LET>
<MSGBOX text="Deactivate Option 1. %n Press OK%n%nAbort press Cancel"
caption="Deactivation of Option" retvalue="var_return" type="BTN_OKCANCEL"/>
<IF>
<condition> var_return==1 </condition>
<THEN>
<DATA name = "PLC/Q4.7"> 0</DATA>
</THEN>
<ELSE>
<OP> "$actionresult" = 0 </OP>
</ELSE>
</IF>
</SET_INACTIVE>
</DEVICE>
<IF>
<condition> Within the TEST tag the condition of
"PLC/Q4.7" == 1 Q4.7 is checked for a value of 1
</condition>
<THEN> If the above condition is true, a value
<op> "$actionresult" = 1 </op> of 1 is written to the system variable
</THEN> $actionresult
</IF>
</TEST>
To run the Test function first enter the “Start up” area of the Easy Extend area. The
“Function test device” soft-key should be pressed to initiate the test. A dialogue box
will display the result of the test.
Q4.7 = 1 Q4.7 = 0
One custom screen can be defined for each device, this is done using the form tag.
The custom screen is can include texts and bitmaps. Input fields can be linked to
different machine variables allowing the operator to set machine specific parameters.
The “Addition. parameter” soft-key is reserved for the instructions contained in the
Form tag.
LET
INIT
PAINT
TIMER
CLOSE
CAPTION
SOFTKEY_OK
SOFTKEY_CANCEL
<DEVICE>
<list_id>1</list_id>
<name> "Picture Test" </name>
<FORM>
<init>
<caption>Easy Extend Picture Test</caption>
</init>
<paint>
<img xpos = "155" ypos = "90" name = "tiger.bmp" height="250" width="250"/>
</paint>
</FORM>
</DEVICE>
The above script will result in a device named “Picture Test” appearing in the easy
extend list at position one. When the device is enabled the “Addition. parameter” soft-
key the “tiger.bmp” picture will appear on the screen in the position specified by the
IMG tag. The caption “Easy Extend Picture Test” will be displayed in the title bar.
<DEVICE>
<list_id>1</list_id>
<name> "Picture Test" </name>
<FORM>
<init>
<caption>Easy Extend Picture Test</caption>
<control name = "r_param_0" xpos = "100" ypos = "30" refVar = "nck/channel/parameter/
r[0]" />
</init>
<paint>
<text xpos = "40" ypos = "30">R0</text>
<text xpos = "40" ypos = "30">R1</text>
<text xpos = "40" ypos = "30">R2</text>
<text xpos = "40" ypos = "30">R3</text>
<text xpos = "40" ypos = "30">R4</text>
<img xpos = "155" ypos = "50" name = "tiger.bmp" height="180" width="180"/>
</paint>
</FORM>
</DEVICE>
The screen below shows the result of the new script. The variables can be edited by
the operator. The values are written to the variables when the “OK” soft-key is pressed
or can be set to be immediately written. For information on this see the “Hotlink”
element under the “Control” tag description.
The “Undo” and “Repetition” soft-keys are available to switch each single entry
between its new and original value.
The “Last configuration” soft-key is available to restore all the entries to their original
values.
An archive file with the name of “Rollback.arc” will now be created and stored in the
Archives folder where the AGM files are stored.
Examples:-
NC Variables:-
Drive Addressing:-
The dive index number can also be read from a local variable:-
Example: Parameter p0970 with the drive object number obtained from the variable
called “drive”.
Examples:-
Indirect Addressing:-
The axis index number can also be read from a local variable:-
Example: Axis index with the index number obtained from the variable called “axis”.
Usage Examples:-
Indirect addressing:-
The GUD path is first specified followed by the specific area. If a field is to be used,
this follows next and is contained in square brackets.
Examples:-
<data name=“gud/channel/mgud/syg_rm[0]”>1</data> Defining the channel
manufacturer gud - syg_rm, index 0 and writing a value of 1 to it.
<op>“gud/channel/mgud/syg_rm[0]” = 5*2</op> The result of the multiplication of two
numbers (5 x 2) is written to the syg_rm[0] gud.
Some XML editors can incorrectly display certain characters. These have to be
re-written.
“ " (Quotation)
, ' (Apostrophe)
Operators.
Operator Significance
= Assignment
== Equal to
II Logical OR operation
+ Addition
— Subtraction
* Multiplication
/ Division
! Not
!= Not equal to
Operations are executed from left to right. Brackets can be used to define the priority
of expressions.
Attributes:
Action=“read” - saves the value of the variable into
temporary memory.
Action=“append” - Attaches the value of the listed
variable to an existing list.
Action=“write” - writes the saved values into the
machine data
nck/channel/parameter/r[200]
nck/channel/parameter/r[201]
nck/channel/parameter/r[202]
</data_list>
Attributes:
Create=“true” - Command to create an archive
Name=“filename.arc” or “filename.ard”- Filename
specified by user (.arc = complete archive, .ard = dataclass
archive)
Class - Specifies that the archive will be a “Data class”
archive.(Choice of User, Manufacturer or Individual)
If a class is not specified a standard archive containing NC,
PLC, HMI & Drive data will be created.
Group - Specifies the data groups to be included in the
Archive.(Choice of NC, PLC, HMI & Drive data)
Examples:-
FILE Read in a standard archive called “complete.arc”-
<file name=”complete.arc/>
The Form tag contains the user dialogue description. One dia-
logue is permitted per device. The “Addition. Parameter” soft-
key displays the user dialogue that is entered under this tag.
Attributes:
color - Background colour of the dialogue screen.
label - Optional name for the form.
xpos - X Position of the upper left-hand corner of the
FORM
dialogue box
ypos - Y Position of the upper left-hand corner of the
dialogue box.
width - Extension in the X direction (Pixels).
height - Extension in the Y direction (Pixels).
FUNCTION Attribute:
Name - “Name of the function body”.
Attribute:
name = “Name of the function body”
FUNCTION BODY
Example:
<FUNCTION_BODY name=“function name”>
…
…
</FUNCTION_BODY>
ID Dialogue screen index of the device.
Conditional instruction (IF, THEN, ELSE)
Example:
The following example checks IF MB120 has a value not
equal to 5. If this id true, the THEN tag contains the
instruction to load a value of five to MB120.
IF MB120 was already had a value of 5, the THEN tag would
IF
be ignored and the code in the ELSE tag would be auctioned.
<IF>
<CONDITION> “plcmb120” !=5 </CONDITION>
<THEN>
<OP> “plc/mb120” =5 </OP>
</THEN>
<ELSE>
…
…
</ELSE>
</IF>
This tag is used to call other XML files from within the
AGM.XML
INCLUDE
Example:-
<?include src=“name of xml file to be included”?>
For displaying a message specified in the tag
MSG
This can be used in the case of alarm numbers, the dialogue
box would display the text associated with the alarm number.
The NAME instruction defines the name of a device to be
NAME
displayed in the dialogue screen.
Attribute:
name - variable name
Examples:
<LET name=“variable_name” type=“STRING”/>
Attributes:
text - The text to be displayed in the message box.
Using the characters “%n” results in a new line.
Examples:
Setting a temporary variable equal to PLC system variable
MB100
<op> tmpVar=“plc/mb100” </op>
OP
Multiplying a variable by 2.
<op> tmpVar= tmpvar * 2 </op>
Attributes:-
name - Name of the variable where the text is to be saved
(optional)
text - The text to be output.
Format:- d Integer
f Floating point value
s String
Example:
<print name=“variable name” text=“text” %formatting”>
variable..</print>
THEN Used with the IF, & ELSE commands. See the description for IF
<let name=“count=0”</op>
FOR
<for>
<init>
<op> count=0 </op>
</init>
<condition> count <= 7 </condition>
<increment>
<op count = count +1</op>
</increment>
<op “plc/qb10” = 1+count</op>
</for>
Example:-<option_md name=“$MN_USER_DATA_INT0[0]/>
Attribute:
PLC_INTERFACE
Name - Address of the new interface.
Example:
<plc_interface name=“address of the new interface”/>
With this tag a message will appear instructing the operator to
POWER_OFF power down the system. The message text is fixed by the
System.
Tag Function
While Loop - This tag executes a sequence of instructions for a
multiple number of times providing that a certain condition is
true. The sequence is halted when the condition becomes false.
<while>
<condition> “plc/ib9” ==0</condition>
<data name “plc/qb11> 15 </data>
</while>
Do-While Loop - This tag executes a sequence for instructions
and then checks for a condition, if the condition is true, the in-
structions will be processed again. The processing stops when
the condition is false.
<while>
<data name “plc/qb11> 15 </data>
<condition> “plc/ib9” ==0</condition>
</while>
Update Agent Syntax -
?UP
LET
INIT
PAINT
TIMER
CLOSE
CAPTION
SOFTKEY_OK
FORM SOFTKEY_CANCEL
Attributes:
color - Background colour of the dialogue screen.
name - Optional name for the form.
xpos - X Position of the upper left-hand corner of the
dialogue box
ypos - Y Position of the upper left-hand corner of the
dialogue box.
width - Extension in the X direction (Pixels).
height - Extension in the Y direction (Pixels).
The CAPTION tag contains the title of the dialogue box and
should be used within the INIT tag.
CAPTION
Example:- <caption> Title of Dialogue box </caption>
The CONTROL tag generates the control elements.
Attributes:-
name:- label of the field. The label also represents a local
variable.
xpos:- X position of the upper left hand corner.
zpos:- Y position of the upper left hand corner.
fieldtype:- Field type (Optional).
“edit” - Data can be changed
“readonly” - Data cannot be changed.
CONTROL “combobox” - A drop down list with text that can
accept a value or be used for selection purposes.
Syntax:
<item>Expression</item>
Example:
Example:
Note:
type = "FALSE" – the values are only copied into the refer-
ence variable when tag UPDATA_DATA type = "FALSE"
The tag is used to display a text at the specified position on
the screen.
If the text is to be read from a text file, then the “$$” character
string should be placed in front of the label.
If the contents of a string variable are to be displayed, then
the “$$$” character string should be located in front of the
variable.
Syntax:
<text xpos = "X position" ypos = "Y position"> Text </text>
Attributes:
<message>
<source> MY_TEXT_SYMBOL</source>
<translation> Hello World </translation>
<chars>20</chars>
</message>
Linux: Lower case letters should be used for all file names.
Syntax:
Attributes:
IMG
xpos - X position of the upper lefthand corner
Syntax:
<box xpos="X position" ypos = "Y position" width=“X exten-
sion“ height=“Y extension“ color=“color code“ />
Attribute:
BOX xpos – X position of the upper left hand corner
REQUEST Attribute:
Name - address label
Syntax:
<REQUEST name = “NC Variable“ />
Attribute:
type – the attribute defines the direction of the data
alignment.
TRUE – data is read out of the reference variables and
copied into the operator elements.
FALSE – data is copied from the operator elements into the
UDATE_CONTROLS reference variables.
Syntax:
<update_controls type="<direction>"/>
Example:
<softkey_ok>
<update_controls type="false"/>
</softkey_ok>
This tag overwrites the standard behavior when closing a
dialog box using the "OK" softkey.
The tag should be programmed in the first sub-level of a
form tag.
The following functions can be executed in this tag:
Data manipulation
Conditional processing
Loop processing
Syntax:
<SOFTKEY_OK>
…
…
</SOFTKEY_OK>
Example:
SOFTKEY_OK <form>
….
….
….
<softkey_ok>
<update_controls type="false"/>
<let name="msgbox_result">0</let>
<MsgBox text="Execute NCK Reset!! " caption = "NCK Re-
set" retvalue = "msgbox_result" type= "BTN_OKCANCEL" /
>
<if>
<condition> " msgbox_result " == 1 </condition>
<then>
<CONTROL_RESET resetnc="TRUE"/>
</then>
</if>
</softkey_ok>
</form>
Data manipulation
Conditional processing
Loop processing
SOFTKEY_CANCEL Syntax:
Example:
<form>
<softkey_cancel>
<data name=”plc/mb170”>2</data>
</softkey_cancel>
</form>
1 Contents
Module Objective:
Upon completion of this module you will be able to set up the modem and controller so that the SMS
messaging function can be used.
Module Description:
It is possible to send SMS messages from the controller to report certain events that occur on the
machine.
It is also possible to send and receive an SMS message to the controller which can then be used to
influence the machine by means of changing PLC variables.
This module shows how the modem is set up and configured for sending/receiving SMS
messages.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B018
Easy Messenger B018
Section 2
Activating the Modem Page 3
Section 3
Configuring the Modem Page 5
Section 4
Testing the Modem Page 7
The sim card slot can be seen below, once inserted the modem can be clipped back
together.
The Modem should be connected to the controller with a 9-pin modem cable.
The cable should be connected to Port X140 of the controller and X1 of the modem.
Port X140 is a female connector.
Port X1 is a male connector.
There is a connection for an antenna, three status LED’s and a switch for changing
the functionality.
LED information:-
S (Status)
Q (Quality
C (Connection)
When the “Messenger active” soft key is selected the control will start to
communicate with the modem.
A limit on the number of SMS messages sent can also be entered and confirmed with
the “OK” soft key.
When the limit has been exceeded a message box will be displayed.
The counter will then have to be reset to zero with the “Reset SMS counter” soft key.
Details about the recipient of the SMS messages should be entered as well as the
events which result in the message being sent.
The screen is navigated using the cursor and select keys.
More information about some of the events can be seen by pressing the “Details” soft
key.
The newly created user will appear on the screen. The “Active” soft
key needs to be pressed to make the user active.
This results in a green tick appearing before the name.
The user profile can be edited or deleted, further profiles can also be added.
A list of text messages that have been sent and received can be seen when the
“SMS Protocol” soft key is selected.
To send a message from part program first ensure that this option is set in the user
profile.
The text should then be displayed at the very top of the screen.
A message containing the same text should then be received by the designated
phone.
In the text editing area of the SMS device the ID of a user has to be input followed by
the value to be sent to the variable.
The controller sends out confirmation that the task was successful.
A record of these texts can be found in the alarm log page.
1 Brief Description
Module Objective:
Upon completion of this module you will be able to set up the Electronic Logbook function and know
how to enter data into the Logbook.
Module Description:
In the past the logging of system faults and hardware failures has been recorded to a Logbook.
These Logbooks are usually then left on the machine and can become damaged or lost.
The 828D allows the Logbook to be stored on electronically on the controller. The Logbook file can
then be saved externally and saved remotely from the controller.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B007
Contents:- B007
The machine, manufacturer, dealer and customer details can now be entered. The
default selection when first entering the Logbook is “Manufacturer” as shown by the
vertical soft-keys.
To change between the different fields of the screen use the cursor keys. To enter the
data use the “Input” key.
When the full details have been entered press the “OK” soft-key
The details of the service visit are now shown on the Logbook page.
1 Brief description
Module objective:
Upon completion of this module you will know how to serially commission machines of the same
type.
Module description:
Once the prototype of a particular machine is complete and has been satisfactorily tested, the data
from this machine can be transferred quickly into other machines to aid the production process.
Sinumerik 828D
SINUMERIK 828D Training, Operation and Service Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B067
Contents:- B067
Section2
Overview Of The procedure. Page 3
Completed prototype
machine
Ensure that the option “Create series start-up” is selected and select “OK”
A number of choices are available regarding what to include in the archive you are
about to create.
Control Components:- Separate archives can be made of each of the four areas of
the controller or a single archive containing all the areas can be created. This down to
personal preference as the different areas can be individually selected/de-selected
during the read-in procedure.
The archive will now be created and saved in the selected target area.
1 2
The service menu will be displayed, from this menu select the option “Default data”
and press “Insert”
Acknowledge that the correct file has been selected by pressing “OK”.
A dialogue box appears which allows the individual components of the archive to be
de-selected. When using the archive to create series machines all the components
should be selected.
When the read-in is complete the dialogue boxes will clear and the “RDY” Led to the
left of the screen will be permanently green, the “NC” Led will flash orange at
approximately 1Hz.
Machine specific data can now be entered. Once this is complete further archives
should be created as instructed in Module B017.
1 Brief description
Module Objective:- To ensure the necessary level of compatibility and consistency between
machines configured with the Sinumerik 828D controller. A defined optimization procedure
should be adhered to and this procedure is defined in this module
Caution:- These procedures result in axis movement. All necessary safety precautions must
be taken into account. Make sure that that you read through and understand the entire
procedure before beginning.
Module Description:-
This module explains the step by step procedure to optimise the current, speed and position con-
troller loops within the Sinumerik 828D/ Sinamics S120 ………...
Acceleration
Circularity test
Spindle optimisation
Advanced Surface
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B100
Content:-
B100
Section 2
Introduction Page 7
Section 3
Current Controller Optimisation
Page 6
Section 7
Acceleration
Page 34
Section 8
Circularity Test Page 36
Section 9
Spindle Optimisation
Page 41
Section 10
Advanced Surface Page 57
Every time the S120 drive is powered on or a ―Drive Reset‖ is performed, the S120
drive data is loaded to the relevant drive from a stored file. Therefore when drive
machine data are altered, the drive data must be saved so that the change is re-
tained after the next power off/on or ―Drive Reset‖. NOTE:- an ―NCK Reset‖ does
not affect the drive data.
828-D SL/ S120 controller structure: The 828-D SL CNC and S120 drive controller
structure contains three cascaded closed loop controllers (current, speed and po-
sition). Each controller must be optimized in succession starting with the inner-
most current controller, then the speed controller and finally the position controller.
The machine dynamic limits for velocity, acceleration and jerk are set in the inter-
polator. The speed control loop is always closed via the motor encoder while the
position control loop can be closed via the motor encoder or direct measuring sys-
tem.
- To get to the start up tool selection page from the “Machine page” press the
“Menu Select” key.
- Press the “Start Up” softkey and then the “Optimiz / test” softkey. From this
page, the relevant start-up tool can be selected
Note: Only some of the available tools are used during these procedures.
Traces can be saved and recalled easily using the ―File Functions‖ softkey.
Up to 4 traces can be displayed at one time for comparison if desired.
- The current controller gain is automatically loaded into P1715 when the motor
type is established during drive configuration.
- With Siemens motors the parameters are automatically established and should
not need to be changed.
- With a current controller cycle time of 125us, The db gain should be above –3db
to where the phase passes through –90 degrees. As a minimum the –90 phase
point should be above 550Hz
- If the amplitude is greater than 0db then P1715 should be reduced. If the ampli-
tude is lower than -20db then the motor type should be checked. ( recalculate
regulator data P0340)
WARNING :- Do not carry out this test on a vertical axis unless it is supported.
During this procedure the speed controller is disabled internally, and therefore ver-
tical axes could fall if not supported.
Select ―Optimiz/test‖
Select
―Measurement‖ and
then Type of meas-
urement ―Refer.
Frequ. Response‖
Select ―Measuring
parameters‖ and
then Select
―Standard pa-
rameters‖
Select
―Measurement‖
and then Select
―Start‖
Press ―Cycle
Start‖ on the Ma-
chine Control
Select ―Display‖
when the meas-
urement has fin-
ished to see the
result
As can be seen from the example above the amplitude stays at the 0db line until
around 900 Hz.
The db gain should be above –3db to where the phase passes through –90 de-
grees. As a minimum the –90 phase point should be above 550Hz
- The Speed Controller proportional gain (Kp, P1460) default value is based on the
motor type. The Speed Controller integral time (Tn, P1462) default value is 10ms.
Both values are automatically loaded into the relevant parameters when the motor
type is established during drive configuration. These values are conservative to allow
a reliable start up, and they now have to be optimized.
- The end result of an optimized speed controller (Kp, Tn) is that the amplitude re-
sponse is at 0db out to as high a frequency as possible with a maximum of +3db at
frequencies below the phase response crossing below –130 degrees. If the axis is to
carry load then it is better to keep the amplitude response at 0db as the addition of a
load may change resonant frequencies.
- To help achieve this there are 4 independent current setpoint filters ( P1656 to
P1676) that can be activated as needed to suppress mechanical resonance. These
filters can be assigned as ―Low Pass‖ or ―Bandstop‖. As a default the first filter is acti-
vated and set as a ―Low Pass‖. Additional current setpoint filters can be assigned if
required and are usually configured as ‗Band Stop‖
- When using ―Bandstop‖ filters you should always try to keep the bandwidth and
notch depth conservative. If you let the filter have the full effect then this reduces the
bandwidth of the speed controller. A notch depth of –20 to –40 should be used
- Normally with a Speed Controller cycle time of 0.125 ms it should NOT be neces-
sary to use filters below 200Hz.
4.11 Use the ―Speed controller path (active. After setp filter) to accurately identify me-
chanical resonance ―pole ― and ―zero‖points. The result determines whether current
setpoint filters are required and also initial parameter settings.
4.12 Use the ―Refer. Frequency response (after setpoint filter)‘ to optimize the speed
controller proportional gain (Kp) separately from the speed controller (Tn) and enable
current setpoint filters if required.
4.13 Use the ―Disturbance step change (after setpoint filter)‘ to optimize the speed
controller integral time (Tn) , and then use the ―Refer. Frequency response (after set-
point filter)‘ tool to check the setting.
4.14 Use the ―Speed controller reference model‖ to reduce overshoot in response to
setpoint step changes.
4.11:- Use the “Speed Controller Path (active. After setp filter)” measurement to
identify resonant ―Pole‖ and ―Zero‖Points.
- This measurement compares torque to speed and at the end you can identify the
resonant ―Pole‖ and ―Zero‖ Points so that they can be noted for use when we use the
―Reference Frequency Response‖ of the Speed Controller.
- The reason for this is that when the ―Reference Frequency Response‖ measurement
is carried out the ―Pole Points‖ can appear slightly higher in frequency than they really
are.
- Ensure that Dynamic Stiffness is disabled MD32640 = 0 and that (Tn) Drive P1462
is 100ms for horizontal axes and 30ms for vertical or inclined axes, this decreases the
influence of the speed controller integrator for this measurement.
Select ―Speed
contr loop‖
Select
―Measurement‖ and
then ―Speed control-
ler path (active. After
current setp. Filter).
This measurement is
without the influence
of filters.
Select ―Measuring
parameters‖ and
―Values in %‖.
Then enter the val-
ues as shown.
The amplitude
should be varied if
the measurement
is too noisy.
Values in %
Select
―Measurement‖ and
then Select ―Start‖
Select ―Display‖ and then make a note of the ―Pole‖ and ―Zero‖ Points as above. In
this example ―Pole‖ points are at 769 Hz and 1600 Hz and ―Zero‖ points are at 600
Hz and 1400 Hz. The first 1% and the last 50% of the measurement can be disre-
garded.
The next step is to determine possible filter settings, do not enable them at this time.
Current setpoint filters are not normally required below 200Hz
Zero at 1400 Hz
Zero at 600 Hz
Select
―Measurement‖ and
then ―Speed con-
troller path (active.
After current setp.
Filter)
Change the
―Bandwidth‖ from
4000 Hz to 400Hz,
and ―Meas periods‖
to 2
Select ―Measurement‖
and then Select
―Start‖
- The reference frequency response displays the db gain and phase lag. This
gives an indication of how well the speed actual value follows the setpoint within a
frequency range, e.g. 1 HZ to 4000 HZ. 0 db indicates that the actual speed is the
same amplitude as the setpoint and 0 phase lag indicates that the actual speed
follows the setpoint with minimal delay. The speed controller KP and Tn settings
affect the db gain and phase response.
- With the Tn at a relative high value, e.g. 100 ms, it is ineffective. The Kp can be
adjusted independently so that the db gain is 0 to –3db at –90 deg and does not
exceed 0 at any point on the db gain graph. The db gain should not exceed 0
when the phase crosses –180 deg. Note: When the Tn setting is relatively high,
(100 ms), the db gain at low frequencies may not be on the 0 db line because of
friction. After the Tn is adjusted, the db gain at low frequencies should be 0.
- If it was necessary to use the default 10 ms for the Tn setting to get a readable
result, the KP can be adjusted so that the db gain is +3 db above the 0 db line at
frequencies below the -130 degree phase point.
To calculate a good optimization of the speed controller P-gain use the formula:
First measurement with high Tn=100ms (p1462). This reduces the effect of the Tn
and allows Kp (p1460) to be optimized separately.
Also if working on a rotary axis only use small values for Amplitude and Offset,
quite often if you just use standard values they will be too high.
Then Select ― ^ ―
Select ―Measurement‖
and then Select
―Refer. Frequency
response (after speed
setpoint filter)‖
Select ―Measuring
parameters‖ and
then ―Standard pa-
rameters‖ but
change the offset to
100 mm/min to over-
come any friction
Change Ramp-up
time to 500 ms
Select
―Measurement‖ and
then Select ―Start‖
In general with a speed controller cycle time of 0.125 ms no filters should be re-
quired below 200Hz, as this area falls in the bandwidth of the speed controller and
therefore we have phase in reserve. Below 200Hz the filters have too much nega-
tive influence on the speed control behaviour (they lower the bandwidth, that
means less dynamics)
As a default the first filter is active as a PT low pass filter with a frequency of 2000Hz
and damping of 0.7. This setting should not be changed.
Select ―Filter +‖ to
reach Filter No 2.
Assign filter 2 as a
Band Stop filter and
then enter the values
for the frequency,
bandwidth and notch
depth.
Where the phase goes below -130° shows the range of the speed-controller.
Below this point we can go up to +3dB, above this point we should not exceed
0dB.
On series machine types that use 828D it is always best to leave some amplitude
in reserve to allow for variations in mechanical build.
0 db
-130
2.13 Use the “Disturbance step change (after setpoint filter)” to optimize Tn
(P1462).
When the Tn is reduced, the db gain normally lifts above 0 db. The Tn setting
range is dependant on the mechanics and on machines of the type that 828D is
fitted to is normally less than 10 ms but greater than 3ms. The Tn should not be
set to values below 3ms.
The end result of optimized speed controller Kp and Tn settings is that the db gain
is 0 db out to as high a frequency as possible with a maximum of +3db at frequen-
cies below the -130 phase point.
If the axis is to carry an additional load i.e. a table or a fixture, it is best to set the
db gain at 0db, as the additional load may push the db gain up to the +3db maxi-
mum.
To optimize Tn se-
lect measurement
type ―Disturb. Step-
change (interf. After
current setp.filter)
Measured quantity 1
is Actual torque
value
Select parameters as
shown.
Select ―Measurement‖
and then Select ―Start‖
Tn correct 5ms
Tn too small 2ms
Start with Tn (P1462) at 10ms which is the standard value. Decrease Tn until you
see an undershoot in the lower graph. Then just increase Tn until you see no un-
dershoot. Most machines of the type fitted with 828D will end up with a value of
between 3 to 10ms.
Select
―Measurement‖ and
then Select ―Start‖
As a rule when optimizing the speed controller, it is desired to achieve a low Tn set-
ting so that the drive can respond quickly to load changes and counteract the effects
of friction. With optimized Tn settings, there is an expected overshoot in response to
setpoint step changes. The ―speed reference model‖ reduces this overshoot while
not affecting the response to load changes. The advantage is better quality surface
finish.
P1434, (reference model damping factor) A setting of 0.7 should be used as a start
value. Typically values are between 0.5 to 1.0.
Turn on Bit 3
―Reference model
speed setpoint‖
To get an idea of an
initial setting for P1433
take a look back at the
frequency response of
the speed controller
when P1460 was be-
ing adjusted. Take a
look where the phase
passes through –90
degrees and use this
frequency as the start
value in P1433. For
P1434 use a start
value of 0.7
P1433 should be
reduced gradually
until the amplitude
response is at a
maximum of 3db in
the lower frequency
area
- The position loop proportional gain, (Kv factor MD 32200), influences the follow-
ing error and contour accuracy. the default value is 1. As the KV factor is in-
creased, the following error is proportionally reduced. For typical machine tool
applications the final KV factor setting can fall in a range of 1 to 10[m/min/mm]
- A good optimization of the position controller means small following error, small
contour deviation and no overshoot when the axis comes into position.
- Prerequisite :- That the current and speed controllers have been correctly opti-
mized.
- Use the position loop ―Ref. frequency respo‖ tool to optimize the KV factor :-
The position loop ―Ref. frequency respo‖ tool is used to set the KV factor to the
optimum value based on the components that are included in the closed position
loop, including work-piece and fixture weight. The attainable results vary depend-
ing on the machine mechanics and type and mounting location of the feedback
device that is used to close the position loop, (direct scale or indirect motor en-
coder).
Select ―Position
contr. Loop‖
Select
―Measurement‖ and
then type of meas-
urement ―Ref fre-
quency response‖
Select ―Measuring
parameters‖ and then
enter tha values
shown.
Select
―Measurement‖ and
then Select ―Start‖
This example
shows that the Kv
can be increased
This results in a 0 db
correctly optimized
position controller
-The positioning response of the axis should now be checked using the servo trace
tool and a commanded position step via part program at different feedrates. In cases
where a direct scale is used, the actual slide response can easily be viewed. In
cases where the motor encoder is used to close the position loop, (indirect feed-
back), the actual response of the axis is not visible to the closed loop or the servo
trace tool.
-The test part program should traverse the axis a sufficient distance that allows the
programmed velocity to be reached, e.g. 50 mm. A check should also be made over
shorter distances e.g. 3 - 10mm. A dwell time should be used after the velocity is
reached and then after the setpoint position is reached, e.g. 0.5 second. The initial
programmed velocity can be approximately ½ of the maximum axis velocity and the
response should be checked at all of the feedrate override increments as well as the
maximum speed.
-The aim is to check the stability of the position controller and also to check position-
ing accuracy. A check is also made for any overshoot or vibration.
-The position actual value trace results should be magnified for a finer view by
changing the scale, e.g. position 0.005 mm/div
FFWOF
SOFT
LAB:
G01 X210 F10000
G04 F0.5
$AA_SCTRACE[X]=1; trigger for servo trace
X260
G04 F0.5
GOTOB LAB
M30
Select
―Measurement‖ and
enter the trace pa-
rameters as shown.
Positioning without
Feed Forward.
This is an example where the KV factor setting is adequate and the jerk limit set
too high. The oscillation that occurs upon position settling is generated from the
mechanics and should be smoothed by a lower value for jerk limit, MD 32431. MD
32431 should be set to as high a value as possible that results in smooth position-
ing response without overshoot.
This is an example where the jerk limit setting is adequate but one or more of the
controller settings are not correct. The overshoot without oscillation upon position
settling could be a result of the KV factor, (MD 32200), being set too high. This
might occur when a load weight is added to an axis where the KV factor had been
optimized without a load weight.
Before the feed forward function can be enabled and optimized, the current, speed
and position controllers must have previously been optimized!
The easiest way to optimize Feed Forward control is to make a position step.
Therefore the position setpoint and the position actual value of the active encoder
have to be viewed with the servo trace. Then the machine data must be adjusted
until the position behavior (i.e. the last 20 μm when the axis goes into desired po-
sition) is satisfactory.
If positioning alarms occur during parts of the procedure then set the following MD
but make a note of the original values and put them back to original at the end.
FFWON
SOFT
LAB:
G01 X210 F10000
G04 F0.5
$AA_SCTRACE[X]=1; trigger for servo trace
X260
G04 F0.5
GOTOB LAB
M30
Select ―Measurement‖
and enter the trace
parameters as shown.
Resolution 0.005mm/div.
Resolution 0.005mm/div.
Resolution 0.005mm/div.
The result of jerk-limited acceleration is rounded corners at the start and end of
the acceleration phase of the velocity profile and smoothed motion.
Jerk limiting is active when ―SOFT‖ is programmed and de-activated when
―BRISK‖ is programmed. ―SOFT‖ mode is set as the default reset state via chan-
nel MD 20150[20] = 2. It is recommended to use ―SOFT‖ as the default reset
value.
The positioning response of the axis can be checked using the servo trace tool
and a commanded position step via part program at different feedrates. In cases
where a direct scale is used, the actual slide response can easily be viewed. In
cases where the motor encoder is used to close the position loop, (indirect feed-
back), the actual response of the slide is not visible to the closed loop or the servo
trace tool. On machines with 828D in general jerk values will be between 20 and
100
The test part program should traverse the axis a sufficient distance that allows the
programmed velocity to be reached, e.g. 50 mm. A dwell time should be used
after the velocity is reached and then after the setpoint position is reached, e.g.
0.5 second. The initial programmed velocity can be approximately ½ of the maxi-
mum axis velocity and the response should be checked at all of the feedrate over-
ride increments as well as the maximum speed.
The previous part program can be used as a basis and the servo trace settings
are the same.
Positioning without
position controller Kv =
0
Resolution 0.005mm/
div.
Positioning without
position controller
and jerk too high.
Resolution
0.005mm/div.
This diagram
shows how the jerk
is increased until
there is an over-
shoot in the re-
sponse of the me-
chanics.
Positioning with
feed forward and
position controller
active
Resolution
0.005mm/div.
Good positioning
without overshoot
when feed forward
and jerk are cor-
rectly optimized
Important! Machine mechanics limit the maximum axis acceleration. The machine
builder must define the required setting value! If not defined, the default value
should be used unless the machine builder authorizes an increase.
The "Servo trace" start up tool is used to measure the velocity actual value of the
relevant active measuring system and the torque utilization percentage via the
―Utilization (m_set/m_set_limit)‖ trace signal. When the ―Utilization (m_set/
m_set_limit)‖ trace signal =100%, the drive is on current limit!
If allowed by the machine builder, MD 32300 can be set so that the torque utiliza-
tion during the acceleration phase of the worst case load and velocity lies between
80% and 90% of the limit depending on how much safety factor is desired.
A test part program should traverse the axis a sufficient distance that allows the
programmed rapid velocity to be reached, e.g. 300 mm.
Change the trace measuring parameters to view the load torque utilization and
change the part program as shown.
SOFT
LAB:
G0 X10
$AA_SCTRACE[X]=1; trigger for servo trace
X310
GOTOB LAB
M30
Select
―Measurement‖
and then Select
―Start to start the
servo trace.
Then Press
―Cycle Start‖ on
the machine con-
trol panel to start
the part program
The maximum
velocity of 48 m/
min is reached
with a utilization of
36%.
P 0640 is limited to whichever is the lower of P0323 Maximum Motor Current/ Mot I
Max [RMS amps] or r0209 Power Unit Maximum Current/ PU I Max [RMS amps]
Axis MD32200,MD32400,MD32402,MD32410,MD32490,MD32500,MD32510,
MD32520, MD32540 MD32620, MD32640, MD32810, MD32900, MD32910,
MD32930, MD32940 and drive P1421 to P1426. P1400, P1433, P1434 are checked
via this procedure.
The following positional error compensations should be switched off when this proce-
dure is carried out. Backlash Comp MD32450, Encoder Comp MD32700, CEC Comp
MD32710, Temperature Comp MD32750, Friction Comp MD32500.
Note:- Backlash MD 32450 must be adjusted using an external device e.g ballbar or
dial gauge
The best overall contouring results are achieved when the circle test results in the
correct actual size, shape and minimum p/p deviation between combinations of inter-
polating axis, (X-Y, X-Z, Y-Z).
A circle test part program and the circularity test start up tool can be used to measure
and evaluate these results. The ―worst case‖ test circle radius and path feedrate
must result in a realistic radial acceleration that the machine is capable of. Machine
builders typically have specifications for test circle radius and feedrate.
Standard machine builder circle tests typically use a radius of 100 mm or 150 mm at
feedrates determined by the machine builder. The machine builder defines the ac-
ceptable result specifications.
High speed cutting requirements are usually more stringent and test circles for high
speed cutting machines might be in the range of 10 to 25mm radius at feedrates of 5
m/min to 10 m/min. For high speed cutting machines, the results are normally ac-
ceptable when the p/p deviation </= 0.010 mm, and the actual size is equal to the
programmed radius at the worst case path feedrate.
FFWON
SOFT
G90 G01 F3000 X400 Y200 Z500
LAB:
G91 G64 G02 X0 Y0 I10
GOTOB LAB
M30
Select ―Optimiz/test‖
Select ―Circular.
Test‖
Select
―Measurement‖
and enter the
relevant parame-
ters. The pa-
rameters shown
are for a 10mm
radius in X-Y
plane at a
feedrate of 3m/
Representation:
Resolution = units per graduation (e.g. 0.010 mm/div)
Represent = Type of display, (e.g. mean)
Radius = Actual radius
Delta R = p/p deviation
The circle above shows the results after feed forward has
been optimized however the mean radius is .0017 too
large.
Select ―Measurement‖
and then Type of
Measurement ―Refer
frequency response
(after speed setpoint
filter)‖
Select
―Measurement‖
and then Select
―Start‖
Press ―Cycle
Start‖ on the Ma-
chine Control
Panel
Here it can be
seen that the Pro-
portional Gain of
the speed control-
ler can be in-
creased.
After increasing
P1460 it can be seen
that we have a reso-
nance at 660 Hz and
so we can build in a
current setpoint filter.
NOTE :- If a low resolution spindle encoder is being used and only noise can be
seen at higher frequencies (e.g. above 800Hz) then a value can be used in
P 1441[0] ACTUAL_SPEED_SMOOTHING_TIME. Values between 0.3—0.5 are
useful
7.2 Speed Controller Gain Adaption :-For main spindle applications with en-
coder feedback the speed controller gain adaption function is enabled by default.
The function allows different proportional and integral gains to be active at low and
high speeds. The result is dynamic performance for tapping, threading and orien-
tation without having oscillation at high speeds.
Select ―Measurement‖
and then Type of
measurement ―Ref
frequency respo‖
Select
―Measurement‖
and then Select
―Start‖
Press ―Cycle
Start‖ on the Ma-
chine Control
Panel
It can be seen
here that MD
32200 can be in-
creased but the
amplitude should
not come above
0db
9.4 A part program should now be created to check the spindle positioning
without overshoot, and the servo trace function should be used to view the results.
LAB:
SPOS=0
G4 F1
SPOS=130
G4 F0.2
GOTOB LAB
M30
There should be no
overshoot as the
spindle comes in to
position.
MD 35210[0]
GEAR_STEP_POS
CTRL_ACCEL can
now also be in-
creased but no
overshoot should
be seen.
In some cases it
may be necessary
to switch drive pa-
rameter sets in or-
der to optimize per-
formance in differ-
ent gear ranges
Select ―Servo
trace‖ from the
―Startup‖, ―Optimiz./
test‖ menu
Select
―Measurement‖ and
then ―Start‖
S9000 M03
G04 F3
M30
The trace shows the acceleration taking 2.8 seconds from 0 to 9000 rpm and the
torque and power values relate to the motor S1 curve
Now repeat the servo trace test with the MDA program
The trace now shows the acceleration taking 2.3 seconds from 0 to 9000 rpm and
the torque and power values relate to the motor S6 curve
The motor stall torque correction factor P326 can be modified to further improve
the acceleration.
This value is write protected when P300 = 107 ( 1PH7 induction motor)
P326 =100 %
Acceleration now
1.77 seconds
P326 =120 %
Acceleration now
1.58 seconds,
however under-
shoot can be
seen in the ac-
tual current trace
when decelerat-
ing and so P326
= 120 is too big.
P326 =105 %
Acceleration now
1.75 seconds,
this appears to
be the optimum
setting
In order to see any error between Z and Spindle it is best to run a circularity test
program with the X and Z axes and then to use the Coupled axis feature to link the
Spindle with the X axis. You can then to view a circularity test between the Z axis
and the Spindle. Any errors in the circle between Z and Spindle can then be seen.
Circularity test:
A circle test part program and the circularity test start up tool can be used to
measure the actual size and shape of a given test circle.
FFWON
SOFT
TRAILON(SP1,X,1)
G90 G01 F3000 X400 Z400
LAB:
G91 G64 G02 X0 Z0 I10
GOTOB LAB
M30
Select ―Circularity
test‖
With the Technology G Groups a defined parameter state exists for each setting.
Because of this no machine data is ever overwritten and therefore at any time the
parameters are in a clearly defined state.
NOTE : - Check that there are no existing subroutines or cycles that over-
write these machine data. Also consider Cycle 832 and Cycle 832T. When
the Technology G Groups are used there is no longer a reason to over-
write machine data via cycles etc
Under some conditions these compensations can lead to marks on the work
piece surface. If the cutting test has given a positive result and there is still a
requirement for friction compensation then adaptive friction compensation
should be used.
100
90
80
70
Switch Off amplitude in mm/min
60
50
Series1
40
30
20
10
0
0 0.1 0.2 0.3 0.4 0.5
Radial Acceleration in m/s^2
SOFT
COMPCAD
G642 for SW stands <= 72.05
G645 for SW stands >= 72.06
FIFOCTRL
FFWON
DYNROUGH, DYNSEMIFIN or DYNFINISH
1 Brief description
Module Objective:
Upon completion of this module you will know how the drive components of the Sinumerik 828D sys-
tem are integrated and how the power to these components should be applied and re-
moved.
Module Description:
The Sinumerik 828D operates with Sinamics drive components, these components must be powered
on/off in a certain sequence. This module shows how these components are connected to the system
and the required power on/off enabling sequence.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B051
Line and Motor Modules B051
Section 2 Section 2
Page 3
Smart Line Module (SLM)
Section 3 Section 3
Active Line Module (SLM) Page 10
Section 4 Section 4
Motor Module (MM) Page 13
Section 5 Section 5
Supply and Enabling Examples Page 17
Example:-An internally cooled 10Kw SLM module with terminal locations etc.
X21/X22:
Enables etc.
Electronics/DC link
X24:Electronics bus bars. (below flip
supply. down cover).
LED status
Indicators
(See page 6)
Terminal descriptions.
The electronics supply not only supplies the SLM module but also supplies the
remaining drive modules via a bus-bar system which is found below the flip down
covers on the front of the drive modules.
+24V DC Bus-bar
0V DC Bus-bar
+ DC Link Bus-bar
- DC Link Bus-bar
LM MM1 MM2
X21: X22:
Enable, ready and Regeneration and
fault signals. fault reset signals.
X24:
24V DC Electronics
supply
SLM
3 Fault Reset Applying +24V DC will cause the resetting of any drive
(Input) faults.
X200/X201/X202:
X21: DriveCLiQ
Pulse enable connectors
X24:Electronics
supply.
Electronics/DC
link bus bars.
(below flip down
cover).
LED status
Indicators.
(See page 9)
Protective earth
terminals.
X1: Mains supply
(3-Phase AC)
Terminal description.
The electronics supply not only supplies the SLM module but also supplies
the remaining MM modules via a bus-bar system which is found below the flip
down covers on the front of the drive modules.
+24V DC Bus-bar
0V DC Bus-bar
+ DC Link Bus-bar
- DC Link Bus-bar
LM MM1 MM2
X21:
Pulse enable.
X202:
DriveCLiQ connector.
X201:
DriveCLiQ connector.
X200:
DriveCLiQ connector.
X24:
24V DC Electronics
supply.
X21:
Pulse enable, X200/X201/X202:
temperature DriveCLiQ
sensor. connectors
X24:Electronics
supply.
Electronics/DC link
bus bars. (Below
flip down cover).
LED status
Indicators.
(See page 12)
Terminal description.
The electronics supply not only supplies the ALM module but also supplies the
remaining drive modules via a bus-bar system which is found below the flip down
covers on the front of the drive modules.
Bottom bus-bar: 0V
LM MM1 MM2
X21:
Enable and
Temperature sensor
Connections.
X203:
DriveCLiQ connector.
X202:
DriveCLiQ connector.
X201:
DriveCLiQ connector.
X200:
DriveCLiQ connector.
X24:
24V DC Electronics
supply.
X21:
Enables etc. X200/X201/X202:
DriveCLiQ
Connectors.
Electronics/DC link
bus bars. (below flip
down cover).
LED Status
Indicators.
(See page 16)
X1: Output to
Motor, including
Protective earth the brake output for
terminals. MM less than 45A.
X21:Motor 1 X22:Motor 2
Enables etc. Enables etc.
X200/X201/X202/
X203: Electronics/DC link
DriveCLiQ bus bars. (below flip
connectors down cover).
LED Status
Indicators.
(See page 16)
X1 & X2 Output to
Motor,
including the brake
output for MM less
than 45A
+24V DC Bus-bar
0V DC Bus-bar
+ DC Link Bus-bar
- DC Link-Bus-bar
X21: Pulse
Enable etc.
X22: Pulse
X21: Pulse
Enable etc.
Enable etc.
X203:
DriveCLiQ
X202:
DriveCLiQ.
X202:
X201: DriveCLiQ
DriveCLiQ.
X201:
DriveCLiQ
X200:
DriveCLiQ.
X200:
DriveCLiQ
Below is the recommended timing diagram for the enabling of drives via the controller
and using a line Contactor.
Mains supply
E Stop active
DB2700.DBX0.1
Input to ALM/SLM Minimum 10mS
Enable Pulses
ALM/SLM X21.3
Minimum 10ms
Input to 828D
Enable OFF3 from
user to 828D
X122.2
B051
SLM 5 & 10Kw, no line contactor, user controlled enable.
Notes
X122
I2t alarm
From SLM
Main to user
supply
+24V 24V DC 0V
Page 18
PSU
Supply to other
equipment
Drive enable
From user to
828D
Filter Reactor
SINUMERIK 828D
Mains Supply and Enabling Examples-
SLM 5 & 10Kw . User controlled line contactor (Early break contact) and 828D controlled enables.
Section 2
Notes
SINUMERIK 828D
X122
I2t alarm
From SLM
Mains to user
supply
Supply to other
equipment
Optional:-
Pulse enable via
Page 19
user PLC
Energise
+24V 24V DC 0V Line
Line
PSU contactor
contactor
energised.
From user
To user PLC
PLC
Filter Reactor
B051
Mains Supply and Enabling Examples.
Section 2
B051
ALM and SLM (16 & 36Kw)-no line contactor, user controlled enables.
Notes
X122
Main
supply
X100
Page 20
PSU
Supply to other
equipment
Filter Reactor
SINUMERIK 828D
Mains Supply and Enabling Examples-
ALM and SLM 16 & 36Kw. User controlled line contactor (Early break contact) and 828D controlled enables.
Section 2
Notes
SINUMERIK 828D
X122
Mains
supply
X100
Supply to other
equipment
X200
Optional:-
Pulse enable via
Page 21
user PLC
0V 24V
+24V 24V DC 0V
PSU Energise
Line
Line
contactor
contactor-
Filter Reactor energised-
From user
To user PLC
PLC
B051
Mains Supply and Enabling Examples- Section 2
B051
ALM & SLM 16 & 36Kw . 828D controlled line contactor (Early break contact) and enables.
Notes
X122
Mains
supply
X100
Supply to other
equipment
Line Energise
X200 contactor Line
Optional:- energised- contactor-
Page 22
Pulse enable via To 828D From 828D
user PLC or
828D X122/X132
0V 24V
Drive enable
From user to
828D
Line Early break (OFF3)
Contactor contact
+24V 24V DC 0V
PSU
Filter Reactor
ALM/SLM
enable
From user to
828D
SINUMERIK 828D
B006 Electrical Cabinet Design
1 Brief description
Module objective:
Upon completion of this module you will understand the requirements to design an electrical cabinet.
Module description:
Technological advances have resulted in the reduction in size of electronic equipment. The down
side of this is that the equipment is more prone to heat, dust and moisture damage.
By calculating the power loss of the components and therefore ensuring the correct cooling
requirements of a particular cabinet, it is possible to reduce the failure rate of these and other compo-
nents.
It is also essential that the cabinets are designed to prevent/minimise the ingress of contaminants.
This module explains what is required to produce an acceptable electrical cabinet and what “Sins” to
avoid.
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B006
Contents:- B006
Section2
Seven Deadly Sins Page 3
Section2
Choice of cabinet Page 4
Section 3
Arrhenius’ Law Page 5
Section 4
Cabinet Cooling Page 6
Section 5
Equipment Mounting Page 10
Section 6
Plugs, Sockets and Cabling Page 12
Section 7
Cabinet Sealing. Page 14
Section 8
Miscellaneous. Page 15
Sin 1 Cooling units must be able to deal with the heat generated by the electrical
equipment.
Sin 2 Air circulation must be controlled in a manner which will prevent condensation
forming and must make use of the natural convection of warm air.
Sin 3 Shielding of cables should be done with purposely made clamps and not with a
wire tail.
Sin 5 Electrical equipment must be installed in such a way that the air can flow freely,
recommended air gaps around the equipment must be adhered to.
Sin 6 Electrical cables must be routed so that sensitive signal cables are kept
separate from the power cables.
It may be preferable to always use cooler units as this allows the cabinet to be sealed
which is the best option for stopping the entry of contaminants. Within the cabinets it
may also be necessary to install fans to ensure the air is circulated and prevent “Hot
spots” from forming.
The technical specifications of the individual hardware component will provide details
of the power loss measured in Watts.
Calculations are made to see if the cabinet can dissipate the heat naturally.
The cabinet manufacturer can supply details of the heat-loss of the cabinet.
Natural heat dissipation occurs through the cabinet walls providing the wall is in free
air and not against a wall for example.
A general rule is that the energy dissipated is approximately 50Watts/m² of free
cabinet wall assuming a 10° temperature difference between the cabinet and the
outside air.
2m x 3m = 6m² (Front)
2m x 1m = 2m² (left side)
2m x 1m = 2m² (Right side)
3m x 1m = 3m² (Top)
Total = 13m²
Example 2:-
Internally cooled 36Kw Active Line Module-Power loss = 630 W
Internally cooled 18A Single Motor Module-Power loss = 165 W
Internally cooled 30A Single Motor Module-Power loss = 630 W
These few items alone add up to 1425 W which would require extra cooling if fitted
into the cabinet described in example 1.
The ideal ambient temperature for the cabinet is 35°C. The cooling unit should be set
to achieve this temperature. If the temperature is allowed to get too high the lifetime of
the components will be reduced. If the temperature is set too low there is a risk of
condensation forming on the electronic components which can also be detrimental to
the equipment.
Expected
Life Defect
Time Rate
120% — 9.00
— 8.00
100%
— 7.00
80% — 6.00
— 5.00
60%
— 4.00
40% — 3.00
— 2.00
20%
— 1.00
0% — 0.00
The fans and filter option would normally be used on low power installations or where
the drive units are of the externally cooled type.
A drawback of this method is that the fans pull air from outside the cabinet via filters.
Even if the filters are serviced regularly it is impossible to keep all contaminants out
of the cabinet.
Cooling units allow the cabinets to be air-tight as the air within the cabinet is
re-circulated through the cooling unit.
A thermostat should be employed to regulate the temperature to the recommended
35°C
If a higher temperature is unavoidable (Max 50°C) the drive units have to be
de-regulated
It is important to position the cabinet and cooling devices to ensure correct operation.
A cabinet placed in such a position where it restricts the ventilation inlet/outlet can
prevent the cabinet from being cooled correctly or result in the cooling unit becoming
damaged due to excessive work cycles.
The cooling device should also be positioned to ensure the cool air is reaching the
desired areas and that the warm air is extracted and not allowed to cause hot spots
within the cabinet.
The inlets and outlets of the cooling units must have a clearance of at least 200mm.
See below
≥ 200mm
Roof mounted
cooling units
m
0m Outlet
20
≥
≥ 200mm
t
t
le
le
In
In
Potential
obstruction
Electrical cabinet Electrical cabinet
The use of baffles is recommended to prevent ventilation short circuits where the
exhaust air is taken directly into the cooling units.
The cool air should be directed to the bottom of the drive. The internal drive fans and
natural convection will draw the air through the drives.
The cool air from the cooling unit should not be directed straight onto/into the drives, it
should be allowed to mix with the warmer air already in the cabinet, This will minimise
the risk of condensation forming.
Cabinet top mounted cooling units require a method of directing the cool air from the
cooling unit to the bottom of the drives.
In the case of a door mounted unit it may be necessary to direct the cool air with the
use of a baffle.
Below:-Examples of cabinet cooling with cooling units and internally cooled drives
Outlet Cooling
unit
Inlet
Ducting
Outlet
Baffle
Temperature Temp.
Measuring point Meas.
point Inlet
Cabinet top mounted cooling unit. Cabinet door mounted cooling unit.
It is advisable that the cooling units are switched off automatically when the cabinet
door is opened.
Large differences between the outside air temperature and the cabinet temperature
can lead to condensation forming when the cabinet doors are opened. This should be
taken into consideration when the cabinet thermostat is set.
A by-product of cooling units is water. For obvious reasons it must be ensured that this
water is not allowed to enter the electrical cabinet . This is particularly important for
roof mounted cooling units as any leaking water could drip directly onto the drive
equipment..
The outside of the cooling unit must be protected from any possible contamination
such as coolant, machine waste etc.
≥ 200mm
Drive
equipment
Drive
equipment
Baffle
Temp.
Meas.
point
< 200mm
Drive Drive
equipment equipment
Outlet
via filter
Drive
equipment
Temperature
Measuring points
Inlet via
Fan &
filter unit
It is essential that the air flow to the drive units is unrestricted. Other electrical
equipment, including cable ducting and cables, must be mounted a suitable distance
away from the top and bottom sides of the drive units. The minimum distance for
Sinamics S120 drives is 80mm.
Cable
ducting
≥ 80mm
Drive
equipment
≥ 80mm
Cable
ducting
To cut down on the interference effects caused by the high frequency drive equipment
certain measures can be taken. One of these includes the positioning of the
equipment within the cabinet. By positioning the line module, reactor and filter in close
proximity to each other, cables lengths can be kept to a minimum thus cutting down on
emissions.
Further reductions in emissions can be achieved by screening the cables.
The mounting plate for the equipment should be one of bare metal, this acts as a
central earth point and also improves the EMC.
Remaining
Filter Equipment
Main
Line Module Motor Modules
Switch
Filter Reactor
Protection
≥ 100mm
Filter
Reactor
Line Module
Signal cables and power cables should be kept separate by a distance of at least
0.2m.
Cables should be kept as close as possible to objects with a ground potential, this
reduces crosstalk between cables.
Where the cable shield is grounded it should be done with the use of grounding plates,
this allows a large surface area of the shield to be connected. The use of a wire to
connect the shield to ground is not permitted as the wire then becomes an aerial
which can introduce problems.
The shielding of cables has a downside in that it causes additional losses in the line
filter, reactor, in-feed and motor modules. This becomes worse the longer the cable
length and can cause overheating of the drive components.
A maximum of 50m is allowed for each motor module and a maximum of 150m for
each drive system.
Shielding that is connected via a plug & socket housing must use a metallic housing
with a continuous metallic contact.
Metalized housings are not permitted, over a period of time the metalized coating
becomes worn and fails to be conductive to the levels required.
To maintain the airtight properties of the cabinet, cable outlets should use methods
which form a seal and any unused openings blanked off.
Influence the air circulation and cause overheating due to hotspots forming and
air short circuits.
Lead to a high moisture content which can in turn lead to component failure.
The cabinet door should always be closed and locked during normal running
operation, access should only be with a key or tool and by authorised personnel.
Top Bottom
AC Suppressor
1 Brief description
Module objective:-
This Module is intended for advanced users and is not part of the standard
commissioning course.
Module description:
Sinumerik 828D
SINUMERIK 828D Page 1 This document was produced for training purposes.
Siemens assumes no responsibility for its contents.
B099
Contents:- B006
To prepare the PG/PC for connection to the hardware the TCP/IP protocol needs to be
setup.
To do this the properties of the “TCP/IP” internet protocol need to be changed for the
Ethernet adapter to be used, this adapter will differ between PG/PC.
If any entries already exist these should be noted down.
Select the option “Use the following IP address” and enter an IP address of
192.168.214.15, the subnet mask should be 255.255.255.0
The device to be updated needs to be setup. Each has a set of switches for this
Purpose. The IP address of the device is to be set as 192.168.214.0. This is achieved
by setting switch 4 and 9 to the on position, all other switches should be set to off.
Before making changes make a note of the original settings and set back these when
the update is finished.
The update procedure uses the Dos command box, to check that the connection is
valid in the Dos area open up a Dos command box from the Start/Run menu of the
PG/PC.
Type the letters “CMD” (Short for Command) and select “OK”.
A Dos box will open up, type the following:- “ping 192.168.214.8” and press the return
key.
A successful connection is indicated by the text:-
“Reply from 192.168.214.8: bytes = 32 TTL = 64”
The update can now be carried out. The path to the folder where the update file was
extracted to needs to be typed in the Dos box.
The existing version of the device can be checked using the “MCPb_version_8.bat”
file.
Type this in to the Dos box at the command prompt and press enter.
The system firmware is the firmware version
To update the firmware the file called “MCPb_fw-update_8.bat” must be run from the
command prompt.