Panasonic FP0 User Manual page 316

Programmable controller
Hide thumbs Also See for FP0:
Table of Contents

Advertisement

Num-
Name
ber
Data conversion instructions
F70
Block check
P70
code
calculation
F71
Hexadecimal
data → ASCII
P71
code
F72
ASCII code
→ Hexadeci-
P72
mal data
F73
4-digit BCD
data → ASCII
P73
code
F74
ASCII code
→ 4-digit
P74
BCD data
F75
16-bit binary
data → ASCII
P75
code
F76
ASCII code
→ 16-bit
P76
binary data
F77
32-bit binary
data → ASCII
P77
code
14-74
Boolean
Operand
BCC
S1, S2, S3,
PBCC
D
HEXA
S1, S2, D
PHEXA
AHEX
S1, S2, D
PAHEX
BCDA
S1, S2, D
PBCDA
ABCD
S1, S2, D
PABCD
BINA
S1, S2, D
PBINA
ABIN
S1, S2, D
PABIN
DBIA
S1, S2, D
PDBIA
Description
Creates the code for checking the data specified by
"S2" and "S3" and stores it in "D".
The calculation method is specified by "S1".
Converts the hexadecimal data specified by "S1"
and "S2" to ASCII code and stores it in "D".
Example: HABCD→ H 42 41 44 43
B A D C
Converts the ASCII code specified by "S1" and
"S2" to hexadecimal data and stores it in "D".
Example: H 44 43 42 41 → HCDAB
D C B A
Converts the four digits of BCD data specified by
"S1" and "S2" to ASCII code and stores it in "D".
Example: H1234→ H 32 31 34 33
2 1 4 3
Converts the ASCII code specified by "S1" and
"S2" to four digits of BCD data and stores it in "D".
Example: H 34 33 32 31 → H3412
4 3 2 1
Converts the 16 bits of binary data specified by
"S1" to ASCII code and stores it in "D" (area of "S2"
bytes).
Example: K-100→ H 30 30 31 2D 20 20
0 0 1 -
Converts the ASCII code specified by "S1" and
"S2" to 16 bits of binary data and stores it in "D".
Example: H 30 30 31 2D 20 20 → K-100
0 0 1 -
Converts the 32 bits of binary data (S1+1, S1) to
ASCII code and stores it in D (area of "S2" bytes).
Steps
9
7
7
7
9
7
7
11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents