STEP 5 Operations
S5-100U
The following examples show how to work with timer and counter operations:
Example 1:
:AN
I
0.0
:A
I
0.1
:L
KT
5.2
:SF
T
5
:A
I 0.0
:AN
I
0.1
:L
KT
5.2
:SS
T
6
:A
T
5
:O
T
6
:=
Q
1.0
:A
I
0.2
:R
T
5
:R
T
6
:BE
Program in Function Block (FB32)
:AN
=I 5
:A
=I 6
:L
KT
005.2
:SFD
=TIM5
:A
=I 5
:AN
=I 6
:L
KT
005.2
:SSU
=TIM6
:A
=TIM5
:O
=TIM6
:=
=OFF6
:A
I
0.2
:RD
=TIM5
:RD
=TIM6
:BE
:JU
FB 32
NAME
:TIME
I 5
:
I 0.0
I 6
:
I 0.1
TIM5
:
T 5
TIM6
:
T 6
OFF6
:
Q 1.0
:BE
Function Block Call
Executed Program
Example 2:
:A
I
0.0
:L
KC
017
:S
C
5
:A
I 0.1
:CU
C
5
:A
I
0.2
:CD
C
5
:A
C
5
:=
Q
1.0
:A
I
0.3
:R
C
5
:BE
Program in Function Block (FB33)
:A
=I 2
:L
KC
017
:SEC
=CNT5
:A
=I 3
:SSU
=CNT5
:A
=I 4
:SFD
=CNT5
:A
=CNT5
:=
=OFF3
:A
I
0.3
:RD
=CNT5
:BE
:JU
FB 33
NAME
:COUNT
I2
:
I 0.0
I3
:
I 0.1
I4
:
I 0.2
CNT5
:
C 5
OFF3
:
Q 1.0
:BE
Function Block Call
Executed Program
8-62
EWA 4NEB 812 6120-02b
Summary of Contents for SIMATIC S5-100U
Page 6: ...EWA 4NEB 812 6120 02b ...
Page 16: ...EWA 4NEB 812 6120 02b ...
Page 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Page 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Page 23: ......
Page 27: ......
Page 36: ...EWA 4NEB 812 6120 02b ...
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 102: ...EWA 4NEB 812 6120 02b ...
Page 156: ...EWA 4NEB 812 6120 02b ...
Page 232: ...EWA 4NEB 812 6120 02b ...
Page 268: ...EWA 4NEB 812 6120 02b ...
Page 272: ...EWA 4NEB 812 6120 02b ...
Page 336: ...EWA 4NEB 812 6120 02b ...
Page 352: ...EWA 4NEB 812 6120 02b ...
Page 412: ...EWA 4NEB 812 6120 02b ...
Page 482: ...EWA 4NEB 812 6120 02b ...
Page 484: ...EWA 4NEB 812 6120 02b ...
Page 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Page 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Page 516: ...EWA 4NEB 812 6120 02b ...
Page 522: ...EWA 4NEB 812 6120 02b ...
Page 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Page 524: ...EWA 4NEB 812 6120 02b ...
Page 530: ...EWA 4NEB 812 6120 02b ...
Page 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Page 532: ...EWA 4NEB 812 6120 02b ...
Page 534: ...EWA 4NEB 812 6120 02b ...
Page 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Page 536: ...EWA 4NEB 812 6120 02b ...
Page 542: ...EWA 4NEB 812 6120 02b ...
Page 543: ...Index EWA 4NEB 812 6120 02b ...
Page 544: ...EWA 4NEB 812 6120 02b ...
Page 550: ...EWA 4NEB 812 6120 02b ...