Siemens S7-200PLC Especificaciones Pagina 315

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 504
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 314
SIMATIC Instructions
9-139
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Figure 9-49 gives examples of values that are formatted using a decimal point (c =
0) with four digits to the right of the decimal point (nnn = 100).
in=-12
in=1234567
Out OutOutOutOut Out Out
+1 +2 +3 +4 +5 +6 +7
Out
.
.
01 2
123 45
-
FMT
Example:
Out Out OutOut
00
67
+8 +9 +10 +11
MSB
76543210
LSB
nnn0000c
c = comma (1) or decimal point (0)
nnn = digits to right of decimal point
Figure 9-49 FMT Operand for DTA Instruction
Real to ASCII
The Real to ASCI instruction converts a floating point
value (IN) to an ASCII string. The format (FMT) specifies
the conversion precision to the right of the decimal, and
whether the decimal point is shown as a decimal point or
a period, and the output buffer size. The resulting
conversion is placed in an output buffer beginning with
OUT. The length of the resulting ASCII string is the size
of the output buffer, and can be specified to a size
ranging from 3 to 15.
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address), no output (illegal format or buffer
too small)
Inputs/Outputs Operands Data Types
IN VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *AC, *LD REAL
FMT VB, IB, QB, MB, SMB, LB, AC, Constant, *VD, *AC, SB, *LD BYTE
OUT VB, IB, QB, MB, SMB, LB, *VD, *AC, SB, *LD BYTE
L
A
D
S
T
L
RTA IN, OUT, FMT
RTA
EN
IN
FMT
F
B
D
ENO
OUT
222 224
333
221
Vista de pagina 314
1 2 ... 310 311 312 313 314 315 316 317 318 319 320 ... 503 504

Comentarios a estos manuales

Sin comentarios