CL200 SFC Programming
CL200 SFC Programming
Edition
103
CL200 / CL350 / CL400 / CL500 / ICL700 / PCL
E 1997–1999
Contents
Page
1 Safety Instructions
1.1 Standard operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1
1.2 Qualified personnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–2
1.3 Safety instructions in this manual . . . . . . . . . . . . . . . . . . . . . . . . . 1–3
1.4 Safety instructions concerning the described product . . . . . . . . 1–4
1.5 Documentation, version and trademarks . . . . . . . . . . . . . . . . . . . 1–5
2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–1
2.1 Sequence control system structure . . . . . . . . . . . . . . . . . . . . . . . . 2–6
2.1.1 Sequence cascades in steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–6
2.1.2 Managing operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–7
2.1.3 Command output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–8
2.1.4 Diagnostics and fault indication . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–8
2.2 Graphical display of process sequence . . . . . . . . . . . . . . . . . . . . 2–9
2.3 Sequence step in MADAP programming mode . . . . . . . . . . . . . 2–11
2.4 Sequence step in step marker technique programming mode . 2–12
4 Structural Elements of
MADAP Sequence Cascade . . . . . . . . . . . . . . . . . . . 4–1
4.1 Linear sequence cascade in MADAP mode . . . . . . . . . . . . . . . . 4–2
4.2 Alternative-branched sequence cascade in MADAP mode . . . . 4–4
4.3 Simultaneous-branched sequence cascade in MADAP mode . 4–6
4.4 Sequence cascade loop in MADAP mode . . . . . . . . . . . . . . . . . . 4–8
4.5 Jump in MADAP mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–10
Page
A Appendix
A.1 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A–1
A.2 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A–2
1 Safety Instructions
Before you start working with programs that are programmed with the use of
the Sequence Function Chart (SFC), we recommend that you thoroughly fa-
miliarize yourself with the contents of this manual. Keep this manual in a
place where it is always accessible to all users.
The relevant requirements of qualified personnel are based on the job spec-
ifications as outlined by the ZVEI and VDMA professional associations in
Germany. Please refer to the following German-language publication:
Weiterbildung in der Automatisierungstechnik
Hrsg.: ZVEI und VDMA
MaschinenbauVerlag
Postfach 71 08 64
60498 Frankfurt
Interventions in the hardware and software of our products which are not
described in this instruction manual may only be performed by specially trai-
ned Bosch personnel.
DANGER
This symbol is used wherever an insufficient or lacking compliance with
instructions can result in personal injury.
CAUTION
This symbol is used wherever an insufficient or lacking compliance with
instructions can result in damage to equipment or data files.
DANGER
Retrofits or modifications may adversely affect the safety of the
products described!
DANGER
Danger of life through inadequate EMERGENCY-STOP devices!
EMERGENCY-STOP devices must be active and within reach in all
system modes. Releasing an EMERGENCY-STOP device must not
result in an uncontrolled restart of the system!
First check the EMERGENCY-STOP circuit, then switch the system
on
DANGER
Danger to persons and equipment!
Test every new program before operating the system!
Documentation
This manual contains information about the Sequence Function Chart
(SFC).
L This symbol indicates that the description refers to an action that you are re-
quired to perform.
Version
Modifications
As this instruction manual has been newly released, there have been no mo-
difications.
Trademarks
All trademarks referring to software that is installed on Bosch products when
shipped from the factory represent the property of their respective owners.
At the time of shipment from the factory, all installed software is protected by
copyright. Software may therefore be duplicated only with the prior per-
mission of the respective manufacturer or copyright owner.
2 Introduction
For the MADAP programming mode, the following PLC programme pack-
age variants are available:
D MMI-MADAP with MMI operator terminal
D BT-MADAP with BT-type operator terminal
The Help function of the Bosch WinSPS PLC Programming System provides
additional online support for creating programs for process sequences. Sup-
plementary information about the sequence function chart can be displayed
via the Direct Help button or by means of the Contents and Index options
on the Help menu.
The folder with the pathname C:\Bosch\WinSPS contains the sample file of a
precess sequence, named WASCHTIP.AS.
Command Command
output (indirectly) output (directly)
via link conditions via active step
With the application being equal, the MADAP programming structure always
produces shortened program processing times and an optimized (shorter)
machine cycle time.
The following pages show the example of a car wash plant that was created
with the use of the SFC sequence function chart and the step sequence
structure based upon the MADAP programming mode.
Start
–Fahrzeug Vehicle
–Karte
–WZT Condition of
1N2
Card
–LOG1 Logical 1
–LOG1 Logical 1
–LOG1 Logical 1
–LOG1 Logical 1
–LOG1 Logical 1
–LOG1 Logical 1
–LOG1 Logical 1
–LOG1 Logical 1
End
The sequencing from a step N to step n+1 depends upon meeting the condi-
tions (transitions, end position attained in step n) inherent in step n.
At the project planning stage, significant time savings occur as a result of the
use of preexisting standardized structures which merely require adaptation.
At the time a system is commissioned, the fact that a control function (or
step) can be unambiguously assigned to a given machine movement proves
a definite advantage. Designated link modifications are possible.
A sequence cascade may consist of a linear step sequence and several step
segments that are interlinked via AND (parallel) or OR (alternative) branch-
ings. A jump instruction (skipping one or more steps) or programmed loop
are also possible.
The structure of a sequence control system is divided into the following main
function blocks:
D Management of system operating modes.
D Graphical function display of sequence cascades, including steps and
branches, jumps and loops.
D Command output.
D Diagnostics and error indication.
D User information.
The steps are processed in succession while observing the various stuctural
elements. An active step prepares the successive step. The command out-
put occurs during the active step, provided that conditions have been met.
The activation of each respective next step deactivates the preceding step.
In a linear sequence cascade, only one step is active at a given time. If paral-
lel function sequences are required, several sequence cascades must be
programmed.
Activating the processing of a step can also start a watchdog timer. If the
watchdog interval elapses before the step processing has been concluded,
this signals that a step was improperly executed, at the same time issuing
the signal for fault diagnostics.
This MADAP program part processes the conditions for the various operat-
ing modes. The execution of operating modes is arranged in accordance
with priorities. The highest, medium and lowest priorities are assigned to the
Manual, Inching (single step) XX and Automatic operating modes, respect-
ively.
Automatic mode
See also WinSPS Help, Index, “SFC: Automatic Sequence”, “SFC: Operat-
ing Mode”.
In some systems, the Machine Home position comprises one of the necess-
ary prerequisites for the start of a given operating mode. Other systems per-
mit the start of automatic sequencing from any system position, provided
that the start was preceded by a successful synchronization between pro-
cess sequences and machine position (does not apply to CL200).
In “Inching (single step)” mode, the process steps are processed in a se-
quential fashion, each step requiring the push of a button, there being no au-
tomatic step-on.
Semi-automatic mode
See also WinSPS Help, Index, “SFC: Operating Mode”.
In “Manual (setup)” mode, the steps within the sequence cascade are freely
selected, and the processing is started manually.
This operating mode facilitates system commissioning and provides for a di-
rect function verification of a given actuator, e.g. subsequent to performing
repair work. The function is also used for manual operation by the machine
operator.
Besides the basic operating modes mentioned in the foregoing, there are
also application-specific operating modes, such as Single cycle or Halt at the
end of a cycle.
In the MADAP structure, in conjunction with the Enable signals that are de-
pendent upon the respective operating mode, the command output is
handled by comparing the number of the active step and assigning it to the
step action.
This program part manages the messages and diagnostic indications and
readies them for output to the operator terminal.
This is accomplished, for example, with multiline displays (BT5, BT20) or in-
dustrial-standard PCs (BT150, BT200).
Each step element features one or more input parameters (command output
conditions) in an AND or OR link (also with negation). The command output
represents the action leading up to the step.
Start
–1S01
BEFA condition
Limit switch:
Left-hand gate
–1S02 Transition
Linmit switch: Gate down
1N2 –1K01
Schr2 Motor 1KM01
–1S04
Limit switch: Entrance
&
–1S05
Limit switch: Transport
End
Start
Start step
–1S01
Transition
Limit switch: Left-hand gate
View: Overview chart
1N1 –1K00 Action
Schr1 Motor 1KM00
–1S02
Limit switch: Gate, bottom Display switchover
&
–1S04
Limit switch: Entrance
1N2 –1K01
Schr2 Motor 1KM01
–1S03
Limit switch: Right-hand gate
End
See also WinSPS Help, Index, “SFC: Branch”, “SFC: Loop”, and “SFC:
Jump.”
1N1
Conditions (BEFA)
>
= 1 &
1N2 R S *1 Actions
Transitions (WSB)
1N3
The “Conditions” field (BEFA) contains the symbolic or absolute operand ad-
dresses for the command output of a given step. Several AND or OR links
(also with negation) are possible.
The “Actions” field contains the absolute or symbolic addresses of the action
operand. Several parallel actions are possible.
The command output occurs with the active step and when all conditions
have been satisfied.
1N1
Transitions
>
= 1 &
1N2 R S *1 Actions
1N3
The “Actions” field contains the absolute or symbolic addresses of the action
operand. Several parallel actions are possible.
Sequence cascade programming on the basis of the MADAP control and op-
erating concept provides significant advantages when compared to the con-
ventional sequence cascade programming mode using the step marker
technique.
The sequential order of module calls for the MADAP program package is
shown in the diagram below.
OM1
Administra-
tion module
FC0:KETTEN FC65:K_BETRA DM65: DBAS
BA–KETTEN
;Op-mode Op-mode
BA–K_BETRA
;administration, module for
;Kette 1 ;all cascades all cascades
;Application ;Cascade call
;program ;Command
;starts here. KETTE FC1:SCHRK01 DM1:DM_K01
;output
Process ;Step program Data module
;Branching
mgmt. ;for Kette 1 for Kette 1
;management
FC64:SCHRK64 DM64:DM_K64
;Kette 64
;Cascade call ;Step program Data module
;Command ;for Kette 64 for Kette 64
;output
;Branching UAWLnnn.PXO
;management ;Step-specific
;actions
;(optional)
Shading legend:
Generated by SFC Editor, no user input possible (OM1: Optional call of “KETTEN” module).
Modules to be generated by the SFC Editor for subsequent modification by the programmer.
The sequence function chart (SFC) generates the program and data mod-
ules for the sequence cascades.
CAUTION
Once generated, the modules can be modified manually for testing
purposes. The “SFC, Create Sequence” command will again over-
write the modifications with the function initially programmed under
SFC.
Symbol file
With the exception of the UAWLnnn.PXO module, the modules belonging to
the sequence cascade structure are written into the symbol file.
CAUTION
Once generated, the module entries in the symbol file can be modi-
fied manually. The “SFC, Create Sequence” command will restore
the MADAP structure (module addresses).
Symbol file
Operand addresses for CL200
As required by the user, the call for the cascade module (CM –KETTEN)
can be generated automatically in the OM1 or entered manually.
CAUTION
When using the automatic generating function, the original program-
ming in the OM1 organization module will be overwritten.
As an alternative, the call (for the sequence cascades) can also be inserted
manually at a suitable program position. The functions of this module apply
to all sequence cascades.
For all sequence cascades, the sequence function chart generates the –
D Call for the sequence operation mode module
D Call for the cascade management module
D Management of simultaneous branches
D Command output
D Management of multiple assignments
CAUTION
Once generated, the KETTEN.PXO program module can be modified
manually for testing purposes. The “SFC, Create Sequence” com-
mand will again overwrite the modifications with the function initially
programmed under SFC.
The KETTEN module is divided into networks, with each network containing
a separate function block of the associated cascade.
The call for the step module is issued from within the cascade organization
module, e.g. KETTE.PXL.
CAUTION
Once generated, the SCHRKnn.PXO step module can be modified
manually for testing purposes. The “SFC, Create Sequence” com-
mand will again overwrite the modifications with the function initially
programmed under SFC.
The SCHRKnn.PX0 step module contains the PLC program matching the
sequence cascade, including all command output conditions, step-on condi-
tions (transitions) and branching jumps.
The sequence cascades are listed in the sequence of their graphical repre-
sentation. The steps are listed in the jump instruction at the start of the mod-
ule, and are followed by the individually programmed steps.
The sequence steps are divided into manual and automatic branches. The
determination of which branch is to be processed is derived through loading
the reported operating mode (”control mode”) from the cascade data module
belonging to a respective sequence cascade.
In the event that the conditions for Manual and Automatic mode are identical,
no specific branches will be created for the operating modes.
The branches contain –BEFA (command output) and –WSB (step-on condi-
tion) markers which are defined for each type of control unit. The referred
–BEFA und –WSB markers have the same addresses in each step and in
each sequence cascade of a given control unit type.
The conditions from the automatic branch can be copied into the manual
branch. In this manner, programming the manual branches can be accom-
plished through copying and subsequent modification under conditions that
are almost identical to those provided by automatic programming.
The diagnostic function accesses these branches for display purposes while
analyzing the links at the same time.
Manual mode permits random access to any step of the sequence cascade.
The step processing is started by the movement key on the operator ter-
minal.
The cascade mode module is called from within the KETTEN.PXO cascade
module.
CAUTION
If this module does not yet exist, it will be created. The user will then
modify this module in accordance with his requirements. The use of
the “SFC, Create Sequence” command will not cause an existing ca-
scade mode module (K_BETRA.PXO) to be modified.
In the DBAS.PXD cascade mode data module, a data word is provided for
the operating mode of each sequence cascade, i.e., data word 2 for cascade
1, data word 4 for cascade 2, and so forth.
;START:
A –E_START ;Operating mode started?
= A.3 ;Start of operating mode
Significance of operating mode bits for CL200, excerpt from DBAS data
module.
Bit Explanation
0 Manual mode (H)
1 Inching mode (T)
2 Automatic mode (A)
3 Start (s)
4 Execute next step, S+1
5 Set step
6 Acknowledge fault (D7.7=1)
7 Reset
8 Stop
9 reserved
10 reserved
11 reserved
12 reserved
13 reserved
14 reserved
15 Fault acknowledgement is mandatory
Significance of operating mode bits for CL350/ CL400/ CL500/ ICL700/ PCL,
excerpt from DBAS data module.
Bit Explanation
0 Manual mode (H)
1 Inching mode (T)
2 Automatic mode (A)
3 Start (s)
4 Execute next step, S+1
5 Set step
6 Acknowledge fault (D7.7=1)
7 Reset (r)
8 Stop (h)
9 Synchronize
10 reserved
11 Generate cascade data module
12 No step-on in same cycle
13 Diagnostics if WSB step-on condition=HIGH
14 WSB does not reset BEFA, manual mode only
15 Fault acknowledgement is mandatory
The referred cascade organization modules are supplied in the MADAP soft-
ware packages and may also be purchased separately. They are entered
into the symbol file and are not generated. The function of cascade organiz-
ation modules is controlled by appropriate parameterization.
Using the functions below, the sequence function chart generates the mod-
ule as a template, and supplements the action through the PLC-Edit action
element:
D Language elements
D Insert action
D PLC commands
An existing UAWLnnn.PXO module will not be overwritten, and an additional
module named UAWLnnn+1.PXO is created. The module must be modified
by the user. It is not entered into the symbol file.
The module can be edited with the use of the “EDIT” command.
;Step 1N1
CPLA 1,B
A –ZERO ;1N1 command output?
PUSH B ;Save register B
KETTEN.PXO
;Step 1N1
L D16,B
PUSH B
UAWLnnn.PXO
POP B A –1S10
= M23.0
The sequence function chart generates the data modules for the sequence
cascades.
CAUTION
If this module does not yet exist, it will be created. The user will then
modify this module in accordance with his requirements. The use of
the “SFC, Create Sequence” command will not cause an existing ca-
scade mode module to be modified.
The data modules of the sequence cascades essentially contain the follow-
ing entries (example of CL400):
D D0 Fault and/or status entries about sequence cascade
D D2 Cascade number
D D4 Number of steps
D D6 Selected operating mode
D D8 Reported operating mode
D D10 Step number of completed step
D D12 Step number of current step
D D14 Step number of prepared step
D D16 Command output via step number
D D18 Actual value, wait time
D D20 Actual value, monitoring time
D D48 thru D62 Synchronized steps
D D64 thru D78 Active step
D D80 thru D94 Binary command output for active step
The data is entered by means of the “Generate cascade data module” (D7.3)
function or the “Generate sequence cascade” function (CL200).
The “Generate cascade data module” function (except for CL200) is pro-
cessed on the following occasions:
D Subsequent to each program load
D Upon power-up of the PLC
The diagnostic function utilizes a segment of this data for the display.
Detailed information about the data bits can be taken from the module de-
scriptions of the respective descriptions of the MADAP software packages.
The DBAS.PXD data module serves to control the operating module of the
sequence cascades. For information on operating mode bits, refer to page
3-9.
With the exception of the CL200, the operating mode is read from the
DBAS.PXD in the KETTEN.PXO module and transferred to the cascade or-
ganization module by means of a parameter.
If the CL200 is used, the operating mode is directly taken from the
DBAS.PXD module and entered into data word D6 of the cascade data mod-
ule.
CAUTION
If this module does not yet exist, it will be created. The user will then
modify this module in accordance with his requirements. The use of
the “SFC, Create Sequence” command will not cause an existing mo-
dule to be modified.
An operator terminal accesses this data module for diagnostics and display
purposes.
The MADAP software package makes use of marker addresses that are
subject to controller-specific definition.
–BEFA
In the sequence cascades, the assignment of the –BEFA command output
marker is programmed via the command output conditions.
The step action is carried out when the marker goes HIGH.
In each sequence cascade and individual step in both Manual and Automatic
branches, the same marker with a defined address is used. The marker as-
signment to the proper sequence cascade and step is handled by the se-
quence organization module and by a corresponding entry in the cascade
data module. The program-controlled command output concerning a given
step action is effected by a compare operation in the KETTEN.PXO module.
–WSB
The assignment of the –WSB step-on condition marker is programmed via
the conditions governing the step-on action. If this marker goes HIGH, pro-
cessing is ended for the current and started for the subsequent step. At this
point, there exist options for programmer intervention (e.g. linking with time-
out or wait time marker).
In each sequence cascade and individual step in both Manual and Automatic
branches, the same marker with a defined address is used. The marker as-
signment to the proper sequence cascade and step is handled by the se-
quence organization module.
This method can be used to skip processing steps (branching jump) or to im-
plement OR branches and loops.
With the use of the sequence function chart, this marker word address is
automatically tagged with the proper destination step number in the
SCHRKnn.PXO step module.
Independent of the foregoing, the wait time can be adapated for each step
through step-specific programming.
For example, the step-on action can be delayed by linking the wait time
marker within the step programming of the Automatic branch.
For example, the step-on action can be delayed by linking the wait time
marker within the step programming of the Automatic branch.
The functions in the operating mode word of the cascade data modules
(DM_K01 through DM_Knn) are selected and/or executed when the re-
spective bit attains HIGH status. Individual functions are described below.
Once Start (D6.3) has been enabled, step execution under Automatic condi-
tions requires selecting the S+1 key (D6.4) on the operator terminal.
Once Start (D6.3) has been enabled, the step execution under Automatic
mode conditions is system-controlled.
D6.4 S+1
D Inching mode,
execute next step; –WSB step-on condition of current step must be met
D Semiautomatic mode,
the next steps are executed as long as the –HALBAUTO semiautomatic
marker is HIGH; prerequisites: –WSB step-on conditions of steps are
met.
D6.7 Reset
Deletes active step from processing, reinitializes step processing and pre-
pares step 1.
D7.0 Halt
Halts sequence cascade. Processing of current step continues. Command
output continues.
D7.1 Synchronize
(Not for CL200.)
D Automatic
In the SCHRKnn.PXO step module, the Automatic branch is searched for
fulfilled –BEFA command output conditions and nonfulfilled –WSB step–on
conditions. This is done to check which line of step programming matches
the current machine position.
In the event that the exact programmed step matching the current machine
posiotion is found, this step is prepared for the start of operation in Automatic
mode.
The sequence organization module writes the cascade data, e.g. the
number of steps, to the DM_Knn.PXD cascade data module. To do so, the
start bit must be LOW.
The D7.4 operating mode bit controls the step-on action within the same
PLC cycle.
Automatic mode:
D LOW state:
With the step-on condition fulfilled, the next step is processed in the same
PLC cycle, whereby program processing time is shortened. The cycle
time of the machine is thus optimized.
D HIGH state
With the step-on condition fulfilled, the next step is processed in the
subsequent PLC cycle.
D LOW
A diagnosis does not require acknowledgement. With the –WSB step-on
condition fulfilled, automatic step-on occurs.
In Branching Step 2, the step-on operands I0.5 and I0.6 determine whether
Step 3 or Step 4 is to be processed next.
;Branching Step 2
1N2:
;OR decision
DEF M230.0,–Zweig1Auto_1
DEF M230.1,–Zweig2Auto_2
L 4,A
A –Zweig2Auto_2
JPC AlternativVerzweigungSchritt2
L 2,A
AlternativVerzweigungSchritt2:
T A,–VERZWADR
Examples:
D Basic start conditions
D Tandem limit switch monitoring
The linear sequence cascade processes the steps, in accordance with their
graphical diagram, from the first step to the last in a contiguous ascending
sequence. The command output occurs accordingly.
The sequence function chart generates the program organization for a se-
quence cascade.
Example: CL400
Linear sequence cascade 1 with steps 1N1 (start step), 1N2, 1N3 and differ-
entiation of Manual and Automatic mode.
–1S04 –1S01
Limit switch, entrance Limit switch, gate, left
–1S04
–LOG1 Limit switch, entrance
Logical 1
1N2 –1K03
1N2 –1K03
Motor 1KM03
Motor 1KM03
–1S05
–1S05
Limit switch, transport
Limit switch, transport
–1S06
Limit switch,
–1S06 station 1
Limit switch,
1N3 –1K04
station 1
Motor 1KM04
1N3 –1K04
Motor 1KM04 –1S07
Limit switch, station 2
–1S07 End
Limit switch, station 2
End
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTEN.PXO Operating mode control & command output module
D K_BETRA.PXO Cascade operating modes
D SCHRK01.PXO Step programming for sequence cascade
D DB_K01.PXD Data module for sequence cascade
D DBAS.PXD Data module for operating modes
The difference between the command output for a sequence cascade with
alternative branches and that for a linear sequence cascade is that no com-
mand output occurs for the steps in the branch that is not being processed.
The sequence function chart generates the program organization for a se-
quence cascade.
Example: CL400
Section of alternative-branched sequence cascade 1 with Step 1N2, alter-
native step 1N3, alternative step 1N4 and step 1N5.
I0.4
Limit switch,
entrance
1N2 A0.5
Motor 1KM05
I0.5 I0.6
Limit switch, transport Limit switch, station 1
I0.6 I1.0
Limit switch, Limit switch,
station 1 station 3
I0.7 I1.1
Limit switch, station 2 Limit switch, station 4
I0.4
Limit switch,
entrance
1N5 O0.3
Motor 1KM03
In step 1N2 the step-on conditions for step 1N3 and/or step 1N4 define the
step number that will be written into the –VERZWADR branching marker
word. The step processing will occur accordingly.
If the state of both step-on conditions is HIGH, the I0.5 step-on condition will
have priority (step-on to 1N3) over its I0.6 counterpart.
The sequence organization module (e.g. KETTE.PXL) controls, via the con-
tents of Register A, the step processing in the SCHRK01.PXO step module.
In accordance with the decision in step 1N2 (stored in branching marker
word), a specific alternative branch per sequence cascade is not processed.
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTEN.PXO Operating mode control & command output module
D K_BETRA.PXO Cascade operating modes
D SCHRK01.PX0 Step programming for sequence cascade and
branching management
D DB_01.PXD Data module for sequence cascade
D DBAS.PXD Data module for operating modes
For each paralell branch, the command output is handled by its own se-
quence cascade.
The sequence function chart generates the program organization for several
sequence cascades.
Example: CL400
Section of simultaneous-branched sequence cascade. Main cascade with
steps 1N1, 1N2 and 1N3. Simultaneous cascade 2 with step 2N1.
I0.1
Limit switch, gate,
left
1N1 O0.2
Motor 1KM02
I0.2
Limit switch, gate bottom
I0.3 I0.4
Limit switch, gate, Limit switch,
right entrance
I0.5
Limit switch, transport
I0.6
Limit switch,
station 1
1N3 O0.5
Motor 1KM05
This data is again loaded in the KETTEN.PXO sequence module and trans-
ferrred, as parameter P1 in both the Network 1 (main sequence) and Net-
work 2 (simultaneous sequence), to the KETTE.PXO module.
In the example, the module call (CM KETTE,4) occurs twice with the fol-
lowing parameters:
D Number of respective sequence cascade
D Operating mode of respective sequence cascade
D Time value for monitoring interval of respective sequence cascade
D Time value for wait time (from step to step) of respective sequence cas-
cade
If the main sequence is engaged in processing the first step in the simulta-
neous branch, the simultaneous sequence will be started.
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTEN.PXO Operating modes, command outputs, and simulta-
neous sequence operating modes
D K_BETRA.PXO sequence operating modes
D SCHRK01.PXO Main sequence
D SCHRK02.PXO Simultaneous sequence
D DB_K01 Data module for main sequence
D DB_K02 Data module for simultaneous sequence
D DBAS Data module for operating modes
The sequence function chart generates the program organization for a se-
quence cascade.
Example: CL400
Section of loop in sequence cascade; step 1N3 is processed repeatedly.
–1S03
Limit switch, gate,
right
1N2 –1K02
Motor 1KM02
–1S04
Limit switch, entrance
–1S05
Limit switch, transport
1N3 –1K03
Motor 1KM03
–1S06
Limit switch, station 1
–1S07
Limit switch, station 2
–1S08
Limit switch,
station 3
1N4 –1K04
Motor 1KM04
The loop will be processed until the step-on condition operand for –1S06 has
attained LOW state, and the step-on condition operand for –1S07 has gone
HIGH.
If both are HIGH, the –1S07 input will have priority, meaning that loop pro-
cessing will either be terminated or not executed.
The sequence organization module (e.g. KETTE.PXL) controls, via the con-
tents of Register A, the step processing in the SCHRK01.PXO step module.
In accordance with the decision in step 1N3, loop processing is either ex-
ecuted or omitted.
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTEN.PXO Operating mode control, command output
D K_BETRA.PXO sequence operating modes
D SCHRKnn.PXO Step, programming, loop management
D DB_Knn.PXD Data module for sequence cascade
D DBAS.PXD Data module for operating modes
The jump is used to advance directly to any desired step of a given se-
quence. The jump is also used to exit closed structures, such as loops or al-
ternative-branched sequences.
In that case, the jump will be controlled via the step-on conditions.
The sequence function chart generates the program organization for a se-
quence cascade.
Example: CL400
Section showing jump from step 1N3 to step 1N9.
–1S05
Limit switch, transport
1N3 –1K05
Motor 1KM05
–1S08
Limit switch, station 3
–1S06
Limit switch, station 1
–1S07
Limit switch, station 2
1N4 –1K04
Motor 1KM04
–1S04
Limit switch, station 2
The jump is executed when the state of the –1S06 step-on condition is LOW
and that of the –1S08 step-on condition is HIGH.
If both are HIGH, the –1S06 step-on condition will have priority, meaning that
the jump will not be executed.
The sequence organization module (e.g. KETTE.PXL) controls, via the con-
tents of Register A, the step processing in the SCHRK01.PXO step module.
In accordance with the decision in step 1N3, the jump is either executed or
omitted.
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTEN.PXO Operating mode control, command output
D K_BETRA.PXO Cascade operating modes
D SCHRKnn.PXO Step programming, loop management
D DB_Knn.PXD Data module for sequence cascade
D DBAS.PXD Data module for operating modes
Notes:
Step markers (also: “step flags”) comprise the major element in conventional
sequence cascade programs adhering to the standardized notation as per
DIN EN61131. Analogous to their programming, step markers are pro-
cessed in succession. Processing commences in the first step. Once the last
step has been processed, an entire system cycle (plant cycle) is completed.
The state (HIGH / LOW) of the step marker is assigned by the various transi-
tions. In a given sequence cascade, only one step (marker) is active.
The step marker state can be used either directly for command output func-
tions and/or for a variety of other bit operations.
OM1
Organization module
;Branching
;management
UAWLnnn.PXO
;Step-specific
;programming
;(optional)
Shading legend:
Generated by SFC Editor, no user input possible.
OM1: Optional call of “KETTEN” module.
Modules to be generated by the SFC Editor for subsequent modification by the
programmer.
The sequence function chart (SFC) generates the program organization for
a sequence cascade.
CAUTION
Once generated, the modules can be modified manually for testing
purposes. The “SFC, Create Sequence” command will again over-
write the modifications with the function initially programmed under
SFC.
Symbol file
With the exception of the UAWLnnn.PXO module, the modules belonging to
the sequence cascade structure are written into the symbol file.
CAUTION
Once generated, the module entries in the symbol file can be modi-
fied manually. The “SFC, Create Sequence” command will restore
the step marker structure (module addresses).
As an option, the module call for the KETTEN.PXO module can be entered
into the OM1 organization module at the time of module generation.
CAUTION
When using the automatic generating function, the original program-
ming in the OM1 organization module will be overwritten.
The module comtains the command output. As an option, the command out-
put can also be handled by a separate AUSGABE.PXO output module.
The step markers are used to control the action (command output).
;Start step
The module call for the AUSGABE.PXO output module is not generated
automatically. It must be inserted manuallly into the program.
The module allows for instructions that are additional to the action of a given
step.
Using the Toolbox / Insert Action / PLC Instructions menu sequence, the
sequence function chart generates, as a template, the UAWLnnn.PXO mod-
ule. The step action is thus supplemented by the PLC Edit action element.
The program from the UAWLnnn.PXO module is linked with the step marker
1N1 in the KETTE01.PXO module.
Example of UAWLnnn.PXO
A –1S10
= M23.0
Link to step
;Action step 1N1
A –1N1
A –1S10
= M23.0
To construct a sequence cascade with the use of the step marker technique,
the following structural elements are available:
D Linear structure
D Alternative branch
D Parallel branch
D Loop
D Jump
The linear sequence cascade processes the steps, in accordance with their
graphical diagram, from the first step to the last in a contiguous ascending
sequence.
The sequence function chart generates the program organization for a se-
quence cascade.
Example
Linear sequence cascade 1 with start step 1N0, den Schritten 1N1, 1N2 und
1N3.
Start
Start step
–1S01
Limit switch, gate, left
1N1 –1K01
Motor 1KM01
–1S02
Limit switch, gate, bottom
1N2 –1K02
Motor 1KM02
–1S03
Limit switch, gate,
right
1N3 –1K04
Motor 1KM04
–1S05
Limit switch, transport
End
For the example on the preceding page, the “Rebuild All” function generates
the following modules, which are also written into the symbol file:
D KETTE01.PXO Step programming and command output
D KETTEN.PXO Call for sequence cascade
D AUSGABE.PXO Command output in separate program module, se-
lectable as an option.e-branched
The sequence function chart generates the program organization for a se-
quence cascade.
Example
Alternative-branched sequence cascade w/ alternative steps 1N2 and 1N3.
Start
Start step
–1S01
Limit switch, gate, right
1N1 –1K01
Motor 1KM01
–1S02 –1S06
Limit switch, gate, bottom Limit switch, station 1
–1S03 –1S07
Limit switch, gate, Limit switch, station 2
right
1N4 –1K04
Motor 1KM04
–1S05
Limit switch, transport
End
Step marker 1N1, in conjunction with transition –1S02, initializes either step
1N2 or, together with transition –1S06, it iniliazes step 1N3.
If the state of both transitions is HIGH, the initialization of step 1N2 will have
priority.
Step 1N4 is initialized either by step 1N2 in conjunction with transition –1S03
or by step 1N3 in conjunction with transition –1S07.
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTE01.PXO Step programming and command output
D KETTEN.PXO Module call for sequence cascade
D AUSGABE.PXO Command output in separate program module as a
selectable option
The sequence function chart generates the program organization for a se-
quence cascade, adding the required number of simultaneous branches.
Example
Simultaneous-branched sequence cascade with simultaneous branches
1N2 and 1N3.
Start
Start step
–1S01
Limit switch, gate, left
1N1 –1K01
Motor 1KM01
–1S02
Limit switch, gate, bottom
–1S03
Limit switch, gate,
right
1N4 –1K03
Motor 1KM03
–1S04
Limit switch, entrance
End
The step marker 1N1 simultaneously initializes steps 1N2 and 1N3; the sim-
ultaneous branch is processed at the same time.
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTE01.PXO Step programming and command output
D KETTEN.PXO Module call for sequence cascade
D AUSGABE.PXO Command output in separate program module as a
selectable option
The sequence function chart generates the program organization for a se-
quence cascade.
The loop is represented by an arrow connecting the end of a step with the
start of a step.
Example
Loop in sequence cascade with loop step 1N2.
Start
Start step
–1S01
Limit switch, gate, left
1N1 –1K01
Motor 1KM01
–1S02
Limit switch, gate, bottom
1N2 –1K02
Motor 1KM02
M0.7
–1S03
Limit switch, gate,
right
1N3 –1K03
Motor 1KM03
–1S04
Limit switch, entrance
End
The loop processing for step 1N2 is controlled by the transitions of marker
M0.7 and input –1S03.
Subsequent to step 1N1, the program part begins with loop processing of
step 1N2. Step 1N2 is followed by checking the state of the loop condition.
If marker M0.7 is HIGH and input –1S03 is LOW, the loop will be processed.
The step marker of the last step in the loop is reset, and the step marker of the
first step in the loop is initialized. The loop cycle begins.
If the state of the transitions of both M0.7 and –1S03 is HIGH, transition M0.7
will have priority.
If the state of marker M0.7 is LOW, no additional loop cycles are processed,
step marker 1N3 is initialized by step 1N2, which concludes loop processing.
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTE01.PXO Step programming and command output
D KETTEN.PXO Module call for sequence cascade
D AUSGABE.PXO Command output in separate program module as a
selectable option
The jump is used to advance directly to any desired step of a given se-
quence. The jump is also used to exit closed structures, such as loops or al-
ternative-branched sequences.
The sequence function chart generates the program organization for a se-
quence cascade.
Example
Jump from step 1N2 to step 1N1.
–1S01
Limit switch, gate, left
1N1 –1K01
Motor 1KM01
–1S02
Limit switch, gate, bottom
1N2 –1K02
Motor 1KM02
–1S03
Limit switch, gate,
right
–1S04
Limit switch, entrance
1N3 –1K04
Motor 1KM04
–1S05
Limit switch, transport
The jump is programmed in step 1N2. The state of the transition to the jump
is checked.
If the state of the condition –1S03 is HIGH, step 1N1 is initialized. Step
marker 1N2 is reset.
If the state of condition –1S03 is LOW and that of –1S04 is HIGH, the step
marker of step 1N3 is set, and no jump is executed. This causes the step
marker 1N2 to be reset.
If the state of the transitions of both –1S03 and –1S04 is HIGH, transition
–1S03 will have priority.
For the example on the preceding page, the “Create Sequence” function
generates the following modules, which are also written into the symbol file:
D KETTE01.PXO Step programming and command output
D KETTEN.PXO Module call for sequence cascade
D AUSGABE.PXO Command output in separate program module as a
selectable option
Notes:
A Appendix
A.1 Abbreviations
Abbr. Explanation
1N1 Step designation
BEFA MADAP command output marker
BT Operator terminal
DM Data module
FC Program module
LOG1 Logical 1 (high)
LOG0 Logical 0 (low)
OM Organization module
S+1 Step-on designation
SCHRK Step programming for sequence cascade
SFC Sequential function chart (graphical se-
quence programming)
StoeM Fault marker
UAWL User Instraction list
UET_Halt Halt monitoring time
VERZWADR MADAP branch address
WinSPS PLC programming software
WSB MADAP step-on condition marker
WZT Wait interval timer
WZT_Halt Halt wait time
A.2 Index
A KETTE700.PXL, 3–3
Action, Edit, 3–10, 5–6 KETTEN.PXO, 3–5, 5–4
Active step, 3–12 KETTEnn.PXO, 5–4
Alternative branch, 2–5
AUSGABE.PXO, 5–2, 5–6 L
Output module, 5–4 Linear step sequence, 2–5
Automatic mode, 2–7, 3–16 Loop programming, 2–5
B M
Basic start conditions, 3–20 MADAP
BEFA, 3–4, 3–6, 3–7, 3–14, 3–18 Alternative branch, 4–4
Branch address, 3–14 Branch jump, 4–10
Branching address, 3–4 Generated modules, 3–3
BT–MADAP, 2–1 Jump, 4–10
Linear sequence cascade, 4–2
C Loop, 4–8
Cascade data module, Generate, 3–17 Parallel branching, 4–6
Cascade mode module, 3–8 Program structure, 3–1
Cascade module, 3–5, 5–4 Programming structure, 2–1
Cascade number, 3–6 Sequence step, 2–11
Command output, 2–8, 2–9, 3–4, 3–14 Software package, 3–10
Specific markers, 3–14
D Standardized function modules, 3–2
Data module Structural elements, 4–1
Diagnostics, 3–13 Symbol file, 3–4
Sequence function chart, 3–13 UAWLnnn.PXO, 3–10
DB_Knn.PXD, 3–12 Mandatory fault acknowledgement, 3–18
DB120.PXD, 3–13 Manual mode, 3–16
DBAS.PXD, 3–8, 3–13 MMI–MADAP, 2–1
Diagnostics, 2–8 Mode start, 3–16
CL200, 3–13 Modifications, 1–5
Documentation, 1–5 Monitoring time, 3–12, 3–14
Monitoring time HALT, 3–15
E Movement key, 3–7
EMERGENCY-STOP devices, 1–4
N
F Number of steps, 3–12
Fault diagnostics, 2–6
Fault indication, 2–8 O
Fault marker, 3–14 Operand addresses, Entry in symbol file, 3–4, 5–3
Function modules, 3–1 Operating mode, 2–7, 3–12
Automatic Sequence, 2–7
H Manual (setup), 2–8
HalbAuto, 3–4 Priority, 2–7
Halt, 3–17 Semi–automatic, 2–7
Halt acknowledgement, 3–16 Single step, 2–7
Operating mode bits, 3–9, 3–16
I
Inching mode, 3–16 P
Insert action, 3–10 Parallel branch, 2–5
PLC commands, 3–10
J Process sequence, Graphical representation, 2–9
Jump, 2–5 Process sequences, 2–6
K Q
K_BETRA.PXO, 3–3, 3–8 Qualified personnel, 1–2
KETTE.PXL, 3–3
KETTE200.PXL, 3–3
R V
Reset, 3–17 Version, 1–5
VERZWADR, 3–4, 3–14
S
S+1, 3–16 W
Safety instructions, 1–3 Wait time, 3–12
SCHRKnn.PX0, 3–6 Wait time HALT, 3–15
Sequence cascade Wait time marker, 3–15
Call–up, 3–5 Watchdog timer, 2–6
Data module, 3–12 WSB, 3–4, 3–6, 3–7, 3–14, 3–18
Fault entries, 3–12 WSB does not reset BEFA, 3–18
Principle, 2–5 WZT, 3–4, 3–15
Sequence cascades, Status entries, 3–12 WZT_Halt, 3–4, 3–15
Sequence control system, 2–6
Sequence organization modules, 3–10
Set step, 3–16
Special–purpose cascades, 3–20
Standard operation, 1–1
Step, 2–6
Step , Branching, 3–19
Step element, 2–9
Step flag, 5–1
Step marker, 5–3
Sequence step, 2–12
Structural elements, 6–1
Symbol file, 3–3
Step markers, 5–1
Alternative branch, 6–4
Example, 5–5
Generated modules, 5–2
HIGH/LOW state, 5–1
Jump, 6–10
Limear sequence cascade, 6–2
Loop, 6–8
Module structure, 5–1
Output module, 5–6
Processing example, 5–5
Sequence cascade module, 5–4
Simultaneous branch, 6–6
State, 5–3
Symbol file, 5–2
UAWLnnn.PXO, 5–6
Step module, 3–6
Step number, 3–12
Step processing, 3–7
Step–on action, 3–17
Step–on condition, 2–9
StoeM, 3–4, 3–14
StoeM, fault marker, 3–4
Synchronize, Automatic, 3–17
Synchronized steps, 3–12
T
Tandem limit switch monitoring, 3–20
Trademark, 1–5
Transition, 2–9
U
UAWLnnn.PXO, 3–3, 3–10, 5–2, 5–6
UET_Halt, 3–4, 3–15
UETKONTR, 3–4
Notes:
Ihr Ansprechpartner