EasyManua.ls Logo

Panasonic FP-E - Page 480

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High−level Instructions
3 − 216
Outline Converts character constants to ASCII code.
4
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P95 (PASC)” is not available.
Program example
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
10
F95 ASC, M ABC1230_DEF, DT 2
S
D
Trigger
R20
“_” indicates a space. In actuality, this will be blank.
10
11
ST R 20
F 95 (ASC)
M ABC1230_DEF
DT 2
S Character constants (max. 12 letters) (source)
D Starting 16-bit area for storing 6-word ASCII code (destination)
Operands
Operand
Relay Timer/Counter Register
Index
register
Constant
Inde
x
Operand
WX WY WR
WL
(*1)
SV EV DT
LD
(*1)
FL
(*2)
IX
(*3)
IY K H M
Index
modifier
S N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A A N/A
D N/A A A A A A A A A A N/A N/A N/A N/A N/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.
ASCII HEX code
Data register
ASCII character
DT7
F
DT6
ED
DT5
0
DT4
32
2046454420303332
DT3
1C
DT2
BA
31434241
[S]
[D]
R20: on
Character constants
M ABC1230 DEF
SPACE
Character constant
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.
F95
P95
(PASC)
(ASC)
Character → ASCII code
A: Available
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com