Delta Electronics DVP10MC11T [196/375] Real_to_int

Delta Electronics DVP10MC11T [196/375] Real_to_int
4. Motion Control Instruction
4-152 DVP-MC operating manual
4.6.52. Real_To_Int
API
Real_To_Int
Convert floating number into
16-bit integer
Controller
179
10MC11T
Explanation of the instruction:
Real_To_Int is used for converting 32-bit floating numbers into the signed 16-bit integer. When EN is on,
floating number S value is converted into the signed 16-bit integer which is stored in D device and S value
keeps unchanged.
Explanation of input and output parameter of the instruction:
Parameter
name
Explanation
Data
type
Available
device
EN “Real_To_Int” is executed as “EN” turns on. BOOL
M,I,Q,
Constant
S The floating point to be converted REAL Constant, D
D The 16-bit integer which has been converted INT D
4.6.53. Real_To_DInt
API
Real_To_DInt
Convert floating number into
32-bit integer
Controller
180
10MC11T
Explanation of the instruction:
Real_To_DInt is used for converting 32-bit floating number into the signed 32-bit integer.
When EN is on, floating number S value is converted into the signed 32-bit integer which is stored in D device
and S value keeps unchanged.
Explanation of input and output parameter of the instruction:
Parameter
name
Explanation
Data
type
Available
device
EN "Real_To_DInt” is executed as “EN” turns on. BOOL
M,I,Q,
Constant
S The floating point to be converted REAL Constant, D
D The 32-bit integer which has been converted DINT D

Содержание

Похожие устройства

Скачать