4-7
IM 701730-17E
Before Programming
4
<Character String Data>
<Character string data> is not a specified character
string like <Character data>. It is an arbitrary
character string. A character string must be enclosed
in apostrophes (
'
) or double quotation marks (
"
).
Form
Example
<Character string data>
'ABC' "IEEE488.2-1987"
• Response messages are always enclosed in double
quotation marks.
• If a character string contains a double quotation
mark (
"
), the double quotation mark will be replaced
by two concatenated double quotation marks (
""
).
This rule also applies to a single quotation mark
within a character string.
• <Character string data> is an arbitrary character
string, therefore this instrument assumes that the
remaining program message units are part of the
character string if no apostrophe (
'
) or double
quotation mark (
"
) is encountered. As a result, no
error will be detected if a quotation mark is omitted.
<Filename>
Gives the name of a file. The format is as follows.
Form
Example
{<NRf>|<Character data>|<Character string>}
1 CASE "CASE"
• If you input an <NRf> value, the system converts
the value (after rounding to the nearest integer) to
the corresponding 8-character ASCII string. (If you
set the value to 1, the name becomes
"00000001"
.) Note that negative values are not
allowed.
• The first 12 characters of <Character Data> are
assigned as the file name.
• The first 14 characters of <Character String Data>
are assigned as the file name.
• Response messages always return filenames as
<character string> arguments.
4.4 Data
<Block Data>
<Block data> is arbitrary 8-bit data. <Block data> is
only used for response messages. Response
messages are expressed in the following form.
Form
Example
#N<N-digit decimal value><Data byte string>
#800000010ABCDEFGHIJ
• #N
Indicates that the data is <Block data>.
"N"
is an
ASCII character string number (digits) which
indicates the number of data bytes that follow.
• <N-digits decimal value>
Indicates the number of bytes of data. (Example:
00000010=10 bytes
)
• <Data byte string>
The actual data. (Example:
ABCDEFGHIJ
)
• Data is comprised of 8-bit values (0 to 255). This
means that the ASCII code
"0AH,"
which stands
for
"NL,"
can also be a code used for data. Hence,
care must be taken when programming the
controller.