Panasonic FP-E Programming Manual page 480

Fp series
Table of Contents

Advertisement

High−level Instructions
F95
(ASC)
P95
(PASC)
Outline
Converts character constants to ASCII code.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P95 (PASC)" is not available.
Program example
Trigger
R20
10
F95 ASC, M ABC1230_DEF, DT 2
"_" indicates a space. In actuality, this will be blank.
S
D
Operands
Relay
Operand
Operand
WX WY WR
S
N/A N/A N/A N/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 character constants "ABC1230_DEF" to ASCII code when trigger R20 turns on. The ASCII
code is stored in data registers DT2 to DT7.
[S]
Character constants
Data register
[D]
2 0 4 6 4 5 4 4 2 0 3 0 3 3 3 2
ASCII HEX code
ASCII character
SPACE
When the number of character constants specified by S is less than 12, the ASCII code H20 (SPACE) is
stored in the extra destination area.
3 − 216
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Character → ASCII code
Ladder Diagram
Ladder Diagram
S
Character constants (max. 12 letters) (source)
Starting 16-bit area for storing 6-word ASCII code (destination)
Timer/Counter
WL
SV
EV
DT
(*1)
N/A
N/A
N/A N/A N/A
A
A
A
A
Character constant
M A B C 1 2 3 0 D E F
DT7
DT6
DT5
F
E
D
4
D
Index
Register
register
LD
FL
IX
IY
(*1)
(*2)
(*3)
N/A
N/A
A
A
A
A
N/A
R20: on
DT4
DT3
3 1 4 3 4 2 4 1
0
3
2
1
Boolean
Address
Instruction
10
ST
R
11
F
95
M ABC1230_DEF
DT
Constant
Index
Index
modifier
K
H
M
N/A
N/A
A
N/A
N/A
N/A
A:
Available
N/A: Not Available
DT2
C
B
A
20
(ASC)
2
N/A
N/A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents