Home
ADAM-4521
Contents
1. SERIAL COMMUNICATION INTERFACE FOR INDUSTRIAL AUTOMATION ADAM 4521 Addressable RS 485 to RS 232 Converter with 1000 V Isolation Introduction ADAM 4521 is an intelligent RS 485 to RS 232 converter specifically designed to connect RS 232 devices to an RS 485 network with other RS 485 devices RS 232 is the most common transmission standard Although widely available on most computer systems measurement equipment PLCs and industrial devices its transmission speed communi cation distance and especially networking capability are limited due to unbalanced transmission The ADAM 4521 addressable converter solves this problem and lets you easily build up an RS 485 network with your RS 232 devices by assigning each one an address for easier communication Built in Intelligence ADAM 4521 is equipped with a built in microproces sor which uses two UARTs and automatically processes data before transmitting it to the RS 232 device This makes ADAM 4521 able to allow different baud rates between RS 232 devices and the RS 485 network The microprocessor also verifies whether the data is transmitted with the appropriate address which enables each device on the RS 485 network to communicate with your PC over long distances RS 485 Network with Automatic Data Flow Control The RS 485 standard supports half duplex communication meaning a single pair of wires is used to both transmit and receive data Handshaking signals such a
2. delimiter is a character for the Data Pass command Example command 24D cr response 24 cr The command asks the module at address 24h to return the delimiter character from EEPROM ADAM 4521 User s Manual Example Program This demo program demonstrates how you might send a string of data to your HP34401A Multimeter RS 232 device via the ADAM 4521 ADAM 4521 Configuration Status ADDRESS 02 MODE ADDRESSABLE DELIMITER ADD CR NO RS 485 baud 9600 N 8 1 RS 232 baud 9600 N 8 2 HP34401A RS 232 baud 9600 N 8 2 RS 232 HP 34401A Program DEMOO1 C include lt dos h gt include lt io h gt include lt stdio h gt include lt conio h gt define TIME_OUT 500000 static int base0 0x3F8 static char rec 36 static char cmd 40 void send void void receive void void main outp base0 3 0x80 set DLAB 1 outp base0 0x0C outp base0 1 0x00 set buad 9600 outp base0 3 0x03 set data 8 stop 1 no parity outp base0 1 0x00 disable COM1 interrupt printf nInput string gets cmd while cmd 0 q amp amp cmd 0 Is Q send receive printf nInput string gets cmd ADAM 4521 User s Manual void send static int i flag i strlen cmd cmd i 0x0a HP 34401A uses LF 0x0a as the end of an incoming command cmd i 1 0x0d i 0 flag 1 while flag outportb base0 c
3. peak to peak while the voltage in all cases must be maintained between 10 and 30 V All power supply specifications are referenced at module connector The power cables should be selected according to the number of modules connected and the length of the power lines When using a network with long cables we advise the use of thicker wire to limit the line voltage drop In addition to serious voltage drops long voltage lines can also cause interference with communication wires We advise that the following standard colors as indicated on the modules be used for power lines Vs gt R Red GND gt B Black Communication Wiring We recommend that shielded twisted pair cables that comply with the EIA RS 485 standard be used with the ADAM network to reduce interference Only one set of twisted pair cables is required to transmit both Data and RTS signals We advise that the following standard colors as indicated on the modules be used for the communication lines gt Yellow gt Green DATA Y DATA G Connection DB 9 Female Connector RS 232 Device ADAM 4521 ADAM 4521 User s Manual Software Configuration The ADAM 4521 comes with a utility disk containing software with the following capabilities e Baud rate configuration e Address configuration Addressable or non addressable mode selection RS 485 or RS 422 mode selection NOTE Before confi
4. without changing the values NOTE When changing configuration parameters always make sure a window appears notifying you that the target module has confirmed the changes Ter minal This selection allows you to directly send and receive commands on the RS 485 line It has two options Single Line and Full Screen Choosing Single Line will place the ADAM 4521 in command test mode where you send commands one at a time by typing them into the top blank and pressing lt Enter gt The response appears in the bottom blank To send the command again simply press lt Enter gt Terminal emulation mode is a full screen version of command test Previous commands and their responses stay on the screen for you to refer to If you want to repeatedly send a command press lt F10 gt and a dialogue box will appear into which you can enter the command Press lt Enter gt to send the command To stop the repeating command press any key Figure 3 Command Test Mode A box on the right hand side of the screen shows the communication parameters for the serial line such as the baud rate and number of stop bits Quit Choosing Quit ends the ADAM utility program Command Set To avoid communication conflicts when several devices try to send data at the same time all actions are instigated by the host computer The basic form is a command response protocol with the host initiating the sequence When modules are not transmitting they a
5. AA data Data Pass ADAM 4521 User s Manual Command Descriptions Data Pass Set ID Description Tell the module at address AA to pass up Description Assign an ID of up to 24 bytes to the to 32 bytes of data to the RS 232 device module at address AA Syntax delimiter AA data cr Syntax AA6 identification cr Response depends on the device Response AA cr if the command is valid Example command 24 02 cr Example command 246ADAM NETWORK 1 cr response response 24 cr The command asks the module at The command asks the module at address 24h to send 02 cr to the RS address 24h to write ADAM NETWORK 232 communication port 1 to EEPROM Read ID Description Read the ID from the module at address AA Syntax AA7 cr Response AA identification cr Example command 247 cr response 24ADAM NETWORK 1 cr The command asks the module at address 24h to return the identification data from EEPROM Set Delimiter Description Set the delimiter character for the Data Pass command There are 8 special characters to choose from al 2A Ae ih ch Syntax AAC delimiter cr Response _ AA cr if the command is valid Example command 24C cr response 24 cr The command asks the module at address 24h to write delimiter character to EEPROM Read Delimiter Description Read the delimiter character from the module at address AA Syntax AAD cr Response AA delimiter cr if the command is valid
6. guring the ADAM 4521 make sure it is connected to your host through an RS 422 or RS 485 line The main screen consists of a menu bar at the top and a status field which displays information about the connected modules When you first start the program it will automatically scan for any connected modules and display their data The status field lists module characteristics and configuration parameters Figure 1 Main Screen NOTE An asterix sign before the module s address indicates that the module is in the INIT state COMport To configure your communication port highlight COMport and press lt Enter gt A menu will appear allowing you to change which port you are using the baud rate and the timeout Search To scan the network for connected devices highlight the Search command on the menu bar and press lt Enter gt A window will appear and prompt you for a value from 0 to 255 It will then scan all the addresses from 0 to that number Setup When you select Setup from the menu a selection bar will appear in the status field Highlight the module you wish to configure and press lt Enter gt A new screen displaying the module s current configuration will offer four menu options Configuration RS 232 Setup RS 422 RS 485 Setup and Identification mp Pree EE nw LL CES mip Di ae in amp Hi kikil irinn H ier li it hnc BI Figure 2 Setup Options 1 To change the basic se
7. ks of Advantech Part No 2000521000 1st Edition Printed in Taiwan January 1996 Installation Initial Inspection We carefully inspect the ADAM 4521 both mechani cally and electrically before we ship it It should be free of marks and scratches and in perfect order on receipt As you unpack the module check it for signs of shipping damage damaged box scratches dents etc If it is damaged or fails to meet our specifica tions notify our service department or your local sales representative immediately Also call the carrier immediately and retain the shipping carton and packing material for inspection by the carrier We will then make arrangements to repair or replace the unit Before you begin installation please make sure you have the following items e 1 ADAM 4521 module e 1 Bracket e 1 Utility disk Basic Configuration Before installing the ADAM 4521 in an existing network it should be configured Though all modules are initially configured at the factory it is recommend ed that you check the baud rate settings Factory Default Settings Protocol RS 485 Buad Rate 9600 bps Delimiter Mode Addressable Add cr Yes Address 01 Basic Power Supply For the ease of use in industrial environments the ADAM modules are designed to accept industry standard 24 V unregulated power Operation is guaranteed when using any power supply between 10 and 30 V Power ripples must be limited to 5 V
8. md i Send data while inportb base0 5 amp 0x40 0x40 if cmd i 0x0d flag 0 i while inportb base0 5 amp 0x40 0x40 void receive void int i flag long int timeout i 0 flag 1 timeout TIME_OUT while flag Check receiver data if inportb base0 5 amp 1 0 rec i inportb base0 Receive data if rec i 0x0a HP34401A uses 0x0a as the end of an outgoing command rec it1l 0 flag 0 printf nReceived data s rec i else Check timeout timeout if timeout 0 flag 0 printf nTimeout error n 7 Output Input string 02 SYST REM Put the multimeter into remote operation mode Timeout error Input string 02 IDN Read the multimeter ID Received data HEWLETT PACKARD 34401A 0 3 1 1 Input string 02 SYST VERS Ask what version of SCPI the multimeter conforms to Received data 1991 0 Input string 02 READ Trigger the readings and read the results Received data 6 91849000E 04 ADAM 4521 User s Manual ADAM 4521 Dimensions Prosoft MOckBa Teaedou 095 234 0636 4 AMHWW akc 095 234 0640 BBS 095 336 2500 Web http www prosoft ru E mail root prosoftmpc msk su Aas nucem 117313 Mocksa a a 81 C Metep6ypr 812 325 3790 Exatepun6ypr 3432 49 3459 ADAM 4521 User s Manual
9. re in listen mode The host issues a command to a module with a specified address and waits a certain amount of time for the module to respond If no response arrives a timeout aborts the sequence and returns control to the host Syntax delimiter character address command data checksum carriage return Every command begins with a delimiter character The irst four commands can use a dollar sign or a percentage sign but the Data Pass command uses one of eight special characters as described on the ollowing page The delimiter character is followed by a two character address hexadecimal that specifies the target module The actual two character command follows he address Depending on the command an optional data segment follows the command string An optional wo character checksum may be appended to the total string Every command is terminated by a carriage return cr NOTE ALL COMMANDS SHOULD BE ISSUED IN UPPERCASE CHARACTERS Command Syntax Command Name Description Assign an ID of up to 24 bytes to the module at address AA Read the ID from the module at address AA Set the delimiter character for the Data Pass command Read the delimiter character from the module at address AA Tell the module at address AA to pass up to 32 bytes of data to the RS 232 device AA6 ID Set ID AA7 Read ID AAC delimiter Set Delimiter AAD Read Delimiter D
10. s RTS Request To Send are normally used to control the direction of the data flow but a special I O circuit in the ADAM 4521 automatically senses the direction of the data flow and switches the transmission direction No handshaking signals are necessary Features e Built in microprocessor Transmission speeds of up to 115 2 kbps e 1000 V isolation Surge protection on RS 485 line RS 232 and RS 485 can be set to different baud rates Automatic RS 485 data flow control Watchdog timer function included Power and data flow indicator for troubleshooting Reserved space for termination resistor Software configurable to either addressable or non addressable mode Easily mounted on DIN rail panel or piggyback All communication setups stored in EEPROM Specifications Transmission speed bps 300 600 1200 2400 4800 9600 19 2K 38 4K 57 6K 115 2K software configurable Power requirement Unregulated 10 to 30 V with protection from power reversals Case ABS with captive mounting hardware e Accessories included Nylon DIN rail mounting adapter SECC panel mounting bracket RS 232 interface connector Female DB 9 RS 422 RS 485 interface connector plug in screw terminal accepts AWG 1 12 or 2 14 22 0 5 to 2 5mm wires Operating temperature 10 to 70 C Dimension 2 36 x 4 41 60mm x 120mm Power consumption 1 W ADAM and the ADAM logo are trademar
11. ttings select Configuration and press lt Enter gt Highlight the parameter you wish to change and press lt Enter gt A window will appear with the configuration options for that parameter Highlight the proper value and press lt Enter gt 2 To change the RS 232 RS 485 RS 422 baud rate settings select RS 232 Setup or RS 422 485 Setup and press lt Enter gt Highlight the parameter you wish to change and press lt Enter gt A window will appear with the cinfiguration options for that parameter Highlight the proper value and press lt Enter gt In addition you can assign the module with proper ID via the Identification option 3 The Mode addressable or non addressable and Baud Rate options need special attention because they can only be changed when ADAM 4521 is in the INIT state To alter the Mode and Baud Rate do the following e Power all components on except ADAM 4521 e Power ADAM 4521 on while shorting the INIT and GND terminals Configure the Mode and or Baud Rate Power ADAM 4521 off e Remove the grounding of the INIT terminal and power ADAM 4521 on e Check the settings INIT state default settings Baud Rate 9600 bps Protocol RS 485 Address 00h ADAM 4521 User s Manual 4 After you have made the changes for a block of parameters press lt ESC gt You will be asked if you are satisfied with the changes you have made or not Press Y to keep the changes you have made N to escape
Download Pdf Manuals
Related Search
ADAM 4521 adam 4521 adam 4521 software adam 4520 adam 4520 manual adam 4520 pinout adam 4520 change baud rate adam 4520 utility software adam 4520 driver adam 4520 datasheet adam 4510s
Related Contents
RENAULT MASTER - OPEL MOVANO ZKAccess4.5 Quick Use Guide 8-Notice mode d`emploi plancha Iparla juin_2015 AT Keyboard Interface User Manual Produit: U580 Module de balayage Superbe De medidor de aislamiento manual de instrucciones Platform Screen Doors System Line and Workshop Maintenance Nexus RF User Guide Logique de la conception SOLUCION TECNICA DE PROBLEMAS VW Passat 3Bx Copyright © All rights reserved.
Failed to retrieve file