Section 3 Using PTs
3-4 Changing Numeral and Character String Display
3-10
NS Series Programming Manual
3-4 Changing Numeral and Character String Display
This section describes how to change the display for numerals and character strings.
Refer to
2-8 Common Functional Object Functions
for information on the functional objects used to
display numerals and character strings. These functional objects are numeral display and input objects,
string display and input objects, and text.
3-4-1 Methods for Changing Numeral and Character String Display
The following methods can be used to change numeral and character string display on NS-series PTs.
•
Change the contents of addresses allocated to numeral display and input objects.
•
Change the contents of addresses allocated to string display and input objects.
•
Indirectly specify text character strings.
•
Use Indirect Specification of String Tables for Labels.
•
Using the label message display function
•
Changing the contents displayed using the contents display function
•
Press a Command Button with the Key Button function.
•
Switch labels.
Changing Address Contents for Numeral Display and Input Objects
The display can be refreshed for numeral display and input objects if a host address is allocated to the
object. The display is refreshed simply by changing the contents of that address in the host.
The address referenced by one numeral display and input object can be switched by modifying the in-
dex of the address.
Perform the following procedure to modify indexes.
1. Set index Ix (x:0 to 9) to the allocated address under the numeral display and input object property
setting made using CX-Designer.
Example: HOST 1: DM00000I0
2. During operation, change the contents of the word in system memory ($SW27 to $SW36) that cor-
responds to index Ix (x: 0 to 9). The contents are set in BCD.
Example: If 5 (BCD) is set to system memory word $SW27 which corresponds to I0:
HOST 1: The numeral display and input object to which DM00000I0 is set will display the contents
of HOST 1: DM00005.
Changing Address Contents for String Display and Input
Display can be refreshed for string display and input objects if words on the host at which a character
code is stored are allocated as the address. The display is refreshed simply by changing the contents
of those words from the host.
The displayed address by one string display and input object can be switched by modifying the index of
the address.
The method for modifying indexes is the same as for numeral display and input objects.
N
N
N
o
o
o
t
t
t
e
e
e
♦
ASCII and Unicode character codes can be used for string display and input objects.
Содержание NS -
Страница 2: ......
Страница 12: ...Contents vi NS Series Programming Manual...
Страница 46: ...Section 1 Overview 1 5 Procedure before Operation 1 33 NS Series Programming Manual...
Страница 590: ...Section 3 Using PTs 3 12 Function Key Settings NS15 Only 3 35 NS Series Programming Manual...
Страница 604: ...Section 4 Using Functions 4 1 Application 4 13 NS Series Programming Manual...
Страница 640: ...Section 5 Troubleshooting and Maintenance 5 2 Error Messages 5 35 NS Series Programming Manual...
Страница 680: ...Appendices Appendix 6 Additional NS Series Functions A 39 NS Series Programming Manual...
Страница 682: ......
Страница 683: ......