287
Memory Tables
Section 7-3
S
Storage type and stored data
Internally, numeral memory tables store numeric values comprising eight signed
binary (or hexadecimal) digits. When the initial value or contents of the allocated
word(s) are stored in a memory table, the numeric value is interpreted in accor-
dance with the setting for “Storage Type” and is stored after conversion to signed
binary data. Accordingly, the same data will be interpreted in different ways by
the NT31/NT31C depending on the setting made for “Storage Type”.
Reference: Signed binary data expresses negative values as the complement of two (the bits
are inverted and 1 is added).
- Storage type for the BCD format
When using BCD format, the “Value” (initial value) and contents of the word(s)
at the host are interpreted as BCD (binary coded decimal) data. However,
since it is not possible to input a negative sign in a host word, the letter “F” at
the most significant digit is used instead to denote negative values (a negative
sign can be used in the setting for “Value”, so negative values can be input in
the normal manner for this setting).
If a value with a letter from “A” to “E” inclusive as its most significant digit, or a
value with a letter from “A” to “F” inclusive at any position other than the most
significant digit is stored in a host word, it is invalidated as illegal data and the
existing value is retained.
If the contents of a numeral memory table exceed the range that can be han-
dled by the allocated words of the host, the value is written to the host as “neg-
ative sign + less significant digits” (see below).
Contents of numeral memory table
(decimal notation)
Data at host
Conditions
12345
→
2345
1 allocated word
−
1234
→
F234
1 allocated word
When using BCD format
123456789
→
23456789
2 allocated words
−
12345678
→
F2345678
2 allocated words
When using BCD format
- Storage type for binary format
When binary format is used, the initial value and contents of the host word(s)
are interpreted as signed binary data and are stored without change in the nu-
meral memory table.
With binary format, the most significant bit is the sign bit (when this bit is “1” it
indicates a negative value). When there is one allocated word, the most signif-
icant bit is bit 15; when there are two allocated words it is bit 31.
However, when the initial value is input using the Support Tool, the basis for input
is always the decimal system, regardless of the setting for “Storage Type”. The
“
−
” symbol can be input to indicate a negative value. If “$” is input at the head of
the input value, it will be input as a hexadecimal value (after confirmation of input,
it is displayed in decimal).
Содержание NT31 Series
Страница 1: ...Cat No V043 E1 2 Programmable Terminal NT31 31C OPERATION MANUAL...
Страница 2: ...iii NT31 31C Programmable Terminal Operation Manual Produced March 1999...
Страница 41: ...30 Before Operating Section 1 5...
Страница 75: ...64 Using a Memory Unit NT31 NT31C without V1 Section 3 6...
Страница 160: ...149...
Страница 174: ...163...
Страница 193: ...182...
Страница 211: ...200...
Страница 235: ...224 c Return to the screen on which screens are specified...
Страница 262: ...251...
Страница 284: ...273 The printer type control protocol and printing method are set with the memory switches of the NT31 NT31C...
Страница 347: ...336 Screen number 5 is set for touch switch 1 To next screen When touch switch 1 is pressed Screen number 5...
Страница 360: ...349 It is not possible to control a gloval window by touch switch operation...
Страница 375: ...364 For details on the method of display depending on the General settings refer to Common Attributes page 358...
Страница 391: ...380 1 The 100 value 0 value and 100 value must comply with the following relationship 100 value 0 value 100 value...
Страница 468: ...457 254 255 0 2 7 1 4 5 3 3 0 0 0 5 9 8 0 3...
Страница 476: ...465 Special Functions Section 7 16...
Страница 495: ...484 OFF...
Страница 610: ...599 Commands Responses Section 9 3...
Страница 630: ...619 Examples of Actual Applications of Memory Link Section 10 2...