Home

fx-232adp communication adapter user manual

image

Contents

1. Check if receive data length is exceeding the data area iengih When using terminator Make sure the external sending device ts sending the terminator Make sure the terminator value matches All data IS received Is M8123 turned on No receive completion Receive completion Match the communication format Check the timing of contro line Check the send data length is not zero when driving RS instruction When using header Make sure the external sending device s sending the header When using terminator Check the timing of send receive Monitor data in hexadecimal notation HEX Check on off of M8161 Confirm send data format of the sending device Noma When M8123 s reset the PC returns to the wait state Guidelines for the safety of the user and protection of the FX 232ADP This manual has been written to be used by trained and competent personnel This is defined by the European directives for machinery low voltage and EMC If in doubt at any stage during the installation of the FX 232ADP always consult a professiona electrical engineer who s qualified and trained to the local and national standards If in doubt about the operation or use of the FX 232ADP please consult the nearest Mitsubishi Electric distributor Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential damage that may arise as a result of the
2. Check the send and receive timing with the external RS232C device The receive data length may exceed the receive data area Check the receive data length and timing of receive start Check that the program is not set so that M8122 may be always on Only receiving fails to operate normally NO Check wiring of control line Check timing of send receive Change RS instruction from OFF to ON Make sure the received data length matches with the receive data area length Is send wait flag M8121 turned on NO Check wiring of RS232C cable Check wiring of control line Make sure the receiving external device s normal Check the voltage level of RS232C signal 9 V Make sure content of send data and communication format are established before driving RS instruction Is SD LED send lit up jomentanly NO YES Is the send data remainder zero Check the timing of control line Check the wiring of RS232C cable Check the wiring of control line YES Match the communication format Make sure the receiving external device s normal CR LF may be needed in some printers Check the data format of sending device ra Is RD LED receive tit Check wiring of RS232C cable Make sure wiring of contro line is suited to the external device Make sure the external sending device is normal Check the voltage level of RS232C signal
3. and base 500V DC 1MQ by Megger unit over eneral specification General specifications excluding fol lowing Dielectric withstand vol tage Insulation resistance For data transmission to be effective it is necessary to match the communication format between the product and the RS232C device such as baud rate and parity ommunication format 120 bit mappin Description Description Data length b 8 Header D8124 Xt D8125 X2 Terminator Parity Mode Stop Control line Baud rate bps X1 The default value is STX 02H changeable 3x2 The default value is ETX 03H changeable The communication format is set by special data register D8120 Setting the communication format using D8120 is effective only at the time the RS instruction s driven and therefore 1f changed after driving it is not actually accepted An example of setting D8120 is shown below Data length 8 bit M8002 Parity Even MOV H138F D8120 Stop 2 bit Setting input Baud rate 9 600 Header Terminator b0 H138F 0001 0011 1000 1111 bi nary The settings for the above program are as right Control line Mode Ordinary mode The control line is set by b12 b12 0 No hardware hand shaking Send and receive are controlled by software protocol b12 1 Hardware hand shaking Signal lines ER DTR and DR DSR are used to con
4. connection between the product and RS 232C device DIN rail width 35 Weight approx 02 kg dimensions mm inch Aji TERMINAL LAYOUTS The connector is a 25 pin D SUB type and the pin configuration is as shown below Pinta Aretion id B Pins 4 5 are not used Short circuited inside Frame ground E Send data 232ADP to RS232 device 41 Receive data RS232 device to 232ADP 2 D ER DTR Send request Data Terminal Ready Shows ROI dev e roay to Tecoies CD DCD Carner Detection Signal ground SG Signal Ground 8 ON when carrier is detected for data lt DR DSR Send enable Data Set Ready a z ee A RS RTS Send request i lt RD RXD Receive data a gt SD TXD Send data SS FG Frame ground INSTALLATION NOTES AND USAGE i ton Perform Transmission standard Conforming to RS232C 25pin D SUB connector used Isolation method Photo coupler isolation Transmission distance t5m or less shielded cable recommended Current consumption DC_5V_200mA from base unit M8121 Send wait flag Related flag M8122 Send flag and data registers W8123 Receive completion M8124 Carrier detection M8161 8 bits 16 bits change 08120 Communication format 08122 Remainder of send data 08123 Number of received data D8124 Header byte D8125 Terminator byte Same as those for the FX or FX2C base unit 500V AC tmin Between 25 pin D SUB
5. installation or use of this equipment All example and diagrams shown in this manual are intended only as an aid to understanding the text not to guarantee operation Mitsubishi Electric will accept no responsibility for actual use of the product based on these illustrative examples Owing to the very great variety in possible application of this equipment you must satisfy yourself as to its suitability for your specific application Va Manual number JY992D48801 Manual revision B Date DECEMBER 1996 aa MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100 TELEX J24532 CABLE MELCO TOKYO HIMEJI WORKS 840 CHIYODA CHO HIMEJI JAPAN Effective DEC 1996 Specifications are subject JY992D48801B to change without notice
6. 065 D208 MOV H0000 D209 MOV HO00A D210 Pig SET M8122 END Setting of communication format RS instruction drive Writing of send data Herein test line is sent 80 Send request Operation Turn on the power of the PC and In this example CR HOO0D and LF printer check the printer ts on line HOOOA are wnitten at the end of the and switch the PC to RUN message The printer moves down one line for each message X000 0ON CR Carnage Return LF Line Feed AS instruction Turn on X000 and drive AS instruction X001 0N l Note It may be necessary to set the Every time X001 s turned on DIP switches of your printer the contents of D200 to D210 Check your printer manual for how to APNE aie Sg configure the serial communications test line s printed Connect 232ADP and a persona computer and exchange data with the PC Preparation of software FXFX Use ordinary communication software terminal emulator or dedicated program in the personal computer Personal computer The communication format of the PC for this example is as follows Receive data Send data Data length 8 bit Send data Receive data Parity Even Stop bit 1 bit Use the communication cable suited to the connector pin Baud rate configuration of the persona computer For representative wiring see section 4 if the communication for
7. anano no EVER aane MITSUBISHI ELECTRIC Aa MITSUBISHI PROGRAMMABLE CONTROLLERS MSEE FX 232ADP COMMUNICATION ADAPTER USER S GUIDE JY992D48801B This manual contains text diagrams and explanations which will guide the reader in the correct installation and operation of the FX 232ADP and should be read and understood before attempting to install or use the unit Further information can be found in the FX SERIES PROGRAMMING MANUAL and FX SERIES HARDWARE MANUAL i INTRODUCTION The FX 232ADP type RS232C adapter hereinafter called 232ADP is connected to the FX V3 07 or later FX2c series PC to exchange serial data with a personal computer barcode reader printer and other various RS232C devices Only one 232ADP unit can be connected to one base unit to the serial port provided at the left side Transmit and or receive The buffer size and location are specified by an RS instruction in the PC This product cannot be combined with special adapters such as FX 8AV FX2 40AP AW or the like RS232C device EXTERNAL DIMENSIONS 2 455 mountngholes _ 022 __ POWER LED Lit up by the DC 5 V power supplied from the base unit RDLED Lit when receiving data from the RS232C device connected to the product Connection cable Used for connection with FX or FX2c PC SD LED Lit when transmitting data to the RS232C device connected to the product RS232C connector Used for
8. ation failure programs was due to sequence program or communication protocol error Program when sending M8002 t MOV Hake D8120 M8002 Set the communication format according MOV Hx xkk D8120 Set the communication format accordin M8vU00 ae eon ea eal to tne external device to be used M80 Header and terminator are not attached 00 M8013 D100 K 13 PLS MO RS D100 KO DO K20 M8123 RST M8123 Receive completion reset END if not operating normaily when using these programs eliminate the cause using the flow diagrams shown following Program when receiving MO i SET M8122 Send request END Write the data to be sentto D 0 to D 1 9 before operating Check connection with the PC Check power source of PC Is power LED It YES Ehminate VRRD VRSC instruction and reset power source VRSC Instruction used Note Only one of the following devices can be connected to the communications port on the left of the PC FX 8AV FX2 40AW FX2 40AP FX 232ADP FX 485ADP e Reset M8070 M8071 and reset power source Match the communication format Check the wiring of control line Check the start timing of send receive The data transfer completes YES Send Is M8063 NO turned on receive once Nosend Y NO error No send or receive error or receive error There s a possibility of send crosstalk
9. mat of the software cannot be adjusted to this setting adjust the PC and the software to be the same Handied by 8 bit data M8002 MOV H0067 D8120 X000 RS D200 K11 D500 K1 X001 MOV H0074 D200 MOV oe D201 i l MOV H0074 D207 H 1 l Setting of communication format RS instruction drive Writing of send data Herein test line is sent MOV H0061 D208 MOV H000D D209 MOV HO00A D210 z 80 SET M8122 Send request M8123 81 mi MOV D500 K4Y000 Output of receive data X002 89 m __ ____ _______________ _ PLS M1 Receive completion reset M1 92 i RST M8123 96 END Operation Turn on the power of the PC and printer check the printer is on iO line and switch the PC to RUN X000 0N drive Turn on X000 and drive RS instruction X001 0N Personal computer operation Every time X001 is turned on the contents of D200 to D210 are sent to the persona computer and test data is displayed After receiving and storing data from personal computer in D500 it is output to YOOO to YO17 When input X002 is turned on the receive completion flag is reset S Y If data transfer does not perform correctly when using f sending and receiving using these programs Is the 232ADP check the operation using the following successful it is considered that the oper
10. tro send and receive of data fb 1 2 1 Ginn D bujo Bs p T xp N lt Daa gt _ _ OR RxD Peee c Data y H W Ordinary ER ee Se a SF ok aa e ER DTR DR OSR TIS or psa TTi manis Sb T xD H W tg ORD OP ee E ER DTR ae SS ee ee co ar The connections of RS232C devices varies with each device being used Check the specification of the device and connect onnection examples Terminal specification device Modem specification device When RS232C device When RS232C device When RS232C device When RS232C device uses pins 6 20 uses pins 4 5 uses pins 6 20 uses pins 4 5 RS232C FX 232 RS232C FX 232 RS232C FX 232 RS232C FX 232 device ADP device device ADP device ADP O o gt lt i QO BQWOoON SSON S OVQWVOO SEAH COVOOQOHO 8090 OVO 5 PROGRAM EXAMPLES Connecting 232ADP and a printer and printing out the data sent from the PC Common pin out for printer communication FX FXe2c series PC o o Eo har l SQO QOGOLHO a m SQQOGLOLO Receive data Send data The communication format of the senal printer is as follows Data length 8 bit Parity Even Stop bit 1 bit Baud rate 2400bps Sequence program ube Handled by 8 bit data D M8002 MOV H0067 D8120 X000 1 RS D200 K11 D500 KO X001 u PLS Mo MO MOV H0074 D200 E IMOV Hans D201 MOV HOO6E D207 MOV H0

Download Pdf Manuals

image

Related Search

Related Contents

Online User`s Manual  Context-Aware Routing System in an indoor scenario  Shared Service (Manual) Subscriber's Extn Plan 1B  Giulietta / Isetta-07 / Isotta-07  Parts and service manual for hydraulic leveling  User Guide «  Operation Manual  

Copyright © All rights reserved.
Failed to retrieve file