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

Ocultar thumbs Ver también para SIMATIC S7-1200:
Tabla de contenido

Publicidad

Instrucciones básicas
7.7 Convertir
7.7.2
Instrucciones de conversión de SCL
Instrucciones de conversión de SCL
Tabla 7- 75
Conversión de un Bool, Byte, Word o DWord
Tipo de datos
Instrucción
Bool
BOOL_TO_BYTE, BOOL_TO_WORD,
BOOL_TO_DWORD, BOOL_TO_INT,
BOOL_TO_DINT
Byte
BYTE_TO_BOOL
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_BOOL
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_BOOL
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- 76
Conversión de un entero corto (SInt o USInt)
Tipo de datos
Instrucción
SInt
SINT_TO_BOOL
SINT_TO_BYTE
SINT_TO_WORD, SINT_TO_DWORD,
SINT_TO_INT, SINT_TO_DINT
222
Resultado
El valor se transfiere al bit menos significativo del tipo de
datos de destino.
El bit menos significativo se transfiere al tipo de datos de
destino.
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 bit menos significativo se transfiere al 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 bit menos significativo se transfiere al 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 bit menos significativo 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.
Manual de sistema, 04/2012, A5E02486683-06
Controlador programable S7-1200

Hide quick links:

Publicidad

Tabla de contenido
loading

Tabla de contenido