String Data Storage Method; Advanced Usage - IDEC MICRO/I HG4G-CJT22 F-B Series User Manual

Micro/i operator interfaces for windo/i-nv4
Table of Contents

Advertisement

2.6 String Data Storage Method

The entered text is stored in the upper byte and lower byte according to the Storage Method of String Data
setting. Storage Method of String Data is configured on the System tab in the Project Settings dialog box.
For details, refer to Chapter 4 "3.1 System Tab" on page 4-25.
Example 1:When the destination device address is "LDR100" and the entered text is "ABCDE"
• When from Upper byte is selected for Storage Method of String Data
Device address
LDR100
LDR101
LDR102
• When from Lower byte is selected for Storage Method of String Data
Device address
LDR100
LDR101
LDR102
Example 2:When the destination device address is "LDR100" and the entered text is " 完了 "
• When from Upper byte is selected for Storage Method of String Data
Device address
LDR100
LDR101
LDR102
• When from Lower byte is selected for Storage Method of String Data
Device address
LDR100
LDR101
LDR102
When handling strings, 0 is written to the device as the NULL terminating character and treated as the end
of the string.

2.7 Advanced Usage

Using the System Area
• When finished entering text by pressing ENT, 1 is written to the System Area 2 Character Input Setting Complete
bit (address number+3, bit 5).
• When CAN is pressed, entry mode is canceled and 1 is written to the System Area 2 Character Input Setting Cancel
bit (address number+3, bit 6). However, if the keypad is closed by pressing
bar or another Character Input is pressed and selected before finished entering the text by pressing ENT, entry
mode is canceled and 1 is not written to the System Area 2 Character Input Setting Cancel bit (address number+3,
bit 5).
• To clear the System Area 2 character input setting complete bit or the character input setting cancel bit, write 1 to
System Area 1 Character Input Setting Clear bit (address number+1, bit 11). To automatically clear these bits when
the Character Input keypad is pressed in entry mode, select the Clear Keypad bit in System Area
automatically check box on the System tab in the Project Settings dialog box.
Stored value
Upper byte
'A' = 41 (Hex)
'C' = 43 (Hex)
'E' = 45 (Hex)
NULL terminating character
Stored value
Upper byte
'B' = 42 (Hex)
'D' = 44 (Hex)
0
NULL terminating character
Stored value
Upper byte
8A (Hex)
97 (Hex)
0
NULL terminating character
Stored value
Upper byte
AE (Hex)
B9 (Hex)
NULL terminating character
WindO/I-NV4 User's Manual
Lower byte
'B' = 42 (Hex)
'D' = 44 (Hex)
0
Lower byte
'A' = 41 (Hex)
'C' = 43 (Hex)
'E' = 45 (Hex)
Lower byte
AE (Hex)
'
'
B9 (Hex)
'
'
Lower byte
8A (Hex)
'
'
97 (Hex)
'
'
0
(close) on the popup screen's title
2 Character Input
10
10-55

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents