Instrucciones De Conversión De Scl - Siemens SIMATIC S7-1200 Manual De Sistema

Controlador programable
Ocultar thumbs Ver también para SIMATIC S7-1200:
Tabla de contenido
7.7.2
Instrucciones de conversión de SCL
Instrucciones de conversión de SCL
Tabla 7- 76
Conversión de un Byte, Word o DWord
Tipo de datos
Instrucción
Byte
BYTE_TO_WORD, BYTE_TO_DWORD
BYTE_TO_SINT, BYTE_TO_USINT
BYTE_TO_INT, BYTE_TO_UINT,
BYTE_TO_DINT, BYTE_TO_UDINT
Word
WORD_TO_BYTE
WORD _TO_DWORD
WORD _TO_SINT, WORD _TO_USINT
WORD _TO_INT, WORD _TO_UINT
WORD _TO_DINT, WORD _TO_UDINT
DWord
DWORD_TO_BYTE, DWORD_TO_WORD,
DWORD_TO_SINT, DWORD_TO_USINT,
DWORD_TO_INT, DWORD_TO_UINT
DWORD_TO_DINT, DWORD_TO_UDINT,
DWORD_TO_REAL
Tabla 7- 77
Conversión de un entero corto (SInt o USInt)
Tipo de datos
Instrucción
SInt
SINT_TO_BYTE
SINT_TO_WORD, SINT_TO_DWORD,
SINT_TO_INT, SINT_TO_DINT
SINT_TO_USINT, SINT_TO_UINT,
SINT_TO_UDINT, SINT_TO_REAL,
SINT_TO_LREAL, SINT_TO_CHAR,
SINT_TO_STRING
USInt
USINT_TO_BYTE
USINT_TO_WORD, USINT_TO_DWORD,
USINT_TO_INT, USINT_TO_UINT,
USINT_TO_DINT, USINT_TO_UDINT
USINT_TO_SINT, USINT_TO_REAL,
USINT_TO_LREAL, USINT_TO_CHAR,
USINT_TO_STRING
Controlador programable S7-1200
Manual de sistema, 11/2011, A5E02486683-05
Resultado
El valor se transfiere al byte low del tipo de datos de
destino.
El valor se transfiere al tipo de datos de destino.
El valor se transfiere al byte menos significativo del tipo
de datos de destino.
El byte low del valor fuente se transfiere al tipo de datos
de destino.
El valor se transfiere al byte low del tipo de datos de
destino.
El byte low del valor fuente se transfiere al tipo de datos
de destino.
El valor se transfiere al tipo de datos de destino.
El valor se transfiere al byte low del tipo de datos de
destino.
El byte low del valor fuente se transfiere al tipo de datos
de destino.
El valor se transfiere al tipo de datos de destino.
Resultado
El valor se transfiere al tipo de datos de destino.
El valor se transfiere al byte low del tipo de datos de
destino.
El valor está convertido.
El valor se transfiere al tipo de datos de destino.
El valor se transfiere al byte low del tipo de datos de
destino.
El valor está convertido.
100BInstrucciones básicas
7.7 Convertir
215
Tabla de contenido
loading

Tabla de contenido