Download Print this page

Exchanging 16-Bit Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Exchanging 16-bit data

XCH(P)
These instructions exchange 16-bit binary data of (d1) and (d2).
Ladder diagram
(d1)
FBD/LD
EN
ENO
d1
d2
Setting data
■Descriptions, ranges, and data types
Operand
Description
(d1)
Head device for storing the data to be exchanged
(d2)
Head device for storing the data to be exchanged
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(d1)
(d2)
Processing details
These instructions exchange 16-bit binary data of (d1) and (d2).
(d1)
b15
∙∙∙
b8b7
0 1 1
1
0
0 0 0 0
0
0
0 0 1 1 1
(d1)
b15
∙∙∙
b8b7
1 1 1
1
0
0 0 0 1
1
1
1 0 0 0 0
Operation error
There is no operation error.
7 BASIC INSTRUCTIONS
360
7.7 Data Transfer Instructions
(d2)
Word
T, ST, C, D, W,
SD, SW, R
∙∙∙
b0
b15
∙∙∙
1 1 1
1
0
0 0 0 1
∙∙∙
b0
b15
∙∙∙
0 1 1
1
0
0 0 0 0
Structured text
ENO:=XCH(EN,d1,d2);
ENO:=XCHP(EN,d1,d2);
Range
Double word Indirect
U\G
Z
LC
(d2)
b8b7
∙∙∙
b0
1
1
1 0 0 0 0
(d2)
b8b7
∙∙∙
b0
0
0
0 0 1 1 1
Data type
16-bit signed binary
16-bit signed binary
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANY16
ANY16
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading