Home

Toshiba AS311 Network Card User Manual

image

Contents

1. 6 The address 6 stores the setting status of the channel 1 transmission parameter setting switches SW1 F E D C B A 9 8 7 6 5 4 3 2 1 0 6 ame PT TT TT sw OFF N 1 OFF 0 MW HOOD N SW2 information 7 The address 7 stores the setting status of the channel 2 transmission parameter setting switches SW2 E D C B A 9 7 6 5 4 3 2 1 0 ey SW2 OFF T 8 7 6 5 4 3 2 1 N 1 OFF 0 User s Manual 31 4 Register Configuration Command 1 12 The address 12 is used to reset the AS311 by T3 program Two types of reset commands are available hot reset and cold reset 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 Refer to sections 5 5 5 6 and 5 7 for these functions F E D Cc B A 9 8 7 6 5 4 3 2 1 0 2e OTe Tepe yoyo commandnumber E Bit F RST Reset 1 reset request 0 normal no reset request Bit 7 0 Command HFE hot reset number HFF cold reset CH1 receive error 16 and CH2 receive error 80 The address 16 for channel 1 and the address 80 for channel 2 indicate the error contents if an error has been detected in receiving a message This information is set during the received message read sequence Refer
2. occurred XOOOF Write ready flag X000E Transmit complete flag X000D Transmit error flag Y002F Transmit start flag D0200 D0263 Transmitting message is set here D3010 Transmitting error information is stored here D4010 D4011 Parameters for WRITE instruction D4000 D4001 Parameters for READ instruction This sample program works as follows Main program Rung 1 Prepares a transmission message and sets it into D0200 and after maximum 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 ORE Rung 4 When R0301 comes ON transmitting error has occurred performs the error processing then resets R0110 and R0301 to OFF Subroutine No 1 Rung 1 Indicates the entry of Subroutine No 1 Rung 2 Reads XWO000 and XW001 from the AS311 by direct I O instruction Rung 3 When XOOOF Write ready flag is ON writes the message that is stored in D0200 to D0263 into the AS311 s buffer memory 64 words starting with address 576 by WRITE instruction and sets YOO2F Transmit start flag to ON Rung 4 When XOOOE Transmit complete flag comes ON resets YOO2F Transmit start flag to OFF and sets R0201 to ON When X000D Transmit error flag comes ON reads the error information from the AS311 s buffer memory 1 word of address 17 by READ instruction and stores it into D3
3. 2 command 66 3 67 4 68 5 69 6 70 7 71 Reserved sf CHT CHP 72 9 common 73 10 parameters 74 aloo 75 12 76 fo 77 a 78 ot S 79 V 16 80 N 17 81 18 82 19 83 20 S 84 o sf 2 E 86 S P a a 24 88 25 CH1 89 CH2 26 parameters 90 parameters 27 91 28 92 29 93 30 94 31 95 User s Manual 29 Note Blanks are for future use Reserved 63 id 127 4 Register Configuration Status and command 0 3 The addresses 0 to 3 store the same data as the I O registers that are assigned to the AS311 Refer to section 4 1 for details CH1 status CH2 status CH1 command CH2 command On oO 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 F E D Cc B A 9 8 7 6 5 4 3 2 1 0 4 OVERAD OT OTOP e eroreoe E Bit F 1 operating normally 0 under initialization or error state Bit E ERR Error 1 error state 0 no error normal Bit 7 0 Error code Shows the detected error item if ERR is 1 HOO when normal See section 6 2 1 for details RSW1 2 information 5 The address 5 stores the rotary switches RSW1 and RSW2 setting status F E D C B A 9 8 7 6 5 4 3 2 1 0 gy AN ST WWW PD a Bit 7 4 Stores the rotary switch 1 RSW1 setting status 0 F Bit 3 0 Stores the rotary switch 2 RSW2 setting status 0 F 30 AsCII Interface Module AS311 4 Register Configuration SW1 information
4. 2 t 66056 MOV DO4OO 00025 NOV 14616 60001 MOV D4011 0400 WRITE D4010 gt XNAHA RO100 R0132 3 k RST RO13 H RST R0132 50 ASCII Interface Module AS311 Section 6 RAS Information 6 1 LED indication 6 2 Buffer memory information 6 3 Trouble shooting User s Manual 51 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 RUN RUN Indicates the AS311 operation status 1X1 Lit when the AS311 is in ready state RX1 Not lit when the AS311 is in error or under initialization 1x2 TX1 Indicates the channel 1 communication status RX2 Lit while some data is transmitting from the AS311 Indicates the channel 1 communication status Lit while some data is receiving into the AS311 Indicates the channel 2 communication status Lit while some data is transmitting from the AS311 RX2 Indicates the channel 2 communication status Lit while some data is receiving into the AS311 52 ASCII Interface Module AS311 6 RAS Information 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 F E D Cc B A 9 8 7 6 5 4 3 2 1 0 4 OYERAD OT OTOP opo
5. 3 CTS Clear to send 0 CTS is OFF Note 1 The channel 1 does not support DSR Therefore bit 7 of the address 18 is always 0 2 The bit 2 is always 1 User s Manual 33 4 Register Configuration CH1 receive length 19 and CH2 receive length 83 The address 19 for channel 1 and the address 83 for channel 2 indicate the length of the received message number of bytes This information is set during the received message read sequence F E D C B A 9 8 7 6 5 4 3 2 1 0 19 or 83 Bit F 0 Received Shows the received message length bytes message length 0 896 CH1 trailing code 24 and CH2 trailing code 88 The address 24 for channel 1 and the address 88 for channel 2 store the trailing codes The default setting is HOD CR code To change the trailing code write the desired code into this address then write the hot reset command into the Command 1 12 See section 5 6 for this procedure E D C B A 9 8 7 6 5 4 3 2 1 0 F 2400 88 FOTOS RO Oe EOF 0 EO e ainda Bit 7 0 Trailing code Stores the trailing code Initial value at power on is HOD carriage return 34 ASCII Interface Module AS311 4 Register Configuration 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 o
6. 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 printer or other serial ASCII device Self diagnosis watch dog timer 200 ms transmission error check etc 16 ASCII Interface Module AS311 2 Specifications 2 3 Transmission specifications Frame format Start bit 1 bit Data 7 or 8 bits Parity even odd none Stop bit 1 or 2 bits Transmission distance Max 15 m RS 232C Max 15 m Max 1 km RS 422 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 transmission generators which support the passive state Also the RS 422 devices must support the message format which contains the selecting address In this case the number of the connected RS 422 devices is limited up to 10 On the other hand the AS311 s transmission generator does not support the passive state Therefore the AS311 must be the master station in the one to N configuration User s Manual
7. 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 Cc B A 9 8 7 6 5 4 3 2 1 0 TE oF B0 EE 201720 0 BPE ene __ Revete eon code Bit B BRK Break 1 break detected 0 normal When break has been detected receive buffer is cleared The next message can be received Bit A PE Parity error 1 parity error 0 normal When parity error has occurred the message is disabled The next message can be received Bit 9 FE 1 framing error Framing error 0 normal When framing error has occurred the message is disabled The next message can be received Bit 8 OE 1 overrun error Overrun error 0 normal When overrun error has occurred the message is disabled The next message can be received Bit 7 0 Receive error Shows the error code regarding received message code See the table below HOO when normal code H01 Receive time Specified time out check The rest of the message out error time has elapsed between will be received as the next characters Message The message length has The message is disabled length error exceeded the limit 896 The next message can be bytes received overflow has occurred The next message can be received Receive buffer Receive buffer overflow The message is disabled User s Manual 55 6 RAS Information 6 2 4 Error information for data transm
8. AS311 These flags are the bits of the I O registers assigned to the AS311 Refer to section 4 1 Read ready Bit 7 of XW n for channel 1 or XW n 1 for channel 2 Receive complete Bit 6 of XW n for channel 1 or XW n 1 for channel 2 Receive error Bit 5 of XW n for channel 1 or XW n 1 for channel 2 Read start Bit 7 of YW n 2 for channel 1 or YW n 3 for channel 2 The message receiving procedure is as follows It is called received message read sequence AS311 receives a message AS311 sets Receive complete to ON T3 sets Read start to ON Normal receiving Receiving error AS311 sets the message into buffer AS311 sets the error information into memory receiving data area and buffer memory parameter area sets the received message length into buffer memory parameter area AS311 sets Read ready to ON and AS311 sets Receive error to ON and resets Receive complete to OFF resets Receive complete to OFF T3 reads the message form buffer T3 reads the error information from memory receiving data area buffer memory parameter area by READ instruction by READ instruction T3 resets Read start to OFF T3 resets Read start to OFF AS311 resets Read ready to OFF AS311 resets Receive error to OFF User s Manual 39 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
9. data cannot be ee a the transmit error Confirm the transmit transmitted from the jaa occur error information AS311 TX1 TX2 LED does not light Check the T3 program Is the CTS Eo y Check the cable connected Eo y connection If CTS signal is OFF data transmitting is prohibited User s Manual 57 58 ASCII Interface Module AS311 Appendix A 1 Specification of the READ instruction A 2 Specification of the WRITE instruction User s Manual 59 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 gt C Function e This instruction reads data from the buffer memory of the special module that is designated by operand A and stores them in T3 s registers starting with operand C e The transfer source address buffer memory edie gt cians ib tad 8 e The transfer size number of words is ON Normal execution ON _ designated by operand B 1 s Error see Note D Operand Device Register oe a oo S P EAR i i ll a Gal ae N A e EEE e Ee gemee A A PPP HAT prsesia TT TTT TT SEE HHH M Program example R0000 t _ XwW000 READ RW010 gt Dorop e When R0000 is ON the buffer memory data of the size indicated by RW011 starting with the address indicated by RW010 of the special module allocated to XW000 are read and stored in D0100 and
10. 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 D0100 WRITE RW010 XW020 D0100 WRITE RW010 H0102 Note 2 The WRITE instruction is not executed as error in the following cases In these cases ERF instruction error flag S0051 is set to ON e When the operand C is other than a valid constant see Note 1 or XW YW register When the designated special module has been disconnected When no answer error occurs with the designated special module When the number of words transferred exceeds 256 words When the source table of transfer is out of the valid range When the destination table of transfer is out of the valid range User s Manual 63 TOSHIBA TOSHIBA CORPORATION Industrial Equipment Department 1 1 Shibaura 1 chome Minato ku Tokyo 105 8001 JAPAN Tel 03 3457 4900 Fax 03 5444 9268
11. for Toshiba s Programmable Controller PROSEC T3 hereafter called T3 Use this module only on the T3 s rack e Read the Safety Precautions described on the T3 User s Manual before using the T3 and this module e Follow the instructions described on this manual and on the T3 User s Manual when installing and wiring the T3 and this module e Do not touch the connector pins or components on the printed circuit board of this module e The maximum number of AS311s that can be controlled by one T3 is not limited by software However this module consumes maximum 1 A of internal 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 WX Refers to helpful suggestions on how to operate effectively NOTE Refers to information considered essential for full understanding of operation VAV And refers to conditions that could damage 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 Programmable Controller T3 Read this manual carefully before using the AS311 module Inside This Manual 2 This manual consists of six sections and an appendix as follows Section 1 Overview Introduces The AS311 Outline of the function appl
12. pin assignment is as follows Channel 1 Channel 2 RS 232C RS 422 RS 232C FG TXD RXD for RS 232C RTS CTS ef SG 8 5 Vdc TXDA RXDA for RS 422 RTSA CTSA gj SJE EE HE az B poe DTR for RS232C TXDB RXDB for RS 422 RTSB CTSB 25 The arrow on the above figure shows the signal direction FG is connected with the T3 s frame ground 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 transmission Pin 9 5 Vdc can be used to supply 5 Vdc power total max 50 mA User s Manual 1 3 14 ASCII interface Module AS311 Section 2 Specifications 2 1 General specifications 2 2 Functional specifications 2 3 Transmission specifications User s Manual 1 5 2 Specifications 2 1 General specifications Power voltage 5 Vdc supplied from back plane bus 1 0 A 5 Vdc maximum Environmental conditions Conforms to T3 specifications Size dT TBO module size 1s Weight 500g S S E Note 1 The T3 s power supply module can supply maximum 7 A of internal 5 Vdc Check that the internal 5 Vdc current consumption per one power supply module does not exceed the limit Note 2 Between interface connector pins and internal circuit 2 2 Functional specifications Specifications Module type Serial communication interface I O allocation type iX Y 4W Buffer memory capacity 448 words x
13. to section 6 2 3 for details F E D Cc B A 9 8 7 6 5 4 3 2 1 0 Tear BD pe J e TER PREY ee OE E Recenerenoreede E l Bit B 1 break detected 0 normal Bit A 1 parity error 0 normal Bit 9 1 framing error Framing error 0 normal Bit 8 1 overrun error Overrun error 0 normal Bit 7 0 Receive error Shows the error code regarding received message code HOO when normal See section 6 2 3 for details 32 ASCII Interface Module AS311 4 Register Configuration 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 F E D Cc B A 9 8 7 6 5 4 3 2 1 0 TOF OU Oa OF OPT Op a a a ores si Bit 7 0 Transmit error Shows the error code for transmitting code HOO when normal See section 6 2 4 for details CH1 channel status 18 and CH2 channel status 82 The address 18 for channel 1 and the address 82 for channel 2 indicate the control signal status This information is always updated F E D Cc B A 9 8 7 6 5 4 3 2 1 0 18 or 82 eT a TSP POs SIDE BSR Os ee Ore ee ee ae Bit 8 1 transmitter is idle state 0 transmitter is non idle state Bit 7 1 DSR is ON Data set ready 0 DSR is OFF Note 1 1 CTS is ON Bit
14. 010 Then resets YOO2F Transmit start flag to OFF and sets R0301 to ON Rung 5 Writes YW002 and YW003 into the AS311 by direct I O instruction Rung 6 Indicates the return of Subroutine No 1 User s Manual 45 5 Operation Procedure Explanation for this sample program The write sequence for message transmitting is programmed on Subroutine No 1 To start transmitting set the message ASCII characters into D0200 and after Then set R0110 to ON The message length is maximum 128 bytes 64 words in this sample program 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 When the message is transmitted normally R0201 will come ON Then R0110 will be reset to OFF When an error has occurred in transmitting the message R0301 will come ON and the error information will be stored in D3010 For details of the error information refer to section 6 2 4 46 ASCII Interface Module AS311 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 AS311 that is allocated to XW000 YW003 RST 6051 60004 MOV D4666H 80001 MOV D4001 666 READ D466 gt RVO50 6051 ROSOF R0100 J The above sample program
15. 1 7 18 ASCII Interface Module AS311 Section 3 Cable Connections 3 1 RS 232C connection 3 2 RS 422 connection User s Manual 1 9 3 Cable Connections 3 1 RS 232C connection The following figure shows the RS 232C connection AS311 Shielded cable RS 232C device a RXD ae DTR a peer ee s Tosi L lt HDR Bia EAA TELES 7 CTS 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 FG at one end 4 Itis recommended to use twisted cable for noise immunity NOTE Do not connect or remove the connector while the AS311 is powered Otherwise it VAV will cause damage to the AS311 20 AscCll Interface Module AS311 3 Cable Connections 3 2 RS 422 connection The channel 1 can be selected either RS 232C or RS 422 The following figure shows the RS 422 connection AS311 Shielded cable RS 422 device 1 On the AS311 connect the built in terminating resistors 120 Q between RXDA and RXDB and between CTSA and CTSB by setting switches Set the SW3 2 and SW3 3 to ON 2 On the RS 422 device connect the terminating resistors R 120 Q 1 2 W between RXDA and RXDB and between CTSA and CTSB 3 Connect SG each other 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 t
16. 1 Transmission message format sssssssseerresserererrnntrsrtrrnnrrsserrrrrrnn 38 5 2 Received message read Sequence sssssssersressssrrrrressrrrrrrtssrrrrtrrnnt 39 5 2 1 Flag control timing Acacte Stectie Palast ete ok eet Ree ee att 39 5 2 2 T3 sample program for MESSAGE receiving eeeeeeeeeeeeceeeeeeeeeeeeeeees 40 5 3 Write sequence for message transmitting sssssesseesssssserrrssrrrreree 43 5 3 1 Flag control timing errearen R 43 5 3 2 T3 sample program for message transmitting eeeeeeeeeeeeeeeeeees 44 5 4 Checking the AS311 operation status o eee eeeeeeeeeeeeeteetteeeeeeteees 47 5 5 Resetting the AS311 by Software oo eeeeseccneeeeeeeeeseeeeeeeeeeteaeees 48 5 6 Setting the trailing code oe ves sete ssesktees sede geskeqelddeebeiekeeelseeheeseshiestdeecwake 49 5 7 Setting the time out check time oo eee ee cecccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeesaaeees 50 4 ASCII Interface Module AS311 6 RAS Information xnceinnvacketemenedks caw eee 51 6 1 EDMIMGIGANOM ensinan ane vided n a ten eee 52 6 2 Buffer memory information cccccccceeeeeeeececeeeeeeeee eee eeeenensaeeeeeeeeeeeeeees 53 6 2 1 Module status astthccc dec x Sentech ct es ct eee ate Se ce ect es ek ret aah 53 6 2 2 Switch setting status acpeadzcrdnctreraapenstiecenmtenreas eictudeteneaaeieldeenene 54 6 2 3 Error information for data receiving eeeeeeeeeeeeeeeeeeeeeetteeeeeeeeeeeeeees 55 6 2 4 Error information for data trans
17. 11 that can be controlled by one T3 is not limited by VAV software However this module consumes maximum 1 A of internal 5 Vdc power Confirm that the total 5 Vdc consumed current per one power supply module is within the limit 7 A ASCII Interface Module AS311 1 AS311 Overview 1 2 AS311 functions From the point of view of T3 the AS311 works as communications driver The followings are the simplified explanations for T3 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 message from the AS311 by using the READ instruction In case of transmitting a message one set of transmission characters from T3 through AS311 T3 writes the message into the AS311 by using the WRITE instruction then sets the flag which instruct the AS311 to start transmitting the message T3 AS311 Register Buffer memory READ Receiving el 2 Po le area Receiving Channel 1 lt gt WRITE Transmitting buffer j n area READ Receiving Transmitting lt lt nn a e a a area See buffer WRITE_ Transmitting area Receiving Channel 2 lt gt buffer il Transmitting buffer Here a message one set of transmission characters means a string of ASCII characters which is ended by specified trail
18. T R0130 R0130 H0003 t 66003 MOY DO4AA 00024 MOV 146161 60061 MOV D4011 0400 WRITE D4010 gt XNONA C ALL N 3 RG106 RB132 3 l RST RO136H RST RO132 1 2 Subroutine No 3 SUBR 003 R0131 R 132 H80FE 32514 MOV D0310 00012 MOV D4616H 80001 MOV D4011 0310 WRITE D4010 gt XNOOA SET R0131 R0131 00012 NOV DAOOOH 60001 MOV D4001 KOAA READ D4000 gt ROS RST R 131H SET R0132 RET User s Manual 49 5 Operation Procedure 5 7 Setting the time out check time The default setting of the time out check time is 1 second The time out check time can be changed by 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 T3 program for this purpose is almost same as that for setting the trailing code refer to section 5 6 Only the difference is writing the time out check time instead of the trailing code See Rung 2 of the following sample In this sample the channel 1 time out check time is changed to 5 seconds If the channel 2 time out check time and or the trailing code are also changed write these data on the Main program Rung 2 before calling Subroutine No 3 in the same manner Main program RO106 R0130 1 tA SET R0130 R0139
19. UM TS03 E020 PROGRAMMABLE CONTROLLER PROSEC T3 ASCII INTERFACE MODULE AS311 USER S MANUAL 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 e This module AS311 has been designed
20. ach switch are the same as the SW1 Set the transmission parameters independently for channel 1 and channel 2 NOTE The factory settings of the SW1 and SW2 are as shown above figure VAV That is 1 stop bit 8 data bits odd parity and 9600 bps User s Manual 1 1 1 AS311 Overview SW3 RS 232C RS 422 selection switches for channel 1 Used to select the interface of the channel 1 either c RS 232C or RS 422 Not OF ON 2 3 E Used to connect the terminating resistor 120 Q ON gt between RXDA and RXDB Effective for RS 422 ae No 2 OF COON sw3 Used to connect the terminating resistor 120 Q between CTSA and CTSB Effective for RS 422 ON Connect NOTE The switches No 2 and No 3 should be set to ON when the AS311 VAV is configured as terminal station on the RS 422 transmission line The factory settings of the SW3 are all OFF RSW1 RSW2 Optional rotary switches Always set the RSW1 to 4 and the RSW2 to 0 Other settings are for future use Do not set other than above otherwise the AS311 will not work correctly 12 ASCII Interface Module AS311 1 AS311 Overview 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 The
21. after e The maximum number of words to be read is 256 words XW000 special monu T3 L a es eas ae Buffer memory ee RW011 20 Ere READ D0100 aea 16 words D0115 60 AscCII Interface Module AS311 Appendix 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 x 256 Slot number HOO Ney Naot Slot number hexadecimal Unit number hexadecimal 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 XW008 READ RW010 DO0100 H0004 READ RW010 D0100 Note 2 The READ instruction is not executed as error in the following cases In these cases ERF instruction error flag S0051 is set to ON e When the operand A is other than a valid constant see Note 1 or XW YW register When the designated special module has been disconnected When no answer error occurs with the designated special module When the number of words transferred exceeds 256 words When the source table of transfer is out of the valid range When the destination table of transfer is out of the valid range User s Manual 61 Appendix A 2 Specification of the WRITE instruction FUN 238 Special module data write WRITE Writes designated ra
22. ction FUN237 Also T3 can write data into the buffer memory by using WRITE instruction FUN238 READ instruction FUN237 Expression A READ B gt C Operands A I O register XW YW assigned to the AS311 B Starting address of the buffer memory to be read B 1 Number of words to be read max 256 C Starting register of the destination Example R0100 e MOV D5000 00064 MOV D5001 4 XW000 READ D5000 D1000 4 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 User s Manual 27 4 Register Configuration WRITE instruction FUN238 Expression A WRITE B gt C Operands A Starting register of the source B Starting address of the buffer memory to be written B 1 Number of words to be written max 256 C I O register XW YW assigned to the AS311 Example R0101 00576 MOV D5000 00100 MOV D50014 _ D2000 WRITE D5000 gt YWo024 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 YWO02 28 ASCII Interface Module AS311 4 Register Configuration 4 2 3 Parameter area The parameter area of the buffer memory contains the following contents Address Address 0 64 iN 1 Status and 65
23. dy 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 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 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 Command Reference Manual T series Computer Link Function This manual provides the information for a computer to communicate with T3 through the T series Programmable Controller s Computer Link function Terminology The following terms and abbreviations are used in this manual e ASCII American Standard Code for Information Interchange e EIA Electronic Industries Association e 1 0 Input Output e LED Light Emitting Diode e RS 232C An EIA standard for data transmission e RS 422 An EIA standard for data transmission User s Manual 3 Contents Safety Precautions Acsaadeiian kee 1 Ab
24. he AS311 is powered Otherwise it VAV will cause damage to the AS311 User s Manual 21 22 ASCII Interface Module AS311 Section 4 Register Configuration 4 1 IO allocation and I O registers 4 2 AS311 buffer memory User s Manual 23 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 screen example in the case that AS311 is mounted on Slot 0 of Unit 0 lt I 0 Allocation gt Unit 0 Unit 1 Unit 2 Unit 3 Slot 1 0 Slot 1 0 Slot 1 0 Slot 1 0 PU a o ix Y au B 1 2 3 4 5 6 7 8 9 O ao ound eunen Se Kaan ann Cad bami bannad baml bamad band bad baad beaamd aand band O ao o u oa a ea a n em ansa San Han Konsa aan i aaa Aaaa eee feed feed bnd bad bnd bad band ad and baad bod O ao o u oa a ea a a m p j p Then 4 I O registers XW n XW n 1 YW n 2 and YW n 3 are assigned to the AS311 In the above example XW000 XW001 YW002 and YW003 are assigned Note that the I O type has i designation It means that the T3 will not update the assigned I O registers in the batch I O processing To read or write data through the I O registers the Direct I O instruction FUN235 or the direct I O designation IW and O OW instead of X XW and Y YW i
25. ications 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 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 for using the AS311 Some sample programs are provided in this section Read this section carefully for programming Section 6 RAS Information Provides the helpful information for RAS Reliability Availability and Serviceability Also lists the check points in case of unexpected operations Appendix The specifications of READ and WRITE instructions are described These instructions are used for interchanging data between T3 and AS311 ASCII Interface Module AS311 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 bo
26. ing code The default setting of the trailing code is CR carriage return code HOD Applicable message format default trailing code 1 2 3 4 N 1 N el ee CR 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 User s Manual 9 1 AS311 Overview 1 3 External features FHNoORUODNO N FNoORUODNO 10 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 D Sub 25 pin female connector Channel 2 serial port RS 232C D Sub 25 pin female connector 1 AS311 Overview 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 SW1 channel 1 transmission parameter setting switches No 8 No use set always ON 8 me lt Bi E No 6 OF ON k E m ON gt SW1 SW2 channel 2 transmission parameter setting switches Used to set the transmission parameters for channel 2 The functions of e
27. itten data will be cleared to 0 by AS311 when the operation is completed A sample program for the cold reset is shown below This sample program is for the AS311 that is allocated to XW000 YWO03 In this sample program the cold reset operation will be started by setting R0120 to ON Main program R0120 1 t CALL N 002 Subroutine No 2 SUBR 002 H80FF 32513 MOV DO300 00012 MOV 14010 66001 MOV D4011 0300 WRITE D4010 XNOHOJ For the hot reset refer to sections 5 6 and 5 7 48 Ascll Interface Module AS311 5 Operation Procedure 5 6 Setting the trailing code The default setting of the trailing code is CR carriage return code HOD 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 or address 88 CH2 trailing code and execute the hot reset refer to section 5 5 A sample program is shown below This sample program is for the AS311 that is allocated to XW000 YWO003 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 HO3 If the channel 2 trailing code and or the time out check time are also changed write these data on the Main program Rung 2 before calling Subroutine No 3 in the same manner Main program RA10A R0130 tt SE
28. itting Address 17 for channel 1 and address 81 for channel 2 store the error information for data transmitting F E D Cc B A 9 8 7 6 5 4 3 2 1 0 17or81 Ooo oeoo o tansmterarade OE Bit 7 0 Transmit error Shows the error code for transmitting code See the table below H00 when normal Error Type of error Description Status code H01 Trailing code The trailing code has not The message is disabled missing been written into the The next message can be buffer memory transmitted 56 ASCII Interface Module AS311 6 RAS Information 6 3 Trouble shooting When AS311 does not work properly check the following points a a AS311 s RUN Does the POWER LED on gt If no check the power LED does not a a the T3 power supply module i voltage connection light If no check the internal 5 Vdc current consumption Is the AS311 mounted gt Remove the AS311 securely on the base and mount again securely When RX1 RX2 LED gt Are the transmission gt Check the cable does not light while signals RXD SG etc connection the connected device is connected properly transmitting a message When the received data Does the receive error Check the transmission cannot be read properly occur parameters baudrate parity etc Check the cable connection Confirm the receive error information Is the T3 program working Check the T3 program correctly When a
29. mitting eeceeceeeeeeeeeeeeteeeeeeeeeeeeee 56 6 3 Trouble shooting eet le ece eeece tient ee a ace ae 57 Appendix ise enres cep een es ee encase ea oes Geen ee 59 A 1 Specification of the READ instruction oo eeeeeeeeeeeeeeeeeeeeeeteeees 60 A 2 Specification of the WRITE instruction eeeeeeeeeeeeeeeeeeeeeeeeeeteeeeeeeees 62 User s Manual 5 6 ASCII Interface Module AS311 Section 1 AS311 Overview 1 1 Introduction 1 2 AS31171 functions 1 3 External features User s Manual 7 1 AS311 Overview 1 1 Introduction 8 NOTE 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 devices such as a micro computer bar code reader printer display device sensor etc through the serial interface 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 These two ports can be used independently for data receiving and transmitting The transmission is asynchronous start stop system ASCII is used as the transmission data code The figure below shows the typical system configuration Channel 1 iy RS 232C or RS 422 Channel 2 CPU module RS 232C 11111 The maximum number of AS3
30. nge of data into the special module Input Execution output A WRITE B C Function e This instruction transfers data stored in T3 s registers starting with operand A into the buffer memory of the special module that is designated by operand C e The destination address buffer memory aie io ety aa e The transfer size number of words is ON Normal execution ON P designated by operand B 1 Error see Note 2 Operand Device Register are fre pererrr eer Erp WwW Pps tT LT TL TT PPP eet EY gemer tt TT PY Free LITT TET I TT PTT TTT TPT Eee Program example R0000 _ D0100 WRITE RW010 gt ywooe e When R0000 is ON the register data of the size indicated by RW011 starting with D0100 are transferred to the buffer memory starting with the address indicated by RW010 of the special module allocated to YW002 e The maximum number of words to be transferred is 256 words T3 YW002 special module acne te Doe Deny Bin Dn Don pm RWO1T L150 e 2 Buffer memory D0100 i WRITE 320 T237 D0249 150 words _ Pas 62 ASCII Interface Module AS311 Appendix 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 x 256 Slot number HOO Ney Naot Slot number hexadecimal Unit number hexadecimal For
31. out This Manual oon cece eee eeeeee ester eee eeeceaeeeeeeeeeeteeeeaaees 2 1 AS3T Overview Sacrediorer Aires eee erie Sie cee es 7 1 1 NATO GUCTIONL cenimi e a a a a rE na nue cee 8 1 2 ASSTT TUNCHONS een e eae eileen eladad 9 1 3 External features oo eeeeecceceecececcceneeee eee eeeeeeeeeneaaeeeeeeeeeenesenaeeeeeeeeeeeeeea 10 2 Specifications ssassn erne eieae i arien aa e ANE aE aii 15 2 1 General specifications sssenneeeessoeeeertrtorrttrnnrteetrrrtnntsrerrnnnnnn Boeke 16 2 2 Functional specifications ssckevecis cevshivchdecteteeadsonlQle chads leer eeed hastiaee 16 2 3 Transmission specifications ances enieceniuaiiaasn wekaacaiwceate 17 3 Cable Connections oiccceee cece etree tere eeeeeeeeeeeeeeeeeteeeeaaees 19 3 1 RS 232C connection icki aches capac ucseia iis ero aes 20 3 2 RS 422 COMMECTIONs cece vies getecnaceveehenntierstitagmetreutnci tia kuiemantiepekeesaees 21 4 Register Configuration oe cceeeeeeeee rere tere eeeeeneeeeeeeeeeeenees 23 4 1 I O allocation and I O registers eeeeeeceeeeeeeeeeeeeeeeeeeeeeeeeteeeeeeeeeeeenaaees 24 4 2 AS317 buffer MEMORY secesie e ed eee Enada 26 4 2 1 Memory map mereri peie aE RE RE RE E 26 4 2 2 Buffer memory aCCeSS lt iiz Aide cia vise ieee er vet 27 4 2 3 PAraMetenared moncere irn aE E lone E EA E 29 4 2 4 Receiving and transmitting data area sssssssssssssrrnerssserrersssrrrree 36 5 Operation Procedure sssssssssseessssrrrerrnrressrrsstrrrtrrnrnrsserrrrrrn n 37 5
32. pe e S E Bit F 1 operating normally 0 under initialization or error state Bit E ERR Error 1 error state 0 no error normal Bit 7 0 Error code Shows the detected error item if ERR is 1 See the table below HOO when normal code during initialization during initialization detected during initialization error detected during initialization Switch setting abnormality has abnormal been detected during initialization H10 Watchdog Watchdog timer error has Operation is stopped me mer enor occurred during operation Cold reset will be effective Trap interrupt Trap interrupt has occurred by Operation is stopped error detecting illegal instruction Cold reset will be during operation effective Buffer memory Buffer memory time out has Operation is stopped time out error occurred during operation Cold reset will be effective User s Manual 53 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 Cc B A 9 8 7 6 5 4 3 2 1 0 iif a OST a0 af sk ee F E D Cc B A 9 8 7 6 5 4 3 2 1 0 6 ame OPT TTT SW1 OFF w 8 7 6 5 4 3 2 1 ON 1 OFF 0 F E D C B A 9 8 7 6 5 4 3 2 141 0 ae TTT TTT TT SWw2 OFF 8 7 6 5 4 3 2 1 N 1 OFF 0 54 ASCII Interface Module AS311 6 RAS Information
33. routine No 0 Rung 2 Reads XWO000 and XW001 from the AS311 by direct I O instruction Rung 3 Sets Y0027 Read start flag to ON if XO006 Receive complete flag is ON Rung 4 When X0007 Read ready flag comes ON reads the received message from the AS311 s buffer memory 64 words starting with address 128 by READ instruction and stores it into D0000 and after Then resets Y0027 Read start flag to OFF and sets R0200 to ON When X0005 Receive error flag comes ON reads the error information from the AS311 s buffer memory 1 word of address 16 by READ instruction and stores it into D3000 Then resets Y0027 Read start flag to OFF and sets R0300 to ON Rung 5 Writes YW002 and YW003 into the AS311 by direct I O instruction Rung 6 Indicates the return of Subroutine No 0 User s Manual 41 5 Operation Procedure Explanation for this sample program 1 The received message read sequence is programmed on Subroutine No 0 2 The Subroutine No 0 is called from Main program with resetting R0200 and R0300 to OFF 3 When a message is received normally R0200 will come ON and the message ASCII characters will be stored in D0000 to D0063 In this sample program the received message length information buffer memory address 19 is not used The maximum length of a message is 128 bytes 64 words because the number of read words of the READ instruction is programmed as 64 words 4 When an error has occu
34. rred 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 42 ASCII Interface Module AS311 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 1 Write ready Bit F of XW n for channel 1 or XW n 1 for channel 2 Transmit complete Bit E of XW n for channel 1 or XW n 1 for channel 2 Transmit error Bit D of XW n for channel 1 or XW n 1 for channel 2 Transmit start Bit F of YW n 2 for channel 1 or YW n 3 for channel 2 The message transmitting procedure is as follows It is called write sequence for message transmitting T3 checks Write ready is ON T3 writes a message into buffer memory transmitting data area by WRITE instruction T3 sets Transmit start to ON l AS311 resets Write ready to OFF Normal transmitting Transmitting error AS311 sends out the message and AS311 sets the error information into sets Transmit complete to ON buffer memory parameter area and sets Transmit error to ON T3 resets Transmit start to OFF T3 reads the error information from buffer memory parameter area AS311 resets Transmit complete to by READ instruction and resets OFF and sets Wri
35. s necessary The reason of that is because the reading and writing timings are important for handshaking between T3 and AS311 Refer to section 5 24 ASCII Interface Module AS311 4 Register Configuration The following table shows the functions of I O registers assigned to the AS311 FEDCBAQ9876 5 43 210 Pot Nouse Nouse CH1 status Pot d Nouse Nouse CH2 status O Nouse Nouse CH1 command OI Nouse TT Nose CH2 command Bit F ready to write data transmit for channel 1 ransmit complete 1 transmitting has been completed normally transmitting has been canceled by error XWin Nouse always 0 CH1 7 ready to read the received data receiving for channel 1 has been completed receiving error has occurred 0 No use always 0 ready to write data transmit for channel 2 Transmit complete 1 transmitting has been completed normally transmitting has been canceled by error Nose always 0 7 Read ready ready to read the received data Receive complete receiving for channel 2 has been completed receiving error has occurred o Nouse always 0 Transmit start Set to 1 to start transmitting data from channel 1 YW n 2 E 8 Nouse set to 0 CH1 7 Read start Set to 1 to start reading data for channel 1 Mo use set to 0 Set to 1 to start transmitting data from channel 2 YW n 3 E 8 Nouse set to 0 CH2 7 Readstart Set to 1 to s
36. tart reading data for channel 2 6 0 Nouse set to 0 m 4 m z XW n 1 CH2 o oe na aN O A O n oO oO O CO NOTE These bits are used for handshaking between T3 and AS311 The detailed VAV function and timing are explained in section 5 User s Manual 25 4 Register Configuration 4 2 AS311 buffer memory 4 2 1 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 transmission data between T3 and AS311 the AS311 s buffer memory is used This section explains the buffer memory contents and how to access the buffer memory 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 O Status and command 4 words same data as I O registers 4 Parameter 124 words transmission parameters etc 128 Channel 1 reading receiving 448 words data area 576 Channel 1 writing transmitting 448 words data area 1024 Channel 2 reading receiving 448 words data area 1472 Channel 2 writing transmitting 448 words data area 1920 Access inhibited 128 words 26 ASCII Interface Module AS311 4 Register Configuration 4 2 2 Buffer memory access T3 can read the AS311 s buffer memory contents by using READ instru
37. te ready to ON Transmit start to OFF AS311 resets Transmit error to OFF and sets Write ready to ON User s Manual 43 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 BALIA es regs tne chee Res ara ie Sh ne a pene ea et Set the transmission message into D0200 D0263 and set R0110 to ON EALL N 001 R0201 RST RO116H RST R0201 POON assis een E E Aceh E Operation for transmitting error Kise God tee he SO Pe Se Sle Ge See he Re Se Ce ee Se ete ee ee ote eee RST RG110H RST RO301 Subroutine No 1 1H SUBR 001 2 I 0 62 xwaae XGOGF YO02F 3 00576 MOV 146101 60064 MOV D4011 6206 WRITE D4010 gt XNAHA SET Y 02F YO02F X Q0E 4 RST Y 2FH SET RO261 XO06D 00617 MOV D4660 1 HONOL MOV D4001 W606 READ D4006 gt 03016 RST YO02F H SET R0301 SL I O 02 YNOOZ RET 44 ASCII Interface Module AS311 5 Operation Procedure In this sample program the following devices registers are used R0100 AS38311 status ON when ready Refer to section 5 4 R0110 Internal flag to start transmitting R0201 Transmitting normal complete comes ON when transmitting is complete normally R0301 Transmitting error complete comes ON when transmitting error has
38. that is allocated to XW000 YWO003 Main program RG166 RO266 RO300 t _ LALL N RST RO300 Subroutine No 0 SUBR 600 1 2 1 0 62 XNOOA XO006 YO027 3 i SET 0027 O027 XO007 4 00128 MOV 14600 60064 MOV D4001 OOO READ 24006 DANNA RST YO027H SET RO200 XO005 00616 MOV 14600 66001 MOV D4001 KOAA READ D4006 gt 03000 RST Y0OO27H SET RO300 S L I O 02 YNOOZ RET 40 Ascll Interface Module AS311 5 Operation Procedure In this sample program the following devices registers are used R0100 AS811 status ON when ready Refer to section 5 4 R0200 Receiving normal complete comes ON when receiving is complete normally R0300 Receiving error complete comes ON when receiving error has occurred X0006 Receive complete flag X0007 Read ready flag X0005 Receive error flag Y0027 Read start flag D0000 D0063 Received message is stored here D3000 Receiving error information is stored here D4000 D4001 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 Rung 3 When R0300 comes ON receiving error has occurred performs the error processing then resets R0300 to OFF Subroutine No 0 Rung 1 Indicates the entry of Sub
39. transmitting AS311 recognizes from the character stored in the starting address 576 or 1472 to the trailing code character as the one set of transmitting message Refer to section 5 for message receiving transmitting procedure 36 ASCII Interface Module AS311 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 User s Manual 37 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 HOD Refer to section 5 6 for setting the trailing code other than CR The maximum length of a message is 896 bytes An example of the message is shown below 1 2 3 4 5 6 7 8 9 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 F 8 7 0 Transmission message n ne n2 n3 m4 R 38 ASCII Interface Module AS311 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
40. ut 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 See section 5 7 for this procedure F E D C B A 9 8 7 6 5 4 3 2 1 0 25 or 89 Time out check time Bit F 0 Time out check Stores the time out check time 0 1 s units time Valid data range is 1 to 600 0 1 to 60 s If 0 or more than 600 is specified the time out check will not work Initial value at power on is 10 1s User s Manual 35 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 Channel 1 reading receiving 448 words data area Channel 1 writing transmitting 448 words data area Channel 2 reading receiving 448 words data area Channel 2 writing transmitting 448 words data area When AS311 receives a message one set of transmission characters AS311 sets the characters into the receiving data area starting with the address 128 or 1024 Then T3 can read these characters from the receiving data area by using 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
41. works as follows Rung 1 Resets S0051 Instruction error flag to OFF and sets parameters for the READ instruction Rung 2 Reads the operation status information from the AS311 s buffer memory address 4 Status 1 Rung 3 When S0051 Instruction error flag is OFF and R050F Ready is ON turns R0100 to ON It means that the AS311 is operating normally when R0100 is ON If RO50E 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 If S0051 Instruction error flag is ON it means that an error has occurred during the READ instruction execution User s Manual 47 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 initialized The trailing code and the time out check time are also reset to the default settings This function is the same as pressing the hardware reset switch and power on initialization On the other hand the hot reset is used to change the trailing code and or the time out check time For executing these functions write the following data into the AS311 s buffer memory address 12 Command 1 The data writing into this address must be one shot Clod reset H80FF Hot reset H80FE The wr

Download Pdf Manuals

image

Related Search

Related Contents

Legalización de Informe de Participación de  medidor inalámbrico myglucohealth manual de instrucciones  コムス株式会社    Tonka Chuck my talking truck 6918670002 User's Manual  Samsung SGH-B220B User Manual  Manual - ICEMOBILE  JTC5630 リムカバ…取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file