Modifying The Program; Number Representation - Siemens SIMATIC S5 Manual

Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Introduction to STEP 5
2.4

Modifying the Program

Note
The program can only be modified in Test mode!
You can modify the program while the PLC is in the STOP mode, regardless of block type, with the
following programmer functions:
"INPUT"
"DISPLAY"
"STATUS" ( 4.1.1)
With the above functions, you can make the following changes:
Insert, delete, or overwrite statements
Insert or delete segments
2.5

Number Representation

With STEP 5 you can work with numbers in the following representations:
decimal numbers from -32768 to +32767 (KF)
hexadecimal numbers from 0000 to FFFF (KH)
16-bit fixed-point binary numbers from 00000000 00000000 to 11111111 11111111
BCD-coded numbers (4 tetrads) from 0000 to 9999
bit patterns (KM)
The S5-115F represents all numbers internally as 16-bit binary numbers or as bit patterns. Negative
values are represented by their two's complement.
Word No.
Byte No.
Bit No.
Significance
Figure 2-10. Bit Assignment of a 16-Bit Fixed-Point Binary Number
The following table contains two examples of number representation in the PLC:
Table 2-5. Examples of Number Representation in the PLC
Value entered
KF - 50
KH A03F
2-20
n
(high byte)
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
15
14
13
12
11
2
2
2
2
2
Representation in the PLC
1111 1111 1100 1110
1010 0000 0011 1111
n
n+ 1 (low byte)
10
9
8
7
6
2
2
2
2
2
2
S5-115F Manual
5
4
3
2
1
0
2
2
2
2
2
EWA 4NEB 811 6149-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5-115f

Table of Contents