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
Index
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
E
D
DT5
0
DT4
3
2
2 0 4 6 4 5 4 4 2 0 3 0 3 3 3 2
DT3
1
C
DT2
B
A
3 1 4 3 4 2 4 1
[S]
[D]
R20: on
Character constants
M A B C 1 2 3 0 D E F
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: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...