SECOND HOUR
SECOND, SECONDP, HOUR, HOURP
SECOND instruction converts time data(S) to second value and saves the result to the Destination (D).
HOUR instruction converts second value(S) to time data (Hour, Minute and Second value) and saves the result to the Destination (D).
| |
S | Time data |
D | Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
SECOND SECONDP HOUR HOURP | S | o | o | o | o | o | o | o | o | - | o | o | o | - | 3 | o | - | - |
D | o | - | o | o | o | - | o | o | - | o | o | o | - |
SECOND
When enabled, SECOND instruction converts time data(S) to second value and saves the result to the Destination (D).
Example)
If X01 is ON, DATERDP instruction write a date value to D10 ~ D16 and then SECOND instruction converts hour, minute and second (D13 to D15) to second value (73283) and then save the second value to D100 and D101.
HOUR
When enabled, HOUR instruction converts second value(S) to time data (Hour, Minute and Second) and saves the result to the Destination (D).
Example)
If X02 is ON, HOURP instruction converts second value (40000) to time data (11:6:40) and then saves the result to D20(11), D21(6), and D22(40).