6 F 3 B 0 3 5 6 Instruction Manual TOSLINE-S20LP T2N/T3H stations REQUIREMENTS • Keep this instruction manual where it can be easily referred to by users and those responsible for the equipment. • Read this instruction manual carefully before using the equipment. • After this instruction manual has been read, keep it beside the equipment.
6 F 3 B 0 3 5 6 © Copyright 1998 by Toshiba Corporation Tokyo, Japan Toshiba Corporation reserves the right to make changes and improvements to this publication and/or related products at any time without notice. No obligation shall be incurred, except as noted in this publication. This publication is copyrighted and contains proprietary material.
6 F 3 B 0 3 5 6 Preface The TOSLINE-S20LP is a Local Area Network (LAN) for Factory Automation (FA) system. Several kinds of TOSLINE-S20LP stations are available for interfacing various equipments, such as PLCs, computers, etc. This manual describes How To Use the TOSLINE-S20LP stations for Programmable Controller T2N/T3H. The TOSLINE-S20LP enables high speed data linkage between multiple T2N/T3H. Refer to the separate manual for the TOSLINE-S20LP Loader software (S-LS) operations.
6 F 3 B 0 3 5 6 Contents PREFACE............................................................................................................................................. 2 CONTENTS.......................................................................................................................................... 3 1. INTRODUCTION TO S20LP ........................................................................................................... 4 1.1 SYSTEM CONFIGURATION ..........................
6 F 3 B 0 3 5 6 1. Introduction to S20LP 1.1 System configuration The following figure shows the typical system configuration of the S20LP. T2N T3H T2N internal bus OTR2 Station No.1 S20LP Port T3H I/O bus OTR2 OTR1 Station No.2 SN325 (Main terminal station) OTR1 (Back-up terminal station) (General station) (General station) (General station) OTR1 OTR1 OTR1 OTR2 SN325 OTR2 PTLS9 OTR2 External Loop T3H PCS Device Transmission line 1 (Loop 1) : The data is sent from OTR1 to OTR2.
F 3 B 0 3 5 6 1.
6 F 3 B 0 3 5 6 SN325 SN325 STN ONL SCAN ACC Status LEDs LOOP TX1 TX2 RESET STNH Reset switch Station number setting switches STNL OTR1 Transmission cable connectors OTR2 LOADER LOADER port 6
6 F 3 B 0 3 5 6 • Status LEDs: Indicate the status of the S20LP-station.(see Section 5.
6 F 3 B 0 3 5 6 • Station number setting switches: Used to set the station number. (allowable setting is 1 to 64) The setting status is read at power-on. STNH ................ 10’s digit STNL ................ 1’s digit • Loader port: Used to connect the S-LS (or T-PDS for remote programming / monitoring). T2N (PU245N) changes DIP switch (P/S) “ON”. • Transmission cable connector(s): Used to connect optical fiber cables. (see Section 4) • Reset switch (only SN325): Used to reset a SN325.
6 F 3 B 0 3 5 6 1.3 S-LS overview The S-LS (TOSLINE-S20 Loader System) on a personal computer (PC) monitors station conditions, reads/writes control data, and sets up parameters. The transmission parameters set by S-LS is stored in the S20LP-station's built-in EEPROM. Connection between S-LS and S20LP-station is made by an loader cable, that is the same cable as for T-PDS. The following are the details of the menu.
6 F 3 B 0 3 5 6 The toolbar has buttons for the functions frequently used. The following buttons are found from left to right. [Exit button] Exits the application. [Setting Information button] Displays the Setup Information window. [Data Access button] Displays the Data Access window. [RAS Information button] Displays the RAS Information Menu window. [Online/Standby Request button] Displays the Online/Standby Request window. [Test Request button] Displays the Test Request window.
6 F 3 B 0 3 5 6 1.4 Specifications S20LP system specifications Transmission cable Silica glass SI 200/230µm H-PCF (Hard-Plastic Clad Fiber) Cable connection F07 connector (cable side connector) (JIS C5976) Transmission distance Max. 1 km (between stations) Max. 4 km (between stations ; connecting SBR22) Max. 30 km (system total) Topology Loop Number of stations Max.
6 F 3 B 0 3 5 6 2. Scan transmission overview The Scan transmission method is suitable for real time control data linkage. In the S20LP, data sending station is rotated cyclically. Each station has common memory for Scan transmission. The size of the common memory is 4096 words. When a station becomes the data sender station, it sends data of prespecified area of the common memory. All other stations receive the data, and store them into their common memory.
6 F 3 B 0 3 5 6 Main terminal station, back-up terminal station and general station When power is applied to each S20LP-station, one station must have station address number 1. The station of station number 1 becomes the main terminal station. The station of station number 2 becomes back-up terminal station. Normally stations, except station number 1, become the general stations. The main terminal station controls total timing of the S20LP network.
6 F 3 B 0 3 5 6 3. Setting for data linkage 3.1 Station number setting Each station should have unique station number. If a station number is duplicated, the S20LP network cannot be established. Allowable station number is 1 to 64. To set the station number, two rotary switches (STNH and STNL) are provided on each station. STNH is for 10's digit setting, and STNL is for 1's digit setting. (For example) STNH = 1 Station number is 15 STNL = 5 3.
6 F 3 B 0 3 5 6 (2) Network assignment a) Set "LINK" for the Blocks to be assigned. S20LP-station common memory T2N/T3H W registers 0 Network assignment Block 1 Receive W000-063 LINK Block 2 100 W064-127 Send LINK Block 3 W128-191 LINK Block 4 230 W192-255 LINK Block 5 W256-319 Receive . . .
6 F 3 B 0 3 5 6 P: PLC A: I/O Allocation N: Network Assignment 16
6 F 3 B 0 3 5 6 b) If two S20LP-stations are mounted on the T3H, the station which is allocated closer to the CPU in the I/O allocation (see (1)) is assigned as CH1. And the other is assigned as CH2. (CH2 is invalid for T2N) CH1 CH1 Network S20LP-station assignment common memory T3H W registers CH2 CH2 S20LP-station Network common memory assignment LINK Block 1 Send Receive LINK Block 2 LINK Block 3 LINK Send Block 4 LINK Receive Block 5 LINK Block 6 Receive . . . .
6 F 3 B 0 3 5 6 18
6 F 3 B 0 3 5 6 c) If two S20LP-stations are mounted on the T3H and multi layers Scan transmission function is used, use the "GLOBAL" setting.
6 F 3 B 0 3 5 6 Note) The following rules are applied to the Network assignment. Do not set LINK both for CH1 and CH2 for the same Block. If duplicated, CH1 has priority. In the GLOBAL setting Block, the "receive" side CH data is transferred to the W register and the "send" side CH. In this case, GLOBAL can be set on either CH. In the GLOBAL setting Block, if both CHs are specified as "send", the W register data is transferred to both CHs.
6 F 3 B 0 3 5 6 3.3 Settings on S-LS (1) Start-up the S-LS Connect the S-LS (personal computer) and the S20LP-station by the loader cable. Start-up the S-LS for Windows95. (2) Turn the T2N/T3H to HALT (3) Confirm the S20LP-station status Confirm the status of the connected S20LP-station is "STANDBY" by right and upper side. It is displayed on the S-LS screen as below.
6 F 3 B 0 3 5 6 (4) Settings of data send block. Operate the S-LS as follows. Select menu and Setting Information or click the right side of mouse and select setting information.
6 F 3 B 0 3 5 6 Select the "Station Number" of the connected S20LP-station. Select the "Scan Transmission" and specify the "data send block(s)". The "data send block" is specified by entering the starting address (Send Starting Address 1/2) and the size (Number of Send Words 1/2). Up to two "data send blocks" can be specified. If "data send block 2" is not used, enter 0 both for Send Starting Address 2 and Number of Send Words 2.
6 F 3 B 0 3 5 6 Write the settings into the S20LP-station. Press "OK" button. When the settings are correctly written into the S20LP-station's EEPROM, it is displayed on the screen as below.
6 F 3 B 0 3 5 6 (5) Settings of station control information Open the "Setting Information", and push the "Station Control" by mouse. • Scan Transmission Enable/disable the Scan transmission. Select Enable to use the Scan transmission function. • Scan Access Scan data synchronization 1 word or 2 words. If 2W (2 words) is selected, data synchronization of double-word data (lower even and higher odd addresses) is achieved. In this case, 2W setting is needed both on the sender and receiver stations.
6 F 3 B 0 3 5 6 • Target Scan Time A time factor for limiting the time assigned for the Message transmission. The actual Scan time (time of Token passes all stations) is either longer one the Target Scan time or time for Scan transmission. (see Apendix A.1) The Target Scan time should be the same value in all stations connected to the S20LP network (layer). The Target Scan time can be selected from the combo box, select the target cycle time you want to set. Click on the "OK" or "Renew" button.
6 F 3 B 0 3 5 6 3.4 Data linkage example STN #1 T3H S20 -LP STN #2 I/O T2N S20 -LP STN #3 I/O T2N S20 -LP I/O W000 Send Receive Receive Receive Send No use Receive No use Send No use No use No use No use No use No use W0199 W0200 W0249 W0250 W0299 W0300 W2047 common memory (2k words) Link register (W) can not use Common memory over 2048 words. STN #1 T3H sends 200 words data (W0000 to W0199) to STN #2 and #3 T2Ns. STN #2 T2N sends 50 words data (W0200 to W0249) to STN #1 T3H.
6 F 3 B 0 3 5 6 Necessary settings for this data linkage configuration are as follows. • Settings on T-PDS Allocate the S20LP-station as "TL-S" (for T3H) by using the automatic I/O allocation command or the manual I/O allocation function of the T-PDS in T3H. And automatically allocate the S20LP-station as "E/S" in T2N. By using the Network assignment function of the T-PDS, sssign the Blocks to cover the using W registers.
6 F 3 B 0 3 5 6 • Setting on S-LS Station Number 1 2 3 Send Start Address 1 0000 0200 0250 Send Word Number 1 0200 0050 0050 Send Start Address 2 0000 0000 0000 Send Word Number 2 0000 0000 0000 Scan Transmission Enable Scan Access 1 Word Message Transmission Enable Target Scan Time 61.4 msec Start with Standby mode No.
6 F 3 B 0 3 5 6 30
6 F 3 B 0 3 5 6 4. Cable connections Max. 30 km (total) Max. 1 km (between station) OTR OTR OTR OTR OTR OTR 1 2 1 2 1 2 S20LP station S20LP station Optical fiber cable S20LP station Optical fiber cable (Note 1) Optical fiber connect OTR1/OTR2 to another station's OTR2/OTR1. (Note 2) Using the long distance of optical fiber (SBR22) is Max. 4 km between station.
6 F 3 B 0 3 5 6 5. RAS function 5.1 Behavior in trouble (1) Optical fiber system • Station down If a station (either main, back-up or general) becomes down, the abnormal station will be disconnected from the S20LP system (re-configuration), then communications of remaining stations will be re-started. If two station (either main, back-up or general terminals) become power off, the S20LP system will split into two independent S20LP systems at the power off stations. S20LP loop No.
6 F 3 B 0 3 5 6 5.2 Self-diagnostic function The S20LP-station has the following self-diagnostic function. • At initialization (at power on) Diagnostic item Station operation abnormal ROM BCC check Station moves into Down mode. RAM read/write check Communications with other stations are CPU and peripheral LSI check not possible. This state will be reset by Station number check power off/on (SN325, T2N) or pressing Reset switch (SN325). Transmission parameter Station moves into Standby mode.
6 F 3 B 0 3 5 6 5.3 LED indication (1) SN325 The S20LP-station is equipped with STN, ONL and SCAN LEDs, which indicate the station modes. STN ONL SCAN Station mode Remarks Lit Lit Lit Online Scan / Message transmission is enabled Not lit Online Scan transmission is disabled Message transmission is enabled Lit Not lit Not lit Offline Scan / Message transmission is disabled Lit Blink Not lit Standby Transmission parameter is not written in EEPROM.
6 F 3 B 0 3 5 6 5.4 RAS information monitored in T2N/T3H RAS information of the S20LP system is reflected in the special registers (SW) of T2N/T3H. This information can be referred in the T2N/T3H’s user program.
6 F 3 B 0 3 5 6 (1) Station status Indicates the status of the S20LP-station mounted on the T2N/T3H.
6 F 3 B 0 3 5 6 (3) Standby map Indicates the standby stations in the S20LP network. F E D C SW120 (SW124) #16 #15 #14 SW121 (SW125) #32 #31 SW122 (SW126) #48 SW123 (SW127) #64 ...................
6 F 3 B 0 3 5 6 5.5 RAS information monitored on S-LS By connecting the S-LS, the following RAS information can be monitored. (1) Online map (Menu) R: RAS Information 1: Online Map The number (1-64) on the screen shows the Station number. The operation mode displayed under the Station number means as follows. ¡(Blue) Online mode ¡(Red) Standby mode Blank Offline mode or not existing This information is read out from the S-LS connecting station every three seconds.
6 F 3 B 0 3 5 6 If the S-LS connecting station is Offline or Down mode, the following message will be displayed right and upper side on the screen. Self Station Station No.
6 F 3 B 0 3 5 6 (2) Station status The operation status of the specified station can be monitored as follows. 1. Select the "Station Number". 2. Click the "Status Display".
6 F 3 B 0 3 5 6 (3) Station down information If the S-LS connecting station is in Down mode, the error message can be monitored as follows. R: RAS Information 4: Station Down Information Possible error message are as follows.
6 F 3 B 0 3 5 6 6. Expanded data transfer instruction 6.1 Instruction Specification This section presents an overview of the XFER instructions, which is the instruction that is used to control the S20LP-station from T2N/T3H user programs. S20LP-station transmission control is performed solely using the XFER instructions. (1) Instruction format The format of XFER instruction.
6 F 3 B 0 3 5 6 (4) Parameter and construction Source parameter A Bank/CH A+1 Transfer size and status Type B Transfer size Destination parameter C Leading address Bank/CH C+1 Type Leading address Transfer parameter table Transfer object Type T2N XW/YW register T3H Leading address Bank/CH 0 to 127 00H 0 to 511 Transfer size Status flag 1 to 128 0 1 to 256 None W register 01H 0 to 2047 0 1 to 256 None LW register 02H 0 to 255 0 1 to 256 None 0 1 to 256 None 0 1 to
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).
6 F 3 B 0 3 5 6 Remarks • When writing data into S20LP scan memory, confirm that the address range is S20LP's data send block. • If S20LP scan memory is accessed only by this XFER instruction, the network assignment, i.e. "LINK" or "GLOBAL" setting, is not necessary. • If W register is designated as source and destination, don't set the network assignment, i.e. "LINK" or "GLOBAL".
6 F 3 B 0 3 5 6 7. Message transmission 7.1 Message transmission The message transmission is text transmission to be performed communication on request. This transmission is following two protocol. • Computer link protocol • PC link protocol 7.2 Computer link protocol The host machine can communicate to a T2N/T3H on the S20LP using the computer link protocol. Since this function executes the station and firmware, there is no need to create pecial user programs for the T2N/T3H using the slave station.
6 F 3 B 0 3 5 6 The user program that (1) runs on the T2N/T3H of the main station is discussed below. Instruction format The format of SEND and RECV instruction Input Output [A SEND B] [A RECV B] Input (2) Function • SEND Output This instruction sends the designated range of register data to another T2N/T3H through the network. The transfer source register (self-station) is designated by A+3 and A+4. The transfer destination register (target-station) is designation by A+5 and A+6.
6 F 3 B 0 3 5 6 (Note 1) ERF is the S0051 special relay. See the T-series Instruction Set for information on ERF usage. (Note 2) For these instructions, instruction execution starts at the point the input changes state from off to on. (Note 3) Since these instructions span multiple scans, applications must hold the input in the on state until the output goes to the on state. (Note 4) After instruction execution terminates, it is possible to start execution again by applying a new input.
6 F 3 B 0 3 5 6 (5) Status (B) The status during the execution of a SEND or RECV instruction and after that instruction terminates is stored in the register shown at B. When TermSTS = 0BH, the detailed information (S20LP-station error information) will be loaded into the registers indicated at location B + 1.
6 F 3 B 0 3 5 6 TermSTS TermSTS Status 00H Normal complete 01H Register designation error Meaning • • 02H Response timeout • 03H Parameter error • • 04H Register write protect 05H (Reserved) 06H Module error Occurs if a register other than XW, YW,W, LW, RW, D, F, T, C, or SW is designated as the data storage register in one of the following requests. Requests: Remote station loopback, Register read/write.
6 F 3 B 0 3 5 6 Detailed Information (Send completion status) Error Code Description Normal complete 81H The remote station normally received message frame from local station. Busy 90H The remote station is standby. Timeout A0H The answer frame for the transmitted message frame no returned from remote station on time. Length error B0H Station mode error D0H Incorrect message frame length in remote station. The local station is Offline.
6 F 3 B 0 3 5 6 (6) PC link protocol transmission (Data write) The T series PC link protocol allows a T2N or T3H on a network to write register data to another T2N or T3H. • Register write request (using the SEND instruction) (a) Function The register data designated by the local station (T2N/T3H) is written to the designated register on the remote station (T2N/T3H).
6 F 3 B 0 3 5 6 6) Response time limit Designates a time used to limit the response time from the remote station in 0.1 second units. F E 0 A+7 0: Use the user-specified value (0.1 to 3276.7 seconds) 1: Use the default value of 30 seconds. This code indicates the type of register code in which the local or remote station transmission source data is stored. See “T-series Instruction Set (Ladder, SFC)” (UM-TS03***-E004).
6 F 3 B 0 3 5 6 *3 The T and C registers hold data that has flags attached. Supplement: The transfer data length has a maximum of 323 words when data is transferred over the Ethernet. For the T registers, it is not possible to designate a range that spans both the basic T registers (0 to 511) and the expansion T registers (512 to 999). The T3H has the expansion T register, but the T2N does not have. (c) Status (See 7.3 (5) for details on bits C, D, E, and F.
6 F 3 B 0 3 5 6 • Write protection can be designated for each register type on the local T2N/T3H by using the special coil settings described below. In this case, a register write protect error (TermSTS = 04H) will occur.
6 F 3 B 0 3 5 6 (7) PC link protocol transmission (Data read) The T series PC link protocol allows a T2N or T3H on a network to read register data from another T2N’s or T3H’s registers into its own registers. • Register read request (using the RECV instruction) (a) Function The register data designated by the remote station (T2N/T3H) is read to the designated register on the local station (T2N/T3H).
6 F 3 B 0 3 5 6 6) Response time limit Designates a time used to limit the response time from the remote station in 0.1 second units. F E 0 A+7 0: Use the user-specified value (0.1 to 3276.7 seconds) 1: Use the default value of 30 seconds. (c) Status (See 7.3 (5) for details on bits C, D, E, and F.) F B B+1 E D C B A 9 8 7 6 5 4 3 2 0 0 0 0 TermSTS Detailed information (Only valid when TermSTS = 0BH.) 1 0 (d) Important items • The command number (0000H) is the same as the "Data Write".
6 F 3 B 0 3 5 6 • Read protection can be designated for each register type on the local T2N/T3H by using the special coil settings described below. In this case, a register write protect error (TermSTS = 04H) will occur.
6 F 3 B 0 3 5 6 (8) PC link protocol transmission program This section presents a sample program that uses PC link protocol transmission. This program creates increment data within the local station and writes it to the remote station's registers. Next it reads out the same area and compares it with the data within the local station to check that the function succeeded. Remarks Make a point of understanding the content before writing programs that use the S20LPstation.
6 F 3 B 0 3 5 6 R0520 R0090 ( ) /* PC Link preparation */ R0520 [00010 MOV RW090] [00000 MOV RW091] [00064 MOV RW092] /* Number of executions, Operation on error occurrence, Transfer data length */ [00004 MOV RW093] [01000 MOV RW094] /* Transmission source register type, leading address */ [00004 MOV RW095] [02000 MOV RW096] /* Transfer destination register type, leading address */ [00004 MOV RW097] [03000 MOV RW098] /* Storage register type, leading address */ /* Data preparation */ R0090 R009F R0091
6 F 3 B 0 3 5 6 /* Register readout */ R0093 [08450 MOV D0920] [00000 MOV D0921] /* Designates the module and sets the CMD number. */ [RW092 MOV D0922] /* Sets the transfer register data length. */ [RW097 MOV D0923] [RW098 MOV D0924] /* Sets the transmission source register type, leading address. */ [RW095 MOV D0925] [RW096 MOV D0926] /* Sets the transfer destination register type, leading address. */ [00100 MOV D0927] /* Sets the response time limit (10 seconds).
6 F 3 B 0 3 5 6 Appendix A.1 Scan cycle In the S20LP network, each station sends out the data onto the transmission line as Packet. The Packet is sent out onto the transmission line in the following sequence. STN #1 S STN #2 Packet S Packet STN #3 Packet STN #n In the above figure, S Packet means the Synchronization frame which shows the start of transmission cycle (Scan cycle). At first, the main station sends out the Synchronization frame.
6 F 3 B 0 3 5 6 Actual transmission cycle time (TCY) is sum of above TSCN and TMSG. But when TSCN is short, Time for software operation (TSOFT) is not neglected. Therefore, Actual transmission cycle time is expressed as follows. If TSOFT < TSCN / 2 TCY = TSCN + TMSG If TSOFT > TSCN / 2 TCY = TSCN / 2 + TSOFT + TMSG TSOFT = ( 370 * NSTN + 2.8 * WSCN ) / 1000 [ms] Set the Target Scan Time (Target Cycle Time) larger than above TCY.
6 F 3 B 0 3 5 6 A.2 T-PDS remote programming The T-PDS can be connected through the Loader port on the S-20LP-station, as well as the Programmer port on the T2N/T3H CPU module. By using this function, remote programming/monitoring through S20LP network is available. (Note 1) T2N must be sellected P/S "ON" with DIP switch 1. (Note 2) When DIP switch 1 is ON/OFF, T2N is Loader port/Programmer port.
6 F 3 B 0 3 5 6 If the T-PDS is connected to the T2N/T3H on the second layer through the bridge only), set the T-PDS's connection method as follow. station (T3H S20LP STN #1 STN #2 T2N S20 T3H -LP STN #1 S20 S20 -LP -LP STN #3 T3H S20 -LP S20LP T-PDS STN #2 STN #3 T2N S20 T2N S20 -LP -LP (Note 1) The Layer 1 Station No. specifies the bridge station and the Layer 2 Station No. specifies the target station on the second layer.