Tme functons, Selectable range of parameters – Yokogawa PC-Based MX100 User Manual
Page 52

2-38
IM MX180-01E
Tme Functons
The table below shows the functions related to time. The functions are not case sensitive.
Only integer numeric constants can be written in the function parameters <year>,
<month>, <day>, <hours>, and <minutes> in the table below. The terminology used in
the description in the table are defined below.
Edge:
Returns 1.0 for computation immediately after the specified absolute or
relative time.
Previous edge: Returns 1.0 for computation immediately before the specified absolute or
relative time.
Level:
Returns 1.0 during the specified absolute time or relative time.
• Selectable range of parameters
<years>:
1970 to 2036
<month>:
1 to 12 (1: January, 2: February, ..., 12: December)
<day>:
1 to 31
<week day>: 0 to 6 (0: Sunday, 1: Monday, ..., 6: Saturday)
<hours>:
0 to 23
<minutes>: 0 to 59
Functon
Descrpton
Example
time(<year>,<month>,<day> <hours>,<minutes>)
Edge operation on the date/time
time(2003,6,3,9,53) ? StartRec() : 0
bfTime(<year>,<month>,<day>,<hours>,<minutes>) Previous edge operation
bfTime(2003,6,3,9,3) ?
on the date/time
StartRec() : 0
time(<year A>,<month A>,<day A>,<hours A>,
Level operation between
time(2003,6,3,8,53,2003,6,3,9,13) ?
<minutes A>,<year B>,<month B>,<day B>,
date/time A and B
sum(ch(1),ch(2),ch(3)) : 0
<hours B>,<minutes B>)
monthly(<day>,<hours>,<minutes>)
Edge operation every month on
monthly(3,9,53) ? StartRec() : 0
the specified day, hour, and minute.
bfMonthly(<day>,<hours>,<minutes>)
Previous edge operation every
bfMonthly(3,9,53) ? StartRec() : 0
month on the specified day,
hour, and minute.
monthly(<day A>,<hours A>,<minutes A>,
Level operation between the
monthly(3,9,3,4,9,3) ? StartRec() : 0
<day B>,<hours B>,<minutes B>)
specified day, hour, and minute of
A to the specified day, hour, and
minute of B every month
weekly(<week day>,<hours>,<minutes>)
Edge operation every week on the
weekly(3,9,53) ? StartRec() : 0
specified week day, hour, and minute.
bfweekly(<week day>,<hours>,<minutes>)
Previous edge operation every
bfWeekly(3,9,53) ? StartRec() : 0
week on the specified week day,
hour, and minute.
weekly(<week day A>,<hours A>,<minutes A>,
Level operation between the
weekly(10,00,11,05) ?
<week day B>,<hours B>,<minutes B>)
specified week day, hour, and
sum(ch(1),ch(2),ch(3)) : 0
minute of A to the specified week
day, hour, and minute of B every week.
daily(<hours>,<minutes>)
Edge operation at the specified hour
daily(10,00) ? StartRec() : 0
and minute every day
bfdaily(<hours>,<minutes>)
Previous edge operation at the
dfDaily(10,00) ? StartRec() : 0
specified hour and minute every day
daily(<hours A>,<minutes A>,<hours B>,<minutes B>) Level operation between time
daily(10,00,11,05) ? sum(ch(1),
A and B
ch(2),ch(3)) : 0
hourly(<minutes>)
Edge operation at the specified
hourly(30) ? StartRec() : 0
minute every hour
bfhourly(<minutes>)
Previous edge operation at the
bfHourly(30) ? StartRec() : 0
specified minute every hour
hourly(<minutes A>,<minutes B>)
Level operation between
hourly(10,20) ?
minute A and B every hour
sum(ch(1),ch(2),ch(3)) : 0
timer(<timerNo>)
Returns the status of the specified
timer(1)==1.0 ? StartRec() : 0
timer
2.5 Settng Computatons (Settng the Computaton Channels)