EasyManua.ls Logo

Omron CP1E CPU UNIT SOFTWARE - Data Formats

Omron CP1E CPU UNIT SOFTWARE
450 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4-13
4 Understanding Programming
CP1E CPU Unit Software User’s Manual(W480)
4-3 Programming Instructions
4
4-3-6 Data Formats
Note For Timer Completion Flags and Counter Completion Flags, there is no distinction between word addresses and bit
addresses.
The following table shows the data formats that the CP1E CPU Units can handle.
Operand Description Example
Application
examples
Specifying
indirect DM
addresses in
Binary Mode
An offset from the beginning of the DM Area
is specified. The contents of the address will
be treated as binary data (E-type CPU Unit
0000 to 2047, N/NA-type CPU Unit 0000 to
8191) to specify the word address in DM
Area.
Add the @ symbol at the front to specify an
indirect address in Binary Mode.
MOV #0001 @D300
Specifying
indirect DM
Addresses
in BCD
Mode
An offset from the beginning of the DM Area
is specified. The contents of the address will
be treated as BCD data (E-type CPU Unit
0000 to 2047, N/NA-type CPU Unit 0000 to
8191) to specify the word address in the DM
Area.
Add an asterisk (*) at the front to specify an
indirect address in BCD Mode.
MOV #0001 *D200
4-3-6 Data Formats
Type Data format
Decimal
equivalent
4-digit
hexadeci-
mal
Unsigned
binary
&0 to
&65535
#0000 to
#FFFF
Signed
binary
The data is treated as 16-bit signed binary data using the leftmost bit as the
sign bit. The value is expressed in 4-digit hexadecimal.
Positive numbers: If the leftmost bit is OFF, it indicates a non-negative value.
For 4-digit hexadecimal, the value will be 0000 to 7FFF hex.
Negative numbers: If the leftmost bit is ON, it indicates a negative value. For 4-
digit hexadecimal, the value be 8000 to FFFF hex. It will be expressed as the
2’s complement of the absolute value of the negative value (decimal).
Negative:
-1 to
- 32768
Negative:
#8000 to
#FFFF
Positive:
0 to 32767
Positive:
#0000 to
#7FFF
@D300
Add @
&256 decimal
(#0100 hexadecimal)
Specify D00256
Contents
Contents
Specify D100
* D200
Add *
#0100
2
15
2
3
32768
2
14
2
2
16384
2
13
2
1
8192
2
12
2
0
4096
2
11
2
3
2048
2
10
2
2
1024
2
9
2
1
512
2
8
2
0
256
2
7
2
3
128
2
6
2
2
64
2
5
2
1
32
2
4
2
0
16
2
3
2
3
8
2
2
2
2
4
2
1
2
1
2
2
0
2
0
1
Binary
Hexadecimal
Decimal
15 14
131211109876543210
2
15
2
3
-
32768
2
14
2
2
16384
2
13
2
1
8192
2
12
2
0
4096
2
11
2
3
2048
2
10
2
2
1024
2
9
2
1
512
2
8
2
0
256
2
7
2
3
128
2
6
2
2
64
2
5
2
1
32
2
4
2
0
16
2
3
2
3
8
2
2
2
2
4
2
1
2
1
2
2
0
2
0
1
Binary:
Hexadecimal:
Decimal:
15 14
13 12 11 10 9 8 7 6 5 4 3 2 1 0
Sign bit:
1:Negative, 0:Non-negative

Table of Contents

Related product manuals