Delta Electronics DOP-A Series Network Card User Manual


 
Chapter 4 Macro Function|ScrEdit Software User Manual
4-18 Revision Apr. 30th, 2007, 2007PDD23000002
$4 = 3
$5 = 2
$10 = 3
$0 = ADDSUMW($2, $10)
Add up the values contained within the internal memory address #2, #3, and #4 (as the value of #4 is
the same as the value of #10) and the grand total is stored in the address #0. The value of the grand
total is equal to 6.
$0 = ADDSUMW($2, 4)
Add up the values contained within the internal memory address #2, #3, #4, and #5 (4 addresses
started from address #2) and the grand total is stored in the address #0. The value of the grand total is
equal to 8.
SIN
Sine Function Operation
Equation: V1 = SIN(V2) (Signed DW)
Perform the sine function operation on V2, and store the remainder in V1.
Example:
$0 = SIN(50)
The result is $0 = 0.766
COS
Cosine Function Operation
Equation: V1 = COS(V2) (Signed DW)
Perform the cosine function operation on V2, and store the remainder in V1.
Example:
$0 = COS(50)
The result is $0 = 0.643
TAN
Tangent Function Operation
Equation: V1 = TAN(V2) (Signed DW)
Perform the tangent function operation on V2, and store the remainder in V1.
Example:
$0 = TAN(50)
The result is $0 = 1.192