Chapter 6 Instruction Details
XBC E-Type Main Unit 6-245 Ve r. 1
6.34.8 STR, STRP, DSTR, DSTRP
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
STR(P)
DSTR(P)
4~6 O - -
Operand Description Data Type
S1 Data address (0~28) where S2’ decimal places are saved WORD
S2 Binary data to convert INT/DINT
Address to save converted string in
[Flag Setting]
To be set if specified decimal places are other than 0~28
1) STR (String)
(1) Converts specified Binary 16-bit data S2 with decimal places added to specified position S1, into string to
save in the next number of specified device D.
(2) S1 stands for decimal places.
(3) In STR, if S1 range is other than 0~28, Error Flag will be set.
(4) If decimal places more than Binary16 data are specified, the insufficient part will be filled with 0s.
(5) If input Binary 16-bit data is a negative number, attach h2D(-) to the front of the string.
ASCII code