Appendices
A-24
CP2E CPU Unit Software User’s Manual(W614)
A-1-10
Conversion Instructions
Instruction
Mnemonic
Variations
Symbol/Operand
Function
BCD-TO-BINA
RY
BIN
@
Converts BCD data to binary data.
DOUBLE
BCD-TO-DOU-
BLE BINARY
BINL
@
Converts
8
-digit BCD data to
8
-digit hexadecimal (
3
2-bit binary)
data.
BINARY-TO-
BCD
BCD
@
Converts a word of binary data to a word of BCD data.
DOUBLE
BINARY-TO-
DOUBLE BCD
BCDL
@
Converts
8
-digit hexadecimal (
3
2-bit binary) data to
8
-digit BCD
data.
2'S COMPLE-
MENT
NEG
@
Calculates the 2's complement of a word of hexadecimal data.
BIN(023)
S
R
S
: Source word
R
: Result word
(BCD)
(BIN)
R
BINL(05
8
)
S
R
S
: 1st source word
R
: 1st result word
(BCD)
(BIN)
(BCD)
(BIN)
R
R+1
BCD(024)
S
R
S
: Source word
R
: Result word
(BCD)
(BIN)
R
BCDL(059)
S
R
S
: 1st source word
R
: 1st result word
(BIN)
(BCD)
(BIN)
(BCD)
R
R+1
NEG(160)
S
R
S
: Source word
R
: Result word
2's complement
(Comp 1)
(S)
(R)
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: ......