Event functons – Yokogawa PC-Based MX100 User Manual
Page 54
2-40
IM MX180-01E
Event Functons
A function used to carry out a given operation (event). They are not case-sensitive. They
are mainly used in conjunction with the conditional operator (?). The return values are
indicated below. The event is actually executed after the computation is complete.
• Execution successful: 1.0
• Execution failure:
0.0
• Invalid parameter:
NaN
Functon
Descrpton
Example
AlarmAck()
Issue an alarm acknowledge
ch(1)>ch(2) ? AlarmAck() : 0
ResetMath()
Reset the computation
ch(00010)>=1.0 ? ResetMath() : 0
ResetTimer()
Reset the values of all timers
ch(00010)>=1.0 ? ResetTimer() : 0
ResetTimer(
ch(00010)>=1.0 ? ResetTimer(1) : 0
ResetTLog()
Reset the TLOG computation
ch(00010)>=1.0 ? ResetTLog() : 0
StartRec()
Start recording
ch(00010)>=1.0 ? StartRec() : 0
Valid after carrying out the
record start procedure.
Discarded if the recording is
already stopped (returns 1.0).
SplitRec()
Move to the next record file
ch(00010)>=1.0 ? SplitRec() : 0
Valid after carrying out the
record start procedure.
StopRec()
Stop recording
ch (00010) >=0 ? StopRec() : 0
Valid after carrying out the
record start procedure.
Discarded if the recording is
already started (returns 1.0).
Mark("mark")
Create a mark. The text inside
ch (00010) >=0 ? Mark("mark") : 0
the double quotation marks is
arbitrary.
• If the spacing between the execution of StopRec() and StartRec() is short, StartRec()
may not be executed. When repeating start/stop frequently, consider using the Split
function.
• The computed result at the time record start is executed is not necessary recorded to
the file.
2.5 Settng Computatons (Settng the Computaton Channels)