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

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

Advertisement

5 Message Display

5.4 String Data Storage Method

The values of device addresses read as character codes are stored in the upper byte and lower byte of words
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: When reference device address D100 = 3132 (Hex), D101 = 3334 (Hex), D102 = 3500 (Hex)
• When from Upper byte is selected for Storage Method of String Data
Device address
D100
D101
D102
• When from Lower byte is selected for Storage Method of String Data
Device address
D100
D101
D102
• When handling values of device addresses as character codes, 0 is handled as the NULL terminating
character to end the string. Therefore, when the upper byte is 0, nothing is displayed.
• To display only a single character, set the lower byte to 0.
Example: To display a single-byte 7
10-116
Stored value
Upper byte
31 (Hex)
33 (Hex)
35 (Hex)
NULL terminating character
Stored value
Upper byte
32 (Hex)
34 (Hex)
0
NULL terminating character
'7'
3700 (Hex)
WindO/I-NV4 User's Manual
Displayed string
Lower byte
32 (Hex)
12
34 (Hex)
34
0
5
Displayed string
Lower byte
31 (Hex)
21
33 (Hex)
43
35 (Hex)
When handling values of device addresses as character
codes, 0 is handled as the NULL terminating character
to end the string. Therefore, when the upper byte is 0,
nothing is displayed.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents