Mitsubishi Electric R16MTCPU Programming Manual page 134

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Program example
■Program which substitutes the D0 value to #0
#0 = D0
#0
123
■Program which substitutes K123456.789 to D0L
D0L = K123456.789
D1
D0
D0L
123456
The 64-bit floating-point type is converted into the 32-bit integer type and the result is substituted.
■Program which substitutes the result of adding K123 and #0 to W0
W0 = K123 + #0
W0
579
4 OPERATION CONTROL PROGRAMS
132
4.5 Binary Operations
D0
123
123456.789
123
+
#0
456

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents