4-25
4 Understanding Programming
CP2E CPU Unit Software User’s Manual(W614)
4-5 Co
nstants
4
4-4-7 I/O Ref
resh Timing
z
Using Operands to Specify Numbers
z
Using Floating-point (Real Number) Notation for Operands
Additional Information
•
Zero suppression can be used when inputting any data type.
For example, “&2” and “&02”, “#000F” and “#F” are treated as the same.
•
“BIN” indicates binary data.
•
BCD data is binary coded decimal.
Data type
Decimal values
Hexadecimal values or BCD values
Notation
No symbol (value only)
Not possible.
Application
example
SBS 0
Jumps to subroutine 0.
Precautions for
correct use
An error will occur and the left bus bar
will be displayed in red if a decimal
value is input with & from the CX-Pro-
grammer.
Data type
Decimal values
Hexadecimal values
Notation
With + or -
With # symbol
(for single-precision data)
Application
example
FIX +0.10 D0
Converts floating point +0.10 into 16-
bit signed binary data and stores the
integer portion in D0.
FIX #
3
DCCCCCD D0
Converts floating point #
3
DCCCCCD (+0.10 deci-
mal) into 16-bit signed binary data and stores the
integer portion in D0.
Precautions for
correct use
The input will be treated as an address
in the CIO Area, an error will occur,
and the left bus bar will be displayed in
red if a decimal value with a decimal
point is input w from the CX-
Programmer.
The input will be treated as an address in the CIO
Area, 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.
10
Nu
m
b
er only
0.10
+ or - sign
Decimal
v
al
u
e
(real n
u
m
b
er)
+
#
3DCCCCCD
Hexadecimal sym
b
ol
Hexadecimal
v
al
u
e
u
sing 0 to F
Содержание 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: ......