Sei sulla pagina 1di 10

Siemens S7 PLC system

PLC
system

One Company Unlimited Solutions


Siemens S7 Simatic S7-300
Siemens S7 Digital system

The word digital is most commonly used in computing


and electronics.

A digital system uses discrete values (0 and 1) to represent


information for input, processing, transmission, storage, etc.

Boolean algebra deals with the values 0 and 1.


These can be thought of as two integers, or as the truth values
false and true respectively.
In either case they are called bits or binary digits.
Siemens S7 Boolean Algebra

Basic operations:
Truth tables

A B OUT

0 0 0
A
AND 0 1 0

B OUT 1 0 0

1 1 1

A B OUT

OR A
0 0 0

0 1 1
B OUT 1 0 1

1 1 1

A OUT
NOT 0 1
A OUT
1 0
Siemens S7 Elementary Data Types

Type and
Description Size in Bits Format Options Lowest/Highest value Example

BOOL (bit) 1 0/1 (false/true) 1 (True)

BYTE 8 Hexadecimal number B#16#0 to B#16#FF B#16#10

WORD 16 Hexadecimal number W#16#0 to W#16#FFFF W#16#1000

DW#16#0000_0000
DWORD 32 Hexadecimal number to DW#16#FFFF_FFFF DW#16#00A2_1234

INT 16 Decimal number signed -32768 to 32767 23159

DINT 32 Decimal number signed -2147483648 to 2147483647 0000356958

Upper limit: ±3.402823e+38


REAL 32 Floating-point number Lower limit: ±1.175 495e-38 1.234567e+13
Siemens S7 Programming Languages

LAD - Ladder Logic - graphic representation

STL - Statement List - textual representation

FBD - Function Block Diagram - graphic representation


Siemens S7 Programming Instructions
Siemens S7 Programming Instructions
Siemens S7 Programming Instructions
Siemens S7 Programming Instructions

On Delay Timer

Potrebbero piacerti anche