fb0 GR 0199 en
fb0 GR 0199 en
fb0 GR 0199 en
Manufacturer Documentation
SINUMERIK 840C
Software Versions 1, 2, 3, 4, 5 and 6
135 WB2/WD PLC Function Blocks
Package 0: Basic Functions
Planning Guide
Manufacturer Documentation
Applies to:
SINUMERIK 840C/CE
(Standard/Export Version) 1, 2, 3, 4, 5 and 6
01.99 Edition
SINUMERIK® documentation
Printing history
Brief details of this edition and previous editions are listed below.
The status of each edition is shown by the code in the "Remarks" column.
Status code in ”Remarks” column:
A . . . New documentation
B . . . Unrevised reprint with new Order No.
C . . . Revised edition with new status.
If factual changes have been made on a page since the last edition, this is
indicated by a new edition coding in the header on that page.
The publication was produced on the Siemens 5800 0ffice System. We have checked that the contents of this publication agree with
the hardware and software described herein. The information given
The reproduction, transmission or use of this document or its in this publication is reviewed at regular intervals and any
contents is not permitted without express written authority. corrections that might be necessary are made in the subsequent
Offenders will be liable for damages. All rights, including created by printings. Suggestions for improvement are welcome at all times.
patent grant or registration of a utility model or design, are reserved,
Subject to change without prior notice.
© Siemens AG 1993, 1994, 1995, 1996, 1997, 1998, 1999
All Rights Reserved
Data Sheets 3
for Scanning/Displaying Messages
Block Data 5
Appendix 6
Preliminary Remarks
This documentation is intended for manufacturers of machine tools using SINUMERIK 840C.
The publication explains the application of the complete Software Package 0, Basic Functions,
which the machine tool manufacturer can incorporate in his PLC program.
The SINUMERIK documentation is organized in 4 levels:
• General documentation
• User documentation
• Manufacturer documentation
• Service documentation
The Manufacturer Documentation for the SINUMERIK 840C control is divided into the
following parts:
• Interface Description
Part 1: Signals
Part 2: Connection Conditions
• 135 WB/WB2/WD PLC Planning Guide
• Function Macros
• Function Blocks
Paket 0: Basic Functions
Paket 1/2: Tool Management
Paket 4/5: Computer Link
Paket 7: Code Carriers
Paket 8: PLC Controlled Data Input/Output
The diskette for package 0 contains package versions 16, 20, 21 and 22. Depending on the
SINUMERIK 840C software version being used, one of the following package 0 versions must
be used.
1 and 2 16 P00416ST.S5D
3 20 P00420ST.S5D
4 21 P00421ST.S5D
5 22 P00422ST.S5D
6 23
a
a
a
aaaaaaaaaaaaaaaaaa a
a
a
a
aaaaa a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaaaaaaaa a
a
a
a
a
a
a
a
a
aa
aaaaaaaaaa
a
a
a
a
a
a
a
a
a
aaaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaaaaa
aa
a
a
a
a
a
a
a
a
This documentation is valid for software versions 1, 2, 3, 4, 5 and 6.
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
aaaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaaaa a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
Contents
Page
1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1
1 Definitions
Inputs
128
Physical interface without process image
(Input modules, DMP submodules)
255
1.2.2 Outputs
Outputs
128
Physical interface without process image
(Output modules, DMP submodules)
255
FY 0 Basic signals
.
24
25 e.g. auxiliary flags or
. dynamically assignable by
. interface signals
. e.g. interface Channel 1
. Channel 2
. etc.
99
100 User assignable
.
.
.
.
.
199
200 Reserved for function
. blocks (see note)
224
. Area saved on change of level
. and warm restart
.
255
Notes:
1. To simplify programming, the interface signals from data blocks can be copied into flag
area FY 25 - 99 using function macros FB 70, FB 71.
Function macros are function blocks programmed in Assembler and integrated in the PLC
operating system.
2. Flag area FY 224 - 255 is saved by the basic program integrated in the system software
on a level change and on a warm restart. The flag area is reloaded when the relevant
program has ended.
This flag area can also be used to store intermediate results.
Flag area FY 200 - 223 is used in part by function blocks (see FB Package Description). If
the user does not require these function blocks, these flags can be used in the same
manner as those in flag area FY 25 - 199.
Caution:
Flag area FY 200 - 255 is also used in part by SIMATIC FBs. Flag area FY 200 - 255 is saved;
this setting is performed via PLC MD.
Data formats:
All word-oriented interface signals are input and output as fixed-point numbers. Exceptions
are expressly indicated.
1 DIAG-DB Diagnostic DB OS
2 STATUS-DB PLC status channel (up to SW2, not used in SW3), from OS
SW4 used for ”Rapid data channel” function
3 DATKAN-DB PLC data channel (up to SW2, not used in SW3), from OS
SW4 used for ”Rapid data channel” function
4 FM/BM-DB Error and operational messages OS
10 * NS KN 1 Interface NC channel 1 OS
11 * NS KN 2 Interface NC channel 2 OS
12 * NS KN 3 Interface NC channel 3 OS
13 * NS KN 4 Interface NC channel 4 OS
14 * NS KN 5 Interface NC channel 5 OS
15 * NS KN 6 Interface NC channel 6 OS
16-17 Reserved
28 SI Interface Signals for Safety Integrated FB
29 NS ELG GI signals and 611D signals (GI=gearbox interpolation) OS
30 * DEC MFU Decoded M functions (list) OS
31 * SPI SIG Interface for spindle-specific signals OS
32 * ACHS SIG Interface for axis-specific signals OS
33 Reserved CL
34 E-PU Input buffer, computer link CL
35 A-PU Output buffer, computer link OS
36 * DUE NC Interface for data transfer NC <-> PLC OS
37 * SER SCH. Data transfer control CL
38 RK : ZW-DB Status DB computer link OS
40 * NS BEDT. Interface for operator panel OS
41 * NS KK Interface for command channel OS
48 * NS COM Interface for NC/PLC communication OS
50 E : PLC 1 Input signals from PLC 1 880/880 GAZ only OS
51 A : PLC1 Output signals to PLC 1 880/880 GAZ only OS
52 E : PLC 2 Input signals from PLC 2 880/880 GAZ only OS
53 A : PLC2 Output signals to PLC 2 880/880 GAZ only OS
54 E : PLC 3 Input signals from PLC 3 880/880 GAZ only OS
55 A : PLC3 Output signals to PLC 3 880/880 GAZ only OS
56 E : PLC 4 Input signals from PLC 4 880/880 GAZ only OS
57 A : PLC4 Output signals to PLC 4 880/880 GAZ only OS
58 * MELD Interface for general messages OS
59 DB-ZENTRAL Central DB in link RAM 880/880 GAZ only OS
60 * MDG WO MD words operating system OS
61 * MDF WO MD words function blocks OS
62 * MDA WO MD words user OS
63 * MDG BI MD bits operating system OS
64 * MDF BI MD bits function blocks OS
65 * MDA BI MD bits user OS
66 IKO-DB Icon control in MMC OS
67 INT-MSTT Internal machine control panel OS
68 * SEA WO SE user words OS
71 * SEA BI SE user bits
Abbreviations: Note:
OS PLC operating system Data blocks marked * are generated and initialized by the PLC
CL Computer link operating system on each cold restart, after a general reset. These
SE setting data blocks are always reinitialized with every automatic cold restart.
FB Description of
Functions
Safety Integrated
DB
No. DB design. DB name Pack.
Abbreviations: Note:
OS PLC operating Data blocks marked * are generated and initialized by the PLC
system operating system on each cold restart, after a general reset. These
0 FB Package 0 blocks are always reinitialized with every automatic cold restart.
CL Computer link
Data blocks marked 1) are created contiguously according to the
UR User
tool management configuration.
1 FB Package 1
6 FB Package 6
DB
No. DB desig. DB name Pack.
Abbreviations: Note:
OS PLC operating Data blocks marked * are generated and initialized by the PLC
system operating system on each cold restart, after a general reset. These
0 FB Package 0 blocks are always reinitialized with every automatic cold restart.
CL Computer link
Data blocks marked 1) are created contiguously according to the
UR User
tool management configuration.
1 FB Package 1
DBs 150 to max. DB 182 are needed when tool management is used. The
actual number of data blocks depends on the "width" of the magazine
table (see documentation: SINUMERIK 840/840C/880/880 GA2, Function
Blocks for PLC 135 WB, Package 1 and 2: Tool Management).
FB
No. FB desig. FB name Pack.
Abbreviations: Note:
OS PLC operating system Blocks marked * are function macros which are integrated in
0 FB Package 0 the PLC operating system.
(see description of FUNCTION MACROS)
FB
No. FB desig. FB name Pack.
Abbreviations: Note:
OS PLC operating system Blocks marked * are function macros which are integrated in the
0 FB Package 0 PLC operating system
1 FB Package 1 (see description of FUNCTION MACROS).
4 FB Package 4 of
computer link
CL Computer link
FB
No. FB desig. FB name Pack.
121 Reserved 1
122 LEERPL2 Search for empty location with default 1
123 WZ-BS Prepare tool 1
124 UP: T=ID Subroutine tool search T = ident 1
125 UP: T=PL Subroutine tool search T = location 1
1
127 UP:ZW-SP 1
128 TRANSFER Transfer tool data 1
129 Reserved 1
130 TOS-VER Subroutine 1
131 UP: MD-B Subroutine MD bits 1
132 UP: MD-W Subroutine MD words 1
133 RI-AUSW Direction selection 1
134 TODAT-W Reserved 1
135 D-NR:WZW Prepare D number after tool change 1
136 WZDAT-LS Read tool data 1
137 Subroutine 1
138 DYN-PUFF Management of data I/O buffers 1
139 DAT-VERT Processing of data I/O buffers 1
140 UP: FB139 Subroutines of FB 139 1
141 UP: KC-0 Subroutines of FB 139 1
142 UP: KC1-4 Subroutines of FB 139 1
143 UP: KC5-7 Subroutines of FB 139 1
144 UP:KC8+9 Subroutines of FB 139 1
145 BEL-CDTR Load tool with code carrier 6
146 ENT-CDTR Unload tool with code carrier 6
147 CT-FORMAT Formatting 6
148 Reserved 6
149 Reserved 6
150 Reserved 1
151 Reserved 1
152 NP-SIF Subroutine 1
153 AD-AD Subroutine 1
154 RK: AW-SS User interface for CL (processing) 1
155 LOCHSTEG Punched tape input 1
156 STAZ/VWG Tool life monitor (prewarning limit) 1
157 STUE/VWG Monitor for no. of pieces (prewarning limit) 1
158 WZ-SPER Tool lockout 1
159 BCD-DUAL BCD/binary conversion 1
160 1) Central calling block 1
161 1) Subroutine check 1
162 1) Spare 1
163 1) Spare 1
164 1) Transfer tool selection 1
165 1) Reserved 1
166 1) Signal: load spindle 1
167 1) Signal: unload spindle 1
168 1) Acknowledge spindle 1
169 1) Spare 1
170 1) Assignments, buffer 1
Abbreviations: Note:
1 FB Package 1 Blocks marked 1) are part of the user interface example of tool
6 FB Package 6 management.
FB
No. FB desig. FB name Pack.
Abbreviations: Note:
1 FB Package 1 Blocks marked 1) are part of the user interface example of tool
management.
1 SI Self-start-up OS
2 Reserved
3 Reserved
4 Reserved
5 Reserved
6 Reserved
7 SIMULAT Simulation of a part program 1
8 WZ-GRIEP Presetting tool size via EPROM 1
9 Reserved 1
10 Reserved 1
11 Reserved 1
12 Reserved 1
13 Reserved
14 BEL-CDTR Load code carrier 7
15 ENT-CDTR Unload code carrier 7
16 UP-CDTR Subroutine code carrier 7
17 Reserved CL
: Reserved CL
21 Reserved CL
22 Reserved
23 Reserved
24 Reserved
25 Reserved
26 DAT-EIN PLC-controlled data input 8
27 DAT-AUS PLC-controlled data output 8
28 DAT-UHR Date/time 8
29 Reserved CL
30 Reserved CL
31 GRAYDUAL Gray code/binary converter 0
32 DUALGRAY Binary/gray code converter 0
33 RECHNEN Contour and technology calculation CP
34 MESSEN Measuring in JOG mode CP
35 RESREQ Triggering link bus reset 0
36 Reserved CL
37 Reserved CL
38 PRO-KO1 Program coordination (840C SW 2 and higher) 0
39 PRO-KO2 Subroutine FX 38 0
40 RK:WZABF Computer link, interrogate tool 5
41 RK: WZM Computer link, report tool 5
42 RK: WZBEL Computer link, load tool 5
43 RK: WZENT Computer link, unload tool 5
44 RK:WZBGB Computer link, load magazine assignment data 5
45 RK:KASSE Tool cassette processing 5
46 Reserved
47 Reserved
48 UPWZKASS Subroutine tool cassette processing 5
49 EA-TRAN Data transfer I/O buffer Tool management 5
50 UPWZDIAL Subroutine tool dialog 5
51 Reserved
: Reserved
54 Reserved
Abbreviations:
0 FB Package 0 8 FB Package 8
1 FB Package 1 OS PLC Operating System
5 FB Package 5 CP Cycles Package
7 FB Package 7 CL Computer Link
Caution:
1. Make sure that no confusion with SINUMERIK blocks is possible. The user must not utilize
a SINUMERIK standard block name, nor may he assign a SINUMERIK library number to
his user blocks.
2. In the range of FB 0 - FB 199
FX 0 - FX 99 SINUMERIK blocks have absolute priority.
If SINUMERIK blocks must be used at a later time that overlap user block numbers, the
user blocks must be given a new number.
END OF SECTION
FB 30 MUL:16
Multiplier:16
1. Description
The ”Multiplier:16” function block can be used to multiply two fixed-point binary numbers
(15+1 bits).
The result is a fixed-point binary number (31 + 1 bits).
Function: Y=AxB
Y = Z32, Z31; A = Z1; B = Z2
2. Block data
3. Block call
FB 30 MUL:16
Z31 – Q,W
4. Signal descriptions
Z3=0 Result = 0
A ”1” signal indicates that the arithmetic result is zero.
5. Program example
: L KF +512
: T FW 100
: L KF +1024
: T FW 102
: JU FB 30
NAME : MUL: 16
Z1 : FW 100
Z2 : FW 102
Z3=0 : F 104.0
Z32 : FW 106
Z31 : FW 108
FB 32 DIV:16
16-bit binary divider
1. Description
The ”Divider:16” function block is used to divide two fixed-point binary numbers (15+1 bits).
The result (quotient and remainder) is a fixed-point binary number (15 + 1 bits).
Function: A
Y = –––
B
Y = Z3; remainder = Z4
A = Z1, B = Z2
2. Block data
3. Block call
FB 32 DIV:16
I, W – Z1 OV – Q,BI
I, W – Z2 FEH – Q,BI
Z3=0 – Q,BI
Z4=0 – Q,BI
Z3 – Q,W
Z4 – Q,W
4. Signal descriptions
Z3, Z4 The result of the division is stored in Z3, the remainder in Z4.
5. Program example
: L KF +1025
: T FW 100
: L KF +512
: T FW 102
: JU FB 32
NAME : DIV: 16
Z1 : FW 100
Z2 : FW 102
0V : F 104.0
FEH : F 104.1
Z3=0 : F 104.2
Z4=0 : F 104.3
Z3 : FW 106
Z4 : FW 108
FB 33 DIV:32
Divider:32
1. Description
The ”Divider:32” function block divides two fixed-point binary numbers (31+1 bits).
The result (quotient and remainder) is a fixed-point binary number (31 + 1 bits).
Function: A
Y= ––––
B
2. Block data
3. Block call
FB 33 DIV:32
I, W – Z12 OV – Q,BI
Z32 – Q,W
Z31 – Q,W
Z42 – Q,W
Z41 – Q,W
4. Signal descriptions
OV Overflow
A ”1” signal signifies an overflow.
5. Program example
: L KF +8
: T FW 100
: L KF +1
: T FW 102
: L KF +4
: T FW 104
: L KF +0
: T FW 106
: JU FB 33
NAME : DIV:32
Z12 : FW 100
Z11 : FW 102
Z22 : FW 104
Z21 : FW 106
0V : F 108.0
FEH : F 108.1
Z3=0 : F 108.2
Z4=0 : F 108.3
Z32 : FW 110
Z31 : FW 112
Z42 : FW 114
Z41 : FW 116
FB 35 DIV/100
Divide by 100
1. Description
The "Divide by 100" function block divides a positive binary number (max. 6553500) by 100.
The result is also a binary number.
2. Block data
3. Block call
FB 35 DIV/100
I, W – Z12 Z2 – Q,W
I, W – Z11
4. Signal descriptions
Z2 Result
Word in which the result of the division is stored (must always be interpreted as a
positive number).
5. Program example
: L KF 10
: T FW 100
: L KF +1000
: T FW 102
: JU FB 35
NAME : DIV/100
Z12 : FW 100
Z11 : FW 102
Z2 : FW 104
FB 36 ADD:32
Adder:32 bits
1. Description
The ”Adder:32” function block adds two fixed-point binary numbers (31+1 bits).
The result is a fixed-point binary number (31 + 1 bit).
The function block additionally contains a scan of the result for "zero".
Function: Y=A+B
2. Block data
3. Block call
FB 36 ADD:32
I, W – Z11 OV – Q,BI
I,W – Z22
Z31 – Q,W
4. Signal descriptions
5. Program example
: L KF +4
: T FW 100
: L KF +256
: T FW 102
: L KF +2
: T FW 104
: L KF +128
: T FW 106
: JU FB 36
NAME : ADD: 32
Z12 : FW 100
Z11 : FW 102
Z22 : FW 104
Z21 : FW 106
0V : F 108.0
Z3=0 : F 108.1
Z32 : FW 110
Z31 : FW 112
FB 37 SUB:32
Subtracter: 32 bits
1. Description
The ”Subtracter:32” function block is used to subtract two fixed-point binary values
(31+1 bits).
The result is a fixed-point binary number (31 + 1 bit).
The function block additionally contains a scan of the result for "zero".
Function: Y=A-B
2. Block data
3. Block call
FB 37 SUB:32
I, W – Z11 OV – Q,BI
I,W – Z22
Z31 – Q,W
4. Signal descriptions
5. Program example
: L KF +8
: T FW 100
: L KF +512
: T FW 102
: L KF +4
: T FW 104
: L KF +256
: T FW 106
: JU FB 37
NAME : SUB: 32
Z12 : FW 100
Z11 : FW 102
Z22 : FW 104
Z21 : FW 106
OV : F 108.0
Z3=0 : F 108.1
Z32 : FW 110
Z31 : FW 112
FB 39 DUAL/BCD
3-decade binary/BCD converter
1. Description
If data words are to be converted, they must be located in a DB and this DB must be invoked
prior to conversion.
2. Block data
3. Block call
FB 39 DUAL/BCD
4. Signal descriptions
5. Program example
: L KF +1234
: T FW 100
: JU FB 39
NAME : DUAL/BCD
DUAL : FW 100
BCD : FW 102
FB 40 COD:16
Binary/BCD converter
1. Description
The ”Binary/BCD converter” function block converts a fixed-point binary number (15+1 bits)
into a signed BCD number.
2. Block data
3. Block call
FB 40 COD:16
BCD2 – Q,BY
BCD1 – Q,W
4. Signal descriptions
5. Program example
: L KF -32768
: T FW 100
: JU FB 40
NAME : COD: 16
DUAL : FW 100
SBCD : F 102.0
BCD2 : FB 103
BCD1 : FW 104
FB 41 COD:32
Binary/BCD converter
1. Description
The ”Binary/BCD converter” function block converts a fixed-point binary value (31+1 bits) into
a signed BCD number.
2. Block data
3. Block call
FB 41 COD:32
I, W – DU 2 SBCD – Q,BI
I, W – DU 1 BCD3 – Q,BY
BCD2 – Q,W
BCD1 – Q,W
4. Signal descriptions
5. Program example
: L KF +1024
: T FW 100
: L KF +4096
: T FW 102
: JU FB 41
NAME : COD: 32
DU 2 : FW 100
DU 1 : FW 102
SBCD : F 104.0
BCD3 : FB 105
BCD2 : FW 106
BCD1 : FW 108
FB 42 COD:B4
BCD/binary converter
1. Description
The"Binary/BCD converter" function block converts a BCD number (+/-9999) into binary.
2. Block data
3. Block call
FB 42 COD:B4
I, BI – SBCD
4. Signal descriptions
5. Program example
: L KH 1024
: T FW 100
: L KF +0
: T FW 102
: JU FB 42
NAME : COD: B4
BCD : FW 100
SBCD : F 102.0
DUAL : FW 104
FB 43 COD:B8
BCD/binary converter
1. Description
The ”BCD/binary converter” function block converts a BCD number (+/– 99 999 999) into
binary.
2. Block data
3. Block call
FB 43 COD:B8
I, W – BCD2 DU 2 – Q,W
I, W – BCD1 DU 1 – Q,W
I, BI – SBCD
4. Signal descriptions
5. Program example
: L KH 0419
: T FW 100
: L KH 4304
: T FW 102
: L KF +0
: T FW 104
: JU FB 43
NAME : COD: B8
BCD2 : FW 100
BCD1 : FW 102
SBCD : F 104.0
DU 2 : FW 106
DU 1 : FW 108
FB 110 SUCH
Search for word
1. Description
This block scans a specific data field for the specified search key. If the search key exceeds
one word, the related words may be located either in contiguous data words in a single data
block (serial) or in a group of corresponding data words in two or more data blocks (parallel)
(see figure). Information can be masked out by defining an appropriate mask.
The search key and the mask must be stored in free data words of the data block to be
searched prior to the scan.
If a value which is identical to the variable is found, the function block outputs the address of
the data word containing that value.
In the case of serial storage of data, where the information width exceeds one word, the
address of the high word is output, if it exists. Otherwise the low word is output.
DB n DB n+1 DB
DW0 DW0
Mask high word Mask low word DW1 (DWM) Mask high word DW1 (DWM)
.
.
.
.
DW40 (END) High DW39 (END)
word
2. Block data
3. Block call
FB 110 SUCH
I,BY – ANZ
I,BI – P/R
I,BY – ANF
I,BY – END
I,W – ZW
*F 2.1 – GST
4. Signal descriptions
ZW Status word
ENDE End of search operation (static signal)
GEF Found
Search key has been found (static signal)
ADR Address (binary)
DW number of data word containing the value found (= search key)
Note:
All values must be specified in binary.
5. Program example
: C DB 110
: L KH FFF0
: T DW 2
: L KH 1234
: T DW 1
: T DW 101
: L KH 1235
: T DW 100
: L KF +110
: T FY 100
: L KF +1
: T FY 101
: L KF +2
: T FY 102
: L KF +1
: T FY 103
: U F 0.0
: = F 104.0
: L KF +10
: T FY 105
: L KF +210
: T FY 106
: JU FB 110
NAME : SUCH
DB : FY 100
DWV : FY 101
DWM : FY 102
ANZ : FY 103
P/R : F 104.0
ANF : FY 105
END : FY 106
ZW : MW 107
ENDE : F 104.1
GEF : F 104.2
ADR : FY 109
FX 31 GRAYDUAL
Gray code/binary converter
1. Description
The ”GRAYDUAL” function block converts a Gray-coded numeric value (cyclically permuted
code) to a fixed-point binary number.
Representation
Decimal in Gray code
equivalent 5-digit
0 0 0 0 0 0
1 0 0 0 0 1
2 0 0 0 1 1
3 0 0 0 1 0
4 0 0 1 1 0
5 0 0 1 1 1
6 0 0 1 0 1
7 0 0 1 0 0
8 0 1 1 0 0
9 0 1 1 0 1
10 0 1 1 1 1
11 0 1 1 1 0
12 0 1 0 1 0
13 0 1 0 1 1
14 0 1 0 0 1
15 0 1 0 0 0
16 1 1 0 0 0
17 1 1 0 0 1
18 1 1 0 1 1
19 1 1 0 1 0
20 1 1 1 1 0
21 1 1 1 1 1
22 1 1 1 0 1
23 1 1 1 0 0
24 1 0 1 0 0
25 1 0 1 0 1
26 1 0 1 1 1
27 1 0 1 1 0
28 1 0 0 1 0
29 1 0 0 1 1
30 1 0 0 0 1
31 1 0 0 0 0
Fig. 1: Gray code
2. Block data
3. Block call
FB 31 GRAY DUAL
– %1
4. Signal descriptions
5. Program example
: L KF +1234
: T FW 100
: BA FX 31
NAME : GRAY DUAL
GRAY : FW 100
DUAL : FW 102
FX 32 DUALGRAY
Binary/Gray code converter
1. Description
2. Block data
3. Block call
FB 32 DUAL GRAY
– %1
4. Signal descriptions
DUAL Fixed-point binary number, 15 bits, permissible range: 0 to +32767, lowest bit: .0
GRAY GRAY-coded number, up to 15 tracks used (always positive)
5. Program example
: L KF +1234
: T FW 100
: BA FX 32
NAME : DUAL GRAY
DUAL : FW 100
GRAY : FW 102
FX 35 RESREQ
Triggering link bus reset
1. Description
Caution:
If the PLC machine data MD 6049.1, cold restart on reset=1, a PLC cold restart is always
triggered, independent of the ”NEUS” parameter.
The block is written in the C high-level language and must not be edited.
2. Block data
FX 38 PRO-KO1
Program coordination
1. Description
Function blocks FX 38 and FX 39 (SW2 and higher) support program coordination in the NC.
The PLC basic program checks the channel-specific NC coordination commands, conditions
them suitably for MC-5 and transfers them to the user interface. FX 38 and FX 39 check the
interface data blocks DB 10 - DB 25 (DW 52 - DW 55) for a coordination command and
evaluate it.
On cold and warm restarts, the entire user interface area for program coordination is reset in
the channel data blocks (DW 52 - DL 62). The buffer (DW 56 - DL 62) is erased on reset,
thus enabling restart of the NC part program.
2. Block data
3. Block call
FX 38 PRO-KO1
D, KF – NSBY –
– %1
4. Signal descriptions
NSBY Interface byte
Interface byte in DB 36 to initiate a program with FB 62
5. Program example
: BA FX 38
NAME : PRO-KO1
NSBY : KF+5 Unassigned interface byte e.g. ”5”
FX 81 IKONEN
Icon display (SW 2 and higher)
1. Description
The function block supplies the interface in DB66 for display of ICONS integrated in the MMC.
A maximum of 4 different icons can be displayed. They appear in the two right-hand of the
three icon fields underneath the system clock. The 1st icon field (far left) is supplied by the
MMC sitself, the 2nd and 3rd fields are supplied by the FX81 as follows:
Representation:
aaaaaa
a
aaaaaa
aaa
0%
a
aa
a
a
a
a
a
aaa
aaa
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
Program interrupted or Stop or Block Search
aaa
aa
aaaaaaaaaaa a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
aaa
aaaaaaa
aa
a
aa
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
aa
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
aaa
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
Program running
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
aaa
aa
a
aa
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
aaa
aaa
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
aaa
Axis traversing
aa
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa
aaa
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
Feed override = 0%
aa
aa
aaa a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
aaa
aa
aa
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
The icons are displayed for all channels and axes.
Axis traversing: As soon as an traversing command for any axis is active and
the overrride at the machine control panel is set to 0%.
Override = 0%: When feed override is on 0% at one or more machine control
panel.
Program running: If the signal ”Program running” is active in any channel.
Program interrupted: If the signal ”Program running” is not active in any channel
and if, in addition, a program interrupt has been triggered in
any channel by means of STOP, change of mode or
M00/M01 or if block search has been activated. In the case
of single block operation, ”Programm interrupted” is dis-
played after the respective block has been executed.
2. Block data:
3. Block call
FX 81 IKONEN
Block data:
Processing time 0.2 ms
Nesting depth: 0
Block length: 100
Assigned variables: FW 250, FW 254
Call length: 4
4. Program example
: = F...
: DO FX 81
NAME : IKONEN
: A I...
FX 82 STERNDRE
Star-delta switchover
1. Description
The function block, "Star-delta switchover" (SW 3 and higher) performs a defined reversing
logic (time-controlled) from a star to a delta connection and vice versa. The block must be
called up separately for each spindle.
The function block can only be used with digital main spindle drives. Two separate contactors
perform the switchover which is executed in the following four steps:
Step 1: Interface signal "Motor selection made" cleared and switchover process
signalled with motor selection bit 0
Step 4: After another delay, the drive receives a message that the switchover has
been successfully completed.
2. Block data
Lib No.:
FBs to be loaded: FX 82
3. Block call
FX 82 STERNDRE
D,KT – TW
T – T
– %1
4. Signal description
5. Program flowchart
aaa aaaaaa
aaaaaa
aaaaaa
aaaaaa
aaaaaa
aaaaaa
aaaaaa
Initial setting?
aaaaaa
aaaaaa
aaa
n Y
Clear status data
aaaaa
aaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaa
aaaaaaaa
aaaaaaaa
aaaaaaa
Parameter test ?
aaaaaa
aaa
aaaaaa aaa
aaaaaa aaaaaa
Y n
aaaa
aaaaaa
aaaaaa
aaaaaaaa
aaaaaa
aaaaaa
aaaaaa
aaaaaa
aaaa
aaaaa
Delay time still running?
Determine flag for
delay time used
aaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Y n
a aaaaaaaaa
aaaaaa
aaaaaa
aaaaaa
aaaaaa
aaaaaa
aaaaaaaaa
Switchover running?
aa
aa
aa
a
n Y
aa
aa
a
a
a
Check spindle no. aaa
a
a
a
a
a
a
a
a
a
a
a
a
a
aaaa
Edge available?
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa a
a
a
a
a
a
a
a
a
a
a
a
a
a
Error? a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
aa
a
aaa
n Y
aa
aa
a
a
n Y a
aa
aa
a
aa
aa
a
aa
aa
a
a
a
a
PLC stop
aaaaa
a
a
a
a
a
a
a
a
a
a
a
a
a
aaaaa a
a
a
aaa
Sequence processor
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
switch
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
Step 1: – Delete acknowledge bit ”Motor selection mode” (DB 31, DW K+74, bit 5)
– Set motor selection bit according to switching command (DB 31, DW K+74,
bit 3), K = 0, 4, 8, 12, 16, 20.
Step 2: Is not executed until pulse disable signalled by the drive and motor selection
acknowledged
– Switch on contactor 1
– Start defined delay time
END OF SECTION
3.1.1 General
The FBs for error messages (EMs) and operational messages (OMs) are not called by the
operating system. They must be loaded in the PLC and called accordingly.
The bytes for error and operational messages are defined via PLC machine data.
17 45 47 48 49 50 51 54 55 56 57 58 59
Explanation of table:
The table provides information on the desired functions and the functions blocks to be
loaded/called.
(x = only load FB, *= load and call FB)
The functions comprising error messages, operational messages and message groups operate
independently of each other and can be implemented in any combination.
FB45 FB51
CRB (cold
restart Generate lists of EM and
Common to branch) OM bytes
EMs and OMs
FB48
Scan FMs
FB54
FB FM-
***) ANZ
*) Call only if PLC-MD signals from/to channel, axes, spindles are set
**) Call only if a bit at the interface has changed.
***) Call only possible with softkey "PLC interrupt" in PLC1.
Scan OMs
Coordinate
Operational buffer entry
messages only
FB55
FB BM-
***) ANZ
*) Call only if PLC-MD signals from/to channel, axes, spindles are set
**) Call only if a bit at the interface has changed
***) Call only possible with "PLC messages" softkey in PLC1
The program parts (FBs) for EMs and OMs can be used jointly or as alternatives.
Message groups (MGs) are displayed irrespective of whether the PLC machine data for
error messages or operational messages or no MD is set.
Program structure:
FB59
UP MG-
ABFR
Scan MGs
Message groups
only
FB56
FB MG-
***) ANZ
Display MGs
A message is unambiguously assigned to each set bit in the interface signals provided for this
purpose.
Application:
Display of messages which are not to be shown on the message line (second line on the NC
monitor).
:
: JU FB45 EM and OM initial state
Name : GST-FMBM
:
:
: JU FB48 EM and OM auxiliary signals
Name : FMBM:HSG
:
: JU FB57 Scan EMs *)
Name : FM-ABFR
:
: JU FB58 Scan OMs *)
Name : BM-ABFR
:
: JU FB59 Scan MGs *)
Name : MG-ABFR
:
: JU FB17 PLC status channel
Name : STATUS
:
FB 54, FB 57
Scan and display error messages
1. Description
PLC error messages can be displayed on the screen of the SINUMERIK 840C by means of
function blocks FB54, FB57.
The bytes for error messages are defined via PLC machine data.
The function blocks must be loaded in the PLC *). They must be called in the user program
because they are not called in the operating system.
Structure and description of the error messages are discussed in the Interface Description.
2. Block data
FB 55, FB 58
Scan and display operational messages
1. Description
PLC error messages can be displayed on the screen of the SINUMERIK 840C by means of
function blocks FB54, FB57.
The bytes for error messages are defined via PLC machine data.
The function blocks must be loaded in the PLC *). They must be called in the user program
because they are not called in the operating system.
Structure and description of operational messages are discussed in the Interface Description,
Part 1: Signals.
2. Block data
FB 56, FB 59
Scan and display message groups
1. Description
PLC message groups can be displayed on the screen of the SINUMERIK 840C by means of
function blocks FB56, FB59.
The message groups are displayed irrespective of whether the machine data for error
messages or operational messages is set. A message is assigned to each set bit.
The function blocks must be loaded in the PLC *). They must be called in the user program
because they are not called in the operating system.
Structure and description of message groups are discussed in the Interface Description,
Part 1: Signals.
2. Block data
The blocks for scanning and displaying alarms (error messages, EMs) and messages
(operational messages, OMs) are not called by the PLC operating system. They must be
loaded into the PLC and called accordingly in the ramp-up branch (OB 20) or cyclic branch
(OB 1).
Blocks to be loaded/called
FB FB FB FB FB FB FB FB FB FX FX
Functions 45 46 47 48 49 50 51 57 58 73 74
Ramp up * x
Notes:
• * =ˆ load and call block, x =ˆ load block
• FB 46 only has to be called for alarm and message expansion.
• The error and operational messages are enabled or defined via the PLC machine data.
• All the required data blocks (DB 4, 76, 77, 78 and 79) are set up by FB 45 (GST-FMBM)
on cold restart.
• The function macros FX 73 and FX 74 are used to send and receive information packages
to/from the MMC.
aa a a a
a aaaa
aaaa
aaaaaa
aaaaaaaaaa
aaaa
aaaa
aaaa
a aaaaaa
aaaa
a aaaa
aaaa
aaaaaa
aaaaaaaaaaaa
a aaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
3.2.2
a
a
a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
aa
a a
aa
a a
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
a
aaa a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
aa
a a
aa
a a
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
FB 46
FB 51
FB 45
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
a a
program
ERWEIT
ANLAUF
a aaaa
aaaa
aaaaaa
aaaa
aa aaaa
aaaa
aaaa
aaaa
aaaaaaaa
aaaa
aaaaaa
aaaa
aaaaaa
aaaa
aa aaaaaa
aaaaaa
aa aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Ramp-up
UP:FB 45
a
a a
aaaa
aaaa
aaaaaa
aaaa
aa aaaa
aaaa
aaaa
aaaa
aaaaaaaa
aaaa
aaaaaa
aaaa
aaaaaa
aaaa
aa aaaaaa
aaaaaa
aa aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Cyclic user
a
a a
aaaa
aaaa
aaaaaa
aaaa
aa aaaa
aaaa
aaaa
aaaa
aaaaaaaa
aaaa
aaaaaa
aaaa
aaaaaa
aaaa
aa aaaaaa
aaaaaa
aa aaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaa
data
a a a a aa a aa aa aa a a aa a a aa
a a aaaaaaaaaa aaaaaaaaaa
DB 63
Axis
Machine
a a a a a a aa aa a a a a a aaaa
DB 58
Alarms
DB 32
Alarms
DB 31
Spindle
aa
a aa
a aaaa a aaa a aaaaaaaaaa aaaaaaaaaa
Channel
Messages
Messages
DB 10...15
aa
a aaaaaa a aa
a
aa
aaaa
aa a aa
aaaaaaa a a
aaaaa
aa
a a aa
aaaa aaaaaaaaaa aaaaaaaaaa
aaaaa aaaaa
a
a a a a a
a
aaa
a
aaa
a
aaaaa
a
aaaaaaaaa
a
aaa
a
aaa
a
aaa
a a
aaaaa
a
aaa
a a
aaa
a
aaa
a
aaaaa
a
aaaaaaaaaaa
a a
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa aaaaaaaaaaaaaa
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa aaaaaaaaaaaaaa
FX 74
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
Alarms
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa aaaaaaaaaaaaaa
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaaaa
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
DB 4
OEM-EMPF
DB 79
DB 78
DB 77
DB 76
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaa
MMC
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaaa
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa
a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
FB 57 FM-ABFR
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaa
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaa
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa
a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
FB 50 UP:FB49
FB 49 UP:57/58
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaa
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
DB FM/BM
FM/BM-DB
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaa
FB 47 PSP:FMBM
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
FB 48 FMBM:MMC
a a aa aa a aa aa a aa aa aa a
QUIT FM/BMa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaa
QUIT FM/BM
QUIT FM/BM
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaa
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaa
a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaa
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaa
a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaa
FX 73
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa
Messages
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaa
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaa
a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaa
a
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaa aaaaaaaaaaaaaa
FB 58 BM-ABFR
aaaaaa
aaaa
aaaaaa
aaaa
aa aaaa
aaaa
aaaa
aaaa
aaaaaaaa
aaaa
aaaaaa
aaaa
aaaaaa
aaaa
aa aaaaaa
aaaaaa
aa
OEM-SEND
a a aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa
aaaaaaaaaaaaaaaaaaa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaa
aaaaaaaa aaaaaaaa
aaaaaaaa aaaaaaaa
PLC
aaaaaaaa
MMC
aaaaaaaa
aaaaaaaa
3.2 Error and operational messages (840C SW 3 and higher)
3–11
3 Data Sheets for Scanning/Displaying Messages
3 Data Sheets for Scanning/Displaying Messages 10.94
3.2 Error and operational messages (840C SW 3 and higher)
Example
:
: JU FB 45 Initial settings for EMs & OMs
Name : ANLAUF
: JU FB 46 Expansion for DB 58*)
Name : ERWEIT
:
:
: JU FB 48 EM & OM auxiliary signals
Name : FMBM:MMC
:
: JU FB 57 Scan EMs *)
Name : FM-ABFR
:
: JU FB 58 Scan OMs *)
Name : BM-ABFR
:
FB 45 ANLAUF
Initial settings for error messages and operational messages
1. Description
FB 45 (ANLAUF) must be loaded and called in the ramp-up branch (OB 20). This block does
the following:
• Sets up all the required data blocks (DB 4, 76, 77, 78 and 79)
• Clears data areas
• Presets data
• Prepares machine data for quicker access
2. Block data
Lib. No.:
FBs, FXs to be loaded: FB 45, FB 51
FB 57 FM-ABFR
Scan error messages
1. Description
PLC error messages can be displayed on the screen of the SINUMERIK 840C with function
block FB 57.
The bytes for error messages are defined in the PLC machine data.
Structure and description of the error messages are discussed in the INTERFACE
DESCRIPTION, PART 1 - SIGNALS.
2. Block data
FB 58 BM-ABFR
Scan operational messages
1. Description
PLC operational messages can be displayed on the screen of the SINUMERIK 840C with
function block FB 58.
The bytes for operational messages are defined in the PLC machine data.
Structure and description of the error messages are discussed in the INTERFACE
DESCRIPTION, PART 1 - SIGNALS.
2. Block data
On a machine control, functions are often required which call for a sequence of events, such
as a change in the stage in the machine process, tool change etc. As long as a sequence of
this type does not include more than a few steps you can still implement it as a logic control.
If, however, the sequence is longer, it is too complicated to be implemented as a logic control.
It is then better to describe and control such sequences with a sequencer. This has the
advantage that it is
• easy to design,
• simple to program and
• simple to test
Moreover, you can find the cause of an error quickly by reading the current step.
Fig. 4.1 shows the general structure of a drive control implemented with a sequencer. In
addition to the sequencer with its steps, subordinate individual control elements are required to
actuate and monitor the drive. The sequencer is subordinate to a function block which
organizes and checks the sequence.
FB AK
X (X+1) Function block to call and check the sequence
SB0 (1)
n ANZ
– «Start» STA
Individual control:
Sequencer:
Interlock condition (I.)
SBx
Start conditions
Drive X
«Start» SBx+1
SP
S1 IS Drive X forwards 1 F BV
tW Delay 2
1 F BZ
2
RMV
SBx+2 RMH
S2 IS Drive Y on 1
tuE Timeout –
I.
1
Drive Y
SP
F BE
F BA
SBx+n
Sn IS Drive X back . 1
RME
SP Acknowledge start – RMA
1
& Transfer flags
The sequencer consists of steps that contain the commands and step enabling conditions. If
required, the start can be made dependent on start conditions.
The commands and step enabling conditions of a step are put together in a sequence block.
The controlling function block only calls the current step. The commands in this step are then
output and the associated step enabling conditions scanned (Fig. 4.2). This is repeated until
the step enabling conditions have been fulfilled. When the conditions have been fulfilled the
nonretentive timers are reset and the next step called.
OB 1
SB 11
PB
FB AK 3 Commands
DB Step 1
DW Scans
Load 0
current SB 1 SB No.
No. into SB 12
C DB DW1
JU FB
SB 1: 11 Step 2
ANZ: 5
JU PB STA: F...
n
RLO1)=1
j
Call SB 15
current
step with
RLO 0 Step 3
SB No.+1
Set RLO to
”1”
Call
current
block
The command signals from the sequencer are passed on to the subordinate individual controls
through transfer flags. The individual control controls and monitors the drivers. This means that
you only have to program the commands and step enabling conditions for each step in the
sequencer.
Fig. 4.3 shows the required program structure for a drive control implemented with a
sequencer.
The parameters that the controlling function block requires in order to be able to organize the
sequencer are:
• the number of the sequence block with the first step or the start conditions
• the number of steps and
• the number of the flag by which the sequence is started.
OB 1
PB...
JU PY...
A F Start
conditions FB AK SB x
A F
S -ST Step 1
Q DB
JU FB SB x+1
Param. Step 2
SB1: X
ANZ: n
STA: -ST
• FB SLIDE
• SB x+m
•
Step n
JU FB Param.
SP: -SP X
BV: -X
VOR
BZ: -X ZUR
• FB FAN
•
•
JU FB Param.
SP: -SP Y
•
•
•
BE
Fig. 4.4 shows the basic programming rules for the sequencers.
tw: L KT . . .
SE T . . . Delay
Scans:
1 A I... Step enabling conditions
2 A T...
•
•
• End of a sequence block
BE
&
S6
S3
S2
S1
aa
aaa a aa a a aaa aa a aaa aa aa a aaa aa aa a aaa aa a a aa aaaaaaaaaaaaaa
S 12
a
aa
a a
a a
a a
aa
a a
a a a
a a
a a
aa
a a a
a a
a a
aa
a a
aa
a a a
a a
a a
aa
a a
aa
a a a
a a
a a
aa
a a
a a
a a
aa aaaaaaaaaaaaaa repeated.
aaaaaaaa a aaaaa a aaaaaaa a aaaaaaa a aaaaaaaa a aaaaaaa
a
aa
a a
a a
a a
aaaa
a a
a a
a a
aaaa
aaaa
a a
a a
a a
aaaa
aaaa
a a
a a
a a
aaaaaa
aaaaaa
a aaaaaaaaaaaaaa aaaaaaaaaa
aa a a aa a a a a a a aa a a a a a aa a a a aa a aa a
SP
4.1.1 General notes
a
a
a a a a
aaaaaaaa a
a a
a
a a a
aaaaaaaa
a a
a
a a a
aaaaaaaa
a
aaaa
a a aa a
a
a aa
aaaaaa aaaa
a
aaaaa aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Start
a
aa
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
aaaa
a a
a a
a a
a a
a a
aaaa
a a
a a
a a
a a
a
a
a a
a a
aaaa
a a
a a
aaaa
a
aaaaaaa aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aa a a aa a a a a a aa a a a a a aa a a a aa a a aa a a aa aaaaaaaa aaaaaaaaaaaaaa aaaaaa
aa
aaaaaaaaa
aaaaa
a a
a a
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
aa
a a
a aa
a aaaa
a a
a a
a a
aa
a a
a a
a a
aa
a
a aaaaaaaaaaaaaa aaaaaaaaaa
a
aa
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
a a
a
a
a a
a a
a a
aa
a a
a a
a a
aa
a
aaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaa
a
aa
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a aa a a aa a a aa aaaaaaaa
a aa a a aa a a aa aaaaaaaaaaaaaa aaaaaa
a
aa a a aa a a a a a a aa a a a a a aa a a a aa a a aa a a aa aaaaaaaa
a a a aa a a a a a a aa a a a a a aa a a a aa a a aa a a aa
aaaaaaaaa aaaaaaaa
a
aa a a aa a a a a a a aa a a a a a aa a aaaa a a aa a a aa aaaaaaaa
a a a aa a a a a a aa a a a a aa a a a a a aa a a a
aaaaaaaaaaaaaa aaaaaaaa
aaaaaaaa a aaaaaaa a aaaaaaa a aaaa a aaaaaaaa a aaaaaaaa aaaaaaaaaaaa
4 Data Sheets for Sequencer Blocks
aa a a aa a a a a a aa a a a a aa a aa a a aa a a a
aaaaaaaa
Start conditions
Acknowledge start
aa
aaaaaaaaa
aa a aa
a aaaaaaaa a aa
a aaaaaaaa a aa
a aaaa aa
a aaaa
aaaaaa a
a
aa
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
a a
a
a
a a
a a
a a
aa
a a
a a
a a
aa
a
aaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaa
a
aa
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
a a
a
a
a a
a a
a a
aa
a a
a a
a a
aa
a
aaaaaaaa aaaaaaaaaaaaaa
a aa a a a aa a a aa
SB 32
SB 26
SB 23
SB 21
a aa a a aa a a aa
aaaaaaaaaa aaaaaaaa
aaaa a a aaaa a aa aa a a a a aa a aa aa a a a a aa aaaaa
SB 20 1)
a
a a aa a a a a a aa a a a aa aa a
aaaaaaaa
a a
a a
aa
a
a
a
a
a a
a a
a
a
a a
aa
a
a
a
a
a a
a a
a
a
a a
aa
a
a
a
aaa a
&
S7
a a aa a a a aaaa a a aaaa
S 11
a
a a aa a a aaaa aa a a aa aa aa a
a a
aaaaaa a
a
aaaaaaaaaa
aaa
a
aaaa aa
aaaa
aaa
a a a a a a
a aaaa
a
aaa
a a a aaaa
a
aaa
a a a
a a
a a
a a aa a a a aa aa a
a a a a
a
a
a
a
a a
a
a
a a
a
a
aa
a
a
a
a
a a
a
a
a a
a a
a aa a a a a a aa a aaaaaa
a
a a a a
a
a
a
a
a a
a
a
a a
a
a
aa
a
a
a
a
a a a aa
a a a a aa a a a aa aa a
a
a
a
a
a
a
a
a
a a
a a
a a aa a a a aa aa a a aa
a a a a
a
a
a
a
a a
a
a
a a
a
a
aa
a
a
a
a
a a a aa
a a a a aa a a aa aa a
a
a
a
a
a
a
aa
a aaaaaa aa
aa a aa aa
a
a
aa
a aa aa
aa aa
a
aa
a a a a aa a a a aa aa a a
a a a a aa a a a aa aa a
a
a
a
a
a
a
a
a
a a
a a
a a aa a a a aa aa a a aa
a a a a
a
a
a
a
a a
a
a
a
a
a
a
aa
a
a
a
a
a a a aa
a a a a aa a a a aa aa a
a
a
a
a
a
a
a
1)
a a a a aa aa a a a a aa a a a aa aa a a aa
Branch conditions
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a a
a
a
a
a
a a
a
a
a
a
a
a
aa
a
a
a
a
a a a aa
a a a a aa a a a a a aa a a aa aa a
a a aa
aa aa
a aaa aa aa
a
aaaaaaaa
aa
a
aa
a aaaaaaaa
a
aa
a aa
a
aa
a
a a a a aa aa a a a a aa a a a aa aa a
a
As the examples show, all the steps in an OR branch belong to the same sequencer.
a a a a aa aa a a aa aa a a a a a a
_______
a a a a aa aa a a a aa a a a a aaaaaa a
in step 2, either steps 3 to 6 or steps 7 to 11 are executed. In Fig. 4.6 steps 2 and 3 are
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a a
a a a a aa a a a aa aa a
a a a a aa aa a a
a a
a
a
a a
aa
a
a
a
a
a a
a a
a
a
a a
aa
a
a
a
a a a a aa aa a a a a aa a a aa aa
a a a a aa aa aaaaaaa a a a a a aa aa
a aaaa
a a a a aa aa a a aaa a
a aaaaaaa a a a aa a a
aaaaa
not with FB 92
a a a a aa aa a a aa a a aa a a
Figs. 4.5 and 4.6 show sequencers with OR branches. In Fig. 4.5, depending on the condition
a a a a aa a a a aa a a aa a a aaa
aa
Fig. 4.6
aaaa
a
a aa
a a
a
a
a
a aa aa
&
a
a a
aa
a a
a
a
a
a aa
aaaaaaa
a
a aaa
a aa a
aa
a aaaa
a
a a
a a
aa
a
a
a a aa
a aa
Branching conditions
a a
aaaaaa
aaaaaaaa
aaaa
E
aaaaaa a aaaaaa a a a aaaaaa
aaaaa a a aaaaaaaaaaa a
aaaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaaaaaa
aaaa a a a a aa a a a a aa a a a a a a a a a a a a
&
a a a aa a a a a aa a a a a a a a a a a a a
aaaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaaaaaa
S5
S4
S3
S2
S1
a
a a
a a
a a
aa
a a
a a
a a a
a a
aa
a a
a a
a a
a a a
a a
a a
a a
a a
a a
a a
a a aaaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaa a aaaaaaa a aaaaaaaa a aaaaaaaa aaaaa aaaaaaaa
a a a aa a a a aa aa a a a a a a aa a a a
a a a aa a a a a aa a a a a a a a a a a a a
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
a a a aa a a a a aa a a a a a a a a a a a a
aaaaaaaa
SP
a a a aa a a a a aa a a a a a a a a a a a a a
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
a a a aa a a a a aa a a a a aaaa
aaaa
a a a a a a a a a
aaaaaaa aaaaaaaaaaaaaaa
Start
a a a aa a a aa a a a a a aa aa a a a aa a a
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaa aaa a aa aa aaa
aaaaaaaa aaaaaaaaaaaaaaaa
aa
a
aaaaaa
aaaa a aa
a
aa
aaaaaa a a aa aa
aa
a
aaaaaaaaaa a
a a a aa a a a a aa a a a a a aa aa a a a a a a a a aaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaa
a a a aa a a a a aa a a a a a aa aa a a a a a a a a
a a a aa a a a a aa a a a a a aa aa a a a a a a a a
aaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaa
a
a a
a a
a a
aa
a a
a a
a
a
a a
a a
aa
a a
a a
a a
a
a
a
a
a a
aa
a a
aa a a a a a a a a
a a a a a a a a a aaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaa
a a a aa a a a a aa a a a a a aa aa a a a a a a a a
a a a aa a a a a aa a a a a a aa aa a a a a a a a a
aaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaa
a
a a
a a
a a
aa
a a
a a
a
a
a a
a a
aa
a a
a a
a a
a
a
a
a
a a
aa
a a
aa a a a a a a a a
a a a a a a a a a aaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaa
a
a a
a a
a a
aa
a a
a a
a
a
a a
a a
aa
a a
a a
a a
a
a
a
a
a a
aa
a a
aa a a a a a a a a
a a a a a a a a a aaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaa
a a a aa a a a a aa a a a a a aa aa a a a a a a a a
Start conditions
1)
a
aaa
a
aaaaa
a a a a a aa a a a a aa a a a a a aa aa a a a a a a a a aaaaaaaaaaaaaaaa aaaaaaaa aaaaaaaaaaaaaaaa
a aa a aa a a a a aa a a a a aa a a a a a aa aa a a a a a a a a
a aa a aa a a a a aa a a a a aa a a a a a aa aa a a a a a a a a aaaaaaaaaaaaaaaa aaaaaa aaaaaaaaaaaaaaaa
Acknowledge start
a aa a aa a a a a aa a a a a aa a a a a a aa aa a a a a a a a a
a aa a aa a a a a aa a a a a aa a a a a a aa aa a a a a a a a a aaaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaaaaaa
a aa a aa a a a a aa a a a a aa a a a a a aa aa a a a a a a a a
Step enabling conditions
Step enabling conditions
_______
a aa a aa a a a a aa a a a aa a a a a a a a a aa a a a
a
a aa a aa a a a a aa a a a a aa a a a a a a a a a a a a
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aa a aa
aa a a a aa a a a aa a a a a a a a a a a a
a aaa aa aaa
aa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
a aa
aaaaaa
a aa
a
aaaaaa
aaaa aa
a
aaaaaa aa
a
aaaaaaaaaa
a
a aa a aa a aaaaaaaa aaaaaa aaa aaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaa
aa a aa a aaaaa a aaaaa a aaaa
not with FB 92
a
a aa a aa a a a aa a a aa a a aaa aaaaaaaa aaaaaaaa aaaaaaaaaa
aa a
aaaaaaaaa a a aa a a aa a a aaa
a a a aa a a aa a a aaa aaaaaaaa aaaaaaaa aaaaaaaaaa
a a aa a a aa a a aaa
SB 20 1)
SB 15
SB 14
SB 13
SB 12
SB 21
4 Data Sheets for Sequencer Blocks
4–7
aaaa a aaaaa a aaaaa aaaa aaaa aaaaa
a
a a
a
aa
aa
aaaaa
4–8
a
a a
a a
a
a
a
aaaaaaaa
Fig. 4.7
a
a a
aaaa
a a
a a
a a
a a
a a
aaaaaa
a a
a a
aa
a a
aaaa
a a
a a
a a
a a
a
a
a a
aaaa
aa
a a
aaaa
a aaaaaaaaaaaaaa aaaaaaaa
a a a a a a a a aa a a a aa a a a a a aa a aa
&
S6
S3
S2
aaaa a a a a aaa a aa aaaa a aa a aaaa a aaaaa a aa aaaaaaaaaaaaaa aaaaaaaa
S 12
a
a a
aa
a a
a a
a a
a a a
a a
a a
a a
aa a
a a
aa
a a
a a
aa
a a a a aa a aaa a aa
a a aa a aaa a a aaaaaaaaaaaaaa aaaaaaaa
aaaaaaa a aaaaa a aaaaaaa a a a aa aaaaaaa a aaaaaaa
a a aa
aaaaaaaa
a a aa
Please note:
a aa a a a a a
aaaaaaaa
a aa a a a aa a aa a a a aa a a a a a a a aa aaaaa a aaaa a aaaaaaaaaaaaaa
2
1
2
1
aa a a a aa a a aa a a a aa a aaaa
a a a aaaa
a a a a aa a a a a a a a a a a
aaaaaaaa
IS
IS
SP
SP
4.1.1 General notes
aa a a a aa a a aa a a a aa a a aa a a a aa a aaaa
aa
aaaa
aaa a aa a a a aaaa a aaaaaa
a aaaa
a aaaaaaaaaaaaaa
BE
aa a a a aa a a aa a a a aa a a aa a a a aa a a aaaaaa a a a aa a aa a aa aaaaaaaaaaaa aaaaaaaa
aa
aa a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a
a
a a
a a
aa
a a
a a
a a
a a
a a
a a
a a
a
a
a
aa
a
a
a aa
aa a
aaaa
aa a
aaaaaaaaaaaaaa aaaaaaaa
R -Y
aa a a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a aa a a aaaaaaaaaaaaaa
SB 26:
aa a a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a aa aaaa
aaaaaa
aa a
aaaaaaaa
aa a a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a aa aa
a aa a aa a aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa a aa a a a a a a aa a a aa a aa
aaaaaaaa
T DW 0
L KB 12
aa a a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a aa a aaaaaaa a
aaaaaaaaaaaaaa
Branching
aaaaaaaaaaaaaaaaaaaaaaaaaa a aa a a a a a a aa a a aa a aa
aaaaaaaa
A -Y OFF
condition A
aa a a aa a a a a a a aa a aaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaa
aaaaaaaa
aaaaaaaaaa
aaaaaaaa
aaaaaaaaaa
aa a aa a a a a a a aa aaaaaaaa a
aaaaaaaa
A -X BACK
aa a a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a a
aaaaaaaaa
Drive Y on
Drive Y off
aa a a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a aaaa a
aaaaaaaa
aa a a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a
aaaaaaaaaaaaaa
aa a a a aa a a aa a a a aa a a aa a a a aa a aaaaaaa a aaaa a aaaaaaaaaaaa
aaaaaaaa
4 Data Sheets for Sequencer Blocks
aa a a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a
= -X REVERSE
aaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaa a aaaa a a a a aaaaaaaaaaaaaa aaaaaaaa
Drive X reverse
a aa a a a a a a aaaa
aa aaaa
a
Drive X forwards
aaaaaaa a aaaa a aa a aa aaaaaaaaaaaaaa aaaaaaaa
aaa aa aaaaa a aa
S7
aa
a aa
aaaaaa a aa
a aa a a aaa a aa
aaaaaaaa
a
a a
aa
a a
a a
a a
a a
a a
a a
a a
aa
a a aaa a
aaaaaaa a
a
aaaaaaaaaaaaaaaaaaaaa aaaaaaaa
2
1
a
a aa a a a a aaaaaa
a a aa aa a a a a aaaaaaaaaaa
aa a a a a a aa a aa
aaaaaaaa
a aa a a a a aaa aa a aa aaaaaa aaaaaaaaaaaaaaaaa
2
1
2
1
a aa a a a a a a aa a aa
aaaaaaaa
a aa a a a a a aa a aa
aaaaaaaaaaaaaa
aaaaaaa a a a aa a aa aaaaaaa
aaaaaaaaaaa
SB 32
SB 26
aa a a a aa aaaaaa
aaaaaa
a
aaaa a a aaaa a aa aa a a a a aa
aaaaaa
a
a a a aa a aa a aa a
a a aa a aa a aa a
aaaaaaaaaa
a a a aa a aa a aa a
&
a a a aa a aaaaaa aaaaaa
S 11
a a a aa a aa aa aa
Sequence block with OR branch (AK 2, 3):
a a a aa a aa a a a aa a a a a a a a a a a a a a a a
aaaaaaaaaa
a a aa a a aa a a a aa a aaaa
a a a aaaa
a a aaaaa a aaaa
aaaaaa
aaa a aaaaaa
aaaa
a aaaa
aaaa
aaaaaa
aaaaaaaaaaaa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a a aa a a aa a a a aa a a aa a a a aa a a a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaa
BE
BE
a a aa a a aa a a a aa a a aa a a a aa a a a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa
a a aa a a aa a a a aa a a aa a a a aa a a a a a a a aa aa a aa aa a aa aa a a aa a aa a
BEC
a a aa a a aa a a a aa a a aa a a a aa a aaa a a
aaaa a
aaa
a a a a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2
1
a a aa a a aa a a a aa a a aa a a a aa a a aaaa
aa a a a a a a a aa aa a aa aa a aa aa a a aa a aa a
IS
tw
SB 31:
SB 22:
a a aa a a aa a a a aa a a aa a a a aa a aaaa
aa
aaaaaa a
a aa a a a a a a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
A I...
A I...
A I...
A I...
a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a a aa aa a aa aa a aa aa a a aa a aa a
T DW0
S F...
= F...
A -TUE
SE -TUE
Fig. 4.7 shows the programming rules for branching and joining.
a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a a a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
= -Z ON
a
a
a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a
a
a a
a
a
a a
a
a
a
a
a a
a
a
a
a
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
L KB 7 1)
a
a
a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a
a
a
a
a
a
a a
a
a
a
a
a a
a
a
a
a
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
L KT 100.1
a
a
a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a
a
a a
a
a
a a
a
a
a
a
a a
a a
a
a
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a aaaaaaaaaaaaaaaaa
a a aa a a aa a a a aa a a aa a a a aa a a aa a a a a
A br. cond. B
A br. cond. A
a a aa a a aa a a a aa a a aa a a a aa a aaa a aa
aa
a
1) aaaa
aaaa
aaaaaa
aaaa
aaaaaa
aaaa
aa aaaaaa
aaaaaa
aa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a a aa a a aa a a a aa a a aa a a a aa aa
a aa
aaaaaa
a a a
aaaaaa
aaaa
aaaa
a aa a a aa aa a aa aa a aa aa a a aa a aa a
A -Z RUNNING
a aaaaaaaaaaaaaaaaaaaaaa a aa a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Drive X on
aaaaaaaaaaaaaaaaaaaaaaa a a aa a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaa
DB is no changed the step number is incremented by 1 (linear sequence).
a
a a
aa
a a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a a a a a a a aa aa aa aa a a aa aa a aa aa a a aa a aa
Delay on 10 s
a
a a
aa
a a a a a a a a aa aa aa aa a a aa aa a aa aaaaaaa
aaaa
a a a aa a aa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a aa a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a
a a
aa
a a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a aa a
a
a
a
a
a a
a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a aa a a a a a a
aa
a aa
aaaaaaaaa aaaaaa
aaaa
aaaa
aaaa
aaaaaaaa
aaaa
aaaaaa
aaaa
aaaaaa
aaaa
aa aaaa
aaaaaa
aa
a aa
a a aa aa aa aa a a aa aa a aa aa a aa aa aa
a aa a aa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
step to which the branch is to lead is loaded to data word 0 of the current data block.
For a branch, first the step enabling conditions and then the branching conditions are
a aa a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
Branching
after DW 0
conditions
conditions
a aa a aa a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Commands
a aa a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
Loading the
a aa a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2
1
a aa a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
the branch is to lead
Step enabling
sequence No.
a aa a a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a aa a a a a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a
aaaaaaa a a
aaaaaa a a a aa aa aa aa a a aa aa a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a a a a aa aa aa a
No. of the step to which
programmed (after the commands). Straight after the branching conditions the number of the
a a aa a a a aa aa aa a
Evaluation is performed automatically by the main sequencer block. If the DW0 of the current
a a aa a a
E1
06.93
aaaaaaaa
aaaaa
Fig. 4.8
a
a a
a a
aa
a aa a aaaaa a aaaaaa a aaaaaa a a
a a aa a aa a a a a a aa aa a a a aa aaa aaaa
a a a
aaaaa aaaaaaaaaaaaaa
E1
a aa
aaaa
aa
a a
aa
a a
a a
aa
a a
a a
a
a
a a
a a
a a
aa
a a
aa
a
a
a a
a a
a a
aa
a a
aa
a
a
a a
a a
aa
a a
a a
aa
a
a
a aaaaaaaaaaaaaa
S5
S4
S3
S2
S1
a
aa
a a
a a
aa
a a
a a
a
a
a a
a a
a a
aa
a a
aa
a
a
a a
a a
a a
aa
a a
aa
a
a
a a
a a
aa
a a
a a
aa
a
a
a aaaaaaaaaaaaaa
aaaaaaaa aaaaaaa aaaaaaa aaaaaaa aaaaaaa
a
aa
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aaaa
a a
aaaa
aaaaa a
a a
a a
aaaaaaaaaaa a
aaaaa a
aaaa
aaaaaaaa
a a
aaaaaa
a aaaaaaaaaaaaaa aaaa
aa a aa a a a a aa a a a aa a aa a a a aaa a a a a a a a a a a a a a a aa a a aa a aa a
2
1
2
1
SP
SP
SP
SP
SP
a
aa
a a
a a
aa
a a
a a
a a
a aaaa
aa
aaaaaaa a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
a a
a a
a a
aaaa
a
aaa
aa
a a
a aa
aa
aaaa
aaa a
a a
a a
a a
a a
a a
a a
a aaaa
aa aaaa
aaa a
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a
aaaaaaaaaaaaaa aaaaaaaa aaaaaaaa
a
a a
aaa a
aa
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aaaa
a a
aaaa
a a
a a
a a
a a
a a
aa
a a
aa
a a
a a
a a
a a
a a
aaa a
a a
a a
a a
a a
a a
aaaa
a a
a a
aaaa
a a
aaaa
a a
a
aaaaaaaaaaaaaa aaaaaaaa aaaaaaaa
a
aaa a
a a
aa
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
a a
a a
a a
aaaa
a a
aa
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a
aaaaaaaaaaaaaa aaaaaaaa aaaaaaaa
a a a aa a aa a a a aa a a a aa a aa a a a a aa aa a a a a a a a a a a a a aa a a aa a aa a aaaaaaaaaaaaaa aaaaaaaa
aa a aa a aa a a a aa a a a aa a aa a a a a aa aa a a a a a a a a a a a a aa a a aa a aa a Start AK 1
aaaaaaaa
a a a aa a aa a a a aa a a a aa a aa a a a a aa aa a a a a a a a a a a a a aa a a aa a aa a aaaaaaaaaaaaaa aaaaaaa
aa a aa a aa a a aa a a a aa a aa a a a a aa aa a a a a a a a a a a a aa a a aa a aa a aaaaaaaa
aa aaa a a aa aa a aaa aaa aaaaaaaaaaaaaa
a aaa aa
aaaaaaa
aaaa a aa
aaaaaaaaaaa
aaaaaa
aaaaaa
a aa aa a aa
a aaaaaaaa a aa
a aaaaaaaa
aaaaaaaa
aaaaaa a aaaaaaaa
a a aa a aa a a aa a a a aa a aa a a a a aa aa a a a a a a a a a a a aa a a aa a aa
aaaaaaaa
a a a a a a
AK 4 executed
AK 3 executed
Start AK 2
Start AK 3
Start AK 4
a
a
aa
a
a a
aaaaa
a a aa aaa
a a
a a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a a
a
a
a
a
a a
a
a
a a
a
a
a aaaaaa
a a a a a
a a
a aaaaaaaaa
a a a aa a a aa aaaa
a aa
a aaaaaaaa aaaaaaaa
Command X
a aaa aaaaaaaa a aaaaaaaaaaaaa aaaaaaa a aaaaaaaaaaaaaa a aaaaaaaaaaaaa aaaaaaaa
Main sequencer
Start conditions
a
aaaaa
aaaaaaaa
aa a aa a a a aaaaaaaaaaaaa
a a a a aa a aa a a a
aaaaaaa
a a a a a a a aaaaaaaaaaaaaa
a a a a aa a a aa a aa a aaaaaaaaaaaaaa aaaaaaaa
aaaa
aaaaaaaa a aa
a a a a aa a aa a a a aaaaaaa a aaaaaaaaaaaaaa a aaaaaaaaaaaaaa
a
aa
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a aaaaaaaaaaaaaa
a
aa
a a
a a
aa
a a
a a
a a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
a a
a a a
a a
a a
a a
a a
a a
a a a
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a aaaaaaaaaaaaaa
aaa aaa aaa aaa
-
-
2
1
2
1
aa a aa a a a aa a a a aa a aa a a a a a a a a a a a a a a aa a a aa a aa a
aa a aa a a a aa a a a aa a aa a a a a a a a a a a a a a a aa a a aa a aa a
aaaaaaaaaaaaaa
aa a aa a a a aa a a a aa a aa a a a a a a a a a a a a aa a a aa a aa
aaaaaaa a aaaaaaaaaaaaa aaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
a aaaaa a a a aa aa a a
aaaaaaa aaaaaaaa
a a aaaa
a a a a a aaaa
a
SB
SB
SB
SB
SB
aaaaaaa a aaaaaa
aa
aaaaaaaa a a a
aaaaaaaa aaaaaaaa
a a a a aaaaaa
a a a aaaa a a a a aaaaaa aaaaa
E2
aa a a a a a a aaaaaaaa
a aa aa a a aa a aa a a a a a aa a a a a a a a
a aa aa a a a aa a aa a a a a a a a a
aaaaaaaa
E2
a
a aa aa a a a aa a aa a a a a a a a a a a a a aaaa
aa aa a a a aa a aa a a a a a a a a a a a a
S4
S1
a
a aa a aa a aa a a a a a a a a a a a a
aa a aa a aa a a a a a a a a a a a a
a
a a
aa
a
a aa a
aaaaaaaaa
a
a a a a
aaaaaaa a a a a
aFa
a a
a a
a
a
a aa a a a aa a a a a a a
aa a aaaa a aa a a a a a
SB
SB
a aa a a aa a
Sequencer 2
a a aaaaaa
a aaaa
aaaa a
a a
a a
a
a
a
a
a
a a a a a
E3
a a a a a a
a
aaa
a a aa a a a a a a aa a a a a a a a
aa aaaaa
a a
aaa
a a
aaa
a a a a a a a a a
E3
a
a aa a a aa a aa a a a a a a a a a a a a
aa aa
aaaa
a a aa a aa a a a a a a a a a a a a
S7
S1
a
a aa a aa a aa a a a a a a a a a a a a
aa a aa a aa a a a a a a a a a a a a
F
a
a aa a aa a aa a a a a a a a a a a a
a a
a
a aaaaaaa a a a aaaaaaa aa a a
a
a a
a
a
a a
a a a a aa a a
aa a aaaaa a aaaa a
SB
SB
a a a aa a a
aa
a a a a
aaaa
aa
1)
Sequencer 3
a a a aa a a a a aaaa aa
a aaaa
parallel with AND branching, a separate sequencer is required for every branch.
a
a a a aa a a aaaa
a a
a a
a a
aa
a a
a
a
a a
a a
a a
a
a
a
a
a
a a a aa a a a a a a a
E4
the last step of the subordinate sequencer and are scanned in the main sequencer.
a
a a a aa a a a a a a a a
a a aa a a aaaa
a aa a a a a a a aa a a a a a a a
It is advisable to create one sequencer as a main sequencer which starts and checks
a a a aa a a a aa aaaaa
a a
aaa
a a
aaa
a a a a a a a a a
_______
E4
a a a aa a a a aa a a aa a aa a a a a a a a a a a a a
a a a aa a a a aa aa
aaaa
a a aa a aa a a a a a a a a a a a a
S6
S1
a a a aa a a a aa a aa a aa a a a a a a a a a a a a
a a a aa a a a a a aa a aa a a a a a a a a a a
F
not with FB 92
a a a aa a a a aa a aaaaa a aa a aaaa a
also used to scan whether the subordinate sequencer has terminated. These flags are set in
The figure shows a sequencer with AND branching. Because the branches have to be run in
SB
SB
a a a aa a a aa a a aa a
Sequencer 4
aaaaaaa a a a
aaa aaaa aa
a aaaa
a
4 Data Sheets for Sequencer Blocks
4.1.1 General notes
4–9
a
a a
a
aa
a a a
aaa
aaa
aa a aaaaaaaa
a aa a a a aa a
4–10
a aa a a a aa a aaaaaaaa
Fig. 4.9
a
a a
aa
a
a
a a
a a
a a
aa
a
a
a aaaaaaaa
a
a a
a aa a aa a a a a aa
aaaa a a a a
aaaaaa a a a a a a a aaaaaaaa
a aaaa
a aaaa a aaaa a a aa a a a aa a aaaaaaaaaaa a aaaaaa
aaaaaaa
E2
a a aa a a aa a a aa a a a aa a a aa a a aa a a a aa a a a aaaaaaaaaaaaaaaaaa
a
aaaaaa
sequencer.
aaaaaa
a a aa a a aa a a aa a a aaa a a aa a a aa a a aa a a a aa a a a a
S4
S4
S3
S2
a aa a a aa a aa a a a aa a a aa a a aa a a aa a a aa a a a
aaaaaaaaaaaa aaaaaaaa
a aaaaaaa a a aa a a a aa a a aa a a aaaaaaa a a aaaaaa a a aaaaaa
Please note:
aaaaaaaa a aa a a aa a a aa a aaaaaaaa aaaaaaa aaaaaaaa
aaaaaaa
aaaa a a a aa a a aa a aaaaaaa
a aa a a aa a a aa a
4.1.1 General notes
a
a a
aaaa
a
aaaa
a a a aaaa
a aa
a a
a a
a a
a
a
a a
a a
a a
aa
a
a a
a a
aaaaaa
a aaaaaaa aaaaa
a a a a a
a a
a
aaaaa
aa a a a
aaaa
a
aaaaaaaaaaa
a a a
aaaaaaaa
a aa a aaaa a aaaa a a a aa aaaaa a aaaaaaa a a aa a a a aa
a a aaaa a a aa aa a a a a aaaa a a a a aa aaaa a aaaaaaaaaaa aaaaaaaa
2
1
2
1
IS
IS
IS
a aa a a aa a a aa a a aa a a aa a a a aa a a a aa a a aa a aaaaa aa aaa
aa a aaaaa
a a a aa a a a a aaaaaaaa a aa a aa a aaaaaa
SP
SP
SP
SP
SP
SP
SP
a aa a a a
aaaaaa a aaaa
a aa
a
a a
a aa aa aaaa aaaaaaa a
a a
aa
a
a aaaaaaa
a a a aa a a a aa a a
aaaaaaaa aa a a
aaaa
aa
aaaaaaaaa a a aa a a aa a
aaaaa a aaaaaaaaaa
a a aa a aa a aaaaaaaa
21
4
- START AK
aa
a aa
aa a aa a a aa a aaaa aa
aa aaa aaaaa aaa a aa a aa
a aaaa
aaaaaa aa a a aa a a aaa a a a aa
a aaaa a a a aaaa
a
aaaaaaaaaaaaaaaaaa
a aa a aaaaa aaaaaaaa
a aa a a aa a aa a a a aa a a a aa a a a aa a a aa aa aa a a a a a aa a a a a aa a aa a
Main sequencer:
a
a a
aa
a a
a
aaaa
a aa
a
a a
a a
aa
a
a
a a
a a
a a
aa
a
a
a a
a a
a a
aa
a a
a a
a a
a
aaaaaaa
aa a a aa
a
a a aaa a a a a a aaaaa a aa aaaaaaaa
a aaaa aa a a aa aa a a aa
aaaaaaaaaaaaaaaaa
a aa a
AK 4 executed
AK 3 executed
STA
ANZ
Start AK 2
Start AK 3
Start AK 4
a aa a aaaa a a aa a a aa aa a a aa a a a aaaaaaa a a a a aaaaa a a aa aaaa a aaaaaaaa
SB 1
a aa a a aa a aa a aaaaaa
aaaa aaa a a aa a a a aa a a aa aaaa
aa
aaaaaaa a a aa a a a aaa aa aaaaaaaaaa
Command z
Command y
Command X
a
aaaa
aaaa
aaaa
aa
a a aa
aaaa a aaaaaaaa
a a
aaaaaa
aaaa aaaa
aaaaaaa
a a a aa
a a
aaaa
aaaa
aa a a
a a aa
aaaa
aaa
aa
a a
a aaaaaaaaaaaa
aaaa a a aa aaaa a aaaa a
AK 2 executed
R. command U
a
aaaa
aaaa aa a aaaa a a
aaaa aa
aa aa aaaaaaaa
a a aa a a
aaaaaa a a a a
aa aa
aa aaaa
aa aaaaaaaaaaaaa
a aa a a
aaaaaaaa aa a a
aaaa
a a
a a a aa a a a
aaaaaaaaaaaaaaaa a a aa a a a aa
aaaaaaaa a a a aa a aa a
a aa a a aa a aa a a a aa a a a aa a a aa a a aa a a
aaaaaaaaaaaaaaaaaaaa
a aa a aaaa a a aa a a a aa a a a aaaaaaa a a a aaaaa a a
a a
aa
a a
aaaa
a a
a aaaaaaaaaaa
a
a a
aa
a a
a a
a aa
a
a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
a a
aa a
a a
a aa
a
a
a a
a a
a a
aa
a a a
a
a
a a
a a
aa
a a
a a
aa
a a
a aaaaaa
a aa a aaaa a a aa a a a aa a a a aa
a a aaaa a a a aaaa a a a aa
1
1
2
1
2
1
2
a aa a a aa a a a aa a a a aa a a aa a a a aa a a a a 1
aa a aa a aaaaaaaaaaaa
a
a aa a a aa a a a aa a a a aa a a aa a a a aa a a a a aa a aa a aaaaaa
aa a a
aaaaaaaa aa a a aa a a a aa a a aa a a aa a a a
a aaaaaaaaaaaaaa a aaaaaaa a aaaa
aaaaaa
aaaaaaaaaaaaaaa
a a a a a
a aaaa
a a a
aaa
a a
aaa
aaa
aaaaaaaa
SB
SB
SB
SB
a a a
aaaaaa
a aaaaaa
a aaaa
aaa
aaaaaaaa
a ”retentive” command which you must cancel after the ”joining”.
•
•
•
a
a a
aaaa
a a
a a
aa
a a
a a
a a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaaaa
a
aaa
a
a
a
aaa
a
aaa
a
aaaaa
a
aaaaaaaaa
a
aaa
a
aaa
a
aaa
a
a
a
a
a
a
a
aaa
a
aaa
a
aaaaa
a
aaaaaaaaaaa
a
a
a
aaaaaaaaaaaaaaaaaaaaaaaaaa
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a
BE
a a aa aa a aa aa a aa aa a aa aa aa aa a a a a
BE
a aa a aa aa a a aa a aa a
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaa
signalled to the subordinate sequencer as a ”nonretentive” command.
a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a a
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
aa
a a
aa
a a
a
a
a
a
a a
aa
a a
aa
a a
a a
aa
a a
aa
a a
a a
a a
aa
a a
a a
aa
a a
a aaaaaaaaaaaaaaaaaaaa
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a
SB 24:
SB 14:
SB 13:
SB 12:
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaa
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaa
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaa
a aa a a aa a a a a a a a a aa aa aa aa aa aa aa a a a aa aa a aa aa a aa aa a aa aa aa aa a a
a aa
a aaa aaa aaaa
aaaa
aaaaaa
aaaa
aa aaaaaa
aaaaaa
aa
= - AK 2END
A - AK 4END
A - AK 3END
A - AK 2END
a
aa
a
aaaaaaaa
aaaaaaaa a aa
a aaaaaaaa
aaaa
aaaa
aaaa
aaaa
aaaa
aaaa a aa
a
aaaaaa
aaaa
aaaaaa
aaaa
aaaaaa
aaaa
aa aaaa
aaaa
aaaa
aaaa
aa a a aa aa a aa aa a a aa a aa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
1. If you program the start of a subbordinate sequencer and the scan for completed
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaaaaaaaaaaaaaaaaaaa
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a
R - START AK 4
R - START AK 3
= - START AK 2
S - START AK 3
S - START AK 4
a aa a a aa a a a aa a a a a aa aa aa aa aa aa aa a a a aa aa a aa aa a aa aa a aa aa aa aa a a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaa
S - COMMAND Z
= - COMMAND Y
S - COMMAND X
R - COMMAND U
example for the parameterization of a subordinate sequencer and the last step of a main
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a aaaaaaaaaaaaaaaaaaa a a a a aa aa a aa aa a aa aa
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a aa aa aa aa a
a
a
aaaa
aaaa
aaaaaa
aaaa
aa aaaaaa
aaaaaa
aa aaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa a
3. Program the setting of the fla with which completed execution of the main sequencer is
2. If you program the scan for completed execution in a different block, program the start as
Fig. 4.9 shows the programming rules for ”branching” and ”joining” in the main sequencer, for
execution in the same step, program the start as a ”nonretentive” command (assignment).
Please note:
If you reset the starting flag to abort execution you must also reset the flags set in the steps of
the sequencer. The nonretentive commands are automatically reset.
When you have selected a step you can switch over to ”Step control” without conditions. To
prevent impermissible commands being output because of this switchover, you must program
the appropriate interlocking conditions for the subbordinate individual control modules.
The structure of the drive circuit required for forwards and backwards operation is shown in
Fig. 4.10. The controlling function block not only organizes the execution of the sequencer, but
also influences the subordinate actuators. You must observe the following points with forwards,
backwards and JOG mode.
1. In the steps, you must program not only step enabling conditions for forwards mode but
also the ”Step enabling conditions” for reverse mode. The step enabling condition is
selected by the signal ”Control backwards” (STR).
2. The individual control modules must have an input for reversal of the command direction
(UMST) which is also controlled by the signal ”Control backwards”.
3. The actuators whose movements are to be stopped by JOG mode must have an input for
”JOG mode” and an input for ”JOG”. If the input ”JOG mode” carries a ”1” signal, the
retentiveness of commands is suppressed if the actuator is not in an end position. In JOG
mode, commands are only output to the actuator as long as the input ”JOG” is carrying a
”1” signal (exception: end position reached).
FB AK 2:V/R
• •
• •
• •
H/A
SST+ STR
SST- TIPB
TIP+ TIP
TIP-
SVOR
• •
• •
• •
} Start conditions
Start Drive X
S1 IS Drive X forwards 1 M BV VV
1 (RMH) tw Delay 2
M BZ
UMST VZ
TIPB
1 (RMV)
& 2 TIP
R S2 IS Drive Y on 1
1 (RMA) tü Timeout – Drive Y
1 (RME) M BE
& S3
M BA
R UMST
Sn IS Drive X reverse 1
tw Delay 2 Individual control
Control signals modules
for forward, reverse and
Sequencer JOG mode
Fig. 4.10 Sturcture of a drive circuit for forwards and backwards mode
With this sequencer you can control composite mechanical movements manually in any
direction. If a part of the motion is to be skipped, you can select the required step using ”Step
selection”. Switchover from step selection to step control (SST+) is only possible if the
required step enable or power on conditions are fulfilled (programmed in the previous step).
Interlocking conditions for the subordinate individual control modules are therefore not needed
in most cases.
aaaaaaa
aaaaaa
SB n
Fig. 4.11
aaaaaaa
aaaaa
R
&
R
&
Please note:
1
a
aaaa
aaa a
1
commands.
aaaaaaaaa
a
a a
a a
a a
a
FB 91 (AK 2:V/R).
a a a a
S3
a a a a
Sn
a a a a
Sn
SB 27
a
a a
a a
a a
aaaa a
&
Sn
IS
a
2
1
a aaaaa
a
IS
tw
1
a
aaaa
aa
aaa aaaa
S7
Delay
1
a aaa
1
a
aaaa
aa
a
STR
Drive Y forward
STR
Cond. branch B
1
2
1
IS Drive Z open
.
=
=
a a a a a a a
A
A
A
A
A
A
A
A
A
A
a a
aaa
a
aaaaa
a
aaaaaaaaa
a
aaa
a
aaa
a
aaa
a a
aaaaa
a
aaa
a a
aaa
a
aaa
a
aaaaa
a
aaaaaaaaa
a
aaa
a
aaa
a a a
aaa
a
aaa
a
aaaaa
a
aaaaaaaaaaa
a a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
BE
BE
SE
AN
AN
AN
a
a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a
a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
BEC
BEC
LK7
aa aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa aa aa aa a aa aa a a aa a aa a
a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
SB 22:
step number for backwards mode into DW 1 of the current DB.
T DW 0
a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a
a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
.
.
.
aa a a
A
a a aa a aa a a a aa a aa
A
a a
A
a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
K.....
BE
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a
- STR
- STR
- STR
- TUE
- STR
- STR
- TUE
BEC
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
LK2
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a
SB 27:
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
T DW 1
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a
a
aa
a a
a a
a a
a a
a a
aa
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
a a
a a
a a
a a
aa
a a
aa
a a
a a
a a
a a
a a
aa
a a
a a
aa
a a
a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaa
Step block without branching: forwards and reverse (AK 2)
AN - STR
- STR
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a a
aa
a a a aa a aa aa a aa aa aa aa a a aa aa a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aa aa a aa aa a aa aa a a a aa aa a aa aa a a aa a aa a
a
- Cond. bra. B
- Cond. bra. A
aa
a
aaaaaaaaaaaa
aaaaaa
aaaaaaaaaa
aaaaaa
aaaaaaaaaaaa
aaaa
aaaaaaaaaaaa
aaaa
a a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a a aa aa a aa aa a a aa a aa a
- X REVERSED
- Y ADVANCED
- Y ADVANCED
- Y ADVANCED
- X ADVANCED
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaaaaaaaaaaaaaaa
- Z OPEN
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa aa a a aa aa a aa aa a a aa a aa a aaaaaaaaaaaaaa
- Y FORWARDS
- X FORWARDS
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa a a aa a aa aa a aa aa aa aa a a aa aa a aa aa a aa aa a aa aa a a a aa aa a aa aa a a aa a aa a
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
- Z CLOSED
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa
aa a a a a aa a aa a a a aa a aa a a a a aa aa a a a a aa a aa
aa a
aaaa a a
a a
a a
aa
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
a a
a a
a a
a a
aa
a a
aa
a a
a a
a a
a a
a a
aa
a a
a a
aa
a a a a a a a
a a aa a a a aa a a a a aaaa
aaaa
aaaa
a a aaaaaa
aaaa
a a aaaa
aaaaaaaa
a a
aaaaa
a
aaaaa
a a
aaaaaaaaaaaaa
a a aa a a a aa a a a a a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a
a
a a aa a a a
a aa a a a a a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a aaaaaa
aaaaaa
aaaa a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a
a aaaa
aaaaaaaaa a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a aaaaaa
2. With branches, the step number for forwards mode must be loaded into DW 0 and the
1. Actuators for forwards, backwards and JOG mode can only be actuated by conditional
a a aa a a a aa a a a a a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a
forwards
forwards
forwards
forwards
a a aa a a a aa a a a a a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a aaaaaa
branching
a a aa a a a aa a a a a a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a
backwards
backwards
backwards
a
a a aa a a a aa a a a a a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a aaaaaa
a aa a a a aa a a a a a aa aa aa a a a aa aa a a aa aa aa a a aa aa a a aa a
Fig. 4.11 shows the programming rules for forwards and backwards mode of a sequencer with
a a aa a a a aa a a a a a aa aa aa a a aa aa a aa aa a a a aa aa a a aa a aaaaaa
Conditions for
Conditions for
Conditions for
Conditions for
Conditions for
Conditions for
Conditions for
4–13
aaaaaa
aaaaaaaa
4 Data Sheets for Sequencer Blocks 06.93
4.1.1 General notes
3 STEP DISPLAY
4
5 SEQUENCE SEQUENCER TOOL CHANGE STEP --
6 _AUT _VOR _ST+ _ST- _TP+ _TP– _RLO
7
8 SR NO FUNCTION SR NO FUNCTION
9 01 START CONDITIONS 06 END
10 02 GRIPPER RIGHT 07 .................
11 03 GRIPPER BACK 08 .................
12 04 RELEASE GRIPPER 09 .................
13 05 GRIPPER LEFT 10 .................
14
15
16
17
OB 1 PB 1
JU PB 1 PLC aux.
programs
PB 2
JU PB 2 NC oriented
FBs
PB 3
JU PB 3 Enable
DB
SB 1
PB 4
S DW Step
y JU PB 4 O F FB AK 3 0 1
s O F 1 SB No.
t S F 2 •
e C DB •
3 •
m JU FB 92
AK3 :AUT 4
5 ZW 1 SB 5
p :
r ZW 1 :DW 5 {6 ZW 2 Step
o ZW 2 :DW 6 •
g 5
•
r PB n
a •
m JU PB n User
OB 20 program
JUFB 10
GST-PC
JU FB 11
EINR-DB
OB 21, 22
JU FB 10
GST-PC
• Sequencer stopped
• Execution aborted
• Interruption through power off
Sequencer stopped
The sequencer is processed as long as input STA (Start) is carrying a ”1” signal. If the signal
changes to ”0”, execution is interrupted and the sequencers stopped. Execution continues
from the point of interruption when input STA has changed to ”1” again. In this way,
mechanical movements for which several steps are required can easily be stopped, e.g. for
setup purposes.
Execution aborted
Execution aborted means that execution of the sequencer is interrupted and the sequencer
goes into its initial setting (the last step).
This is achieved with the reset input R. If this input changes to ”1”, processing of the
sequencer is interrupted the assignments and timers in the current step are reset and the last
step (initial setting) is called.
It is advisable to reset all flags in the last step that can have been set by the sequencer during
execution. In this way you can be sure that the sequencer is in a defined initial setting no
matter where it was interrupted.
The constants for forwards mode must be loaded into DW 0 and for reverse mode into DW 1
of the current DB.
With SST+ and Tip+ step enabling from the first step to step ”0” is not possible.
First select step ”0” with SVOR.
With branches to an impermissible step, the number of the sequence block or step last
processed can be taken from the status words (ZW 3 and ZW 4).
2. Supplementary information
Lib. No.: E88530-B 5491-A-_ _
FBs to be loaded: FB 91
DBs to be loaded: None
Type of FB call: Unconditional
DBs to be input: DB for status words
Error messages: FLFZ, FGST
Error with system stop: %1: Sequence block not in the PLC or error step No. (e.g. branch to
an impermissible step)
3. Block call
FB 91 AK 2:V/R
$F 3.1 – NST – %1
$F 2.1 – GST ZW 3 – $ FW 244
$F 0.7 – TB ZW 4 – $ FW 242
$:= defined
parameters
4. Signal descriptions
SB0 Number of the sequence block for step ”0” (starting conditions).
ANZ Number
Number of the step without step 0; permissible number of steps: less than 64
H/A Manual/automatic
”0” = Automatic mode (continuous signal)
”1” = and rising edge of SVOR, SST+/- or TIP +/- = manual mode.
STA,R Start or enable automatic, reset
Inputs STA and R are not active in the manual modes. See FB92 (AK3:AUT) for
description.
SVOR Step selection
Using SVOR and H/A = ”1” you can select any step in the sequencer. If the signal
SVOR is active for longer than 0.5 seconds, the sequencer moves to the step
whose conditions are fulfilled.
No commands are output; internal edge evaluation.
SST+ Step control forwards,
Begin
Cold restart
y n
Initial setting
n y
R=1
y
n
Set step
Mode register
n y n y y n
y n
Manual AK 3
END
FB 92 AK 3:AUT
Sequencer automatic
1. Description
The function block organizes simple sequences without modes with up to 63 steps per
sequencer.
Behaviour of the sequencer;
STA = ”0”, R = ”0”: The current step is executed if RLO = ”0”. No further execution.
STA = ”1”, R = ”0”: The current step is executed if RLO= ”1”. The RLO of the current
step is evaluated.
R = ”1”: The current step is executed if RLO= ”0” and then the last step is
executed if RLO= ”1”. The timeout TUE is reset.
Change of STA signal from ”0” to ”1”:
• AND branching and AND joining must be implemented using several sequencers.
• OR branching and OR joining can be implemented in any way.
• With branching to an impermissible step, the PLC goes into the stop state. The step
number last executed is stored in status word 2. The commands (assignments) are rest.
• If a branch is made to the first step, the sequencer is executed again if STA = ”1”.
• The constant for an OR branch must be loaded into DW 0 of the current DB.
The last step must only contain commands, no scans and branches. The last step is called
with the state of input STA (if R = ”0”).
2. Block data
Lib. No.: E88530-B 5492-A-_ _
FBs to be loaded: FB 92
DBs to be loaded: None
3. Block call
FB 92 AK 3:AUT
$F 3.1 – NST – %1
$F 2.1 – GST AZW 2 – $ FW 244
$:= defined
parameters
4. Signal description
SB 1 Number of the first sequence block of the sequencer (= first step).
ANZ Number
Number of steps including step 0.
STA Start and enable automatic
STA = ”0”: Sequencer is not executed.
STA = ”1”: Sequencer is executed.
If the sequencer is in the last step, the sequencer is restarted on the
signal change of the input STA from ”0” to ”1”.
R Reset
If input R carries a ”1” signal, the current block is called if RLO = ”0” and then the
last block is called of RLO = ”1”; the timer specified at input TUE is reset.
TUE Timer cell of the timeout.
Start the timeout in the current step.
The timeout is automatically reset in the last step if RLO= ”1”.
DBZW Data block for status words of the sequencer.
ZW 1 Status words
ZW 2 Inputs for the numbers of the status words. Two data words are assigned.
FLFZ Error runtime
Error runtime; timeout TUE elapsed. The error is reset if STA = ”1”.
FGST Error initial setting
Operational message is output if the sequencer is not started and is not in the initial
setting.
(STA = 0 and the sequencer is not in the last step the so-called initial setting step.)
NST Cold restart
On NST = ”1” the step registers and flags are reset.
GST Initial setting
On a warm restart (GST = ”1” signal) the status flags are reset. If during this time in
R carries a ”1” signal, the sequencer goes into the initial setting (last step).
AZW 2 Output for status word 2
The current step number is located in the high byte of AZW 2 and the current
sequence block number in the low byte.
Begin
Cold restart
n y
Initial setting
n y
Auto
R=1 R=1
n y
y n
AK 2
Sequencer in last step Reset step
Current step register
with RLO=0 and STA from 0 1
y n
Reset status
flag
Step register to Step register to Current step with
last step first step status of STA
Reset TUE
STA=1 STA=1
y n n y
END
Figure 4.16 shows the block diagram for the complete gear change. Gear changing is triggered
by the commands M 41, M 42, etc., that are stored as flags for starting gear changing. With
these, the sequencer is started. Commands are output by the sequencer both to the NC and
to the subordinate individual control module (not in this example). For the signals read-in
disable, feed disable, spindle stop and set direction of rotation that do not only come from the
sequencer but are also dependent on other criteria it is advisable to perform logic operations
on the various signals so that the cause is always recognizable.
NC PLC
NC M word M decoding
M change
M03 M04 ... M 41 M 42
R S Starting flag
Switch
direction
Disable read-in
Sequencer
1 D S=0
Disable feed
Spindle
control 1 D
Mesh Gear
Spindle stop gear drive
D M
1
Gear
Select oscillation speed meshed
Spindle in set range
M
Actual gear stage
Gear
Spindle
Fig. 4.17 shows the structure of the program for the example. In the program block for the
spindle control (PB), first the logic operations for start and reset of the sequencer are
programmed. Then the sequencer with which the gear change is controlled is called. Then the
signals are transferred to the interface.
PB spindle control
from OB 1
O – F 41
Start of the
sequencer O – F 42
S – START AK
AN – START AK SB
Resetting the A – T-RESET
sequencer • Step 1
•
= – RESET AK
FB
C – DB-K 1
Transfer •
signals to • Step 5
interface •
to OB 1
Fig. 4.18 shows the gear change performed by the sequencer automatic FB 92 (AK 3:AUT).
START AK
S1 SP Read-in disable -
SP Feed disable -
SP PLC spindle control -
IS Spindle disable -
tUE Timeout 10s -
S=0
1
S3 tW Delay 1s 1
1
& RM: Gear changed
The software listing for this is given in Section 6 (Appendix) PB ”Spindle control”.
Programming of a sequencer using conventional methods (Fig. 4.19) is difficult for the user,
and is even more so when there is a need to handle complex sequences (branching and
jumps). The user must define the sequence structure by programming sequence blocks. In the
case of branches and jumps, the sequence is governed by load and transfer commands within
the sequence blocks. The handling of timers is also quite complicated.
Previously the user had access only to inconvenient methods for programming sequencers,
which made it difficult to implement programmable sequential control systems and required a
relatively large amount of programming.
Start
conditions
Step 1 Command 1
Step 2 Command 2
Command 3
Command 4
Step enabling conditions
for step n
Step n Command x
Fig. 4.19 Representation of the step-by-step sequence in the method of representation previously used
(DIN 40719)
There was a need for a new language for sequencer programming, one which would be easier
to use and would enable clearer, user-friendly programming.
These requirements are met by the new graphic programming language: GRAPH 5.
With GRAPH 5, programming is limited to a single sequence block. The user defines the
sequence structure graphically and then need only program the real sequence actions and
step enabling conditions. He need no longer concern himself with program-related conversion
of branches and times.
Start conditions
Step 1
Step 2
Step 3
Step n
Fig. 4.20 Representation of the step-by-step sequence in GRAFCET notation (to IEC Draft SC 65 A/WG 6)
GRAPH 5
• It supports:
- Configuring
- Programming
- Documentation
- Testing/diagnostics
1. Overview level:
2. Zoom-in level:
In the second phase, the contents of the steps and transitions are defined at the ”zoom-
in” level.
The program stipulates:
- Which actions take place in the s t e p
- Which step enabling conditions are in the t r a n s i t i o n
T1 T6
S2 S6
I 7.3
T2 T7 & >1
I 7.4
S3 S7
I 7.5
T3 T8
I 7.6 Auto
S4 S8 enable
I 7.7 &
T4 T9
The sequencer's program is fully defined by configuring the sequence structure at the
overview level, and programming the steps and transitions at the zoom-in level.
GRAPH 5 is thus a language which the user can easily assimilate, allowing him to develop
clearly arranged sequence control systems with little effort.
Documentation:
The steps and transitions can have comments both at the overview and zoom-in
levels.
Testing/diagnostics:
The status of a sequencer is shown in a status display. The status can be traced at
the zoom-in level, with indication of the status of individual operands and logic
operations. The exact cause of a fault can be determined at the zoom-in level.
The "GRAPH 5" software package from SIMATIC S5 is used for programming sequencers
with the FB93 or FB94.
The full capabilities of the GRAPH 5 method of representation cannot yet be fully exploited
with the function blocks from this package. The various limitations are explained in more detail
on the basis of these language elements.
Sn Sn
Sn Sn
Ti Ti
Sk Sn+1
The initial step (also known as init step) is activated on sequencer startup by an FB sequencer
call without testing for conditions. It corresponds to the last step of the sequencer, which
cannot be programmed in the GRAPH 5 method of representation.
Limitation:
The action part of a step declared as selective is processed only when the step is activated.
Normally (no selective steps), all steps of the sequencer are processed cyclically. When a
selective step is involved, the action part is skipped if the step is not active.
Limitation:
All steps, including the first step (init step) S1, must be programmed as selective steps.
Note:
In the case of selective steps, non-storing commands must also be reset by the user in
subsequent steps.
The commands of Step Sn are output and Transaction Ti is scanned. If the step enabling
condition of Ti is fulfilled, the sequencer switches to the next step, i.e. Sn + 1 is activated.
Limitation:
A jump can be implemented in all steps of the sequencer except in Step S0.
One of the branches is to be processed. Of transitions Ti1 to Tin, the one whose step enabling
condition is fulfilled will be switched. If two or more transitions are simultaneously fulfilled, the
one furthest left will be switched.
In the case of a junction of alternative branches, the same applies as to the linear sequence.
Alternative branch
Sn
Alternative junction
Sn Sk1 Ski
Sn+1
Two or more steps are activated simultaneously, depending on only one step enabling
condition.
Merging of parallel branches into a junction takes place via the synchronization.
Simultaneous branch
Sn
Ti
Synchronization
Sn Sk1 Ski
Ti
Sn+1
The program structure shown (Fig. 4.25) for a sequential control system (SCS) is largely
generated and managed by the GRAPH 5 system. The user need only concern himself with
the overall structure.
The PG685/PG730/PG750 programmer with the GRAPH 5 operating system is needed for
programming. The entire program creation process is supported by the PG685/PG730/PG750.
Function block FB93/FB94, a jog block (SB0), and a main DB generated by the GRAPH
system allow the processing of GRAPH 5 sequencers in the PLC.
The user calls standard function block FB Sequencer (FB94:ALS:AUT) and assigns sequencer
parameters to it (sequence block number, etc.). The structure of the sequencer, as well as all
actions and step enabling conditions, are contained in sequence block SBx.
Another function block, FB Jog (SB0), is invoked for each transition (see block data and
program structure).
DBn is the main DB for SBx. Like the executable SBx, DBn is automatically generated by the
system (programmer software) with the FB Jog calls.
However, DBn + 1, i.e. the DB with SB number x +1, must be transferred to the PLC.
Example:
For SB150, the GRAPH 5 programmer operating system generates DB150 when function keys
F6 and F5 are actuated. This DB150 must be transferred from the floppy disk to the PLC as
DB151. DBn + 1 (DB151) can be transferred later to PROM.
DBn (DB150) is generated in the PLC on a cold restart, and the contents of DBn + 1 are
copied into DBn; FB94 then opens DBn as the current main DB.
• Generate the sequence block with the PG685/PG730/PG 750 and load it into the PLC.
• Generate the main DB with DBGEN on the PG685/PG730/PG 750 and load the DB into
the PLC with SB number + 1.
• If necessary, load the diagnostic DB into the PLC.
• Load the GRAPH 5 standard function block and SB0 into the PLC.
• A PB invokes and initiates the FB.
• When all blocks have been transferred, the user must initiate a cold restart.
The designation "GRAPH 5 standard FB" applies to FB93: ALS:V/R and FB94: ALS:AUT.
PB FB sequencer SB 150 SB 0
GRAPH 5
JU FB Actions
SB :150
..
.
Structure and
step enabling
conditions
FB Jog
Current SBx
FB 93 ALS:V/R
GRAPH 5 sequencer forwards/backwards
1. Description
Sequencers (up to 127 steps per sequencer) with six modes can be implemented with this
function block. The steps must be programmed with the PG685/PG730/PG750 in the GRAPH
5 method of representation.
1. Automatic mode
- Automatic with and without delays/timeouts.
2. Manual modes
- Step selection (S-NR), (S-AZ)
Any step of the sequencer can be selected via decade switches in BCD code (without
command output). Starting with the current step number or preset step number, an
indication of whether the step enabling condition is fulfilled is displayed. The selection is
rejected in the event of an illegal step number.
In the manual modes, the mode is changed by the first pulse and the step is indexed by
further pulses. No more than one mode may apply at any one time.
In modes SST+ to TIP-, stepping takes place when the enabling conditions are fulfilled and
when the relevant signal changes from 0 to 1.
For sequencer performance following a cold or warm restart and in automatic mode, see
function block ALS:AUT Automatic sequencer GRAPH 5.
– When simultaneous branches and backward operation (SST- or TIP-) are involved, the
Jump function can be used to jump to a previous sequencer branch.
– In transitions in which a simultaneous branch is opened or closed, there can be no
backward jump.
Stepping from the last step to step S1 is not possible with SST+ and TIP+, without first
switching to step selection mode.
2. Block data
3. Block call
FB 93 ALS:V/R
$F3.1 – NST – %1
$F2.1 – GST – %2
– %3
– %4
– %5
– %6
– %7
$:= Specified
parameter
4. Signal descriptions
H/A Manual/automatic
”0” = Automatic (continuous signal)
”1” and leading edge of S-AZ or SST +/- or TIP +/- = Manual
R Reset
If Input R is at logic ”1”, the sequencer proceeds to the first step.
The preset monitoring times TUE and waiting times TWA are reset.
R = ”1” is not possible in manual modes.
5. Additional information
Programming aid
The following program chart serves to create a step sequencer for the forwards and
backwards operation of a sequence controller with FB ALS:V/R in GRAPH 5 representation.
Backward jumps must always be programmed as alternative branches.
a) Programming for the linear part of the sequencer is in the transition part, as follows:
Tk
S
S n-1
Transition K/1
A -STR Backwards
A I ... Jump to S
BE step S n-1 Sn
Transition n/1
AN -STR
A I ... Forwards Tn Tk
BE
S n-1
Tk
- Step enabling condition at the
beginning of an alternative branch S
S n-1
Transition K/1
A -STR Backwards
A I ... Jump to S
BE step S n-1 Sn
Transition n/1
AN -STR
A I ... Forwards Tn Tk Tm
BE
S S n-1 S
Transition m/1 S Sm
AN -STR n+1
A I ... Forwards
BE
Transition m/1
A -STR Backwards S
A I ... Jump to Sn
BE step S m
Transition n/1 Tn Tl Tm
AN -STR
A I ... Forwards
BE S n-1 Sm
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Tm
Tl
- Step enabling condition at the
beginning of a simultaneous branch S
S n-1
Transition l/1
A -STR Backwards
A I ... Jump to
BE step S n-1
S S
Transition m/1
A -STR Backwards Sn Sm
A I ... Jump to
BE step S n-1
Tl Tm
S n-1 S n-1
Transition p/1
A -STR Backwards
A I ... Jump to S
BE step S m S
n+1
Tr Tp
Sn Sm
Note: Transitions in which a simultaneous branch is opened or closed, must not contain a
backward jump.
FB 94 ALS:AUT
GRAPH 5 automatic sequencer
1. Description
The function block organizes simple sequencers without modes and with up to 127 steps per
sequencer. The steps must be programmed on the PG685/PG730/PG 750 in GRAPH 5.
Sequencer performance:
Change of signal STA from ”0” to ”1”:
- If the sequencer is at the first step, it is started.
- If the sequencer is not at the first step, it is processed further, starting at the current step.
For sequencer performance following a warm or cold restart, see GST and NST.
An error message is output on a TUE time-out. Commands output is continued. The current
step remains in force, and sequencing to the next step is not possible.
2. Block data
3. Block call
FB 94 ALS:AUT
$F3.1 – NST – %1
$F2.1 – GST – %2
– %3
– %4
– %5
– %6
– %7
$:= Specified
parameter
4. Signal descriptions
R Reset
If Input R is ”1”, the sequencer proceeds to the first step.
The set timeouts TUE and delays TWA are reset.
Fig. 4.26 shows the block diagram for the complete gear change. Gear changing is initiated
with commands M41, M42, etc. which are buffered as flags to start gear changing, i.e. the
sequencer.The sequencer outputs commands to the NC as well as to the subordinate
individual control module (not included in this example) for the gear train. The read-in disable,
feed disable, spindle stop and specified direction of rotation signals should be gated so that
the reason for them is clearly recognizable, as these signals not only come from the
sequencer, but are also dependent on other criteria.
NC PLC
NC M word M decoding
M
change M03 M04 ... M41 M42
>1
R S Start flag
Change
direction
Read-in disable
Sequencer
>
1 D S=0
Feed disable
Spindle >
control 1 D
Mesh Gear
Spindle stop gear drive
> M
1 D
Gear
Select oscill. speed meshed
Spindle in spec. range
M
Actual gear
Gear
Spindle
Fig. 4.27 shows the program structure for the example. First, the logic operations for starting
and resetting the sequencer are programmed in the program block for spindle control (PB18).
The sequencer with which gear changing is controlled is called. The signals are then
transferred to the interface.
PB spindle control
From OB 1
O – F 41
Sequencer
start O – F 42
S – START AK
AN – START AK SB
Reset A – T-RESET
sequencer • Step 1
•
= – RESET AK
FB
Sequencer Sequenc-
JU FB er Step 2
Q – DB-K1
Transfer •
signals to • Step 6
interface •
To OB 1
Fig. 4.27 shows the process for gear changing with the GRAPH 5 automatic sequencer FB94
(ALS:AUT).
The corresponding software listing for the sequencer is given in Appendix 1, PB 18.
S
SP Reset gear changing -
S1
SP Reset PLC spindle control -
SP Reset oscillation speed -
SP Reset set direction CW -
SP Reset spindle disable -
SP Reset mesh gear command -
SP Reset read-in disable -
SP Reset feed disable -
S
SP PLC spindle control -
S2
SP Spindle disable -
SP Read-in disable -
SP Feed disable -
tue Timeout 10s -
S=0
S
SP Reset spindle disable -
S3
SP Set direction CW -
RM: Gear SP Oscillation speed -
meshed SP Mesh gear command -
tW Delay 1s 1
&
1
S
SP Reset set direction CW -
S4
tW Delay 1s 1
RM: Gear
meshed
1
& RM: Gear changed
S
SP Reset oscillation speed -
S5
SP Reset gear changing -
SP Reset PLC spindle control -
SP Reset set direction CW -
SP Reset mesh gear command -
tue Timeout 10s -
tW Delay 0.2s 1
1
Spindle in specified range
S
SP Reset read-in disable -
S6
SP Reset feed disable -
SP Reset mesh gear command -
SP Reset PLC spindle control -
SP Reset oscillation speed -
SP Reset spindle disable -
As an example for using FB93 (ALS:V/R) a part sequence for the "Deposit tool" function with
a tool changer has been chosen, as for FB91; tools are changed between the magazine and
the spindle by means of a gripper (Fig. 4.29). The example shows the Graph 5 programming
for the sequence steps for forward and backwards operation.
The individual control elements which execute the change of signal for "STR" are not part of
the example.
Fig. 4.29 shows the procedure for depositing the tool with the Graph 5 forwards/backwards
sequencer (FB93: ALS:V/R).
The associated software listing is given in the Appendix.
S
SP Reset deposit tool -
S1
Start cond.
STR
S
NS Gripper 90 ° to the right 1
S2
STR SP Reset magazine positioning -
RM-SENKR 1
STR
S
& NS Retract gripper 1
S3
R
STR
RM-VORN 1
STR
S
& NS Clamp spindle 1
S4
NS Clamp tool in magazine 2
R 1
STR 2
SP-DRUCK STR
WZM-GESP SP-DRUCK SP-LEER
SP-LEER WZM-GESP
SP-LEER STR
& & S NS Relocate magazine data -
S5
STR
STR
S
& NS Release gripper 1
S6
R
STR STR
GR-GESP GR-GESP 1
SP-LEER SP-LEER
STR
S
& & NS Gripper 90 ° to the left 1
S7
R R after S3
RM-WAAGR 1
STR STR
& &
The IM308C adapter enables you to use the SIMATIC module IM308C (a PROFIBUS-DP
interface) in the SINUMERIK 840C system. The standard function block FB 27, which handles
the communication, is required for operation of the IM308C.
The function block FB 27 is part of the basic function of package 0, version 23. Examples for
direct programming of FX 92 and indirect programming of FX 93 are also part of version 23.
Notes on configuration
If only the conventional I/O range from 0 to 255 is used, i.e. PAB 0 to 127 (U E ...) and I/Os
(LEW; TAW), it is sufficient to specify S5 CPU 922 when programming with COM PROFIBUS
V2.x.
With COM-PROFIBUS V3.2 and higher, the IM308C module can be directly configured with
SINUMERIK 840C.
If the diagnostic functions, direct and indirect programming are required, as for FB 192 with
S5, FB 27 must be used for the 840C. FX 92 and FX 93 are given as FX examples for direct
and indirect programming respectively in the new FB package 0, version 23.
Description of functions
If FB 27 is used, the IM308C must be addressed in the memory area F800h to F9FF of the IM.
The segment address is pre-defined with number 4.
The offset address is derived from the IM address /. E000h.
This produces the following assignment of absolute addresses for the PLC:
F800h 4 1800h
Other DP window addresses offered by the COM PROFIBUS software are not supported by
the IM308C adapter for the SINUMERIK PLC and are not necessary because SINUMERIK
cannot accommodate multiprocessors.
FB 27 transfers data between a memory area of the central processor (flag area, data block
area) and the IM308C module via one of the stated address areas (IM link). The following
functions are possible in this context:
– Read inputs of a slave
– Read/write outputs of a slave
– Read diagnostic information of a slave
– Read the master diagnosis
– Change the PROFIBUS-DP address of a slave
Writing the outputs is possible only if no outputs have been programmed in COM PROFIBUS.
Otherwise, the programmed outputs are given preferential treatment by the firmware of the
IM308C.
The following functions are possible for the connection of the DP/AS interface to the left of the
IM308C:
– Initiate write job and write data (Data_Write)
– Read acknowledgement for previously initiated write job
– Initiate read job (Data_Read)
– Read data and acknowledgement of previously initiated read job
The following are permissible as memory areas: flag area M, data blocks DB and expanded
data blocks DX.
Besides the data transfer functions stated, FB 27 can also be used to execute so-called Global
Control Commands. The following Global Control Commands are possible:
– SYNC: simultaneous output and freezing of output states for the DP slaves
– UNSYNC: cancels the SYNC command
– FREEZE: freezes input states
– UNFREEZE: cancels the FREEZE command
FB 27 can also be used to initiate a combination of the Global Control Commands stated
above. Here, it is possible to edit the Global Control Commands for individual slaves or slave
groups.
In addition, FB 27 can be used to check whether a Global Control Command that has already
been initiated has been fully processed. This is done with the function:
Check Global Control Command.
If the address area contains a different module than the IM308C module, it is not recognized
by the function block.
The standard function block may be stored in an EPROM module. The user is allowed to
change the number of FB 27.
Calling FB 27
The simplest case is where FB 27 is called only during cyclic program processing. If it is
necessary to call FB 27 again on the process-alarm or time-alarm processing levels (e.g. if the
outputs of a slave are to be written very quickly after a process alarm or the inputs of a slave
are to be read continuously at recurring intervals, the programming in the application program
must ensure that FB 27 does not interrupt itself. This is done by blocking the alarms before
each FB 27 call and releasing them again after the call.
FB 27
: SPA FB 27 +––––––––––+
NAME : IM308C ! IM308C !
DPAD : – – ! DPAD ERR ! – –
IMST : – – ! IMST !––
FCT : – – ! FCT !––
GCGR : – – ! GCGR !––
TYPE : – – ! TYPE !––
STAD : – – ! STAD !––
LENG : – – ! LENG !––
ERR : ––!––––––––– !––
The parameters are checked for valid limits and any errors found notified via the ERR
parameter.
Function
Meaning Sequence
FCT =
15 0 7 1: Group 8 selected
14 0 6 1: Group 7 selected
13 1: SYNC command is executed 5 1: Group 6 selected
12 1: UNSYNC command is executed 4 1: Group 5 selected
11 1: FREEZE command is executed 3 1: Group 4 selected
10 1: UNFREEZE command is 2 1: Group 3 selected
executed
9 0: Reserved 1 1: Group 2 selected
8 0: Reserved 0 1: Group 1 selected
Bit 15 to 8 Length byte The length byte indicates how many bytes the FB 27 has
transferred. The length byte is always updated when FB 27 is
called with LENG = -1 (joker length).
Bit 7 Group error bit 1: Error
Bit 6: IM error 1: Error
Bit 4 and 5 Programming error 1: Programming error (at least one of the parameters specified
when calling FB 27 is invalid)
Bit 0 to 3 Error number1 to F See following table
If FB 27 accesses a DP slave for which the error message module ”QVZ” is selected, and this
DP slave does not exist, ”QVZ” is not sent as error message; rather, the corresponding error
message is given in the ERR parameter of FB 27. If IM308C parameters are incorrect or do
not exist, the CPU goes into the STOP state.
Low byte of
ERR para-
meter Meaning Explanation/remedy
hex dec
Low byte of
ERR para-
meter Meaning Explanation/remedy
hex dec
AD 173 STAD parameter not permissible The STAD parameter is valid in the following
range:
• Valid range for flags:
0 STAD 199
• Valid range for data words:
0 STAD 255
AE 174 Slave has failed, is not configured, Evaluation of the slave diagnosis will produce
no I/Os are configured or the more detailed information.
IM308C is in STOP state.
AF 175 LENG parameter > length byte on The IM308C does not possess the required
the IM308C number of data bytes for the specified slave.
Reduce LENG or call the function block with the
joker length LENG = -1.
B1 177 TYPE parameter not permissible: The DB/DX No. must be 10.
specified DB/DX No. invalid
B2 178 DPAD parameter not permissible Depending on the CPU type, only the address
F800h may be set at the DPAD parameter.
C1 193 Error message from IM308C: At this point in time, only one CS command or
The requested command has two GC commands are possible.
already been executed; the IM308C
has no further resources.
C2 194 Error message from IM308C: The control command is only possible in the
The IM308C has the wrong IM308C modes RUN or CLEAR.
operating mode.
C3 195 Error message from IM308C: A control command is only possible when a
No corresponding group has been corresponding group has been configured with
configured or the GCGR parameter COM PROFIBUS.
has not been input correctly. Check the structure and contents of the control
command.
C5 197 Error message from IM308C: In order to be able to change a PROFIBUS-DP
PROFIBUS-DP address not address, the relevant PROFIBUS-DP address
configured. must have been configured with COM
PROFIBUS.
C6 198 Error message from IM308C: The DP slave must physically exist and be
DP slave does not respond to the connected to the PROFIBUS-DP
PROFIBUS-DP address change
(PROFIBUS-DP address does not
exist).
C7 199 Error message from IM308C: DP slave has responded with incorrect data; the
DP slave does not respond correctly CS command has not been processed by the
to the PROFIBUS-DP address DP slave.
Repeat the function FCT = CS.
If the error message does not change, check
the DP slave.
Low byte of
ERR para-
meter Meaning Explanation/remedy
hex dec
C8 200 Error message from IM308C: DP slave has responded with incorrect data; the
DP slave responds incorrectly to the CS command has not been processed by the
PROFIBUS-DP address change DP slave.
The function FCT = CS must be repeated.
If the error message remains, check the DP
slave.
C9 201 Error message from IM308C: DP slave has responded with incorrect data; the
DP slave responds incorrectly to the CS command has not been processed by the
PROFIBUS-DP address change DP slave.
The function FCT = CS must be repeated.
If the error message remains, check the DP
slave.
CA 202 Error message from IM308C: DP slave cannot change the PROFIBUS-DP
DP slave responds incorrectly to the address; the corresponding SAP is not available
PROFIBUS-DP address change at the DP slave.
DC 220 The control command is still being The control command specified in the GCGR
processed. parameter is still being processed.
Inputs and outputs affected must not be
processed. The function FCT = CC must be
repeated.
DE 222 The IM308C is currently performing The function can be re-initiated.
data transfer to the DP slaves.
The desired function could not be
carried out.
DF 223 No acknowledgement received from The IM308C has not sent back an acknowl-
IM308C. edgement to the FB after initiating the function.
or
IM308C has not sent an acknowledgement to
FB 27 within 5 ms.
Possible cause: the baud rate is too low.
Indirect programming
Assignment of the parameter data block
The assignment of the parameter data block is only relevant for indirect programming of
FB 27. During indirect programming (FCT = ”XX”), the function block takes the programming
data from the parameter data block, not from the block parameters. The parameter data block
must be opened by the user prior to calling FB 27. If the parameter data block is too short, the
CPU assumes the STOP state.
Recommended
Data word Block parameter
data format
DW 0 Reserved KH
DW 1 DPAD KH
DW 2 IMST KY
DW 3 FCT KC
DW 4 GCGR KM
DW 5 TYPE KY
DW 6 STAD KF
DW 7 LENG KF
DW 8 ERR KY
DW 91) Slot number of DP/AS link Data record number KY
DW 101) Reserved KH
DW 111) Error code 1 Error code 2 KY
DW 121) Reserved KH
1) The data words DW 9 to DW 12 are required for the DP/AS interface. Even if FB 27 does not activate the
DP/AS link, the parameter data block must always be present up to DW 12.
FCT parameter
The following functions can be initiated via indirect programming (DW 3) for the DP/AS
interface:
FCT Description
FCT parameter=DW
You can use this function to change the address of an AS interface slave or to write
parameters to the AS interface. The selected function and the associated parameters must be
written to the PLC memory area defined by the parameters TYPE, STAD and LENG before the
FB is called. The function FCT=DW can only be executed via indirect programming. The data
block used has the following structure:
DW 0 -- Not relevant
DW 1 DPAD Address range of IM308C, here: F800h
DW 2 IMST Number of IM308C PROFIBUS-DP address of the slave
Range 1 to 123
(is currently not checked)
DW 3 FCT Function of FB 27: here DW
DW 4 GCGR Not relevant
DW 5 TYPE Type of PLc memory area: here 0Ah (DB 15)
DW 6 STAD Start of memory area: here 01h
DW 7 LENG Length of PLC memory area in bytes: here 03h
DW 8 ERR Error word of FB 27
DW 9 Slot number: here 04h Data record number: here 84h
DW 10 Not relevant
DW 11 Error code 1 Error code 2
DW 12
FCT parameter=CW
This function reads the acknowledgements of the FCT=DW function initiated previously. The
acknowledgements indicate how the function FCT=DW has been terminated (DW 8:
parameter ERR of FB 27; DW 11: error codes 1 and 2).
The function FCT=CW can only be executed via indirect programming. The data block used
has the following structure:
DW 0 -- Not relevant
DW 1 DPAD Address range of IM308C, here: F800h
DW 2 IMST Number of IM308C PROFIBUS-DP address of the slave
Range 1 to 123
(is currently not checked)
DW 3 FCT Function of FB 27: here CW
DW 4 GCGR Not relevant
DW 5 TYPE Not relevant
DW 6 STAD Not relevant
DW 7 LENG Not relevant
DW 8 ERR Acknowledgement: error word of FB 27
DW 9 Not relevant
DW 10 Not relevant
DW 11 Acknowledgement: error code 1 Acknowledgement: error code 2
DW 12
FCT parameter=DR
This function reads the parameters of the DP/AS interface. The function FCT=CR can be only
be executed via indirect programming. The data block used has the following structure:
DW 0 -- Not relevant
DW 1 DPAD Address range of IM308C, here: F800h
DW 2 IMST Number of IM308C PROFIBUS-DP address of the slave
Range 1 to 123
(is currently not checked)
DW 3 FCT Function of FB 27: here DR
DW 4 GCGR Not relevant
DW 5 TYPE Not relevant
DW 6 STAD Not relevant
DW 7 LENG Length of PLC memory area in bytes: here 19h
DW 8 ERR Error word of FB 27
DW 9 Slot number: here 04h Data record number: here 84h
DW 10 Not relevant
DW 11 Error code 1 Error code 2
DW 12
FCT parameter=CR
This function shows the parameter echo, the version label and the acknowledgements of the
DP/AS interface following the function FCT=DR initiated previously. The acknowledgements
indicate how the function FCT=DR has terminated (DW 8: parameter ERR of FB 27; DW 11:
error codes 1 and 2).
The function FCT=CR can only be executed via indirect programming. The data block used
has the following structure:
DW 0 -- Not relevant
DW 1 DPAD Address range of IM308C, here: F800h
DW 2 IMST Number of IM308C PROFIBUS-DP address of the slave
Range 1 to 123
(is currently not checked)
An error message is sent for 00h or
123 however (see DW 8)
DW 3 FCT Function of FB 27: here CR
DW 4 GCGR Not relevant
DW 5 TYPE Type of PLC memory area
DW 6 STAD Start of PLC memory area
DW 7 LENG Length of PLC memory area in bvtes: here 19h
DW 8 ERR Acknowledgement: error word of FB 27
DW 9 Not relevant
DW 10 Not relevant
DW 11 Acknowledgement: error code 1 Acknowledgement: error code 2
DW 12 Reserved
END OF SECTION
5 Block Data
Block data for FB Package 0
_______
* Processing time of current sequence block or step
1) Load only for GRAPH 5 sequencer
6.1
03.95
a
aaa a
a a
a a
aa
a a
a a
aaaa
a a
a a
a a
aaaa
a a
aaaa
a a
a a
a a
aaaa
a a
a a
aa
a a
a a
a a
aaaa
a a
aaaa
aaaa
aaaaaa
a
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa a aa a a
Notes:
a
a
a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa
a a
a
aaa
aa
a a
a
PB
a
a
a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
aa
a a
a a
aa a aa
aaaa a
PB 19
PB 18
PB 16
PB 15
PB 14
PB 12
PB 11
PB 10
a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a
3 axes
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1 spindle
basic program.
a
aa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
aa
a a
aa
aa
a
Number of axes: 3
Number of spindles: 1
a
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
GRAPH5 programming.
Appendix 1
a
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
Hardware configuration:
a
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
a
a
aa
a aaaaaa
aaaaaaaa
aaaaaaaaaa
aaaa
aaaaaaaaaa
aaaaaaaa
aaaaaaaaaa
aaaaaa
aaaa
aaaa
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
aa
a a
aa
aa
a
a
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
Function
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa a aa
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa aaa
aaaaaa
a aa aa a
a aa aa a
Transfer of R parameters from the NC to the PLC and vice versa
a
a aa aa a
a a
aa
a a
aa
a
a
a
a
a aa aa a
a aa aa a
aa aa a
-
a a a aa a a a a a a aa a a a aa a aa a a a a a aa aa a
a aaa a aa a a
aaa
a a a a
aaa
a aa a a a aa a a aa a a a
aaa
a a
aaa
a
aaa
a a
aaaaa a
a aa aa a
aaa a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
aa
a a
a a
a a
a a
aa
a a
a a
a a
aa
a a
a a
a a
a a
aa
a a
a a
aa
a a
aa
a a
a a
a
a
a
a aa aa
aaa
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa a aa a
aaaa
aaaa a
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa a aa a aa aa a
FB 71
FB 94
FB 67
FB 79
FB 70
FB 78
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa a aa a aa aa a
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa a aa a aa aa a
Example of
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa a aa a aa aa a
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa a aa a aa aa a
FB 61, 62
a a a a aa a a aa a a a aa aa a a a aa a a aa a a a aa a aa aa a aa a aa aa a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a
a aa aa a
aa a
aaaaaaa a
with the most important interface signals such as mode selection switch, direction keys,
94 (FB Package 0). The same sequence cascade is processed in STEP5 programming and
Appendix 1 contains examples of the use of the standard function block package 0 and of the
PB 17 and PB 18 show examples of application for the sequence control blocks FB 92 and FB
6.1 Appendix 1
6 Appendix
6–1
6 Appendix 03.95
6.1 Appendix 1
FB 78
----------------
! T:MS->KN !
-GRUNDBL --!I-BY !
+1 --!K-NR !
+1 --!SPIN !
----------------
FB 78
----------------
! T:MS->KN !
-GRUNDBL --!I-BY ! :BE
+2 --!K-NR !
+0 --!SPIN !
----------------
FB 70
----------------
! T:NS>EAM !
S --!QUTY !
0,1 --!QUAD !
M --!ZITY !
4,60 --!AN/Z !
-NULL --!PASP !
-NULL --!ZASP !
----------------
FB 70
----------------
! T:NS>EAM !
D --!QUTY !
10,17 --!QUAD !
M --!ZITY !
7,25 --!AN/Z !
-NULL --!PASP !
-NULL --!ZASP !
----------------
NETWORK 4
COPY INTERFACE DATA TRANSFER PLC/NC (DB 36) STARTING WITH DW 0 IN THE
FLAG AREA STARTING WITH FY 50. 3 WORDS ARE TRANSFERRED (DW 0-2 -> FY50-
55).
PROCESSING OF FLAG AREA IN PB 12.
FB 70
----------------
! T:NS>EAM !
D --!QUTY ! :BE
36,0 --!QUAD !
M --!ZITY !
3,50 --!AN/Z !
-NULL --!PASP !
-NULL --!ZASP !
----------------
NULL = F 0.0 ZERO FLAG
FB 61
----------------
! NCD-LESE !
-M10=10 --!LESE !
DL 0 --!NSBY !
+3 --!ANZ !
RP --!DTY1 !
NC --!DTY2 !
--!DTY3 !
+1 --!WER1 !
+90 --!WER2 !
+0 --!WER3 !
F0 --!ZFPN !
0 --!DBZI !
107 --!DWZI !
MW --!TYZI !
----------------
STATIC M SIGNAL RESET BY THE "DATA TRANSFER ENDED" INTERFACE SIGNAL FOR
JOB 1 (NSBY: DL 0)
-M10=10
---------
-DUE-END1 --!R !
! !
--!S Q !--
---------
FB 62
----------------
! NCD-SCHR !
-M10=12 --!SCHR !
DR 0 --!NSBY !
+1 --!ANZ !
RP --!DTY1 !
NC --!DTY2 !
--!DTY3 !
+1 --!WER1 !
+89 --!WER2 !
+0 --!WER3 !
BI --!ZFPN !
0 --!DBQU !
120 --!DWQU !
MW --!TYQU !
----------------
STATIC M SIGNAL RESET BY THE "DATA TRANSFER ENDED" INTERFACE SIGNAL FOR
JOB 2 (NSBY: DR 0)
-M10=12
---------
-DUE-END2 --!R !
! !
--!S Q !--
---------
FB 62
----------------
! NCD-SCHR !
-M10=89 --!SCHR !
DL 1 --!NSBY !
+20 --!ANZ !
RP --!DTY1 !
NC --!DTY2 !
--!DTY3 !
+1 --!WER1 !
+100 --!WER2 !
+0 --!WER3 !
F0 --!ZFPN !
160 --!DBQU !
10 --!DWQU !
DB --!TYQU !
----------------
STATIC M SIGNAL RESET BY THE "DATA TRANSFER ENDED" INTERFACE SIGNAL FOR
JOB 3 (NSBY: DL 1)
-M10=89
---------
-DUE-END3 --!R !
! !
--!S Q !--
---------
EXAMPLE FB62: SELECT A PROGRAM FROM THE PLC THE PROGRAM NUMBER IS
PRESELECTED WITH A DECADE SWITCH AND TRANSFERRED TO
NC CHANNEL 2 WITH THE TRANSFER KEYS (VALUE 1 = 2).
NUMBER FORMAT ZFPN = B0, I.E. 3 WORDS ARE READ (FW 180,
182, 184).
007A :L KB0
007C :T FW180 AUXILIARY FLAG
007E :T FW182 AUXILIARY FLAG
0080 :L - PRG-NR IW5 DECADE SWITCH, 4 DECADES
0082 :T FW184 AUXILIARY FLAG
0084 :***
FB 62
----------------
! NCD-SCHR !
-UEBERN. --!SCHR !
DR 1 --!NSBY !
+1 --!ANZ !
IN --!DTY1 !
IT --!DTY2 !
SP --!DTY3 !
+1 --!WER1 !
+1 --!WER2 !
+1 --!WER3 !
B0 --!ZFPN !
0 --!DBQU !
180 --!DWQU !
MW --!TYQU !
----------------
FB 61
----------------
! NCD-LESE !
-EINS --!LESE !
DL 2 --!NSBY !
+1 --!ANZ !
AC --!DTY1 !
PW --!DTY2 !
--!DTY3 !
+2 --!WER1 !
+0 --!WER2 !
+0 --!WER3 !
B4 --!ZFPN !
160 --!DBZI !
1 --!DWZI !
DB --!TYZI !
----------------
FB 79
----------------
! T:MS>ACH !
EB 65 --!AWS1 F !-- -AWS-FEHL
EB 0 --!AWS2 ! :BE
1,3 --!NRAZ !
----------------
TRANSFER DIRECTION KEY SIGNALS TO THE AXIS-SPECIFIC INTERFACE (DB 32). THE
SIGNALS FOR 6 AXES ARE TRANSFERRED.
FB 67
----------------
! T:MS>ACH !
EB 65 --!GBL ! :BE
EB 0 --!DSBL !
1,4 --!XG/D !
2,5 --!ZG/D !
3,6 --!CG/D !
----------------
DB58, DL3, BIT 0-7 FOR ERROR MESSAGES: --> MD6036 = 0001 0001
MESSAGE NUMBERS: 9032 - 9039
DB58, DL6, BIT 0-7 FOR ERROR MESSAGES: --> MD6045 = 0000 0100
MESSAGE NUMBERS: 9080 - 9087
DB10, DR9, BIT 0-7 FOR ERROR MESSAGES: --> MD6032 = 1000 0000
MESSAGE NUMBERS: 6056 - 6063
-----
-T-RESET---! & !-- -NC-QUIT
-----
----- -STARTAK
-M41-DYN.---!>=1! -------
-M42-DYN.---! !----! !
----- !S !
! !
--!R Q!-
-------
-----
-STARTAK --0! & ! -----
-T-RESET ---! !-----!>=1!
----- ! !
-GRUNDST ---! !-- -RESETAK
-----
FB 94
----------------
! ALS:AUT !
+150 --!SB SANZ!-- -SANZ
-STARTAK --!STA S+AK!-- -S+AK
-RESETAK --!R STO !-- -STO
-EINS --!SAN SSTO!-- -SSTO
-NULL --!ANZ+ !
-EINS --!DIAG !
-QIT --!QIT !
-UQIT --!UQIT !
----------------
-----
-BEF-UMR ---! & !
-ES-GETR.---! !-- -RM-UMR
-----
FIXED ALLOCATION : T 0 , Z 0
TIMER RANGE: T 4 - T 5
! !
! !
! !
! !!T6 :
! T6 !
!---+ !
S==!=== ! S1 : RESET OUTPUTS
!S 1 ! !
===!=== !
! !!T1 : ...
?+ T1 !
! !
S--+--+ ! S2 : BRAKE SPINDLE
!S 2 ! !
+--+--+ !
! !!T2 : SPINDLE STOPPED
+ T2 !
! !
! !
! !
! !
! !!T8 : GEAR NOT CHANGED
! T8 !
!---+ !
S--+--+ ! S3 : REV. DIRECT. OF ROTATION
!S 3 ! !
+--+--+ !
!---------+ !!T3 :
?+ T3 + T7 !!17 : GEAR CHANGED
S--+--+ V ! S4 : ORIG. DIRECT. OF ROTATION
!S 4 ! S 5 ! S5 : ACCELERATE SPINDLE
+--+--+ !
!---------+ !!T4 : GEAR CHANGED
+ T4 + T8 !!T8 : GEAR NOT CHANGED
! ! !
! V !
! S 3 ! S3 : REV. DIRECT. OF ROTATION
! !
! !!T7 : GEAR CHANGED
! T7 !
!---+ ! S5 : ACCELERATE SPINDLE
!S 5 ! !
+--+--+ !
! !!T5 : SPINDLE IN SET RANGE
+ 75 !
! !
S--+--+ ! S6 : END OF GEAR CHANGE
!S 6 ! !
+--+--+ !
! !!T6 :
?+ T6 !
! !
V ! S1 : RESET OUTPUTS
S 1 !
!!T1 : ...
!!T2 : SPINDLE STOPPED
!!T3 :
!!T4 : GEAR MESHED
!!T5 : SPINDLE IN SET RANGE
!!T6 :
!!T7 : GEAR MESHED
!!T8 : GEAR NOT MESHED
! S1 : RESET OUTPUTS
! S2 : BRAKE SPINDLE TUE : KT 100.1 TWA :
! S3 : REVERSE DIRECTION OF ROTATION TUE : TWA : KT 100.0
! S4 : ORIGINAL DIRECTION OF ROTATION TUE : TWA : KT 100.0
! S5 : ACCELERATE SPINDLE TUE : KT 100.1 TWA : KT 20.0
! S6 : END OF GEAR CHANGE TUE : TWA :
0000 : BE
==============================================================
==============================================================
TRANSITION 3/1
0000 : BE
==============================================================
==============================================================
==============================================================
TRANSITION 6/1
0000 : BE
==============================================================
==============================================================
==============================================================
0000 :A F 233.0
0004 :R - GETR-UM F 61.7 CHANGE GEAR
0006 :R - PLC-SPIN F 65.0 PLC SPINDLE CONTROL
0008 :R - PENDEL F 65.6 OSCILLATION SPEED
000A :R - SOLL-RE F 65.7 SET DIRECTION OF ROTATION CW
000C :R - SPINSPER F 66.0 SPINDLE DISABLE
000E :R - BEF-UMR F 125.2 CHANGE GEAR COMMAND
0010 :R - EINLSPER F 126.0 READ-IN DISABLE
0012 :R - VORSPER F 127.0 FEED DISABLE
0014 :BE
==============================================================
0000 :A F 233.0
0002 :S - PLC-SPIN F 65.0 PLC SPINDLE CONTROL
0004 :S - SPINSPER F 66.0 SPINDLE DISABLE
0006 :S - EINLSPER F 126.0 READ-IN DISABLE
0008 :S - VORSPER F 127.0 FEED DISABLE
000A :BE
==============================================================
0000 :A F 233.0
0002 :R - SPINSPER F 66.0 SPINDLE DISABLE
0004 :S - SOLL-RE F 65.7 SET DIRECTION OF ROTATION CW
0006 :S - PENDEL F 65.6 SELECT OSCILLATION SPEED
0008 :S - BEF-UMR F 125. MESH GEAR COMMAND
000A :BE
==============================================================
0000 :A F 233.0
0002 :R - SOLL-RE F 65.7 SET DIRECTION OF ROTATION CW
0004 :DO
==============================================================
0000 :A F 233.0
0002 :R - PENDEL F 65.6 OSCILLATION SPEED
0004 :R - GETR-UM F 61.7 MESH GEAR
0006 :R - PLC-SPIN F 65.0 PLC SPINDLE CONTROL
0008 :S - SOLL-RE F 65.7 SET DIRECTION OF ROTATION CW
000A :R - BEF-UMR F 125.2 MESH GEAR COMMAND
000C :BE
==============================================================
0000 :A F 233.0
0002 :R - EINLSPER F 126.0 READ-IN DISABLE
0004 :R - VORSPER F 127.0 FEED DISABLE
0006 :R - BEF-UMR F 125.2 MESH GEAR COMMAND
0008 :R - PLC-SPIN F 65.0 PLC SPINDLE CONTROL
000A :R - PENDEL F 65.6 OSCILLATION SPEED
000C :R - SPINSPER F 66.0 SPINDLE DISABLE
000E :R - STARTAK F 125.1 START SEQUENCE CASCADE
0010 :BE RESET
TUE : TWA :
==============================================================
FB 71
--------------
! T:EAM>NS !
F --!QUTY !
7,25 --!AN/Q !
D --!ZITY !
10,17 --!ZIAD !
--------------
FB 71
--------------
! T:EAM>NS !
F --!QUTY ! :BE
4,60 --!AN/Q !
S --!ZITY !
0,1 --!ZIAD !
--------------
6.2 Appendix 2
PB 21 A:P00855ST.S5D LEN=36
SHEET 1
NETWORK 1 0000 START SEQUENCE CASCADE V/R GRAPH 5
PROGRAM PB21 PROCESSES SEQUENCE CASCADE ”DEPOSIT TOOL” WITH FB 93 (ALS: V/R).
PB21 MUST BE CALLED IN OB1. THE OTHER PROGRAM BLOCKS IN OB1 ARE NOT
ABSOLUTELY NECESSARY TO RUN THE EXAMPLE.
CAUTION: THE START SIGNAL ”-WZA” IS RESET EITHER IN THE LAST STEP OR BY THE
SIGNAL ”-R”.
! S1 : INIT-STEP
! S2 : GRIPPER 90° CLOCKWISE TUE : TWA : KT 100.0
! S3 : GRIPPER BACK TUE : TWA : KT 100.0
! S4 : CLAMP SPINDLE TUE : TWA : KT 100.0
! S5 : RESTORE MAGAZINE DATA TUE : TWA : KT 100.0
! S6 : RELEASE GRIPPER TUE : TWA : KT 100.0
! S7 : GRIPPER 90° COUNTERCLOCKWISE TUE : TWA : KT 100.0
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
===========================================================================
END OF SECTION
Corrections
A&D MC IS
P.O. Box 31 80 For Publication/Manual:
SINUMERIK 840C
D-91050 Erlangen Software Versions 1, 2, 3, 4, 5 and 6
Federal Republic of Germany 135 WB2/WD PLC Function Blocks
Package 0: Basic Functions
Planning Guide
Order No.: 6FC5 197-6AA30-0BP1
Edition: 01.99
From:
Should you come across any printing errors
Name when reading this publication, we would ask
Company/Dept. you to inform us accordingly, using this
form. We would also welcome any sugges-
Address
tions you may have in the way of improve-
Telephone / ment.
in Automation.
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
Siemens Aktiengesellschaft
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a