EasyManua.ls Logo

Siemens SIMATIC S7-1200 - A.9 Communication Interfaces

Siemens SIMATIC S7-1200
1614 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...
Basic instructions
8.9 Word logic operations
S7-1200 Programmable controller
328 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 8- 172 Data types for the parameters
Parameter
Data type
Description
IN ENCO: Byte, Word, DWord
DECO: UInt
ENCO: Bit pattern to encode
DECO: Value to decode
OUT ENCO: Int
DECO: Byte, Word, DWord
ENCO: Encoded value
DECO: Decoded bit pattern
Table 8- 173 ENO status
ENO
Condition
Result (OUT)
1
No error
Valid bit number
0
IN is zero
OUT is set to zero
The DECO parameter OUT data type selection of a Byte, Word, or DWord restricts the
useful range of parameter IN. If the value of parameter IN exceeds the useful range, then a
modulo operation is performed to extract the least significant bits shown below.
DECO parameter IN range:
3 bits (values 0-7) IN are used to set 1 bit position in a Byte OUT
4-bits (values 0-15) IN are used to set 1 bit position in a Word OUT
5 bits (values 0-31) IN are used to set 1 bit position in a DWord OUT
Table 8- 174 Examples
DECO IN value
DECO OUT value ( Decode single bit position)
Byte OUT
8 bits
Min. IN
0
00000001
Max. IN
7
10000000
Word OUT
16 bits
Min. IN
0
0000000000000001
Max. IN
15
1000000000000000
DWord OUT
32 bits
Min. IN
0
00000000000000000000000000000001
Max. IN
31
10000000000000000000000000000000

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals