FROM

FROM, FROMP, DFRO, DFROP

 

FROM instruction reads a value of buffer memory and saves its value to device address.

  • DFRO and DFROP are Double word.

 

n1

Slot number of module to be read

n2

Buffer memory to be read

D

Destination

n3

Number of words to be read

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

FROM

FROMP

DFRO

DFROP

n1

o

o

o

o

o

o

o

o

-

o

o

o

o

5

o

-

-

n2

o

o

o

o

o

o

o

o

-

o

o

o

o

D

o

-

o

o

o

-

o

o

-

o

o

o

-

n3

o

o

o

o

o

o

o

o

-

o

o

o

o

 

The FROM instruction copies the word source (value of buffer memory from module) to a Destination.

 

 

 

Example)

If M00 is ON, the FROM instruction copies the value (500) of buffer memory 13 from slot number 1 module (H0001) and saves 500 to D0.

 

In this example, CM3-SP04EAA module is installed at the slot number 1 and the buffer memory 13 is High alarm value of Channel 1.

 

*Please refer to buffer memory of each module for more details.

 

 

If you check memory monitor, you can find out D0 has 500 value.

 

 

 

 

Slot number and address assignment for CM1 and CM3 series.

Slot number of CM1 series

 

 

 

 

 

Slot number of CM3 Series