Instruction 114- calendar operation – Maple Systems MAPware-7000 User Manual
Page 189
![background image](/manuals/358875/189/background.png)
181
MAPware-7000 Ladder Logic Guide
1010-1041 rev. 00
Instruction 114- Calendar Operation
Expression:
Space Requirement: 1 line x 5 column
Location Requirement: Middle, Right rail
Function:
Use this function to determine how many days, hours, minutes, and seconds have passed between the
date/time entered into Operand A and the current time in the RTC of the HMC7000. The result is stored
into Operand B.
When the input is ON, this instruction subtracts the date and time stored in 6 registers starting with A
from the current date and time, and stores the result in 6 registers starting with B. If an invalid data is
contained in the registers, the operation is not executed and the output is turned ON.
Execution Condition:
Set
Input
Operation
Output
OFF
No operation
OFF
ON
Execution (data is valid)
OFF
No execution (data is not valid)
ON
Operand:
Coil or Bit
Register
Constant
Index
Name
X
Y B
S
T.
C.
M
X
W
Y
W
B
W
S
W
T C
D
I
J
K
M
W
A
Subtrahend
√
√
√
√
√ √
√
B
Result
√
√
√
√ √
√
Example:
In this example, the current date/time in the HMC7000 unit is 5pm on January 15
th
, 1998. The date/time
stored in registers D0050-55 is 3:30pm on October 10
th
, 1997. How much time has transpired between
these dates? (see Answer below)
When B020 is ON, the date and time data recorded in D0050 to D0055 are subtracted from the current
date and time of the internal RTC. The result is stored in D0100 to D0105. During normal operation, the