264
Data Movement Instructions Section 3-7
3-7-10 DATA EXCHANGE: XCHG(073)
Purpose Exchanges the contents of the two specified words.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Description XCHG(073) exchanges the contents of E1 and E2.
Flags There are no flags affected by this instruction.
XCHG(073)
E1
E2
E1: First exchange word
E2: Second exchange word
Variations Executed Each Cycle for ON Condition XCHG(073)
Executed Once for Upward Differentiation @XCHG(073)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area E1 E2
CIO Area CIO 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A448 to A959
Timer Area T0000 to T4095
Counter Area C0000 to C4095
DM Area D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants ---
Data Registers DR0 to DR15
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –) IR0 to, –(– –) IR15
E2E1