Sign Inversion(Complement Of 2) - Mitsubishi Electric Q173CPU Programming Manual

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

Advertisement

7 OPERATION CONTROL PROGRAMS
7.5.7 Sign inversion (Complement of 2) :
Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
(S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
(S)
Data whose sign will be inverted
(1) The sign-inverted value of the data specified with (S) is found.
(1) An operation error will occur if:
• (S) is an indirectly specified device and its device No. is outside the range.
(1) Program which substitutes the sign-inverted value of #0 to D0
D0 = #0
D0
-123
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
7 - 24
F/FS
Number of basic steps
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
Data type of (S)
#0
123
G
2
Bit
Comparison
conditional
expression
: Usable

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents