Home

COMMUNICATION INTERFACE MODULE USER`S MANUAL

image

Contents

1. sssssssesseersosrreerrnorrrrerrrrrreerrrne 33 52 1 Fag SOntTrolTMmNE siise EN 33 a T2 sample program for message receiving u eeeeeeeeeeeeeeeeeeeeeeeeteees 34 5 3 Write sequence for message transmitting sssssssseresssssrerrrersrrrree 3r 5 9 ai loo sty igs iknng raien e E 37 5a T2 sample program for message transmitting esseeeeeeeseeeeeees 38 5 4 Checking the CF211 operation status eeessooseneeeeooeeenneserrreereee 41 a Resetting the CF211 by software ooo eeecsecceeeeeeeeeseeeeeeeeeeeeesaeees 42 5 6 Sewing the Tang so aden eee eee nee rey ey eres eer 43 5 7 Setting the time out check time ccionsssacsapdessesenerdeansvasioeiapeianeaidianonane 44 4 Communicaion Interface Module CF211 6 RAS INONNANON ssuisnnsiismneniconiemscenienjaenagiedreniemsjeoenies 45 6 1 BE CUNY ae ic teens oeesealecce ee Geartenateceatietved ote Ga eiearaancbgebeaceseetoeens 46 6 2 Butter memory WOMAN caisisnceniaaiecanoentiadinanieanrenabandinabnauaataanuminne 47 6 2 1 e elal o e ee ars ea ete Pigeon E 47 6 2 2 Swich seling StalUS issusnabrerinesscrinai uen nyer Eg EIRE ELU EAE NEA 48 6 2 3 Error information for data receiving ccccieercsicasapiactisarsceeasassceuicasaceaas 49 6 2 4 Error information for data transmitting eesessssssseererresserrrerrrreessee 50 6 3 Tonbe yale g seia runes Bearer oeereenr ere Gury ty peemrrary eaNererr ae 51 Appendix sssaaa EE 53 A 1 Specification of the READ in
2. Slot number HOO pa Slot number hexadecimal Unit number hexadecimal Unit number Slot 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 XW008 READ RW010 D0100 H0004 READ RW010 D0100 The READ instruction is not executed as error in the following cases In these cases ERF instruction error flag S0051 is set to ON If the ERF is set to ON once it remains ON until resetting to OFF by user program e When the operand A is other than a valid constant see Note 1 or XW YW register 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 55 Appendix A 2 Specification of the WRITE instruction FUN 238 Special module data write WRITE Writes designated range of data into the special module Input Execution output A WRITE B gt C Function e This instruction transfers data stored in T2 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 i address is designated by operand B e The transfer size number of words is designated by operand B
3. Transmission distance Connector Note When none parity is s Specifications Conforms to RS 232C Start bit 1 bit Data 7 or 8 bits even odd none 1 or 2 bits Parity Stop bit Note elected the data bit length must be 8 bits When stop bit is selected as 2 bits the data bit length must be 7 bits User s Manual 1 5 16 Communication Interface Module CF211 Section 3 Cable Connections 3 1 RS 232C connection User s Manual 1 7 3 Cable Connections 3 1 RS 232C connection The following figure shows the RS 232C connection CF211 Shielded cable RS 232C device 1 Allowable maximum cable length is 15 m Use shielded cable The cable shield should be connected to grounding point at one end It is recommended to use twisted cable for noise immunity DTR is ON while power is on DSR has no effect for transmission monitor only Connect SG each other RTS and CTS signals are not supported by the CF211 If necessary short these signals at the connected device end SJOGES NOTE Do not connect or remove the connector while the CF211 is powered Otherwise VAV it will cause damage to the CF211 18 Communication Interface Module CF211 Section 4 Register Configuration 4 1 IO allocation and I O registers 4 2 CF211 buffer memory User s Manual 1 9 4 Register Configuration 4 1 I O allocation and I O registers The CF211 should be allocated as i X Y 4W for I O allocation Howev
4. 1 ON fie ror cee Nole 2 Operand Register merr Device Device e _ Opr Name Xx Y s t R z T e o xwiyw SwiLWiRW w T op register A erases se E a EE EE E a A E A AT EEE parameter Er 4 oll E AAE module 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 160 words For CF211 PEELE T2 YW002 special module RWO1O HBOBQ t tS i a l RW011 L_150 Buffer memory i D0100 WRITE 3 H80B0 1237 D0249 Ea 150 words i paa 56 Communication Interface Module CF211 Appendix Note 1 Note 2 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 pa Slot number hexadecimal Unit number hexadecimal Unit number Slot 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 D0100 WRITE RW010 XW020 D0100 WRITE RW010 H0102 The WRITE instruction is not
5. CF211 by T2 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 CF211 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 hardware reset switch and power on initialization Refer to sections 5 5 5 6 and 5 7 for these functions F E D C B A 9 8 7 6 5 4 3 2 1 0 ett ace Eo a BE ED E EE e Bit F RST Reset 1 reset request 0 normal no reset request Bit 7 0 Command HFE hot reset number HFF cold reset Receive error information H8007 The address H8007 indicates the error contents if an error has been detected in receiving a message This information is set during the received message read sequence Refer to section 6 2 3 for details F E D C B A 9 8 7 6 5 4 3 2 1 0 peoos ad EO ee EE BS ee E Bit A PE Parity error 1 parity 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 User s Manual 27 4 Register Configuration Transmit error information H8008 The address H8008 indicates 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 C
6. EIA Electronic Industries Association e 1 0 Input Output e LED Light Emitting Diode e RS 232C An EIA standard for data transmission User s Manual 3 Contents Sarery PreGatIONS skits anand oanndates 1 About Ihis Mantal dks err 2 1 CPZ OVERVIEW aiiessazssrcsndesezszscacicseteseneseneapiceedenepicnapiaseterzsencnene 7 1 Lite Le ho meraci 8 1 2 Pel ACORN dnusiaupaiieniemiiaisinonesieneneleenemaaniona 9 1 3 Extemal Lon go inisinia a E 10 2 SPOECHICAUONS sasira nipionnanboenaiees 13 2 1 General SHECINCANONG anaerobes ever Eee EERE 14 2 2 Funcional speciicalons cisssanseussieiieidesjasendiniamdcapeerinadnnetennel 14 2 3 Transmission Specifications ao spelen a areata iuiavs 15 3 Gable Connections ixcsisitssuinnrdisiaintnindisienatenwesnien 17 3 1 RS 2020 CONNECTION Secs eee ctor ett RE 18 4 Register Configuration eee eece ee eeeeeeee eter eee eteetaeeeeeeeeeeteeee 19 4 1 VO allocation and VO registers cceiscigieveccosnreicinsaeiteoinesdicsscitenicse 20 4 2 CF211 DUNE TEM ssnjicmsmdcimeamsannnkinmnsismmmaaines 22 4 2 1 BO Re oen E eer 22 4 2 2 Bune memory 9CCESS seoaren erT nE 23 4 2 3 EE e E E E fy 8 TE 25 4 2 4 Receiving and transmitting data area esssssesssesssssssreresserrrernnerssee 30 5 Operation Procedure __avsicsccssissassssceszcczcsssceancsnteaasccnstenaneneeccancantede 31 5 1 Transmission message format ceccisiciniascicieceisiecsscissassdsaietsicicioriiessianse 32 5 2 Received message read sequence
7. Receive complete Bit A of XW n Receive error Bit 9 of XW n Read start Bit B of YW n 2 The message receiving procedure is as follows It is called received message read sequence CF211 receives a message CF211 sets Receive complete to ON T2 sets Read start to ON Receivjng error Normal receiving CF211 sets the message into buffer CF211 gas the error information into memory receiving data area and sets the feeeiee message lengi into T2 reads the message form buffer T2 reads the error information from memory oag data area buffer memory parameter area User s Manual 33 5 Operation Procedure 5 2 2 T2 sample program for message receiving A sample program for the received message read sequence is shown below This sample program is for the CF211 that is allocated to XW000 YWO03 Main program RO100 R0200 RO300 CALL N 00A RST RO300 Subroutine No 0 SUBR 608 I O 02 xwooa XOANA YO02B A SET Y002B Y H2B X GQB H8010 32752 MOV D4OOAH 80064 MOY D4001 KOAA READ D4666 DANAA RST Y G2BH SET RO200 X6669 H8007 32761 MOV D4600 H 66001 MOV D4001 KOAA READ D4666 63000 RST YG02BH SET R0300 I O 02 YWea2 34 Communication Interface Module CF211 5 Operation Procedure In this sample program the following devices registers are used R0100 CF211 status ON when ready Refer to section 5 4 R0200 Receiving normal complete comes ON when receiving is co
8. written into the buffer The next message can be memory transmitted 50 communication Interface Module CF211 6 RAS Information 6 3 Trouble shooting When CF211 does not work properly check the following points ee T2 cannot run Does the POWER LED on If no eer the power ee the T2 power supply module EE voltage connection light If no check the internal 5 Vdc current consumption ae the CF211 mounted Remove the CF211 ae on the base and mount again securely When CH1 LED does Are the transmission gt Check the cable not light while the signals RXD SG etc connection 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 T2 program working gt Check the T2 program correctly When a data cannot be gt _ Does the transmit error Confirm the transmit transmitted from the occur error information CF211 CH1 LED does not light Check the T2 program User s Manual 51 52 Communication Interface Module CF211 Appendix A 1 Specification of the READ instruction A 2 Specification of the WRITE instruction User s Manual 53 Appendix A 1 Specification of the READ instruction FUN 237 Special module data read READ Read
9. 211 error state When the cold reset is executed the CF211 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 CF211 s buffer memory address H8005 Command 1 The data writing into this address must be one shot Clod reset H80FF Hot reset H80FE The written data will be cleared to 0 by CF211 when the operation is completed A sample program for the cold reset is shown below This sample program is for the CF211 that is allocated to XW000 YWO003 In this sample program the cold reset operation will be started by setting R0120 to ON Main program R0120 1 EALL N 002 Subroutine No 2 SUBR 002 H80FF 32513 MOV DO30O H8005 32763 MOV D4010H 66061 NOV D4011 6300 WRITE D4010 gt XNO A For the hot reset refer to sections 5 6 and 5 7 42 Communication Interface Module CF211 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 T2 program To do this write desired trailing code into the CF211 s buffer memory address H800C Trailing code and execute the hot reset refer to se
10. B A 9 8 7 6 5 4 3 2 1 0 Hs008 ag a a Re e o E e E Bit 7 0 Transmit error Shows the error code for transmitting code HOO when normal See section 6 2 4 for details Channel status H8009 The address H8009 indicates the control signal status This information is always updated F E D C B A 9 8 7 6 5 4 3 2 1 0 06 cn eo CO ED a a e ea a Bit 7 DSR 1 DSR is ON Data set ready 0 DSR is OFF Receive length H800A The address H800A indicates 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 H800A Received message length Bit F 0 Received Shows the received message length bytes message length 0 320 28 Communication Interface Module CF211 4 Register Configuration Trailing code H800C The address H800C stores 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 H8005 See section 5 6 for this procedure F E D C B A 9 8 7 6 5 4 3 2 1 0 Heooc OT OT oToTopopolo moe J Bit 7 0 Trailing code Stores the trailing code Initial value at power on is HOD carriage return Time out check time H800D The address H800D stores the time out check time If the time between each transmitting or receiving character exceeds the specified time out check time it becomes the ti
11. Channel 1 serial port RS 232C D Sub 9 pin female connector 1 CF211 Overview Status LED Indicates the transmission status CH1 Lit while transmitting or receiving data through channel 1 Transmission parameter setting switches Used to set the transmission parameters 8 Hf 7 H lt Baud rate see table below 6 LE SICE jos OFF ON UO 4 LL lt _ s E 2 E J No4 OF CON E Ik Data bit length ON gt OFF ON None Even Odd Baud rate No 8 OFF OFF OFF OFF ON ON ON No 7 No 6 OFF ON OFF ON OFF ON OFF Baud rate 300 600 1200 2400 4800 9600 NOTE 1 When stop bit is set as 2 bits the data bit length must be 7 bits VAV 2 When none parity is used the data bit length must be 8 bits 3 The factory settings are all OFF Set these switches as required before using this module 4 The switch setting status is recognized at module initialization by turning power on pressing the hardware reset switch or issuing the software reset command cold reset User s Manual 1 1 1 CF211 Overview Hardware reset switch When this switch is pressed the CF211 will be reset Use this switch when you have changed the switch settings Channel 1 serial port Used to connect the serial transmission line RS 232C D Sub 9 pin female connector is provided on the CF211 The pin assignment is as follows Channel 1 RS 232C The arr
12. R Os Oe 50 ee O 05 ___ Errorende lt ______ Bit F RDY Ready 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 Tenor erected auring itargan nnn error detected during initialization illegal detected during initialization H Watchdog Watchdog timer error has Operation is stopped timer error occurred during operation Cold reset will be effective H02 H03 H04 H05 10 User s Manual 47 6 RAS Information 6 2 2 Switch setting status Addresses H8002 of the buffer memory store the switch setting status Check that the information agrees with the physical setting status if CF211 does not work as expected F E D C B A 9 8 7 6 5 4 3 2 1 0 ZAEJETSACNENENEAN setting status E FF N 1 OFF 0 NOUR OONO 48 Communication Interface Module CF211 6 RAS Information 6 2 3 Error information for data receiving Address H8007 stores the error information for data receiving F E D C B A 9 8 7 6 5 4 3 2 1 0 PIB OO7 gt ei Din SO fi SO SPE OF ee eeeive enon cods E Bit A PE Parity error 1 parity error 0 normal When parity error has occurred in a receiving message the entire message is disabled The ne
13. R0300 to ON Rung 5 Writes YW002 and YW003 into the CF211 by direct I O instruction Rung 6 Indicates the return of Subroutine No 0 User s Manual 35 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 H800A 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 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 36 Communication Interface Module CF211 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 T2 and CF211 These flags are the bits of the I O registers assigned to the CF211 Refer to section 4 1 Write ready Bit F of XW n Transmit complete Bit E of XW n Transmit error Bit D of XW n Transmit start Bit F of YW n 2 The message transmitting procedure is as
14. SET R0201 X AAD H8008 32760 NOV D4AAAOH 86001 MOV D4001 6660 READ D4OAA 103018 RST Y O2FH SET R0301 SL I O 02 YN Z 38 Communication Interface Module CF211 5 Operation Procedure In this sample program the following devices registers are used R0100 CF211 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 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 CF211 is normal and R0110 is ON Rung 3 When R0201 comes ON normal transmitting resets R0110 and R0201 to OFF 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 XW000 and XW001 from the CF211 by direct I O instructio
15. UM TS02 E013 PROGRAMMABLE CONTROLLER PROSEC T2 COMMUNICATION INTERFACE MODULE CF211 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 TS02 E013 1st edition June 1995 2nd edition July 1995 Safety Precautions Safety Precautions This mo
16. WRITE D3010 gt YW002 4 When R0101 is ON 100 words of data starting with D2000 D2000 to D2099 are written into the buffer memory address H80B0 and after of the CF211 which is allocated to YWO002 24 Communication Interface Module CF211 4 Register Configuration 4 2 3 Parameter area The parameter area of the buffer memory contains the following contents Address Word data H8000 Status 1 01 02 Switch setting status ae ae of 05 of o 07 08 09 OA ol oC 0D as a OF Note Blanks are for future use Reserved User s Manual 25 4 Register Configuration Status 1 H8000 The address H8000 shows the CF211 module status If an error has occurred in the CF211 the error code is stored here F E D C B A 9 8 7 6 5 4 3 2 1 0 aad a ee ee a EE E EE EEEE Bit F RDY Ready 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 ae HOO when normal See section 6 2 1 for details Switch setting status H8002 The address H8002 stores the setting status of the transmission parameter setting switches F E D C B A 9 8 7 6 5 4 3 2 1 H8002 ne TTT TTT Switch Switch setting status status FF N 1 OFF 0 NWORUODNOO 26 Communication Interface Module CF211 4 Register Configuration Command 1 H8005 The address H8005 is used to reset the
17. ction 5 5 A sample program is shown below This sample program is for the CF211 that is allocated to XW000 YW003 In this sample program the trailing code changing routine will be executed once when the CF211 status is changed to ready R0100 comes ON refer to section 5 4 and the trailing code will be changed to HO3 If 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 slarga R0130 t SET R0130 ror H0003 G MOV DA40A H800C 32756 MOV D4616H A0001 MOV D4011 6466 WRITE D4010 gt XNO A R0100 R0132 3 l H RST RO1301 RST R0132 Subroutine No 3 SUBR 003 R0131 R0132 H80FE 32514 MOV D0310 H8005 32763 MOV D4O10H 66001 MOV D4011 6316 WRITE D4010 gt XN A SET R0131 R 131 H8005 32763 MOV D4OOAH 60001 MOV D4001 KOAA READ D4606 gt RWO51 RST R 131H SET R0132 RET User s Manual 43 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 T2 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 CF211 s buffer memory address H800D Time out check time and execute the hot reset refer to section 5 5 T2 program for this purpose is almost same a
18. dule CF211 has been designed for Toshiba s Programmable Controller PROSEC T2 hereafter called T2 Use this module only on the T2 s rack Read the Safety Precautions described on the T2 User s Manual before using the T2 and this module Follow the instructions described on this manual and on the T2 User s Manual when installing and wiring the T2 and this module Do not touch the connector pins or components on the printed circuit board of this module The maximum number of CF211s that can be controlled by one T2 is limited by internal 5 Vdc power capacity This module consumes maximum 0 55 A of internal 5 Vdc power Confirm that the total 5 Vdc consumed current per one power supply module is within the limit 2 5 A The CF211 can work with the T2 CPU version 1 2 or later Confirm that your T2 CPU is correct verson Symbols Used In This Manual Pay attention to information preceded by the following symbols HINT LN Refers to helpful suggestions on how to operate effectively NOTE Refers to information considered essential for full understanding of operation And VAV 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 Communication Interface module CF211 for Programmable Controller T2 Read this manual carefully before using the CF211 module Inside T
19. er when the automatic I O allocation is performed with mounting the CF211 the CF211 is allocated as X Y 4W You should change the allocation to i X Y 4W by using the manual I O allocation function T PDS screen example in the case that CF211 is mounted on Slot 0 of Unit 0 When the automatic I O allocation is performed lt I 0 Allocation gt Unit Unit 1 Unit 2 Unit 3 Slot 1 0 Slot 1 0 Slot T 0 Slot 1 0 PU O X 4 1 1 I 1 1 2 2 2 2 3 3 3 3 4 4 I 4 I by using the manual I O allocation Change the allocation to i X Y 4W 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 af a a ix 41 1 1 il 1 2 2 2 2 3 3 3 I 3 4 4 4 Then 4 I O registers XW n XW n 1 YW n 2 and YW n 3 are assigned to the CF211 In the above example XW000 XW001 YW002 and YW003 are assigned Note that the I O type has i designation It means that the T2 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 is necessary The reason of that is because the reading and writing timings are i
20. essage Refer to section 5 for message receiving transmitting procedure 30 Communication Interface Module CF211 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 CF211 operation status 5 5 Resetting the CF211 by software 5 6 Setting the trailing code 5 7 Setting the time out check time User s Manual 31 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 320 bytes An example of the message is shown below 1 2 3 4 5 6 7 8 9 romrins lt 2 sam ier oer AE AA 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 T2 registers are as follows Register F 8 7 0 Transmission message ie a ne 32 Communication Interface Module CF211 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 T2 and CF211 These flags are the bits of the I O registers assigned to the CF211 Refer to section 4 1 Read ready Bit B of XW n
21. executed as error in the following cases In these cases ERF instruction error flag S0051 is set to ON If the ERF is set to ON once it remains ON until resetting to OFF by user program e When the operand C is other than a valid constant see Note 1 or XW YW register 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 57
22. follows It is called write sequence for message transmitting T2 checks Write ready is ON T2 writes a message into buffer memory transmitting data area by WRITE instruction T2 sets Transmit start to ON F211 resets Write ready 0 OFF Normal transmitting Transmitting error CF211 sets the error information into buffer memory parameter area and Q ON QHN T2 reads the error information from buffer memory parameter area by READ instruction and resets sets Transmit complete to dI TU ot AUY UI ITN CF211 resets Transmit error User s Manual 37 5 Operation Procedure 5 3 2 T2 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 CF211 that is allocated to XW000 YWO003 Main program BOT oo ons Feed oe do Soe EEA Set the transmission message into D0200 D0263 and set R0110 to ON EALL N 001 R0201 RST RO116H RST R0201 BODO Seiten ery a ceceieac E N E Pe ideci otis talons gt Operation for transmitting error ERER Siete Soe er ah Sele eee fe Seas Sete Beene cet oe ee eed eee he ae eee eet See eet wee ee RST RO110H RST RO301 Subroutine No 1 1H SUBR 001 2 I 0 62 xwaaa XOQ6F YAA2F H80B0 3 32592 MOV D4AIAH 00064 MOV D4011 0200 WRITE D4010 XROOA SET Y002F Y O62F XOAHE 4 RST Y O2FH
23. his Manual 2 This manual consists of six sections and an appendix as follows Section 1 Overview Introduces The CF211 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 CF211 The switch settings of this module are also explained in this section Section 2 Specifications Provides the functional and the transmission specifications of the CF211 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 CF211 This information is important to interchange data between T2 and CF211 Section 5 Operation Procedure Provides the information to design the T2 program for using the CF211 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 T2 and CF211 Communicaion Interface Module CF211 About This Manual Related Manuals The following related manuals are ava
24. ilable for T2 Besides this manual read the following manuals for your better understanding T2 User s Manual This manual explains the hardware specifications installation wiring and maintenance of the T2 and I O modules Also this manual explains the functions of the T2 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 Handy Programmer HP911 Operation Manual This manual explains the functions and the key operations of the T series Handy Programmer HP911 T series Computer Link Function This manual provides the information for a computer to communicate with T2 through the T series Programmable Controllers Computer Link function Terminology The following terms and abbreviations are used in this manual e ASCII American Standard Code for Information Interchange e
25. ils of the error information refer to section 6 2 4 40 communication Interface Module CF211 5 Operation Procedure 5 4 Checking the CF211 operation status CF211 operation status information is stored in the CF211 s buffer memory address H8000 Status 1 T2 can read this information by using READ instruction A sample program is shown below This sample program is for the CF211 that is allocated to XW000 YWO03 H8000 RST 0051_H 32768 MOY D4000H 60001 MOY D4001 OOO READ D4006 RNASOH 50051 ROSGF R0100 The above sample program 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 CF211 s buffer memory address H8000 Status 1 Rung 3 When S0051 Instruction error flag is OFF and R050F Ready is ON turns R0100 to ON It means that the CF211 is operating normally when R0100 is ON If RO50E Error is ON the CF211 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 41 5 Operation Procedure 5 5 Resetting the CF211 by software CF211 can be reset by T2 program Two types of resetting are available cold reset and hot reset The cold reset is used to reset the CF
26. ll map of the buffer memory is as follows Address Word data H8000 Parameter 16 words transmission parameters etc Reading receiving 160 words data area Writing transmitting 160 words data area 22 Communication Interface Module CF211 4 Register Configuration 4 2 2 Buffer memory access T2 can read the CF211 s buffer memory contents by using READ instruction FUN237 Also T2 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 CF211 B Starting address of the buffer memory to be read B 1 Number of words to be read max 160 for CF211 C Starting register of the destination Example R0100 Hine MOV D3000 00064 MOV D30014 XW000 READ D3000 D1000 4 When R0100 is ON 64 words of buffer memory data starting with address H8010 are read from the CF211 which is allocated to XW000 And the data are stored in D1000 and after User s Manual 23 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 160 for CF211 C I O register XW YW assigned to the CF211 Example R0101 H80B0 MOV D3010 00100 MOV D30114 D2000
27. me 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 H8005 See section 5 7 for this procedure F E D C B A 9 8 7 6 5 4 3 2 1 0 H800D 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 29 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 T2 and CF211 The address ranges in the CF211 buffer memory are as follows Address Word data H8010 Reading receiving 160 words data area Writing transmitting 160 words data area When CF211 receives a message one set of transmission characters CF211 sets the characters into the receiving data area starting with the address H8010 Then T2 can read these characters from the receiving data area by using READ instruction When T2 attempts to send a message via CF211 T2 writes the characters into the transmitting data area starting with the address H80B0 by using WRITE instruction and instructs CF211 to start transmitting CF211 recognizes from the character stored in the starting address H80B0 to the trailing code character as the one set of transmitting m
28. mplete normally R0300 Receiving error complete comes ON when receiving error has occurred X000A Receive complete flag X000B Read ready flag X0009 Receive error flag Y002B 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 CF211 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 Subroutine No 0 Rung 2 Reads XWO000 and XW001 from the CF211 by direct I O instruction Rung 3 Sets Y002B Read start flag to ON if XOO0A Receive complete flag is ON Rung 4 When XOOOB Read ready flag comes ON reads the received message from the CF211 s buffer memory 64 words starting with address H8010 by READ instruction and stores it into D0000 and after Then resets Y002B Read start flag to OFF and sets R0200 to ON When X0009 Receive error flag comes ON reads the error information from the CF211 s buffer memory 1 word of address H8007 by READ instruction and stores it into D3000 Then resets Y002B Read start flag to OFF and sets
29. mportant for handshaking between T2 and CF211 Refer to section 5 20 communication Interface Module CF211 4 Register Configuration The following table shows the functions of I O registers assigned to the CF211 F EDC BA 9 8 7 6 5 4 3 2 1 0 No use reserved Nouse No use No use reserved D Transmiterror__ 1 transmitting has been canceled by error _ xwin C Nose always0 Status B Readready 1 ready to read the received data _ 9 Receive error receiving error has occurred 8 0 Nouse always 0 xwa __ __ Nouse always 0 ___ Transmit start__ Set to 1 to start transmitting _ YW n 2 i R No use set to 0 Command B Read start Set to 1 to start reading A o Nouse set to 0 ywin 3 Noose set to 0 NOTE These bits are used for handshaking between T2 and CF211 The detailed function and timing are explained in section 5 User s Manual 21 4 Register Configuration 4 2 CF211 buffer memory As explained in the previous section the I O registers that are assigned to CF211 are used to control the reading and writing timings handshake between T2 and CF211 On the other hand for exchanging the transmission data between T2 and CF211 the CF211 s buffer memory is used This section explains the buffer memory contents and how to access the buffer memory 4 2 1 Memory map The CF211 has the buffer memory that is used to exchange data with T2 The overa
30. n Rung 3 When XOOOF Write ready flag is ON writes the message that is stored in D0200 to D0263 into the CF211 s buffer memory 64 words starting with address H80B0 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 CF211 s buffer memory 1 word of address H8008 by READ instruction and stores it into D3010 Then resets YOO2F Transmit start flag to OFF and sets R0301 to ON Rung 5 Writes YW002 and YWO003 into the CF211 by direct I O instruction Rung 6 Indicates the return of Subroutine No 1 User s Manual 39 5 Operation Procedure Explanation for this sample program 1 The write sequence for message transmitting is programmed on Subroutine No 1 2 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 3 When R0110 is set to ON while the CF211 is ready the Subroutine No 1 will be called and the message transmitting will be started 4 When the message is transmitted normally R0201 will come ON Then R0110 will be reset to OFF 5 When an error has occurred in transmitting the message R0301 will come ON and the error information will be stored in D3010 For deta
31. ow on the above figure shows the signal direction DTR is ON while power is on DSR has no effect for transmission Pin 7 5 Vdc can be used to supply 5 Vdc power to external devices max 50 mA 12 Communicaion Interface Module CF211 Section 2 Specifications 2 1 General specifications 2 2 Functional specifications 2 3 Transmission specifications User s Manual 1 3 2 Specifications 2 1 General specifications Power voltage 5 Vdc supplied from back plane bus 0 55 A 5 Vdc maximum DE Note 2 Size 2 VO module size 1 slot Weight 23509 S S Note 1 The T2 s power supply module can supply maximum 2 5 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 160 words x 2 accessed from T2 by READ WRITE instruction RS 232C 1 channel Transmission status LED CH1 lit while transmitting or receiving data through the transmission port printer or other serial ASCII device check etc 14 Communication Interface Module CF211 2 Specifications 2 3 Transmission specifications Interface Transmission mode Synchronizing Transmission speed Frame format Transmission code Message length Configuration
32. s designated range of data from the special module Input Execution output A READ B C Function This instruction reads data from the buffer memory of the special module that is designated by operand A and stores them in T2 s registers starting with operand C The transfer source address buffer memory adios et enetoiby pean The transfer size number of words is ON Normal execution ON _ designated by operand B 1 Error see Note 2 ON ON Operand Device Register ___ Device _ _ _ Opr name Ae R PCO RSW TT CLOT Tw A rae lh Sab a cla lp de eM Ml ede Afb Peale a module E A EEE EEEE E de parameter e E AEE EERE of destination Program example R0000 _ Xw000 READ RW010 gt Dorop 54 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 after The maximum number of words to be read is 160 words For CF211 XW000 special module T2 Rw010 H8000 Buffer memory RW011 H8000 1234 i i READ D0100 1234 zw ae aE GEE H800F 5678 16 words D0115 5678 Communication Interface Module CF211 Appendix Note 1 Note 2 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
33. s 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 time out check time is changed to 5 seconds If 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 RG166 R130 1 t SET R0130 R0130 2 t 66050 MOY D400 H800D 32755 MOV D40161 68001 MOV D4011 0400 WRITE D4010 XROOA C ALL N 03 RG166 RO132 3 l RST R130 RST RO132 44 communication Interface Module CF211 Section 6 RAS Information 6 1 LED indication 6 2 Buffer memory information 6 3 Trouble shooting User s Manual 45 6 RAS Information 6 1 LED indication On the CF211 a status LED is provided as follows This LED is useful to check the CF211 communication status CH1 Indicates the serial port communication status Lit while some data is transmitting from or receiving into the CF211 46 communication Interface Module CF211 6 RAS Information 6 2 Buffer memory information Useful RAS information is stored in the CF211 s buffer memory The information can be read by READ instruction When your CF211 does not work as expected check the RAS information 6 2 1 Module status Address H8000 of the buffer memory stores the CF211 module status F E D C B A 9 8 7 6 5 4 3 2 1 0 H8000 BOY ER
34. struction ssssssseeeeeeeeooennrrnerrseorreereee e 54 A 2 Specification of the WRITE instruction ssdisisicnreisionsiaainermnanereiiensroonne 56 User s Manual 5 6 Communicaion Interface Module CF211 Section 1 CF211 Overview 1 1 Introduction 1 2 CF211 functions 1 3 External features User s Manual 7 1 CF211 Overview 1 1 Introduction The Communication Interface module CF211 hereafter called CF211 is a general purpose data communication module for Toshiba s Programmable Controller PROSEC T2 hereafter called T2 By using the CF211 T2 can communicate with external devices such as a micro computer bar code reader printer display device sensor etc through the serial interface RS 232C The CF211 has one port of RS 232C serial interface The transmission is asynchronous start stop system ASCII is used as the transmission data code The figure below shows the typical system configuration RS 232C CPU module fee N NOTE The maximum number of CF211s that can be controlled by one T2 is limited by VAV internal 5 Vdc power capacity The CF211 consumes maximum 0 55 A of internal 5 Vdc power Confirm that the total 5 Vdc consumed current per one power supply module is within the limit 2 5 A 8 Communicaion Interface Module CF211 1 CF211 Overview 1 2 CF211 functions From the point of view of T2 the CF211 works as communications driver The followings are the simplified explana
35. tions for T2 and CF211 functions When a message one set of transmission characters is received by CF211 the flag which indicates the receiving complete will come ON T2 can check the flag status then read the message from the CF211 by using the READ instruction In case of transmitting a message one set of transmission characters from T2 through CF211 T2 writes the message into the CF211 by using the WRITE instruction then sets the flag which instruct the CF211 to start transmitting the message T2 CF211 Register Buffer memory READ Receiving tu ge e aaan oto ae lees area Receiving Channel 1 lt gt WRITE Transmitting buffer f area Transmitting buffer Here a message one set of transmission characters means a string of ASCII characters which is ended by specified trailing 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 ae A a ee lt 7 N message length 320 bytes max In other words the CF211 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 CF211 Overview 1 3 External features NURON 10 Communicaion Interface Module CF211 Status LED Hardware reset switch Transmission parameter setting switches
36. xt 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 HO1 Receive time Specified time out check The rest of the message will out error time has elapsed between be received as the next characters message Message The message length has The message is disabled length error exceeded the limit 320 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 NOTE When T2 is in HALT mode the T2 cannot read any received message from the VAV CF211 Therefore if CF211 has received some messages while the T2 is in HALT mode the receive buffer overflow may occur when the T2 is changed to RUN mode User s Manual 49 6 RAS Information 6 2 4 Error information for data transmitting Address H8008 stores the error information for data transmitting F E D C B A 9 8 7 6 5 4 3 2 1 0 PASO pote o o fa 0 Eo Oe ee anemia codes T Bit 7 0 Transmit error Shows the error code for transmitting code See the table below HOO when normal Error Type of error Description Status code H01 Transmit time Specified time out check The next message can be out error time has elapsed between transmitted characters H02 Trailing code The trailing code has not The message is disabled missing been

Download Pdf Manuals

image

Related Search

Related Contents

Portaltrenner PT378 - Anton Wimmer Maschinenfabrik  306627g , LANCE DE PULVERISATION HYDRA–SPRAY  Regolamento Edilizio Comunale    3Com WL-542 Network Router User Manual  Artist - Bayer CropScience  Grabador de vídeo digital, Divar MR  Lotion Fraîche  Samsung BN68-01250B-00 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file