Round-Down : Fix - Mitsubishi Electric Q173CPU Programming Manual

Q series motion controller
Hide thumbs Also See for Q173CPU:
Table of Contents

Advertisement

7 OPERATION CONTROL PROGRAMS

7.6.12 Round-down : FIX

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
FIX(S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
(S)
Data whose fractional portion will be rounded down
(1) The largest integer not greater than the data specified with (S) is found.
(2) If the (S) value is positive, the absolute value will be smaller, and if it is negative,
the absolute value will be greater.
(3) If (S) is an integer type, its value is returned unchanged, with no conversion
processing performed.
(1) An operation error will occur if:
• (S) is an indirectly specified device and its device No. is outside the range.
(1) Program which finds the rounded-down fractional portion value of D0F and
substitutes the result to #0F
#0F = FIX(D0F)
#3
#2
33.0
(2) Program which finds the rounded-down fractional portion value of D4F and
substitutes the result to #0F (when D4F is a negative number)
#0F = FIX(D4F)
#3
#2
-34.0
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
#1
#0
#1
#0
7 - 36
F/FS
Number of basic steps
Bit
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
Data type of (S)
D3
D2
D1
33.54
D7
D6
D5
-33.54
G
2
Comparison
conditional
expression
: Usable
D0
D4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents