EasyManua.ls Logo

Mitsubishi MELSEC iQ-F FX5 series

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.6 Data Transfer Instructions
307
6
Exchanging 16-bit data
XCH(P)
These instructions exchange 16-bit binary data of (d1) and (d2).
Setting data
Descriptions, ranges, and data types
Applicable devices
Processing details
These instructions exchange 16-bit binary data of (d1) and (d2).
Operation error
There is no operation error.
Ladder diagram Structured text
ENO:=XCH(EN,d1,d2);
ENO:=XCHP(EN,d1,d2);
Operand Description Range Data type Data type (label)
(d1) Head device for storing the data to be exchanged 16-bit signed binary ANY16
(d2) Head device for storing the data to be exchanged 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 $
(d1) 
(d2) 
(d1) (d2)
······b15 b8b7 b0
011 01 0000 0000111
······b15 b8b7 b0
111 01 0001 1110000
······b15 b8b7 b0
111 01 0001 1110000
······b15 b8b7 b0
011 01 0000 0000111
(d2)
(d2)
(d1)
(d1)

Table of Contents

Related product manuals