510
Changing Numeral and Character String Display
Section 8-5
[Indirect specification]
The following shows an example of changing the displayed numeric value by add-
ing a value to the contents of a numeral memory table allocated word which is ref-
erenced in indirect specification.
S Setting at the Support Tool
Set as indicated below using the Support Tool.
- Numeral memory table No. 51: D00000 (Words: 1), Value: 100
- Character string memory table No. 100: Value: “NT631C” (6 digits)
- Character string memory table No. 101: Value: “NT631 ” (6 digits)
- Character string memory table No. 102: Value: “NT31C ” (6 digits)
- Character string memory table No. 103: Value: “NT31 ” (6 digits)
- Contents to be registered for the screen: Numeral display (numeral memory
table No. 51, indirect specification)
Character string display
(numeral memory table No. 51 is designated in indirect specification)
LINE
NT631C
PRODUCT
S PC program
Make a PC ladder program as shown below.
@INC (38)
DM0000
00100
00101
@DEC (39)
DM0000
Numeral memory table No. used
in indirect specification
Numeral memory table No. used
in indirect specification
(1)
(2)
S Program operation
(1) The display on the NT31/NT31C changes to the next item in the sequence
“NT631C” → “NT631 ” → “NT31C ” → “NT31 ” each time bit 00100
comes ON.
(2) The display on the NT31/NT31C changes to the next item in the sequence
“NT31 ” → “NT31C ” → “NT631 ” → “NT631C” each time bit 00101
comes ON.
In this example, the contents of numeral memory table No. 51, which is refer-
enced in indirect specification is not checked. If the program is actually tested,
the contents of numeral memory table No. 51 must not be outside the range of
0100 to 0103.