![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262068.webp)
4 Understanding Programming
4-24
CP2E CPU Unit Software User’s Manual(W614)
Signed Binary
Unsigned BCD
Data type
Decimal values
Hexadecimal values
Notation
or -
With # symbol
Application
example
MOV -10 D0
Stores 10 decimal (#FFF6 hex) in D0.
MOV # FFF6 D0
Stores #FFF6 hex (10 decimal) in D0.
Precautions for
correct use
The input will be treated as an address in
the CIO Area and the contents of that
address will be specified if a decimal
value w or - is input from the CX-
Programmer.
•
An error will occur and the left bus bar will be
displayed in red if a hexadecimal value
including A to F is input without # from the
CX-Programmer.
•
The input will be treated as an address in the
CIO Area and the contents of that address
will be specified if a decimal value without #
is input from the CX-Programmer.
Range
16 bits
Negative: -
3
276
8
to -1
Negative: #
8
000 to #FFFF
Positive: 0 to +
3
2767
Positive: #0000 to #7FFF
32 bits
Negative: -21474
83
64
8
to -1
Negative: #
8
0000000 to #FFFFFFFF
Positive: 0 to +21474
83
647
Positive: #00000000 to #7FFFFFFF
Data type
Decimal values
BCD values
Notation
None
Application
example
+B #0010 D0 D1
Adds #0010 and the contents of D0 as BCD data
and stores the result in D1.
Precautions for
correct use
The input will be treated as an address in the CIO
Area and the contents of that address will be
specified if a decimal value without # is input from
the CX-Programmer.
Range
16 bits
None
#0000 to #9999
32 bits
#0000 0000 to #99999999
-
10
+ or - sign
Decimal
v
al
u
e
(integer)
#
FFF6
Hexadecimal sym
b
ol
Hexadecimal
v
al
u
e
u
sing 0 to F
#
0010
BCD sym
b
ol
Decimal
v
al
u
e
u
sing
0 to 9
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......