298
6 BASIC INSTRUCTIONS
6.6 Data Transfer Instructions
Inverting and transferring 16-bit data
CML(P)
These instructions invert each bit of the 16-bit binary data in the device specified by (s), and transfer the result to the device
specified by (d).
■Descriptions, ranges, and data types
■Applicable devices
• These instructions invert each bit of the 16-bit binary data in the device specified by (s), and transfer the result to the device
specified by (d).
There is no operation error.
Ladder diagram Structured text
ENO:=CML(EN,s,d);
ENO:=CMLP(EN,s,d);
Operand Description Range Data type Data type (label)
(s) Data to be inverted or device number in which data is
stored
-32768 to +32767 16-bit signed binary ANY16
(d) Device number for storing the inversion result 16-bit signed binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s)
(d)
(d)
(s)
···
···
b15
b15 b0
b0
101 01100011 10010
010 10011100 01101
Inversion