Panasonic FP-E Programming Manual page 571

Fp series
Table of Contents

Advertisement

F139
(SHMS)
P139
(PSHMS)
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
Trigger
R0
10
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 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.
4000" [H00004000 (BCD) (DT1 = H0, DT0 = H4000)]
DT1
0
0
1: 6' 40" [H00010640 (BCD) (DT11 = H0001, DT10 = H0640)]
DT11
0
0
Hours data
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Seconds data to hours, minutes, and seconds data
Ladder Diagram
Ladder Diagram
F139 SHMS ,
DT 0 , DT10
S
Starting 16-bit area for storing seconds data (source)
Starting 16-bit area for storing converted hours, minutes, and seconds data
(destination)
Timer/Counter
WL
SV
EV
DT
(*1)
A
A
A
A
A
A
A
A
0
0
Seconds data
F139 (SHMS) instruction execution
0
1
Minutes 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
4
0
0
DT10
0
6
4
Seconds data
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F139
(SHMS)
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 − 307
0
0
10

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents