Automation and Drives
Slide 1 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Automation and Drives
Slide 2 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Mounting and Wiring
NK2
L1K2
I : 0. , 1. , 2. 123456789012345678901234
4
Automation and Drives
Slide 3 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Hardware Configuration of LOGO! ..0BA3
Power supply Power supplyexpansion module
RUN/STOPLED
4 outputs
4 inputs2 sets of 4 inputs
Slide for electricalconnection
4 outputs
Maximum Configuration:24 digital inputs + 8 analog inputs + 16 digital ouputs
Automation and Drives
Slide 4 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Installing and Uninstalling LOGO!
N
P
R
S
InstallingMount LOGO! on a DIN rail as follows:1. Place LOGO! onto the DIN rail.2. Swivel LOGO! around the DIN rail until the mountingslide at the rear is engaged.3. Remove the cover of the connector located on the rightside of the LOGO! Basic or LOGO! expansion module.4. Place the digital module to the right of LOGO! Basic (seesteps 1 and 2).5. Slide the digital module left toward LOGO! Basic.6. Using a screwdriver, press down and move theintegrated slide to the left. The module is installed when theslide locks into place in the LOGO! Basic unit.
UninstallingUninstall LOGO! as follows:1. Using a screwdriver, press down and move theintegrated slide to the right.2. Slide the expansion module to the right, and3. Insert a screwdriver into the loop on the bottom of themounting rail and pull down.4. Swivel the expansion module away from the DIN rail.5. Follow steps 3 and 4 for the basic module.
N
O
N
O
P
Q
Automation and Drives
Slide 5 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Wiring LOGO!
Connect LOGO! to the power supply as follows:
jiH fN fO fP fQ fR
iNiH
kj
ildl>=KKKKK=ïáíÜa`=ëìééäó
ildl>=KKKKK=ïáíÜ^`=ëìééäó
mêçíÉÅíáçå=ïáíÜ=ÑìëÉëáÑ=ÇÉëáêÉÇ=EêÉÅçããÉåÇÉÇF=ÑçêWNOLOQ=o`KKKW===MKU=^OQW=======OKM=^
få=Å~ëÉ=çÑ=îçäí~ÖÉ=ëéáâÉëI=ìëÉî~êáëíçê=EjlsF=ïáíÜ=~=ãáåK=çÑ=OMBãçêÉ=ïçêâáåÖ=îçäí~ÖÉ=íÜ~å=íÜÉê~íÉÇ=îçäí~ÖÉK
fN fO fP fQiN k
Automation and Drives
Slide 6 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Connecting LOGO! Inputs
L1
N
NL1 I1 I2 I3 I4 I5 I6
L3L2
L+M
ML+ I1 I2 I3 I4 I5 I8
Connect sensors to the inputs.Sensors include:• Momentary-contact pushbuttons, maintained-contactswitches, photoelectric light barriers, etc.• Temperature, pressure, or ultrasonic sensors (Beros), etc.,with 0 V to 10 V outputs direct to 2 analog inputs of the 12and 24 VDC basic units or the AM2 analog module.• Or the corresponding units with 0 mA to 20 mA/4 mA to 20mA current output direct to inputs of the AM2 analog module.
ProgramProgram
cycle
The inputs of these units are groupedinto 2 blocks with 4 inputs each.Different phases are only possiblebetween the blocks, and not within theblocks.
LOGO! 230 ... LOGO! 12/24 ...
For LOGO! to detect a 0 or 1switching status, the switchingstatus must be present for at
least one program cycle.
The inputs of these units are non-isolated and thus require the samereference potential (ground) as thepower supply.
Automation and Drives
Slide 7 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Connecting LOGO! Outputs
N=======OnN nO
N=======O
nR nSN========O N=======O
DM8...R
nN nOj j
nR nSj j
DM8 24
Different loads can beconnect to the outputs,e.g.,• Lamps,• Motors,• Contactors, etc.
LOGO! withtransistor outputs
LOGO! withrelay outputs
Maximum switched current is 0.3 A peroutput
Maximum switched current is 10 A/5 A per output for theexpansion modules
Automation and Drives
Slide 8 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
LOGO! Response to Power ON Depends on:
• Whether a program is stored in the internal LOGO! memory• Whether a program module is inserted
LOGO!
No ProgramPress ESC
No program inthe programmodule and noprogram in theinternal memory
LOGO!
ProgramPC/Card..Clock..Start
> Program inthe programmodule orprogram inthe internalmemory
If there is a program in theprogram module, it isautomatically copied to theinternal LOGO! memory. Anyprogram already present inthe internal LOGO! memory isoverwritten.
SIEMENS SIEMENS
Automation and Drives
Slide 9 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
LOGO! Response to Power ON Depends on:
LOGO!
Q1
SIEMENS
Before Power OFF
LOGO!
I : 0. , 1. , 2. 123456789 0123456789 01234
Before Power OFF
SIEMENS
• LOGO! state prior to power OFF
LOGO!
LOGO!
After Power ON
In editor mode
In RUN mode
If a power outage occurs while a program is being entered, the program is deletedonce power is restored.
After Power ON
No ProgramPress ESC
I : 0. , 1. , 2. 123456789 0123456789 01234
SIEMENS
SIEMENS
Automation and Drives
Slide 10 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Basic Functions
AND AND (Edge)
NAND NAND (Edge)
OR NOR XOR NOT
Automation and Drives
Slide 11 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(BF) AND Logic Operation
The state of the AND output = 1 only if the state of allinputs = 1.An unconnected input pin in this block isautomatically assigned state = 1.
Input 2 Input 3 Output0 0 0 00 0 1 00 1 0 00 1 1 01 0 0 01 0 1 01 1 0 01 1 1 1
Logic Table for AND Block:
&S1
S2
x H1
AND
S1
S2
H1
Referring to the circuit diagram, it can be seen that lamp H1illuminates only if S1 and S2 are both closed. There is adependency between the input and output states.The circuit shown on the right is referred to as an AND logicoperation.
This means that switches S1 and S2 must be energized inorder for lamp H1 to illuminate.
Symbolically, this operation is represented by .
Input 1
Series circuit with normallyopen contacts
Automation and Drives
Slide 12 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(BF) OR Logic Operation
The state of the OR output =1 if the state of at leastone input = 1. An unconnected input pin in this block isautomatically assigned state = 0.
Input 2 Input 3 Output0 0 0 00 0 1 10 1 0 10 1 1 11 0 0 11 0 1 11 1 0 11 1 1 1
Logic Table for OR Block:
>S3
S4
x H2
OR
For lamp H2 to illuminate, switch S3 or S4 must be closed.This dependency of the output state on the input states isreferred to as an OR logic operation.This means that at least one of the two switches--S3 or S4--must be closed in order for lamp H2 to illuminate.
The symbol for this operation is
Input 1
S3 S4
H2
Parallel circuit with normallyopen contacts
Automation and Drives
Slide 13 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(BF) AND with Edge Evaluation
The state of the output of the AND with edge evaluationoperation = 1 only if the state of all inputs = 1 and thestate of at least one input during the previous cycle = 0.An unconnected input pin in this block is automaticallyassigned state = 1.
&S1
S2
S3 H2
AND with edge evaluation
S1
S2
S3
H2
S1
S2
H2
S3
Electromechanical counter
5160
Automation and Drives
Slide 14 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(BF) NAND Logic Operation
The state of the NAND (Not AND) output = 0 only ifthe state of all inputs = 1.An unconnected input pin in this block isautomatically assigned state = 1.
Logic Table for NAND Block:
&S1
S2
x H2
NAND (Not AND)
Referring to the circuit diagram, it can be seen that lamp H2 isalways illuminated, unless all of the switches are activated.The circuit shown on the right is referred to as a NAND (NotAnd) logic operation.
This means that switches S1, S2, and S3 must be activated inorder for lamp H2 not to be illuminated.
The symbol for this operation is .
Input 2 Input 3 Output0 0 0 10 0 1 10 1 0 10 1 1 11 0 0 11 0 1 11 1 0 11 1 1 0
Input 1
Parallel circuit withnormally closed contacts
S1 S3 S3
H2
Automation and Drives
Slide 15 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(BF) NAND with Edge Evaluation
S1
S2
S3
H2
The state of the output of the NAND (Not And) withedge evaluation operation = 1 only if the state of at leastone input = 0 and the state of all inputs during theprevious cycle = 1.An unconnected input pin in this block is automaticallyassigned state = 1.
&S1
S2
S3 H2
NAND with edge evaluation
Electromechanical counter
S1 S3 S3
H2
5160
Automation and Drives
Slide 16 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(BF) NOR Logic Operation
The state of the NOR (Not OR) output = 1 only if thestate of all inputs = 0. As soon as any input isswitched on (state = 1), the output is switched off.An unassigned input pin in this block is automaticallyassigned state = 0.
NOR (Not OR)
S1
S2
H1
Referring to the circuit diagram, it can be seen that lamp H1 isilluminated only if normally closed switches S1 and S2 are notactivated.The circuit diagram shown on the right is referred to as a NOR(Not OR) logic operation.
This means that if at least one of the switches S1 or S2 isactivated, lamp H1 is not illuminated.
The symbol for this operation is .
Input 2 Input 3 Output0 0 0 10 0 1 00 1 0 00 1 1 01 0 0 01 0 1 01 1 0 01 1 1 0
Logic Table for AND Block:Input 1
Series circuit withnormally closed switches
>1S1
S2x H1
Automation and Drives
Slide 17 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(BF) XOR Logic Operation
The state of the XOR (Exclusive OR) output = 1 if thestate of the inputs is different.An unconnected input pin in this block isautomatically assigned state = 0.
XOR (Exclusive OR)
S1
S2
H1
Referring to the circuit diagram, it can be seen that lamp H1 isnot illuminated only if all of the switches are activated.The circuit diagram on the right is referred to as an XOR(Exclusive OR) logic operation.
This means that if either switch S1 or switch S2 is activated,lamp H1 will illuminate.
The symbol for this operation is .
Logic Table for XOR Block:Input 2 Output
0 0 00 1 11 0 11 1 0
Input 1=1S1
S2 H1
Automation and Drives
Slide 18 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(BF) NOT Logic Operation
The state of the output = 1 if the input = 0, that is, NOTinverts the input state. One advantage of the NOToperation is that normally closed contacts are no longerneeded for LOGO! A normally open contact is used and isconverted to a normally closed contact with the NOToperation.An unconnected input pin in this block is automaticallyassigned state = 1.
NOT (Exclusive OR)
1S1 H1
Referring to the circuit diagram, it can be seen that lamp H1 isonly illuminated if switch S1 is not activated.The circuit diagram on the right implements a NOT logicoperation. The symbol for this operation is .
S1
Logic Table for NOT Block:Output
0 11 0
Input 1
H1
K1
Automation and Drives
Slide 19 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Special FunctionsOn-Delay
Off-Delay
On/Off Delay
Retentive On-Delay
Latching Relay
Pulse Relay
Internal Time-Delay Relay
Edge-Triggered Internal Time-Delay Relay
Weekly Timer
Yearly Timer
Up/Down Counter
Elapsed Time Counter
Clock Pulse Generator
Pulse Relay
Random GeneratorThreshold Switch
Staircase Lighting Time Delay
Multifunction Switch
Message TextAnalog Threshold Switch
Analog Comparator
Softkey
Automation and Drives
Slide 20 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) On-Delay
Function Description:If the state at input Trg changes from 0 to 1, the timer starts running. If the state at input Trg =1 for a sufficient amountof time, the output is set to 1 once time T expires. There is a delay in switching on the output as compared to the input.The output is reset to 0 if the state at input Trg = 0.If the state at input Trg changes back to 0 before time T expires, the timer is reset.The expired timer is reset after a power failure.
Referring to the circuit diagram, it can be seen that the motor startsrunning only after the set time delay expires.This function is referred to as an on-delay.
This means that the motor is switched on after a set time delay.
The symbol for this function is .
S1
K1
K1
M
Diagram:
Trg
Q
Ta
T T
(Timer active)
Automation and Drives
Slide 21 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Off-Delay
Referring to the circuit diagram, it can be seen that themotor is switched off only after the set time delay expires.This function is referred to as an off-delay.
This means that the motor is switched of after a set timedelay.
The symbol for this function is .
S1
K1
K1
M
Function DescriptionIf the state at input Trg = 1, the state at output Q switches immediately to 1. If the state at input Trg changes from 1to 0, the timer in LOGO! is activated and the output state is retained. When the timer reaches the value set using T(Ta =T), the state at output Q is reset to 0.If the input Trg is switched on and off again, time Ta is restarted.Time Ta and the output are reset using input R (reset) before time T expires.
Diagram:
Trg
Q
Ta T
(Timer active)
R
T
Automation and Drives
Slide 22 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) On/Off-DelayReferring to the circuit diagram, it can be seen:• If S1 is closed, contact K1 closes after a time delay and the
motor runs.• If S1 is opened, contact K2 opens after a time delay and the
motor stops.
S1
K1
K1
MK2
K2
This function is referred to as an on/off delay. Thismeans that the motor is switched on and off after a settime delay.
The symbol for this function is .
Function DescriptionIf the state at input Trg changes from 0 to 1, time TH runs. If the state at input Trg remains 1, the output is set to 1once the time TH expires.If the input state changes back to 0, time TL runs. If the state at input Trg remains 0 for the duration of time TL, theoutput is set to 0 once time TL expires.
Trg
TL
Q
TH
Diagram:
Automation and Drives
Slide 23 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Retentive On-Delay
Function Description:If the state at input Trg changes from 0 to 1, the current time Ta starts running. When time Ta reaches time T,the state at output Q is set to 1. Output Q is reset to 0 only when the state at input R = 1.Further switching actions at input Trg have no influence on output Q.
Referring to the circuit diagram, it can be seen that motor Mruns after a set time delay following activation of momentary-contact pushbutton S1. Momentary-contact pushbutton S2(normally closed) causes the motor to switch off again.This function is referred to as a retentive on-delay.
The symbol for this operation is .
Trg
R
Ta
Q
T
S2
K1
K2
M
S1 K1 K1
K2
Diagram:
Automation and Drives
Slide 24 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Latching RelayReferring to the circuit diagram, it can be seen that coil K1 isenergized with momentary-contact pushbutton S1, causingmaintained-contact switch K1 to close (latching).This function is referred to as a latching relay.
The symbol for this operation is .S2
K1 M
S1 K1 K1
K2
Diagram:
S
R
Q
Function DescriptionOutput Q is set by means of input S; output Q is reset by means of a second input R.
QSR
Par
Automation and Drives
Slide 25 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Pulse Relay
Function DescriptionEach time that the state at input Trg changes from 0 to 1, output Q changes its state,i.e., the output is switched on or off. The state of the latching relay is set to 0 using input R.
Referring to the circuit diagram, it can be seen that lamp H1can be switched on and off with momentary-contactpushbuttons S1 or S2. This function is referred to as a pulserelay.This means that lamp H1 is switched on and off by a briefpulse in S1 or S2, respectively.
The symbol for this operation is .K1
S1 K1S2
H1
Diagram:
Trg
R
Q
Automation and Drives
Slide 26 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Interval Time-Delay Relay/Pulse OutputReferring to the circuit diagram, it can be seen that lamp H1 isilluminated only if maintained-contact switch S1 is closed, butat most for the time period set on timer T1. The symbol for this operation is .
T1
S1
H1
T1
Diagram:
Trg
Ta
Q
Function DescriptionIf the state at input Trg = 1, the state at output Q immediately switches to 1. Simultaneously, the current time Tastarts in LOGO!, and the output setting is retained. When Ta reaches the value set using T(Ta =T), the state at output Q is reset to 0 (pulse output).If the state at input Trg changes from 1 to 0 before the specified time expires, the state at the output also changesimmediately from 1 to 0.
Automation and Drives
Slide 27 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Edge-Triggered Internal Time-Delay Relay
T1
S1
H1
T1
Diagram:
Trg
Ta
Q
T1
T T
Referring to the circuit diagram, it can be seen that lamp H1illuminates for a period of time set in timer T1 whenmaintained-contact switch S1 is activated. The symbol for this operation is .
Function DescriptionIf the state at input Trg = 1, the state at output Q switches to 1. Simultaneously, time Ta starts. When time Tareaches the value set using T (Ta=T), the state at output Q is reset to 0 (pulse output).If the state at input Trg changes back from 0 to 1 before the specified time expires (retriggering), time Ta is resetand the output remains switched on.
QTrg
T
Automation and Drives
Slide 28 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Weekly Timer
The output is controlled by means of an assignable on andoff date. Any combination of weekdays is supported. Activeweekdays are selected by removing inactive weekdays.
Mo Tu We Th Fr Sa Su On Off
07 : 30 16 05Cam 1
08 : 00 12 00Cam 2
10 : 00 12 30Cam 3
Wednesday
Monday
Function DescriptionEach weekly timer has three cams which can beused to assign parameters for each time window.The on and off times are specified using the cams.
Automation and Drives
Slide 29 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Yearly Timer
Function DescriptionEach yearly timer has an on and off time. The yearly timerswitches the output on at a specified on time and switches itoff at a specified off time. The off date identifies the daywhen the output is to be reset to 0.
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
On May 10 Off Oct 20
Automation and Drives
Slide 30 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Up/Down CounterReferring to the circuit diagram, it can be seen that the timepulse is generated with maintained-contact switch S1.Maintained-contact switch S2 determines whether the countercounts up or down. If the counter content has a value >= 10,the lamp is switched on.
Function DescriptionFor every rising edge at input Cnt, the internal counter countsup by one (Dir = 0) or down by one (Dir = 1). If the internalcounter value is equal to or greater than the value specifiedusing Par, output Q is set to 1.The internal counter value and the output can be reset to 0using input R.As long as R = 1, the output is 0, and pulses at input Cnt arenot counted.
C1
S1
S2
+-
>=5
H1
Diagram:
Cnt
Dir
R
12
34
56
54
32
34
56
Q
01
23
Counter
QR
ParDirEnt
Automation and Drives
Slide 31 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Elapsed Time Counter
Function Description
The elapsed time counter monitors input En. As long as the value at this input = 1,LOGO! quantifies elapsed time OT and the remaining residual time MN. LOGO! indicates the times in parameterassignment mode. If the remaining residual time MN = 0, output Q is set to 1. The reset input R is used to resetoutput Q and to set the counter for the residual time to the specified value MI. Internal counter OT resumes counting.The reset input Ral is used to reset output Q and to set the counter for the residual time MN to the specified value MI.The internal counter OT is reset to 0.
12
34
32
10
MN = MI
MN = 0
Q
Ral
En
32
10
R
OT
Automation and Drives
Slide 32 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Symmetrical Clock Pulse GeneratorReferring to the circuit diagram, it can be seen that lamp H1flashes with a pulse time set using a clock pulse generatorwhen maintained-contact switch S1 is activated. The symbol for this operation is .
Function DescriptionParameter T is used to specify the length of the on and off time.En (Enable) is used to switch the clock pulse generator on. The clock pulse generator sets the output to 1 for time T,and then to 0 for time T, and so on, until EN = 0 at the input.The time T specified must be > 0.1 seconds at all times.
G
H1S1
Diagram:
En
Q T T
Automation and Drives
Slide 33 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Asynchronous Pulse GeneratorThe pulse form of the output can be modified by means of theassignable pulse/pause ratio.
The symbol for this function is .
Function DescriptionPulse length and pause length can be set by means of parameters. The time base can be divided into seconds,minutes, or hours. Both parameters have the same time basis, and a different setting is not possible. Input Inv causesthe output to be inverted if the block is enabled by means of EN.
Diagram:
En
Q
Pulse length/Pause length
Inv
Automation and Drives
Slide 34 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Random Generator
Function DescriptionIf input En changes from 0 to 1, a random time of between 0 and 10 seconds is started. If En =1 for at least theduration of the on-delay time, the output is set to 0 when the on-delay time expires. If the state at input En changesback to 0 before the on-delay time expires, the time is reset.If input En changes from 1 to 0, a random time (off-delay time) of between 0 and 15 seconds is started. If En = 0 forat least the duration of the off-delay time, the output is set to 0 once the off-delay time expires. If the state at input Enchanges to 1 before the off-delay time expires, the time is reset.
The random generator switches the output on or off within anassignable time.
The symbol for this function is .
Diagram:
En
Q
Maximum On-Delay/Maximum Off-Delay
Q
Automation and Drives
Slide 35 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Frequency Threshold SwitchThe output is switched on and off depending on twoassignable frequencies. The symbol for this function is .
Function DescriptionThe threshold switch measures the signals at input Fre. The pulses are detected over an assignable time period(peak time). If during the peak time, the measured values are greater than the upper threshold value, output Qswitches on. Output Q switches off again when the measured values are less than the lower threshold value.SWOn is the on threshold. The permitted range is 0000 to 9999.SWOff is the off threshold. The permitted range is 0000 to 9999.Peak time is the time interval during which the pulses at Fre are measured. The permitted range is 0.05 secondsto 99.95 seconds.
Diagram:
Fre
Q
Peak time
Fre > SWOn Fre > SWoff Fre < SWOff Fre < SWOn
Fre =12 Fre = 5 Fre = 3 Fre = 5
Automation and Drives
Slide 36 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Staircase Lighting Time DelayAn assignable time runs following an input pulse (edgetriggering). The output is reset after the time expires. Anearly shutdown warning is issued 15 seconds before thetime expires.
The symbol for this function is .
Function DescriptionIf the state at input Trg changes from 0 to 1, the current time Ta runs and output Q is set to 1. Fifteen secondsbefore Ta reaches time T, output Q is reset to 0 for 1 second.If Ta reaches time T, output Q is reset to 0.Further switching actions at input Trg while Ta is running resets Ta (retrigger option).
Diagram:
Ta
Trg
Q
T (Off-delay)
1 s
15 s
Automation and Drives
Slide 37 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Multifunction SwitchSwitch with two different functions:· Pulse switch with off-delay· Switch (steady light)
The symbol for this function is .
Function DescriptionIf the state at input Trg changes from 0 to 1, output Q is set to 1. If input Trg changes back to 0 before the steadylight time expires, the output is reset to 0 after a time delay of 5 seconds.If the state at input Trg changes from 0 to 1 and remains 1 for at least 20 seconds, the steady light function is enabledand output Q is switched on for the duration. Further switching actions from 0 to 1 and back to 0 at input Trg causesoutput Q to switch off.
Diagram:
Q
Trg
5 s >20 s
Automation and Drives
Slide 38 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Message TextDisplay of an assigned message text in RUN mode.
The symbol for this function is .
Function DescriptionIf the input state changes from 0 to 1, the appropriatemessage text is output on the display during RUN mode. Ifthe input state changes from 1 to 0, the message text isremoved. If more than one message text has been triggeredwith En=1, the highest priority message is displayed.
It is possible using the keys to togglebetween the standard display and the message text display. If“acknowledge message“ is selected, the correspondingmessage text is removed only after pressing a button onLOGO!, provided En = 0.
SIEMENS
LOGOOKESC
1 2 3 4
I : 0. , 1. , 2. 123456789 0123456789 01234
Motor onin 2 min01:15 m
Alarm!Pressure in % 95.0
Automation and Drives
Slide 39 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Analog Threshold Switch
Function Description
The output is switched off if the analog value exceeds an assignableon threshold. The output is switched off if the analog value is less thanan assignable off threshold (hysteresis).
The function reads analog value AI1 or AI2. The offset parameter isthen added to the analog value. This value is then multiplied by thegain parameter.If this value exceeds the on threshold (SW↑ ),output Q is set to 1.Q is reset to 0 if the value falls below the off threshold (SW↓ ).
Note: In the effective range, the minimum andmaximum must be assigned the same one‘s digit.
Diagram
Pinout
Automation and Drives
Slide 40 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) Analog ComparatorFunction Description
This function generates the difference between the analog values Ax and Ay. The offset parameter is then addedto the difference. The difference is then multiplied by the gain parameter.If the difference of this value exceeds the assigned threshold, output Q is set to 1.
Output Q is reset to 0 if the valued falls below the threshold again.Diagram
Pinout
Automation and Drives
Slide 41 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
(SF) SoftkeyFunction Description
This logic function works like a mechanical momentary-contact pushbutton or a maintained-contact switch.If input En is set and the “switch“ parameter is switched to “On“ and confirmed with OK in parameter assignmentmode, the output is switched on. Whether the function was configured as a maintained-contact switch or amomentary-contact pushbutton is irrelevant.
The output is reset to 0 in the following three cases:
• If the state at input En changes from 1 to 0.• If the function was configured as a momentary-contact push- button and a cycle has run since it was switched on.• If the “Switch“ parameter was switched to “Off“ and confirmed with OK in parameter assignment mode.
Diagram
QEn
Par
Pinout
Automation and Drives
Slide 42 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Operating the Unit
You have designed a circuit and want to input it into LOGO! What is the procedure?
LOGO!OKESC
No ProgramPress ESC
Connect your LOGO! unit to a power supply and switchon the power. The following display appears..
Press ESC to access the main menu.
SIEMENS
LOGO!OKESC
Program .. PC / Card .. Clock .. Start
>SIEMENS
Automation and Drives
Slide 43 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Main Menu/Program MenuIn the first position of the first line, you see a “>“.Using the keys, you move the “>“ up and down.
Move the “>“ to Program and press . LOGO! switches to the program menu.
LOGO! 12/24 RCOKESC
Program .. PC / Card .. Clock .. Start
>OK
LOGO! 12/24 RCOKESC
Edit Prg Prg Name Clear Prg Password
>In addition, you can move the “>“ up and downusing the keys.
Move the “>“ to Edit Prg andpress the key.LOGO! now displays the first output (Q1).
OK
OKESC
Q1
Using the keys, you can select the otheroutputs (Q1, Q2, Q3, etc.).
When entering your circuit, take into account the followingrules ....
SIEMENS
SIEMENS
SIEMENS
LOGO!
Automation and Drives
Slide 44 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Rules for Operating LOGO!
1. Always enter a circuit from the output to the input.
I
I1
Q
Q1
Q
Q1
&
I1
>
I2
&
Q1
Q
Q2
&
I1
2. You can connect one output to more thanone input.
3. However, you cannot connect an output to ainput preceding it in the same path (no feedbackloops).
Automation and Drives
Slide 45 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Rules for Operating LOGO!
4. If the cursor appears as an underscore (_), you can move it using the keys:
Q1B01Q1B01Q1
B02B01
I1
x
&
Q1
B02B01
I1
x
&
B01
B02
I31
Automation and Drives
Slide 46 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Rules for Operating LOGO!
• Use to accept the selection• Use to go back one step
OK
OK Q1BF
Q1SF
Q1Co
Q1
B01&
Q1
B01&
Q1
B01>1
OKQ1
B01&
OKQ1
B01&Co
Q1
B01&x
OK
Q1
B01&I1
5. If the cursor appears as a (solid block), you can use thekeys to select a connector (Co), a basic function (BF), or a special function (SF).
ESC
Automation and Drives
Slide 47 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Initial Program
Refer to the following parallel circuit containing two switches.
S1 S2
K1
K1
E1
v
Switch S1 and switch S2 switch the load.The parallel circuit of S1 and S2 is an OR operation in LOGO!, because S1 or S2 switches on the output.
>1I1
I2
x
Q1
Automation and Drives
Slide 48 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
WiringL1
N
S1
LOGO! 12/24 RCOKESC
Q1
I1 I2 I3 I4 I5 I6L1 N
Q1 Q2 Q3 Q4
S2
L
N
Switch S1 acts on input I1 and switchS2 acts on input I2. The load isconnected at relay Q1.
You now enter the program (from theoutput to the input!). To start, LOGO!displays output Q1.Below the Q of Q1, you see anunderscore (_). We refer to theunderscore as a cursor. The cursorindicates your current location in theprogram.
SIEMENS
I7 I8
••
Automation and Drives
Slide 49 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Entering a Program
Now, press the key. The cursormoves to the left.
The cursor indicates your location in theprogram. You enter the first block (the ORblock) at this location.Change to editing mode by pressing .OK
The cursor now appears as a solidblock ( ) :.
Now, use the keys to select oneof the following:
• Connector (Co)• Basic function (BF)• Special function (SF)
LOGO! 12/24 RCOKESC
Q1
LOGO! 12/24 RCOKESC
Q1
LOGO!OKESC
Q1Co
SIEMENS
SIEMENS
SIEMENS
Automation and Drives
Slide 50 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Entering a Program
Select the basic function using (GF) andconfirm with .
The first block on the list of basic functions (BF) isthe AND block.
Now use the keys to select one of thefollowing:
OK
• AND• AND (Edge)• NAND• NAND (Edge)• OR• NOR• XOR• NOT
Select the OR block ( >1 ) and confirm with .OK
LOGO! 12/24 RCOKESC
Q1BF
LOGO! 12/24 RCOKESC
Q1
B01&
LOGO!OKESC
Q1
B01>1
SIEMENS
SIEMENS
SIEMENS
Automation and Drives
Slide 51 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Entering a Program
You have entered the first block. Each blockthat you enter has a block number (B01). Nowall you have to do is connect the inputs of theblock (B01).
Press the key.OK
The cursor now appears as a solid block ( ).
Now, use the keys to select fromthe following:
• Connector (Co)• Basic function (BF)• Special function (SF)
Select connector (Co) and confirm with .OK
The first element in the list (Co) is an “x“,which is the character for “input not used.“Select input I1 using the keys.
Confirm the selection with .OK
LOGO! 12/24 RCOKESC
Q1
B01>1
LOGO! 12/24 RCOKESC
Q1
B01>1Co
LOGO!OKESC
Q1
B01>1I1
SIEMENS
SIEMENS
SIEMENS
Automation and Drives
Slide 52 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Entering a Program
Now connect input I2 to the input of the ORblock. You already know the procedure forthis:
1. Change to editor mode with2. Select the Co list with3. Accept the Co list with4. Select I2 with5. Accept I2 with
OK
OK
OK
We do not need the last input of the OR blockfor this program. In a LOGO! program, wedesignate an unused input with an “x.“ Younow know the principle behind doing this:
1. Change to editor mode with2. Select the Co list with3. Accept the Co list with4. Select x with5. Accept x with
OK
OK
OK
OKESC
Q1
B01>1I1
SIEMENS
LOGO! 12/24 RC
OKESC
Q1
B01>1I1
I2
SIEMENS
LOGO!OKESC
Q1
B01>1I1
I2
x
SIEMENS
Automation and Drives
Slide 53 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Starting a Program
Now, all inputs of the block are connected.LOGO! considers the program to be complete.LOGO! jumps back to output Q1.
If you still want to view your initial program, you canmove the cursor through the programusing the keys.
In order to be able to start the program, youmust return to the main menu using thekey.
ESC
LOGO! 12/24 RCOKESC
Q1B01
OKESC
Edit Prg Prg Name Clear Prg Password
>
LOGO! 12/24 RC
LOGO!OKESC
Program .. PC / Card .. Clock .. Start
>Using the keys, move thecursor to “Start“ and confirm with the key.OK
SIEMENS
SIEMENS
SIEMENSHowever, we now leave the program enteringstep and return to the program menuusing the key.ESC
Automation and Drives
Slide 54 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
LOGO! in RUN Mode
LOGO! displays the following in RUNmode:
Input states:• State of input I = “1“• State of input I = “0“
11
Output states:• State of output Q = “1“• State of output Q = “0“
11
Refer to our example below:
If switch S1 is closed, input I1 is energized and the state of input I1 = “1“.The LOGO! program determines the output states.In this example, the state of output Q1 = “1“.If the state of Q1 = “1“, LOGO! enables relay Q1 and the load at Q1 is energized.
L1
S1 =1 S2 =0
I :0.,1.,2. 23456789 0123456789 01234
N
Q1
=1
Mo 09:0006.21.01
1
Q :0.,1. 23456789 0123456
1
The window on the left shows the time ofday and the date.
The window in the center shows the inputstates (I1 to I9; I10 to I19; I20 to I24).
The window on the right shows the outputstates (Q1 to Q9; Q10 to Q16)
Automation and Drives
Slide 55 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
LOGO! 12/24 RC
LOGO!OKESC
I :0.,1.,2. 123456789 0123456789 01234
SIEMENS
LOGO! 12/24 RC
LOGO!OKESC
Stop Set Param Set Clock Set Name
>
SIEMENS
Assigning Parameters in LOGO!
Assigning parameters of functions:
You can assign the following:• Time delays of time functions• Switching times for timer switches• Threshold for a counter• Monitoring interval of an elapsed time counter • On and off thresholds for the threshold switch
By assigning parameters, we mean the assignment of parametersof functions.
You can assign parameters in the following operating modes:• Programming• Parameter assignment
You reach parameter assignment mode by pressing the key in RUN mode, placing the cursor on Set Param,and confirming with the key.OK
ESC
Automation and Drives
Slide 56 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Assigning Parameters in LOGO!
LOGO! 12/24 RC
OKESC
B01:Par Lim=005 Cnt=000000
LOGO! 12/24 RCLOGO! 12/24 RC
OKESC
B04: T T = 5.0s Ta=0.0s
When the setting for the required block has been made, press the key. The cursor jumps to the first parameter to be modified. You can now modify the value using the keys.
OK
When the setting for the required value has been made, press the key. The cursor jumps to the block number. Using the keys, you can select the next block to be changed, and so on.
OK
LOGO! 12/24 RCLOGO! 12/24 RC
LOGO!OKESC
B07: T T = 8.0s Ta=0.0s
SIEMENS
SIEMENS
SIEMENSSelect a block:In “parameter assignment“ mode, select the appropriateblock using the keys.
Automation and Drives
Slide 57 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Assigning Parameters in LOGO!
ESC Use the key to return to the menu.
ESC Use the key to return to RUN mode.
LOGO! 12/24 RCLOGO! 12/24 RC
LOGO!OKESC
B07: T T = 8.0s Ta=0.0s
SIEMENS
LOGO! 12/24 RC
LOGO!OKESC
Stop Set Param Set Clock Set Name
>
SIEMENS
LOGO! 12/24 RC
LOGO!OKESC
I :0.,1.,2. 123456789 0123456789 01234
SIEMENS
Automation and Drives
Slide 58 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Using LOGO! Soft Comfort
1. Place CD (LOGO!Soft Comfort)in CD-ROM drive.
2. Display the CD contents using Explorer.3. Double-click on Setup.exe.
2.
3.
Automation and Drives
Slide 59 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Installing LOGO! Soft Comfort
4. Select a language and click OK to confirm5. If you consent to the license agreement, click Continue to confirm
4.
5.
Automation and Drives
Slide 60 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Installing LOGO! Soft Comfort
6.
7.
6. Where is the program to be installed? If you do not want to accept the recommendedfile location:C:\Programs\Siemens\LOGOSoft_V2, specify another directory using Browse.
7. If you want to accept the recommended file location, click Continue to confirm.
Automation and Drives
Slide 61 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Installing LOGO! Soft Comfort
8. In this example, the program icon is to be placed on the desktop. UseContinue to proceed.Program is being installed. . . . .
8.
Automation and Drives
Slide 62 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Installing LOGO! Soft Comfort
9. The installation is finished. You canstart the LOGO! Soft Comfort programimmediately or later by double-clickingthe icon on the desktop.
9.
9.
Automation and Drives
Slide 63 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Getting Started with LOGO! Soft Comfort
Title barMenu bar
Symbol bar
Toolbar
Status bar
Message window
Program tab
Automation and Drives
Slide 64 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Help Functions
General help is activated using theHelp -> Content menu command.You can find additional informationarranged according to subject in
the content directory.
By clicking on a topicof interest, you obtaindetailed information on
this subject.
Automation and Drives
Slide 65 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Help Functions
What‘s This? can be accessed bymeans of the context menu (clickwith the right mouse button) for
each function.
Automation and Drives
Slide 66 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Help Functions
What‘s This? is also activatedusing the Help -> What‘s This?
menu command. Objects on whichhelp is needed can now be
selected by pointing the mouse.
Automation and Drives
Slide 67 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Help Functions
Using the Help -> Update Centermenu command, you can installadditional languages, programupgrades, and service packs.
Automation and Drives
Slide 68 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Typical LOGO! Applications
If the water level drops below level (I1), the drinking watersupply is to switch on automatically.If the water level reaches level (I2), the drinking water supplyis to switch off automatically.
P
I3 (Pump off)
I1 (Drinking water supply on)
I2 (Drinking water supply off)
I4 (Pump off)
Q1 (Drinking water supply line)
Automation and Drives
Slide 69 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 1: Inserting Connectors (CO)
How many inputs and outputs are needed to solve this task?
1. The tool must be selected if youwant to place input blocks, output blocks,memory bits, or constants (high, low) onthe programming interface.
2. Then, the specific function blocks areselected using thissymbol bar:
3. The following symbol now appears in thework area:
Now, move the mouse to the requiredposition. The function is inserted by clickingthe left mouse button.1.
2.
3.
Automation and Drives
Slide 70 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 2: Inserting Basic Functions (BF)
Which basic functions are needed to solve this task?
1. Select the tool if youwant to place simple basic logic elementsof Boolean algebra on the programminginterface.
2. A specific function block is selectedusing the symbol bar.
3. The following symbol appears in thework area:
Now, move the mouse to the requiredposition. The function is inserted byclicking the left mouse key.1.
2.
3.
Automation and Drives
Slide 71 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 3: Inserting Special Functions (SF)
Which special functions are needed to solve this task?
2. A specific function blockis selected using thesymbol bar.
3. The following symbolnow appears in the workarea:
Now, move the mouse tothe required position. Thefunction is inserted byclicking the left mousebutton.
1. Select thetool if you want to placeadditional functions on theprogramming interface.
1.
2.
3.
Automation and Drives
Slide 72 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 4: ConnectingIn order to complete the circuit, the individual blocks must be connected to one another:
1. The tool must be selected ifyou want to connect the inputs andoutputs of the function blocks to oneanother.Now, point the mouse to a connectionpin of a block and click using the leftmouse button. Keeping the mousebutton pressed, move the mouse until itis pointing at the pin that you want toconnect to and release the mousebutton. LOGO!Soft Comfort thenconnects the two pins together. Thisresults in a connection between twoblock pins. Use the same procedure forthe other connections.
Automation and Drives
Slide 73 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 5: Inserting Text Fields
Inserting text fields makes the program easier to understand.LOGO! Soft Comfort gives you several options for inserting text in the program structure:
1. Use the context menu to inserting a commentfor each block in the program.
Automation and Drives
Slide 74 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 5: Inserting Text Fields
2. Insert your own text field.
A
1.
2.3.
4.
Automation and Drives
Slide 75 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 6: Moving
Once the function blocks are inserted and connected, the circuit program is done. Some follow-upwork is needed, however, to obtain a view of the created circuit that is visible at a glance and easy tounderstand. Objects placed in the work area such as function blocks, lines, and text fields can bemoved:
1. Select thetool if you want to movefunction blocks, textfields, or connection lines.
Automation and Drives
Slide 76 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 7: Aligning
To achieve a more attractive and easier-to-view appearance for your program, you can align theindividual function blocks vertically or horizontally.
1. First, the function blocksthat are to be aligned mustbe selected.
2. Activate the button to vertically alignthe selected function blocks.
Automation and Drives
Slide 77 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 8: Assigning Parameters to Function Blocks
In the case of special functions and basic functions, there us a tab for comments and one or more tabsfor parameters. Here, you can specify values or settings that are to be adopted by the function block inits circuit.
1.
Double-clickthe functionusing the leftmousebutton.
3. Another address can be assigned for each individualinput and output block by means of block parameterassignment. However, only the inputs and outputs notalready assigned in the circuit program are consideredin the selection.
1. Select function andclick using the rightmouse button.
2. Select the BlockProperties menu item.
or
2.
Automation and Drives
Slide 78 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 8: Assigning Parameters to Function Blocks
In addition, you have the option of changing and checking all of the block properties centrally.
Automation and Drives
Slide 79 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 9: Assigning Connection Names
For the sake of clarity, you can also assign symbolic names for the input and outputconnectors in addition to the text fields in the program:
Automation and Drives
Slide 80 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 10: Formatting Comments
Automation and Drives
Slide 81 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 11: Documentation
For purposes of program documentation, you can display all of the connectors, basic functions,and special functions used in the program.
A list of all blocks used in the program is displayed using theEdit -> Go to Block menu command. The list containsinformation on the block number and the type of the block.For example, you can display the special functions that youused. You can enter the brief description of the block, I1, Q2,B02, etc., in the search function, and you will be shown theposition of the block in the list. Clicking OK causes the blockthat you searched for to be highlighted.
Automation and Drives
Slide 82 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 11: Documentation
You obtain additional information for program documentation from the information window.It is usually located at the lower edge of the screen.
The View -> Information Window menucommand displays program messages.Following simulation of a circuit program,the resources used along with the currentdate and time of day are displayed in theinformation window.
Automation and Drives
Slide 83 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 11: Documentation
Program or system data can be entered using the File -> Properties menu item in the General tab.These data are displayed in the program printout in the parent window below.
Automation and Drives
Slide 84 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 11: Documentation
Automation and Drives
Slide 85 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 11: Documentation
You can define which documents are to be printed under Properties in the Print Previewwindow. The circuit diagram, the parameter list, and the list of connector names are normallyselected.
Automation and Drives
Slide 86 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 11: Documentation
In the case of large or complex programs, it is often useful to divide up the circuit diagram ontoseveral pages.
Automation and Drives
Slide 87 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 11: Documentation
Various connection lines must be separated when the program is divided onto severalpages.
The connection lines can be easily separated using the selected cut tool. The interfaces are uniquely labeledby the page number, block number, and input pin. By clicking on one of the interface wildcards again usingthe cut tool, the separation is undone.
Automation and Drives
Slide 88 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 12: Program TestingOnce the programming and documentation is completed, the program istested.
I1
I2
I4
Q1 (Drinking water supply)
You know that your program can run in LOGO!, but you still have to check whether it functions as intended.You may also want to modify some parameters.You can experimentally change the input values, test theresponse to a power failure, and compare your calculations or expectations with the actual output behavior.
Automation and Drives
Slide 89 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 12: Program Testing
An excellent tool is available for testing your program.
1. Select the tool if you want totest your program.
2. Once the simulation is activated, asymbol bar for operator control andmonitoring of inputs and outputs iscalled. A software switch is used tosimulate a power failure in order to testthe retentive features of the circuitbehavior.
3. The input states can be modified byclicking the button in the symbol bar (2)or clicking on the inputs in the display.
1.
2.
3.
3.
The connection sequence can betracked by the change in color of theconnection lines from blue (low signal) tored (high signal). This facilitates thedetection and removal of errorssignificantly.
Automation and Drives
Slide 90 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 12: Program Testing
As an additional aid for program testing, a particular switchfunction can be assigned to each input.
The context menu (right mouse click) can be used to assign an appropriate switch function to each of theinputs used in the program. You can select from a momentary-contact switch, maintained-contact switch, andfrequency input. For frequency inputs, the simulated frequency setting in Hz can be entered. For analoginputs, the range and the starting value is specified.These parameters can also be changed and reviewed centrally using the Extras -> Simulation parametersmenu command.
Automation and Drives
Slide 91 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 13: Assigning a Program Password
In order to protect the program and the knowledge it contains, you can assign a10-digit password to be applicable to this program alone.
This password protects your program only on LOGO! Without thepassword, you cannot change or view the program, only delete it. Thepassword is also needed to download a password-protected program to aPC.To delete a previously assigned password, enter the old password andleave the new password blank.
Automation and Drives
Slide 92 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 14: Transferring Program to LOGO!
When programming in LOGO!Soft Comfort 3, you have the option of first implementing your circuit program andthen determining the required unit using the Extras -> Define LOGO! menu command,or you can use the Extras -> Unit Selection menu command to first define the LOGO! unit for which you wantto create your circuit program.
The unit selection shows the available functionblocks and memory resources for each selectedunit.
Automation and Drives
Slide 93 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 14: Transferring Program to LOGO!
Once a successful program test has been performed, the program should be transferred to theLOGO! Certain requirements must be satisfied for this.
LOGO!OKESC
Program .. PC / Card .. Clock .. Start
>
SIEMENS
LOGO!OKESC
SIEMENS
PC <-> -> Card Card ->
>
LOGO!OKESC
SIEMENS
PC <-> Stop? Press ESC
1. 2.
The LOGO! unit must be connected with the PC cable and prepared for the transfer using thePC/Card, PC <-> setting.
Automation and Drives
Slide 94 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 14: Transferring Program to LOGO!
All preparations have been made. The program can now be transferred.
Select the function totransfer a circuit program created in thePC with LOGO! Soft Comfort to a LOGO!unit.Prior to transferring, LOGO! identifies theminimum version required for the createdcircuit program. If the created circuitprogram cannot be transferred to theavailable LOGO! unit, an error message isdisplayed and the transfer is canceled.
If LOGO! is not suitably prepared for thedata transfer, an error message is displayed.
A message is displayed in thestatus bar indicating that the datatransfer was successful.
Automation and Drives
Slide 95 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 15: Starting LOGO!
LOGO!OKESC
SIEMENS
PC <-> Stop? Press ESC
LOGO!OKESC
Program .. PC / Card .. Clock .. Start
>SIEMENS
LOGO!OKESC
Program .. PC / Card .. Clock .. Start>
SIEMENS
1.2.
3.
P
I3 (Pump off)
I1
I2
I4
Q1 LOGO! 12/24 RC
LOGO!OKESC
SIEMENS
I :0.,1.,2. 23456789 0123456789 01234
1
Automation and Drives
Slide 96 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 16: Setting Time of Day
The software can also be used to set the system clock in LOGO! Of course, thetime of day can also be set directly on the unit.
To be able to use this function, theLOGO! must be placed in thePC/Card, PC <-> transfermode again.Pressing the Write button transfersthe time-of-day setting to theLOGO!
Automation and Drives
Slide 97 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Step 16: Setting Time of Day
With LOGO! Modular, you have the option of configuring the system clock to automatically change forseasonal time variations. This can be done by means of the software and directly on the device.
The LOGO! Must be placed in thePC/Card, PC <-> transfer mode forthis function.The time change in effect for the selectedregion is applied.
Automation and Drives
Slide 98 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Miscellaneous Options
Various other settings can be made using the Extras -> Options menu command.
Automation and Drives
Slide 99 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Application Example
Automation and Drives
Slide 100 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Conveyor Control
I1 (ON)
I3 (OFF) I2 (Fill)Function DescriptionA bottle filling machine is to be controlled.
Part 2 When the sensor (I2) detects abottle, the motor is switched off for3 seconds (filling operation).Afterwards, the motor startsrunning again.
Part 1 The conveyor control is switchedor or off using (I1).When the conveyor control isswitched on, the motor for theconveyor belt (Q1) runs.The motor is able to be switchedoff at any time by means of Off(I3).
Automation and Drives
Slide 101 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Solution: Conveyor Control Part 1
I1 (ON)
I3 (OFF) I2 (Fill)Part 1 The conveyor control is switched
on or off using (I1).When the conveyor control isswitched on, the motor for theconveyor belt (Q1) runs.The motor is able to be switchedoff at any time by means of Off(I3).
OKESC
Edit Prg Prg Name Clear Prg Password
>
LOGO! 12/24 RC
SIEMENS
Q1B01Q1B01Q1
B02B01
I1
x
&
Q1
B02B01
I1
x
&
B01
B02
I31
Automation and Drives
Slide 102 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Solution: Conveyor Control Part 1
I1 (ON)
I3 (OFF) I2 (Fill)Part 1 The conveyor control is switched
on or off using (I1).When the conveyor control isswitched on, the motor for theconveyor belt (Q1) runs.The motor is able to be switchedoff at any time by means of Off(I3).
Automation and Drives
Slide 103 SM8 October 2001; S.Brodte; Nbg-M; 3007
Mounting andWiring
Basic Functions
Special Functions
Operating the Unit
Using LOGO! SoftComfort
Exercise
Solution: Conveyor Control Part 2
I1 (ON)
I3 (OFF) I2 (Fill)Part 2 When the sensor (I2) detects a
bottle, the motor is switched off for3 seconds (filling operation).Afterwards, the motor startsrunning again.