Siemens SIMATIC S5 Manual page 122

Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

STEP 5 Operations
Loading a count as input, output, flag, or data word
Load statement:
The count 410 is stored in data word DW 3 in BCD code.
Bits 12 to 15 are insignificant for the count.
15
11
0 1 0 0
Scanning the counter
Use Boolean logic operations to scan the counter status (e.g., A Cx). As long as the count is not
zero, the scan result is signal state "1".
Outputting the current counter status
You can use a load operation to put the current counter status into ACCUM 1 and process it
further from there. The "Load in BCD" operation outputs a digital display ( Figure 3-5).
L Z2
indicates bit positions occupied by "0".
3-26
L
DW
3
0 0 0 1
Three-digit count
(in BCD code)
Current Counter Status in C2
ACCUM 1
Binary count
Figure 3-5. Outputting the Current Counter Status
0
Bit
0 0 0 0
DW 3
Three-digit count in
S5-115F Manual
LC Z2
BCD code
EWA 4NEB 811 6149-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5-115f

Table of Contents