Index – Yokogawa DAQWORX User Manual
Page 59

2-29
IM WX103-01E
1
2
3
4
5
Index
Logger
Manual, and User Output (DO Channels, AO Channels, and PWM
Channels)
Specify an integer starting with 1. The arguments for the ManualDO() and ManualAO()
functions are as follows.
<ManualDONo.>: 1-4
<ManualAONo.>: 1-4
Operators
The operators listed below can be used.
Operator
Explanaton
Example
+
Unary plus operator
+ch(00010)
-
Unary minus operator
-ch(00010)
!
Logical NOT operator; 1 when 0, or 0 when not 0.
!ch(00010)
+
Addition
ch(00010)+ch(00011)
-
Subtraction
ch(00010)-ch(00011)
*
Multiplication
ch(00010)*ch(00011)
/
Division
ch(00010)/ch(00011)
%
Remainder
ch(00001)%ch(00002)<=1 ?
AlarmAck() : 0
<
Less than, 1 when the condition is met and 0
when it is not
ch(00001) > ch(00002) ?
AlarmAck() : 0
>
Greater than, 1 when the condition is met and 0
when it is not
ch(00001) < ch(00002) ?
AlarmAck() : 0
<=
Less than or equal to, 1 when the condition is
met and 0 when it is not
ch(00010)<=1.0 ? StartRec() : 0
>=
Greater than or equal to, 1 when the condition
is met and 0 when it is not
ch(00010)>=1.0 ? StartRec() : 0
==
Equal to, 1 when the condition is met and 0
when it is not
ch(00010)==1.0 ? StartRec() : 0
!=
Not equal to, 1 when the condition is met and 0
when it is not
ch(00010)!=0 ? StartRec() : 0
&&
Logical product, also calculated after NOT
ch(00001) && ch(00002)==1 ?
AlarmAck() : 0
||
Logical sum, also calculated when true
ch(00001) || ch(00002)==1 ?
AlarmAck() : 0
^^
Exclusive OR
ch(00001) ^^ ch(00002)==1 ?
AlarmAck() : 0
? :
Conditional operators
ch(00010)>=1.0 ? StartRec() : 0
(“if a then b otherwise c” expressed
as [a?b:c])
,
Order operator
Condition?(ResetTimer(),
StartRec()) : 0
The order of precedence of the operators is as follows. ← indicates that the left operator
has precedence over the right operator.
+ - ! (unary operators) ← + - * / % (arithmetic operators) ← < > <= >= == != (relational
operators) ← && || ^^ (logical operators) ← ? (conditional operator) ← ,(order operator)
2.5 Settng Computatons (Settng the Computaton Channels)