Panasonic FP-E Programming Manual page 872

Fp series
Table of Contents

Advertisement

High−level Instructions
5
F251
(ATOB)
Outline
Converts ASCII code to 16−bit/32−bit binary data.
Program example
Trigger
R0
10
F251 ATOB, D−16, DT10, DT20, DT100
S1
S2
N
D
Operands
Relay
Operand
Operand
WX WY WR WL
S1
A
A
S2
A
A
N
A
A
D
N/A
A
Operation
Converts the ASCII codes stored in the area specified by S2 to binary data using the conversion method of N
according to 4 control characters specified by S1. The converted result is stored in the area specified by D.
Specifying the various items
Specifying control strings and the meanings [S1]
M D−16 Converts decimal ASCII codes to 16−bit data.
M D−32 Converts decimal ASCII codes to 32−bit data.
M H+16 Converts hexadecimal ASCII codes to 16−bit data.
M H+32 Converts hexadecimal ASCII codes to 32−bit data.
M H−16 Converts hexadecimal ASCII codes to 16−bit data.
M H−32 Converts hexadecimal ASCII codes to 32−bit data.
3 − 608
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
ASCII
Binary conversion
Ladder Diagram
Ladder Diagram
M
S1
S2
Control string
Starting 16−bit area for storing ASCII codes
Conversion method
Starting 16−bit area for storing binary data of converted result
Timer/Counter Register
SV
EV
DT
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
(Normal direction)
(Normal direction)
(Reverse direction)
(Reverse direction)
*The details of the normal and reverse directions are described later.
N
D
Index register
LD
IX
IY
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
Ranges of treated data
−32,768 to +32767
−2,147,483,648 to +2,147,483,647
0 to FFFF
0 to FFFFFFFF
0 to FFFF
0 to FFFFFFFF
FPΣ/FP−X/FP0R
Availability
FP−X/FPΣ 32k/FP0R
Boolean
Address
Instruction
10
ST
R
11
F251(ATOB)
M
DT
DT
DT
Constant
Index
Index
M
M
modifier
K
H
N/A
N/A
A
A
N/A
N/A
N/A
A
A
A
N/A
A
N/A
N/A
N/A
A
A:
Available
N/A: Not Available
0
D−16
10
20
100

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents