Siemens 880 Manuale delle Istruzioni Pagina 96

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 129
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 95
9 STEP 5 Operation Set with Programming Examples 11.92
9.3.9 Conversion operations
9.3.9 Conversion operations
Operation Meaning
CFW One's complement of ACCU 1-L
CSW Two's complement of ACCU 1-L
CSD Two's complement of ACCU 1
DEF Conversion of BCD word-coded number to fixed-point number
DUF Conversion of fixed-point number to BCD word-coded number
DED Conversion of BCD double-word-coded number to fixed-point
double-word
DUD Conversion of fixed-point double-word to BCD double-word-
coded number
FDG Conversion of fixed-point double-word to floating-point number
GFD Conversion of floating-point number to fixed-point double-word
Examples:
The contents of data word 64 are to be inverted bit for bit and stored in data word 78.
STEP 5 program: Assignments of data words:
: L DW64 KM = 0011111001011011
: CFW
: T DW78 KM = 1100000110100100
The contents of data word 207 are to be interpreted as a fixed-point number and stored in data
word 51 with the opposite sign.
STEP 5 program: Assignments of data words:
: L DW207 KF: +51
: CSW
: T DW51 KF: – 51
9.3.10 Decrementing and incrementing
Operation Description
D 0 to 255 Decrementing
I 0 to 255 Incrementing
Accumulator contents 1 are decremented/incremented by
the number specified in the parameter. Execution of the
operation is independent of conditions. It is restricted to the
right byte (without carry).
Example:
STEP 5 program: Assignments of data words:
: L DW7 KH = 1010
: I 16
: T DW8 KH = 1020
: D 33
: T DW9 KH = 10FF
9–36
© Siemens AG 1992 All Rights Reserved 6FC5197- AA80
SINUMERIK 840C/880 (PJ)
Vedere la pagina 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 128 129

Commenti su questo manuale

Nessun commento