Delta Electronics A10 User Manual page 238

Dop series hmi
Hide thumbs Also See for A10:
Table of Contents

Advertisement

within V3 cannot be equal to 0(zero).
Example:
The value contained within the internal memory address #2 is divided by 1.
$2 = $2 / 1
The value contained within the internal memory address #2 is divided by 5 and the result of this
calculation is stored in the address #3.
$3 = $2 / 5
The value contained within the internal memory address #4 is divided by 4.3 and the result of this
calculation is stored in the address #6.
$6 = FDIV($4, 4.3) (Signed DW)
%, FMOD
Get Remainder
Equation: V1 = V2 % V3
V1 = FMOD(V2, V3) (Signed DW)
Perform the division of V2 and V3, and store the remainder in V1. The value contained within V3
cannot be equal to 0(zero).
Example:
The value contained within the internal memory address #2 divided by 5 and the remainder of the result
of this calculation is stored in the address #3.
$3 = $2 % 5
The value contained within the internal memory address #4 divided by 4 and the remainder of the result
of this calculation is stored in the address #6.
$6 = FMOD($4, 4) (Signed DW)
ADDSUMW
Repeated Addition
Equation: V1 = ADDSUMW(V2, V3)
1. When V3 is an internal memory address, it will perform the addition of the value contained
from V2 to the address which the value is the same as the value contained within V3, and
store the repeated addition result in V1.
2. When V3 is a value, it will perform the addition on the value contained within V3 addresses
started from address V2, and store the repeated addition result in V1.
Example:
$2 = 1
$3 = 2
Revision Apr. 30th, 2007, 2007PDD23000002
Chapter 4 Macro Function|ScrEdit Software User Manual
4-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents