4 Understanding Programming
4-20
CP2E CPU Unit Software User’s Manual(W614)
Note
For specific application methods, refer to
The following table shows the data formats that the CP2E CPU Units can handle.
Auto-
increment
The contents of IR
is incremented
by +1 or +2 after referencing the
value as an PLC memory address.
+1: Specify ,IR
+
+2: Specify ,IR
+ +
,IR0++
LD ,IR0 ++
Increments the contents of IR0 by 2 after
the bit with the PLC memory address in IR0
is loaded.
,IR1+
MOV #0001 ,IR1 +
Increments the contents of IR1 by 1 after
#0001 is stored in the word with the PLC
memory address in IR1.
Auto-dec-
rement
The contents of IR
is decremented
by -1 or -2 after referencing the
value as an PLC memory address.
-1: Specify ,-IR
-2: Specify ,--IR
,--IR0
LD ,--IR0
After decrementing the contents of IR0 by
2, the bit with the PLC memory address in
IR0 is loaded.
,-IR1
MOV #0001 ,-IR1
After decrementing the contents of IR1 by
1, #0001 is stored in the word with the PLC
memory address in IR1.
4-4-6
Data Formats
Type
Data format
Decimal
equivalent
4-digit
hexadeci-
mal
Unsigned
binary
&0 to
&655
3
5
#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
8
000 to FFFF hex. It will be expressed as the
2
’
s complement of the absolute value of the negative value (decimal).
Negative:
-1 to
-
3
276
8
Negative:
#
8
000 to
#FFFF
Positive:
0 to
3
2767
Positive:
#0000 to
#7FFF
Operand
Description
Notation
Application examples
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
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
b
it:
1:
N
egati
v
e, 0:
N
on-negati
v
e
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......