Memory Tables
Section 6-4
6-4 Memory Tables
This section explains the commands used for memory table operations.
To change the contents of a character string memory table entry, use the
Write Character-string Memory Table Command.
To change the contents of a numeral memory table entry, use a Write
Numeral Memory Table Command.
Note that different commands are used to write 4-digit and 8-digit numerical values.
Values can be copied from one memory table entry to another of the same type by using the Copy Memory Table Command.
Reference
• When the contents of an NT20 numeral memory table entry are changed by numeral setting input, a Number Input Notify Command is automati-
cally sent from the NT20 (refer to 6-5-2 Notification of Numeral Setting
Input and Touch Switch Status).
• By creating a bar graph screen and arranging for it to refer to a particular numeral memory table entry, the display contents of the bar graph can be updated by changing the contents of the numeral table entry.
Write Character-string Memory Table
[ESC]
Format
B n
1
1B 42 * * n
2
* * d
1
* * d
2
* * c
1
* * c
2
* * c
3
* * c n
* * n
1 n
2
: Character string length as a number of normal characters (2-digit hexadecimal) 01 to 20
H
(1 to 32) d
1 d
2
: Character-string memory table entry number of write destination (2-digit hexadecimal) 00 to 7F
H
(0 to 127) c
1 c
2 c
3
to c n
: Character-string data
Description
Writes the character-string data to the character-string memory table entry.
The character-string data can contain a mixture of normal alphanumeric characters and marks. When determining the character string length, count each mark as two normal characters.
!Caution If the actual character string is longer than the specified character string length, the specified number of characters is written and the remainder are discarded.
A timeout error message is displayed if the actual character string is shorter than the specified character string length.
218
Memory Tables
Four-digit Write Numeral Memory Table
Format
Section 6-4
[ESC]
1B
C
43 d
1
* * d
2
* * d
3
* * n
1
* * n
2
* * n
3
* * n
4
* * d
1 d
2 d
3
:
Numeral memory table entry number of write destination (3-digit hexadecimal)
000 to 07F
H
(0 to 127) n
1 n
2 n
3 n
4
: Number data (4-digit BCD or 4-digit hexadecimal)
Description
• Writes the 4-digit number data (decimal or hexadecimal) to the specified numeral memory table.
• If a 4-digit number data is written while an 8-digit numeral is displayed, the lower 4 digits are updated.
!Caution This command cannot be used to write negative numbers. Use the 8-digit
Write Command (refer to Eight-digit Write Numeral Memory Table on page 219).
Eight-digit Write Numeral Memory Table
Format
[ESC] D
1B 44 d
1
* * d
2
* * d
3
* * n
1
* * n
2
* * n
3
* * n
4
* * n
5
* * n
6
* * n
7
* * n
8
* * d
1 d
2 d
3
: Numeral memory table entry number of write destination
(3-digit hexadecimal) 000 to 07F
H
(0 to 127) n
1 n
2 n
3 n
4 n
5 n
6 n
7 n
8
: Number data (8-digit BCD or 8-digit hexadecimal)
Description
• Writes the 8-digit number data (decimal or hexadecimal) to the specified numeral memory table entry.
• To write a negative numeral (decimal), specify “F(46H)” for “n1” (in this case, a 7-digit numeral is written.).
219
Memory Tables
Copy Memory Table
Section 6-4
Format
[ESC]
1B
/
2F m
1
* * s
1
* * s
2
* * s
3
* * d
1
* * d
2
* * d
3
* * m
1
: Type of memory table
0 (30
H
): Character-string memory table
1 (31
H
): Numeral memory table s
1 s
2 s
3
: Copy source memory table entry number
000 to 127 (3-digit BCD) d
1 d
2 d
3
: Copy destination memory table entry number
000 to 127 (3-digit BCD)
Description
Copies the contents of the copy source memory table entry to the copy destination memory table entry. The memory table entry contents are copied to a memory table entry of the same type: character-string memory table entry to character-string memory table entry or numeral memory table entry to numeral memory table entry .
220