Hide thumbs Also See for V Series:

Advertisement

6F8C0870
Integrated Controller V Series
model 3000 ASCII Module
(AS311) User's Manual
March 9, 2001
TOSHIBA CORPORATION

Advertisement

Table of Contents
loading

Summary of Contents for Toshiba V Series

  • Page 1 6F8C0870 Integrated Controller V Series model 3000 ASCII Module (AS311) User’s Manual March 9, 2001 TOSHIBA CORPORATION...
  • Page 2 Important Information 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.
  • Page 3 Safety Precautions This manual contains important information for the operator to operate this product safely and correctly and avoid bodily injury and property damage. Grasp the meanings of the following marks and their descriptions before reading this manual. Hazard Classifications Indicates a potentially hazardous situation which, if not avoided, WARNING could result in serious injury or death.
  • Page 4 1. Checking the Warning Labels on the Main Unit Make sure warning markings are attached on the main unit. If any of them are missing or the wording is illegible, contact Toshiba's Service Department. 2. Precautions on Installation WARNING Mandatory Be sure to ground the equipment.
  • Page 5 3. Safety Precautions on Maintenance and inspection WARNING Mandatory Mandatory Turn off power removing or connecting any Turn off power removing any modules after modules, boards, or devices. installing. Otherwise, it can cause electrical shock, or Otherwise, exposed conductive parts of wire machine damage.
  • Page 6 User's manual. beyond normal range or if failure is occurred Otherwise, it can cause malfunction, machine in the equipment. damage or fire due to overheat. Contact Toshiba for repairing. Operation under such situation can cause fire or electrical shock. CAUTION Forbidden...
  • Page 7 Forbidden Forbidden Do not disassemble or modify the equipment. Do not enter wire scrapes or other foreign Otherwise, it can cause malfunction or failure. debris into the equipment. Also, do not insert metal parts into them. They can cause fire or accidents. 6.
  • Page 8 Toshiba is not liable for any incidental loss caused by the use or non-use of this product, such as loss of business profits, suspension of business, or loss or change of data on memory.
  • Page 9 Preface This manual explains the data configuration, wiring method, and installation of the ASCII Module (AS311) for the Integrated Controller V Series model 3000. Be sure to read the "Safety Precautions" in order to properly use the product. [Related manual: Direct I/O User's Manual] model 3000 Direct I/O Module User‘s Manual...
  • Page 10 (5) Where humidity is outside the allowed range If the device internal or external temperature becomes abnormally high or if there is a malfunction, stop operation, turn off the power and contact your local Toshiba ser- vice station. Do not open the case during operation except when setting the switches.
  • Page 11: Table Of Contents

    CONTENTS 1 Overview ......1 1.1 ASCII Module Overview ..... . . 1 1.2 ASCII Module Operation Overview .
  • Page 12 A Specifications ..... 33 A.1 MREAD Instruction Specification (V series) ..33 A.2 MWRITE Instruction Specification (V series) ..35...
  • Page 13: Overview

    Chapter 1 Overview 1.1 ASCII Module Overview • The AS311 is a general purpose serial interface module. • By using the AS311, the controller can communicate with external devices equipped with an RS232C/RS485 interface. • The AS311 has two ports of the serial interface. One port (channel1) can be selected either RS232C or RS485 by switch setting.
  • Page 14: Ascii Module Operation Overview

    Chapter 1 Overview 1.2 ASCII Module Operation Overview When exchanging data with an external device using the ASCII module, the exchanged data is transmitted through the following path. Ch1 and ch2 can operate independently. The Controller ASCII module Register Buffer memory Transmitting buffer Driver MWRITE...
  • Page 15: Name And Function Of Each Part

    1.3 Name and Function of Each Part 1.3 Name and Function of Each Part The external view and function of the AS311 is as follows: LEDs RUN: Lit when AS311 is operating normally TX1: Lit while transmitting data from channel 1 RX1: Lit while receiving data to channel 1 AS311 TX2: Lit while transmitting data from channel 2...
  • Page 16: Switch Settings

    Chapter 1 Overview 1.4 Switch Settings Each switch is set as follows. (1) ch1/ch2 DIP switch [SW1/SW2] Set these switches for each channel. Stop bit No use (set always ON) 1bit Stop bit 2 bits Data bit length Data bit length 8 bits Parity bit (Parity/No parity) 7 bits...
  • Page 17: Connector Port Specifications

    1.5 Connector Port Specifications 1.5 Connector Port Specifications The following signals are assigned to ch1/ch2 connectors. Channel 1 Channel 2 for RS232C for RS232C and RS485 5 Vdc 5 Vdc 10 TXDA 11 RXDA for RS485 12 RTSA 13 CTSA 20 DTR 20 DTR for RS232C...
  • Page 18: Factory Switch Settings

    Chapter 1 Overview 1.6 Factory Switch Settings The AS311 switches are set as follows at factory shipment. Always ON 1 stop bit AS311 Data length 8 bits Parity: Parity Odd parity 9600 baud Always ON 1 stop bit Data length 8 bits Parity: Parity Odd parity ON→...
  • Page 19: Specifications

    Chapter 2 Specifications 2.1 Module Specifications The main specifications of the ASCII module are as follows. Item Specification Function RS232C/RS485 Transmission interface 2 channels supported simultaneously ch1: Select either RS232C or RS485 ch2: RS232C Transmission capacity 1 text up to 896 bytes Transmission mode Asynchronous Communication mode...
  • Page 20: Transmission Procedure

    Chapter 2 Specifications 2.2 Transmission Procedure The ASCII module transmission method is commonly used in personal computers. A general method uses the following polling method and commonly uses CR (0DH) as the trailing code. Send Text Text Text Receive (1) Transmitted text To transmit data using the ASCII module, create an ASCII code text data as shown below and write it in the transmitting area of the ASCII module with an MWRITE instruction.
  • Page 21: Connection

    Chapter 3 Connection 3.1 RS232C Cable Connection The following figure shows the RS232C cable connection. In general, the RS232C cable should be kept less than 15m. Use 0.3mm or greater shielded cable. DTR 20 DB-25P DB-25P External device ASCII module RS232C cross cable (25P 25P)...
  • Page 22: Rs485 Cable Connection

    Chapter 3 Connection 3.2 RS485 Cable Connection Ch1 of the ASCII module can be connected RS485 transmission. The following figure shows the cable connection. RXDA TXDA RXDB TXDB TXDA RXDA TXDB RXDB RTSA RTSB CTSA CTSB External device ASCII module Notes (1) Be user to connect SG (signal ground).
  • Page 23: Wiring Precautions

    3.3 Wiring Precautions 3.3 Wiring Precautions The following module layout is recommended for noise immunity. Main unit Power Low-voltage I/Omodules I/O modules Expansion unit 200mm Low-voltage Power or more I/O modules I/Omodules Duct for Duct for Power Cables low-voltage Power signals signals Low-voltage I/O modules Power I/O modules...
  • Page 25: Register Configuration

    Chapter 4 Register Configuration 4.1 Allocation The engineering tool configuration editor is used to set up the ASCII module. The I/O setup screen is shown below. For more information concerning the I/O allocation method, refer to the "model 3000 Sequence Controller S3 Functional Description." 6F8C0870...
  • Page 26: Status/Command Information

    Chapter 4 Register Configuration 4.2 Status/Command Information The following status/command information is allocated in the I/O area. Ch1 status TX1_ TX1_ TX1_ RX1_ RX1_ RX1_ No use No use Ch2 status TX2_ TX2_ TX2_ RX2_ RX2_ RX2_ No use No use Ch1 command TX1_ RX1_...
  • Page 27: Register Map

    4.3 Register Map 4.3 Register Map (1) ASCII module internal memory map The configuration of the ASCII module internal memory map is as shown below. Data can be transmitted/received to/from the controller with MREAD/MWRITE instruction. Ch1 status Status/command IWn+1 Ch2 status information QWn+2 Ch1 command...
  • Page 28 Chapter 4 Register Configuration (2) Status information The ASCII module status information is stored in parameter 4W. Status No use Error code RDY ERR [4W] Name Description Error code Description (when ERR=1) Normal 1: Operating normally CPU error ready 0: Initializing or error occuring ROM error 1: Error Work RAM error...
  • Page 29 4.3 Register Map (5) Software reset The ASCII module can be reset with software by transferring a command to parameter 12W. Set a hot start command if the trailing code or the receive timeout interval is changed. Hot start takes 1 second to complete. Set a cold start command if an error occurs in the ASCII module.
  • Page 30 Chapter 4 Register Configuration (8) Status information of each channel Parameters 18W/82W contain the control signal status of each channel. Status No use CH1: [18W] CH2: [82W] Name Description 1: Transmision unit idle 0: Not idle 1: DSR enabled 0: DSR disabled 1: CTS enabled 0: CTS disabled 1: CD enabled...
  • Page 31: Operation Description

    Chapter 5 Operation Description 5.1 Receive Processing Operation The ASCII module's data receive timing is as follows: Normal data Abnormal data Transmit Receive Receive RX_CMP receive complete ① ① RX_ST ③ receive start ⑤ RX_RDY Normal receive ready ② Abnormal RX_ERR receive error ④...
  • Page 32: Transmit Processing Operation

    Chapter 5 Operation Description 5.2 Transmit Processing Operation The ASCII module's data transmit timing is as follows: Normal data Abnormal data Transmit Transmit TX_RDY transmit read ③ TX_ST transmit start ② ⑤ TX_CMP Normal transmit complete Abnormal TX_ERR transmit error ①...
  • Page 33: Changing The Trailing Code

    5.3 Changing the Trailing Code 5.3 Changing the Trailing Code An example of changing the transmission text trailing code is shown below: [Trailing code modification example] 24W (CH1 trailing code) 0003H (Trailing code 03H) 88W (CH2 trailing code) 0003H (Trailing code 03H) 12W (Command 1) 80FEH (Hot start) 5.4 Changing the Receive Timeout...
  • Page 35: Application Program

    Chapter 6 Application Program 6.1 AS311 Transmission Program Example An example of program to receive data from a PC and loop it back to the program is shown below. (1) Configuration %IW8(%MW11.8) %IW9(%MW11.9) %QW10 (%MW11.10) %QW11(%MW11.11) BU744 (RS232C) (RS232C) (2) Variable definition example (* AS311 TEST PROGRAM *) CH1_START,RX1_GO,RX1_END,RX1_ERR,TX1_GO,TX1_END,TX1_ERR: BOOL;...
  • Page 36 Chapter 6 Application Program (3) CH1 main processing program 1st scan: Turn RX1_GO ON to activate receive processing. Receive processing: When receive completes and RX1_END turns ON, use the table move instruction (TMOV) to transfer the content of RX1_DAT[0] - [128] to TX1_DAT[0] - [128]. Then turn OFF RX1_END to complete the receive processing and turn TX1_GO ON to activate the transmit processing.
  • Page 37 6.1 AS311 Transmission Program Example (4) Ch1 transmission program Receive: Data received by Ch1 (up to 256 bytes) is stored in RX1_DAT[0] - [128]. When receive is successful, %MX12.8.6 (RX1_CMP) turns ON for 1 scan. When there is a receive error, %MX12.8.5 (TX1_ERR) is turned ON and error information is stored in ERR_DAT[0] - [128].
  • Page 38 Chapter 6 Application Program (5) CH2 main processing program 1st scan: Turn RX2_GO ON to activate the receive processing. Receive processing: When receive completes, turn ON RX2_END and use the table move instruction (TMOV) to transfer the content of RX2_DAT[0] - [128] to TX2_DAT[0] - [128]. Then turn RX2_END OFF to complete the receive process and turn TX2_GO ON to activate the transmit process.
  • Page 39 6.1 AS311 Transmission Program Example (6) Ch2 transmit/receive program Receive: Data received by Ch2 (up to 256 bytes) is stored in RX2_DAT[0] - [128]. When receive is successful, %MX12.9.6 (RX2_CMP) turns ON for 1 scan. When there is a receive error, %MX12.9.5 (RX2_ERR) is turned ON and error information is stored in ERR_DAT[0] - [128].
  • Page 41: Maintenance

    Chapter 7 Maintenance 7.1 Checking the LEDs The operation of the ASCII module can be diagnosed by checking the LEDs. Error status Function Lit when ASCII module is operating normally Lit when Ch1 is transmitting data Lit when Ch1 is receiving data Lit when Ch2 is transmitting data Lit when Ch2 is receiving data The diagnosis procedure when there is an error is as follows:...
  • Page 42: Checking The Status Information

    Chapter 7 Maintenance 7.2 Checking the Status Information When there is an error in the ASCII module, an error code is stored in the ASCII module internal status (4W). Status No use Error code RDY ERR Name Description 1: Normal operation ready 0: Initializing or error occuring...
  • Page 43: Checking The Receive Error Information

    7.3 Checking the Receive Error Information 7.3 Checking the Receive Error Information When a receive data error is detected, the error code is stored in the receive error information. Status No use Receive error code FRM OVR Name Description Error Description (when code ERR=1)
  • Page 45: A Specifications

    Appendix A Specifications A.1 MREAD Instruction Specification (V series) For model 3000 Special module data input Diagram MREAD Complete Enable input output Bus/unit/slot TADR tended memory start address Transfer destination variable Transfer words Modifier EN input Make into pulse Index modification ...
  • Page 46 Appendix A Specifications [Input argument supplementary description] (1) Bus/unit/slot data structure Unit Slot Valid from 16#00 to 16#0A Valid from 16#0 to 16#7 (”0” in case of basic unit) Valid from 16#0 to 16#3 (”0” in case of basic unit) (2) Extended memory top address Extended memory address (16#0000 to 16#7FFF) (3) Transfer word count...
  • Page 47: A.2 Mwrite Instruction Specification (V Series)

    A.2 MWRITE Instruction Specification (V series) A.2 MWRITE Instruction Specification (V series) For model 3000 Special module data output Diagram MWRITE Complete Enable input output Bus/unit/slot TADR xtended memory top address Transfer source variable Transfer words Modifier EN input Make into pulse Index modification ...
  • Page 48 Appendix A Specifications [Input argument supplementary description] (1) Bus/unit/slot data structure Unit Slot Valid from 16#00 to 16#0A Valid from 16#0 to 16#7 (”0” in case of basic unit) Valid from 16#0 to 16#3 (”0” in case of basic unit) (2) Extended memory top address Extended memory address (16#0000 to 16#7FFF) (3) Transfer word count...
  • Page 49 3000 ASCII Module (AS311) User’s Manual 1st edition 9th March 2001 0870.0.0103 TOSHIBA CORPORATION INFORMATION AND INDUSTRIAL SYSTEMS & SERVICE COMPANY SYSTEM COMPONENTS DIVISION 1-1, Shibaura 1-chome, Minato-ku, Tokyo 105-8001, Japan Tel.:+81-3-3457-4900 Fax.:+81-3-5444-9268  TOSHIBA Corporation 2000 All Right Reserved.

This manual is also suitable for:

As311

Table of Contents