Page 3 - Safety Precautions; HINT
User’s Manual 1 Safety Precautions Safety Precautions • This module (AS311) has been designed for Toshiba’s Programmable Controller PROSEC-T3 (hereafter called T3). Use this module only on the T3’s rack. • Read the Safety Precautions described on the T3 User’s Manual before using the T3 and this mod...
Page 4 - About This Manual
2 ASCII Interface Module (AS311) About This Manual About This Manual This manual explains the specifications and operations of the ASCII Interface Module (AS311) for Programmable Controller T3. Read this manual carefully before using the AS311 module. Inside This Manual This manual consists of six s...
Page 5 - Related Manuals; T3 User’s Manual - Hardware; Terminology
User’s Manual 3 About This Manual Related Manuals The following related manuals are available for T3. Besides this manual, read the following manuals for your better understanding. T3 User’s Manual - Hardware This manual covers the T3’s main body and basic I/O - their specifications, handling, maint...
Page 6 - Contents
4 ASCII Interface Module (AS311) Contents Contents Safety Precautions .................................................................................. 1 About This Manual .................................................................................. 2 1. AS311 Overview ...........................
Page 7 - RAS
User’s Manual 5 Contents 6. RAS Information ......................................................................... 51 6.1 LED indication .................................................................................. 52 6.2 Buffer memory information ...............................................
Page 9 - Section 1
User’s Manual 7 Section 1 AS311 Overview 1.1 Introduction 1.2 AS311 functions 1.3 External features
Page 10 - NOTE
8 ASCII Interface Module (AS311) 1. AS311 Overview 1.1 Introduction The ASCII interface module AS311 (hereafter called AS311) is a general purpose data communication module for Toshiba’s Programmable Controller PROSEC-T3 (hereafter called T3). By using the AS311, T3 can communicate with external dev...
Page 12 - External features
10 ASCII Interface Module (AS311) 1. AS311 Overview 1.3 External features Status LEDs AS311 • RUN • TX1 • RX1 • TX2 • RX2 8 7 6 5 4 3 2 1 SW3 SW2 SW1 ON → ON → 1 2 3 → ↓ RSW 2 RSW 1 8 7 6 5 4 3 2 1 RESET CH2 CH1 Channel 1 transmission parameter setting switches Channel 2 transmission parameter setti...
Page 14 - Optional rotary switches
12 ASCII Interface Module (AS311) 1. AS311 Overview SW3 RS-232C/RS-422 selection switches (for channel 1) RSW1/RSW2 Optional rotary switches SW3 ON → 3 2 1 Used to select the interface of the channel 1 either RS-232C or RS-422. No.1 OFF ON Interface RS-232C RS-422 Used to connect the...
Page 17 - Section 2
User’s Manual 15 Section 2 Specifications 2.1 General specifications 2.2 Functional specifications 2.3 Transmission specifications
Page 19 - Transmission specifications
User’s Manual 17 2. Specifications 2.3 Transmission specifications Item Channel 1 Channel 2 Interface RS-232C or RS-422 RS-232C Transmission mode Full-duplex Synchronizing Start-stop method (asynchronous) Transmission speed 300, 600, 1200, 2400, 4800, 9600, 19200 bps Frame format Start bit Data Pari...
Page 21 - Section 3
User’s Manual 19 Section 3 Cable Connections 3.1 RS-232C connection 3.2 RS-422 connection
Page 22 - Cable Connections
20 ASCII Interface Module (AS311) 3. Cable Connections 3.1 RS-232C connection The following figure shows the RS-232C connection. AS311 Shielded cable RS-232C device (1) DSR is supported only on the channel 2. (2) Connect SG each other. (3) Use shielded cable. The cable shield should be connected to ...
Page 25 - Section 4
User’s Manual 23 Section 4 Register Configuration 4.1 I/O allocation and I/O registers 4.2 AS311 buffer memory
Page 26 - Register Configuration
24 ASCII Interface Module (AS311) 4. Register Configuration 4.1 I/O allocation and I/O registers The AS311 has the I/O type ‘ i X+Y 4W ’ for I/O allocation. When the automatic I/O allocation is performed with mounting the AS311, the following I/O allocation table will be created in the T3. (T-PDS sc...
Page 28 - Memory
26 ASCII Interface Module (AS311) 4. Register Configuration 4.2 AS311 buffer memory As explained in the previous section, the I/O registers that are assigned to AS311 are used to control the reading and writing timings (handshake) between T3 and AS311. On the other hand, for exchanging the transmiss...
Page 29 - Buffer memory access
User’s Manual 27 4. Register Configuration 4.2.2 Buffer memory access T3 can read the AS311’s buffer memory contents by using READ instruction (FUN237). Also, T3 can write data into the buffer memory by using WRITE instruction (FUN238). READ instruction (FUN237) Expression: [ (A) READ (B) → (C) ] ...
Page 31 - Parameter
User’s Manual 29 4. Register Configuration 4.2.3 Parameter area The parameter area of the buffer memory contains the following contents. Address Address 0 CH1 status 64 1 CH2 status Status and 65 2 CH1 command command 66 3 CH2 command 67 4 Status 1 68 5 RSW1/2 information 69 6 SW1 information 70 7 S...
Page 38 - Receiving and transmitting data area
36 ASCII Interface Module (AS311) 4. Register Configuration 4.2.4 Receiving and transmitting data area The receiving and transmitting data area is provided to exchange the communication characters between T3 and AS311. The address ranges in the AS311 buffer memory are as follows. Address Word data 1...
Page 39 - Section 5
User’s Manual 37 Section 5 Operation Procedure 5.1 Transmission message format 5.2 Received message read sequence 5.3 Write sequence for message transmitting 5.4 Checking the AS311 operation status 5.5 Resetting the AS311 by software 5.6 Setting the trailing code 5.7 Setting the time-out check time
Page 40 - Operation Procedure; Transmission message format
38 ASCII Interface Module (AS311) 5. Operation Procedure 5.1 Transmission message format The transmission message is composed by ASCII characters and a specified trailing code. The default setting of the trailing code is CR (carriage return code = H0D). Refer to section 5.6 for setting the trailing ...
Page 41 - Received message read sequence
User’s Manual 39 5. Operation Procedure 5.2 Received message read sequence 5.2.1 Flag control timing In case of receiving a message, the following flags are used for handshaking between T3 and AS311. These flags are the bits of the I/O registers assigned to the AS311. Refer to section 4.1. Read read...
Page 42 - T3 sample program for message receiving
40 ASCII Interface Module (AS311) 5. Operation Procedure 5.2.2 T3 sample program for message receiving A sample program for the “received message read sequence” is shown below. This sample program is for the channel 1 of the AS311 that is allocated to XW000 - YW003. (Main program) Operation for rece...
Page 45 - Write sequence for message transmitting
User’s Manual 43 5. Operation Procedure 5.3 Write sequence for message transmitting 5.3.1 Flag control timing In case of transmitting a message, the following flags are used for handshaking between T3 and AS311. These flags are the bits of the I/O registers assigned to the AS311. Refer to section 4....
Page 46 - T3 sample program for message transmitting
44 ASCII Interface Module (AS311) 5. Operation Procedure 5.3.2 T3 sample program for message transmitting A sample program for the “write sequence for message transmitting” is shown below. This sample program is for the channel 1 of the AS311 that is allocated to XW000 - YW003. (Main program) Set th...
Page 49 - Checking the AS311 operation status
User’s Manual 47 5. Operation Procedure 5.4 Checking the AS311 operation status AS311 operation status information is stored in the AS311’s buffer memory address 4 (Status 1). T3 can read this information by using READ instruction. A sample program is shown below. This sample program is for the AS31...
Page 50 - Resetting the AS311 by software
48 ASCII Interface Module (AS311) 5. Operation Procedure 5.5 Resetting the AS311 by software AS311 can be reset by T3 program. Two types of resetting are available, cold reset and hot reset. The cold reset is used to reset the AS311 error state. When the cold reset is executed, the AS311 will be ini...
Page 51 - Setting the trailing code
User’s Manual 49 5. Operation Procedure 5.6 Setting the trailing code The default setting of the trailing code is CR (carriage return code = H0D). The trailing code can be changed by T3 program. To do this, write desired trailing code into the AS311’s buffer memory address 24 (CH1 trailing code) and...
Page 53 - Section 6
User’s Manual 51 Section 6 RAS Information 6.1 LED indication 6.2 Buffer memory information 6.3 Trouble shooting
Page 56 - Switch setting status
54 ASCII Interface Module (AS311) 6. RAS Information 6.2.2 Switch setting status Addresses 5, 6 and 7 of the buffer memory store the switches setting status. Check that the information agrees with the physical setting status if some abnormality has occurred. F E D C B A 9 8 7 6 5 4 3 2 1 0 5 0 0 0 0...
Page 57 - Error information for data receiving
User’s Manual 55 6. RAS Information 6.2.3 Error information for data receiving Address 16 for channel 1 and address 80 for channel 2 store the error information for data receiving. F E D C B A 9 8 7 6 5 4 3 2 1 0 16 or 80 0 0 0 0 BRK PE FE OE Receive error code Bit B BRK (Break) 1 = break detected 0...
Page 58 - Error information for data transmitting
56 ASCII Interface Module (AS311) 6. RAS Information 6.2.4 Error information for data transmitting Address 17 for channel 1 and address 81 for channel 2 store the error information for data transmitting. F E D C B A 9 8 7 6 5 4 3 2 1 0 17 or 81 0 0 0 0 0 0 0 0 Transmit error code Bit 7-0 Transmit er...
Page 59 - Trouble shooting
User’s Manual 57 6. RAS Information 6.3 Trouble shooting When AS311 does not work properly, check the following points. When AS311’s RUN Does the POWER LED on If no, check the power LED does not light; the T3 power supply module voltage/connection. light ? If no, check the internal 5 Vdc current con...
Page 61 - Appendix
User’s Manual 59 Appendix A.1 Specification of the READ instruction A.2 Specification of the WRITE instruction
Page 62 - Function
60 ASCII Interface Module (AS311) Appendix A.1 Specification of the READ instruction FUN 237 Special module data read (READ) Reads designated range of data from the special module. Input Execution output [ A READ B → C ] Function • This instruction reads data from the buffer memory of the special mo...
Page 64 - A.2 Specification of the WRITE instruction
62 ASCII Interface Module (AS311) Appendix A.2 Specification of the WRITE instruction FUN 238 Special module data write (WRITE) Writes designated range of data into the special module. Input Execution output [ A WRITE B → C ] Function • This instruction transfers data stored in T3’s registers starti...
Page 66 - TOSHIBA CORPORATION
TOSHIBA CORPORATION Industrial Equipment Department 1-1, Shibaura 1-chome, Minato-ku Tokyo 105-8001, JAPAN Tel: 03-3457-4900 Fax: 03-5444-9268