Page 2
Because controlled system applications vary widely, you should satisfy yourself as to the acceptability of this equipment for your intended purpose. In no event will Toshiba Corporation be responsible or liable for either indirect or consequential damage or injury that may result from the use of this equipment.
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 module.
Introduces The AS311. Outline of the function, applications and the external features are provided in this section. Read this section at first to understand the general operation of the AS311. The switch settings of this module are also explained in this section. Section 2 Specifications Provides the functional and the transmission specifications of the AS311.
Page 5
This manual explains the functions of the T3 and how to use them. The necessary information to create user program is covered in this manual. T-series Instruction Set This manual provides the detailed specifications of instructions for Toshiba’s T-series Programmable Controllers. T-PDS (Ver. 1.4) Basic Operation Manual This manual explains how to install the T-series program development system (T-PDS) into your computer and provides basic programming operations.
Write sequence for message transmitting 5.3.1 Flag control timing 5.3.2 T3 sample program for message transmitting ... Checking the AS311 operation status Resetting the AS311 by software ... Setting the trailing code Setting the time-out check time ASCII Interface Module (AS311)
Page 7
RAS Information LED indication Buffer memory information ... 6.2.1 Module status 6.2.2 Switch setting status 6.2.3 Error information for data receiving 6.2.4 Error information for data transmitting Trouble shooting ... Appendix Specification of the READ instruction Specification of the WRITE instruction Contents User’s Manual...
RS-232C or RS-422. The AS311 has two ports of the serial interface. One port (channel 1) can be selected either RS-232C or RS-422 by switch setting. The other port (channel 2) is RS-232C interface.
Applicable message format (default trailing code): N: message length = 896 bytes max. In other words, the AS311 cannot be used for the data communication in which the transmission message is ended by two or more types of trailing code.
1. AS311 Overview 1.3 External features AS311 RESET ASCII Interface Module (AS311) Status LEDs Channel 1 transmission parameter setting switches Channel 2 transmission parameter setting switches RS-232C/RS-422 selection switches Optional rotary switches Hardware reset switch Channel 1 serial port (RS-232C/RS-422)
Page 13
Status LEDs RUN: Lit when AS311 is operating normally TX1: Lit while transmitting data from channel 1 RX1: Lit while receiving data to channel 1 TX2: Lit while transmitting data from channel 2 RX2: Lit while receiving data to channel 2 channel 1 transmission parameter setting switches No.8...
Page 14
CTSA and CTSB. (Effective for RS-422) No.3 Terminating The switches No.2 and No.3 should be set to ON when the AS311 is configured as terminal station on the RS-422 transmission line. The factory settings of the SW3 are all OFF.
Page 15
Hardware reset switch When this switch is pressed, the AS311 will be reset. Use this switch when you have changed the switch settings. Channel 1 and channel 2 serial ports Used to connect the serial transmission line (RS-232C or RS-422). D-Sub 25-pin female connectors are provided on the AS311.
Page 18
I/O allocation type Buffer memory capacity Transmission interface Display Connectable devices RAS function ASCII Interface Module (AS311) Specifications 5 Vdc (supplied from back plane bus) 1.0 A (5 Vdc) maximum Conforms to T3 specifications 10 M (500 Vdc) 500 Vac - 1 minute...
Page 19
Transmission distance Connector Note) In case of RS-422 interface, multiple devices can be connected to one AS311 if the connected RS-422 devices work as slave stations and support multi-point connection. That is, the connected RS-422 devices must have the transmission generators which support the passive state.
Page 22
(3) Use shielded cable. The cable shield should be connected to FG at one end. (4) It is recommended to use twisted cable for noise immunity. NOTE Do not connect or remove the connector while the AS311 is powered. Otherwise, it will cause damage to the AS311. ASCII Interface Module (AS311)
Page 23
(4) Use shielded twisted-pair cable. The A (+) and B (-) of the same signal should be paired. (5) The cable shield should be connected to FG at one end. NOTE Do not connect or remove the connector while the AS311 is powered. Otherwise, it will cause damage to the AS311. 3. Cable Connections Shielded cable...
Page 26
AS311, the following I/O allocation table will be created in the T3. (T-PDS screen example - in the case that AS311 is mounted on Slot 0 of Unit 0) Then, 4 I/O registers, XW(n), XW(n+1), YW(n+2) and YW(n+3), are assigned to the AS311.
Page 27
The following table shows the functions of I/O registers assigned to the AS311. XW(n) XW(n+1) No use YW(n+2) No use YW(n+3) Register Name Write ready Transmit complete 1: transmitting has been completed normally Transmit error XW(n) C - 8 (CH1)
This section explains the buffer memory contents and how to access the buffer memory. 4.2.1 Memory map The AS311 has the buffer memory that is used to exchange data with T3. The overall map of the buffer memory is as follows. Address Word data...
[ XW000 READ D5000 When R0100 is ON, 64 words of buffer memory data starting with address 128 are read from the AS311 which is allocated to XW000. And the data are stored in D1000 and after. 4. Register Configuration...
Page 30
[ D2000 WRITE D5000 When R0101 is ON, 100 words of data starting with D2000 (D2000 to D2099) are written into the buffer memory address 576 and after of the AS311 which is allocated to YW002. ASCII Interface Module (AS311)
4.2.3 Parameter area The parameter area of the buffer memory contains the following contents. Address 0 CH1 status 1 CH2 status 2 CH1 command 3 CH2 command 4 Status 1 5 RSW1/2 information 6 SW1 information 7 SW2 information 12 Command 1 16 CH1 receive error 17 CH1 transmit error 18 CH1 channel status...
Page 32
CH1 status CH2 status CH1 command CH2 command Status 1 (4) The address 4 shows the AS311 module status. If an error has occurred in the AS311, the error code is stored here. RDY ERR Bit F RDY (Ready) Bit E...
Page 33
SW1 information (6) The address 6 stores the setting status of the channel 1 transmission parameter setting switches (SW1). SW2 information (7) The address 7 stores the setting status of the channel 2 transmission parameter setting switches (SW2). ON: 1 OFF: 0 ON: 1 OFF: 0...
Page 34
The hot reset is used to change the trailing code and the time-out check time settings. The cold reset is used to initialize the AS311. The trailing code and the time-out check time will be reset to the default setting. The operation of the cold reset is the same as the hard reset switch and power on initialization.
Page 35
CH1 transmit error (17) and CH2 transmit error (81) The address 17 (for channel 1) and the address 81 (for channel 2) indicate the error contents if an error has occurred during message transmitting. This information is set during the write sequence for message transmitting. Refer to section 6.2.4 for details.
Page 36
Command 1 (12). See section 5.6 for this procedure. 24 or 88 Bit 7-0 Trailing code ASCII Interface Module (AS311) Received message length Shows the received message length (bytes). 0 - 896 Stores the trailing code.
Page 37
CH1 time-out check (25) and CH2 time-out check (89) The address 25 (for channel 1) and the address 89 (for channel 2) store the time-out check times. If the time between each receiving character exceeds the specified time-out check time, it becomes the receiving time-out error. The default setting is 1 second. To change the setting, write the desired data into this address then write the hot reset command into the Command 1 (12).
READ instruction. When T3 attempts to send a message via AS311, T3 writes the characters into the transmitting data area starting with the address 576 or 1472 by using WRITE instruction, and instructs AS311 to start transmitting.
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
In the above figure, x means an ASCII character. For example, 0 is H30. When the above message is received or transmitted, the data arrangements in the T3 registers are as follows. Register ASCII Interface Module (AS311) Transmission message...
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 ready...
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 normal received message Operation for receiving error (Subroutine No.
Page 43
Parameters for READ instruction This sample program works as follows. Main program - Rung 1: Calls Subroutine No. 0 when the AS311 is normal and both R0200 and R0300 are OFF. - Rung 2: When R0200 comes ON (normal receiving), performs the necessary operation for the received message, then resets R0200 to OFF.
Page 44
READ instruction is programmed as 64 words. (4) When an error has occurred in receiving the message, R0300 will come ON and the error information will be stored in D3000. For details of the error information, refer to section 6.2.3. ASCII Interface Module (AS311)
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.1. Write ready...
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)
Page 47
64 words in this sample). Then sets R0110 to ON. - Rung 2: Calls Subroutine No. 1 when the AS311 is normal and R0110 is ON. - Rung 3: When R0201 comes ON (normal transmitting), resets R0110 and R0201 to OFF.
Page 48
Then set R0110 to ON. The message length is maximum 128 bytes (64 words) in this sample program. (3) When R0110 is set to ON while the AS311 is ready, the Subroutine No. 1 will be called and the message transmitting will be started.
It means that the AS311 is operating normally when R0100 is ON. If R050E (Error) is ON, the AS311 is in error state. In that case, the error code is stored in the lower 8 bits of RW050. For the error code, refer to section 6.2.1.
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 initialized. The trailing code and the time-out check time are also reset to the default settings.
In this sample program, the trailing code changing routine will be executed once when the AS311 status is changed to ready (R0100 comes ON - refer to section 5.4), and the channel 1 trailing code will be changed to H03.
T3 program. The valid setting range is 0.1 to 60.0 seconds in 0.1 second units. Refer to section 4.2.3. To change the time-out check time, write desired value into the AS311’s buffer memory address 25 (CH1 time-out check) and/or address 89 (CH2 time-out check), and execute the hot reset (refer to section 5.5).
Section 6 RAS Information 6.1 LED indication 6.2 Buffer memory information 6.3 Trouble shooting User’s Manual...
Page 54
6. RAS Information 6.1 LED indication On the AS311, five status LEDs are provided as follows. These LEDs are useful to check the AS311 operation status and the communication status. ASCII Interface Module (AS311) Indicates the AS311 operation status. Lit when the AS311 is in ready state.
6.2 Buffer memory information Various RAS information are stored in the AS311’s buffer memory. These information can be read by READ instruction. When some abnormality has occurred, check these information. 6.2.1 Module status Address 4 of the buffer memory stores the AS311 module status.
Bit 7-4 RSW1 Bit 3-0 RSW2 ASCII Interface Module (AS311) Stores the rotary switch 1 (RSW1) setting status. 0 - F Stores the rotary switch 2 (RSW2) setting status. 0 - F ON: 1...
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. 16 or 80 Bit B BRK (Break) Bit A PE (Parity error) Bit 9 (Framing error) Bit 8 (Overrun error) Bit 7-0...
Transmit error code Error Type of error code Trailing code missing ASCII Interface Module (AS311) Shows the error code for transmitting. See the table below. (H00 when normal) Description The trailing code has not been written into the buffer memory.
6.3 Trouble shooting When AS311 does not work properly, check the following points. When AS311’s RUN LED does not light; When RX1/RX2 LED does not light while the connected device is transmitting a message; When the received data cannot be read properly;...
D0100 and after. The maximum number of words to be read is 256 words. XW000 special module Buffer memory 20 1234 35 5678 ASCII Interface Module (AS311) Execution output Input OFF No execution Device T. C. O XW YW SW LW RW W...
Page 63
Note 1) The special module can be designated not only by the assigned register, but also by the mounting position. The mounting position is designated by a constant data for the operand A as follows. (Unit number) Unit number For example, if a special module is mounted on Slot-4, Unit-0 (basic unit) and allocated to XW008 - YW011, the following two READ instructions function the same.
YW002. The maximum number of words to be transferred is 256 words. RW010 RW011 D0100 1234 D0249 5678 ASCII Interface Module (AS311) Execution output Input OFF No execution Device T. C. O XW YW SW LW RW W YW002 ]...
Page 65
Note 1) The special module can be designated not only by the assigned register, but also by the mounting position. The mounting position is designated by a constant data for the operand C as follows. (Unit number) Unit number For example, if a special module is mounted on Slot-2, Unit-1 (expansion unit #1) and allocated to XW020 - YW023, the following two WRITE instructions function the same.
Page 66
TOSHIBA CORPORATION Industrial Equipment Department 1-1, Shibaura 1-chome, Minato-ku Tokyo 105-8001, JAPAN Tel: 03-3457-4900 Fax: 03-5444-9268...