Delta Electronics A10 User Manual page 240

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

Advertisement

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
|
&&
^
NOT
<<
>>
Revision Apr. 30th, 2007, 2007PDD23000002
Chapter 4 Macro Function|ScrEdit Software User Manual
Equation
V1 = V2 | V3
V1 = V2 && V3
V1 = V2 ^ V3
V1 = NOT V2
V1 = V2 << V3
V1 = V2 >> V3
Bit Shift-rightt operation
Table 4.3.2 Logical operation command table
Description
Bit OR operation
Bit AND operation
Bit XOR operation
Bit NOT operation
Bit Shift-left operation
Remark
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.
4-19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents