5 - 8
5 OPERATION CONTROL PROGRAMS
2) Program which substitutes the result of multiplying #0 and #10 to W0L
after converting into the 32-bit integer type
W0L = LONG(#0) LONG(#10)
LONG(#10)
W0L
*
W1 W0
8369910
(H007FB6F6)
12345
(H00003039)
(
H000002A6)
678
LONG(#0)
Since the multiplier result is processed with the 32-bit integer type by the
type converting instruction, even if the device value is the same as the
program example 1), an overflow will not occur.