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
Содержание AE80THTD
Страница 1: ......
Страница 290: ...Chapter 7 Example Explanation ScrEdit Software User Manual Revision Apr 30th 2007 2007PDD23000002 7 7 Fig 7 8...
Страница 293: ...Chapter 7 Example Explanation ScrEdit Software User Manual 7 10 Revision Apr 30th 2007 2007PDD23000002 Fig 7 11...
Страница 318: ...Appendix B USB Flash Drive Function ScrEdit Software User Manual Revision Apr 30th 2007 2007PDD23000002 B 13 Fig B 13...
Страница 324: ...Appendix C Main Menu Operation of HMI System ScrEdit Software User Manual Revision Apr 30th 2007 2007PDD23000002 C 5...