beautypg.com

Index – Yokogawa PC-Based MX100 User Manual

Page 49

background image

2-35

IM MX180-01E

Integrat

on Mon

tor

3

2

1

4

5

App

Index

Manual Output, 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.

1-4

1

Operators

The operators listed below can be used.

Operator Descrpton

Example

+

Unary plus operator

+ch(00010)

Unary minus operator

–ch(00010)

!

Logical negation operator, 1 when 0 and 0

!ch(00010)

when non-zero

+

Addition

ch(00010)+ch(00011)

Subtraction

ch(00010)–ch(00011)

*

Multiplication

ch(00010)*ch(00011)

/

Division

ch(00010)/ch(00011)

%

Remainder

ch(1)%ch(2)<=1 ? AlarmAck() : 0

<

Less than, 1 when the condition is met and 0

ch(1) > ch(2) ? AlarmAck() : 0

when it is not

>

Greater than, 1 when the condition is met and 0 ch(1) < ch(2) ? AlarmAck() : 0

when it is not

<=

Less than or equal to, 1 when the condition is ch(00010)<=1.0 ? StartRec() : 0

met and 0 when it is not

>=

Greater than or equal to, 1 when the condition ch(00010)>=1.0 ? StartRec() : 0

is met and 0 when it is not

==

Equal to, 1 when the condition is met and 0

ch(00010)==1.0 ? StartRec() : 0

when it is not

!=

Not equal to, 1 when the condition is met and 0 ch(00010)!=0 ? StartRec() : 0

when it is not

&&

Logical product

ch(1) && ch(2)==1 ? AlarmAck() : 0

||

Logical sum

ch(1) || ch(2)==1 ? AlarmAck() : 0

^^

Exclusive OR

ch(1) ^^ ch(2)==1 ? AlarmAck() : 0

? :

Conditional operator

ch(00010)>=1.0 ? StartRec() : 0

(Write a ? b : c to mean b if a is met and c if not met)

,

Order operator

Condition?(ResetTimer(), StartRec() : 0

The order of precedence of the operators is as follows.
+ – ! (unary operators) ← + – * / % (arithmetic operators) ← < > <= >= == != (relational
operators) ← && || ^^ (logical operators) ← ? (conditional operator) ← ,(order operator)

2.5 Settng Computatons (Settng the Computaton Channels)