Delta D25886 User Manual Page 176

  • Download
  • Add to my manuals
  • Print
  • Page
    / 339
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 175
4. Motion Control Instructions
DVP-MC operating manual 4-135
4.6.52. Real_To_Int
API Controller
179
Real_To_Int
Convert floating number into
16-bit integer
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 Controller
180
Real_To_DInt
Convert floating number into
32-bit integer
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
Page view 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 338 339

Comments to this Manuals

No comments