Toshiba S20LP instruction manual Sample program, ∙ Operation

Page 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

Image 45
Contents T2N/T3H stations Important Information Preface Contents Introduction to S20LP System configurationStation hardware ∙ OverviewT2N include of S20LP Port SN325 SN325∙ Status LEDs S20LP port for T2N PU245NFor SN325 ∙ Transmission cable connectors ∙ Station number setting switches∙ Reset switch only SN325 ∙ Loader portMenu LS overview⎯ 10 ⎯ Specifications S20LP system specificationsS20LP-station specifications Scan transmission overview Allocation and network assignment by T-PDS Setting the data send block by S-LSSetting for data linkage Station number settingSettings on T-PDS Link PDS screen example Block Send Receive ⎯ 18 ⎯ Global ⎯ 20 ⎯ Settings on S-LS ⎯ 22 ⎯ ⎯ 23 ⎯ ⎯ 24 ⎯ ∙ Start with Standby mode ∙ Scan Access∙ Scan Transmission ∙ Message Transmission∙ Target Scan Time Data linkage example ∙ Settings on T-PDS Setting on S-LS LS setting screen 2 for STN #2 Cable connections Behavior in trouble RAS function∙ Station down ∙ Transmission cable breakageSelf-diagnostic function At initialization at power onDuring operation LED indication SN325T2N RAS information monitored in T2N/T3H Online map Station statusLoop map Only T2N Standby mapNumber 1-64 on the screen shows the Station number RAS information monitored on S-LSSelf Station Station No.01 Offline Select the Station Number Click the Status Display Station down information Possible error message are as followsExpanded data transfer instruction Instruction SpecificationInstruction format FunctionTransfer parameter table Parameter and construction∙ Operation Sample programRemarks Message transmission Message transmissionComputer link protocol PC link protocol∙ Send CMD Transfer parameters aStatus B TermSTS Status Meaning Detailed Information Send completion status Transfer parameters PC link protocol transmission Data writeRID Important items Status See 7.3 5 for details on bits C, D, E, and FXW/YW PC link protocol transmission Data read ⎯ 57 ⎯ SW067 Write enabled Remarks PC link protocol transmission programLength END Scan cycle Appendix⎯ 63 ⎯ PDS remote programming PDS Setup options screen