10
- 113
10.13 Constants
10.13.4 Character string (" ")
10
DEVICE EXPLANATION
(c) The operations when a special value is entered
*1
The following table shows the operation when an arithmetic operation where the
input data is a special value is performed.
* 1 : The special values are -0, denormalized number, nonnumeric number, and
.
* 2 : An error occurs only when the internal operation is set to the single precision.
(3) Designation method
Real numbers can be designated in sequence programs by a "normal expression" or
an "exponential expression".
• Normal expression ••••••••••••••• The specified value is designated as it is.
For example, 10.2345 becomes E10.2345.
• Exponential expression •••••••••The specified value is multiplied by a " 10
n
" exponent.
For example, 1234 becomes E1.234 + 3.
*1
* 1 : + 3 in E1.234 + 3 indicates 10
3
.
10.13.4 Character string (" ")
Note32
(1) Definition
Character string constants are devices used to designate character strings in
sequence programs.
They are designated by quotation marks (e.g. "ABCD1234").
(2) Usable characters
All ASCII code characters can be used in character strings.
The QCPU is sensitive to uppercase and lowercase characters.
(3) Number of designated characters
Character strings extend from the designated character to the NUL code (00
H
).
You can use up to 32 characters for a character string in an instruction such as $MOV.
Table10.28 Operations when a special value is entered
CPU module
Nonnumeric number input
Basic model QCPU
4100 Error occurrence
High Performance model QCPU
4100 Error occurrence
*2
Process CPU
4100 Error occurrence
Redundant CPU
4100 Error occurrence
Universal model QCPU
4140 Error occurrence
Note32
Note10.31
Basic
The Basic model QCPU can use character strings for only the $MOV, STR, DSTR, VAL, DVAL,
ESTR and EVAL instructions.
Basic