Siemens Simatic S5 IP 240 Manual page 367

Counter/positioning/position decoder module
Hide thumbs Also See for Simatic S5 IP 240:
Table of Contents

Advertisement

The following interrupt settings are required in the CPU:
Settings on the
"Counting" mode:
IP 240
S1
S2
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
off
on
off
on
Blocks
For the programming example, the data block DB 172 "C_data" is used. It
has the same format as the corresponding standard data block. The data nec-
essary for the example has also been entered.
The following blocks are used:
OB 1
OB 40
OB 100
DB 172
FC 171
FC 172
IP 240
EWA 4NEB 811 6120-02b
IP 240 Counter, Position Decoder and Positioning Module
Process interrupt:
OB 40,
Interrupt:
I1 (S5 assignment: IA)
S3
1
1
2
2
3
3
4
4
off
on
off
=
required switch setting
S1: No process interrupts via IB 0
S2: Interrupt circuit A, I/O area P
S3: I/O address 0
S4: Sensor signals asymmetrical
S5: Sensor signals +24 V (channel 1)
S6: Sensor signals + 24 V (channel 2)
Block
Name
Cycle
Cyclic program processing
Interrupt
Interrupt processing
Start-up
Start-up processing for restart
C_data
Data block for counting
STRU_DOS
Configuring block
STEU_DOS
Control block
S4
S5
1
1
2
2
3
3
4
4
on
off
on
Purpose
S6
off
on
C-15

Advertisement

Table of Contents
loading

Table of Contents