Instruction Support and Operand Restrictions
Instruction
Mnemonic
DOUBLE 2'S COM-
NEGL
PLEMENT
@NEGL
16-BIT TO 32-BIT
SIGN
SIGNED BINARY
@SIGN
DATA DECODER
MLPX
@MLPX
DATA ENCODER
DMPX
@DMPX
ASCII CONVERT
ASC
@ASC
ASCII TO HEX
HEX
@HEX
COLUMN TO LINE
LINE
@LINE
LINE TO COLUMN
COLM
@COLM
Function
Symbol
code
161
NEGL
S
R
600
SIGN
S
R
076
077
086
162
063
064
Operands
S: 1st source word
R: 1st result word
S: Source word
R: 1st result word
S: Source word
MLPX
C: Control word
S
R: 1st result word
C
R
S: 1st source word
DMPX
S
R: Result word
R
C: Control word
C
S: Source word
ASC
Di: Digit designator UINT
S
D: 1st destination
Di
word
D
S: 1st source word
HEX
Di: Digit designator UINT
S
D: Destination word UINT
Di
D
S: 1st source word
LINE
N: Bit number
S
D: Destination word UINT
N
D
S: Source word
COLM
D: 1st destination
S
word
D
N: Bit number
N
Section 2-6
Supported
AT
variable
setting or
data types
array
variable
required
(Required
word data
size
shown in
parenthe-
ses.)
DWORD
---
UDINT
---
WORD
---
DINT
---
UINT
---
UINT
---
UINT
Yes (not
fixed)
UINT
Yes (not
fixed)
UINT
---
UINT
---
UINT
---
---
UINT
Yes (3)
UINT
Yes (2)
---
Yes (not
fixed)
WORD
Yes (16)
UINT
---
---
WORD
---
WORD
Yes (16)
UINT
---
73
Need help?
Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?
Questions and answers