Formats For Storing Variables In Memory - Omron C200H-ASC11 Manual

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Formats for Storing Variables in Memory

Variables are stored to memory in the following ways, depending on the variable type.
• Short Integer Variables
15
Address
MSB
• Long Integer Variables
15
Address
MSB
• Single-precision Real Number Variables
15
Address
S
E
• Double-precision Real Number Variable
15
S
• Character String Variable
15
Maximum length
First character
Appendix D
0
LSB
0
LSB
0
M
M
LSB
0
E
M
M
M
M
LSB
8
7
0
Current length
Second character
Final character
15
S
D
1 bit
15 bits
S: Sign (0: positive, 1: negative)
D: Numeric value
15
S
D
1 bit
31 bits
S: Sign (0: positive, 1: negative)
D: Numeric value
31
S
E
1 bit
8 bits
S: Sign (0: positive, 1: negative)
E: Exponent (offset: 127)
M: Mantissa
63
S
E
1 bit
11 bits
S: Sign (0: positive, 1: negative)
E: Exponent (offset: 1023)
M: Mantissa
• Add empty bytes and adjust so that there will be an
even number of memory bytes for each variable.
• The character data section not being used beyond
the current length contains undefined data.
0
0
0
M
23 bits
0
M
52 bits
275

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents