Академический Документы
Профессиональный Документы
Культура Документы
CL150
Components
Programming
with WinSPS
Structured
Programming
Testing
Documentation
The world of the PLC
CL150
1070 072 346-101 (01.04) GB
E 2001
&
The CL150
= p. 06
>= &
The program WinSPS R
p. 13
>=
Logic & more
= p. 30
& T1
Programming with WinSPS
= p. 42
&
Structured programming
S p. 55
Z1
Appendix
& p. 61
=
3
4
This manual addresses skilled
personnel with PLC
knowhow and
technicians who are
familiar with basic
PLC programming.
5
The CL150 is an economic and This controller represents a cost instruction scale. The CL150 is
compact controller of the Bosch efficient solution for even the available in a number of version
Programmable Logic Controllers smallest systems. With an for an optimal and efficient
(PLC) series. The CL150 is enhancement of the decentralized adaptation to the tasks at hand:
small, efficient and can be used I/O system components, or in a dependent on the equipment,
for fast controlling tasks, for network as decentralized it comes with supplementary
example in the automotive controller, it can handle simple analog inputs and outputs or
range, small conveying systems tasks in assembly lines as the unit with optional operation within
and in systems for the printing offers very good networking a Fieldbus network.
and paper industry. capabilities and a large
The CL150
WinSPS
CL150 Extensions
6
Basic equipment of the CL150
7
The basic devices
Fieldbus interface
8
of CL150 and CL151
CL151A
9
CL150 Controller Installation
in the switchboard cabinet
Mounting on rail or with
screws
Vertical, horizontal or lying
mounting
X11A
system PE by installing it on a are not required if conforming.
grounded mounting rail Wire the 24V lines separately
Dimension the voltage supply from lines carrying higher
for maximum current load voltages.
Maximal permitted voltage The modules are supplied with
fluctuation +20%, 15% removable plug terminals.
Consequently there is no need
to disconnect the wiring when
replacing the controller or a
module.
10
Expanding the CL 150 with I/O modules
Switch off the signal voltages and
the external power supply of the
controller before you connect
modules.
Automatic addressing
The CL150 operating system automatically assigns the start
addresses to all connected I/O modules.
The module address is dependent on the sequence it is
arranged in.
Start address for input modules is 2, for output modules it is 1.
The data length of the module is taken into consideration; word
length modules are assigned to an evennumbered address.
Modules equipped with both inputs and outputs have the same
input/output start addresses.
Manual addressing
11
12
The program WinSPS
WinSPS at a glance
Default settings
Determining data related to
the project and controls
Project path and names,
Controller types
File names
Interface configuration
Customizing the WinSPS
startup parameters
Licensing information
Editor
Creating the PLC program
with the
Instruction List (IL)
Function diagram (FBD)
Sequential Function Chart
(SFC)
Contact plan (LD)
Interface test
Transferring the programs
Managing PLC memory
utilization
Creating symbol lists and
crossreference lists
Printing out all PLC
configuration data
Monitor
Testing the PLC program with
the CL150
Monitoring
the running PLC
the program status
data changes
the I/O image
Retrieving module calls
Changing the switch state of
inputs, outputs and markers
in the PLC.
13
Installing WinSPS
Start the installation program Programming license
Starting SETUP.EXE from the You do not require a license in
WinSPS CDROM. order to be able to work with
WinSPS and the CL150.
You can select SETUP.EXE However, if you want to use the
with the Explorer and start it program in other controllers as
per mouse click. Follow the well you must order a license key
instructions of the installation from Bosch. You can obtain
program. licenses free of costs and for
Valuable
information about timelimited demo versions, as
The installation program unpacks well as for full versions for
WinSPS
and copies all files to the hard singleuser and networking
disk drive. The adjacent icons applications.
will be created in the Bosch
program group. You can direct your license
Ordering a
WinSPS license application to Robert Bosch
You do not require a license in GmbH by fax. A dialog box that
per fax
order to be able to work with is opened with the initial startup
WinSPS and the CL150. of WinSPS offers you infor
However, if you want to use the mation on the procedure.
program in other controllers also
you must order a license key All features of the WinSPS
from Bosch. software will be fully enabled
Removing after you have entered the Bosch
Uninstalling WinSPS license key.
WinSPS from
the hard disk Always remove a licensed
drive, save for WinSPS version with the The license is valid only for the
the licensing program Uninstall WinSPS. installed WinSPS program. If
information Initialize it with a click on the you want to use a second
corresponding icon in the Bosch WinSPS installation, you must
program group. Do not use the either order another license or
Explorer to remove WinSPS. transfer the existing license to the
This will delete all existing second version. This prevents a
licensing information. startup of the current WinSPS
To recognize the license key, the installation until you have
PDF files of the new WinSPS software must be returned the license to it.
controller installed in the same directory as
programming the previous version.
manuals and You can use the License button
information on in the WinSPS program window
SFC and PLC WinSPSproject customization
programming for license transfer and changes.
14
Connecting the PC to the CL150
Customizing communication
parameters
The respective interface is
selected in the WinSPS window
Project settings > Connecting
the PLC via:. The transfer rate
of the CL150 is set fixed to
19,200 baud.
Interface test
The WinSPS software can If the data communication is Check whether the PC detects
test the function of the data disrupted, the serial interface. You must
communication and query the check whether the controller restart Windows when you
transfer rate settings. This is switched on initially use the interface or if,
interface test is started in the and whether all plugs are for example, you swap the
WinSPS window Editor, under properly connected. The cable serial interface for the mouse
Controller > Interface test. should be connected to the and the controller connection.
9pin X31 socket of the The Windows startup sequence
WinSPS tests the communication controller and to a PC serial recognizes active interfaces
and returns the transfer interface. and assigns the connections
parameters found. accordingly.
15
Changing to Changing to Closing the Enabling Calling Help
the editor monitor mode program the program
license
Con________figuration
Starting WinSPS In your configuration settings the Organization Module
you create or select the project OM1 for starting the PLC
path and name, as well as the program,
controller name and type. Blocks a Data Module,
and date are created for a a symbol file for the
project: declaration of blocks and
a program module for the symbol operands.
controller program,
16
The Editor
File editing tools Loading the open module and
change to the Monitor view
Menu bar
File selection
Network
display
Input field
Symbol
window
Status bar
17
Creating a program
Customizing the symbol file
In the symbol file you can
declare the symbolic names for
the operand.
18
Programming the Organization Module OM1
The Organization Module OM1 module that is called by OM1.
is the first program module to be
programmed. Controlling of the The module call instruction is
program schedule is a major task declared in the IL. IL LD FBD
of OM1. The PLC program is The instruction CM cannot be
edited in another program displayed in the FBD.
org_bau.pxo
19
Creating the program
module FC0
The second program module, Splitting IL in networks Changing the programming
namely FC0, is called up by the Split the program into networks. language to FBD
organization module OM1. It You can then edit it in IL and in
contains the PLC program. FBD.
20
Networks in FBD
The cursor must be positioned To split the networks in FBD, The new networks are inserted
on a new row you want to edit in call the network commands in above or below the current
the FBD input box. You can the menu Edit > Network network.
create and edit single blocks instructions. A network toolbar
using the elements of the FBD is only available in IL.
toolbar.
FBD toolbar
Network no. 1
21
Downloading the program to the controller
Before you download the The red Stop LED on the front
program to the PLC panel of the controller is switched
Switch on the controller off when the program is running
Connect the data link to the on the CL150.
PC and the controller.
Open the
Monitor to test
the PLC program.
Monitor
22
The Monitor
Menu bar
File selection
Network
display
Input box
Symbol
window
Status bar
23
Program module Monitor
View of the
running PLC program program1.pxo
AN I0.3 I 0
AN O0.4 O 0
A M0.0 M 0
= O0.3 0 a
The lefthand side displays the the righthand side the current
content of the Data Module, controller data.
24
Operand field Editor
You can display
any operand
Prog. Data Text Operand D-Field Force Find Info Diagram List Editor
Operand
onscreen and edit,
mark or control it. dat_bau.pxd Edit Display Flag Control
25
The individual program
modules and the complete PLC Fixing
program are tested prior their
You can fix inputs, outputs and markers.
execution. This is carried out by
connecting the inputs to the Fixing overrides externally switched I/O states.
PLC via a simulation field with
Fixed inputs are not displayed on the LED bar of the module,
diverse switches, or by
outputs, however, are shown.
simulating the connection
using the Fixing Editor, the Fixing is cancelled if you load a fixing without entries.
Monitor tool.
Data input in the fixing editor is:
Operand Data typ Fixing a value ; Comment
I0.3 BOOL 1 ; set I0.3 to 1
I USINT 2#xxxxxx1x ; fix I0.1
Testing the
controller program
The Traffic light example is
tested with the fixing tool. Inputs I0.0 to I0.6 are modified All bits which are not fixed can
in the PLC program; I0.7 is be masked with an x rather
WinSPS opens the not used. than 0 or 1.
fixing file force.txd
Force when it starts the I0 USINT 2#x0000000 ; reset I0.0 to I0.6
Fixing Editor.
Two additional buttons are The CL150 reactions can be Do not close the first WinSPS
displayed above the working monitored via the output LEDs. window and open WinSPS once
area: again via Windows Start menu.
The program monitor displays Open the monitor directly in
Load the fixing detailed information on all the configuration of the second
Unload
configuration to program states. WinSPS window. Open all files
the PLC. in readonly mode.
You can open a second WinSPS
window to simultaneously fix Both WinSPS programs run
Unload all inputs and monitor program parallel and update data using
Load
fixed I/O changes. the same data link. Therefore
signals to the you can monitor program
Fixing Editor. reactions parallel to the Fixing
Monitor.
26
Documentation is an essential The programmer takes care Commenting the FBD program
part of programming work. The of the major part of the
programmer will only be able to documentation while he is Program commenting is only
possible in IL.
systematically debug errors or programming. This includes:
continue to edit a program if the FBD only displays the comments
program is well documented. structuring the PLC program, above the network layer.
commenting the program When a network is generated
WinSPS offers a series of steps, networks and modules from IL to FBD, there must be
functions and a Help for PLC in IL, no comment lines inserted
program documentation, ranging using symbolic programming. between IL instructions.
from the creation of the new
module to printing out the WinSPS joins the comments in
finished PLC program. the PLC programs to form a
complete documentation.
27
Binary links
The
AND A
World
I, O, M,
AND NOT AN
Bit d, i, P T, C, R, P
OR O
Status bits
OR NOT ON
Set S
Reset R Bit d, i, P O, M, R, P
Equal =
Time commands
Pulse SP
extended Pulse SPE Bracket instructions
Ondelay SR d, P R, T, P AND bracket open (
Risetime OR bracket open O(
Ondelay SRE Close bracket )
Offdelay SF Negation of the bracket content )N
Reset time RT
d, P T, P
Timer Stop TH
Digital links
AND A
AND NOT AN
Counter instructions OR O W, B d, i, P K, R
OR NOT ON
Set counter SCY d, P R, C, P XO
EXCL. OR
Counter up CU EXCL. OR NOT XON
Counter down CD d, P C, P
Reset counter RCY
Compare commands
Compare CPLA W, B d K, R
Data transfer instructions
Load L D, W, d, i, P I, O, M, T,
B C, K, R, II,
EI, D, DF,
P, S
Transfer T W, B d, i, P O, M, IO,
EO
28
Arithmetic operations
Addition ADD
Addition with carry ADC
Subtraction SUB
of CL150
W, B d K, R
Subtraction with carry SBB
MultipliCation MUL
Division DIV
Commands
Increment INC
W, B d R
Decrement DEC
Program stop/end
Hold command HLT
Conversion instructions Program end EP
Binary Decimal BID
Decimal Binary DEB Calling blocks
W, B d R
Twos complement TC absolute CM
Negation N conditional
Byte exchange SWAP W d R with VKE=1 CMC
Interrupt commands
Enable Interrupt EAI
Null operations, carry manipulations
Disable Interrupt DAI d K
Null operations 0 NOP0 Reset Interrupt RAI
Null operations 1 NOP1
CARRYBIT 1 SCY
CARRYBIT 0 RCY End of block instructions
absolute EM
conditional
with VKE=1 EMC
Rotate and shift instructions
Rotate right ROR
Rotate left ROL Jump instructions
Rotate right with CARRY RCR absolute JP
W, B; d R
Rotate left with CARRY RCL conditional JPx
Logical SHIFT right SLR
Logical SHIFT left SLL
Arithmetic SHIFT right SAR
29
Logic & more
Binary instructions are the basic Operation Operand <; Comment>
elements for logical links.
A binary command consists of A I0.1 ; Logic AND with I0.1
the operation and the operand. S O1.2 ; Set Output O1.2
= M1.2 ; Pass RES in marker
Binary Operations
Logical AND
A Query for signal 1 Operands Operands and valid address
AN Query for signal 0 area
ID, input here Inputs I0.0 to I23.7
Logical OR | Byte address
O Query for signal 1 | | Bit ID, I/O Outputs O0.0 to O15.7
ON Query for signal 0 | | |
I 0 . 2 Markers M0.0 to M191.7
Assignment statements C 3
= Assign logical | | Timers T0 to T127
link result | Counter ID
S Output, marker... ID, counter here Counters C0 to C63
set signal to 1
R Output, marker...
reset signal to 0
Logical links
You can program logical links
in IL, FBD and LD. For FBD
and LD presentation you must
; Comment (* Comment *)
work in networks. Comments begin with a semicolon; or they are enclosed with
(* and *).
Comments can only be edited in IL.
IL FBD LD
M1.2 O1.3
30
(Bracket functions)
Links are evaluated strictly in ( AND bracket open Bracket function can be nested in
accordance with the rules of O( OR bracket open seven levels.
Boolean logic, that is, AND ) Close bracket
)N Negation of the
has priority over OR logic A network with bracket function
bracket content
operations. You can use the can also be represented with
bracket functions and markers to markers.
change the evaluation sequence.
Absolute or symbolic
WinSPS operates with absolute
Symbolic name
and symbolic operands.
Declaration in the symbol file
Absolute operands are called
via their address, for example, Writing method Symbol name
I0.0.
Case sensitive
Symbolic operands are addressed
with their symbolic name. The Not allowed are mutated vowels and special characters
name should describe the
The symbolic name of the module corresponds with its name in
operands function to make the
the module file.
program more comprehensive
and easier to read. Length of symbolic names
for modules maximum 8 characters
for other operands 32 characters
31
Counters
The CL150 offers 64 counters
and 128 timers. They can be Generating timers and counters in FBD
started via program controls
and without additional hard WinSPS automatically generates FBD modules for counters
ware.
ae and timers.
timers When you subsequently switch to IL,IL the result is a
determined instruction sequence for the IL view.
You can program counters and
If you toggle between IL and FBD you must not modify the
timers in IL, FBD and LD.
instruction sequence determined in IL via FBD.
Programming counters
Counter operands are C0 to Counter commands
C63.
SCY Declare the counter start value
CU Increment
Count starts at the rising edge CD Decrement
of RES. RCY Reset counter to 0
The counter status is queried using the load command "L".
The count starts at 0 or at the
declared start value.
Upcounter Downcounter
Valid count area and start C0 C0
values are 0 to 8191. CU CD CU/CD:Count condition
CU CD PV: Start value
PV PV LD: Load condition for
start value
LD CV LD CV
R: Reset condition
R Q R Q CV: actual counter value
Q: Counter = 0: RES = 0
Counter > 0: RES = 1
Upcounter CU
; Count
A I0.4 ; If I0.4 toggles 0 -> 1 M0.5
CU C1 ; increment C1 by 1
; Set counter to 1 I0.4
A M0.5 ; If M0.5 is set
L W 1,A ; load counter status 1 I0.0
SCY A, C1 ; Set counter 4
L W C1, A ; Load counter value 3
; Reset counter C1 2
A I0.0 ; If I0.0 toggles 0 -> 1 1 1
RCY C1 ; reset counter 0
; Save counter value
L W C1, A ; Load counter value C1
T A, M4 ; Save counter value CU
; Query counter value 0 I0.4 CU
L W C1, A ; Load counter value PV
A C1 ; As long as counter is LD CV M4
not 0,
I0.0 R Q = M1.0
= M1.0 ; Merker M1.0 setzen
32
Times
Programming times
Times start at the pulse edge of Time commands
RES
SP Pulse time start
SP, SPE, SR and SRE at the
SPE Start Pulse Extended
positive edge SR Start Rising Edge Delay
SF at the negative edge SRE Time start as risetime OnDelay
Transitions within the 1st cycle SF Start Falling Edge delay
after a program start are RT Reset time with RES=1
ignored. The time period is TH Time Hold with RES = 1
declared in the time constant.
Times are actualized in the I/O The current time is queried using the load command "L".
cycle. During a program cycle
the time end is therefore not Time constant: T#10ms to T#10230s
recognized until the next cycle.
IN: Start condition
T0 PT: Time constant
SF ST: Hold condition for
IN ET time
R: Reset condition
PT
ET: Extra time
ST
Q: Time status
R Q
IN, PT and Q must be
wired.
Time diagrams
SP Start Pulse Time
Start condition
Reset condition
Time status
SR Start OnDelay
Start condition
Reset condition
Time status
SF Time start as
Offdelay Start condition
Reset condition
Time status
33
Time start as pulse SP Start Time as Ondelay SR
T2 T1
SP SRE
I0.2 IN ET DF4 I0.6 IN ET
T#2s PT T#5s PT
M0.0 ST ST
R Q = O2.1 I1.0 R Q = M0.3
I0.2 I0.6
M0.0 I1.0
T2 M0.3
34
Calculations
The CL150 offers digital linking,
arithmetic function and compare Operation 1st Operand 2nd Operand
instructions for calculations and Digital linking A, AN, Constant Register
comparison. Input data are O, ON, registers
passed as constants or register XO, XON
values. After command Arithmetic ADD, ADC, Constant Register
execution, the result appears in operations SUB, SBB, registers
the register of the 2nd operand. MUL, DIV
Compare function CPLA Constant Register
registers
The status bits display supplemen
tary information regarding the AN B A,B
result, for example, the prefix
ADD W 14,A
operator or calculation errors.
Z Zero, the result is zero | | 2nd operand, register
N Negation, negative result | 1st operand, constant or register
C Carry, carry bit Byte length or Word length
O Overflow, range overflow,
division by 0 or result value
exceeds 16 bits. The addressing instructions "L" Calculate 25 10 =15
and "T" are used to exchange the "Load"
values, for example, of a counter
Registers are used as or data field, between the L W 25, A A 25
intermediate memory for data registers and an operand of the
L W 10, B B 10
exchange. The CL150 operates CL150.
with the four 16bit registers A, C
B, C and D. The load operation "L" loads the D
register with a constant or with
Calculate 2510
the value of an address area.
SUB B, A ; 15 > A
The transfer operation "T" returns
the contents of the register to an
address area. Return value transfer"
T W A, DF0 A DF0
Compare =?
The CPLA instruction can be Counter setpoint 30 reached? Evaluation of the logical
used for logical and arithmetic comparison
L W C1,A ; Counter value
comparison. It can be L W 30,B ; Setpoint 30 CPLA W B, A Query
programmed in IL or FBD. CPLA W B,A ; Compare A+B A Z
The compare result is evaluated AN CY ; A >= B? A0B AN Z
= O0.2 ; RES > O0.2
via status bits. AtB A CY
AvB A Z
30 IN1 O CY
>= AuB AN CY
C1 IN2 Q = O0.2 AN Z
AwB AN CY
35
Calculation with Byte or Word operands
Byte operands can occupy any With add and subtract operations, The results of multiplication
operand address, I3, M91, O5. the input and result operands instructions and the division
Word operands must occupy occupy the same register length. operation for the first operand
evennumbered address areas require double register length.
only, O14, M0, I6.
BA = B x 216 + A
M0 T W A, M0 A M0
T B A, M0 A
T W B, M2 B M2
M0 = 200 M0 = 4464, M2=1
T W A, M0 A M0 M0
T W A, M0 A
T W B, M2 B M2
M0 = 2 x 28 + 11 = 523 M0 = 90, M2 = 5
Al: Register A left byte = remainder
Ar: Register A right byte = result
36
Indirect addressing of operands
37
Constants, variables and address areas
Constants
Meaning Representation Area
Unsigned integer Binary 2#00000 0000 0000 000 to 2#1111111111111111
Decimal 0 to 65535
Hexadecimal 16#0000 to 16#FFFF
alternative input:
T#0.r to T#1023.r,
r: 0=1ms, 1=100ms, 2=1s, 3=10s
Variable types
System S0 to S255
38
Modules and files of the PLC program
The controlling and structuring controlling projects is assisted by
of PLC programs, as well as a the use of organization/program/
well arranged design of large data modules.
Data field
The CL150 manages a data
field with a size of 8 KB:
DF0DF8191; can be used as
read/write buffer for any data.
The data field can be battery
buffered against power failure.
39
The CL150 Organization Modules
In OM2 you can edit system Contrary to OM5, the OM7 Programmed Interrupt Modules
configurations of the CL150 such program is executed only on are called by the system program
as, for example, the maximum transitions from Stop to Run if the signal changes on specified
cycle time, time and timer mode. interrupt inputs.
behavior or remanence limits.
At the first start of the PLC
program, OM2 writes the
Initialization to the CL150
system memory.
The configuration program In case of control program error Time controlled modules are
WinSPS creates an OM3 when the OM9 program is executed called when a specified time
I/O modules of the B~IO system before the controller changes to interval has expired and a
are manually configured. Stop mode. This action, for running program block is
example, recovers important data terminated.
from remanent marker areas. Time intervals can be edited in
the PLC program.
40
Program cycle
Program structure
Start sequence and program
cycle with Organization
Module calls.
41
Programming with
WinSPS
CL150
Basic equipment:
CL150 with 8 digital inputs
and 8 digital outputs
42
Programming the crossover light controls
Default configuration
Open WinSPS and customize
your default settings.
43
Call the editor
Customizing the symbol file
Open the symbol
file and enter
Symbol the following:
In the row
In the row
In the row
Programming the
Organization Module OM1
The Organization Module OM1
is displayed by default when you
open the editor.
If this is not the case, select the
file "Org_Mod.pxo" in the file
selection window.
44
Creating the
program module FC0
7 Module end
45
The Program Module
"program1.pxo"
46
Network 5, Time delay Green > Red
47
Open the Monitor view
After you have successfully Testing the control program
transferred your program to the You have two program testing
controller, output O0.0 should options:
light up after you have switched Simulate the request key by
the controller to RUN mode. connecting a switch to input
This output represents the red O0.0 of the controller or via
signal of the crossover lights. Fixing function.
Fixing
48
Programming the counter
In a second step the existing
program will be extended:
M1.0 Step_marker_1
M2.0 Step_marker_2
T1 Time_red_green
T2 Time_green_red
T3 Time_green_red_Counter_not_0
C1 Request_Counter
49
New Network
Now, open the program module
FC0 you have named
"program1.pxo" and enter your
changes.
11 Module end
50
Network 1, Set crossover signal to red
51
Network 5, Switch crossover signal to green
52
Network 9, Determine the T3 Marker
53
Loading, testing and modifying
the program
Download the program to the
controller with "Controller >
load". Now open the Monitor
and test the program by setting
and enabling I0.0 six times.
However, repeat this sequence
only once or twice.
Edit
54
Structured
programing
Structured programming is used Organization Modules and The PLC program is edited in
to split the program into clearly Program Modules are available the program modules.
organized, functionally and to realize structured program
technologically interrelated ming. Each one of the program
modules for your PLC modules should describe a
configuration. Organization Modules (OMs) are functionally interrelated task.
called directly by the CL150 It can call up further program
Each one of the modules carries operating system. Therefore, they modules to process part of this
out a partial operation in the are mainly used for jobs closely task.
PLC configuration. related to the system.
Program modules can be
The advantages of structured The tasks of Organization configured. When the module
programming are: Modules include error/interrupt is called, the data required by it
handling, initialization of the is passed as parameter value.
a clearly organized program CL150 and cyclic processing of
structure, the PLC program. With the documented parameter
programming and testing of values acting as interface, the
subroutines, modules can be encapsulated and
testing and editing of PLC jobs inserted in the module library.
by the project team members
multiple use of program
modules
simplified troubleshooting
clear readability
shorter programs
L W P1,A
INC W A,1
T W A,P1
55
Structuring the
control program
The network of a sample Configuring a module The new program module
program shows you how to First, we shall create the program timer1.pxo" consists of two
configure and call a module. module "timer.pxo". networks
The crossover light function is
not changed in this process. timer1.pxo
1 Timer for redgreen
We shall use Network no. 3 delay
"Time delay red > green". This program module is to be
The master program calls and called with three parameters.
transfers the timer function and First, create the new module and 2 Module end
the parameters to a separate then customize your parameter
program module. data.
Customizing the You can edit the parameters in a Copy network 3 from the
separate window of the WinSPS module "program1.pxo" to the
symbol file Editor under Edit > Edit new module and replace
In the symbol file, you must Parameter List...".
specify the new program module M0.0 with P0
you are using for this Input data for the parameter M1.0 with P1 and
configuration. header: M0.1 with P2.
The new module will be called
"timer1.pxo". Save the completed module
P0 Bool Step_Marker_1
Enter the following row below "timer1.pxo".
the row calling the module VAR_INPUTP
"program1.pxo"
P1 Bool Request Marker
FC1,R TIMER1
VAR_INPUTP
P2 Bool Time_Marker_1
Save the symbol file.
VAR_OUTPUT
56
Customizing the Subsequently, insert the
parameter list by selecting
program module "Edit > Call parameter list".
"program1.pxo"
WinSPS queries the parameter
Now the first program module list in module "timer1.pxo" and
"program1.pxo" remains to be inserts it with its symbolic
customized: operands.
57
Memory structure
The CL150 is equipped with CL150 operating modes Remanent behavior
RAM and Flash EPROM The CL150 operates in two The CL150 provides a remanent
memory modules. modes: with and without battery. memory area for storing operand
In battery mode, all memory values. The memory is battery
The RAM area is a volatile read data and the setting of the buffered and protects data in case
write memory that must be realtime clock are retained of power failure and operating
battery buffered to protect when the power supply is mode transitions Run/Stop and
against power failure, thus switched off. After the power Network On. This remanence
protecting against the loss of supply is switched on again the area can be modified in OM2.
the PLC program and remanent controller picks up operation
data. with the values contained in the Without changes in OM2, the
memory before power was remanent memory area contains:
EPROM memory is nonvolatile, switched off.
which means that program and Marker M76 to M152
data modules loaded to the With operation without battery, Counter C32 to C63
EPROM are still available after the RAM and data memory Times T64 to T127
a power failure. However, the restart in an undefined state after
actual data of remanent areas power is switched on again. The The complete Data Field, Data
and of the data field are lost if realtime clock is set to 01.01.00 / Modules and Monitor Fixings
no buffer battery is installed. 00:00, the weekday is not also stay remanent.
defined. All modules contain
their initialization values. User
data are deleted.
58
CL150 startup modes
The CL150 can load new After it is switched on, the If a program exists there
programs from EPROM CL150 first tries to locate a the CL150 loads it into the
memory, independent of valid program in the RAM or RAM.
a programming device. EPROM memory.
Load program
59
In the CL150 controller you can
utilize two fast hardware counters
or, as an alternative, three
interrupt inputs. The controllers
CL150A and CL151A can be
used to process analog values.
CL150 interfaces
Inputs Inputs
60
Technical data of the CL15x, CL15xA
Classification : Editing time
Control systems of the lower and Bit instruction min. 0.6s
medium performance class Word instruction min. 0.6s
Module rack dimensions (WxHxD) Module instruction min. 46 s
in mm 123/184 x 105 x 38 I/O image in 0.6 to 1.9 ms
without connectors 64 KB RAM program memory
Weight 350 g / 50 0 g and
24V voltage supply 64 KB Flash EPROM
Current consumption up to 1.2 A, RAM buffering with lithium battery
inrush current up to 25 A
61
Literature
Training
Programmable Logic
Controllers (PLC)
Welding controls
62
Glossary
Absolute Jump The jump is carried out regardless of the previous logic link
result. See also Jump Instruction.
AND circuit Serial logic contact link. The logic result is only 1 if all contacts are on
current, that is, if all contact signals are 1.
ASCII American Standard Code of Information Interchange
standardized code for character display
Central unit The PLC core consists of the controlling unit and the
calculation unit
CPU Central Processing Unit see Central Unit
Compare function Logical or arithmetic comparison of operands
(BIT, BYTE, WORD etc.)
Conditional jump The jump is only carried out if the previous logic link result is 1. See
also Jump Instruction.
Contact plan, LAD Represents the control sequence with NO and NC contacts as common
in relay technology.
Crossreference Determines all blocks and program rows for an operand which is
used in the PLC program.
Cycle time Time required for one cycle of the user program
Input image Memory for the 0" or 1 status of all PLC inputs
Instruction The smallest selfcontained step of a PLC program, for example,
I/O links AND, OR etc.
Instruction List, STL Presentation of a PLC program in which the instructions are
listed in rows one below the other.
Interrupt input Input with the highest priority. When the interrupt input is set,
the normal program cycle is interrupted to process an interrupt
routine.
63
Jump instruction With a jump instruction the user can force the PLC program
to quit at a defined point and perform a jump to continue
program processing at another point of the program. There
is a differentiation between absolute and conditional jump
instructions.
Marker Memory for intermediate values with the status Set or Not Set.
Marker area Number of available markers. The CL150 is equipped with a
marker area of 152 markers
Monitor mode Displays internal and external switching states on the
programming device. See also Online.
Normally closed contact (NC) Breaks the current circuit when it opens.
Normally open contact (NO) The current circuit is connected when this contact closes.
Peripheral devices All devices which can be connected to a PLC; for example,
printers or text displaying devices
PLC Programmable Logic Controller
Potential separation Distribution of I/O signal lines to multiple current circuits with
multiple reference points.
Program Command set for the solution of certain tasks.
Program address Identifier of program segments
Program memory Semiconductor modules for storing user programs; for example,
EPROM or RAM.
64
Program processing controlled The interrupt routine OM10, OM11 or OM12 is processed when
by interrupt the interrupt input is set. This interrupts cyclical PLC program
processing.
Transfer protocol Standardized protocol for data communication. The data format
and parameters of the communication are fixed. The aim is high
communication reliability.
65
Index
A I S
Absolute Addresses, 31 Indirect addressing, 37 Serial interface, 15
Address areas, 38 Installation program, 14 Stack processing, 27
Addressing BIT operands, 37 Installing WinSPS, 14 Start address, 11
Addressing, 11 Instruction overview, 28, 29 Startup modes, 59
Alerts, 19 Interface testing, 15 Status bit, 35
Analog value processing, 60 Interfaces, 60 Symbolic names, 31
Arithmetic functions, 35 Interrupt input, 60 Symbolic operands, 31
Interrupt input, 60 System status, 24
B
Basic device, 8, 9 L T
Battery mode, 58 Licensing WinSPS, 14 Technical data, 61
Binary commands, 30 Literature, 62 Testing the program, 26
Bracket functions, 31 Load instruction "L", 35 Time constant, 33
Buffer battery, 58 Loading the program, 59 Time diagrams, 33
Logical link result (VKE), 30 Time instructions, 33
C Logical links, 30 Training, 62
Checking the data Transfer instruction "T", 35
communication, 15 M
Comment header, 19 Memory structure, 58 U
Comments, 27 Module interface, 7 Uninstalling WinSPS, 14
Compare instruction, 35 Module library, 55
Connecting a data link, 15 Module rack, 7 V
Connection X31, 15 Monitor, 23 V24 cable K19, 15
Constants, 38 Variable types, 38
Controller variants, 8, 9 N Voltage supply, 10
Copy key, 59 Network, 30
Counter instructions, 32 W
Creating a file, 20 O WinSP overview, 13
Creating a PLC configuration, 16 Opening a file, 20 WORD operands, 36
Creating networks, 20 Operand address, 36
Crossreference lists, 27 Operand field editor, 25
Customizing communication Operand status, 25
parameters, 15 Operating modes, 58
Operating without battery, 58
D Organization Module OM1, 19
Data Field, 39 Organization Modules, 39, 55
Data Modules, 39
Data transfer, 15 P
Disruption of data Parameter call, 55
communication, 15 Peripheral interrupt, 60
PLC program in FBS, 20
E Preset, 16
Editor, 17 Printing, 27
EPROM memory, 58 Program Modules, 39, 55
Error abbreviations, 19 Programming times, 33
Programming, 19
F Project directory, 16
Fieldbus interface, 8 Project path, 16
File structure, 16
Fixing, 48 R
Flash EPROM memory, 58
RAM memory, 58
Register, 35
H
Remanence behavior, 58
Hardware counter, 60
66
Bosch Automation Technology
Your concessionary