Panasonic FP-E Programming Manual page 569

Fp series
Table of Contents

Advertisement

F138
(HMSS)
P138
(PHMSS)
Outline
Converts hour, minute, and second data to seconds data.
For the FP0R/FPΣ/FP−X, the P type high−level instruction "P138
(PHMSS)" is not available.
Program example
Trigger
R0
10
F138 HMSS ,
S
D
Operands
Relay
Operand
Operand
WX WY WR
S
A
A
D
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 hour, minute, and second data stored in data registers DT1 and DT0 to seconds data when
trigger R0 turns on. The converted seconds data is stored in data registers DT11 and DT10.
7: 45' 30" [H00074530 (BCD) (DT1 = H7, DT0 = H4530)]
DT1
0
0
Hours data
27930" [H00027930 (BCD) (DT11 = H2, DT10 = H7930)]
DT11
0
0
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Hours, minutes, and seconds data to seconds data
Ladder Diagram
Ladder Diagram
DT 0 , DT10
S
Starting 16-bit area for storing hours, minutes, and seconds data (source)
Starting 16-bit area for storing converted seconds data (destination)
Timer/Counter
WL
SV
EV
DT
(*1)
A
A
A
A
A
A
A
A
0
7
4
Minutes data
F138 (HMSS) instruction execution
0
2
7
Seconds data
D
Index
Register
register
LD
FL
IX
IY
(*1)
(*2)
(*3)
A
A
A
A
N/A
A
A
A
A
N/A
DT0
5
3
Seconds data
DT10
9
3
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F138
(HMSS)
DT
DT
Constant
Index
Index
modifier
K
H
N/A
N/A
A
N/A
N/A
A
A:
Available
N/A: Not Available
0
0
3 − 305
0
0
10

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents