Panasonic FP-E Programming Manual page 898

Fp series
Table of Contents

Advertisement

High−level Instructions
Explanation of example
The DT0 character string is replaced with the number of characters in DT1 (5 characters) from byte p=1 in
DT20. In this case, n=3 characters of the data stored in the source are deleted in the replacement.
10
DT0
8
DT1
"A"
"B"
DT2
"C"
DT3
"D"
"E"
DT4
"F"
DT5
"H"
"G"
DT6
Higher
Lower
16 bits
16 bits
10
DT20
8
DT21
"2"
"1"
DT22
(Byte 1)
(Byte 0)
"3"
"4"
DT23
(Byte 3)
(Byte 2)
"6"
"5"
DT24
(Byte 5)
(Byte 4)
"8"
"7"
DT25
(Byte 7)
(Byte 6)
DT26
(Byte 9)
(Byte 8)
Higher
Lower
16 bits
16 bits
Description
The character string specified by "S" replaces the character string specified by "D", for the number of
characters specified by "n", starting from the position specified by "P".
Precautions during programming
The character data from "D" prior to the operation is not cleared (it is overwritten).
If the number of characters in "n" is larger than the number of characters in the character string "S"
subsequent to the point designated with "p", replacement is done for the number of characters in the
character string "S" subsequent to the point designated with "p".
If the position specified by "p" is larger than the number of characters in the character string specified by "n",
an operation error occurs.
The position specified by "p" sets the least significant byte as K0 (byte 0), and the positions are counted in the
order of 0, 1, 2, etc., starting from the least significant byte.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
・Carry flag (R9009): Turns on for an instant when the result of the operation is larger than the size
3 − 634
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
DT20
DT21
"A"
DT22
(Byte 1)
"C"
DT23
(Byte 3)
"6"
DT24
(Byte 5)
"8"
DT25
(Byte 7)
DT26
(Byte 9)
Higher
16 bits
Turns on and stays on when:
Turns on for an instant when:
− The specified range is exceeded when an index is modified.
− The number of characters is larger than the character string size
− The number of characters of "D" is larger than the number of characters of "n"
of the character string specified by "D"
Designate with the user program
10
8
"1"
(Byte 0)
"B"
(Byte 2)
Area where operation results are stored
"5"
(Byte 4)
"7"
(Byte 6)
(Byte 8)
Lower
16 bits

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents