Toshiba AS311 User Manual

UM-TS03***-E020
PROGRAMMABLE CONTROLLER
PROSEC
T3
ASCII INTERFACE MODULE
AS311
TOSHIBA CORPORATION
Important Information
Misuse of this equipment can result in property damage or human injury. 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.
No patent liability is assumed by Toshiba Corporation with respect to use of information, illustrations, circuits, equipment or examples of application in this publication.
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 other than as noted in this publication.
This publication is copyrighted and contains proprietary material. No part of this book may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means  electrical, mechanical, photocopying, recording, or otherwise  without obtaining prior written permission from Toshiba Corporation.
Copyright © 1995 by Toshiba Corporation Tokyo, Japan All rights reserved
Publication number: UM-TS03***-E020 1st edition May 1995

Safety Precautions

Safety Precautions
This module (AS311) has been designed for Toshiba’s Programmable Contr o ller PROSEC-T3 (hereaft er called T3). Use this module only on the T3’s rack .
Read the Safety Precautions described on the T3 User ’s Manual bef or e using the T3 and this module.
Follow the instructions described on this manual and on the T3 User’s Manual when installing and wiring the T3 and this module.
Do not touch the connector pins or components on the pr inted circuit board of this module.
The maximum number of AS311s that can be cont rolled by one T3 is not limited by
software. However, this module consumes maximum 1 A of int e r nal 5 Vdc power. Confirm that the total 5 Vdc consumed current per one power supply module is within the limit (7A).
Symbols Used In This Manual
Pay attention to information preceded by the following symbols.
HINT
NOTE
Refers to helpful sug gestions on how to operate effect ively.
Refers to inform ation considered essential for full under standing of operation. And refers to conditions that could dam age the equipment or render it temporarily inoperative.
User’s Manual
1

About This Manual

About This Manual
This manual explains the specifications and operations of the ASCII Interface Module (AS311) for Progr am mable Controller T3. Read this manual car efully before using the AS311 module.
Inside This Manual
This manual consists of six sections and an appendix as follows. Section 1 Overview
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 t his m odule are also explained in this section.
Section 2 Specifications Provides the functional and the transmission specifications of the AS311. Refer to this section to confirm the application limitations.
Section 3 Cable Connections Provides the information for hardware preparations. The transmission cable connection is explained in this section.
Section 4 Register Configuration Explains the memory contents of the AS311. This information is important to interchange data between T3 and AS311.
Section 5 Operation Procedure Provides the information to design the T3 program f or using the AS311. Some sample programs are provided in this section. Read t his sect ion carefully for progra m m ing.
Section 6 RAS Information Provides the helpful informa t ion for RAS (Reliability, Availability and Serviceability). Also, lists the check points in case of unexpected operat ions.
Appendix
The specifications of READ and WRITE instr uctions are described. These instructions are used for interchanging dat a bet ween T3 and AS311.
ASCII Interface Module (AS311)
2
About This Manual
Related Manuals
The following related manuals are available f or 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, maintenance and services.
T3 User’s Manual - Functions
This manual explains the functions of the T3 and how to use them. The necessary information to create user pr ogram is covered in this manual.
T-series Instruction Set
This manual provides the detailed specifications of instructions for T oshiba’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 oper at ions.
T-PDS (Ver. 1.4) Command Reference Manual
This manual explains the T-series program development system (T-PDS) in detail.
T-PDS (Ver. 1.6) Expanded Functions
This manual explains the expanded functions on the T-PDS version 1.6. This manual supplements the T-PDS (Ver.1. 4) Com mand Reference Manual.
T-series Computer Link Function
This manual provides the information for a computer to communicate with T3 t hrough the T-series Programmable Cont r oller’s Computer Link function.
Terminology
The following terms and abbreviations are used in this manual.
ASCII: American Standard Code for Information Interchange
EIA: Electronic Industries Association
I/O: Input/Output
LED: Light Emitting Diode
RS-232C: An EIA standard for data tr ansmission
RS-422: An EIA standard for data tr ansm ission
User’s Manual
3

Contents

Contents
Safety Precautions .................................................................................. 1
About This Manual .................................................................................. 2
1. AS311 Overview .......................................................................... 7
1.1 Introduction ...................................................................................... 8
1.2 AS311 functions ............................................................................... 9
1.3 External features .............................................................................. 10
2. Specifications ............................................................................ 15
2.1 General specifications ...................................................................... 16
2.2 Functional specifications ................................................................ 16
2.3 Transmission specifications ............................................................. 17
3. Cable Connections ..................................................................... 19
3.1 RS-232C connection ......................................................................... 20
3.2 RS-422 connection ............................................................................ 21
4. Register Configuration .............................................................. 23
4.1 I/O allocation and I/O registers ........................................................ 24
4.2 AS311 buffer memory ........................................................................ 26
4.2.1 Memory map ............................................................................... 26
4.2.2 Buffer memory access ................................................................ 27
4.2.3 Parameter area ............................................................................ 29
4.2.4 Receiving and transmitting data area .......................................... 36
5. Operation Procedure ................................................................. 37
5.1 Transmission message format .......................................................... 38
5.2 Received message read sequence .................................................. 39
5.2.1 Flag control timing ....................................................................... 39
5.2.2 T3 sample program for message receiving ................................... 40
5.3 Write sequence for message transmitting ....................................... 43
5.3.1 Flag control timing ....................................................................... 43
5.3.2 T3 sample program for message transmitting ................................ 44
5.4 Checking the AS311 operation status .............................................. 47
5.5 Resetting the AS311 by software ...................................................... 48
5.6 Setting the trailing code .................................................................... 49
5.7 Setting the time-out check time ........................................................ 50
ASCII Interface Module (AS311)
4
Contents
6. RAS Information ......................................................................... 51
6.1 LED indication .................................................................................. 52
6.2 Buffer memory information ................................................................ 53
6.2.1 Module status .............................................................................. 53
6.2.2 Switch setting status ................................................................... 54
6.2.3 Error information for data receiving .............................................. 55
6.2.4 Error information for data transmitting .......................................... 56
6.3 Trouble shooting ............................................................................... 57
Appendix .................................................................................................... 59
A.1 Specification of the READ instruction ............................................... 60
A.2 Specification of the WRITE instruction ............................................ 62
User’s Manual
5
ASCII Interface Module (AS311)
6
Section 1

AS311 Overview

1.1 Introduction
1.2 AS311 functions
1.3 External features
User’s Manual
7
1. AS311 Overview

1.1 Introduction

The ASCI I interface module AS311 (hereaf ter called AS311) is a general purpose data communicat ion m odule for Toshiba’s Program mable Controller PROSEC-T3 (hereafter called T3) . By using t he AS311, T3 can communicate with external devices, such as a micro comput er, bar code reader, printer, display device, sensor, etc., through the serial inter face RS-232C or RS-422.
The AS311 has t wo ports of the serial interface. One port (channel 1) can be selected either RS- 232C or RS-422 by switch setting. The other port ( c hannel 2) is RS- 232C interface. These two ports can be used independently for data receiving and transmitting.
The t r ansm ission is asynchronous (st ar t - s t op system) . ASCII is used as t he transmission data code.
The figure below shows the typical system configuration.
NOTE
T3
CPU module
The maximum number of AS311 that can be cont rolled by one T3 is not limited by software. However, this module consumes maximum 1 A of int ernal 5 Vdc power. Confirm that the tot al 5 Vdc consum ed current per one power supply module is within the limit (7 A).
AS311
Channel 1 RS-232C or RS-422
Channel 2 RS-232C
ASCII Interface Module (AS311)
8
1. AS311 Overview

1.2 AS311 functions

From t he point of view of T3, the AS311 works as communications driver. The f ollowings are the simplified explanations for T 3 and AS311 functions.
When a message (one set of transmission characters) is received by AS311, the flag which indicates the receiving complete will come ON. T3 can check the flag status then read the m essage from the AS311 by using the READ instr u ct ion.
In case of transmitting a message (one set of transmission characters) from T3 through AS311, T 3 writes t he message into the AS311 by using the WRITE instruction, then sets the flag which instruct the AS311 to start t r ansm it t ing the message.
T3 AS311 Register Buffer memory READ Receiving
area Receiving Channel 1 WRITE Transmitting buffer area READ Receiving Transmitting area buffer WRITE Transmitting area Receiving Channel 2 buffer
Transmitting buffer
Here, a m essage (one set of transmission charact er s) means a string of ASCII character s which is ended by specified trailing code. The default set t ing of the trailing code is CR (carr iage return code = H0D).
Applicable messag e format (default trailing code):
1 2 3 4 N-1 N
CR
N: message length = 896 bytes max.
In other words, t he AS311 cannot be used for the data communication in which the transm ission m essage is ended by two or more types of trailing code.
User’s Manual
9
1. AS311 Overview
RSW
RSW

1.3 External features

AS311
RUN
TX1
RX1
TX2
RX2
ON
SW3
1 2 3
RESET
ON
SW1
SW2
1 2
CH1
CH2
Status LEDs
8 7 6 5 4 3 2 1
Channel 1 transmission parameter setting switches
8 7 6 5 4 3 2 1
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) D-Sub 25-pin female connector
Channel 2 serial port (RS-232C) D-Sub 25-pin female connector
ASCII Interface Module (AS311)
10
Status LEDs
RUN: Lit when AS311 is operating nor mally TX 1: Lit while transmit ting data from channel 1 RX1: Lit while receiving data to channel 1 TX 2: Lit while transmit ting data from channel 2 RX2: Lit while receiving data to channel 2
SW1  channel 1 transmission parameter setting switches
8 7 6 5 4 3 2 1
ON
No.8 No use (set always ON)
No.7
OFF ON
Stop bit 2 bit 1 bit
No.6
OFF ON
Data bit length 7 bit 8 bit
No.5 No.4
OFF ON ON
OFF/ON OFF ON
Parity None Even Odd
SW1
1. AS311 Overview
No.3 No.2 No.1
OFF OFF OFF OFF ON ON ON OFF OFF ON ON OFF OFF ON OFF ON OFF ON OFF ON OFF
Baud rate 300 600 1200 2400 4800 9600 19200
SW2  channel 2 transmission parameter setting switches
Used to set t he transmission parameters for channel 2. The functions of each switch are the sam e as the SW1. Set t he transmission parameters independently for channel 1 and channel 2.
NOTE
The factory settings of the SW1 and SW2 are as shown above figure. That is, 1 stop bit, 8 data bits, odd parity and 9600 bps.
User’s Manual
11
1. AS311 Overview
SW3  RS-232C/RS-422 selection switches (for channel 1)
1
2
3
ON
SW3
NOTE
The switches No.2 and No.3 should be set to ON when the AS311 is configured as terminal st at ion on the RS-422 transmission line. The factory settings of the SW 3 ar e all OFF.
RSW1/RSW2  Optional rotary switches
RSW1
C
80
RSW2
4 C
80
4
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 terminating resist or ( 120 Ω) between RXDA and RXDB. (Eff e ct ive for RS-422)
No.2
OFF ON
Terminating Not connect Connect
Used to connect the terminating resist or ( 120 Ω) between CTSA and CTSB. (Effective for RS-422)
No.3
OFF ON
Terminating Not connect Connect
Always set the RSW1 to 4 and the RSW2 to 0. (Other settings are f or future use)
Do not set other than above, otherwise the AS311 will not work correctly.
ASCII Interface Module (AS311)
12
1. AS311 Overview
Hardware reset switch
When this switch is pressed, the AS311 will be reset. Use t his switch when you have changed the switch settings.
Channel 1 and channel 2 seri al ports
Used to connect the serial transmission line (RS-232C or RS-422). D- Sub 25-pin f em ale connectors are provided on the AS311. The pin assignment is as follows.
Channel 1 Channel 2 (RS-232C/RS-422) (RS-232C)
1 FG 2 TXD 3 RXD 4 RTS 5 CTS 6 6 DSR 7 SG 8 8 9 5 Vdc 10 TXDA 11 RXDA 12 RTSA 13 CTSA 14 14 15 15 16 16 17 17 18 18 19 19 20 DTR 21 TXDB 22 RXDB 23 RTSB 24 CTSB 25 25
The arrow on the above figure shows the signal direction.
FG is connected with the T3’s frame g r ound internally. (both channels)
DTR and RTS are ON while power is on.
Data transmitting is available when CTS is ON. DSR has no effect for t r ansm ission.
Pin 9 (5 Vdc) can be used to supply 5 Vdc power. (total max. 50 mA)
for RS-232C
for RS-422
for RS232C for RS-422
1 FG 2 TXD 3 RXD 4 RTS 5 CTS
7 SG
9 5 Vdc 10 11 12 13
20 DTR 21 22 23 24
User’s Manual
13
ASCII Interface Module (AS311)
14
Section 2

Specifications

2.1 General specifications
2.2 Functional specifications
2.3 Transmission specifications
User’s Manual
15
2. Specifications

2.1 General specifications

Item Specifications Remarks Power voltage 5 Vdc (supplied from back plane bus) Current consumption 1.0 A (5 Vdc) maximum Note (1) Environmental conditions Conforms to T3 specifications Insulation resistance Withstand voltage 500 Vac - 1 minute Note (2) Size T3 I/O module size (1 slot) Weight 500 g
Note (1) The T3’s power supply module can supply maximum 7 A of internal 5 Vdc. Check that the internal 5 Vdc current consum ption per one power supply module does not exceed the limit.
Note (2) Between interface connector pins and internal circuit.
10 M (500 Vdc)

2.2 Functional specifications

Item Specifications Module type Serial communication interface I/O allocation type iX+Y 4W Buffer memory capacity 448 words x 4
(accessed from T3 by READ/WRITE instruction)
Transmission interface 2 channels;
Channel 1 RS-232C or RS-422 (selectable) Channel 2 RS-232C
Display Status LEDs;
RUN lit when 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
Connectable devices Computer, bar code reader, display device, sensor,
printer, or other serial ASCII device
RAS function Self diagnosis, watch dog timer ( 200 ms),
transmission error check, etc.
Note (2)
ASCII Interface Module (AS311)
16
2. Specifications

2.3 Transmission specifications

Item Channel 1 Channel 2 Interface RS-232C or RS-422 RS-232C Transmission mode Full-duplex Synchronizing St art-stop method (asynchronous) Transmission speed 300, 600, 1200, 2400, 4800, 9600, 19200 bps Frame format Start bit
Data Parity
Stop bit Transmission code ASCII Message length Max. 896 bytes Configuration One to one (Note) Transmission distance Max. 15 m (RS-232C)
Max. 1 km (RS-422) Connector D-sub 25-pin female D-sub 25-pin female
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 tr ansm ission generators which support the passive state. Also, the RS- 422 devices must support the message form at which contains the select ing address. In this case, the number of the connected RS-422 devices is limit ed up t o 10. On the other hand, the AS311’s transmission g enerator does not support the passive state. Therefore the AS311 m ust be t he master station in the one-to-N configuration.
1 bit 7 or 8 bits even / odd / none 1 or 2 bits
Max. 15 m
User’s Manual
17
ASCII Interface Module (AS311)
18
Loading...
+ 46 hidden pages