Toshiba 6F3B0250, PROSEC T1 T1S user manual Xchg, Data exchange

Models: PROSEC T1 T1S 6F3B0250

1 313
Download 313 pages 21.99 Kb
Page 159
Image 159

6F3B0250

7. Instructions

FUN 022

XCHG

Data exchange

Expression

Input -[ A XCHG B ]- Output

Function

When the input is ON, the data of A and the data of B is exchanged.

Execution condition

Input

 

Operation

Output

OFF

No execution

 

OFF

ON

Execution

 

ON

Operand

 

Name

 

 

Device

 

 

 

 

 

 

Register

 

 

 

 

Constant

Index

 

 

X

Y

R

S

T.

C.

XW

YW

RW

SW

T

C

D

I

J

K

 

 

A

Operation data

 

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

 

Ö

B

Operation data

 

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

 

Ö

Example

When R005 is ON, the data of RW23 and D0100 is exchanged. If the original data of RW23 is 23456 and that of D0100 is 291, the operation result is as follows.

RW23

D0100

23456

291

RW23

D0100

291

23456

Before operation

After operation

Basic Hardware and Function 157

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Page 159
Image 159
Toshiba 6F3B0250, PROSEC T1 T1S user manual Xchg, Data exchange