Delta Electronics DOP-AE Series Network Card User Manual


 
Chapter 4 Macro Function|ScrEdit Software User Manual
Revision Apr. 30th, 2007, 2007PDD23000002 4-19
COT
Cotangent Function Operation
Equation: V1 = COT(V2) (Signed DW)
Perform the cotangent function operation on V2, and store the remainder in V1.
Example:
$0 = COT(50)
The result is $0 = 0.839
SEC
Secant Function Operation
Equation: V1 = SEC(V2) (Signed DW)
Perform the secant function operation on V2, and store the remainder in V1.
Example:
$0 = SEC(50)
The result is $0 = 1.556
CSC
Cosecant Function Operation
Equation: V1 = CSC(V2) (Signed DW)
Perform the cosecant function operation on V2, and store the remainder in V1.
Example:
$0 = CSC(50)
The result is $0 = 1.305
Logical Operation
Six logical operations includes OR, AND, XOR, NOT, Shift-left and Shift-right. There are three operands
for each operation. Each operand can be internal memory or constant. But it shall be internal memory
only when outputting. The unit can be Word and Double Word. Please refer to following table 4.3.2 and
examples below for more information.
Command Equation Description Remark
|
V1 = V2 | V3
Bit OR operation
&&
V1 = V2 && V3
Bit AND operation
^
V1 = V2 ^ V3
Bit XOR operation
NOT
V1 = NOT V2
Bit NOT operation
<<
V1 = V2 << V3
Bit Shift-left operation
>>
V1 = V2 >> V3
Bit Shift-rightt operation
The calculation result can be
stored as WORD and
DWORD.
V1 can be internal memory
only.
V2 and V3 can be internal
memory or constant.
Table 4.3.2 Logical operation command table