Delta Electronics DELTA DUP-B Manual De Usuario

Descargar
Página de 491
Chapter 3 Creating and Editing Screens 
 
3-302 
Revision May, 2010
 
raction) 
 
 
he subtraction of Var2 and Var3, and store the subtraction result in Var1. 
 
result can be stored as signed or unsigned WORD and DWORD. 
ll 
 
Var1 can be internal memory only. Var2 and Var3 can be internal memory or 
tant. 
 
Subtract a value of 1 from $0 and store the value in $0 (this is an operation of 
unsigned 16-bit data). 
 
- (Subt
Equation 
Var1 = Var2 - Var3 
Explanation
Perform t
Remark 
 
The calculation 
When the data exceeds the length of designated unit, the data out of range wi
be discarded. 
cons
Example 
 
Subtract a value of $1 from $2 and store the value in $3 (this is an operation of 
signed 16-bit data).