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: [email protected]
Содержание FP-X
Страница 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 110: ...Relays Memory Areas and Constants 1 86 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 111: ...Chapter 2 Basic Instructions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 112: ...Basic Instructions 2 2 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 184: ...Basic Instructions 2 74 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 264: ...Basic Instructions 2 154 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 265: ...Chapter 3 High level Instructions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 266: ...High level Instructions 3 2 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 288: ...High level Instructions 3 24 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 406: ...High level Instructions 3 142 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 483: ...High level Instructions 3 219 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 537: ...High level Instructions 3 273 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 838: ...High level Instructions 3 574 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 862: ...High level Instructions 3 598 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1052: ...High level Instructions 3 788 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1053: ...Chapter 4 Precautions Concerning Programs Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1054: ...Precautions Concerning Programs 4 2 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1088: ...Precautions Concerning Programs 4 36 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1089: ...Chapter 5 Appendix Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1332: ...5 244 5 7 ASCII Codes Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...