EasyManua.ls Logo

Siemens SIMATIC S7 - Assigning a Constant Value for Instructions; Addressing the Local and Expansion I;O

Siemens SIMATIC S7
866 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PLC concepts
4.2 Accessing data
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
83
4.2.4
Assigning a constant value for instructions
You can use a constant value in many of the programming instructions. Constants can be
bytes, words, or double words. The CPU stores all constants as binary numbers, which can
then be represented in decimal, hexadecimal, ASCII, or real number (floating point) formats.
Table 4- 17 Representation of constant values
Representation
Format
Sample
Decimal
[decimal value]
20047
Hexadecimal 16#[hexadecimal value] 16#4E4F
Binary
2#[binary number]
2#1010_0101_1010_0101
ASCII
'[ASCII text]'
'ABCD'
Real ANSI/IEEE 754-1985 +1.175495E-38 (positive)
-1.175495E-38 (negative)
String
"[stringtext]"
"ABCDE"
Note
The CPU does not support "data typing" or data checking (su
ch as specifying that the
constant is stored as an integer, a signed integer, or a double integer). For example, an Add
instruction can use the value in VW100 as a signed integer value, while an Exclusive Or
instruction can use the same value in VW100 as a
n unsigned binary value.
4.2.5
Addressing the local and expansion I/O
The local I/O provided by the CPU provides a fixed set of I/O addresses. You can add I/O
points by connecting expansion I/O modules to the right side of the CPU or by installing a
signal board. The addresses of the points of the module are determined by the type of I/O
and the position of the module in the chain. For example, an output module does not affect
the addresses of the points on an input module, and vice versa. Likewise, analog modules
do not affect the addressing of digital modules, and vice versa.
Note
Process image register space for
digital I/O is always reserved in increments of eight bits
(one byte). If a module does not provide a physical point for each bit of each reserved byte,
these unused bits cannot be assigned to subsequent modules in the I/O chain. For input
modules, the unu
sed bits are set to zero with each input update cycle.
Analog I/O points are always allocated in increments of two points. If a module does not
provide physical I/O for each of these points, these I/O points are lost and are not available
for assignment to
subsequent modules in the I/O chain.

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals