Siemens NAN 67 Series Wartungshandbuch Seite 284

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 283
C-2
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
C.1 Number Notation
Ladder logic instructions work with data objects of specific sizes (see
Table C-2). For example, the Bit Logic instructions perform their operations
on binary digits (bits); the Move instructions perform their operations on
bytes, words, and double words.
Math instructions also perform their operations on bytes, words, and double
words. In these byte, word, and double word addresses, you can code various
number formats such as integer and real.
If you use symbolic addressing, you define symbols and indicate a data type
for each of these symbols (see Table C-2). Different data types have different
format options and number notation. The information in the following
sections will help you understand formats and number notation.
This chapter of the manual describes only some of the possible number and
constant notations.
Table C-1 Number and Constant Formats Not Covered in this Chapter
Format
Size in Bits Number Notation
Hexadecimal 8, 16, and 32 B#16#, W#16#, and DW#16#
Binary 8, 16, and 32 2#
IEC date 16 D#
IEC time 32 T#
Time of day 32 TOD#
Character 8 ’A
A bit is a binary digit (0 or 1), a byte is 8 bits, a word is 16 bits, and a double
word is 32 bits.
Every input and output parameter of a LAD box can have one of the
following types:
S Elementary types (see Table C-2)
S Structured types (Array, Struct, String, Date_and_Time)
S Timer, counter and block types
S Pointer und array
More detailed information on data structures and arrays which you can define
yourself, and on data types with a different structure, such as STRING and
DATE_AND_TIME, is available in the Programming Manual /120/ and User
Manual /231/.
General
Information
Bits, Bytes, Words,
and Double Words
Data Types
Number Notation
Seitenansicht 283
1 2 ... 279 280 281 282 283 284 285 286 287 288 289 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare