High−level Instructions
3 − 307
Outline Converts seconds data to hour, minute, and second data.
For the FP0R/FPΣ/FP−X, the P type high−level instruction “P139
(PSHMS)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
10
F139 SHMS , DT 0 , DT10
S
D
Trigger
R0
10
11
ST R 0
F139 (SHMS)
DT 0
DT 10
S Starting 16-bit area for storing seconds data (source)
D Starting 16-bit area for storing converted hours, minutes, and seconds data
(destination)
Operands
modifier
S A A A A A A A A A A N/A N/A N/A A
D N/A A A A A A A A A A N/A N/A N/A A
(*1) This cannot be used with the FP0 and FP−e.
(*2) This cannot be used with the FP0, FP−e, FP0R, FPΣ, FP−X.
(*3) With the FP0R, FPΣ,FP−X, FP2, FP2SH, and FP10SH, this is I0 to IC.
Explanation of example
Converts the seconds data stored in data registers DT1 and DT0 to hour, minute, and second data when
trigger R0 turns on. The converted hour, minute, and second data is stored in data registers DT11 and DT10.
00004000
DT1 DT0
F139 (SHMS) instruction execution
Hours data
4000” [H00004000 (BCD) (DT1 = H0, DT0 = H4000)]
00010640
DT11 DT10
Seconds data
1: 6’ 40” [H00010640 (BCD) (DT11 = H0001, DT10 = H0640)]
Minutes data Seconds data
F139
P139
(PSHMS)
(SHMS)
Seconds data to hours, minutes, and seconds data
A: Available
N/A: Not Available