Siemens S7 Serie Manual De Sistema página 256

Controlador programable
Ocultar thumbs Ver también para S7 Serie:
Tabla de contenido

Publicidad

Instrucciones básicas
7.7 Conversión
Tabla 7- 77
Conversión de un entero corto (SInt o USInt)
Tipo de datos
Instrucción
SINT_TO_BOOL
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_TO_BOOL
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
Tabla 7- 78
Conversión de un entero (Int o UInt)
Tipo de datos
Instrucción
INT_TO_BOOL
Int
INT_TO_BYTE, INT_TO_DWORD,
INT_TO_SINT, INT_TO_USINT,
INT_TO_UINT, INT_TO_UDINT,
INT_TO_REAL, INT_TO_LREAL,
INT_TO_CHAR, INT_TO_STRING
INT_TO_WORD
INT_TO_DINT
UINT_TO_BOOL
UInt
UINT_TO_BYTE, UINT_TO_SINT,
UINT_TO_USINT, UINT_TO_INT,
UINT_TO_REAL, UINT_TO_LREAL,
UINT_TO_CHAR, UINT_TO_STRING
UINT_TO_WORD, UINT_TO_DATE
UINT_TO_DWORD, UINT_TO_DINT,
UINT_TO_UDINT
256
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 menos significativo del tipo
de datos de destino.
El valor está convertido.
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 menos significativo del tipo
de datos de destino.
El valor está convertido.
Resultado
El bit menos significativo se transfiere al 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 menos significativo del tipo
de datos de destino.
El bit menos significativo se transfiere al 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 menos significativo del tipo
de datos de destino.
Manual de sistema, 03/2014, A5E02486683-AG
Controlador programable S7-1200

Publicidad

Tabla de contenido
loading

Este manual también es adecuado para:

S7-1200

Tabla de contenido