EasyManua.ls Logo

Panasonic FP-E - Page 896

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 − 632
Explanation of example
Three characters are retrieved from the character string of DT0, and are sent to the position byte 1 (second
character) of the character string block of DT20.
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)
3
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 number of characters specified by “S2” is retrieved from the character string specified by “S1”, and is sent
to the “n” position of the character string specified by “D”.
Precautions during programming
The character data from “D” prior to the operation is not cleared (it is overwritten).
If the number of characters specified by “S2” is larger than the number of characters in the character string
specified by “S1”, the number of characters of the character string specified by “S1” is sent.
If the position of “n” is larger than the number of characters of the character string of “D”, an operation error
occurs.
If the number of characters in the operation result is larger than the size of the character string in “D”, then
replacement is done only within a range the size of the character string in “D”.
The position specified by “n” 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