EasyManua.ls Logo

Panasonic FP-E - Page 898

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 − 634
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.
8
DT0
DT1
DT2
DT3
10
“B”
“A”
“D”
“C”
“E”
DT4
DT5
DT6
“F”
“G”“H”
Higher
16 bits
Lower
16 bits
8
DT20
DT21
DT22
DT23
10
“2”
“1”
(Byte 1)
DT24
DT25
DT26
Higher
16 bits
Lower
16 bits
(Byte 2)
(Byte 0)
(Byte 3)
(Byte 4)(Byte 5)
(Byte 6)(Byte 7)
(Byte 8)
(Byte 9)
8
DT20
DT21
DT22
DT23
10
“A”
“1”
“C”
“B”
(Byte 1)
DT24
DT25
DT26
Higher
16 bits
Lower
16 bits
(Byte 2)
(Byte 0)
(Byte 3)
(Byte 4)(Byte 5)
(Byte 6)(Byte 7)
(Byte 8)
(Byte 9)
“6”
“8”
“5”
“7”
“5”“6”
“4”
“3”
“7”
“8”
Area where operation results are stored
Designate with the user program
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): Turns on and stays on when:
・Error flag (R9008): 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”
・Carry flag (R9009): Turns on for an instant when the result of the operation is larger than the size
of the character string specified by “D”
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com