32.13.4.2 Operand Settings (D1/D2) - XCH/XCHP

The following describes the specifiable content of Operands (D1 and D2) in the XCH and XCHP instructions

Name

Type

Condition

Number of Steps in the Operand

Possible

Connection Device Address

Bit

-

Word

Specify by words only
(For example, [PLC1]D0000)

1

Internal Address

Bit

-

Word

Specify by words only
(For example, [#INTERNAL]LS0000)

1

Symbol

Bit

-

Word

1

Variable Format

Bit

Specify a bit

-

Specify bit array ([constant])

-

Specify bit array ([variable])

-

Integer
(Output included)

Arrays and modifiers are not specified

1

Specify integer variable [constant]

2

Specify integer variable [variable]

3

Specify integer variable [constant/variable]
.B/W[constant/variable]

-

Float

-

Specify float variable [constant]

-

Specify float variable [variable]

-

Real

-

Specify real variable [constant]

-

Specify real variable [variable]

-

Timer

.PT/ .ET only

2

Counter

.PV/ .CV only

2

Date

.YR/ .MO/ .DAY only

2

Time

.HR/ .MIN/ .SEC only

2

PID

.KP/ .TR/ .TD/ .PA/ .BA/ .ST only

2

Address Format

X_

-

Y_

-

M_

-

I_

-

Q_

1

D_

Modifiers are not specified

1

D_****.B/W [constant]

-

D_****.B/W [address]

-

F_

-

R_

-

T_

.PT/ .ET only

2

C_

.PV/ .CV only

2

N_

.YR/ .MO/ .DAY only

2

J_

.HR/ .MIN/ .SEC only

2

U_

.KP/ .TR/ .TD/ .PA/ .BA/ .ST only

2

Constant

Integer

-2147483648 to 2147483647

-

Float

+/-1.17549435138 e-38 to +/-3.402823466e+38

-

Real

+/-2.2250738585072014e-308 to +/-1.7976931348623158e+308

-