Вы находитесь на странице: 1из 370

Windows' 95

SIMATIC S5

1
ST-S5SYS1
VII

.
.
,

. .
, ,
, .
Siemens AG 1997
Siemens AG 1997

PLC


: E80850-K01-X-A7.1

STEP 5.

STEP 5,
.
:


I
Q
F

E
A
M

JU
A
AN

SPA
U
UN

SIMATIC S5
1

Windows'95
.......................................................................... 1-2
..................................................................... 1-2
Windows'95 ......................................................................................... 1-2
DOS ......................................................................................... 1-2
S5-DOS .............................................................................................. 1-2
............... 1-2
(Directories) .............................................................................. 1-4
(File) .......................................................................................... 1-4
(Directory) ............................................................................. 1-4
(Folder) .................................................................................... 1-4
(Directory Tree) ..................................................... 1-4
(Directory Path) .......................................................................... 1-4
Windows'95 .............................................................................................. 1-6
............................................................................... 1-6
(Desktop) ..................................................................... 1-6
.............................................. 1-8
"" (Mouse)................................ 1-8
(Keyboard) ............................................ 1-8
" " (Hot Keys)............................................................... 1-8
: ................................... 1-10
:.......................................................................................... 1-12
..................................................................................... 1-14
................................................................................ 1-14
......................................................................... 1-16
................................................................................ 1-22
................................................................................ 1-22
............................................................... 1-22
......................................................................... 1-22
.................................................................................. 1-22
1. .................................................................................. 1-25
........................................................... 1-26

Siemens AG
Training Center

1-1/26

T-S5SYS1

SIMATIC S5


SIMATIC S5 ,

(PLC) (programmable logic controller).

(PG) (programming device).



() STEP 5
PG.
PG
.

,
(, STEP 5),
,
, (), , CD-ROM
. PG .

Windows'95

MS-DOS
Windows'95, , Windows 3.1,

32-
.

DOS

MS-DOS ("DOS BOX") Windows'95,


, MS-DOS.
MS-DOS PG
MS-DOS.

S5-DOS

S5-DOS MS-DOS
,
STEP 5. S5-DOS Windows'95
STEP 5.
, , , PG 740
:

Windows'95 ,
,
, ..
STEP 7 V x.y
STEP 7-Micro/DOS V x.y
STEP 5/ST-Basic Package V 7.x
P-Tools PCP/M
MS-DOS.
Keyboard editor ,
.
PG
STEP 5.

Siemens AG
Training Center

1-2/26

ST-S5SYS1

Windows'95

SIMATIC S5

Windows'95

STEP 5
-
- (P-Tools)
-
(Keyboard editor)



- (H1, L1, ..)
-
- ...


GRAPH 5
-

- Winword
- Excel
-
- ...

S5-DOS (PG 7xx)

DOS-Box

Windows'95

1-3

Siemens AG
Training Center

1-3/26

ST-S5SYS1

SIMATIC S5

, , ,
STEP 5,
. Windows'95
.

(),
, "
" ( "\" ). C:\ , ,
C:.
,
- .
.
,
..

Windows'95 ""
("folders").
() ,
, .. "" Windows'95
, ..
, ( ).



,
.

(ath)
, .
Sys1a@st.s5d, , ,
C:\s5_data\s5_course\s5sys1\sys1a. "\"
, "\"
.

Siemens AG
Training Center

1-4/26

ST-S5SYS1

SIMATIC S5


C:\

Autoexec.bat
Config.sys
.
.
.

Windows

s5_data

Info

s5course

s5sys1

s5serv

sys1a

sys1b

Sys1a@st.s5d

Sys1b@st.s5d
Sys1a@st.s5d

s5sys2

1-5

Siemens AG
Training Center

1-5/26

ST-S5SYS1

SIMATIC S5

Windows'95


(Program Groups)

Windows
(windows),
.

Windows'95 .

PG
:
SIMATIC
Programs
Documents
Settings
Find
Help
Run
Shut Down
. 1-7a Start.
.
"" . ,
, "Programs" ,
,
PG .

" " (Desktop)

Siemens AG
Training Center

Windows'95 " ". ,


PG .
. (, ),
(, -
STEP 5) ( ).
, ,
" " Windows'95.
Windows'95, " "
, , .

1-6/26

ST-S5SYS1

Windows'95

SIMATIC S5

1-7a

1-7b

Siemens AG
Training Center

1-7/26

ST-S5SYS1

SIMATIC S5

,
Windows'95. .

""

Windows'95
( ). Start

Start.
, , " ",
.
(, STEP 5),

.

Start
ESC CTRL. Start.
, ,
, Enter ( ) - .
ESC .
,
Enter.
""

Siemens AG
Training Center

Start ,
.
,

.

1-8/26

ST-S5SYS1

Windows'95

SIMATIC S5

Windows'95
/

Start
ESC

Menu

""

Ctrl

1-9

Siemens AG
Training Center

1-9/26

ST-S5SYS1

SIMATIC S5


"sys1a" "s5sys1"
PG. , ,
, .
, .
1-5, C:\s5_data\s5course\s5sys1\sys1a.

Sys1a@st.s5d,

,
C:\s5_data\s5course\s5sys1\sys1b .

Siemens AG
Training Center

1-10/26

ST-S5SYS1

Siemens AG
Training Center

1-11/26

ST-S5SYS1

SIMATIC S5

PG ,
. PG Windows'95.
"Welcome".
ESC

ESC .
.
CTRL ESC ,
Start.

Ctrl

Start.
,
.
.
.
"Shut Down ..." .
"Programs", P.
"Programs" (
). "Windows Explorer".
,
.
W Windows Explorer.

).

(File Edit, etc.). Explorer


.
Explorer .
.
.
(" "). .
, .

( - "s5course").

Siemens AG
Training Center

1-12/26

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

1-13/26

ST-S5SYS1

SIMATIC S5

, TAB

"s5_data".

"s5_data" .
.

.
, "s5_data".
,
"s5_data",
, "s5_data"
.
.

"s5sys1".

"s5sys1",
"sys1a".

ALT -
.

.
"File" () Enter.
File-.
File- ""
F.
, "New" (), Enter.
- (.
).
"Folder" () Enter.

"New Folder" ( ).
"sys1a" ( "New
Folder" ( ) ).
"sys1a" Enter.
.
.

Siemens AG
Training Center

1-14/26

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

1-15/26

ST-S5SYS1

SIMATIC S5

Sys1a@st.s5d "sys1b"
"sys1a".

"sys1b" .
.
,
- ( )
.
"sys1b" .
Sys1a@st.s5d .
"sys1b" , Sys1a@st.s5d
.
- "Edit" ().
.
"Copy" (). (. ).

"sys1a"
.
"sys1a" . .

Siemens AG
Training Center

1-16/26

ST-S5SYS1

SIMATIC S5

"Edit" ()
"Paste" () (. ).
Sys1a@st.s5d "sys1a".
, .
.

(Write Protection)
Sys1a@st.s5d,
, Properties ()
.
(, Size
(), Attributes (), ...).
Read-only ( ),
check-box
( ).

Siemens AG
Training Center

1-17/26

ST-S5SYS1

SIMATIC S5

"sys1a" ,
Sys1a@st.s5d
(.

).

C:\s5_data\s5course\s5sys1\sys1a.

Sys1a@st.s5d .
.
,
.


Windows Explorer "Close" ().
Windows Explorer ,
" " .
Windows'95, Start.
Start.

Siemens AG
Training Center

1-18/26

ST-S5SYS1

SIMATIC S5

"Shut Down" ( )
Windows'95.
(. ), "Shut down the
computer?" ( ) .

"Yes" ,
Windows PG,
, Enter .
PG, Windows'95
.

Siemens AG
Training Center

1-19/26

ST-S5SYS1

Siemens AG
Training Center

1-20/26

ST-S5SYS1

Siemens AG
Training Center

1-21/26

ST-S5SYS1

SIMATIC S5

,
. "New" () - "Folder"
()
.

.
"Delete" () "File"
, .

,
, , , ,
"Copy" () "Edit" ().
"Copy" (lipboard).
,
.
"Paste" () "Edit"
(),
.

Windows Explorer
.
,

"Rename"
() "File" ()
(. 1-23a).
"Tools" () - "Find"
(.
1-23b).

"Help".
, ,

.

Siemens AG
Training Center

1-22/26

ST-S5SYS1

SIMATIC S5

1-23a

1-23b

Siemens AG
Training Center

1-23/26

ST-S5SYS1

Siemens AG
Training Center

1-24/26

ST-S5SYS1

- 1

SIMATIC S5

PG, STEP 5
7.0,
Windows'95.

(""),

.

" " path.

Siemens AG
Training Center

Windows'95

(Explorer),

.
Windows'95,
,
.

1-25/26

ST-S5SYS1

SIMATIC S5

(directory tree).
Windows'95.
.
.

Siemens AG
Training Center

Windows'95, .

1-26/26

ST-S5SYS1

SIMATIC S5
2


.................................................. 2-2
........................................................................................... 2-2
............................................................................. 2-2
.............................................................................. 2-2
............................................................................................... 2-4
................................................................................................ 2-4
......................................................... 2-6
.................................................................................... 2-6
: PG ........................... 2-10
( PLC ) ............................................................... 2-12
( ) ............................................................ 2-13
(Program File) ... 2-14
(Project File) .............................................................. 2-16
................................................................ 2-17
....................................................................... 2-22
STEP 5 ................................................................................. 2-22
Windows'95 ....................................................................................... 2-22
.................................................................................. 2-24
................................................................................ 2-24
............................................................................................... 2-24
....................................................... 2-24
TAB ................................................................................... 2-24
"" .............................................................................. 2-24
- ........................................................................ 2-26
( ) ................................................................. 2-28
DOS Directory Path ........................................................................... 2-28
................................................................................ 2-28
( PLC ) .................................................................... 2-30
............................................................................................... 2-30
......................................................................... 2-30
......................................................... 2-30
STEP 5.............. 2-32
................................................................................ 2-32
(Dialog Boxes) ......................................................................... 2-34
(Job Box) ............................................................... 2-34
(Selection Box - "Browser") ................................................. 2-34
(History) ..................................................................... 2-34
(File Selection Box) .................................... 2-36
PG ................................................................................ 2-38
.......................................................................... 2-40
" " (Block Status) ................................... 2-40
"" (AND)......................................................................... 2-40
................................................................ 2-40
STEP 5....................................... 2-42
(PB) .................................................................. 2-42
(Segment)........................................................................... 2-42
2. .................................................................................. 2-43
........................................................... 2-44

Siemens AG
Training Center

2-1/44

ST-S5SYS1

SIMATIC S5



(PLC). PLC

.

. ,
, , PLC
.

.

.
,
, ,
, .

.
, ,
.
- " "
.

Siemens AG
Training Center

,
,
.
,
;
.

2-2/44

ST-S5SYS1

SIMATIC S5

2-3

Siemens AG
Training Center

2-3/44

ST-S5SYS1

SIMATIC S5

,
.
,
.

, ,

, ?

: .

:
I 0.6 ( )

I 0.5 ( ).
, Q 4.2 ,
, "" .
, "A
I 0.7 I 0.5.
Q 4.3.

Siemens AG
Training Center

2-4/44

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

2-5/44

ST-S5SYS1

SIMATIC S5

(PLC)
.

,
- .

.


.
.
, ,
"" ""

Siemens AG
Training Center

PLC, PLC
, ,
(PG), PLC . ,
, PG PLC
.

2-6/44

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

2-7/44

ST-S5SYS1

Siemens AG
Training Center

2-8/44

ST-S5SYS1

Siemens AG
Training Center

2-9/44

ST-S5SYS1

: PG

SIMATIC S5

PG
.
PG.

.


, ().

,
.
.
1.
PG. ( PG 740
)
PG Windows'95. " "
"Welcome to Windows'95".
"Welcome".
"Start" ( Start)
"Simatic".
"Simatic".

STEP 5 ( 7.0)
F1 - F8 ( : F1 - F12) (
- ).
F8 Help , SHIFT
( ) F8
F8 Help.
F8 Cancel , F8
F8 Cancel.

Siemens AG
Training Center

2-10/44

ST-S5SYS1

: PG

SIMATIC S5

"Step5v70".
"Step5v70" (. ).

STEP 5 ,
"STEP 5 Full-Screen Display".
STEP 5.
File
.

File

Editor

Test

Project >
Blocks >
DOS File >
PCP/M File >
DOS Commands Ctrl F10
Exit
Shift F4

Siemens AG
Training Center

Set

PLC
AG

Management

Documentation

Change

Help

F4

Load . .
F10
Save
Save As . . .

2-11/44

ST-S5SYS1

: PG

SIMATIC S5

"Set"
.
"Project Settings -PLC-" ("
PLC"). PG
() PLC ( ).

-PLC-

"Offline" "Mode: ,
"Online.
"Mode:"
.

"Online.

"Project Settings -PLC-


.
"Project Settings
- Blocks - (" ).
"Blocks "Project Settings
- Blocks -.

Siemens AG
Training Center

2-12/44

ST-S5SYS1

SIMATIC S5

-Blocks-

Siemens AG
Training Center

: PG

"Project Settings - Blocks - ("


). (DOS
directory path) ,
("program file).
F7 Info.

2-13/44

ST-S5SYS1

: PG

SIMATIC S5

"Program file".

(Program File)
F3 Select
.
"Select file ( ),
.


"File".

"Files" ( ST.S5D).
(DOS directory
path) "Dr/directory .

).

-C- "Dr/directory (


Enter.
C:\ "File (DOS
directory path).

Siemens AG
Training Center

2-14/44

ST-S5SYS1

SIMATIC S5

: PG

C:\S5_DATA\S5COURSE\S5SYS1\SYS1A


S5_DATA, S5COURSE, S5SYS1 SYS1A
"nter".
,
(program file).
( TAB) "Files.
SYS1A@ST.S5D (
"down key" (
),
).
Enter.
"Project Settings - Blocks -.
,
SYS1A@ST.S5D "Program
file "Project Settings - Bocks ".
, SYS1A@ST.S5D "Program
file.

.
"Representation" ,
STEP 5.

(LAD, CSF, STL).
CSF (Control System Flowchart)
CSF.
"Representation:.
CSF "Representation:" "Project
Settings - Blocks -.

Siemens AG
Training Center

2-15/44

ST-S5SYS1

: PG

SIMATIC S5

Project File ( )
"project file". PG
"Project Settings",
.
"Project ... F6.
"Save and load project settings ("
"),
.
F3 Select.
"Select file" (" ").
,
.
.
C:\S5_DATA\S5COURSE\S5SYS1\SYS1A.
"Dr/directory" (.
).
SYS1A@PX.INI "File
Enter.
"Save and load project settings
.
<Save>.
SYS1A@PX.INI "Project Settings.
<Enter>.
.

Siemens AG
Training Center

2-16/44

ST-S5SYS1

SIMATIC S5

: PG

. ,
, PB 1.
"Test" .
"Block Status ... " .
"Block Status" (" ").
"Block list".
"PB 1"
INSERT.
1 PB 1. PB 1
; 1
2 .
"Status processing active" ("
") , PLC
.

1 "MANUAL Mode" (" ")


.
.

, ,
:
------------------------------------------------------------------------------------------------ , :
------------------------------------------------------------------------------------------------ . ,
:
------------------------------------------------------------------------------------------------ , :
-------------------------------------------------------------------------------------------------

Siemens AG
Training Center

2-17/44

ST-S5SYS1

: PG

SIMATIC S5

2 "AUTOMATIC Mode" ("


") .
PB 1 Plus.

""
(AND), ,
(" .": I 0.6 ".": I 0.5;
" .": I 0.7 ".": I 0.5).

PB 1
SEG 1: MANUAL Mode
I 0.6

&

I 0.5

Q 4.2

SEG 2: AUTOMATIC Mode


I 0.7
I 0.5

CSF (Control System Flowchart -


) "Project Settings - Blocks -".
CSF-
"".

&
=

Q 4.3


, STL (Statement List ) LAD
(Ladder Diagram - ). STL,
F5.

Siemens AG
Training Center

2-18/44

ST-S5SYS1

SIMATIC S5

: PG

2 PB 1
Statement List:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

F5


LAD.

F5,

F5
,
CSF.

0
Ins

, F8 ,
"Exit Status?" Enter INSERT.
.
STEP 5 , "Exit ", "File".

Siemens AG
Training Center

2-19/44

ST-S5SYS1

Siemens AG
Training Center

2-20/44

ST-S5SYS1

Siemens AG
Training Center

2-21/44

ST-S5SYS1

SIMATIC S5


STEP 5
Windows'95

PG Windows'95,
" " ("desktop").

" ".
Start
.

STEP 5 STEP 5
"SIMATIC" (. 2-23).

Siemens AG
Training Center

2-22/44

ST-S5SYS1

SIMATIC S5

2-23

Siemens AG
Training Center

2-23/44

ST-S5SYS1

SIMATIC S5

STEP 5 .
File

Editor

......

Help


(. . 2-25).

.
, Block Status ( ),
,
PLC PG.
( Project Settings - PLC -)

STEP 5 .

.


,
,
,

Enter Insert,
ESC.

()
(Selection box)
:
( ) Selection box ( )
TAB


TAB.
Check box ( )
Choice list box: ( -)
Input field ...
( )
List box
(-)

, Shift TAB.

"Help"-.

" "

,
, " " (HOT
KEY), , .
(),
ALT
.
(., "Project Settings
- PLC -" ..)
,
" "
ALT.
, Editor- :
S: STEP 5 block ...

Siemens AG
Training Center

2-24/44

ST-S5SYS1

SIMATIC S5

2-25

Siemens AG
Training Center

2-25/44

ST-S5SYS1

SIMATIC S5

, ,

SHIFT, CTRL, .
"Help"-
(Key assignment list ... - ).

Siemens AG
Training Center

2-26/44

ST-S5SYS1


SIMATIC S5

-
F1:
F2:
F3:
F4:
F5:
F6:
F7:
F8:
F9:
F10:
F11:
F12:
SHIFT F1:
SHIFT F2:
SHIFT F3:
SHIFT F4:
SHIFT F5:
SHIFT F6:
SHIFT F7:
SHIFT F8:
SHIFT F9:
SHIFT F10:
SHIFT F11:
SHIFT F12:

STEP 5







SIMATIC S5
PX.INI
(XREF)
STEP 5/ST
STEP 5 PLC
PLC
PLC
STEP 5/ST



""

PLC STOP (BSTACK)
PLC
PLC

2-27a

Ctrl F1:
Ctrl F2:
Ctrl F3:
Ctrl F4:
Ctrl F5:
Ctrl F6:
Ctrl F7:
Ctrl F8:
Ctrl F9:
Ctrl F10:
Ctrl F11:
Ctrl F12:
Ctrl Shift F1:
Ctrl Shift F2:
Ctrl Shift F3:

DB
EPROM
AC

.
SU.INI
DOS
DOS -
AC
DOS -
S5

DB PLC
PLC
AC

2-27b

Siemens AG
Training Center

2-27/44

ST-S5SYS1

SIMATIC S5

Project Settings - Blocks - ( )

, Project Settings
(DOS directory path) (program file).

(
).
, (file
selection box).

(Program File)

,
(program files).
6 . PG
"ST.S5D .
program file STEP 5.
"RW ,
, (RW: Read-Write).

(Representation)

STEP 5
:
LAD (Ladder Diagram - ),
CSF (Control System Flowchart - )
STL (Statement List - ).
.

Siemens AG
Training Center

2-28/44

ST-S5SYS1


SIMATIC S5

2-29

Siemens AG
Training Center

2-29/44

ST-S5SYS1

SIMATIC S5

Project Settings - PLC - ( PLC)

(Mode)

,
PG. PG PLC
(on-line) PLC (off-line).
( DYN -, PLC
PLC)
on-line
PLC PG.
on-line, PG
PLC, PLC PG
PLC . PG
. ,
off-line.
, PG
"PLC timeout" .
PG off-line. PG
.

(Modifiable)

"Modifiable"
S5. ,
"No.
PLC. "Stop,
PLC ,
CPU Stop.
"Cyclic , PLC
.


Project Settings

(PLC, blocks)
(project file).
STEP 5, , Project Settings,
.. ("program file") (
STEP 5) (path)
.
roject file
STEP 5 (LAD,
CSF STL) PG (off-line on-line). roject
file, PX.INI STEP 5 (
7.0 ),
.
Project files STEP 5 ( 7.0)

PJ.INI. STEP 5 7.0 project
files PJ.INI PX.INI .

Siemens AG
Training Center

2-30/44

ST-S5SYS1

SIMATIC S5

2-31

Siemens AG
Training Center

2-31/44

ST-S5SYS1

SIMATIC S5

STEP 5

STEP 5

SIMATIC S5.
STEP 5
PLC. ,

.
DIN 19239 .
STEP 5 Ladder Diagram (LAD) ( ),
Control System Flowchart (CSF) ( ) Statement
List (STL) ( ).
Ladder Diagram -LAD- ( )
, , .
(

).
Control System Flowchart -CSF- ( )
,
, , "".
,
.
Statement List -STL- ( )
. STEP 5
STL.
,
. , ,
STL,
CSF LAD. , ,
LAD CSF,
STL.
MC5
,
, .

Siemens AG
Training Center

2-32/44

ST-S5SYS1

SIMATIC S5

STEP 5

STEP 5
Control System Flowchart

CSF

I 0.6

&
=

I 0.5

I 0.6

LAD

I 0.5

I 0.6

Q 4.2

Ladder Diagram

I 0.5

Q 4.2
( )

Q 4.2
Statement List

STL
A

0.6

0.5

4.2
2-33

Siemens AG
Training Center

2-33/44

ST-S5SYS1

SIMATIC S5

- (Dialog Boxes)

(Job Box)

,
(, - "Block
Status ),
(. . 2-35 a).
,
,
. .
,
TAB ,
.

/
(Selection Box / "Browser")

,
( "browser") <Select
F3> F3 (. . 2-35b).
,
.

.
<Enter> Enter Insert,
. .

(History)

7.0 , STEP 5
, , ,
.
""
, <History F1>.
History , <History
F1> " " .

Siemens AG
Training Center

2-34/44

ST-S5SYS1

SIMATIC S5

2-35a

2-35b

Siemens AG
Training Center

2-35/44

ST-S5SYS1


(File Selection Box)

SIMATIC S5

"Select file"
, (program file).
,
, () "Dr/directory.

Enter, "Files" .
"Dr/directory ,
"Files".
, "Files",
(, ST.S5D
(program files) STEP 5).
( :
C:\S5_DATA\S5COURSE\S5SYS1\SYS1A),
(program file)
.

Siemens AG
Training Center

2-36/44

ST-S5SYS1

SIMATIC S5

2-37

Siemens AG
Training Center

2-37/44

ST-S5SYS1

SIMATIC S5

(PG)
STEP 5.
, .
,
.
Enter

, , PLC
.
"Yes" PG.
Edit,
Enter.
Enter:
Find "? "*.
/ (drive/directory) "Dr/directory".
Insert ,
Enter.

.
ESC
. Edit
Escape, /,
.
TAB

.
. (Project Settings),
TAB
.
SHIFT 2- 4-
.
Ctrl 3- 4-
.
ALT

" ,
(Project Settings).
ALT
.

Siemens AG
Training Center

2-38/44

ST-S5SYS1

PG

SIMATIC S5

(PG)
Escape
ESC

TAB

Enter

SHIFT

Ctrl

Ctrl

0
Ins

Alt

Alternate

Insert

2-39

Siemens AG
Training Center

2-39/44

ST-S5SYS1

SIMATIC S5

(Test Function)
"Block Status"

, PLC,
(PG)
.
"Block Status "Test.

"" (AND)

,
PB 1, .
PB 1 CSF-.
"" (AND).
( ""): (
(manual mode selector)
I 0.6, (Enable) I 0.5) ON,
( - Q 4.2)
ON.


"Block Status", :
()
,

.
OFF, ,
.
:
(OFF), .
(ON), .
, PG
.
,
.

Siemens AG
Training Center

2-40/44

ST-S5SYS1

SIMATIC S5

2-41a

2-41b

Siemens AG
Training Center

2-41/44

ST-S5SYS1

SIMATIC S5

STEP 5

(Program Block)

STEP 5 ,
(program blocks (PBs)), .
.
SIMATIC S5
256 .
0 255.
"Block Status"
, .
PG .

(Segment)

Siemens AG
Training Center

STEP 5
,
.

2-42/44

ST-S5SYS1

- 2

SIMATIC S5

(CPU)


.


.

STEP 5
.


,

,

"Block
Status",
.

Siemens AG
Training Center

STEP 5

:
LAD (Ladder Diagram - ),
CSF
(Control
System
Flowchart
) STL (Statement List
- ).


(
).

MC5.

2-43/44

ST-S5SYS1

SIMATIC S5

STEP 5.
(DOS directory path).
(file selection box).
.
(project file).
.
"Block Status".
(LAD/CSF/STL).
" " ("hot key").
- ("accelerator"-key).
-.

"Block Status".
(Project Settings).
.

STEP 5.
.
(project functions).

Siemens AG
Training Center

2-44/44

ST-S5SYS1

1
2

3
PG

: .................... 3-2
: ........................... 3-6
PB 4 ........................................................................................... 3-7
PB 4 ............................................................................... 3-10
PB 4 ........................................................................... 3-11
PB 4 .......................................................................... 3-11
(PG) ............................................................. 3-14
.......................................................................................... 3-14
................................................................................. 3-14
................................................................... 3-14
...................................................................... 3-16
......... 3-16
......... 3-16
........................................................................... 3-16
............................................................................ 3-16
............................................................................. 3-18
.................................................................. 3-20
(PLC) ............................................................. 3-20
(Program File) ...................................................... 3-20
................................................................................. 3-22
: .................................................................. 3-24
: .............. 3-28
PB 4 ........................................................................... 3-28
...................................................................... 3-28
......................................................................... 3-29
PB 4 ............................................................................... 3-29
PB 4 .......................................................................... 3-30
...................................................................................... 3-30
................... 3-31
OB 1 ................................................................................ 3-32
PG .......................................................................................... 3-34
......................................................................... 3-34
........................................................................................ 3-36
.............................................................................. 3-36
.................................................................................. 3-36
.............................................................................. 3-36
..................................................................................... 3-36
........................................................................................... 3-40
3. ................................................................................. 3-41
........................................................... 3-42

PG

SIMATIC S5



. ,
,
, " " ("manual mode").

.
PB 4
"").

: "" ,
, .
:
(Q 4.2 - )

(I 0.2),
.

PLC.

.

Siemens AG
Training Center

3-2/42

ST-S5SYS1

SIMATIC S5


PB 1
1 (Segment 1 Manual mode)
I 0.6

&

I 0.5

Q 4.2

PB 4
1 (Segment 1 Jog motor)
Q 4.2

I 0.2

&
=

Q 5.5

3-3

Siemens AG
Training Center

3-3/42

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

3-4/42

ST-S5SYS1

Siemens AG
Training Center

3-5/42

ST-S5SYS1

SIMATIC S5


.
, ,

2.
" " Windows'95.
STEP 5.

(, , ..),
.
SYS1A@PX.INI.
, , ,
.
"Load project settings ..." ("
").
F10 : File Project Load ...
<Select F3>.
,
.
"??????PX.INI
"Files",
PX.INI,
.
C:\S5_DATA\S5COURSE\S5SYS1\SYS1A
SYS1A@PX.INI.

<Enter>.
<Load> "Load project settings"
(" ").
SYS1A@PX,
.
.

Siemens AG
Training Center

3-6/42

ST-S5SYS1

SIMATIC S5

,
.

F4 : File

Project

Set ...

:
Project Settings - Blocks DOS directory path:

C:\S5_DATA\S5COURSE \S5SYS1\SYS1A

Program file:

[ SYS1A@ST.S5D ]

Representation:

CSF

Project Settings - PLC Mode:

Online

, <Enter>.
PB 4

PB 4.

SYS1A@ST.S5D PLC.
: "Edit STEP 5 block in the program file"
(" STEP 5 ").
F1 : Editor
STEP 5 block
(x) Program file
- F1!
"Edit STEP 5 block(s)"
(" () STEP 5").
"Source" (""),
"Program file" (" ").

Siemens AG
Training Center

3-7/42

ST-S5SYS1

0
Ins
Insert ()

SIMATIC S5

PB 4 "Block list" (" ").


.
, Insert.
.
: PB4, :
C:\SYS1A@ST.S5D : "Edit".
Edit..
AND (""). "&
F1 &. F1.
AND ("").
(inputs) (outputs) ,
.
.

Q 4.2
I 0.2

&
=

Q 5.5

().
Enter.
.

Enter ()

ESC
Cancel ()

:
, ,
.
, ,
ESC. Edit
. Edit
F1.
AND (""),
F7 Enter, "Save modified segment?"
(" ?"), Enter.
":BE".

: "Output". ,
.

Siemens AG
Training Center

3-8/42

ST-S5SYS1

SIMATIC S5

PB 4:
F6 Edit, Edit .
PB 4
F7 Enter. "Save modified block? ("
?"), Enter.

. PB 4
C: SYS1A@ST.S5D
C:\S5_DATA\S5COURSE\S5SYS1\SYS1A PG. PB 4,
, PLC,
, .
PB 4 ()
PLC. ,
PB 4.
, PLC
Stop PL.
PLC ,
CPU "RN"
(RUN - ).
"ST" (STOP - ).
CPU
.

PB 4 PLC.

Siemens AG
Training Center

3-9/42

ST-S5SYS1

PB 4

SIMATIC S5

"Transfer block from file to PLC" ("


PLC").
F5 : File Blocks Transfer ...
"Transfer block(s)" ("
()").

"Transfer
from" (" "). "to" ("") ,
PB 4. "Block list"
PB 4 .
"Program file" "Transfer from" "PLC"
"to" .
"Block list" , ( ).
"PB4" [ ].
, "Block list".

Siemens AG
Training Center

3-10/42

ST-S5SYS1

SIMATIC S5

<Transfer>
"Transfer 1 block (" 1"), <Yes>.
,
,
PLC.
<Cancel=ESC>.

PB 4

Editor PB 4
PLC.
F1 : Editor STEP 5 block ... (x) PLC
PB 4,
Jog Conveyor Motor
( ). ,
, .
"RN (RUN).

PB 4

,
Manual mode I 0.6, I 0.5

I 0.2.
PB 4
"Block Status".
F6 : Test Block status ....
"Block Status",
"Exit STATUS? Enter.

Siemens AG
Training Center

3-11/42

ESC,

ST-S5SYS1

Siemens AG
Training Center

3-12/42

ST-S5SYS1

Siemens AG
Training Center

3-13/42

ST-S5SYS1

PG

SIMATIC S5

PG

Editor ()

(Editor) STEP 5
, .
PLC,
PG .

PLC.
Editor
(), ( )
().
,
. .

SHIFT + ,
.
.

Output Mode
( )

"Output" ,
(.
. 3-15b).

Edit Mode
( )


"Edit".

CSF LAD .
3-15.

Siemens AG
Training Center

3-14/42

ST-S5SYS1

SIMATIC S5

3-15a

3-15b

Siemens AG
Training Center

3-15/42

ST-S5SYS1

PG

SIMATIC S5

Output Edit

Output () Edit ()
F6 Edit. "Block Status"
. ,
,
. , ,
, PLC!

Edit Output

Edit () Output ()
F7 Enter Insert.

Output. ,
, PLC
.

PLC
F7 Enter
Insert Output.
.
Output
: F7 Save.

ESC.

, ,
, ,
F5 Seg Fct.
, PG (. . 317a).

Siemens AG
Training Center

3-16/42

ST-S5SYS1

SIMATIC S5

Output ()
F

Addresses

Lib No

Disp Symb

Reference

F
1

F
-1

+1

F Symb. SYM

-> STL

Seg Com

Save

Help

Seg Fct

Edit

Enter

Cancel

Help

Return

Search

Delete

File

F
Insert

Append

PG
0
Ins

ESC
Escape/

Insert (OK)
,
()
F11

Page

F11

Enter

Page

Append
segment

3-17a

(Edit)

Math

Blocks

&

>=1

Shift

Compare

Seg Com

Extras

Help

Bin Oper

Seg End

Enter

Cancel

PG

ESC
Escape/

0
Ins
Insert (OK)
,
(OK)

3-17b

Siemens AG
Training Center

3-17/42

ST-S5SYS1

PG

Siemens AG
Training Center

SIMATIC S5

,
, , PLC.
PG ,
"Transfer block(s) from program file to PLC"
(" () PLC").
.
.
, .

, PG
PLC,
Stop (). , PLC
(RUN),
!

3-18/42

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

3-19/42

ST-S5SYS1

PG

SIMATIC S5

PLC

"Edit STEP 5 block(s) in PLC"


(" () STEP 5 PLC"), PG
,
, .
. ,
PLC.

"Edit STEP 5 block(s) in the


program file" (" () STEP 5
), PG ,
("Project Settings"). PG
, "Project Settings
-Blocks -".

Siemens AG
Training Center

3-20/42

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

3-21/42

ST-S5SYS1

PG

SIMATIC S5


, , , .
PLC
.
,
.
"Blocks > Directory
PG. ,
PLC PLC.
STEP 5, 7.0,
.

"Block -> Directory" F2 Edit.
PG (Output)
. "Block directory"
ESC Output.
"Blocks > Transfer

PLC PLC .
"Blocks > Compare , ,
PLC
.
"Blocks > Delete
PLC.
"Block directory".
"Blocks > Compress" (
STEP5) ( ,
: ST.S5D).

Siemens AG
Training Center

3-22/42

ST-S5SYS1

SIMATIC S5

3-23

Siemens AG
Training Center

3-23/42

ST-S5SYS1

PG

SIMATIC S5


,
.
.
.

PB 4
,
.
,
I 0.3
. ,
PB 4.

Siemens AG
Training Center

3-24/42

ST-S5SYS1

SIMATIC S5


PB 4
1

Q 4.2
( )

C: SYS1A@ST.S5D

&
=

I 0.2
(
)

PB 4
2

Q 4.2
( )
I 0.3
(
)

LEN=13

Q 5.5
(
)

C: SYS1A@ST.S5D

LEN=13

&
=

Q 5.6
(
)

3-25

Siemens AG
Training Center

3-25/42

ST-S5SYS1

Siemens AG
Training Center

3-26/42

ST-S5SYS1

Siemens AG
Training Center

3-27/42

ST-S5SYS1

SIMATIC S5

3
PB 4

PB4
.
F1 : Editor STEP 5 block ... (x) Program file
PB 4
(Output mode) ( ).

F5 Seg Fct.
,
.
F6 Append .
.
F2 Buffer F3 From Seg.
F1 New.
,
Edit.
.
AND ("") F1 &
, 3-25.
Enter.

Enter

0
Ins
Insert

, Insert
PG "Save modified segment?" ("
?"): "Yes" ("")
Insert.

Output. PB 4
! ,
, Insert
PG.
, ,
.

Siemens AG
Training Center

3-28/42

ST-S5SYS1

SIMATIC S5

"Segment comments" (" ")


F6 Seg Com (.
).
"Segment title"

F6 Title.

.
"Jog Motor Backwards" (" ")
Enter.
.
F5 Seg Fct
F1 -1,
Minus ( -).

.
"Jog Motor Forwards" (" ")
Enter.
PB 4

PB 4
F7 Enter. PG <Yes>.
,
PLC.
PB 4

PB 4,

PLC STOP.
PB 4 PLC.
PG <Yes>.
F5 : File Blocks Transfer ...

Siemens AG
Training Center

3-29/42

ST-S5SYS1

PB 4

SIMATIC S5

PG RUN
"Jog Motor
Backwards (" ").
PB 4 "Block Status"
(" ").
F6 : Test
Block status ...
, PB 1 PB 4
PLC. PLC,
,
.

"Directory of
blocks in PLC" (" PLC").

F3 : File

Blocks

Directory...

(x) PLC

, "Selection" ("")
,
(PB, FB, ( )).
"Output to" ,
("") ,
. , ,
,
PG. "Project
Settings" ( " ").

Siemens AG
Training Center

3-30/42

ST-S5SYS1

SIMATIC S5

PLC PG.
A "Block list" "Selection"
(A = all blocks).

PLC, PB 1 PB 4?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<OK>
<Cancel=ESC >.
: FB 240.

FB

"Delete block(s) in PLC" (" ()


PLC) FB 240.
File

Blocks

Delete ....

.
PLC "Delete Block list (
) "Selection" (""). FB240
[ ] (
)
Delete ().

Siemens AG
Training Center

?
--------------------------------------------------------------------------------------

3-31/42

ST-S5SYS1

SIMATIC S5

FB PLC. "FB"
"Block list".
F3 : File Blocks Directory ... (x) PLC
FB 240 PLC?

OB 1

OB 1.
OB 1 PLC.
File
Blocks
Delete ... , etc.
OB PLC.
F3 : File Blocks Directory ...

(x) PLC

OB 1 PLC?

, ,
.

PB 1
(" ").

F6 :

PB 4

Test

- "Block Status"

Block status ...

"Block Status"?
------------------------------------------------------------------------------------------------ ?

, !

Siemens AG
Training Center

3-32/42

ST-S5SYS1

Siemens AG
Training Center

3-33/42

ST-S5SYS1

PG

SIMATIC S5

PG

.
, PG
.
PG

, "comment blocks"
PC, OC, FC ....

(PC)
(PB), PG
PC , PB. PC 4 PB 4,
OC 1 OB 1 . .
( ).
PLC .

Siemens AG
Training Center

3-34/42

ST-S5SYS1

PG

SIMATIC S5

Siemens AG
Training Center

3-35/42

ST-S5SYS1

PG

SIMATIC S5


(Block status, Edit
block, ...) "Block list [
]
.
,
.
:

[
:

[ PB1
]
[ -MODES ]

6 , .
"\" ,
, :
:

Block list

].

Block list

[ OB1 , PB4 ]
[ -MODES\, PB4 ]


, .

"\"
.

!
:

Block list

[ PB1 - PB4 ]
[ -MODES\- -MOTOR]
[-MOTOR\- PB4]

:
:

Block list

[ PB ]
[ B ]
[A ]

-
-
-


"Block list",
<Info F7>.

Siemens AG
Training Center

3-36/42

ST-S5SYS1

PG

SIMATIC S5

3-37

Siemens AG
Training Center

3-37/42

ST-S5SYS1

Siemens AG
Training Center

3-38/42

ST-S5SYS1

Siemens AG
Training Center

3-39/42

ST-S5SYS1

SIMATIC S5

1. , OB 1
?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2. ,
PB?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

3. - "Block Status".
.
?
PLC

Siemens AG
Training Center

3-40/42

PLC,

ST-S5SYS1

- 3

SIMATIC S5


PG.
:
- ,

(Project settings - Blocks -).

. C: D:
A: PG.

,

/
PLC. PLC,
PLC.

PLC:

PLC
,
(

"ST").

"RN".
.

PLC ,
.
PLC.


.

.

Siemens AG
Training Center

3-41/42

ST-S5SYS1

SIMATIC S5

.
.
.
(Output mode).
.
CPU STOP.
(Editor).
.
.
.
.

() .
.
.

Siemens AG
Training Center

3-42/42

ST-S5SYS1

SIMATIC S5
1
2
3
4
5

.................. 4-2
................................................ 4-2
OB 1 ............................................................................. 4-4
............................................................ 4-6
....................................................... 4-6
....................................................................................... 4-8
: OB 1......................................................... 4-12
OB 1 ........................................................................................ 4-12
OB 1 .............................................................................. 4-13
................................................................ 4-13
PB 4 .................................................................... 4-13
PB 4 PB 1.......................................................................... 4-14
................................................................................ 4-18
.................................................................................. 4-18
........................................................................... 4-18
STL ....................................................................... 4-20
: .................................................. 4-22
4. ................................................................................... 4-23
........................................................... 4-24

SIMATIC S5

Siemens AG
Training Center

CPU.
PLC
CPU, .
, .

()
.
, "" CPU,
.

4-2/24

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

4-3/24

ST-S5SYS1

OB 1

SIMATIC S5

OB 1 ,
(Organization Blocks). ,
. OB 1
,
, ,
.

,
CPU . OB 1 ,
.
.

,
.

""

:
OB 1 :
JU PB1: JU
, - PB 1.
PB 1 .
OB 1 ,
. ,
, .
, BE (Block End
), ,
OB 1 ,
. BE
. BE
,
.
,
OB 1 .
. ,
, .
, ,
.
.
.

Siemens AG
Training Center

4-4/24

ST-S5SYS1

SIMATIC S5

OB 1

PB 1

OB 1
: JU
: JU

PB 1
PB 4

Segment 1
:A I 0.6
:A I 0.5
:= Q 4.2
:
: BE
PB 4

: BE

Siemens AG
Training Center

4-5/24

Segment 1
:A I 0.2
:A Q 4.2
:= Q 5.5
:***
Segment 2
:A I 0.3
:A Q 4.2
:= Q 5.6
:BE

4-5

ST-S5SYS1

Siemens AG
Training Center

SIMATIC S5


. OB 1,
.
, ,
,

.

,
.
.
,
.
,
.

4-6/24

ST-S5SYS1

SIMATIC S5


PB 1

OB 1
Segment 1
:A I 0.6
:A I 0.5
:= Q 4.2
:***
Segment 2
:A Q 4.2
:A I 0.2
:= Q 5.5
:***
Segment 3
:A I 0.7
:A I 0.5
:= Q 4.3
:BE

OB 1
Segment 1
:JU PB 1
:
:JU PB 4
:

Segment 1
:A I 0.6
:A I 0.5
:= Q 4.2
:***
:Segment 2
:A I 0.7
:A I 0.5
:= Q 4.3
:BE

:BE
PB 4
Segment 1
:A Q 4.2
:A I 0.2
:= Q 5.5
:BE

Siemens AG
Training Center

4-7/24

4-7

ST-S5SYS1

SIMATIC S5


,
.
- .
,
,
.
OB 1,
.
, ,
.

.
0 255.
256 ,
( S5-100U, CPU 100, 102
: 64 ).
,
, .
Siemens
.

PLC (.
Catalog ST 57).

.
.
0 255 - ,
, .
"STEP 5",
.

Siemens AG
Training Center

4-8/24

ST-S5SYS1

SIMATIC S5

OB 1
:JU
:JU
:JU
:A
:JU

PB 1
PB 4
FB 215
DB 10
SB 7

:BE

PB 1
Segment 1
:A I 0.6
:A I 0.5
:= Q 4.2
:***
Segment 2
:A I 0.7
:A I 0.5
:= Q 4.3
:BE

FB 215
Segment 1
NAME : MOTOR
M-NO :
ENAB :
ACKN :
MESS :
:
:BE

PB 4
Segment 1
I 0.2
Q 4.2

&
Q 5.5

SB 7
Segment 1
:A M 233.0
:A I 8.2
:= Q 4.2
:***
Segment 2
:A I 8.7
:A I 1.7
:= M 233.0
:BE

DB 10

4-9

Siemens AG
Training Center

4-9/24

ST-S5SYS1

Siemens AG
Training Center

4-10/24

ST-S5SYS1

Siemens AG
Training Center

4-11/24

ST-S5SYS1

: OB 1

SIMATIC S5

OB 1

4
OB 1

OB 1 , PLC
.
OB 1 ,
PB 1 PB 4.
OB 1 :
Segment 1:
: JU PB 1
: JU PB 4
: BE
OB 1 STL (Statement
List). PG STL-
. STL,

CSF.
"Edit STEP 5 block in the program file
(" STEP 5 .

F1 : Editor

STEP 5 block

(x) Program file

OB 1 , (Editor)
Edit.
. PG
CSF-.
":STL" ( !)
Enter.
PG STL-
. :STL
Enter,
.
,
Enter. (PG
BE , .)
OB 1.
Insert, .

Siemens AG
Training Center

4-12/24

ST-S5SYS1

: OB 1

SIMATIC S5

OB 1

OB 1 PLC.
F5 : File

Blocks

Transfer ...

"Block list" OB 1
.
PLC RUN.


, -
.
STEP 5
( DB), OB 1.

PB 4 PB 1
PB 4 OB 1. , ,
OB 1 PLC.

PB 4
F6

OB 1 PLC , Editor.
F1 : Editor STEP 5 block (x) PLC
Edit F6.

Del

Delete


JU PB 4 Delete
F3 Delete .
PB 4
.

0
Ins
Insert

OB 1 Insert.
PLC , .
Insert , OB 1
.

, -
.

Siemens AG
Training Center

4-13/24

ST-S5SYS1

: OB 1

SIMATIC S5

-?

PB4 - "Block Status".


F6 : Test Block status ...
?
--------------------------------------------------------------------------------------------

PB 4 PB 1

PB4
PB1. ,
PB1. , ,
PLC.
PB1 PLC.
F1 : Editor

STEP 5 block ...

(x) PLC

Segment 2 Plus F5 Seg Fct F2 +1.

Segment + 1

Enter

, Enter
F6 Append F1 New.
PB4 .

.

F2 Blocks.

F4 JU ...
JU .
PB4
Enter.

Siemens AG
Training Center

4-14/24

ST-S5SYS1

: OB 1

SIMATIC S5

PB1.
.
-?

,
.
, OB1 PB1
PLC.

.
F5 : File Blocks

Transfer ...

,
PB1 and OB1 "Block list"
"Selection".

, ,
, <Transfer>.
!

Siemens AG
Training Center

4-15/24

ST-S5SYS1

Siemens AG
Training Center

4-16/24

ST-S5SYS1

Siemens AG
Training Center

4-17/24

ST-S5SYS1

SIMATIC S5

OB 1,
. , ,
.
,
,

. , ,
, OB 1.

,
OB 1, .
OB 1 "
".
. CPU.
, S5-115U CPU 941
32 ( OB 1).

CPU, Stop.

Siemens AG
Training Center

4-18/24

ST-S5SYS1

SIMATIC S5

,
= 5

OB 1
:
:JU PB 1
:.......
:
:
:BE

Siemens AG
Training Center

PB 1
:JU PB 4
:.......
:
:
:
:BE

PB 4
:A Q...
:JU PB 7
:.......
:
:
:BE

PB 7
:A F...
:
:JU FB 5
:.......
:
:BE

FB 5
:A I...
:
:
:
:
:BE

4-19

4-19/24

ST-S5SYS1

STL

SIMATIC S5

STEP
5 , .
PG CSF LAD
STL (Edit).
":STL" Enter.
.
STL ,
, , F3 Delete.

Siemens AG
Training Center

4-20/24

ST-S5SYS1

Siemens AG
Training Center

4-21/24

ST-S5SYS1

SIMATIC S5

4

. ,
, .

,
,
(error message).
:
( ),
Q 5.7 ().
PB 3 (CSF-).

PB 3
. "Error Message"
(" ") .

Siemens AG
Training Center

4-22/24

ST-S5SYS1

- 4

SIMATIC S5

PLC

.
OB 1
.

,
.
,

.

OB 1
(,
JU),
,

PLC.

OB 1 ,
.

OB 1

. ,


.

"BE" ,

. "BE"
OB 1 ,
OB 1 . .


:
,
,
.

.

.

OB 1,
,
.



OB 1. ""
.
PLC.

Siemens AG
Training Center

4-23/24

ST-S5SYS1

SIMATIC S5

.
.
.
.
STL
CSF.

.
.
.

Siemens AG
Training Center

OB 1.

4-24/24

ST-S5SYS1

SIMATIC S5
1
2
3
4
5

: ..................................... 5-2
: "" ........................................................ 5-6
PB 4 ........................................................................................... 5-6
"" "" ...................................................... 5-7
" " (Ladder Diagram) ........ 5-11
............................................................. 5-14
"" ........................................................................................ 5-14
............................................... 5-14
......................................... 5-14
............................................................................... 5-16
(RLO) ..................................................... 5-18
.................................................................................. 5-18
"" "" ..................................................... 5-18
.......................................................................................... 5-20
........................................................................... 5-20
: .................................................... 5-22
: " " ................................................ 5-26
'0' .......................... 5-30
"" "" ..................................................... 5-30
" " ................................................................ 5-30
'0'............................................................ 5-30
............................ 5-30
LAD, CSF STL ............................................................ 5-32
: ..... 5-36
5. ............................................................................................. 5-39
..................................................................... 5-40

SIMATIC S5



,
.
.
.

(Manual mode).

Siemens AG
Training Center

5-2/40

ST-S5SYS1

SIMATIC S5

I Q 5.5

I 8.1

I 8.2

I 8.3

>=1

5-3

Siemens AG
Training Center

5-3/40

ST-S5SYS1

Siemens AG
Training Center

5-4/40

ST-S5SYS1

Siemens AG
Training Center

5-5/40

ST-S5SYS1

SIMATIC S5

5
PB 4

1
PB 4. 1 2,
2 3.
PB 4 .
F1 : Editor STEP 5 block ... (x) Program file
1 PB 4
- Output.
F5 Seg Fct , F5 Insert F1
New.
1 2.
Edit, 1.
OR () F2

????

>= 1.

>=1

????

????

, ,
.

I 8.1
I 8.2
I 8.3

3- OR () F3

>=1
=

F 40.1

OR (), .

Siemens AG
Training Center

5-6/40

ST-S5SYS1

SIMATIC S5

OR ()
Q 5.5 ( ). ,
.
Seg. 1
I 8.1
I 8.2
I 8.3

, OR.
STEP 5 "" ("flag" (.),

>=1
=

F 40.1

"merker" (.)).
, (I...) (Q...).
F 40.1. 1
.
"Flag, Workstations 1 to 3
(, 13) Insert.
Output. ,
I 8.1, I 8.2
I 8.3, I 0.2
F 40.1 2.

2 Plus (+) Edit


()
F6 Edit. I 0.2 F 40.1.
PLC.
F5 : File Blocks Transfer ...
,
.
PB 4 - "Block Status".
F6 : Test Block status ...

. , ,
,
1 2
:
PB 4 .
F1 : Editor STEP 5 block (x) Program file
,
3. 3 ("Jog conveyor
backwards " ") 4.

Siemens AG
Training Center

5-7/40

ST-S5SYS1

SIMATIC S5

3 F5 Seg Fct F2 +1.


3 F5 Insert F1

New

3 4.
Edit, 3.

, ,
. (AND) F1 &.
????

&

????

????

Q 4.2
I 8.1
I 8.2
I 8.3

, , ,
(OR) F2 >=1.

F3
.

&

>=1
=

Q 5.5

"Jog conveyor forwards"


(" "),
F6 Seg Com
F6 Title,
Insert.

, 1 2.
1 : F5 Seg Fct
F11.

F4 Delete

1 2,
, 1.
, 1.
PLC.
F5 : File Blocks Transfer ...
I 8.1, I 8.2
I 8.3 .
PB 4 - "Block Status".
F6 : Test Block status ...

Siemens AG
Training Center

5-8/40

ST-S5SYS1

SIMATIC S5

- "Block Status"
STL
F5
STL.

1 ("Jog conveyor forwards"


) ?

:
---------------- -----------------------------------------------------------------------------:
---------------- -----------------------------------------------------------------------------:
---------------- -----------------------------------------------------------------------------:
---------------- -----------------------------------------------------------------------------:
---------------- -----------------------------------------------------------------------------:
---------------- -----------------------------------------------------------------------------:
---------------- -----------------------------------------------------------------------------:
---------------- ----------------------------------------------------------------------------- , ,
1 "Block Status". , ,
"Block Status",
PLC!
PLC STOP.
Del

.
, Edit F6 Edit,
Delete F3
Delete .

Delete
PLC .
"Block Status" PLC
.

Siemens AG
Training Center

?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

5-9/40

ST-S5SYS1

SIMATIC S5

CSF :

F5 CSF.

CSF?

.
"" 1
LAD.
PLC STOP.
LAD

F5 LAD.

F11

1, ,
: F5 Seg Fct
F4 Delete
F11.
PB 4 PLC "Jog conveyor
backwards " ".

F11

1 "Jog conveyor forwards" "


" ( " ").

Siemens AG
Training Center

5-10/40

ST-S5SYS1

SIMATIC S5

(LAD) Ladder Diagram

"Insert segment"-" ", PG Edit.


, LAD-.
'1'
F1
(
= LAD- 1) .

...

????

()


F1
.

???? ????
+

...

????

()

???? ????

...


'1'
F1
.
F3
( ).

()

,
'1' ( ).

Q 5.5


"Jog conveyor forwards " ".

????

????
????

Q 4.2 I 8.1

...
I 8.2
I 8.3

()

. , PB 4 PLC,
Insert ,
PC 4 .
PLC
.

RUN

, PB 4, PLC,
PB 4 . ,
,
"Transfer block".
F5 : File Blocks Transfer ...

Siemens AG
Training Center

5-11/40

ST-S5SYS1

Siemens AG
Training Center

5-12/40

ST-S5SYS1

Siemens AG
Training Center

5-13/40

ST-S5SYS1

SIMATIC S5

""


(OR).
, '1' (ON),
'1' (ON).

: '1' (ON) '0' (OFF).


.
ON, , 1,
OFF, ,
0.


.
0 1.
,
, .
.


. '0'
'1'. ""
(RLO), .

Siemens AG
Training Center

5-14/40

ST-S5SYS1

SIMATIC S5


PLC
:
0 I 8.1

>=1

1 I 8.2
0 I 8.3

1
F 40.1

F
F 40.1
1

&

Q 4.2
F 40.1

Q 5.5

()
5-15

Siemens AG
Training Center

5-15/40

ST-S5SYS1

SIMATIC S5

,
PLC.
, .
:
, , ,
(, A, O, =)

, ,
.
(I, Q, F) ,
(,
"0.0, "5.4, "3.2, ..).

Siemens AG
Training Center

5-16/40

ST-S5SYS1

SIMATIC S5


CSF

STL

Q 4.2

1 F 40.1

&

LAD

+
:A

Q 4.2

:A

F 40.1
:

+
Q 4.2

F 40.1

I 8.1
I 8.1

>=1

I 8.2

:O I

8.1

:O I
:

8.2

I 8.2

Q 5.5

:=

Q 5.5

Q 5.5
( )
5-17

Siemens AG
Training Center

5-17/40

ST-S5SYS1


(RLO)

SIMATIC S5

, ,
"" . ,
,
.
"" .

, RLO. RLO
, ,
,
.


.
RLO, RLO. STL
,
.


" " ,
Q 4.2
( ).
. STL ,
.

Siemens AG
Training Center

5-18/40

ST-S5SYS1

SIMATIC S5

(RLO)
CSF-:

STL-:

:
:
I 8.1

Q 4.2

&

>=1
:

I 8.2
I 8.3

Q 5.5

:A
:A(
:O
:O
:O
:)
:=
:***

4.2

I
I
I

8.1
8.2
8.3

5.5

RLO
....
....
....
....
....
....
....

STAT
....
....
....
....
....
....
....

RLO

5-19

Siemens AG
Training Center

5-19/40

ST-S5SYS1

SIMATIC S5

,
.
,
,
, :
, . PLC

, ,

.
" " ( )
RLO, .

, ,
RLO.
" " ( ) ,

RLO, . ,
,
. ,
, ,
STL (LAD
CSF).
-,
,
.

Siemens AG
Training Center

S5-90U, S5-95U, S5-100U S5115U 6 . S5135U 7 .

5-20/40

ST-S5SYS1

SIMATIC S5

Ma

AND () OR ():

4x8

+ 3x 2

&

=
:A
:A
:O
:A
:A
:=

&
>= 1

I 0.0
I 0.1
I 0.2
I 0.3
Q 4.0

RLO
....
....
....
....
....
....

STAT
....
....
....
....
....
....

OR () AND ():

4 x (8 + 3) x 2 =
:A
:A (
:O
:O
:)
:A
:=

>=1
&

I 0.0
I 0.1
I 0.2
I 0.3
Q 4.1

RLO
....
....
....
....
....
....
....

STAT
....
....
....
....
....
....
....
5-21

Siemens AG
Training Center

5-21/40

ST-S5SYS1

SIMATIC S5


PB 3
. , ,
.
.
.
, ,
.
,
(
). ,
(
). ,
, .

Siemens AG
Training Center

5-22/40

ST-S5SYS1

SIMATIC S5


C: SYS1A@ST.S5D

PB 3
Segment 1
I 0.6

&
>=1

I 0.7
I 0.6

&
=

I 0.7

F 30.1
:BE

C: SYS1A@ST.S5D

PB 4
Segment 1
Q 4.2
F 30.1
I 8.1
I 8.2
I 8.3

LEN=16

LEN=19

&

>=1
=

Q 5.5

5-23

Siemens AG
Training Center

5-23/40

ST-S5SYS1

Siemens AG
Training Center

5-24/40

ST-S5SYS1

Siemens AG
Training Center

5-25/40

ST-S5SYS1

: " "

SIMATIC S5

" "

6
I 0.6

PB 3:

&

I 0.7

Q 5.7

Home


(Hor exp)
I 0.6

&

????

Q 5.7

I 0.6

&

I 0.6

(AND)
.
: " "
'0'.

F4
( Enter).

>=
1

I 0.7

&

I 0.7

" F6 Edit,
F7 Extras F6 Hor exp.
. F2 >=1 .

, .

>=
1

I 0.7

PB 3 .
Edit .

Q 5.7

, ,
I 0.6 0,
. ,
.
F4

Siemens AG
Training Center

5-26/40

ST-S5SYS1

: " "

SIMATIC S5

PB 3
I 0.6

&

I 0.7
I 0.6

,
.
I 0.7
.

>=
1

&
F 30.1

I 0.7

I I 0.7
, F4
. Q 5.7
F 30.1 ( ).
PB 3 ("Enable
conveyor motion " - " ").
PB 3 PLC.
,
, , PB 4 1

( ) 2 ( ).

PB 4
Seg.1
Q 4.2
F 30.1
I 8.1
I 8.2
I 8.3

&

>=1
=

Q 5.5

PB 4 1 2.
()
. PB 4 PLC
, , -
"Block Status".

Seg.2
Q 4.2
I 0.3
F 30.1

&
=

Q 5.6

.
PB 3 LD CSF.
AN I 0.6 LD CSF
?

Siemens AG
Training Center

LAD:

------------------------------

-------------------------------

CSF:

------------------------------

-------------------------------

5-27/40

ST-S5SYS1

Siemens AG
Training Center

5-28/40

ST-S5SYS1

Siemens AG
Training Center

5-29/40

ST-S5SYS1

SIMATIC S5

'0'

" " ,

.
1,
( ) RLO,
1.


" ".
1,
1. 1,
1.

STEP 5
0. 0
.
.

'0'
'1' , ,
-
.
. '0',
, '0',
- '1'. ,
'1',
- '0'.

.

Siemens AG
Training Center

5-30/40

ST-S5SYS1

'0' .

SIMATIC S5

0 1
0

LAD:

CSF:

STL:

&

&

>=1

>=1

AN . ...

A . ...

ON . ...

O . ...
5-31

Siemens AG
Training Center

5-31/40

ST-S5SYS1

LAD, CSF STL

SIMATIC S5

- "Block Status" ,

. -
Statement
List ( ), Ladder Diagram ( ) Control
System Flowchart ( ).
, - "Block Status"

STL-,
, :
RLO
= Result of logic operation ( )
STATUS = Signal state
( )


CSF :
= = = RLO 1
. . . . . RLO 0
LAD-
'0' '1' .
.
===

RLO 1

. . . . . RLO 0

Siemens AG
Training Center

5-32/40

ST-S5SYS1

- "Block Status" CSF, LAD, STL

SIMATIC S5

- Block Status CSF, LAD, STL

CSF:

STL:

I 0.6

&

I 0.7

RLO

>=1

I 0.6

:A

&

I 0.7

F 30.1

LAD:
I 0.6

I 0.7

F 30.1

( )

STAT

0.6

......

..0..

:AN I

0.7

......

..1..

......

......

:O
:AN I

0.6

......

..0..

:A

0.7

......

..1..

:=

30.1

......

......

:***
I 0.6

I 0.7

5-33

Siemens AG
Training Center

5-33/40

ST-S5SYS1

Siemens AG
Training Center

5-34/40

ST-S5SYS1

Siemens AG
Training Center

5-35/40

ST-S5SYS1

SIMATIC S5

1. ,
STL?

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2. RLO
:

Program

RLO

STAT RLO

STAT RLO

STAT

A
A
=

I 0.0
I 0.1
Q 4.0

____
____
____

1
1
____

____
____
____

0
1
____

____
____
____

1
0
____

O
O
=

I 0.2
I 0.3
Q 4.1

____
____
____

0
1
____

____
____
____

1
0
____

____
____
____

1
1
____

____
1.0
1.1
____
I 1.2
Q 5.0

____
____
____
____
____
____

____
1
0
____
0
____

____
____
____
____
____
____

____
0
0
____
1
____

____
____
____
____
____
____

A(
O
O
)
AN
=

Siemens AG
Training Center

I
I

5-36/40

0
1
1
____

ST-S5SYS1

SIMATIC S5

I 1.0 = 1
I 1.1 = 0
I 1.2 = 0

3. STL- Q 5.0, * ,
LAD CSF, :

LAD-

CSF-

Siemens AG
Training Center

5-37/40

ST-S5SYS1

SIMATIC S5

- "Block
Status"?

LAD:

CSF:

Siemens AG
Training Center

===

--------------------------------------------------------------------------------------

....

--------------------------------------------------------------------------------------

===

--------------------------------------------------------------------------------------

....

--------------------------------------------------------------------------------------

5-38/40

ST-S5SYS1

- 5.

SIMATIC S5

(OR)
,
(AND).
'1'
,
1.
(AND) (OR)
.
, " "
" ". STL-,
,
,
.
- ,
1
,
1.

0.

Siemens AG
Training Center

.
(operation)
( ) (operand) (
).

.


()
.
,

,
.
, ,
.

,

.

5-39/40

ST-S5SYS1

SIMATIC S5

SIMATIC S5

(OR).
CSF-.
.
STL ,
, .
.
.
.
(RLO).

Siemens AG
Training Center

CSF LAD.

5-40/40

ST-S5SYS1

SIMATIC S5
1
2
3
4
5


: .... 6-2
............................................................. 6-2
- "Block Status" ( ) ................................ 6-2
- "Status Variable" ( ) ................. 6-2
............................................................................................... 6-4
..................................................................... 6-4
.............................................................................. 6-4
............................................................................... 6-4
: "Status Variable ( ) ........ 6-8
(Variables Block) ................................................... 6-9
...................................................................... 6-9
....................................... 6-12
........ 6-12
........ 6-12
................ 6-12
.............................................................................. 6-14
, ...... 6-14
, . 6-16
............................................................... 6-18
................................................... 6-18
"Block Status" "Status Variable ....................................... 6-20
: , ...... 6-24
......................................................................... 6-24
6. .................................................................................. 6-29
........................................................... 6-30

SIMATIC S5



. ,
, ,
, .

1
'0'. ,
'0' , - '1'.
,
'1' , - '0'.
,
() "".
("") , ,

.
, ,
,
.
. 8
"".

-
"Block Status"

- "Block Status" (
) .

, . ,

.
, .

-
"Status Variable"

,
,
- "Status Variable" (" ").
"Test". - "Status
Variable"
, ,
.
,
.
"Test" ,
"Online" "Project Settings - PLC -".

Siemens AG
Training Center

6-2/30

ST-S5SYS1

SIMATIC S5

- -

-

()

1
1

1
0

()

0
1

0
0

6-3

Siemens AG
Training Center

6-3/30

ST-S5SYS1

SIMATIC S5


,
.
, , ,
.
, . S5-115U
,
(), . ,
CPU, 0.
4,
8 ..

. , 8
.
, 8 ,
CPU, 0.
32
S5-115U (32- ). , ,
CPU, 0 3.
,
4, , ,
16 (16- ).
2 3 .
-
,
,
.


, 0 o 7,
. ,
, CPU,
I 0.1.
I , 0 1 .
.

Siemens AG
Training Center

6-4/30

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

6-5/30

ST-S5SYS1

Siemens AG
Training Center

6-6/30

ST-S5SYS1

Siemens AG
Training Center

6-7/30

ST-S5SYS1

: "Status Variable" ( )

SIMATIC S5

"Status Variable"

7

CPU. , ,
?

------------------------------------------------------------------------------------------------ "Status Variable".


Status variable

F7 : Test

IB 8 "Operands
Enter.
"KH "Formats" "KM.
Shift

.
F6 Activate


IB 8. I 8.0 IB 8.
, (..
)?

Siemens AG
Training Center

(.. )?

6-8/30

ST-S5SYS1

SIMATIC S5

Cancel (Esc)
:
IB
I
QB
QB
Q
FY

8
8.0
4
5
5.5
30

KM =
KM =
KM =
KM =
KM =
KM =


"Status Variable", PG
(Variables Block (VB)).
VB 1 , F5 Save As ,
"Status Variable" F8 Return .

,
PB 4 , , ,
, .
PB 4 (segment 1) ,
PLC .
"Status Variable",
.
VB 1
F1 Fetch "Status Variable".

Siemens AG
Training Center

6-9/30

ST-S5SYS1

Siemens AG
Training Center

6-10/30

ST-S5SYS1

Siemens AG
Training Center

6-11/30

ST-S5SYS1

SIMATIC S5



.
.
, 1.
,
, 0. ,
.
A, AN, O ON,
"" ,
.

. ,

(RLO), .

.

-

, -
CPU
.
" ".
, '1'
'0' ,
:

24V

48/60V

115V

230V

+13...30V

+30...72V

+85...135V

+170...268V

-30...+5V

0...+10V

0...40V

0...70V


.
" ".
,
, , '0'
'1'. , ,
.

Siemens AG
Training Center

6-12/30

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

6-13/30

ST-S5SYS1

SIMATIC S5

CPU. CPU
,
. S5-115U
.
.
:




.
.


.
+5 V.




(Process Input Image (PII))

Siemens AG
Training Center


.

.
OB 1
-
("process input image" , , PII ).
PII
. PII
.
,
.
: PII

.
,
.
,

.

6-14/30

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

6-15/30

ST-S5SYS1




(Process Image (PIQ))

SIMATIC S5



("process output image" ,
, PIQ). PII
(PIQ) ,

.

( BE OB1)
PIQ
. ,
,
, PIQ,
.

Siemens AG
Training Center

6-16/30

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

6-17/30

ST-S5SYS1

SIMATIC S5


(cycle monitoring time).
.
CPU. S5-115U
500 . ,
500 , CPU Stop.

(BASP).


PII .
OB 1, .
PIQ.
BE OB 1,
PIQ,
(program scan cycle).
,
,
.

.

, CPU Stop.

Siemens AG
Training Center

6-18/30

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

6-19/30

ST-S5SYS1

"Block Status"
"Status Variable"

SIMATIC S5

"Status Variable" "Block Status"


PII, PIQ

.
"Block Status" 20
.
"Status Variable" ,
PII, PIQ
.
.
PIQ

, "Status
Variable" "Block Status"
.
, , , ,
(, Q 4.2)
( ). ,
, PIQ
"Status Variable"
.

Siemens AG
Training Center

6-20/30

ST-S5SYS1

SIMATIC S5

"Block Status" "Status Variable"


"Block Status"
Segment 1 RLO
A
I 0.6 0
A
I 0.5 0
=
Q 4.2 0
***

"Status Variable"
QB 4 KM: 00000100

Segment 2 RLO
A
I 0.7 1
A
I 0.5 1
=
Q 4.2 1
***

Q 4.2

STATUS

0
1
0

PIQ:

STATUS

1
1
1

Q 4.2
0 0 0 0 0 1 0 0 QB 4

SIEMENS

PG 740

6-21

Siemens AG
Training Center

6-21/30

ST-S5SYS1

Siemens AG
Training Center

6-22/30

ST-S5SYS1

Siemens AG
Training Center

6-23/30

ST-S5SYS1

: ,

SIMATIC S5

.
1 3
, .
, 1,
H1 .

PB 5 SYS1B@ST.S5D
C:\S5_DATA\S5COURSE \S5SYS1\SYS1B.
SYS1B@ST.S5D
C:\S5_DATA\S5COURSE \S5SYS1\SYS1A,
. , ,
Windows'95 Explorer,
,
STEP 5.

"Copy DOS file(s).


Ctrl F8 : File DOS File

Copy ...

"Copy DOS file(s)"


, .

Siemens AG
Training Center

6-24/30

ST-S5SYS1

SIMATIC S5

: ,

:
ST.S5D
"Source file" (" ") ( 6
!!)
Enter.
STEP 5
"Source files" (" ").
SYS1B@ST.S5D,
.
C:\S5_DATA\S5COURSE\S5SYS1\SYS1B
"Source dr/dir." (
).
"Source file", , ,
"Source files" (" ").

SYS1B@ST.S5D "Source files". "Source file"
.
-, "Dest file"
(" ").
TAB
"Dest file" (" ").
F3 Select
, .
C:\S5_DATA\S5COURSE/S5SYS1\SYS1A
"Dr/directory".
Insert <Enter>.
, <Copy>.
, < Cancel=Esc >.
SYS1B@ST.S5D, ( PB 5), ,
.
PB 5 SYS1B@ST.S5D
SYS1A@ST.S5D.

Siemens AG
Training Center

6-25/30

ST-S5SYS1

: ,

SIMATIC S5


.
F5 : File Blocks Transfer ...

<Transfer>.
PB 5
PLC.
PB 5 PLC:
F5 : File Blocks Transfer ...
OB 1.
PB 5 .
(Automatic mode)
.

Siemens AG
Training Center

6-26/30

ST-S5SYS1

SIMATIC S5

: ,

, . ?

segment 1 - "Block Status".


F6 : Test Block status ...

-"Block Status"
Q 5.1 1?

- "Status Variable"
VB 1.
F7 : Test Status variable ...
Q 5.1 "Block Status" "Status
Variable.

Siemens AG
Training Center

- "Status Variable"
Q 5.1 ?

6-27/30

ST-S5SYS1

: ,

SIMATIC S5

"Block Status" "Status Variable"


Q 5.1?

3 PB 5 "Block Status".
"3" "Search key" (" ").
3 .

PB 5.

PB 5?

Siemens AG
Training Center

6-28/30

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

6-29/30

ST-S5SYS1

: ,

SIMATIC S5

"Block Status" "Status Variable"


Q 5.1?

3 PB 5 "Block Status".
"3" "Search key" (" ").
3 .

PB 5.

PB 5?

Siemens AG
Training Center

6-28/30

ST-S5SYS1

- 6

SIMATIC S5


( ) CPU

.

CPU.
.
,
.
- "Block Status" 20
.
- "Status Variable" , .

PII/PIQ
,
.

.
- "Block Status",
- "Status
Variable" ,
.

Siemens AG
Training Center


,
.
, PLC
Stop.
1
(process input image
PII)
.
OB1.

,
,
-
(process
output image PIQ)

.
(BE)
OB 1, PIQ

.


. ,

,
( ).

6-29/30

ST-S5SYS1

SIMATIC S5

"".
.
.

.

.
.
.

(PII).
CPU
.

- "Block Status" "Status


Variable".
.
.

Siemens AG
Training Center

6-30/30

ST-S5SYS1

SIMATIC S5

: .......................... 7-2
............................................................................. 7-2
: ........................................ 7-6
STL ..................................................................................................... 7-7
.............................................................. 7-12
RLO ................................................................ 7-12
- .............................................. 7-12
........................................................................................ 7-14
NOP 0 .............................................................................. 7-14
: ................... 7-16
Output Q............................................................................. 7-16
: .............. 7-20
PB 6 ......................................................................................... 7-20
PB 1 ................................................. 7-22
.................................................................................. 7-23
................................... 7-26
................................................................................. 7-26
...................................... 7-26
: 7-28
................................................................ 7-28
............................................................... 7-30
: ..... 7-34
................................................... 7-38
, .................................. 7-38
......................................................................................... 7-38
: .... 7-40
.................................................................................. 7-40
............. 7-40
: ................................................................. 7-44
7. ................................................................................... 7-47
........................................................... 7-48

SIMATIC S5

,
.
Q 4.1 " ".

-
I 0.0, - I 0.1.
,
Q 4.1 , '1'.

:
:A I 0.0
:= Q 4.1
,
I 0.0 1 , .
, Q 4.1 1
, .
STEP 5

. , ,
- .
'1' '0',
.

. RS-.

Siemens AG
Training Center

7-2/48

ST-S5SYS1

SIMATIC S5


Q 4.1
OFF (.)

I 0.1

ON (.)

I 0.0

7-3

Siemens AG
Training Center

7-3/48

ST-S5SYS1

Siemens AG
Training Center

7-4/48

ST-S5SYS1

Siemens AG
Training Center

7-5/48

ST-S5SYS1

SIMATIC S5

9
Q 4.1
I 0.1

I 0.0

PB 1
1 " ". Q 4.1
.
I 0.0
, I 0.1 .
:
PB 1 ,
1.
F5 Bin Oper.
F6 R/S .
.
Q

, Delete.
- "Block Status"
.

. ,
.
?

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Siemens AG
Training Center

7-6/48

ST-S5SYS1

SIMATIC S5


" ,
, - ?"

-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

"." ".".

STL

Q 4.1? ?
.
STL - "Block Status".
( NOP 0 ,
).

-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

Siemens AG
Training Center

7-7/48

ST-S5SYS1

SIMATIC S5

1.

,
.

2.

,
. .

:
,

F5 Bin Oper .
F6 R/S F7 S/R, ,
,
(. STL) .
- :
I 0.0 " .";

I 0.1 " .".

1 ?
CSF:

STL:

_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _: _ _ _ _ _ _ _ _ _ _ _ _ _

Siemens AG
Training Center

7-8/48

ST-S5SYS1

SIMATIC S5

, PLC
.

PB 1 PLC STL.
, "NOP 0" (
Delete F3).
F1 : Editor STEP 5 block ...
(x) PLC
- "Block Status".
F6 : Test Block status ...
- ?

--------------------------------------------------------------------------------------------

LAD- CSF- .
?

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

NOP 0
.

PB 1 PLC .
F5 : Blocks Transfer ...

Siemens AG
Training Center

7-9/48

ST-S5SYS1

Siemens AG
Training Center

7-10/48

ST-S5SYS1

Siemens AG
Training Center

7-11/48

ST-S5SYS1

SIMATIC S5


RLO


(RLO).
. I 0.0 "A I 0.0
RLO 1. :
1 I 0.0, Q 4.1
1. I 0.1 , ,
1. 0,
(AN I 0.1), RLO 0. ,
. Q 4.1 1.

,
,

.
-
-
.
'1' , '0' ,
. ,
'0' ( AN, ON),
, .

0, ,
.

Siemens AG
Training Center

7-12/48

ST-S5SYS1

SIMATIC S5

RLO

RLO

STATUS

I 0.0

Q 4.1

AN I 0.1

Q 4.1

7-13

Siemens AG
Training Center

7-13/48

ST-S5SYS1

SIMATIC S5

, ,

'1' . ,
, .

.
,
, .
, (
)
.

NOP 0

, ,
.

. Q
.
( )
, NOP 0
STL. NOP 0
,
LAD CSF.
NOP 0 . ,
.

Siemens AG
Training Center

7-14/48

ST-S5SYS1

SIMATIC S5



PII:
IB 0

01

IB 1

1
0

IB 2
IB 3

:A
:S
:AN
:R

etc.
PIQ:
QB 0

I 0.0
Q 4.1
I 0.1
Q 4.1

1
0

QB 1
QB 2
QB 4

etc.
7-15

Siemens AG
Training Center

7-15/48

ST-S5SYS1

SIMATIC S5



,
.
(. ).
'1',
, 1,
1.

.
-
" ", F 30.1 (PB 3).

Q
, '1' '0'.
1 , (/) '1'.
CSF
Q (,
, AND/OR R/S-).
, , ,

.
LAD-
Q.

Siemens AG
Training Center

7-16/48

ST-S5SYS1

SIMATIC S5

PB 6
Segment 1

I 8.5

&


F 60.1

I 8.1

Q 4.3
I 8.0

&

F 30.1

Q 5.5

7-17

Siemens AG
Training Center

7-17/48

ST-S5SYS1

Siemens AG
Training Center

7-18/48

ST-S5SYS1

Siemens AG
Training Center

7-19/48

ST-S5SYS1

SIMATIC S5

10
PB 6

PB 6 "Conveyor Motion in
Automatic Mode" (" "),
7-16.
PB 6 .
OB 1 , PB 6
.
PLC .
-
. VDE
, , , "

".
,
PLC
Stop. , (
) . ,
PLC Stop,
.
( )
" ".
" "
.

Siemens AG
Training Center

, "Block Status",
. PG
"Exit status? (" ?).
-, <No>.

7-20/48

ST-S5SYS1

SIMATIC S5


CPU ( STOP RUN)
.
NR/RE CPU "RE".
?

--------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------

PB 6:
F 60.1 F 128.0 ( PLC).
.
?

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
.
PLC. F 128.0
Q 4.0.

?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ( '0')
.

Siemens AG
Training Center

7-21/48

ST-S5SYS1

SIMATIC S5

F 60.1, ,
PB 6 PLC , .
I 8.5

&

I 8.1
Q 4.3
Q 4.1
I 8.0

F 60.1
, '0'
CPU Stop.
(Q
4.1 = 0). , PB 6 ,
.
, .

F 60.1

S
>=1

R Q

&

F 30.1

Q 5.5

PB 6, , ,
,
.

PB 1

PB 1 ( 2 3).
(I 0.6 =
MANUAL (.), I 0.7 = AUTOMATIC (.))
I 0.5.
. ,
"
" PB 3 (F 30.1).
:
I 0.6 I 0.7,
I 0.5.

. ,
.
/ 1
.
(Q 4.1 = 0).
PB 1,
.

, PB 3.
:

Siemens AG
Training Center

7-22/48

ST-S5SYS1

SIMATIC S5

PB 4 Manual Mode
( )
Q 4.2
F 30.1
I 8.0
I 8.1
I 8.2
I 8.3

PB 3 OB 1.
PB 3.

&

>=1
=

Q 5.5

F 30.1 (
) PB 4 PB 6. (PB 3 ).
( , ,
, Delete).
PLC.
PB 3 PLC.


.
.
? ,
--------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------


, Q 5.5.
(PB 4, 1)
( OB 1)
(PB 6).
, B 6. ,
Q 5.5 '0'
.

Siemens AG
Training Center

7-23/48

ST-S5SYS1

SIMATIC S5

:
1 PB 4 ("Jog motor
forwards" - " ") ,
PB 6
.

PB 4
Seg.1

:
Q 4.2
I 8.0

I 8.1
I 8.2
I 8.3

&
Q 5.5 1 PB 4 F 40.1.
" ".

>=1

F 40.1

PB 6
Seg.1
I 8.5
I 8.1
Q 4.3
Q 4.1
I 8.0
Q 4.3

&

F 60.1

Q 5.5 1 PB 6 F 60.1,
, Q 5.5,
Delete F 60.1 .
" ".

S
>=1

R Q

PB 6
Seg.2
F 40.1
F 60.1

2 ,
.

>=1

Q 5.5

" ".

PB 4 ( 1) PB 6 ( 1)
(Q 5.5), RLO
, , F 40.1 F 60.1.
PB 6 ( 2)
OR,
Q 5.5.

, .

Siemens AG
Training Center

7-24/48

ST-S5SYS1

Siemens AG
Training Center

7-25/48

ST-S5SYS1

SIMATIC S5

" "

CPU
,
CPU RE.
CPU,
(
). -
('1')
PLC,

('1').
.
Set,
CPU ,
Set. ,
, ,

. ,
,
(. Q 4.4 ).

CPU ,
CPU.
S5-115U DB 1
" " (
F 0.0 o F 127.7) .

. , ,
CPU "RE".
"NR", .
(: DB 1 DB,
,
. )

S5-135U , .
S5-100U -
.
,
.
,
,
CPU RAM!

Siemens AG
Training Center

7-26/48

ST-S5SYS1


SIMATIC S5

F 60.1

S
R

F 128.0
S
R

Q 4.4

( RE
)

FY
FY
FY

0
1
2

FY
FY
FY
FY

127
128
129
130

FY 255
(PIQ)

Q 4.0
S
R

QB

QB

QB

0
1
2

QB 127
7-27

Siemens AG
Training Center

7-27/48

ST-S5SYS1

SIMATIC S5

,
.
,
,
.

.
, '0'.
,
,
'1'.
,
,
.
,
1. ,
0. ""
, 1.
, ..,
'0' '1'.
0 1 .
,
,
.

Siemens AG
Training Center

7-28/48

ST-S5SYS1

SIMATIC S5

:
I 8.0
1

I 8.0

F 60.3


I 8.5

1
0

F 60.1

Q 4.3

F 60.3

Q 5.5

&

I 8.1

>= 1

Q 4.1

7-29

Siemens AG
Training Center

7-29/48

ST-S5SYS1

SIMATIC S5


. :
,

, .

, ,
I 8.0 '0' '1',
. ,
I 8.0 .
F 60.4 ( ). F 60.4 ,
, .., 0
( ).
I 8.0 , F
60.4 '0' F 60.3.
F 60.3 '1'
.
, I 8.0 '0' '1'.
I 8.0 '1' '0',
F 60.3, .

.
"automatic conveyor motion
(

)
,
, ,
'1'.

Siemens AG
Training Center

7-30/48

ST-S5SYS1

SIMATIC S5

I 8.0
F 60.4

F 60.4

&
#F 60.3

I 8.0

n+1

:A
:A
:=
:A
:R
:AN
:S
:NOP

I
F
F
F
F
I
F
0

8.0
60.4
60.3
60.3
60.4
8.0
60.4

m+1

I 8.0
F 60.4
F 60.3

Siemens AG
Training Center

7-31/48

7-31

ST-S5SYS1

Siemens AG
Training Center

7-32/48

ST-S5SYS1

Siemens AG
Training Center

7-33/48

ST-S5SYS1

SIMATIC S5

10

1 PB 6.
???
???

&

???

1 PB 6.

R
???

???

, .
" ",
F5 Bin Oper .
Set F6 R/S .

???
???

???

&
#

???

# F 60.3
F 60.3
,
(Reset).
LAD CSF
() "#.

??? .

,
(AND) (Reset).

F7 Extras, F6
Hor exp.

I 8.0
F 60.4

F 60.4

&
# F60.3

I 8.0

F5 Bin Oper
F4 # . : F 60.3 #.

, .
"Evaluate rising edge" (" ")
.

I 8.0 ()
F 60.3 2 PB 6. ,
.
'1' ,
!

Siemens AG
Training Center

7-34/48

ST-S5SYS1

SIMATIC S5

PB 6 PLC.

F 60.3 1 PB 6
- "Block Status".
?

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Siemens AG
Training Center

7-35/48

ST-S5SYS1

Siemens AG
Training Center

7-36/48

ST-S5SYS1

Siemens AG
Training Center

7-37/48

ST-S5SYS1

SIMATIC S5

, ,
.
,
.
S5-115U.

.

,
,
.
,

. , ,
250
(.. 4 ). ,
'1' ,
.

()

,
.
LAD CSF
,
"#". "#"

.

,
, .
, (,
)
.
# F 60.3 ( F 60.3)
STL :
:=
:A

Siemens AG
Training Center

F 60.3
F 60.3

7-38/48

ST-S5SYS1

SIMATIC S5

, - PG

PLC
SIEMEN
S

PG
740

Program
:A I
...
:A I
...
:= Q
...
:A I
8.0
:A F 60.4
:= F 60.3
:A F 60.3
:R F 60.4
:AN I
8.0
:S F 60.4
.
:A I
...

SIEMEN
S

PG
740

SIEMEN
S

PG
740

PLC
4

.
.
.

:BE
SIEMEN
S

PG
740

7-39

Siemens AG
Training Center

7-39/48

ST-S5SYS1

SIMATIC S5


:
( - )
- ,
.
,
(I 1.0) .

( Q 5.7) I 1.1.
( Q 4.7) ,
, ,
(I 1.0) .

,
I 1.0 '1' '0'.
'1' '0' " ".
( I 1.0
'0'), .

,
.

. '1'
, 1 0.

1 ,
1 0.

Siemens AG
Training Center

7-40/48

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

7-41/48

ST-S5SYS1

Siemens AG
Training Center

7-42/48

ST-S5SYS1

Siemens AG
Training Center

7-43/48

ST-S5SYS1

SIMATIC S5

11
,
PB 99 (
OB 1).

- (CSF)
.
,
.

( ).
:
I 1.0


(I 1.0=0 , "" ; I 1.0=1 , "")

I 1.1

Q 4.7

: "Motor OFF" - " "

Q 5.7

()

F 11.0
F 11.1

Siemens AG
Training Center

7-44/48

ST-S5SYS1

PB 99 .
PB 99 (
)
( : OB 1).

Siemens AG
Training Center

7-45/48

ST-S5SYS1

Siemens AG
Training Center

7-46/48

SIMATIC S5

ST-S5SYS1

- 7

SIMATIC S5

"Set" "Reset" (/
)
. RLO
Set Reset 1,
, 0,
.
,

, . ,
, RLO 1 Set,
Reset ,
, ,
.
,
. ,


PLC. ()

RE/NR RE. S5-115U
DB 1

(/)

(/)



.
.

Siemens AG
Training Center

0 1
.


, '1'
,
, ,
,

.
, 1 0,
.
.

7-47/48

ST-S5SYS1

SIMATIC S5

.
.
.
.
.
.
CSF.
.
OB 1.
.
.
PG.
.

Siemens AG
Training Center

7-48/48

ST-S5SYS1

SIMATIC S5
1
2
3
4
5

PLC

: .................................................................... 8-2
................................................ 8-4
.......................................................................... 8-4
.............................................................................. 8-6
............................................................ 8-6
, , ................................................................................. 8-8
....................................................................................... 8-8
"Force Variables" (" ") ......................... 8-10
............................................................................. 8-10
PLC ..................................................... 8-12
.................................................. 8-12
..................................................................................... 8-12
............................................................. 8-14
................................................................... 8-14
: .................................................................. 8-18
.................................................................... 8-20
...................................................... 8-22
- (BCD) ....................................... 8-22
- ........ 8-22
: ................................................................... 8-26
8. ................................................................................... 8-27
........................................................... 8-28

PLC

SIMATIC S5



.
,
.
(IW 2)
PLC (QW 6)
.

, PLC
/.
,
.

Siemens AG
Training Center

8-2/28

ST-S5SYS1

SIMATIC S5


()

QW 6
0 0 0 0
QB 6 QB 7
IW 0

QW 4

IW 2
0 0 0 0
IB 2

IB 3

8-3

Siemens AG
Training Center

8-3/28

ST-S5SYS1

PLC

SIMATIC S5


.
, , -
.
:

7248

7 + 2 + 4 + 8
7 * 103 + 2 * 102 + 4 * 101 + 8 * 100

(100 = 1)

10.
(10) ,
, ,
.

,
:
... + g * x6 + f * x5 + e * x4 + d * x3 + c * x2 + b * x1 + a * x0

PLC
0 1,
2.
:
7

... h * 2 + g * 2 + f * 2 + e * 2 + d * 2 + c * 2 + b * 2 + a * 2

(2 = 1);

h
: 0 1.
.

.
, .
, ,
3 4 ,
.
3 .

Siemens AG
Training Center

8-4/28

ST-S5SYS1

SIMATIC S5

10

10

...

104 103 102 101 100

7 x 1000 + 2 x 100 + 4 x 10 + 8 x 1

7 2 4 8

8-5a

10100110

1 * 27 + 0 * 26 + 1 * 25 + 0 * 24 + 0 * 23 + 1 * 22 + 1 * 21 + 0 * 20 =
1 * 128 + 0 * 64 + 1 * 32 + 0 * 16 + 0 * 8 + 1 * 4 + 1 * 2 + 0 * 1
128 +

0 +

32 +

0+

0+

4+

2+

=
= 166

8-5b

Siemens AG
Training Center

8-5/28

ST-S5SYS1

PLC

SIMATIC S5

4 ,
. 4
.
16 ,
10 ( 0 9), 10 15
: A, B, C, D, E F.

4 , "
( "" = 4).

16.

2 0 B 7 Hex

2 * 16

+ 0 * 16

+ 11 * 16

+ 7* 1

2 * 4096 + 0 * 256 + 11 * 16 + 7 * 1
8192

Siemens AG
Training Center

8-6/28

176

= 8375

ST-S5SYS1

SIMATIC S5


Bit:

0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1

0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1

0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F

8-7

Siemens AG
Training Center

8-7/28

ST-S5SYS1

PLC

, ,

SIMATIC S5

PLC
, 8 , , -
.
( ),
.
. ,
, , IB 0.
7
I 0.7 2 , I 0.6
6
- 2 .
, 8
0, 255.

. S5-115U ,
16 . 16 - 2 , 2
- .

Siemens AG
Training Center

, .
, ,
.
:
IW 0 IB 0 IB 1. IB 0 , IB 1 .
:
I 0.7 215,
I 1.7 27.

8-8/28

ST-S5SYS1

SIMATIC S5

15

...

0 15

...

IW 0

...

IW 2

0 7

...

0 7

IB 1

IB 0

0 7

IB 2

15

...

...

IB 3

...

IW 1

8-9

Siemens AG
Training Center

8-9/28

ST-S5SYS1

PLC

"Force Variables"
" "

SIMATIC S5

"Status Variable (" ") PG


, . PG
(PII, PIQ ) CPU.
"Force Variables" (" ")
PG,
. ,
(, )
CPU.
, , ,
'1' PIQ, (
).
,
,
.

"Status Variable
,
"Force Variables".
, , , ,
KM (
). ""
:
KM =

8
16 ( 8 16- ).
.

KH =

.
2-
.
4-
.

KF =

.
PG
.
,
. ,
. 215
(0 = , 1 =
). :

Siemens AG
Training Center

- 32768

+ 32767

8-10/28

ST-S5SYS1

SIMATIC S5

"Force Variables" ( )

PLC
:

IB

KM = 00000000

IB

KM = 10010110

IW

KM = 00000000 10010110

IW

KH = 0096

IW

KF = + 150
1184: Status processing active

8-11

Siemens AG
Training Center

8-11/28

ST-S5SYS1

PLC

SIMATIC S5

PLC
(Load)
(ransfer)

, ,
, ..
.
(Load) (ransfer). Load
Transfer ; ..
RLO.
Load
L IB L IW " "
" " (PII =
) 1.
PII "".
Load "
" " ",
, .
Transfer
T QB T QW
1 (PIQ =
).
" " " ",
. PIQ
"", .

("accu 1" "accu 2").


,
.
:
Load () - 1
Transfer () 1 -.
Load
1. 1
2.
Transfer 1
-.
.
1 ,
.
1 S5-115U 16 ,
2 1 .

Siemens AG
Training Center

8-12/28

ST-S5SYS1

PLC

SIMATIC S5

Load Transfer
Program

PII
IB 0

1 0 0 0 1 1 0 1

Load

:
:L IB 0
:T FY 2
:

L IB 0
IB 1
Accu 1

0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 1

T FY 2
FY 1
FY 2

Transfer

1 0 0 0 1 1 0 1

FY 3

8-13

Siemens AG
Training Center

8-13/28

ST-S5SYS1

PLC

SIMATIC S5

,

:
, "-F,
, "+F.
,
.

L (Load) T (Transfer)
1.
2 .
:
:L
:L
:-F
:T

FW
IW

2
0

FW

L FW 2
1 .
1 2.
L IW 0 1
IW 0 PII.
-F 1
2.
F ,
(FW 2 IW 0)
.
1.
2 ( S5-115U).
T FW 6
1 ( ) FW 6.

Siemens AG
Training Center

8-14/28

ST-S5SYS1

PLC

SIMATIC S5

****

:L FW

:L IW

2
????

:- F
:T FW

( : FW 6)
8-15

Siemens AG
Training Center

8-15/28

ST-S5SYS1

Siemens AG
Training Center

8-16/28

ST-S5SYS1

SIMATIC S5

Siemens AG
Training Center

8-17/28

ST-S5SYS1

SIMATIC S5

12
() PB 95
.

PB 95
Seg. 1
FW 2

:
-F

IW 0

FW 6

CSF, , - PB 95.
F1 : Editor STEP 5 block

Seg. 2
FW 6

QW 6

Edit
F1 Math F2 SUB .
or STL:
PB 95
Seg. 1
:L FW 2
:L IW 0
:-F
:T FW 6
:***
Seg. 2
:L FW 6
:T QW 6
:BE

Load/Transfer
F3 Shift F7 L/T
.

OB 1 PLC , PB 95.
F1 : Editor STEP 5 block (x) PLC

PB 95, IW 0
FW 2, FW 6.
2 QW 6.
IW 0,
.
FW 2, "Force Variables".

"Force Variables".
F8 : Test Force Variables

Siemens AG
Training Center

8-18/28

ST-S5SYS1

SIMATIC S5


VB 95.

IW 0

KM=

IW 0

KH=

IW 0

KF=

FW 2

KM=

FW 2

KH=

FW 2

KF=

FW 6

KH=

FW 6

KF=

QW 6

KH=

QW 6

KF=

36, , IW 0
.
"Force Variables",
FW 2 135. , ESC,
, .
KF+135 Insert .
PB 95 135 (FW 2) - 36 (IW 0)
FW 6. 2 FW 6
QW 6.
FW 6
?
FW 6:

KF =

KH =

KM =

QW 6?

--------------------------------------------------------------------------------------

Siemens AG
Training Center

8-19/28

ST-S5SYS1

SIMATIC S5

"Force Variables" PB 95 STL


"Block Status".
F6 : Test Block status ...

, "Status/ACCU 1 "ACCU 2.
?
............................
.

, ,
, IW 2 IW 0.
PB 95 , IW 0
IW 2 PB 95 PLC.
"Force Variables"
VB 95. IW 0 IW 2 .
, ,
ESC Insert .
0036 IW 2.
, "Force
Variables".
:
IW
FW
FW
QW

Siemens AG
Training Center

2:
2:
6:
6:

KF =
KF =
KF =
KF =

KH =
KH =
KH =
KH =

KM =

KM =

IW 2,
0063 QW 6?

-------------------------------------------------------------------------------------------------

8-20/28

ST-S5SYS1

Siemens AG
Training Center

8-21/28

ST-S5SYS1

PLC

SIMATIC S5

-
(BCD)

, ,
PLC ,
, .
. PLC
.
,
,
- (BCD).

.
,
9 ,
(1001).
.
,
.
:
STEP 5 , ,
,
- ( ""
"" , . 8 9).
,
, .
,
, (,
, . 9).


BCD-

Siemens AG
Training Center

KF , ,
BCD- KF. ,
BCD-, , KH-.

8-22/28

ST-S5SYS1

SIMATIC S5

- (BCD-)

0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F

0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1

0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1

0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1

BCD
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1

0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1

0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1

0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1

156,

BCD-:

0 1 5 6 ()

0000
0

0001
0

0101
9

0110
C

0000 0000 1001 1100


0000 0000 1001 1100
156

()

8-23

Siemens AG
Training Center

8-23/28

ST-S5SYS1

Siemens AG
Training Center

8-24/28

ST-S5SYS1

Siemens AG
Training Center

8-25/28

ST-S5SYS1

SIMATIC S5

12
1. .
FW 8, - FW 10 - FW 12.
FW 14.
1 PB 95
FW 8, FW 10 FW 12, "Force
Variables".
STL:

............... : ...............................................................................
............... : ...............................................................................
............... : ...............................................................................
............... : ...............................................................................
............... : ...............................................................................
............... : ...............................................................................
2. 264 PLC IW 2
,
"Status Variable ?
------------------------------------------------------------------------------------------- KF?
-------------------------------------------------------------------------------------------

, IW 2,
"Status Variable?
-------------------------------------------------------------------------------------------3.
IW 2:
0000 0001 0000 1000.
?
KF =

Siemens AG
Training Center

KH =

8-26/28

ST-S5SYS1

- 8

SIMATIC S5


:
-
.
-
.
- ,
.
,

.

.

,
-

(
). , ,
.

, - (BCD).

. , ,
PLC .
-
,
.

Siemens AG
Training Center

PG :
KM :
8- 16- .

.
KH :

BCD-.
KF :

.
PLC

,
Load Transfer.

- accu 1.

PLC

,
,

.


- accu 2.

"Force
Variables'

. ..,

CPU
.

8-27/28

ST-S5SYS1

SIMATIC S5

.
1.
2
.
.

.
KF.
"Force Variables".

.
.
BCD .

Siemens AG
Training Center

8-28/28

ST-S5SYS1

SIMATIC S5
1
2
3
4

9
1

: .............................................. 9-2
.................................................................................... 9-4
: .......... 9-8
.................................................................................. 9-12
............................................... 9-12
.................................................................. 9-14
......................................................... 9-14
............................................................................ 9-16
..................................................................... 9-18
......................................................................... 9-20
................................................................................. 9-20
........................................................................... 9-22
: .......................................................... 9-24
: ................................... 9-28
............................................................................... 9-32
..................................................... 9-32
.......................................................................... 9-32
.................................................................. 9-34
.................................... 9-34
............................... 9-34
: ........................................................ 9-36
9. .................................................................................. 9-37
........................................................... 9-38

SIMATIC S5



.
1 3 ,
4
.
, ,
().
,
.
4
I 8.4 .
QW 6
().
I 1.0 .

Siemens AG
Training Center

9-2/38

ST-S5SYS1

SIMATIC S5

:
()
I 0.7

QW 6

I 0.6

0 0 0 0

I 0.5

QB 6 QB 7
IW 2
0 0 0 0

I 1.0

IB 2

IB 3

I 8.0

I 8.4
9-3

Siemens AG
Training Center

9-3/38

ST-S5SYS1

SIMATIC S5

S5-115U 128 ( C0 C127).


CSF/LAD.
:

CU

Count Up ( ).
RLO 0 o 1 - 1.

CD

Count Down ( ).
RLO 1 o 0 - 1.

S
CV

Set counter ( ).
Counter Value ( )
RLO 0 o 1
S ,
CV.

Reset counter ( ).
RLO 1, 0.

BI

Binary count ( ).
.

DE

BCD count ( - ).
BCD .

Binary status of counter ( - ).


0 1
: 0 0,
1 1 ( 1 o 999).

Siemens AG
Training Center

9-4/38

ST-S5SYS1

SIMATIC S5

CSF-

STL

C 98
I 8.0

CU

I 8.4

CD

I 1.0

KC 5

CV

I 1.3

BI

FW 2

DE

QW 6

Q 5.4

A
CU
A
CD
A
L
S
A
R
L
T
LC
T
A
=

I
8.0
C 98
I
8.4
C 98
I 1.0
KC 5
C 98
I
1.3
C 98
C 98
FW 2
C 98
QW 6
C 98
Q
5.4

9-5

Siemens AG
Training Center

9-5/38

ST-S5SYS1

Siemens AG
Training Center

9-6/38

ST-S5SYS1

Siemens AG
Training Center

9-7/38

ST-S5SYS1

SIMATIC S5

13

,
.
PB 98 -.
CSF
C 98
I 8.0

CU

I 8.4

CD
S
CV

I 1.3

BI
DE
Q

STL

:AN
:CU
:A
:CD
:NOP
:NOP
:A
:R
:NOP
:LC
:T
:A
:=

I
8.0
C 98
I
8.4
C 98
0
0
I
1.3
C 98
0
C 98
QW 6
C 98
Q 5.4

Siemens AG
Training Center

CSF STL
PB 98 .
F5 Bin Oper . F2 CU
Count Up CSF.
QW 6
=

Q 5.4

CSF:
.
Del,
, .

PB 98
- "Block Status".
.
Q
Q 5.4. Q
?

0 ,

---------------------------------------------------------------------------

1 ,

---------------------------------------------------------------------------

9-8/38

ST-S5SYS1

SIMATIC S5

"S" "CV"
.
(
1
) Q 1 0,
.
, , ,
.
1
.
:
PB 98 STL.
PB 98, .
:

PB 98 (new)
:AN
:CD
:A
:CU
:A
:L
:S
:A
:R
:NOP
:LC
:T
:A
:=

I
8.0
C 98
I
8.4
C 98
I 1.0
KC 10
C 98
I
1.3
C 98
0
C 98
QW 6
C 98
Q 5.5

Delete

1
End

1.0

KC 10

99

:
":" , <Del>

: ,

"Vertical Expand F7 Extras, - F7 Vert exp

NOP 0.
,
PG, STL CSF.
C 98
I 8.0

CD

I 8.4
I 1.0
KC10

CU
S
CV

BI

I 1.3

DE
Q

"Block Status".
CSF STL.

Siemens AG
Training Center

, - "Block Status",
:

QW 6
=

Q 5.5

.
, .

9-9/38

ST-S5SYS1

Siemens AG
Training Center

9-10/38

ST-S5SYS1

Siemens AG
Training Center

9-11/38

ST-S5SYS1

SIMATIC S5

. S5-115U 16 (
) (C 0 ... 127).
. ,
98 (C 98)
: Count Up C 98 (CU C 98).
, RLO 0 o 1
( ) .
Count
Down (CD C 98).
0, : 999.
- L
(Load),
( ).
: L C 98 (Load Counter 98),
1 .

;
.

Siemens AG
Training Center

9-12/38

ST-S5SYS1

SIMATIC S5

(Load Transfer)



( )

98

SL:

PB 98
:AN
:CU
:A
:CD
:L
:T

I
C
I
C
C
FW

8.0
98
8.4
98
98
8

L C 98
C 127

Accu 1

FW 0
FY 8

FY 9

T FW 8

FW 8

FW 14

9-13

Siemens AG
Training Center

9-13/38

ST-S5SYS1

SIMATIC S5

,
LAD CSF.
S5-115U 128 ( C0
C127). (16 )
. 0 999
, , "Status Variable".
:
Count Up (CU) ( )
1.
, (RLO)
CU 0 1.
999, .
.
Count Down (CD) ( )

1. , (RLO)
CU 0 1.
0, (
).

CU CD.

Siemens AG
Training Center

9-14/38

ST-S5SYS1

SIMATIC S5

CSF-
C 98

CU

I 8.0

CU

CD

I 8.4

CD

I 1.0

KC 5

CV

I 1.3

S
BI

FW 2

DE

QW 6

R
Q
Q 5.4

9-15

Siemens AG
Training Center

9-15/38

ST-S5SYS1

Siemens AG
Training Center

SIMATIC S5

(S) (CV)
Set '0' '1'
, CV.
RLO 0 1
1 0, .
,
( 0 1) Set.

Counter Value (CV) ( )


:
-
(Constant)
KC
0 ... 999
-
(Input word)
IW
...
-
(Output word) QW
...
-
(Flag word)
FW
...
-
(Data word)
DW
...
, (IW,
QW, FW, DW), BCD-, KC.

Reset counter (R) ( )


RLO Reset 1,
'0'. RLO Reset 1, :
. Reset
, ,
.

9-16/38

ST-S5SYS1

SIMATIC S5

C 98

I 8.0

CU

I 8.4

CD

I 1.0


BCD- (, 125)
0 0 0 0

0 0 0 1 0

10

, RLO = 1

0 1 0 0
10

KC 125

CV

1 0 1

BI

FW 2

DE

QW 6

100

I 1.3

Q 5.5

9-17

Siemens AG
Training Center

9-17/38

ST-S5SYS1

SIMATIC S5

(BI)

, .. ,
PLC.
STL :
L C 98 ( 98)
- (DE)

, ,
BCD-. ,
CV .
STL :
L C C 98 ( 98 BCD)


A C 98
:
0
1 999

= 0
= 1

RLO.
RLO

(Q, F).
:
A C ...
AN C ...
O C ...
ON C ...

Siemens AG
Training Center

, ,
.
,
(CU CD).
, STL, CSF LAD-,
NOP 0 ( ).

9-18/38

ST-S5SYS1

SIMATIC S5


C 98
I 8.0

CU

I 8.4

CD

I 1.2

KC 5

CV

, , 125
BI

FW 2

DE

QW 6

0 0 0

0 0 0 0

0 0 0 0
10 2

1 1 0 1

BCD-, , 125
0 0 0

I 1.3

0 0 1 1 1

1 0 0 1 0
10 1

0 1 0 1
10 0

Q 5.4
> 0 Q = 1
= 0 Q = 0
9-19

Siemens AG
Training Center

9-19/38

ST-S5SYS1

SIMATIC S5

,
. ,

, (CU)
:
AN
CD
A
CU

I
8.0
C 98
I
8.4
C 98

(CD)
:
A
CU
AN
CD

I
8.4
C 98
I
8.0
C 98

,
0 999:
,
;
,
.

Siemens AG
Training Center

.
PLC ,
.
PLC,
. S5-115U
C 0 C 63 (
DB 1), CPU
RE .

9-20/38

ST-S5SYS1

SIMATIC S5

C 98

0 ... 500 ... 999

C 98

0 ... 500 ... 999

CU

1 ... 501 ... 999

CD

0 ... 499 ... 998

CD

0 ... 500 ... 998

CU

1 ... 500 ... 999

9-21

Siemens AG
Training Center

9-21/38

ST-S5SYS1

SIMATIC S5


,
, . ,
,
.
RLO:
,
,

RLO = 1
RLO = 0



,

,

!=
><
>=
>
<=
<


,
2 1.
.
(RLO),
,
.

C 1 C 2
.
.
, , .

KC 10

KF +10

BCD-

Siemens AG
Training Center

9-22/38

ST-S5SYS1

SIMATIC S5

CSF-

SL-
1

xxxx
C 98

<= F

KF +10

Q 5.4

L C 98

1.

L KF +10

2.

????
xxxx
1.

<= F
= Q

5.4

2
1 (C98)
1 (C98)

Siemens AG
Training Center

RLO

1/0

< =

>

2 (KF +10)

RLO = 1

2 (KF +10)

RLO = 0

9-23

9-23/38

ST-S5SYS1

SIMATIC S5


PB 98

,
:
1.

2. 7-
(QW 6).
PB 8 .
I 1.0
'0'
. , IW 2,
Q 5.4.
.

BCD- .

, , ('0' = , '1' = ). '1' , ,
- , 8000
.
, , 8000 2 (IW 2),
QW 6 0 0 1 0 BCD ,
, 8000
.

IW 2
KH

QW 6
8

KM 1000 0000 0000 0000 , 0000 0000 0001 0000


KF

Siemens AG
Training Center

-32768

9-24/38

KF +16

ST-S5SYS1

SIMATIC S5

PB 8
PB 8

C:SYS1A@ST.S5D

Edge evaluation at light barrier ( )

Segment 1
I 8.0

&

F 60.4

F 60.4

# F 60.3

I 8.0

Count parts ( )

Segment 2

F 60.3

LEN=45

&

C8

Q 5.4

CU
I 8.4

CD
S

Q 4.3

CV BI
DE

>=1

I 1.0

Segment 3
QW 6

Required No. of parts reached ? ( ?)


>

IW 2

F
Q

&

Q 4.3

Q 5.4

START/STOP conveyor motor (/ )

Segment 4
I 1.0

QW 6

&

Q 4.3

Q 5.5
S

Q 5.4

>=1

Q 4.3

BE:
9-25

Siemens AG
Training Center

9-25/38

ST-S5SYS1

Siemens AG
Training Center

9-26/38

ST-S5SYS1

Siemens AG
Training Center

9-27/38

ST-S5SYS1

SIMATIC S5

14
PB 6 PB
8,
.
"Edge Evaluation" (F 60.3)
( C8),
( LB 1)
1 PB 6 1 PB 8.
NW 1 PB 6 .
F1 : Editor STEP 5 block (x) Program file
F5
F4 File .

Seg Fct

()
.
PB 6, Esc.
PB 8 .
1 PB 8
. .
PB 8 .
F1 : Editor STEP5 block (x) Program file

PB 8 , PG
- Edit. ,
- Output.
0
Ins

Insert PG: "Yes"


().
PG Output ( ).
F5
F5 Insert .

Siemens AG
Training Center

9-28/38

Seg Fct

ST-S5SYS1

SIMATIC S5

PG 3 :
F1

New

F2

Buffer

F3 From Seg :

,
.

F2 Buffer .
2 F2 +1
PB 8!
F5 Compare .
: CSF- .
OB 1,
PB 6,
PB 8. OB 1 :
PB 1
PB 4
PB 5 , 1 3
PB 8
PB 8 OB 1 PLC
F5 : File Blocks Transfer
PB 8 .

( IW 2)?
, PB 8!
:


(>, <, <= ..),
.

, 3 PB 8
- "Block Status".
, -.
, 9!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Siemens AG
Training Center

9-29/38

ST-S5SYS1

SIMATIC S5

.

?

(F 40.1)
PB 6, 3.
PB 8 5.
:
PB 6 .
F1 : Editor STEP 5 block ... (x) Program file
3 "Conveyor Motor" ( ).
3 F5 Seg Fct F4 File.
PB 6, ESC.
PB 8
.
F5 Seg Fct
F6 Append .

F2 Buffer .
F 60.1 F 80.1.
Q 5.5 4 "START/STOP Conveyor
Motor" (/ ) F 80.1.

.

Siemens AG
Training Center

9-30/38

ST-S5SYS1

Siemens AG
Training Center

9-31/38

ST-S5SYS1

SIMATIC S5

Editor
(Output) - "Block Status".
F5 Seg Fct . ,
PG
.
, ,
<SHIFT + >.

F1

-1

F2

+1

,
.
(Output) Editor

(F5 Seg Fct
F4 Delete).

F11

Siemens AG
Training Center

9-32/38

ST-S5SYS1

SIMATIC S5


F Addresses F Lib No

F Symb. SYM F

F -> STL

F Seg Com

F Save

F Help

3 Search

5 Seg Fct.

6 Edit

7 Enter

8 Cancel

F Delete

F Help

4 File

5 Insert

6 Append

8 Return

F Help

3 From Seg

8 Return

Disp Symb. 2 Reference

F5: Seg Fct


F
1

F
-1

+1

F5: Insert or F6: Append


F
1

F
New

Buffer

9-33

Siemens AG
Training Center

9-33/38

ST-S5SYS1

"File"

F4 File

SIMATIC S5

""
. ,
"File", .

PUFFERNW.INI
.

F1 Insert

F1 New

F11

F2

, .

Buffer

, .
.

F3 From Seg

F6 Append

F1

Enter

New
.

F2

Buffer

, .

F3 From Seg

Siemens AG
Training Center

, .
.

9-34/38

ST-S5SYS1

Siemens AG
Training Center

9-35/38

ST-S5SYS1

SIMATIC S5

PB 8
(C9).
.
,
, 20 ,
13
,
.
,
.
I 1.7.

Siemens AG
Training Center

9-36/38

ST-S5SYS1

- 9

SIMATIC S5

STEP 5


. - 0
999.

.
:


. 1 2,

.

(
)
- RLO.

,
, '0'.

- (BCD)
.
.

Siemens AG
Training Center

9-37/38

ST-S5SYS1

SIMATIC S5


.
.
1 " "

.
.
: L C 100.

.

.
.
.

Siemens AG
Training Center

9-38/38

ST-S5SYS1

SIMATIC S5
1

10

: ......... 10-2
..................................................................... 10-4
............................................................... 10-4
............................................................................... 10-4
NOP 0 .............................................................................. 10-4
............................................................... 10-8
: ......................................... 10-8
............................................................. 10-12
"" (SP) ............................................................................... 10-12
" " (SE) ....................................................... 10-12
" " (SD)........................................................... 10-14
" " (SS) ......................................... 10-14
" " (SF) ........................................................ 10-16
............................................................................. 10-18
............................................................................................. 10-18
......................................................................................... 10-20
.......................................................................................... 10-22
............................................................................... 10-22
......................................................................... 10-24
..................................................................... 10-24
............................................................................ 10-25
......................................................... 10-26
.................................................................................... 10-27
: .............................................. 10-28
:
......................
................................. 10-32
...................... 10-32
................................ 10-33
BEC, BEU BE ............................................... 10-38
:
................................... 10-42
: ................................... 10-44
10. .............................................................................. 10-45
......................................................... 10-46

SIMATIC S5


:
,
.
,
(), ,
( 5 ).
.

.
PLC .

Siemens AG
Training Center

10-2/46

ST-S5SYS1

SIMATIC S5

T=5s

10-3

Siemens AG
Training Center

10-3/46

ST-S5SYS1

SIMATIC S5


STEP 5 . Start
( 5 )
, ( T 97)
CPU (
0.1 ).
.
SIMATIC S5
(, S5-115U 128 , T 0 T 127),

(16 ).
:

, Start (RLO
0 1).
,
A I
0.5

L
KT 50.1
.
SP T 97
Reset () (RLO=1)
.
A I
0.1

R T 97
T 97 .

BI DE

"accumulator 1"
BCD- .

L
T
LC
T


A
Q. ,
. ,
=
T 97 1
"".

NOP 0

Siemens AG
Training Center

T
FW
T
QW

97
8
97
6

97

4.1

.
, .
, STL,
LAD CSF, ""
NOP 0 .

10-4/46

ST-S5SYS1

SIMATIC S5

STL ():

CSF:

STL ()
:

T 97
A

0.5

L KT 050.1
SP T
97

A
R

I
T

0.1
97

I 0.5
KT 050.1

I 0.1

1
TV

BI

FW 8

L
T

DE

QW 6

LC T
97
T QW 6

Q 4.1

A
=

T
97
FW 8

T
Q

97
4.1

10-5

Siemens AG
Training Center

10-5/46

ST-S5SYS1

Siemens AG
Training Center

10-6/46

ST-S5SYS1

Siemens AG
Training Center

10-7/46

ST-S5SYS1

SIMATIC S5

15

,
, .
(PB 97).
Q 4.1.
:
"" (SP) PB
97. F5 Bin Oper.
PB 97,
.
OB 1 :
: JU PB 97
: BEU
: JU PB 1

.
.
.
: JU PB 8
: BE
BEU , BE,
.. , .
, BE
, BEU
, , , .
, ,
.

. ,

.

Siemens AG
Training Center

10-8/46

ST-S5SYS1

SIMATIC S5

Pulse (SP)
:

5 PB 97
- "Block Status"
.

T 97
I 0.5

KT 050.1

TV

I 0.1

I 0.5
BI
DE
Q

I 0.1
QW6
Q 4.1
: BE

Q 4.1
5

- "Block
Status" . Edit,
.
F5 Bin Oper .

Extended Pulse (SE)


:
T 97
I 0.5

KT 050.1

TV

I 0.1

I 0.5
V

I 0.1
BI
DE
Q

QW6
Q 4.1
: BE

Q 4.1

ON Delay (SD)
:

T 97
I 0.5

KT 050.1

TV

I 0.1

I 0.5

0
BI
DE
Q

Siemens AG
Training Center

I 0.1
QW6
Q 4.1
: BE

Q 4.1

10-9/46

ST-S5SYS1

SIMATIC S5

Stored ON Delay (SS)


:

T 97
I 0.5

KT 050.1

TV

I 0.1

I 0.5

S
BI
DE
Q

I 0.1
QW6
Q 4.1
: BE

Q 4.1

OFF Delay (SF)


:

I 0.5

T 97
I 0.5

KT 050.1

TW BI
DE
R
Q

I 0.1

Siemens AG
Training Center

I 0.1
QW6
Q 4.1
: BE

Q 4.1

10-10/46

ST-S5SYS1

Siemens AG
Training Center

10-11/46

ST-S5SYS1

SIMATIC S5

. SIMATIC
S5 :

SP
()

( 0) (1).
'1',
Start ().
'0' :
- (2)
- Start () 0 (3)
- Reset () 1 (4).

SE
( )

( 0) (1).
'1',
Start ().
'0' :
- (2)
- Reset () 1 (3).
Start '0'
( ):
! (4)
Start
'0' '1',
(" ") (5).

Siemens AG
Training Center

10-12/46

ST-S5SYS1

SIMATIC S5

: "" " "


SP = Pulse ("")
T 97
I 0.5

KT 050.1

TV

I 0.1

BI
DE
Q

Q 4.1
:BE

:A
:L
:SP
:A
:R
:A
:=

I
KT
T
I
T
T
Q

0.5
050.1
97
0.1
97
97
4.1

I 0.5
I 0.1
(1)

(2)

(3)

(2)

(3)

(4)

Q 4.1
T

SE = Extended Pulse (" ")


T 97
I 0.5

KT 050.1

TV

BI
DE

I 0.1

Q 4.1
:BE

:A
:L
:SE
:A
:R
:A
:=

I
KT
T
I
T
T
Q

0.5
050.1
97
0.1
97
97
4.1

I 0.5
I 0.1
(1)

(4)

(5)

Q 4.1
T

10-13

Siemens AG
Training Center

10-13/46

ST-S5SYS1

SD
( )

SIMATIC S5

0 (1).
Start
, .. ,

'1' (
:
- Start ;
- Reset
).
, Start
Q .
'0' :
- Start () 0 (2)
- Reset () 1 (3).
, Start 0 (
.).
Start 0 1,
. ,
(4).
Reset 1,
'0' (4). ,
Reset '0' (

Start).

SS
(
)

0 (1).
Start
, .. ,

'1' ( ,
SD,
Start
,
(2).
'0' 1
Reset () (3).
Start
'0' '1',
(" ") (4).

Siemens AG
Training Center

10-14/46

ST-S5SYS1

SIMATIC S5

:
" " " "
SD = ON Delay ( )
T 97
I 0.5

KT 050.1

TV

I 0.1

0
BI
DE
Q

Q 4.1
:BE

:A
:L
:SD
:A
:R
:A
:=

I
KT
T
I
T
T
Q

0.5
050.1
97
0.1
97
97
4.1

I 0.5
I 0.1
(1)

(2)

(3)

(4)

(2) (3)

(4)

(4)

Q 4.1
T

SS = Stored ON Delay ( )
T 97
I 0.5

KT 050.1

TV

I 0.1

S
BI
DE
Q

Q 4.1
:BE

:A
:L
:SS
:A
:R
:A
:=

I
KT
T
I
T
T
Q

0.5
050.1
97
0.1
97
97
4.1

I 0.5
I 0.1
(1) (3)

(3)

Q 4.1
T

10-15

Siemens AG
Training Center

10-15/46

ST-S5SYS1

SF
( )

SIMATIC S5

0 (1).
Start RLO '1',
Q '1' (1).
, Start
1 0 ( ).
1, (2).
, Start 0
.
0 :
- Reset 1 (3);
- (2).

,
,
Reset 1

Q (4) '1'.
Start Reset 1,
'1' ,
Reset 0 (5). ,
, Start
, .. 1 0.

Siemens AG
Training Center

10-16/46

ST-S5SYS1

SIMATIC S5

: " "
SF = OFF Delay ( )
T 97
I 0.5

KT 050.1

TV

BI
DE

I 0.1

Q 4.1
:BE

:A
:L
:SF
:A
:R
:A
:=

I
KT
T
I
T
T
Q

0.5
050.1
97
0.1
97
97
4.1

I 0.5
I 0.1
(1)

(2)

(3)

(4)

(5)

Q 4.1
T

10-17

Siemens AG
Training Center

10-17/46

ST-S5SYS1

SIMATIC S5


. TV

- (KT 432.1);
-
IW 2;
, , ,
.
`
3 (BCD) ( 1 999). `
16 , 12 ,
( 0 11). 12 13
` ( - 0 3), 14 15 .

Start
,
, .
(
) "0"
.

.

Siemens AG
Training Center

10-18/46

ST-S5SYS1

SIMATIC S5


T 97

--

KT
IW
QW
FW
DW

01 0100 0011 0010


10 2

10 1

10 0

432.1
2
126
254
255

TV
R

BI
DE
Q

432 x 0.1 s = 43.2 s

0 ... 999 (BCD )



0 : 0.01 s
1 : 0.1 s
2:1s
3 : 10 s

10-19

Siemens AG
Training Center

10-19/46

ST-S5SYS1

SIMATIC S5

.
:
5
:
KT
KT
KT

005.2
050.1
500.0

,
( KT 500.0).

. ,

.

, .
.
:
KT 500.1
KT 050.2
KT 005.3

500 x 0.1 s
50 x 1 s
5 x 10 s

:
49.9 s . . . 50 s
49 s . . . 50 s
40 s . . . 50 s

:
max
0.1 s
max. 1 s
max. 10 s

,
, .

Siemens AG
Training Center

10-20/46

ST-S5SYS1

SIMATIC S5


( = 2 x 1 )

KT 002.2
= 1

min

( = 20 x 0,1 )

KT 020.1
= 19

...

10 9

2 1

min

10-21

Siemens AG
Training Center

10-21/46

ST-S5SYS1

SIMATIC S5


(data word: DW) , (flag
word: FW) (output word: QW)
.
(BI)
BI .
L T xx.
( 12 15) ,
. KF , , .
STL : L T
(Load Timer ).
BCD- (DE)
DE
BCD- LC T xx (Load
Coded "" ).
14 15,
. BCD-
,
.
KH-
"Status Variable".
KT-
.
Q
14 15 ,
, ,
: ,
.
RLO
A T AN T O T ON T.
, ( 0)
, ,
.
.
.
,
, .
.
, Q .
,
.

Siemens AG
Training Center

. ,
PLC STOP
, ,
,
PLC .
S5-115U T 0 T 63
RE/NR.

10-22/46

ST-S5SYS1

SIMATIC S5


15 14 13 12


:
15 14 13 12

L
T

T
FW

(BCD):

97
8
...

15 14 13 12

T 97

T 97

L T 97

LC T 97
9

...

ACCU 0 0 0 0 0 0
T FW 8

97
6

...

13 12 11

ACCU

LC T
T QW

BCD

...

0 0

T QW 6
15

...

QW 6

FW 8 0 0 0 0 0 0

10-23

Siemens AG
Training Center

10-23/46

ST-S5SYS1

SIMATIC S5



3 .
.
?

PB 13:
T 13

TV
Q

1-
2-
3-

Siemens AG
Training Center

I 1.0
I 1.1
I 1.2

Q 4.0

Q 4.1

Q 4.2

10-24/46

Q 4.0
Q 4.1
Q 4.2

ST-S5SYS1

SIMATIC S5

(I 8.1- ,
I 8.4- ) ,
(T14, T15 = 10 )
, ,
.


.
,
.

?

,
( .)
.

I 8.1
Q 5.5

I 8.4
Q 5.6

PB 14:
&

T 14

TV
R

&

Q 5.5

Q 5.6

T 15

TV

Siemens AG
Training Center

10-25/46

ST-S5SYS1


()

SIMATIC S5

(, )
Set Reset,
.
,
, .
, ,
,
"" .
- "".
Q 4.3
.

P
Q 4.4

I 1.3

Q 4.3


I 1.3
T

T 16

PB 15:
I 1.3

&

Q 4.3

T 16
TV
Q

T 16

Siemens AG
Training Center

&

10-26/46

Q 4.4

ST-S5SYS1

SIMATIC S5

,
.

(2 ). ?

I 1.4

Q 5.1

L Q 5.0


I 1.4
Q 5.0

Q 5.1

PB 15:
I 1.4

&

Q 5.1

T 17
TV
Q

Siemens AG
Training Center

10-27/46

Q 5.0

ST-S5SYS1

SIMATIC S5

.

.
.

Siemens AG
Training Center

10-28/46

ST-S5SYS1

SIMATIC S5

Q 5.5

Q 5.4

Q 5.5

Q 5.4

Siemens AG
Training Center

10-29

10-29/46

ST-S5SYS1

Siemens AG
Training Center

10-30/46

ST-S5SYS1

Siemens AG
Training Center

10-31/46

ST-S5SYS1

SIMATIC S5


, PB 97.
:
1) 2
2) .

I 0.7.
2 Q 5.0
I 0.7.
CSF.

PB 97

Segment 1

Segment 2

T 98

T 97
&
TV
R

Q 5.0

I 0.7
Q 5.0
2

a*

b*


1 2 PB 97.
.
OB 1 PB 97
.
,
a* b*. ,
.

Siemens AG
Training Center

10-32/46

ST-S5SYS1

SIMATIC S5


.
,

.
.
,
,
.

DIN


PB 97

Segment 3

T 99
2 Hz

Q5.4

F 99.1

KT 025.0

TW

F 99.1

Segment 4
:A

99.1

: AN

5.4

:=

5.4

: BEC

: BE


3 4 PB 97 .
:
(KT ... ),
IW 2. , IW 2
.

Siemens AG
Training Center

10-33/46

ST-S5SYS1

SIMATIC S5

,
.
PB
97, 3 ( Q 5.4), I 1.1.
.

Siemens AG
Training Center

10-34/46

ST-S5SYS1

Siemens AG
Training Center

10-35/46

ST-S5SYS1

SIMATIC S5

, F 99.1
'0'. . F 99.1
2. BEC (Block End Conditional
)
, RLO 1.
,
.
.
2 .

=
( = 1

+ 1

= 2
)

,
T.
TV.

, (, F
99.2), ,
.
BEC 4 PB 97
,
. , BEC,
, F 99.1 "0".

Siemens AG
Training Center

10-36/46

ST-S5SYS1

SIMATIC S5

PB 9

RLO

Segment 3
:AN
:L
:SE
:A
:=
:***

STATUS

y
RLO

STATUS

z
RLO

STATUS

F 99.1
KT 025.0
T 99
T 99
F 99.1

Segment 4
:A
F
:BEC
:AN Q
:=
Q
:BE

99.1
5.4
5.4

T 99
F 99.1
Q

5.4
10-37

Siemens AG
Training Center

10-37/46

ST-S5SYS1


BEC, BEU BE

SIMATIC S5

BE, BEC BEU "" .


BE BEU .
BE .
BEU ,
. BEU, ,
, ,
,
.
BEC
, , .. RLO "1".

Siemens AG
Training Center

10-38/46

ST-S5SYS1

SIMATIC S5

BEC, BEU BE
PB1
:
:A
:BEC
:
:
:BE

OB 1

:
:
:JU
:A
:JC
:
:BEU
:
:JU
:
:BE

PB
I
PB

PB

1
0.7
2

I 0.6



I 0.6 = 0

PB2
:
:
:
:
:
:BE


I 0.7 = 1

PB3
:
:
:
:
:
:BE

10-39

Siemens AG
Training Center

10-39/46

ST-S5SYS1

Siemens AG
Training Center

10-40/46

ST-S5SYS1

Siemens AG
Training Center

10-41/46

ST-S5SYS1

SIMATIC S5

14
1.
PB 9
.
Q 5.4 , :
- 2
,
-
.
:
a) (, ),
, ?
b) ( , )
?

?
a) --------------------------------------------------------------------------------------

------------------------------------------------------------------------------------- b) --------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------


4 5 PB 97.
PB 9
.
:

Siemens AG
Training Center

PB 9 ,
Edit,
.
,
Insert , Output.

10-42/46

ST-S5SYS1

SIMATIC S5

PB 9 .
OB 1 :

Siemens AG
Training Center

: JU

PB 1

Operating modes ( )

: JU

PB 4

Jog conveyor MANUAL ( )

: JU

PB 5

Indicator lights ()

: JU

PB 8

Count parts ( )

: JU

PB 9

Flashing signal ( )

10-43/46

ST-S5SYS1

:
SIMATIC S5



. Explorer
Windows'95.

STEP 5. .
:
.
"Copy DOS File" ( DOS-).
File
DOS file
Copy ...
, "Dest file"
("Select file") <Select F3>.
A "Dr/directory"
, <Enter>.

SYS1A@ST.S5D "Source dr/dir" "Source files"
, <Copy>.

:
!

Explorer Windows'95:

Explorer Start- Windows'95.


"My Computer"
("All Folders"), "3 Floppy (A)"
("Contents of 'My Computer' ")
.

Siemens AG
Training Center

10-44/46

ST-S5SYS1

- 10

SIMATIC S5

.
STEP 5
.

BE,
,
: BEU BEC.

Siemens AG
Training Center

BEU , BE.

,
.
BEC RLO=1.
.

10-45/46

ST-S5SYS1

SIMATIC S5

10

.
.
.
CSF.
.

.



.
.

Siemens AG
Training Center

10-46/46

ST-S5SYS1

Вам также может понравиться