Toshiba S20LP instruction manual Sample program, ∙ Operation

Models: S20LP

1 66
Download 66 pages 32.65 Kb
Page 45
Image 45

6 F 3 B 0 3 5 6

(5)Sample program

This program transmit the data from TOSLINE-S20LP's scan data memory to T2N/T3H's D register. If the following program is executing, the data of the scan memory from 0000 to 0009 are transmitted to the data register from D0200 to D0209 (D register).

X0000

[00272 MOV RW003]

 

 

 

[00000 MOV RW004]

 

[00010 MOV RW005]

 

 

 

 

[00004 MOV RW020]

 

 

 

[00200 MOV RW021]

 

 

 

 

 

 

 

H0110

00010

 

 

H0004

 

 

[RW003 XFER RW005

 

 

RW020]

 

 

 

 

 

 

 

 

 

Source designation

 

 

 

 

 

 

 

 

RW003

 

H01

 

H10

 

RW005

 

 

 

 

 

 

 

RW004

 

 

00000

 

 

 

 

 

 

 

 

 

Channel 1 S20LP

 

 

Scan memory address

 

Transfer size

Destination designation

 

 

 

 

 

 

00010

 

RW020

H00

H04

 

 

 

 

 

 

 

 

 

RW021

00200

 

 

 

 

 

10 Words transfer

D0200 (CPU register)

Operation

When X0000 is ON, 10 words data starting with scan memory address 0 is transferred to D0200 and after.

TOSLINE-S20LP

scan data memory source 00001

00100

12345

Transmit

03344

11565

00045

T2N/T3H’s CPU

register designation

D0200 00001

D0201 00100

D0202 12345

D0207

03344

 

 

D0208

11565

 

 

D0209

00045

 

 

44

Page 45
Image 45
Toshiba S20LP instruction manual Sample program, ∙ Operation