Home

User`s Manual - ICP DAS USA`s I

image

Contents

1. DIN RAIL MOUNTING BRACKET I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 10 1 4 Pin Assignment 1 7521 1 7522 1 7522 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 11 Pin assignment of 13 pin screw terminal block l 7521 1 7521 D 5 Z 3 Description X3 Connects to I O expansion board X2 Connects to I O expansion board X1 Connects I O expansion board DO3 Digital output 150mA 30V Digital output 150mA 30V DO1 Digital output 150mA 30V DI3 Digital input 3 5V 30V DI2 Digital input 3 5V 30V INIT Initial pin 3 5V 30V 10 D2 DATA pin of COM2 RS 485 11 D2 DATA pin of COM2 RS 485 12 VS_ V of power supply 10 to 30VDC unregulated 13 GND GND of power supply 00 NI Awn o J N Pin assignment of COM1 connector DB 9 Male 5 Name Description Data DATA of RS 485 port TXD Transmits Data RS 232 RXD Receives Data RS 232 N C No Connection GND Signal ground of RS 232 N C No Connection CTS Clear To Send RS 232 RTS Request To Send RS 232 Data DATA of RS 485 port Note The COM1 can be used as s RS 232 port or s RS 485 port It is not recommended to use both RS 232 amp RS 485 at the same time I 75
2. Speed RTC No No No EEPROM 2K bytes 2K bytes 2K bytes D I 3 5V 30V 2 channels 2 channels 1 channels D O 100mA 3 channels 1 channel 0 Operation system MiniOS7 MiniOS7 MiniOS7 Program download COM 1 COM1 COM1 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 32 Comparison Table of l 7522A D l 7524 D l 7527 D l 7522A D l 7524 D l 7527 D CPU clock 80188 or compatible 80188 or compatible 80188 or compatible 40M Hz 40M Hz 40M Hz SRAM 256K 256K 256K Flash ROM 512K 512K 512K 1 RS 232 RS 232 RS 232 or RS 485 with or RS 485 with or RS 485 with self tuner inside self tuner inside self tuner inside COM2 RS 485 with RS 485 with RS 485 wtih self tuner inside self tuner inside self tuner inside COM3 RS 422 RS 485 RS 232 RS 232 txd rxd txd3 rxd3 txd rxd rts cts txd3 rxd3 COM4 No Com4 RS 232 RS 232 txd rxd txd rxd rts cts COMS No Com5 RS 232 RS 232 txd xd txd rxd rts cts COM6 No Com6 No Com6 HS 232 txd rxd SOM No Com7 No Com7 RS 232 txd rxd COMB No Com8 No Com8 HS 232 txd rxd Transmission Speed Up to 115 2 kbps Up to 115 2 kbps Up to 115 2 kbps Yes Yes Yes EEPROM 2K bytes 2K bytes 2K bytes D I 3 5V 30V 5 channels 1 channel 1 channel D O 100mA 5 channels 1 channel 1 channel Operation MiniOS7 MiniOS7 MiniOS7 svstem Program COM 1 COM1 COM1 download I
3. 101 5 3 26 Lo v WA AE EOT EE SAE T 103 5 3 27 oe TaI DA M EE EA AEO E EET EO ET 105 5 3 28 amp AAAGS 106 5 3 29 AASP amp SAA SS 107 5 3 30 ET 108 5 3 31 SAALI data 110 5 3 32 GAAR L ETA 112 5 3 33 AAJN timeout ssssnsensensenenzensonnsenzoneosensenosenseseosessenensea 113 5 3 34 AAGN triggerlevel c eeee eene ee ener enero rn tnunn 115 5 3 35 OAA data 116 5 3 36 AABBHH 118 5 3 37 v WB me 119 5 3 38 iii 120 CHAPTER 6 APPLICATIONS ti na e A use Med e 122 6 1 CNNECTING TO THE HP34401A se ssnosnnonnonnnenonnensnoennensenneenoeneena 122 6 1 1 Connect the I 752N module to the HP34401A 122 6 1 2 Connecting a PC to the HP34401A 122 6 1 3 Connecting a single l 7522 to a single HP344014 124 6 1 4 Connecting multiple I 7522 modules and multiple HP34401A 126 6 1 5 Connecting a single I 7523 modules and two HP34401A 128 6 1 6 Connecting multiple I 7523 modules and multiple HP34401A 130 6 2 TYPICAL APPLICATIONS censere enean toan enata 132 APPENDIX A MINIOS7 UTILITY ssa orte terreri vete tede 141 APPENDIX B TISSXMLEXE des ose t exteros Tan 142 APPENDIX C MANUAL ERROR ANNOUNC
4. COMI COM2 COM3 COM4 COM5 COM6 COM7 COM8 Baud Rate 9600 bps 9600 bps 9600 bps 9600 bps 9600 bps 9600 bps 9600 bps 9600 bps Data bit 8 8 8 8 8 8 8 8 Parity bit None None None None None None None None Stop bit 1 1 1 1 1 1 1 1 Checksum No No No No No No No No CrLfmode 4 4 4 4 4 4 4 4 delimiter Refer to B 2 B n 5 3 10 WatchDog disable disable disable disable disable disable disable disable I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 44 3 1 Connecting the l 752N module Step 1 Connect the l 752N module to the RS 485 network as follows Host PC 1 7521 22 22 23 24 27 1 7520 Host PC I 7520R RS 232 Signal Male 9 pin D sub Com 1 2 3 4 or UART port Ext GND Ext 24V Female 9 pin D sub l 7521 l 7521D RS 485 l 7522 l 7522D Signal l 7523 l 7523D Male 9 pin D sub l 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 45 Host PC RS 232 Signal B Male 9 pin D sub COM 1 2 3 4 or UART port 1 7522A 1 7522AD GND Ext GND 1 7524 1 7524D VS Ext 24V Female 9 pin D sub l 7527 l 7527D D2 COM2 D24 1
5. AA Rese modestas Se 5 328 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 67 AAU data Read data from the RS 232 COM port buffer Sec 5 3 30 Write to the expansion board DO 0 1 2 3 29 3 B jil e SAAJNItimeout AA timeout Read Set the delay time to determine whether the end of a command response was been transmitted receiver SAAGNItrigger level AA triggerlevel Read Set the Trigger Level Sec 5 3 34 AA data gt data Read Set the onboard DI DO 1 2 3 4 5 Sec 5 3 35 AABBHH Set the multiple onboard DO 1 2 3 4 5 Sec 5 3 36 AABCDD Set the single onboard DO 1 2 3 4 5 Sec 5 3 37 SAAEV status Read Set prefixed address status on the response Sec 5 3 38 5 2 Address Mapping Table l 7521 l 7522 l 7523 1 7522 l 7524 l 7527 COMI RS 232 AA COM2 RS 485 AA Ec e 1 AA TAD 1 AAH COM4 RS 232 N A N A 2 N A AA 2 2 5 85 232 AA43 3 COM6 RS 232 N A N A N A N A N A AA44 COM7 RS 232 N A N A N A N A N A 5 COM8 RS 232 N A N A N A N A N A AA46 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 68 5 3 Commands 5 3 1 SAAA addr Description This function reads sets the module address
6. ABCD CR coml1 gt ABCD CR device Response transformation EFGH CR device gt EFGH com1 EFGH CR com2 gt EFGH lt CR gt PC Situation 3 l 7522A COM2 CrLfmode 4 COM1 CrLfmode 4 The data received for COM2 is ABCD lt CR gt where CrLfmode 4 nothing added and ABCD lt CR3 gt is sent to COM1 where CrLfmode 4 nothing added So the device receives the string ABCD lt CR gt and gives the response EFGH lt CR gt The data received for is EFGH lt CR gt where CrLfmode 4 nothing added and EFGH lt CR3 gt is sent for COM2 where CrLfmode 4 nothing added So the PC receives the string EFGH CR Command transformation 01 ABCD lt CRs PC gt ABCD lt CR gt com2 ABCD CR com1 gt ABCD lt CR3 gt device Response transformation EFGH lt CR gt device gt EFGH CR com1 gt EFGH lt CRs com2 gt EFGH CR PC I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 40 Timeout The AAJN timeout command is only supported by firmware version 3 0 and above If the length of a command or response string is too long or the data transmission time between the l 752N and peripheral RS 485 devices RS 232 device is too long the timeout value can be adjusted to ensure the amount of full data is received If the timeout value for the RS 232 COM Port is too small the response part will be received by the 1K byte Queue buffer fo
7. 171888C 5 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 34 NOTE the text shown in the ellipse region is i7188XC gt and will be displayed for l 7521 l 7522 1 7523 modules but i 7188XB gt will be displayed for l 7522A l 7524 l 7527 modules Step 3 Type 752n c for l 7521 l 7522 l 7523 or 752n b for l 7522A l 7524 l 7527 and press the Enter key to execute the 752n c exe or 752n b exe file Note the INIT pin should be connected to the GND pin The l 752N module will revert to the factory default settings without changing the EEPROM data The factory default settings are as follows COM Port 22 Module Address 00 Baud Rate 9600 Checksum DISABLED CrLfmode 0 0 00 Data format 1 start bit 8 data bits 1 stop bit N 8 1 cx 7188 9 1 35 COM8 115200 N 8 11 FC 0 CTS 0 DIR DA sion 5 Microsoft Windows Uer lt C gt Copyright 1985 2001 M D gt 7188xu c8 Begin Key Thread 1 7 for 1 718834 F build 904 68 2006 14 04 55 timeout 8 8 sec i7188kC gt dir gt 752n_c exe 68 14 787 13 43 23 4BB54LB9C76 ICBB2 BBBB C9 C9 BBBE jo sutoexec hat 11 29920805 12 37 15 16 QGQGA 1C9CB 808086 C9CC 008080 Total File number 242 Free space 156448 byt i7188XC 752n c Step 4 Refer to Sec 3 1 and send commands to COM to read the configuration for COM 2 or other ports Some examples are as follows a Send the
8. 52594 2007 10 2 FF Name autoexec bat 752n b exe I 752N D file list 718848 COMT e Delete F8 Refresh F3 Console F10 Note l 7521 l 7522 l 7523 modules need 752N C exe and autoexec bat l 7522A l 7524 l 7527 modules need 752N B exe and autoexec bat 3 4 2 Using 7188xw exe to download a file Refer to Appendix B 7188XW EXE for more information Note The latest firmware version can be obtained from http ftp icpdas com tw pub cd 8000cd napdos 752n firmware v3 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 62 Chapter 4 DI DO and WatchDog 4 1 DO Operation Principles The DO of the l 752N module will revert to its initial start values when powering on for the first time If the SAAZNV command is received the DO output will change to desired state All DO will then remain in the same states until the next SAAZNV command is received If the l 752N module is reset by the hardware watchdog all DO will immediately revert to their power on values However these power on values may be different from the original states that existed prior to the reset so the DO states stored on the Host PC may be different from real DO states that were latched in the l 752N module An SAAZNV command must be sent from the Host PC in order to reset these DO to their expected states The AA5 command can be used to detect a hardware watchdog reset Refer to Sec 4 5 for mo
9. X8 L I s Event Counter Event Counter RS 232 Device RS 232 Device I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 138 Application 10 Multiplex Control Master type e Referto Applications 1 and 2 for more information The onboard DO of the l 7521 module can directly drive a relay The onboard DI can be linked to photo sensors to allow for event triggering The l 75214 DN PRA can be triggered by a photo sensor and can control the multiplex to select the expected analog signal All control operations are performed in the 1 7521 module The Host PC is able to read the 3 channel A D signals without requiring the multiplex control e Refer to the 75210DM4 c file for the source code of the firmware p l 7520 RS 232 es RS 485 lee xey 7521 l 7521 photo sensor 01 photo sensor men Q Y ele gt gh WY DA KJ 5 232 RS 232 device D O device D O DN PR4 DN PR4 15 an ttt I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 139 Application 11 Real time Analog Signal Monitoring and Alarm Control Master type Refer to Applications 1 and 2 for more information COM of the Host PC is used as the Host RS 485 network The Host PC will send commands and receive responses through the RS 485 network 2 of the Host PC is used as an emergency RS 485 ne
10. 8 1I FC 0 CIS 0 DIR D Awicit752n01752N_ 73 20061 cf gt lt 17188X C dir O autoexec bat 11 25 2005 12 37 15 10 0000A C002 0000 C002 000A 17188XC 41 gt Step 12 Disconnect the INIT pin from the GND and power off then power on the l 7521 22 23 22A 24 27 module The MiniOS7 will automatically execute the new firmware I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 146 Appendix C Manual Error Announcement Please refer to CD Napdos 752N Document whatnew_752n_manual txt or http ftp icpdas com tw pub cd 8000cd napdos 752n document whatnew 752n manual txt to obtain error correction information for this manual I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 147 Appendix D Firmware Version information Download a description document about firmware version information http ftp icodas com pub cd 8000cd napdos 752n gt firmware v3 folder gt readme txt The readme txt illustrates some difference and improvement of firmware version I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 148
11. Any key pressed back to local mode yN Ask for end measuring y Acquire reading EE Note the PC COM port should be 16550 compatible I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 125 6 1 4 Connecting multiple l 7522 modules and multiple HP34401A The diagram below shows how to connect a single PC to multiple remote HP34401As on an RS 485 network The l 7520 module is used to convert the RS 232 signal from the PC to an RS485 signal The l 7522 module is used as an Addressable RS232 converter for the HP34401A since there is no address setting on the HP34401A Each l 7522 module has a unique address on the RS485 network Each HP34401A shares the same address range as its corresponding l 7522 module which allows each HP34401A to have a unique address in this configuration 7 7 RS 232 vm Host PC RS 485 ANA 2 1 7522 1 1 7522 3 1 7522 5 HP 34401A RS 232 232 232 2 The demo program hp22 m c is allow a Host PC to be linked to a remote HP34401A Refer to the companion CD for the source code of the hp22 m c file The key features of hp22 m c are as follows e The configuration of the COM port on the l 7522 module is as follows Baud Rate Parity Data Stop bit e The RTS3 pin of the COM3 port on each module must first be set as active HIGH to enable the HP34401A I 75
12. Note Supported by the firmware version 3 0 and upward Syntax AABODDI chkI CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF B 1 A C 0 gt DO1 19D02 2 gt 3 gt 004 45 DO5 DD 00 gt OFF 01 gt ON chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt gt chk CrLf invalid command gt chk CrL f no response gt syntax error communication error or address error gt Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the l 7521 module is 01 command 011201 CrLf command 01A000 CrLf Sets DO1 OFF response gt Note If the host fails the ZAABCDD command will be ignored and the response string will be In normal situations the response string will be gt I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 119 5 3 38 SAAEV Description This function reads sets the status of the prefixed address byte on the response which lets the host know RS 232 device the response comes from Note Supported by the firmware version 3 05 and upward Syntax AAEV chk CrLf Delimiter character AA
13. chk CrL f response syntax error communication error or address error gt Delimiter character indicating a valid command AA 2 character module address in HEX format bb 2 character hex value of DO DO1 is at LSB Valid value is from 00 to FF 2 character hex value of DI DI1 is at LSB Valid value is from 00 to FF Dl low gt 0 Dl high gt 1 DI floating will get High DO 1 on DO 0 off chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character AAh hh valid command gt chk CrLf invalid command gt chk CrL f no response gt syntax error communication error or address error gt Delimiter character indicating a valid command Delimiter character indicating an invalid command chk 2 character checksum If the checksum is disabled no chk CrLf End Character I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 116 e Example Assume the AA address value of the l 7522A module is 01 response s CrLf DO4 ON command 02 Reads DO1 OFF DO2 OFF DO3 OFF response 02081F CIl f A pei DO5 OFF DI1 high 1 DI2 high 1 DI3 high 1 DI4 high 1 DI5 high 1 Assume the AA address value of the I 7521 module is 01 command 9017 Sets DO1 ON DO2 ON DO3 ON response gt CrLf e Note If the host fails the AAh hh command will be ignored and the response string will be In normal situations the response string w
14. 0100 CrLf sponse DoD response 01 CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 101 l 752N Series Module Status Comparison 1 Module hardware watchdog reset All DO values return to their initial start values e Nochange in module status Accepts host DO command to change the DO state 2 Host software watchdog failure All DO values return to their saved values e Module statusz04 host watchdog failure Ignores all host DO commands until the module status is cleared to 0 using the AA1 command I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 102 5 3 26 AA2 For I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 Description This function reads the status of the host watchdog and the host watchdog timer value The host watchdog timer is designed for the software host watchdog When the software host watchdog is enabled the host must send a HOST is OK command See sec 5 3 23 to all modules before the timer expires When the command is received the host watchdog timer is reset and restarted Use the command to enable disable set the host watchdog timer Syntax AA2 chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt AASTT chk Cr
15. 8 11 0 5 0 DIR D wvicev752mV752N V3 20061 Microsoft Windows 5 1 2600 C Copyright 1985 2001 Microsoft Corp C Documents and Settings Wic tsai d D gt cd 752n c 060206 D1752n c 06020627188xw c1 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COMI 115200 N 8 1 AutoRun Autodownload files None Current work directoryz D V 52n c 060206 original baudrate 9600 now baudrate 115200 Step 8 Refer to Steps 6 to 9 of Sec 3 1 to change the configuration for 7188xw exe to 115200 N 8 1 Press ENTER cx 71885 9 1 32 ICOM1 9600 8 11 FC 0 CTIS 0 DIR D wiciv7i52m1752WN V3 20061 DN752n c 06020627188xw cl 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COMI 115200 N 8 1 AutoRun Autodownload files None Current work directoryz D V 52n c 0602067 original baudrate 115200 now baudrate 115200 axe I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 144 Step 9 Type dir Press ENTER The following screen will be shown on the Host PC for l 7521 22 23 7188XW 1 32 ICOM1 9600 8 11 FC 0 CIS 0 DIR D wie175201752N V3 20061 n x 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COMI 115200 N 8 1 AutoRun Autodownload files None Current work directoryz D V 52n c 0
16. AAON stop bit chk CrLf gt Sets the stop bit for COM 3 4 5 6 7 8 Syntax AAONIstop bit chk Crl f AA N 0 1 stop bit chk CrLf Response AA chk CrLf Delimiter character 2 character module address in HEX format The valid range is from 00 to FF Reads the stop bit for the COM 2 Reads Sets the stop bit for the COM 1 3 4 5 6 7 8 1 2 for COM1 3 4 5 6 7 8 2 character checksum If the checksum is disabled gt no chk End Character valid command gt AA stop bit chk CrLf invalid command gt AA chk CrLf no response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating ad invalid command 2 character module address in HEX format 2 character checksum If the checksum is disabled gt no chk End Character Example Assume the AA address value of the l 7523 module is 01 command response command response Notes 0201 2 CrLf Changes the stop bit to 2 for the RS 232 COM3 102 CrLf 0301 2 CrLf Changes the stop bit to 2 of the RS 232 103 CrLf 1 Address mapping refers to Sec 5 2 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 76 2 Valid stop bit values l 7521 17522 7522A 1 7523 1 7524 1 7527 10r2 1or2 2 2 1 2 2 1 1 1 1 1 1 5245 N A 1or2 2 2
17. Example response 0100 CrLf command 020 CrLf The status of module 02 is host watchdog response 0204 CrLf failure gt HOST is off line now command 020 CrLf The status of module 02 is host watchdog response 0280 CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s 1 2 3 Aug 2008 xxxx 100 5 3 25 1 Description This function resets the module status which will be latched until the AA1 command is sent If the module statusz0x04 all output commands will be ignored Therefore the module status should be read first to ensure that the current status is O If the module status is not 0 it can only be cleared by sending the AA1 command e Syntax AA1 chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command gt AA chk CrLf invalid command gt AA chk CrLf response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the l 7521 module is 01 response 10104 CrLf off line response CrLf response 01 CrLf response
18. S AAA chk CrLf gt reads the module address stored in the EEPROM AAA addr chk CrLf sets the module address Syntax AAA addr chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled no chk CrL f End Character Response valid command 2 AA chk CrL f invalid command gt AA chk CrLf response gt syntax error communication error or address error Delimiter character indicating valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example response 01 CrLf response 102 CrLf response 102 CrLf see NOTE 2 Notes 1 The AA address value will be displayed on LED1 and LED2 Refer to Sec 3 1 for more information 2 Connect the DI INIT pin to GND pin and use the 00A command to read the address stored in the EEPROM Refer to Sec 2 1 INIT Pin Operating Principles I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 69 5 3 2 SAABN baud rate Description This function reads sets the Baud Rate for COM 1 2 3 4 5 6 7 8 AABN chk CrLf gt Reads the Baud Rate for COM 1 2 3 4 5 6 7 8 stored in the EEPROM AABN baud rate chk CrL f gt Sets the Baud rate for COM 1 2 3 45 6 7 8 Syntax AAB
19. gt no chk End Character valid command gt IAA CrLfmode chk CrLf invalid command AA chk CrL f response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command 2 character module address in HEX format 2 character checksum If the checksum is disabled gt no chk End Character Example Assume the AA address value of the l 7523 module is 01 command response command response command response DN I014 CrL f 0171 CrLf The end char for COMI is Ox0D 0x0A I011 CrLf 02T1 CrLf The end char for is 1022 CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 84 command 03 1 The end char for COM4 is 0x0A 0x0D response 033 CrLf Notes 1 Address mapping refers to Sec 5 2 2 The default CrLfmode 4 gt ie the default CrLf NONE for all port I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 85 5 3 13 AAW Description This function reads the CTS status for COM 1 3 4 5 Syntax SAAW chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled no chk CrLf End Character Response valid command gt AAS chk CrL f nS di O AA chk CrLf invalid command gt
20. je up mid f end character Received Receive a character as the command part of a response CrLfmode 4 do not remove the end suffix any character to character from the The response is stored the command response in the RS 232 COM 2 command bypass Port buffer Refer to status ON crifmode 0 3 command AAU crifmode 4 default Yes No command bypass status Response time timeout1 ON or OFF ON P RS 232 COM Ports Response time The period of time between when the RS 232 device receives a command and sends a response I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 42 2 06 Writing Program on 752N Module Manual Location l 7521 l 7522 l 7523 http www icpdas com products PAC il 7188 7186 1 7188xc htm gt Click Manual Download 7188xc manual english pdf l 7522A l 7524 l 7527 http www icpdas com products PAC il 7188 7186 il 7188xb htm gt Click Manual gt Download 7188xb manual english pdf 7188xc manual english pdf and 7188xb manual english pdf will teach how to programming User can write a program and execute it on l 752N hardware Here l 752N is as an embedded controller I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 43 Chapter 3 Quick Start Factory default setting values about configurations for each COM port
21. vic 752n others ECR 061 102 original baudrate 9600 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 change to Line Mode To Remote PC1 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 58 Step 5 Send To Remote PC2 string from the Host PC the second Remote 2 Type 02To Remote PC2 Press ENTER to send the command string to the l 752N module Type 02To Remote PC2 Press ENTER to send the command string to the I 752N module The following screen will be shown on the Host PC cx 7TIBSXW 1 32 I COM1 9600 8 11 FC 0 CTIS 0 DIR D wici752mM752N 20061 AutoRun Autodownload files None Current work directory D vic 752n others ECR 061 102 original baudrate 9600 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 change to Line Mode 01 To Remote PC1 02To Remote PC2 02To Remote PC2 The following screen will be shown on the second Remote PC 2 Current set Use COM7 115200 N 8 1 AutoRun Autodownload files None Current work directory D vic 752n others ECR 061 102 original baudrate 9600 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 change to Line Mode To Remote PC2 To Remote PC2 I 7521 1 7522 1 7522A 1 7523 1 7524 1
22. 1 2 2 NA 10r2 10r2 1 2 NA 1 2 tor2 Reo N A N A N A N A NA 1or2 N A N A N A N A NA 1or2 nS m N A N A N A N A NA 10r2 3 COM3 of the l 7522A module is RS 422 485 4 The stop bit for COM1 amp COM2 is always 1 when data bit is 8 5 COM 1 3 4 5 6 7 8 of the l 7521 l 7522 7523 7524 7527 module can be linked to the HP34401A 6 The stop bit can be set to 2 as the data bit is 7 for COM 1 otherwise the stop bit can only be set to 1 as the data bit is 8 for COM 1 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 77 5 3 6 6 Description This function sets the ID string for COM 1 3 4 5 6 7 8 Max number of characters 50 Syntax AAG ID chk CrL f Delimiter character AA 2 character module address in the format The valid range is from 00 to FF ID ID string Max number of character 50 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command 2 AA chk CrLf invalid command gt AA chk CrLf no response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA addres
23. 2 character checksum If the checksum is disabled gt no chk Character e Response valid command AASV chk CrLf invalid command AA chk CrLf no response syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format S21 first reading S 0 not the first reading V DO DI1 01 012 D2 DI3 03 014 D4 DI5 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the l 7521 module is 01 response no response sampling command 014 CrLf DIIZDD DBz1 response 0117 CrLf command 014 CrLf DII DD 1 DI3 0 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 92 What is synchronized sampling The host computer can only send one command string at a time If there are two modules the host computer must send and receive the commands from module 1 then the commands from module 2 in response so there is a time delay between the two commands The synchronized sampling command is designed for all input modules When the synchronized sampling command CrLf is received all input modules on theRS 485 network will perform the input function at the same time and store the values into the intend memory of the module The host computer can then send a read synchronized data c
24. 2 character module address in HEX format The valid range is from 00 to FF V 0 Prefixed address byte disabled V 1 Prefixed address byte enabled chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt IAA V chk CrLf invalid command gt chk CrLf No response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format V 0 Prefixed address bvte disabled V 1 Prefixed address byte enabled chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the I 7521 module is 01 command 01E CrLf Reads the status of the prefixed address byte for COM1 response 1010 CrLf The prefixed address byte is disabled command 01E1 CrLf Sets the status of the prefixed address byte to enabled response 101 CrLf Note If the prefixed address byte is enabled the response for delimiter AA bypass data and AAU will be prefixed with AA Example 1 delimiter AA bypass data Command 01TEST Cr Bypass TEST Cr Response 01ABCD Cr Response ABCD Cr I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 120 Example 2 SAAU Command 01U Cr Response 01ABCD Cr Data ABCD Cr I 7521 1 7522 1 7522A 1 7523 1 75
25. 46 HP HPSendCommand ComNo 09 CLS 6 HP WaitClock 18 void CloseHP int ComNo HPSendCommand ComNo 02 CLS 1 HP HPSendCommand ComNo 02SYST LOC 41 HP HPSendCommand ComNo 03 CLS 2 HP HPSendCommand ComNo 03SYST LOC 42 HP HPSendCommand ComNo 05 CLS 43 HP HPSendCommand ComNo 05SYST LOC 43 HP HPSendCommand ComNo 06 CLS 4 HP HPSendCommand ComNo 06SYST LOC 44 HP HPSendCommand ComNo 08 CLS 45 HP HPSendCommand ComNo 08SYST LOC 45 HP HPSendCommand ComNo 09 CLS 46 HP HPSendCommand ComNo 09SYST LOC 46 HP CloseCOM ComNo l 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 131 6 2 Typical Applications SH n 1 Addressable RS 232 Controller Command Type Each 1 7521 module has a unique address The Host PC first sends a command to all 1 7521 module e The destination l 7521 module will pass the command to its local RS 232 device e The destination l 7521 module will then send the response from the RS 232 device back to the Host PC e Refer to the 7521 c file for the source code of the firmware n 1 7521 Il 7521 s 41 7521 01 HP34401A HP34401A HP34401A Application 2 Addressable RS 232 Controller Receive Data only Type Barcode Reader The barcode reader can scan a barcode at anytime and
26. 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 79 5 3 8 SAAC delimiter Description This reads sets the delimiter for COM 1 3 4 5 6 7 8 AAC chk CrLf Reads the delimiter for COM 1 3 4 5 6 7 8stored in the EEPROM AAC delimiter chk CrLf Sets the delimiter for COM1 3 4 5 6 7 8 Syntax AAC delimiter chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF delimiter Default delimiter is chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command 9 AA delimiter chk CrL f invalid command gt AA chk CrLf no response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the l 7523 module is 01 response 101 CrLf command 02C CrLf Reads the delimiter for the RS 232 COM3 gt response 02 CrLf command 03C CrLf Changes the delimiter for the RS 232 COM4 gt response 103 CrLf Notes 1 Address mapping refers to Sec 5 2 3 The delimiter of COM1 3 4 5 6 7 8 can be different 4 The default delimiter is gt 5 The delimiter cannot be CR amp LF I 75
27. AA chk CrLf response gt syntax error communication error or address error CTS is inactive CTS is active HIGH Delimiter character indicating a valid command Delimiter character indicating an invalid command 2 character module address in HEX format 2 character checksum If the checksum is disabled gt no chk End Character Example Assume the AA address value of the l 7523 module is 01 command response command response tert 1010 CrLf ensi 10214 CrLf Address mapping for CTS status Comi Com3 Com4 Com5 RS 232 RS 232 RS 232 RS 232 l 7521 AA N A N A N A l 7522 AA AA 1 N A N A l 7522A AA N A N A N A l 7523 AA AA 1 N A N A l 7524 AA AA 1 AA 2 AA 3 l 7527 AA N A N A N A Note 1 The CTS status is valid for COM1 COM3 COM4 and COM5 2 COMG of the l 7522A module is RS 422 485 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 86 5 3 14 AAXV Description This function sets the RTS state for COM 1 3 4 5 Syntax AAXV chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF V 0 Sets the RTS state to inactive V 1 Sets the RTS state to active HIGH chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command 2 AA chk CrLf invalid command gt AA chk CrLf response gt syntax error communication
28. AA chk CrLf no response syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format V D0 DOO D1 DO1 D2 DO3 D3 DOA D4 DO5 chk 2 character checksum If the checksum is disabled no chk CrLf End Character e Example Assume the AA address value of the l 7521 module is 01 command 014P CrLf response 1017 CrLf response 010 CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 106 5 3 29 5 amp AASS Description This function sets the current state of the digital output as a power on safe value 1 When the module is first powered on all output channels will revert to their power on values If the module is malfunction the hardware module watchdog will reset the module and all output channels will also revert to their power on values These power on values may be different from the previous values that existed before the module was reset Therefore new output commands must be set to return all output values to their desired states When the host watchdog is enabled and the host is malfunction all output values will change to their safe values and module status will change to 0x04 If the module status is 0x04 all output command will be ignored until the module status is cleared using the AA1 command see sec3 23 Therefore an AA1 comma
29. GND GND pin of COM4 5 RS 232 25 5 CTS pinof COMS RS 232 26 RTSS IRIS pin of COMS RS 232 27 TXDS TXD pin of COM5 RS 232 28 RXDS5 pin of COM5 RS 232 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 20 21 1 7521 1 7522 7522 7523 1 752 7527 User s Manual Ver2 3 Aug 2008 xxxx Pin assignment of bottom 14 pin screw terminal block Pin Name Description 1 DO 100 mA 30V max 2 DI 3 5 30V 3 01 DATA pin of COMI RS 485 4 Dl pin of COMI RS 485 5 CTSI Clear To Send of COMI RS 232 6 RTSI Request To Send of COMI RS 232 7 GND Signal ground of RS 232 8 TXDI Transmits Data of COMI RS 232 9 RXDI Receives Data of COMI RS 232 10 INIT Initial pin 3 5V 30V 11 D2 DATA pin of COM2 RS 485 12 D2 DATA pin of COM2 RS 485 13 VS V of power supply 10 to 30VDC unregulated 14 GND GND of power supply Note The 1 can be used as a RS 232 port or a RS 485 port It is not recommended to use both RS 232 amp RS 485 at the same time Pin assignment of top 14 pin screw terminal block RXD3 RXD pin of COM3 RS 232 TXD3 TXD pin of COM3 RS 232 RXD4 RXD pin of COM4 RS 232 TXD4 TXD pin of COM4 RS 232 GND GND pin of COM3 4 5 6 RS 232 RXD5 RXD pin of COM5 RS 232 TXD5 TXD
30. Rs 232 Device SES 25 037 Device RS 232 Device RS 232 Device RS 232 Device I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 133 4 Addressable RS 232 Controller Three channels Each l 7523 module has a unique address Each 1 7523 module can support three RS 232 devices AA 1 and 2 e The Host PC first sends a command to all l 7523 module e The destination l 7523 module will pass the command to its local RS 232 device 1 RS 232 device 2 or RS 232 device 3 e The l 7523 module then sends the response from the RS 232 device back to the Host PC port of the l 7523 module can support either 1 or 2 stop bits so it can support a two stop bit device such as the HP34401A The RS 232 device can be used for command Application 1 or null command Application 2 type controller applications e Refer to the 7523 c file for the source code of the firmware RS 232 Device SAD l 7520 222 232 EN Host PC l RS 232 Device HP34401A RS 485 RS 232 Device RS 232 Device HP34401A ERILE RS 232 Device RS 232 Device 1 HP34401A I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 134 Spp 5 Addressable RS 232 Controller Four channels Each l 7524 module has a unique address Each l 7524 module can support four RS 232 devices AA AA 1 AA 2 and AA 3 The Host PC first sends a command to all l 7524 modules The destination
31. Sec 5 2 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 72 2 Valid data bit values l 7521 l 7522 1 7522 1 7523 1 7524 1 7527 COMI 7 8 7 8 7 8 7 8 7 8 7 8 COM2 7 8 7 8 7 8 7 8 7 8 7 8 N A 7 8 7 8 7 8 7 8 7 8 N A N A N A 7 8 7 8 7 8 COM5 N A N A N A N A 7 8 7 8 COM6 N A N A N A N A N A 7 8 COM7 N A N A N A N A N A 7 8 COMS N A N A N A N A N A 7 8 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 73 5 3 4 AAPN parity bit Description This function reads sets the parity bit for COM 1 2 3 4 5 6 7 8 AAPN chk CrLf gt Reads the parity bit for COM 1 2 3 4 5 6 7 8 stored in the EEPROM AAPN parity bit Chk CrL f gt Sets the parity bit for COM 1 2 3 4 5 6 7 8 Syntax AAPN parity bit Chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF N 0 Reads Sets the parity bit for the COM 2 N 1 Reads Sets the parity bit for the COM 1 3 4 5 6 7 8 parity bit O NONE 1 EVEN 2 ODD chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command gt AA parity bit chk CrLf invalid command gt AA chk CrLf response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid
32. chk End Character e Example Assume the AA address value of the l 7521 module is 01 command response command response command response I 7521 1 7522 1 7522 par 1011 CrLf 1010 CrLf 01 5 CrLf This module has been reset by the module 101 1 CrLf Hardware watchdog Therefore all output will be returned to its initial start values A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 94 e Note When the module is first powered on the module should be read once and will find that S 1 Then the user should read the module continually and find that S 0 If S is changed to 1 this module has been reset by module hardware watchdog circuit at least once And all output is going to its start value now Therefore the user needs to send an output command again to control all output values to desired states I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 95 5 3 20 Description This function reads the firmware version number Syntax AAF chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response number chk CrLf valid command gt AA number chk CrL f invalid command gt AA chk CrLf no response syntax error communication error or address error Delimiter charact
33. command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled no chk CrLf End Character e Example Assume the AA address value of the l 7523 module is 01 response 01 CrLf command 01 1 O OrLI Changes parity bit to NONE for RS 232 COMI response 01 CrLf command 02P11 Changes parity bit to EVEN for RS 232 COM3 response 102 CrLf command 03P1 2 CrLf Changes parity bit to ODD for RS 232 COM4 response 03 CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 74 e Notes 1 Address mapping refers to Sec 5 2 2 Valid paritv bit values l 7521 l 7522 l 7522A l 7523 l 7524 l 7527 COM1 RS 232 N E O N E O N E O N E O N E O N E O COM2 RS 485 N E O N E O N E O N E O N E O N E O COM3 RS 232 N A N E O N E O N E O N E O N E O COMA RS 232 N A N A N A N E O N E O N E O RS 232 N A N A N A N A N E O N E O COM6 RS 232 N A N A N A N A N A N E O COM7 RS 232 N A N A N A N A N A N E O COM8 RS 232 N A N A N A N A N A N E O N None E Even O Old of the l 7522A module is RS 422 485 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 75 5 3 5 AAON stop bit Description This function reads sets the stop bit for COM 3 4 5 6 7 8 AAON chk CrLf gt Reads the stop bit of COM 3 4 5 6 7 8 stored in the EEPROM
34. error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled no chk CrLf End Character Example Assume the AA address value of the l 7523 module is 01 response DNOLD response 01 CrLf sponse 102CM response 102 CrLf Address mapping for RTS status Comi Com3 Com4 Com5 RS 232 RS 232 RS 232 RS 232 l 7521 AA N A N A N A l 7522 AA AA 1 N A N A l 7522A AA N A N A N A l 7523 AA AA 1 N A N A l 7524 AA 1 2 AA 3 l 7527 AA N A N A N A Note 1 The RTS status is valid for COM1 COM3 COM4 and COM5 2 COM3 of the l 7522A module is RS 422 485 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 87 5 3 15 Description This function reads the onboard DI 1 2 3 4 5 e Syntax SAAVNIchkI CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF 15 Reads DI1 2 gt Reads 012 3 Reads DI3 4 gt Reads 014 5 gt Reads 015 l 7522A refer to Sec 1 4 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command gt AAS chk CrLf invalid command gt AA chk CrLf response gt syntax error communication error or address error Delimiter character
35. format The valid range is from 00 to FF 0 1 2 3 b ISetto Off c DOO pin25 DO1 pin26 DO2 pin27 DOS pin28 Pin assignment refers to Sec 1 4 h 4 bit DO value in HEX format DOO is at LSB The valid values are 0 9 a f and A F chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command AA chk CrLf invalid command gt AA chk CrLf no response syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled no chk CrLf End Character e Example Assume the AA address value of the l 7522A module is 01 response 101 CrLf command 01L21 CrLf Sets DO2 ON other DOn values are response 01 CrLf unchanged command 01 L30 CrLf Sets DO3 OFF other DOn values are response 01 CrLf unchanged command 01LE CrLf Sets DOO OFF DO1 DO2 DO3 ON response 101 CrLf l 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 110 Note If the host fails the AAL command will be ignored and the response string will be In normal situations the response string will be AA I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 111 5 3 32 e Descript
36. is 01 l 7522A Assume CrLfmode 0 for COM2 COM2 determines the end of a command string when it encounters the OxOD CR character When manually entering individual command characters using a PC terminal application the OxOD CR character must be sent as the final I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 38 character of the command string If this character is not sent COM will continue to receive command characters and consider them as part of the command string resulting in an error For more information about RS 232 COM ports refer to the Notes in Sec 5 3 33 b CrLfmode 4 The factory default value for CrLfmode is 4 for all COM ports In this mode the l 752N module determines the end of a command string once no characters are received for a specified timeout interval For example Command Assume the timeout interval is 10 ms Command string 01T If you type the first character then type the second character O after 5 ms type the third character 1 after 1 second and type the fourth character T after 3 ms Two command string will be received by COM2 which will be 0 and 1T not 01T So the command received is not the same as the original command The timeout interval is so small that it is impossible to manually enter individual command characters In this situation the command string must be sent at one time using software The interval between transmis
37. l 752N modules will automatically revert to its safe state to avoid I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 64 unnecessary damage The flow chart for the host computer is as follows Send CrLf to reset the host watchdog timer before the time out expires I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 65 4 5 Module WatchDog Application Notes The AA5 command is designed to detect any module hardware watchdog failure If the module was malfunctioned the module hardware watchdog circuit will reset the module After reset the output state of the module will revert to its initial start values The start value may be different from the output values prior to the module reset Therefore the user must send the output commands to the module again in order to maintain the same output state both before and after the module watchdog reset The flow chart for module hardware watchdog failure detection is as follows Send AA5 and determine 1 Send AA5 and determine S their desire states Function n I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 66 Chapter 5 Command Sets 5 1 Command Set Table AAA addr M the Module Address Sec 5 3 1 SAAGIIDI end of command response for COM 1 2 3 4 5 6 7 8 aa esi SAM No Response HotisOK o o Sesa
38. second I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 5 3 28 AA4P amp AA4S Description This function reads power on safe value 1 2 wa 3 When the module is first powered on all output channels will revert to their initial power on values If the module is malfunction the hardware module watchdog will reset the module and all output channels will also revert to their power on values These power on values may be different from the previous values that existed before the module was reset Therefore new output commands must be set to return all output values to their desired states When the host watchdog is enabled and the host is malfunction all output values will change to their safe values and the module status will be set to 0x04 If the module status is 0x04 all output commands will be ignored until the module status is cleared using the AA1 command see sec 5 3 23 Therefore an AA1 command must be sent before any new output commands are sent to return all output values to their desired states e Syntax AA4P chk CrLf gt reads the power on value AA4S chk CrLf gt reads the safe value Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command gt AAV chk CrLf invalid command gt
39. the COM port and status settings to 9600 N 8 1 Step 3 Execute 7188xw exe on the Remote PC Change the COM port and status settings to 9600 N 8 1 Step 4 The Host PC sends abcde string to the Remote PC Type 01abcde Press ENTER to send the command string to the l 752N module Check that the response string on the Remote PC is abcde The following screen should be shown on the Host PC I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 53 cx 7188X W 1 32 COM1 9600 8 8 1 FC 0 C TS 0 DIR D YvicY752nY752N Y3 20061 D vic 752n 752N_V3_20061023 7188XC gt 7188xw cl 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COM1 115200 N 8 1 AutoRun Autodownload files None Current work directory D vic 752n 752N_V3_20061023 7188XC original baudrate 9600 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 change to Line Mode 01M 1017521 Olabcde The following screen should be shown on the Remote PC cx 71885 9 1 32 ICOM1 9600 N 8 11 FC 0 CTS 0 DIR D wviev752mM752N V3 20061 D WwicV 52nV52N V3 200610237188XC57188xw c7 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COM7 115200 N 8 1 AutoRun Autodownload files None Current work directory D vic 752n 752N_V3_20061023 7188XC origin
40. the 1 7521 module will store these barcodes in an internal buffer 1K bytes e The Host PC first sends AAU command to all l 7521 modules The destination l 7521 module will check its internal buffer If there are any barcodes in the buffer the l 7521 module will then send a single barcode back to the Host PC The Host PC can send more AAU commands to read each barcode stored in the internal buffer of the l 7521 module e Refer to the 7521 c file for the source code of the firmware Jp RS 232 id RS 485 x c SI l 7521 l 7521 _________ 1 l 7521 01 i y 02 HAA RS 232 RS 232 v qe WE n 232 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 132 Application 3 Addressable RS 232 Controller Dual channel e Each l 7522 module has a unique address e Each 1 7522 module can support two RS 232 devices AA and AA 1 e The Host PC first sends a command to all l 7522 modules e The destination l 7522 module will pass the command to its local RS 232 device 1 or RS 232 device 2 e The l 7522 module then sends the response from the RS 232 device back to the Host PC The RS 232 device can be used for command Application 1 or null command Application 2 type controller applications e Refer to the 7522 c file for the source code of the firmware 1 752 27 RS 232 220 RS 485 EE Host PC PUTENT A l 7522 pr 17522 801 03 SEP 25 232 Device SP
41. the response to the RS 485 network The Host PC can then identify which RS 232 device the response comes from Master type Addressable RS 232 Converter I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 4 ICPDAS 1 752N products are unique In that they are Master type converters while most other converters are Slave type which are helpless without a Host PC In real industrial applications many users are not satisfied with Slave type converters as they cannot be adapted to individual requirement The powerful l 752N series analyzes the DI DO of local RS 232 devices without the need for a Host PC Refer to Applications 7 9 in Sec 6 2 for more information Onboard 1Kb Queue buffer l 752N series modules are equipped while a 1Kb queue buffer for its local RS 232 device All input data can be stored in the queue buffer until the Host PC has time to read it These features allow the Host PC to be linked to thousands of RS 232 devices without any loss of data Refer to Sec 5 3 30 Onboard DI signal trigger l 752N series modules are equipped with 1 2 5 DI channels for sensor interfacing These DI channels are linked to a photo sensor switch to act as a signal They also can be used as general purpose DI l 752N series modules can read and analyze these DI signals without the need for a Host PC Onboard DO channels for emergency control l 752N series modules equipped with 1 3 5 DO channels for emergency con
42. to 4 that is no command END character the 1 752 modules must wait for a specific time period timeout0 without receiving any further data in order to determine the end of the command RS 232 timeout1 timeout2 A When data is sent from the command port RS 485 is required to be passed to the RS 232 port the l 752N modules will send the data to the RS 232 port and wait for a response from the RS 232 port a If no response has been received before the timeout1 period has elapsed then the module will stop waiting If the RS 232 port is not in wait mode and the l 752N modules receive data from that port the data will be sent to the buffer of that port The data can then be read using the AAU command b If any data is received before the timeout1 period has elapsed 1 If CrLf mode 0 3 any response data received will be send to the command port RS 485 after the l 752N modules receive the END character However if the timeout1 period elapsed and the l 752N modules still haven t received the END character and the timeout2 period has elapsed without receiving any further data then the 1 752 modules will send the received data to the COMMAND port 2 If CrLf modez4 the l 752N modules will wait for timeout2 to elapse without receiving any more data then will send the received data to the COMMAND port B timeout1 begins when the I 752N modules start to send the bypass data to RS 232 port so the command trans
43. 1 HP HPSendCommand ComNo 02 CLS 1 HP HPSendCommand ComNo 03SYST REM 42 HP HPSendCommand ComNo 03 CLS 2 HP WaitClock 18 void CloseHP int ComNo HPSendCommand ComNo 02 CLS 1 HP HPSendCommand ComNo 02SYST LOC 41 HP HPSendCommand ComNo 03 CLS 2 HP HPSendCommand ComNo 03SYST LOC 42 HP CloseCOM ComNo I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 129 6 1 6 Connecting multiple l 7523 modules and multiple HP34401A The diagram below shows how to connect a single PC to multiple remote HP34401As on an RS 485 network The l 7520 module is used to convert the RS 232 signal from to PC to an RS 485 signal The l 7523 module is used as an Addressable RS 232 converter for the HP34401A since there is no address setting on the HP34401A Two HP34401As can be connected to a single l 7523 module Each 1 7523 module has a unique address on the RS 485 network Each HP34401A shares the same address range as its corresponding l 7523 module which allows each HP34401A to have a unique address in this configuration Jp 729 1 7520 85 232 F RS 23 HP34401A RS 232 address 02h Host PC J ps mum HP34401A RS 232 address 03h 1 7523 address 01h RS 485 gum HP34401A RS 232 address 05h ien gum HP34401A RS 232 address 06h l 7523 address 04h gum HP34401A RS 232 address 08h pena mum HP34401A RS 232 address 09h a
44. 21 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 126 The address mapping for this configuration is as follows l 7522 l 7522 Address 1 01h 3 03h 5 05h HP NO HP34401A Address 2 02h 4 04h 6 06 e A flow chart illustrating the functionality of the hp22 m c file is as follows Set the multimeters to remote contr ol mode Set the key q or multimeter end pressed back to local mode Request Send the Receive a multimeter command to response from command multimeter the multimeter Execution examples 11 962 2806 30 00 14 31 QW EXE 8 752 07 03 00 168 925 bytes 0 dirls F HP hpdemo 5 gt hp22_m 1 Connect 7522 net in COM1 gt q F HP hpdemo 5 gt hp22_m 1 Connect 7522 net in COM1 command 02 IDN TxOK response HEWLETT PRCKRRD 34401 0 10 5 2 command 04 1IDN TxOK response HEWLETT PRCKRRD 34401 0 10 5 2 1 command 6READ 9 18 SER EXE 3 552 923 648 bytes free I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 127 6 1 5 Connecting a single I 7523 modules and two HP34401A The following diagram below shows how to connect a single PC connected to two remote HP34401As on an RS 485 network The l 7520 module is used to convert the RS 232 signal from to PC to an RS 485 signal The l 752
45. 21 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 12 SEIT 1 7521 1 7522 7522 7523 1 752 7527 User s Manual Ver2 3 Aug 2008 xxxx 13 Pin assignment of 13 pin screw terminal block l 7522 l 7522D S Name Description CTS3 Clear To Send of COM3 RS 232 RTS3 Request To Send of RS 232 RXD3 Receives Data of RS 232 TXD3 Transmits Data of RS 232 GND _ Signal ground of COM3 amp COM4 DO1 Digital output 150mA 30V DI3 Digital input 3 5V 30V DI2 Digital input 3 5V 30V INIT Initial pin 3 5V 30V 2 DATA pin of COM2 RS 485 D2 DATA pin of COM2 RS 485 VS V of power supply 10 to 30VDC unregulated 13 GND of power supply O NO Pin assignment of COM1 connector DB 9 Male 5 Name Description Data DATA of RS 485 port TXD Transmits Data RS 232 RXD Receives Data RS 232 N C No Connection GND Signal ground of RS 232 N C No Connection CTS Clear To Send RS 232 HIS Request To Send RS 232 Data DATA of RS 485 port Note The COM1 can be used as a RS 232 port or a RS 485 port It is not recommended to use both RS 232 amp RS 485 at the same time I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 14 l 7521 1 7522 1 7522A 1
46. 21 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 18 Wl T a bM neg see 1 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 19 Pin assignment of bottom 14 pin screw terminal block 1 7524 I 7524D Pin Name Description 1 DO 100 mA 30V max 2 IDI 3 5V 30V 3 DIH pin of COMI RS 485 4 IDI DATA pin of COMI RS 485 5 CTSI Clear To Send of COMI RS 232 6 RTSI Request To Send of COMI RS 232 7 GND Signal ground of RS 232 8 TXD1 Transmits Data of COMI RS 232 9 RXDI Receives Data of COMI RS 232 10 INIT Initial pin 3 5V 30V 11 D2 DATA pin of COM2 RS 485 12 D2 DATA pin of COM2 RS 485 13 5 V of power supply 10 to 30VDC unregulated 14 GND GND of power supply Note The COMI can be used as a RS 232 port or a RS 485 port It is not recommended to use both RS 232 amp RS 485 at the same time Pin assignment of top 14 pin screw terminal block 15 CTS3 CTS pinof COM3 RS 232 16 IRTS3 RTS pin of COM3 RS 232 17 ITXD3 TXD pin of COM3 RS 232 18 RXD3_ RXD pin of COM3 RS 232 19 GND GND pin of COM3 COM4 RS 232 20 CTS4 CTS pin of RS 232 21 RTS4 RTS pinof RS 232 22 TXD4 TXD pin of RS 232 23 RXD4 RXD pin of COM4 RS 232 24
47. 21 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 80 5 3 9 AAD Description This function reads the delimiter for COM 1 3 4 5 6 7 8 e Syntax AAD chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response AA delimiter chk CrLf valid command gt AA delimiter chk CrLf invalid command gt AA chk CrLf no response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command 2 character module address in HEX format the default delimiter is gt 2 character checksum If the checksum is disabled gt no chk End Character e Example Assume the AA address value of the l 7523 module is 01 command response command response command response e Note 101 CrLf 02D CrLf Reads the delimiter for the RS 232 COM3 gt 102 CrLf 03D CrLf Reads the delimiter for the RS 232 COM4 gt 103 CrLf Address mapping refers to Sec 5 2 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 81 5 3 10 delimiter AA bypass Description This function bypasses the data string to COM 1 3 4 5 6 7 8 Syntax delimiter AA pass chk CrLf delimiter Refer to Section 5 3 8 AA 2 charact
48. 22 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 48 Step 12 Retrieve the Module Name of the l 752N module Type the command gt 01M Press ENTER to send the command to the I 752N module Check that the module returns 017521 for example l 7521 Step 13 Retrieve the Version number of the l 752N module Type the command gt 01F Press ENTER to send the command to the l 752N module Check that the module returns 01 A1 0 A2 0 A3 0 A3 02 Step 14 Change the Module Address of the l 752N module Type the command gt 01A02 Press ENTER to send the command to the l 752N module Check that the display on the 5 digit 7 seg LED is as follows For firmware version 3 02 and above see Note COM2 Baud Rate 9600 Baud Rate 9600 COM2 CrLfmode 4 Type the command gt 02M Press ENTER to send the command to the l 752N module Check that the module returns gt 027521 for example l 7521 Type the command gt 01M Press ENTER to send the command to the l 752N module Check that the module returns gt No response for example l 7521 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 49 cx 7188XW 1 32 COM1 9600 N 8 1 FC 0 C TS 0 DIR D AvicY752n1752N Y3 20061 Autodownload files None Current work directory D vic 752n 752N_V3_20061023 7188XC original baudrate 115200 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Cu
49. 24 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 121 Chapter 6 Applications 6 1 Cnnecting to the HP34401A 6 1 1 Connect the I 752N module to the HP34401A The stop bit of the HP34401A must be set as two stop bits The COM1 COMS port of the l 7522 module and COM1 COMS COMA port of the l 7523 module can support two stop bits so they can be linked to the HP34401A The 1 7522 module can be linked to a single HP34401A The l 7523 module can be linked to two HP34401As Please refer to Section 6 1 2 6 1 6 for more information 6 1 2 Connecting a PC to the HP34401A A PC can be linked to the HP34401A using either COM1 or COM as below 3559 Host PC HP34401A RS 232 PC COM Multimeter TxD 3 TxD 3 RxD 2 E RxD 2 DTR 4 DTR 4 DSR 6 mm cu DSR 6 GND 5 GND 5 The default settings of the HP34401A are as follows e Baud Rate 9600 e Data bit 7 Paritv bit EVEN Stop bit 2 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 122 TxD send commands to the RS 232 HOST RxD receive commands from the RS 232 HOST DTR Set the HP344014 as active HIGH to enable the RS 232 HOST to send commands e DSR Set the RS 232 HOST as active HIGH to enable the HP34401A to send the results back to the RS 232 HOST The demo program hp34401a c is designed to allow a Host PC to be connected to an HP34401A Refer to the companion CD for the source code of the hp34401a c f
50. 3 module is used as an Addressable RS 232 converter for the HP34401A since there is no address setting on theHP34401A Two HP34401A can be connected to a single l 7523 module Host PC 7523 HP34401A 2 RS 232 port HP34401A 1 RS 232 port I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 128 The demo program hp23 1 c is designed to allow a Host to be linked to a remote HP34401A Refer to the companion CD for the source code of the hp23 1 c file The key features of hp23 1 c are as follows e The RTS3 pin of COM3 port on each module must first be set as active HIGH to enable the HP34401A e The configuration of the COM ports on the l 7523 module is as follows COM DI COMA 232 san arn sao as 9600 default Data E 7 Stpp bit 1 default 2 Baud Rate The address mapping for this configuration is given as follows l 7523 Address Corresponding COMB Corresponding address address Olh 02h oh e The InitHP and CloseHP function of hp23 1 c are as follows void InitHP int ComNo com ComNo ComNo com ComNo BaudRate 96001 com ComNo DataFormat Data8bit NonParity Stoplbit com ComNo CheckSum CHKSUMdisable OpenCOM ComNo HPSendCommand ComNo 02SYST REM
51. 522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 141 Appendix B 7188XW EXE The 7188xw exe file is the main utility for l 752N D modules 7188xw exe can be used as follows e Download the user program files from the Host PC to the memory unit of the l 752N D module e Download the MiniOS7 image file from the Host PC to the Flash Memory of the l 752N D module and upgrade MiniOS7 e Enter data into the l 752N D module using the keyboard of the Host PC e Show the data from the l 752N D modules Location of the 7188xw exe file CD NapdosMiniOS7 utility or http ftp icpdas com tw pub cd 8000cd napdos minios7 utilitv For more information about 7188xw refer to the CD NapdosMiniOS 7 document ib Manual For 7188XABOndex h tm or http ftp icpdas com tw pub cd 8000cd napdos minios7 document lib manual for 7188e eng index htm Downloading files to the l 752N D modules Step 1 Connect the 1 752 module to the Host PC Refer to Sec 1 6 1 Step 2 Connect the INT pin to the GND pin to disable autoexec bat before turnning on the power Step 3 Build a folder that includes the firmware There are two ways to use 7188xw exe a Put the firmware Refer to Sec 2 2 and the 7188xw exe file in the same folder on the Host PC Execute 7188xw exe and jump to Step 8 b Go to Step 4 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 142 Refer to the companion CD Napdos 752N Firmw
52. 52n Firmware and the firmware can be obtained Location Companion CD Napdos 752NYFirmware V3 Or http fto icpdas com tw pub cd 8000cd napdos 752n firmware v3 NOTE There are two files autoexec bat and 752n c exe 752n b exe stored in the flash ROM of each l 752N module The I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 36 752n c exe 752n b exe file will be executed once the power is supplied to the module and the INIT pin is floating The readme txt file recording upgrade or modification information related to the firmware in the firmware v3 folder e Click BACK e Click MiniOS7 e Double click utility and 7188XW exe can be obtained The icon for 7188xw exe is as below Location Companion CD NapdosMiniOS 7 utility or http ftp icodas com tw pub cd 8000cd napdos minios7 utility 2 3 The RS 485 Port and Self Turner ASIC The 2 wire RS 485 port is half duplex Send receive directional control in a 2 wire RS 485 network is very important Therefore each l 752N module is equipped with a Self Tuner ASIC controller for all RS 485 ports The Self Tuner ASIC controller will automatically detect and control the send receive direction of the RS 485 network First and foremost the application program does not have to make allowance for the send receive direction control of the RS 485 network 2 4 7 Segment LED Display The red LED of the l 752N series can be turned ON or OFF using softwar
53. 60206 original baudrate 115200 now baudrate 115200 17188XC dir O autoexec bat 11 25 2005 12 37 15 10 0000A C002 0000 C002 000A 1 752n_c exe 02 06 2006 15 19 11 39024 09870 C004 000A C98B 000A Total File numberis2 Free space 157478 bytes Step 10 Press F4 to automatically download the files be sure that the file 7188XW F4 and the firmware are put together The 7188xw will then download 752n c exe and autoexec bat from the Host PC to the module After the download operation has been completed the following screen will be shown 1 752n c exe 02 06 2006 15 19 11 39024 09870 C004 000A C98B 000A Total File number is 2 Free space 157478 bytes File number is 2 do Yeu really want to delete y n i7188XC gt LOAD File will save to C000 0000 StartAddr gt B000 FFFF Press ALT_E to download file Load file autoexec bat crc 9723 0000 Send file info total 1 blocks Block 1 Transfer time is 0 125000 seconds i7188XC gt LOAD File will save to C002 000A StartAddr gt C000 0029 Press ALT_E to download file Load file 752n_c exe crc 7E10 0000 Send file info total 153 blocks Block 153 Transfer time is 14 391000 seconds I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 145 Step 11 Type dir and press Enter to see the downloaded files 752n c exe is for l 7521 22 23 752n b exe is for l 7524 22A 27 TISBSEW 1 32 ICOMI 9600
54. 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 33 Chapter 2 Operating Principles 2 1 INIT pin operating principles The INIT pin has two functions 1 If provides help for downloading program Refer to Sec 3 4 for details 2 If retrieves configuration data stored in EEPROM If the configuration data for the l 752N series module is forgotten resulting in a communication failure the procedure for retrieving the configuration data stored in the EEPROM is as follows Applicable to firmware version number 3 0 and above Step 1 Refer to Sec 1 6 1 and steps 2 to 9 in Sec 3 1 to set the configuration parameters to 115200 N 8 1 After pressing Enter either 7188 gt or i7188xB will be displayed on the screen Step 2 Type the command then press Enter The following screen will be displayed cx 7188 9 1 35 COM8 115200 N 8 11 FC 0 CTS 1 DIR DA Microsoft Windows Version 5 1 26B8B1 G Copyright 1985 2061 Microsoft Corp D 7188xv c8 Begin Key Thread 1 ICP_DAS MiniOS for l 7188XC Ver 2 00 build BB4 Dec 08 2006 14 04 55 SRAM 128K FLASH MEMORY 256K CCPU RDC 8828 D 1 CPU internal WDT is ENABLED lt CWDT timeout B 8 sec 4i7188xC dir gt 752n_c exe 68 14 2687 13 43 23 480854I 89C 76 ICBB2 MBBBM C9C9 6006 1 gt autoexec bat 11 25 2685 12 37 15 18LBBBBA 1C9 CB 8886 C9 CC BBBB Total File number is 2 Free space 156448 bytes
55. 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 15 Pin assignment of bottom 14 pin screw terminal block 1 7522 T7522AD Pin Name Description 1 100 mA 30V max DO1 2 IDI 3 5 30V DI1 3 DIH pin of COMI RS 485 4 IDI DATA pin of COMI 5 485 5 CTSI Clear To Send of COMI RS 232 6 RTSI Request To Send of COMI RS 232 7 GND Signal ground of RS 232 8 TXD1 Transmits Data of COMI RS 232 9 RXDI Receives Data of COMI RS 232 10 INIT Initial pin 3 5V 30V 11 D2 DATA pin of COM2 RS 485 12 D2 DATA pin of COM2 RS 485 13 VS__ V of power supply 10 to 30VDC unregulated 14 GND GND of power supply Note The COMI can be used as a RS 232 port or a RS 485 port It is not recommended to use both RS 232 and RS 485 at the same time Pin assignment of top 14 pin screw terminal block 15 TXD3 TXD pin of COM3 RS 422 RS 485 16 TXD3 TXD pin of COM3 RS 422 RS 485 17 IRXD34 IRXD pin of COM3 RS 422 18 IRXD3 RXD pin of COM3 RS 422 19 DIO Digital Input 3 5V 30V DI2 20 DII Digital Input 3 5 V 30V DI3 21 DI2 Digital Input 3 5V 30V DIA 22 DI3 Digital Input 3 5 30V DI5 23 GND GND of Digital Output 24 PWR _ Power of Digital Output 25 DOO Digital Output 100 mA 30V max DO2 26 DOI Digital Output 100 mA 30V max DO3 27 DO2 Digital Out
56. 7527 User s Manual Ver2 3 Aug 2008 xxxx 59 3 4 Downloading new Firmware to the l 752N Module 3 4 1 Using MiniOS7 Utility to download new firmware Step 1 Power off l 752N Step 2 Connect the 1 752 module to the Host PC Refer to Sec 1 6 1 for details Notice The download port is COM INIT and GND pins must be connected Step 3 Power on l 752N Install the MiniOS7 Utility Locate and execute the minios7 utility v311 exe file Installation details can be found in Appendix A MiniOS7 Utility Step 4 From the Windows START menu go to Programs ICPDAS MiniOS7 Utility Ver 3 11 and locate the MiniOS7 Utility Ver 3 11 Lo ug ICPDAS gt GH MiniOS7 Utility Ver 3 11 gt MiniOS Utility Ver 3 11 MiniOS Utility Ver 3 11 Manual Uninstall Step 5 From the menu select New connection Select the correct COM port and set the other parameters Click the OK button and the utility will automatically search for the module I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 60 New connection Last Connection Alt F2 Ctrl F Disconnect Serial Port Search F12 Baud Rate 115200 g Data Bit 8 Port E Parity _ v Stop Bit 1 p 72 MiniOS7 Utility Yerion 2 1 1 build 2 1 1 1 GJ File b Connection Command Configuration Tools 7 Look in MiniQS7 Utility Loc
57. 88xw If the configuration is not 9600 N 8 1 refer to Steps 6 to 9 below to make the correct settings Otherwise go directly to Step 10 Step 6 Set the Baud Rate of the 7188xw to 9600 Press ALT Type b9600 Press ENTER to confirm Step 7 Set the Parity bit of the 7188xw to N Press ALT C Typen Press ENTER to confirm Step 8 Set the Data bit of the 7188xw to 8 Press ALT I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 47 8 Press ENTER to confirm Step 9 Set the Stop bit of the 7188xw to 1 Press ALT C Type 1 Press ENTER to confirm Step 10 Change the 7188xw to Command Line Mode Press ALT4 L The following screen will be shown ex 7188 9 1 32 ICOM1 9600 N 8 11 FC 0 CTS 0 DIR D wie752mM752N 73 20061 Current work directory D vic 7188 DEMO_v2 9 BC DEMO32 original baudrate 1152001 now baudrate 1152001 7188xwCmd B9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 7188xwCmd n Change data format to N 8 1 7188xwCmd 8 Change data format to N 8 1 7188xwCmd 1 Change data format to N 8 1 change to Line Mode Step 11 Switch on the power to the l 752N module disconnect the INIT and GND pins and check that the display on the 5 digit 7 seg LED is as below For firmware version 3 02 and above see Note COMI Baud Rate 9600 COM 1 3 4 5 6 7 8 Address 01 Baud Rate 9600 COM2 CrLfmode 4 I 7521 1 75
58. EMENT eren 147 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx Chapter 1 Introduction Nowadays a great number of RS 232 devices for both automation and information transfer are being used in industrial applications and linking these devices is very important in the modern situation The devices are usually located at a distance from the Host PC meaning that linking via multiple serial cards is inefficient ICPDAS 1 752N series products have been developed to provide an effective link between multiple RS 232 devices via a single RS 485 network This network protocol offers stability reliability and simple cabling while delivering a low cost easy to maintain product 1 1 Overview Addressable RS 232 Converter Most RS 232 devices don t support individual device addressing To overcome this limitation ICPDAS 1 752N series modules assign a unique address to any RS 232 device installed on an RS 485 network When the Host PC sends a command to the RS 485 network a device address can be attached to the command The destination l 752N module will then remove the address field and pass the remaining commands to the destination RS 232 device Responses from the local RS 232 devices will be returned to the Host PC via the l 752N module Responses from RS 232 devices can be addressable ICPADS l 752N series modules can prefix a response from an RS 232 device with a unique address and then pass
59. I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Warranty products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assume no liability for damages resulting from the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2006 by ICP DAS rights are reserved Trademark The names used for identification only may be registered trademarks of their respective companies World Wide Web Home Page and FTP Site To access ICPDAS home page go to http www icpdas com To download document and software go to http www icpdas com download 752n htm or ftp ftp icpdas com tw pub cd 8000cd napdos 752n Technical Support Questions and requests can be sent via E mail to service icpdas com I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 1 1 2 3 4 5 TABLE OF COMTENTS INTRODUCTION iii coding seca a D ROT ad i i diee 4 Tis OVERVIEW ed 4 1 2 FEATURES oan
60. Lf invalid command gt AA chk CrLf no response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format S 0 The host watchdog timer is disabled S 1 The host watchdog timer is enabled TT 2 character timer value in HEX format The valid range is from 00 to FF Units 0 1 sec chk 2 character checksum If the checksum is disabled no chk CrLf End Character Example The host watchdog timer of module 01 is response 01000 CrLf command 022 CrLf The host watchdog timer of module 02 is response 0210A CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 103 l 752N Series Module Status Comparison 1 Module hardware watchdog reset All DO values return to their initial start values e Nochange in module status Accepts a host DO command to change the DO state 2 Host software watchdog failure All DO values return to their initial save values e Module statusz04 host watchdog failure Ignores all host DO commands until the module status is cleared to 0 using the AA1 command I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 104 5 3 27 AA3ETT For I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 Description This functio n enables disables the host watchdog timer and sets the value The host watch
61. M ports of the l 7527 module can support either 1 or 2 stop bits so it can support a two stop bit device such as the HP34401A The RS 232 device can be used for command Application 1 or null command Application 2 type controller applications e Refer to the 7527 c file for the source code of the firmware RS 232 Device BIEZ RS 232 Device HP34401A HP34401A HP34401A HP34401A RS 485 HP34401A HP34401A HP34401A HP34401A HP34401A HP34401A HP34401A I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 136 Application 7 Real time DI Monitoring and DO Alarm Master type Referto Applications 1 and 2 for more information Thel 7521 module will scan and analyze the onboard DI If the DI shows a match with the alarm states the onboard DO will trigger the alarm device to allow for alarm or safety control All DI and DO control operations are performed in the l 7521 module The Host PC only reads the DI and DO values as part of its system monitoring function e Refer to the 75210DM1 c file for the source code of the firmware l 7520 p RS 232 RS 485 2227 Lay l 7521 HAA 1 wa gt gt 222222 vhi JUL CL NUS l din DO BI DO RS 232 Device RS 232 Device Application 8 Real time A D Monitoring and D A Control Master tvpe Refer to Applications 1 and 2 for more information An X301 da
62. N baud rate chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF N 0 Read Set the Baud Rate for the COM 2 N 1 Read Set the Baud Rate for the COM 1 3 4 5 6 7 8 baud rate Valid values are 300 600 1200 2400 4800 9600 19200 38400 57600 115200 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt AA baud rate chk CrLf invalid command gt AA chk CrLf response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the l 7523 module is 01 response 01 CrLf bps response 101 CrLf bps response 02 CrLf bps command 03B1 CrLf Reads the RS 232 Baud Rate response 0357600 CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 70 Notes 1 Address mapping refers to Sec 5 2 2 Short code for the baud rates 300 1 600 2 1200 3 2400 4 4800 5 9600 6 19200 7 38400 8 57600 9 115200 A the short code for the Baud Rate will be shown on LED3 of the 7 segment Refer to Sec 3 1 for more information I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual V
63. RS 485 INIT Signal RXD1 TXD1 GND Step 2 Install the MiniOS7 Utility Refer to Appendix A MiniOS7 Utility for more details Step 3 From the Windows START menu go to the Programs ICPDAS MiniOS7 Utility Ver 3 11 folder and locate the MiniOS7 Utility Ver 3 11 Lo ICPDAS gt Gh MiniOS7 Utility Ver 3 11 gt MiniOS Utility Ver 3 11 MiniOS Utility Ver 3 11 Manual jB Uninstall Step 4 Execute 7188xw exe on the Host PC P MiniOS7 Utility Yerion 3 1 1 build 3 1 1 1 Gy File fp Connection Command Z Configuration Tools 7188X W 7188EU Look in O MiniD57 Utility Hs Tem 7188E bin File Folder Send232 gt FIRMWARE File Folder Send TCP S File Folder xComm Utility 1KB 6180612 88KB I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 46 718884 W Parameters Parameters Cancel Step 5 Select the active COM port for the Host PC If the l 752N is connected to 1 on the PC then press ALT 1 If the l 752N is connected to on the PC then press ALT 2 The following screen will be shown pa 7188ZW 26 ICOM1 115200 N 8 11 FC 0 CTIS 1 DIR C IWIWDOWS Begin Key Thread 1 See note K Change to use EP below lt Change to use GOM1 lt gt Illustrates a real time configuration for the 71
64. al baudrate 1200 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 Step 5 Send 12345 string from the Host PC to the Remote PC I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 0112345 Press ENTER to send the command string to the l 752N module Check that the response string on the Remote PC is 12345 The following screen should be shown on the Host PC 7188XW 1 32 COM1 9600 N 8 1 FC 0 CTS 0 DIR D wict 520 752N_ 3_20061 Autodownload files None Current work directory D vic 752n 752N_V3_20061023 7188XC original baudrate 9600 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 change to Line Mode 01M 1017521 Olabcde 70112345 XJ The following screen should be shown on the Remote cx 7188 9 1 32 ICOM1 9600 N 8 11 FC 0 C IS 20 DIR D wict7i52m1752N V3 20061 D vic 752n 752N_V3_20061023 7188XC gt 7188xw c7 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COM7 115200 N 8 1 AutoRun Autodownload files None Current work directoryz D WwicV52nV52N 20061023 7188 original baudrate 1200 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 Not
65. are_V3 or the release notes to find details related to the firmware Step 4 Copy the 7188xw exe file to the PATH directory for example CADOS or CAWINDOWS and then it will be able to be executed to allow files to be downloaded from any location Step 5 Execute MS DOS in Windows as follows Set Program Access and Defaults C A WINDO WS System32 cmd exe oft Windows Version 5 1 26 1 xi rosof p weight 1985 2081 Microsoft Cor o Windows Update ts and Settings Administrator gt _ Programs wo l Windows Catalog Windows XP Professional Step 6 Type d to change to the D gt drive Type cd the location of the file that will be downloaded For example cd 752n c 060206 to change to the 752n c 060206 folder Press ENTER The following screen will be shown on the Host PC for l 7521 22 23 G 0 m B Microsoft Windows XP BENZ 5 1 260B1 lt C gt Copyright 1985 2861 Microsoft Corp C Documents and Settings wic_tsaidd D cd 752n c 860206 D N752n c 860286 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 143 Step 7 Select the active COM Port of the Host PC and execute 7188xw exe If the l 752N module is connected to on the PC then type 7188xw c1 If the l 752N module is connected to COM on the PC then type 7188xw c2 Press ENTER The following screen will be shown on the Host PC for l 7521 22 23 7TIBSXW 1 32 1 9600
66. by the firmware version 3 0 and upward Syntax SAAJNItimeouti chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF N 0 COM 2 timeoutO N 1 COM 1 3 4 5 6 7 8 timeout N 2 COM 1 3 4 5 6 7 8 timeout2 timeout Delay time value ms Valid range is 0 to 4294967259 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt AA timeout value chk CrLf invalid command gt AA chk CrLf no response buffer is empty syntax error communication error address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled no chk CrLf End Character Example Assume the AA address value of the l 7522 module is 01 command 01J01000 CrLf Sets the timeout value for the RS 485 COM 2 to 1000ms response 101 CrLf command 01J11500 CrLf Sets the timeout value of the RS 232 COM 1 to 1500ms response 101 CrLf command 01J1 CrLf Reads the timeouti value of COM1 response 1011500 CrLf The timeout value of COM1 is 1500ms The default timeout1 value for all RS 232 COM ports is 1000ms Notes RS 485 timeouto I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 113 A Only valid when CrLf modez4 is used B When CrLf mode is set
67. command string 00M OxOD to retrieve the module name and record it b Send the command string 00 0 00 to retrieve the module address and record it I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 35 c Send the command string 00BO 0x0D to retrieve the Baud Rate for COM2 and record it d Send the command string 00TO 0x0D to retrieve the CrLfmode for COM2 and record it Stepb Power off the module and disconnect the INIT and GND pins Step6 Power on the module and communicate with the 1 752 module using the same status settings as those you previously recorded If the INIT and GND pins are disconnected the module will execute 752n c exe or 752n b exe and the autoexec bat files and then the module will auto configure itself based on the configuration data stored in the EEPROM 2 2 Demo Code Firmware and 7188xw exe To locate the demo code firmware and the 7188xw exe file e Insert the installation CD and wait for the auto run function to activate or run auto32 exe e Click Toolkits Software Manuals e Click 7521 2 2A 3 4 7 Series e Click Demo Program Several ODM programs and demo codes for l 752N modules will be displayed The code can be modified for individual applications All code is well documented so the code can be easily changed Location Companion CD napdos 752n source code or http ftp icodas com tw pub cd 8000cd napdos 752n source code e Click View 7
68. computer sends this command to tell all modules that the Host is OK The host watchdog timer is reset and restarted e Syntax chk CrLf x Delimiter character chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response no response e Example command CrLf response No Response I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 99 5 3 24 0 For I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 Description This function reads the module status which will be latched until the AA1 command is sent If the module statusz0x04 all output commands will be ignored Syntax AAO chk CrLf S Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt AASS chk CrL f invalid command gt AA chk CrLf no response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format SS 2 character status value in HEX format as follows Bit 0 reserved Bit 1 reserved Bit 22 0 gt 1 Host watchdog failure Bit 7 1 gt Host watchdog timer is enabled chk 2 character checksum If the checksum is disabled no chk CrLf End Character
69. cting to a Single Remote RS 232 Device Step 1 Connect the l 752N module to the RS 485 network and the remote PC as follows Host PC o l 7520 GND Hostbe I 7520R vs Date CPEEEECEEEI Male 9 pin D sub Female 9 pin D sub Date Com 1 2 3 4 or UART port l 7521 l 7521D l 7522 l 7522D Ext GND l 7523 l 7523D Remote PC RS 232 Signal Male 9 pin D sub Male 9 pin D sub 1 2 3 4 or UART port l 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx Ext 24V RS 485 Signal 52 1 7520 GND Hosnpe I 7520R RS 232 Signal PEEPPEEEEB Date Male 9 pin D sub Eem ale 9 pin D sub Date 1 2 3 4 UART port 1 7522A 1 7522AD Ext GND 1 7524 1 7524D VS Ext 24V l 7527 l 7527D D2 Remote PC COM2 RS 485 INIT Signal RXD1 TXD1 GND Male 9 pin D sub Com 1 2 3 4 or UART port Step 2 Refer to Step 2 to 4 in Sec3 1 to execute 7188xw exe on the Host PC Refer to Steps 5 to 9 in Sec 3 1 for details to know how to change
70. ddress 07h The demo program hp23 M c is designed to allow a Host PC to be linked to remote HP34401A Refer to the companion CD for the source code of hp23 M c file The key features of hp23 M c are as follows e The RTS3 pin of the COM3 port on each module must first be set as active HIGH to enable the HP34401A I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 130 e The configuration of the COM ports on each l 7523 module is as follows SERD dodi ___ Nome ddodt Even Sita Stopbit e ThelnitHP and CloseHP functions of hp23 M c are given as follows void InitHP int ComNo com ComNo ComNo ComNo com ComNo BaudRate 96001 I com ComNo DataFormat Data8bit NonParity Stoplbit com ComNo CheckSum CHKSUMdisable OpenCOM ComNo HPSendCommand ComNo 02SYST REM 41 HP HPSendCommand ComNo 02 CLS 1 HP HPSendCommand ComNo 03SYST REM 42 HP HPSendCommand ComNo 03 CLS 2 HP HPSendCommand ComNo 05SYST REM 43 HP HPSendCommand ComNo 05 CLS 3 HP HPSendCommand ComNo 06SYST REM 44 HP HPSendCommand ComNo 06 CLS A HP HPSendCommand ComNo 08SYST REM 45 HP HPSendCommand ComNo 08 CLS 5 HP HPSendCommand ComNo 09SYST REM
71. dog timer is designed for the software host watchdog When the software host watchdog is enabled the host must send a HOST is OK command see Sec 5 3 23 to all modules before the timer expires When the command is received the host watchdog timer is reset and restarted Using the AA2 command to read the host watchdog status and value Syntax AAS3ETT chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF E 0 Disables the host watchdog timer ESI Enables the host watchdog timer TT 2 character timer value in HEX format The valid range is from 00 to FF Units 0 1sec 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt AASTT chk CrLf invalid command gt AA chk CrLf no response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format S 0 The host watchdog timer is disabled S 1 The host watchdog timer is enabled TT 2 character timer value in HEX format The valid range is from 00 to FF Units 0 1 sec chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example command 013000 CrLf response 101000 CrLf module 01 command 02310A CrLf response 10210A CrLf enabled and is set to 0 1 10 1
72. e If no Remote PC is available the test can be performed by connecting TxD and RxD to the same COM port I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 55 cx 7IBBXW 1 32 COM1 9600 N 8 1 FC 0 CTS 0 DIR D vic 5204752N_ 3_20061 _ of x 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COMI 115200 N 8 1 AutoRun Autodownload files None Current work directory D vic 752n others ECR 061 102 original baudrate 9600 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 change to Line Mode 1017521 0INoRemotePC NoRemotePC I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 3 3 Connecting to Multiple Remote RS 232 Device Step 1 Refer to Sec 3 1 for wiring details and the method used to change the address and default parameters of the l 752N module Step 2 Connect the second l 752N module to the RS 485 network and the two Remote PCs as follows RS 485 1 7521 22 22 23 Il 7521 22 23 24 24 27 FAN 1224 27 address 01 01 01 address 02 03 02 01 01 01 04 05 08 Remote PC 1 Remote PC 2 There should now be two l 752N modules connected to the RS 485 network The module address of the first l 752N module is address 01 and the second is address 02 03 04 05 08 according to different modules The communication status pa
73. e The 5 digits of the 7 segment LED are also programmable The 5 digit LED is very useful in real world applications and can be used to replace the monitor and touch screen for many applications The 5 digits of the 7 segment LED will show the address Baud Rate and CrLfmode for each COM port in turns when the l 752n firmware is executed I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 37 COM2 Baud Rate 9600 COM 1 3 4 5 6 7 8 Address 01 Baud Rate 9600 COM2 CrLfmode 4 2 5 752N protocol description Address There is a initial address for l 752N series module For example assume initial address is 01 CrLfmode is 4 data format 9600 N 8 1 for COM2 of a 1 7522A module command response 01 101 the initial address is 01 02A 101 the initial address is 01 03A 01 gt an invalid command 01A05 101 gt changes the initial address to 05 so COMI is now 05 and COM3 is now 06 06A 105 gt the initial address is 05 CrLfmode There are five modes for l 752N when receiving commands COM2 and receiving responses COM 1 3 8 We call this mode CrLfmode The default CrLfmode is 4 for all COM ports Note More information about the CrLfmode command can be found in Sec 5 3 12 a CrLfmode 0 1 2 3 In these modes the l 752N module judges when the command response string ends based on the end character of the command response string For example initial address
74. elligent communication controller MiniOS7 1 channel of RS 232 and 1 channel Of RS 422 485 I 7524 D Intelligent communication controller MiniOS7 4 channel of RS 232 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 6 I 7527 D Intelligent communication controller MiniOS7 7 channel of RS 232 I 7XXX I 7XXX without 7 SEG display MiniOS7 I XXXD 1 7 with 7 SEG display MiniOS7 Package List The package includes the following item One l 7521 l 7522 l 7522A l 7523 l 7524 l 7527 User s Manual this manual One release note Depend on situation One software utility disk or CD e One download cable gt CA0910F for l 7521 l 7522 l 7523 gt CA0910 for l 7522A l 7524 l 7527 Note If anv of these items are missing or damaged contact the local distributors for more information Save the shipping materials and cartons in case vou want to ship in the future Release Note Important It is recommended to read the release note first important information will be given in release note as follows e Influential modification about software or hardware e The path that points to l 752N document and software changes in the companion CD e others l 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 7 1 2 Features General Built in Addressable RS 232 Converter firmware Supports Dua
75. er indicating a valid command Delimiter character indicating an invalid command 2 character module address in HEX format 4 or 5 character value denoting the version number 2 character checksum If the checksum is disabled gt no chk End Character Example Assume one l 7521 module is addressed 01 another is 02 command response command response 101A2 0 CrLf 2 0 102A3 0 CrLf 3 0 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 96 5 3 21 Description This function reads the module name e Syntax AAM chk CrLf Delimiter character AA 2 character HEX module address from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response chk CrLf e Example command response command response valid command gt AA name chk CrLf invalid command gt AA chk CrL f no response svntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command 2 character HEX module address 4 or 5 character value string denoting the module name 2 character checksum If the checksum is disabled no chk End Character 1017521 CrLf 1027523 CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 97 5 3 22 2 Description This function read
76. er module address in HEX format The valid range is from 00 to FF bypass The data string sent to COM 1 3 4 5 6 7 8 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response The response received will depend on the device used Example Assume the AA address value of the l 7523 module is 01 The delimiters for COM1 3 4 are and respectively command 01abcde CrLf response Depends on the device command 021 23456 789 CILf send 123456789 to com3 response Depends on the device response Depends on the device Send test to COM4 Note Address mapping refers to Sec 5 2 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 82 5 3 11 Description This function reads sets the checksum status AAK chk CrLf Reads the checksum status stored in the EEPROM AAKV chk CrLf gt Sets the checksum status Syntax AAK V chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF V 0 checksum disabled V 1 checksum enabled chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt AA V chk CrLf invalid command gt AA chk CrLf no response syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character m
77. er2 3 Aug 2008 xxxx 71 5 3 3 AADN data bit Description This function reads sets the data bit for COM 1 2 3 4 5 6 7 8 AADN chk CrLf Reads the data bit for COM 1 2 3 4 5 6 7 8 stored in the EEPROM AADN data bit chk CrLf gt Sets the data bit for COM 1 2 3 4 5 6 7 8 Syntax AADN data bit chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF N 0 Reads Sets the data bit for the COM 2 N Reads Sets the data bit for the COM 1 3 4 5 6 7 8 data bit will be either 7 or 8 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt AA data bit Chk CrL f invalid command gt AA chk CrLf response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled gt no chk End Character Example Assume the AA address value of the l 7523 module is 01 response 01 CrLf command 01 01 7 CrLf Changes the data bit to 7 for the RS 232 COM1 response 01 CrLf command 02D1 7 CrLf Changes the data bit to 7 for the RS 232 COM3 response 102 CrLf command 03D1 7 CrLf Changes the data bit to 7 for the RS 232 response 03 CrLf Notes 1 Address mapping refers to
78. ere are 3 wires as following e Connect RXD to TXD of RS 232 device e Connect TXD to RXD of RS 232 device e Connect GND to GND of RS 232 device I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 26 1 6 3 Using a 5 wire RS 232 port l 7521 1 7521D 1 7522 1 7522D l 7523 1 7523D 1 7522 7522 1 7524 1 7524D l 7527 1 7527D RS 232 Device There are 5 wires as follows Connect RXD to TXD of RS 232 device Connect TXD to RXD of RS 232 device Connect RTS to CTS of RS 232 device Connect CTS to RTS of RS 232 device Connect GND to GND of RS 232 device l 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 27 1 6 4 Using a RS 485 port I 7521 1 7521D GND Ext GND I 7522 1 7522D 4VS NETT 1I 7523 1 7523D 1 7522A 1 7522AD P7 LT 1 7524 1 7524D D 1 7527 1 7527D 7000 module GND Ext GND 4VS Ext 24V D2 B D2 Note e The RS 485 interface can directly drive 256 sets of 7000 modules without a repeater I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 28 1 6 5 Using DI DO of I 7521 D valid for l 7521 D l 7522 D l 7523 D l 7521 GND Ext GND VS Ext 24V Data D2 D2 Inductive load or Conductive load INIT b DI2 DI3 DOI a Dry contact or TTL CMOS or 3 5V to 30V D D DO2 DO3 Current Limit Resistor XI Load current lt 125mA X2 X3 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ve
79. es enata tn seen tosta sensns tns enses ens 38 QUICK START incest a a bad 43 3 1 CONNECTING THE I 752N MODULE ssesnensananzannonsnsnznznennonensnznenenennanz 45 3 2 CONNECTING TO A SINGLE REMOTE RS 232 DEVICE 52 3 3 CONNECTING TO MULTIPLE REMOTE RS 232 DEVICE 57 3 4 DOWNLOADING NEW FIRMWARE TO THE I 752N MODULE 60 3 4 1 Using MiniOS7 Utility to download new firmware 60 3 42 Using 7188xw exe to download a file 62 DEDO AND WATCHDOG o ane to pU ue vases tes 63 41 DO OPERATION PRINCIPLES eese eee sete einen statu ssa tuse tasas enses enses tns 63 4 2 DI OPERATION PRINCIPLES eee ee esee eene 63 4 5 DUAL WATCHDOG OPERATION PRINCIPLES 0ssnssnssnesnzonsennennonneenenn 64 44 HOST WATCHDOG APPLICATION NOTES eee sees eene ene tn nsns tn statu 64 45 MODULE WATCHDOG APPLICATION NOTES eese esee enean senatu 66 COMMAND SEBS iii esito nS 67 5 1 COMMAND SET TABLE sensnesnnzznonnensoneensonsenseenonnensenensensenseesenneeneen 67 5 2 ADDRESS MAPPING TABLE sensnonzznzoneenzenzonseenonneenoeneensnsenseenenneenees 68 COMMANDS vegetal r E Weed YE S 69 5 3 1 SAAA addr i erecti pietro 69 5 3 2 SAABN baud tna e
80. ile The flow chart illustrating the functionality of the hp34401a c file is shown below Set the multimeter to remote control mode Any key pressed Ask for measuring Set the multimeter back to local mode Acquire reading end Note the PC COM port should be 16550 compatible I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 123 6 1 3 Connecting a single 1 7522 to a single HP34401A The diagram below shows how to connect a single PC to a remote HP34401A on an RS 485 network The l 7520 module is used to convert the RS 232 signal from PC to an RS 485 signal The l 7522 module is used as an Addressable RS 232 converter for the HP34401A since there is no address setting in the HP344014 l RS 485 Host PC HP34401A RS 232 port RS 485D RS 485D I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 124 The demo program hp22 1 c is designed to allow a Host PC to be linked to a remote HP34401A Refer to the companion CD for the source code of the hp22 1 c file The key features of hp22 1 c are as follows e The RTS3 pin of COM3 port must first be set as active HIGH to enable the HP34401A Aflow chart illustrating the functionality of the hp22 1 c file is shown below Set the multimeter to remote control mode h Set the multimeter
81. ill be fi l 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 5 3 36 Description The function sets the multiple onboard DO 1 2 3 4 5 values l 7522A pin assignment refers to Sec 1 4 Note Supported by the firmware version 3 0 and upward Syntax AABBHH chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF BB 00 0A HH 2 character DO value in HEX format DO1 is set at LSB The valid value range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt chk CrL f invalid command gt chk CrLf no response syntax error communication error or address error gt Delimiter character indicating a valid command Delimiter character indicating an invalid command chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the l 7521 module is 01 response gt CrLf response gt CrLf Note If the host fails the AABBHH command will be ignored and the response string will be In normal situations the response string will be S7 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 118 5 3 37 AABCDD Description This function sets the single onboard DO 1 2 3 4 5 values l 7522A pin assignment refers to Sec 1 4
82. indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format S20 DI Low S21 DI High DI floating will return High chk 2 character checksum If the checksum is disabled no chk CrLf End Character e Example Assume the AA address value of the l 7521 module is 01 command 01Y1 CrLf Dil Low response 1010 CrLf DI2 High response 011 CrLf command 01Y2 CrLf command 01Y3 CrLf DI3 Low response 010 CrLf DI mapping table DI DI2 DI3 014 015 l 7521 No Ves Ves No No l 7522 No Ves Ves No No l 7522A Ves Ves Ves Ves Ves l 7523 No Ves No No No l 7524 Ves No No No No l 7527 Ves No No No No I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 88 5 3 16 SAAZNV Description This function reads sets the onboard DO 1 2 3 4 5 AAZN chk CrLf gt Reads onboard DO 1 2 3 4 5 AAZNV chk CrLf gt Sets onboard DO 1 2 3 4 5 Syntax AAZNV chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF N 1 gt Writes DO1 2 Writes DO2 3 gt Writes 49 Writes DO4 52 Writes DO5 l 7522A pin assignment refer to Sec 1 4 V 0 Sets the DO to off V 1 Sets the DO to on chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command lAAS chkI CrLf invalid comma
83. ing a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the l 7523 module is 01 command 01GO0 CrLf Reads the trigger level of COM is 1 response 1011 CrLf command 02G14 CrLf Sets the trigger level of COMG to 4 response 102 CrLf command 01G18 CrLf only COM3 4 5 6 7 8 can be set response 01 CrLf Note The Trigger Level for COM1 and COM2 can t be changed I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 115 5 3 35 AA data Description This function reads sets the onboard DI 1 2 3 4 5 and DO 1 2 3 4 5 values AA gt Reads the onboard DI 1 2 3 4 5 and DO 1 2 3 4 5 AAh gt Sets the onboard DO 1 2 3 for the 7521 7522 7523 modules AAhh gt Sets the onboard DO 1 2 3 4 5 for the 7522A 7524 7527 modules Note Supported by the firmware version 3 0 and upward e Syntax QC AA chk CrL f AAh chk CrL f AAhh chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF h 4 bit DO value in HEX format DO1 is set at LSB The valid values is 0 9 a f A F chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response AA valid command gt gt AAbbcc chk CrLf invalid command
84. ion This function reads the expansion board DIO pin25 011 pin26 DI2 pin27 DI3 pin28 Note Supported by the firmware version 3 01 and upward Syntax AAR chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command gt AAS chk CrLf invalid command gt AA chk CrLf no response syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format S 4 bit DI value in HEX format DIO is at LSB The valid values are 0 9 a f and A F Dl low gt 0 Dl high gt 1 DI floating will return a High chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Example Assume the AA address value of the l 7522A module is 01 DI2 pin 21 Not connected Z command 01R CrLf response 101 5 CrLf DI1 low 0 DD DIO high 1 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 112 5 3 33 AAJN timeout Description The function reads sets the delay time before determining whether the end of a command response has been sent received AAJN chk CrLf Reads the timeout value SAAJNItimeouti chk CrLf gt Sets the timeout value Note Supported
85. k CrLf Delimiter character Command character chk 2 character checksum If the checksum is disabled no chk CrLf End Character e Response no response e Example Assume the AA address value of the l 7521 module is 01 command CrLf Orders all modules to perform synchronized response no response sampling command 014 CrLf response 0117 CrLf command 014 CrLf DII DD 1 01320 response 10113 CrLf command 014 CrLf DII 1 DD DI3 0 response 0111 CrLf DI1 DD DI3 1 What is synchronized sampling The host computer can only send one command string at a time If there are two modules the host computer must send and receive the commands from module 1 then the commands from module 2 in response so there is a time delay between the two commands The synchronized sampling command is designed for all input modules When the synchronized sampling command CrLf is received all input modules on theRS 485 network will perform the input function at the same time and store the values into the intend memory of the module The host computer can then send a read synchronized data command AAA to read the data separately I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 91 5 3 18 AA4 Description This function reads the synchronized data Syntax AA4 chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk
86. k in Disk Size File Folder FIRMWARE File Folder 53 0S IMAGE File Folder Bicpdas SEE X load232 dil FER zi EB MiniOS7 Utility chm i DARE HTML Mini0S7_Utilty exe j 257 3 Mini0S7_Utiity ini RBA See here to determine the EAR ti tat E unins000 dat DAT File l connection status jl unins000 exe b Goes BA 8 rn E veera 2 Ferero Er cor I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 61 Step 7 Delete all files in the l 752N module and then select the file to be loaded from the left hand panel Drag the file to the right hand panel or click Sun to load file into module P MiniOS7 Utility Ferion 3 1 6 DER d Sh File fb Connection 4e Command Z Configuration Tools amp Help Look in MiniOS7 Utility Size E305 IMAGE e icpdas 19 load232 dll MiniQS7 Utility chm MEI MiniOS7 Utility exe MiniDS7 Utility ini a uart dll el uninsO00 dat 5 000 1KB 88KB 1 025KB 2 055KB 3KB Host PC file list p Coen Step 8 Power off l 752N and disconnect INIT and GND pins Type File Folder g o File Folder ugs File Folder HELE 158 HTML ABRBSEXEIB eR ss DAT File REFHZ ZA Lock in Disk 340 516 bytes Size Modified 10 2005 84 EF
87. l 7524 module will pass the commands to its local RS 232 device 1 RS 232 device 2 RS 232 device 3 or RS 232 device 4 The l 7524 module sends then the response from the RS 232 device back to the Host PC COM3 and COMA ports of the l 7524 module can support either 1 or 2 stop bits so it can support a two stop bit device such as HP34401A The RS 232 device can be used for command Application 1 or null command Application 2 tvpe controller applications Refer to the 7524 c file for the source code of the firmware g RS 232 Device IA 029 1 7520 RS232 755 RS 232 Device Host PC A au l 7524 HP34401A 01 RS 485 ata HP34401A HP34401A HP34401A Sa I 7524 05 HP34401A HP34401A HP34401A HP34401A 1 7524 401 men emi HP3A4O1A I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 135 Pppicten 6 Addressable RS 232 Controller Seven channels Each l 7527 module has a unique address i Each l 7523 module can support seven RS 232 devices 1 AA 2 AA 3 AA 4 AA45 AA 6 amp AA 7 e The Host PC first sends a command to all l 7527 modules e The destination l 7527 module will pass the commands to its local RS 232 device 1 RS 232 device 2 RS 232 device 3 RS 232 device 4 RS 232 device 5 RS 232 device 6 or RS 232 device 7 e The l 7527 module then sends the response from the RS 232 device back to the Host PC e COM5 COM6 and CO
88. l Watchdog commands Supports Power up value amp safe value for DO The firmware code is open source and well documented Source code could be modified depending on according specific user requirements The firmware can monitor the onboard DI and control the onboard DO in real time depending on user requirements The firmware can monitor the RS 232 device and control the onboard DO in real time according to user s requirements Watchdog timer provides fault tolerance and recovery Low power consumption R O C Invention Patent No 086674 R O C Invention Patent No 103060 R O C Patent No 132457 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 8 1 3 Dimensions For l 7521 D l 7522 D l 7523 D 7 View Rear View Side View Unit mm Front View I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 9 For l 7522A D l 7524 D l 7527 D Gn Doo Top View Back View Front View i 005058859080 Bottom View Side View Unit mm
89. mission time from l 752n to RS 232 device must also be considered C For timeout2 begins at when RS 232 COM port receives one character and restarts to count timeout2 until next character is received The user must consider the buffer trigger level setting of the UART COM1 with only a byte buffer or later using 16c550 with a 16 byte FIFO the default trigger level is set to 8 The trigger level can be set using the AAG1N command can be either 1 4 8 or 14 D The timeouti must be greater than timeout2 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 114 5 3 34 AA GN triggerlevel Description This function reads sets the Trigger Level AAGN chk CrLf gt Reads the Trigger Level AAGN Trigger Level chk CrLf gt Sets the Trigger Level Note Supported by the firmware version 3 0 and upward Syntax AAGNItrigger level chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF Trigger Level 1 4 8 14 COM3 4 5 6 7 8 only N 0 Reads Sets the Trigger Level of the COM 2 N 1 Reads Sets the Trigger Level of the COM 1 3 4 5 6 7 8 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response valid command gt AA trigger level chk CrLf invalid command gt AA chk CrL f no response syntax error communication error or address error Delimiter character indicat
90. nchronized data command to read the data separately 4 3 Dual WatchDog Operation Principles All l 752N modules are equipped with a hardware module watchdog and a software host watchdog The l 752N modules are designed for industrial application therefore they are able to operate in harsh environments As there are usually a great amount of noise or energy transients in such an environment the modules may automatically shut down if the noise becomes too large The built in hardware module watchdog will reset the module if it shuts down or malfunctions because the noise signal has become too large Sometimes even the Host PC may shut down or malfunction because of hardware or software reasons The software host watchdog can monitor the status of Host PC If the Host PC fails or is off line for any reason the output state of the l 752N modules will revert to its predefined safe states for safety protection purposes If the RS 485 network is open any commands from the Host PC will not be able to be sent to the remote modules This is very dangerous in real world applications The l 752N series output module will force the output to revert to its predefined safe state for safety considerations if the host watchdog is enabled This dual watchdog feature will greatly increase the system reliability 4 4 Host WatchDog Application Notes The software host watchdog is designed to monitor the host computer If the host computer fails the output of the
91. nd gt AA chk CrLf response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format S 0 DO off S21 DO on chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Example Assume the AA address value of the l 7521 module is 01 sponse DOR response 01 CrLf command 01Z21 CrLf SEDOLON command 01Z3 CrLf RADO OIF response 010 CrLf Do mapping table DO1 DO2 DO3 DO4 DO5 l 7521 Ves Ves Ves No No l 7522 Ves No No No No I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 89 1 7522 Yes Yes Yes Yes Yes l 7523 No No No No No l 7524 Ves No No No No l 7527 Ves No No No No e Note If the host fails the AAZNY command will be ignored And the response string will bel In normal situation the response string will be AA S I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 90 5 3 17 Description This function regards each input module on the network both digital and analog to sample its entire input data immediately and store the data in the internal register of the module Later the host computer can read the data individually by using the read synchronized data AA4 command Syntax ch
92. nd must be sent before any new output command are sent to return all output values to their desired states 2 3 a Syntax AA5P chk CrLf gt sets the power on value AA5S chk CrLf gt sets the safe value Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command gt AAV chk CrLf invalid command gt AA chk CrLf no response gt syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format V DO DO0 D1 DO1 D2 DO3 D3 DOA D4 DO5 chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the AA address value of the I 7521 module is 01 command 015P CrLf Set the power on value to DO 1 2 3 all response 017 CrLf ON response 020 CrLf I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 107 5 3 30 SAAU Description This function reads data from the RS 232 COM port buffer There is 1Kb queue buffer for its local RS 232 device All input data from RS 232 COM port can be stored in the queue buffer until the Host PC has time to read it These features allow the Host PC to be linked to thousands of RS 232 devices without a
93. nes ae saso as eE E ri aee A E T 8 L3 DIMENSIONS scossisnssssseiscesessdssoniaadsdubsensnsussssaseansoadssonsaasebeadoasussenasascosessdsonsss 9 1 4 PIN ASSIGNMENT esee eene tosta tn notato neta sonata sesto seta suse ta sensn sens enses snae 11 1 5 SPECIFICATIONS Debes enero pane 23 1 6 WIRING DIAGRAMS FOR APPLICATION ee ee eese stata statuae 25 1 6 1 Program download eere eee eee seen enean atas 25 1 6 2 Using a 3 wire RS 232 26 1 6 3 Using a 5 wire RS 232 port ssesnnsenonneonsoneennenzonnennonnennz 27 1 6 4 Using a RS 485 28 1 6 5 Using DI DO of I 7521 D cere eee eese eee eene tn nn 29 1 6 6 Using DI DO of l 7522A D ssessnsnsnsasanzznnonenenznenennononss 30 1 6 7 Using a RS 485 of I 7522A D ssesssnsenesenzonnosnnosnnonnsennzs 31 1 7 COMPARISON TABLE ecce eere n etes tn sns tn statu sets suse tasas 32 OPERATING PRINCIPLBS 2 e ea 34 2 1 INIT PIN OPERATING PRINCIPLES ssnosnnonsonnennonneensensensensenneesenneenees 34 22 DEMO CODE FIRMWARE AND 7188XW EXE ssenssenessennosenzsnenosennonnnn 36 23 THE RS 485 PORT AND SELF TURNER 37 2 4 T SEGMENT LED DISPLAY eene eene esent tosta tuse tassa sens enses tns 37 2 5 752N PROTOCOL DESCRIPTION esee sens
94. nse eue 70 5 3 3 AADN data bit cere eere esee eene tn enano tne tn tn enanuna 72 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 5 3 4 SAAPNIparitv bitl ssrsneneneznznnnennnzznonsnsnsennensenensnseneneneea 74 5 3 5 AAON stop bit sssssnnsnsensnnenanonannononasnoaonasnosaonasnosaonasnas 76 5 3 6 GAAG ED pe 78 5 3 7 79 5 3 8 C elite ss ccsccccsssscosascsvsacecssosusscesasecsssenseossscsensesseseoeass 80 5 3 9 Ca B 81 5 3 10 delimiter A A bypass eene rennen eere een eene neenue 82 5 3 11 D 83 5 3 12 SAA TN CreEefmode scissscsssscsccssscssecacssensosscsssoscsevassosscosssaceesenens 84 5 3 13 GAA ER M 86 5 3 14 GAA XV 87 5 3 15 SAAXN 88 5 3 16 SAAZNV 89 5 3 17 a PERDU VICE 91 5 3 18 X 92 5 3 19 LV CM 94 5 3 20 SAAE 96 5 3 21 SAAM 97 5 3 22 GAA 2 orero s eseo 98 5 3 23 ANO 99 5 3 24 ba 9 100 5 3 25 5 9 9
95. ny loss of data Any RS 232 device should obey the rules of the request reply protocol In other words RS 232 devices are passive If they do not receive any commands they will not send any messages out However since active devices are frequently developed ICPDAS controllers are designed with a buffer to receive these messages in situations such as this Buffer operation rules Rule 1 The buffer is enabled after being powered on Rule 2 The delimiter AA command Refer to Sec 5 3 10 disables the buffer operation for that port Rule 3 After disabling the buffer the controller will wait for X seconds timeout1 refer to Sec 5 3 33 for a response from the RS 232 device The response will then be transfered to COM2 If no message is received the buffer will be re enabled e Syntax AAU chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response valid command data chk CrL f invalid command gt AA chk CrL f no response The buffer is empty syntax error or communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command AA 2 character module address in HEX format chk 2 character checksum If the checksum is disabled no chk CrLf End Character e Example Command O1U CrLf Retrieves da
96. odule address in HEX format V 0 checksum disabled V 1 checksum enabled chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Example Assume the first AA address value of the l 7523 module is 01 the other is 04 command 01 KO00 CrLf Checksum 1 Disables the checksum response 0182 CrLf chk 00 82 command 04 1 CrLf The checksum is enabled response 04 CrLf Notes 1 Address mapping refers to Sec 5 2 2 The checksum enable disable function is valid for COM2 only I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 83 5 3 12 AATN CrLfmode Description This function reads sets what the characters are as judging the end of command or response string AATN chk CrLf gt Reads the setting value of CrLfmode stored in the EEPROM AATN CrLfmode chk CrL f gt Sets the setting value of CrLfmode for the command response string Syntax AATN CrLfmode chk CrLf AA N 0 N 1 CrLfmode chk CrLf Response AA chk CrLf Delimiter character 2 character module address in HEX format The valid range is from 00 to FF Reads Sets the CrLfmode value of the COM 2 Reads Sets the CrLfmode value of the COM 1 3 4 5 6 7 8 0 gt CrLf 0x0D CR 1 gt CrLf 0x0D 0x0A CR LF 2 gt CrLf 0x0A LF 3 gt CrLf 0x0A 0x0D LF CR 4 gt No end character 2 character checksum If the checksum is disabled
97. ommand AAA to read the data separately I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 93 5 3 19 5 Description This function reads the reset status of the module This is the only command that detects the module hardware watchdog failure If the module is malfunction the module hardware watchdog circuit will reset the module This reset will cause the output state of to return to its start up values The start up values may be different from the output values in use prior to the module reset Therefore an output command needs to be resent to the module in order to maintain the same output state once the module the module hardware watchdog circuit reset the module e Syntax AA5 chk CrLf Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character Response AA 5 0 Sed chk CrLf valid command AAS chk CrLf invalid command gt AA chk CrLf no response syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command 2 character module address in HEX format the module has not been reset since the last reset status was read the module has been reset since the last reset status was read 2 character checksum If the checksum is disabled no
98. pin of COM5 RS 232 RXD6 RXD pin of COM6 RS 232 TXD6 TXD pin of COM6 RS 232 GND GND pin of COM5 6 7 8 RS 232 RXD7 RXD pin of COM7 RS 232 TXD7 TXD pin of COM7 RS 232 RXD8 RXD pin of COM8 RS 232 TXD8 TXD pin of COM8 RS 232 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 22 1 5 Specifications Operating environment Operating Temperature 25 C to 75 C Storage Temperature 40 C to 80 C Humidity 0 to 90 Built in Watch Dog Timer 1 6 seconds for MiniOS7 1 0 0 8 seconds for MiniOS7 2 0 Built in power protection amp network protection circuit COM port Program download port COM1 RS 485 port with self tuner inside 3000V isolation For l 7521 D l 7522 D l 7523 D RS 485 port with self tuner inside For l 7522A D l 7524 D l 7527 D Communication speed All ports 115200 bps max Digital Input speed Digital Input Input type non isolated On voltage level 1V max Connect to GND Off voltage level 3 5V 30V Open Digital Output Output type Open collector Output current 100mA Max load voltage 30V DC Dimensions l 7521 D l 7522 D l 7523 D 119 x 72x 33 mm l 7522A D l 7524 D l 7527 D 123 x 72 x 33 mm Power Protection Power reverse polarity protection Power requirement 10
99. put 100 mA 30V max DO4 28 DO3 Digital Output 100 mA 30V max DOS I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 16 1 7521 1 7522 7522 7523 1 752 7527 User s Manual Ver2 3 Aug 2008 xxxx 17 Pin assignment of 13 pin screw terminal block l 7523 l 7523D 5 Name Description CTS3 Clear To Send of COM3 RS 232 RTS3 Request To Send of COMS RS 232 RXD3 Receives Data of COM3 RS 232 TXD3 Transmits Data of RS 232 GND Signal ground of COM3 amp COM4 TXD4 Transmits Data of COM4 RS 232 RXD4 Receives Data of COM4 RS 232 DI2 Digital input 3 5V 30V INIT Initial pin 3 5V 10 D2 DATA pin of COM2 RS 485 11 D2 DATA pin of COM2 RS 485 12 VS V of power supply 10 to 30VDC unregulated 13 GND GND of power supply Pin assignment of COM1 connector DB 9 Male 5 Name Description Data DATA of RS 485 port TXD Transmits Data RS 232 Receives Data RS 232 N C No Connection GND Signal ground of RS 232 N C No Connection CTS Clear To Send RS 232 RTS Request To Send RS 232 Data DATA of RS 485 port Note The COM1 can be used as a RS 232 port or a RS 485 port It is not recommended to use both RS 232 and RS 485 at the same time I 75
100. r RS 232 Ports The AAU command can be used to read the buffer Note More information about the timeout command can be found in Sec 5 3 33 Summary COM Ports receive data based CrLfmode rules Each port has its own data format timeout values and CrLfmode Setting correct parameters will ensure that the COM Ports work well and efficiently Command and Response Flow Chart I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 41 COM2 1 Each RS 232 COM Port has its own CrLfmode timeouti timeout2 RS 485 COM2 only has CrLfmode timeout0 2 Command Response gt I 752N crifmode 4 default crifmode 0 3 COM 2 CrLfmode 0 3 suffix the end character to the response Wait for timeoutO to CrLfmode 4 do not suffix elapse without any characters to the response receiving any further data in order to Receive an end character to finish the receiving operation remove the end character from the command determine the end of the command m Stop receiving and start to send response characters to COM2 command bypass status OFF Bypass or not time gt timeout2 and delimiter AA bypa timeoutl has elapsed Receive one character as ss see Sec 5 3 10 time between part of a response receiving a new time timeout2 character and receiving time between receiving a the last character new character and receiving the last RS 232 COM Port character l
101. r2 3 Aug 2008 xxxx 29 1 6 6 Using DI DO of I 7522A D valid for l 7522A D l 7524 D l 7527 D I 7522A Drv contact or TTL CMOS D2 or 3 5V 30 D I D2 INIT RXDI P TXDI GND RTSI Inductive load or far GND Conductive load Ext 24V Di DI DI DO Current Limit Resistor Load current lt 125mA D I Block Diagram ULN2003A SOIC 16 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 30 1 6 7 Using a RS 485 of I 7522A D I 7522A TXD3 15 TXD3 16 7000 module Note e The RS 485 interface can directly drive 256 sets of 7000 modules without a repeater I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 31 1 7 Comparison Table Comparison Table of l 7521 D l 7522 D l 7523 D l 7521 D l 7522 D l 7523 D CPU clock 80188 or compatible 80188 or compatible 80188 or compatible 20M Hz 20M Hz 20M Hz SRAM 128K 128K 128K Flash ROM 512K 512K 512K COM 1 RS 232 RS 232 RS 232 or RS 485 with or RS 485 with or RS 485 with self tuner inside self tuner inside self tuner inside COM RS 485 with RS 485 with RS 485 wtih self tuner inside self tuner inside self tuner inside 3000V isolation 3000V isolation 3000V isolation COM3 No Com3 RS 232 RS 232 txd rxd rts cts txd rxd rts cts COM4 No Com4 No Com4 RS 232 txd rxd Transmission Up to 115 2 kbps Up to 115 2 kbps Up to 115 2 kbps
102. rameters of the two l 752N modules will be same i e 9600 8 1 Step 3 Refer to Step 2 to 4 in Sec 3 1 to execute 7188xw exe on the two Remote PCs Refer to Steps 5 to 9 in Sec 3 1 for details to see how to change the COM port and status settings to 9600 N 8 1 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 57 Step 4 Send To Remote PC1 string from the Host PC to the first Remote PC 1 Type 01To Remote PC1 Press ENTER to send the command string to the l 752N module The following screen will be shown on the Host PC 7188XW 1 32 COM1 9600 N 8 1 FC 0 CTS 0 DIR D Wwic 52n 752N_ 3_20061 _ n x 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COM1 115200 N 8 1 AutoRun Autodownload files None Current work directory D vic 752n others ECR 061 102 original baudrate 9600 now baudrate 115200 7188xwCmd b9600original baudrate 115200 now baudrate 9600 Current baud rate is 9600 change to Line Mode 01 To Remote PC1 The following screen will be shown on the first Remote PC 1 Press ALT L to change to Line Mode cx 7188XW 1 32 COM1 9600 8 9 1 FC 0 C TS 0 DIR D iicY752nY752N 20061 Jof x 7188x for WIN32 version 1 32 2006 10 17 ICPDAS Tim Tsai Begin Key Thread Current set Use COM7 115200 N 8 1 AutoRun Autodownload files None Current work directory D
103. re information If the l 752N module is reset by the hardware watchdog an AAZNV command must be sent from the Host PC to reset the DO to their expected states If the host watchdog fails all DO values will revert to their safe values immediately and the module status will be set to 04 If an SAAZNV is sent by the Host PC the modules will ignore the command and return as a warning The AA1 command can be used to clear the module status to 00 then the l 752N module will again be able to accept an SAAZNV command 42 DI Operation Principles The l 752N series DI commands are as follows a ff synchronized sampling All modules will sample the DI at the same time 2 AAA reads the synchronized sampling data 3 SAAVN reads the current state of the DI I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 63 The host computer only send one command string at a time If there are two modules the host computer must send and receive the commands from module1 before sending receiving any commands from module2 which means that there is a time delay between the two commands The synchronize sampling command is designed for all input modules When receiving the 0 00 synchronized sampling command all input modules in an RS 485 network will perform input functions at the same time and store these values into the module s memory The host computer can then send an AA4 read sy
104. rrent baud rate is 9600 change to Line Mode 01M 1017521 01F 101A3 03 01A02 101 02M 1027521 01M Step 15 Change the Baud Rate for COM of the l 752N module Type the command gt 02B0115200 Press ENTER to send the command to the l 752N module Check that the display on the 5 digit 7 seg LED is as follows For firmware version 3 02 and above see Note COM2 Baud Rate 115200 Address oO2 COM 1 3 4 5 6 7 8 Baud Rate 9600 COM2 CrLfmode 4 Press ALT C Type b115200 to change the Baud Rate of the PC side Press ENTER to confirm the Baud Rate 1 15200 Type the command 02 Press ENTER to send the command to the l 752N module Check that the module returns gt 027521 for example l 7521 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 50 Type the command gt 02F Press ENTER to send the command to the l 752N module Check that the module returns gt 02 A1 0 A2 0 A3 0 A3 02 For example l 7521 cx 7188XW 1 32 COM1 9600 8 8 1 FC 0 C TS 0 DIR D 1vicY752n1752N V3 20061 of x 101A3 03 01A02 101 02M 1027521 01M 02B0115200 102 7188xwCmd b1 15200original baudrate 96001 now baudrate 1152001 Current baud rate is 115200 02M 1027521 02F 102A3 03 Note Refer to Sec 5 3 2 for more details regarding short codes for Baud Rates I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 3 2 Conne
105. s the configuration code of COM2 RS 485 stored in the EEPROM e Syntax AA2 chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled gt no chk CrLf End Character e Response chk CrLf valid command AA40BDPK chk CrLf invalid command gt AA chk CrLf no response syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command 2 character module address in HEX format type code of module short code for the Baud Rate Refer to Sec 5 3 2 for more details data bit Refer to Sec 5 3 3 for more details parity bit Refer to Sec 5 3 4 for more details checksum status Refer to Sec 5 3 11 for more details 2 character checksum If the checksum is disabled no chk End Character e Example Assume that the INIT Pin and GND Pin is connected command response command response 002 CrLf The COMO RS 485 has a Baud Rate 100406800 CrLf 9600 BPS data bit 8 parity bit none and the checksum is disabled 002 CrLf The COM2 RS 485 has a Baud Rate of 115200 BPS data bit 8 parity bit none and 10040A801 CrLf the checksum is enabled I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 98 3 3 23 For I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 Description The Host
106. s value of the l 7523 module is 01 command response command response command response Note 101 CrLf 102 CrLf 036HP34401 A 2 CrLf The ID for the RS 232 COM4 is HP34401A 2 103 CrLf Address mapping refers to Sec 5 2 I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 78 5 37 AA7 Description This function reads the ID string for COM 1 3 4 5 6 7 8 e Syntax AA7 chk CrL f Delimiter character AA 2 character module address in HEX format The valid range is from 00 to FF chk 2 character checksum If the checksum is disabled no chk End Character e Response AA ID chk CrLf valid command AA ID chk CrL f invalid command gt AA chk CrLf no response syntax error communication error or address error Delimiter character indicating a valid command Delimiter character indicating an invalid command 2 character module address in HEX format ID string Maximum number of characters 50 2 character checksum If the checksum is disabled gt no chk End Character e Example Assume the AA address value of the l 7523 module is 01 command response command response command response e Note arrange 101 Temperature1 CrL f 027 CrLf The ID for the RS 232 COM3 is HP34401 A 1 IO2HP34401A 1 CrLf 037 CrLf The ID for the RS 232 is HP34401 A 2 IO3HP34401A 2 CrLf Address mapping refers to Sec 5 2 l 7521 1
107. sion of the characters can be very small if the command string is sent using software c Set the corresponding CrLfmode for all COM ports depending on the command and response For example Device of I 7522A COM lof I 7522A Command 01ABCD lt CR gt sent by PC Device response EFGH lt CR gt when the command is ABCD lt CR gt Situation 1 l 7522A COM2 CrLfmode 0 COM1 CrLfmode 4 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 39 The data received by COM is ABCD where CrLfmode 0 the CR character is removed and ABCD is sent to COM1 where CrLfmode 4 nothing adding So the device receives the string ABCD not lt gt and doesn t give any response Command transformation 01ABCD CR PC ABCD com2 ABCD coml1 ABCD device Situation 2 l 7522A COM2 CrLfmode 0 COM1 CrLfmode 0 The data received by COM2 is ABCD where CrLfmode 0 the lt CR gt character is removed and ABCD lt CR3 is sent to COM1 where CrLfmode 0 the lt CR gt character is removed So the device receives the string ABCD lt CR gt and gives the response EFGH lt CR gt The data received by COM1 is EFGH where CrLfmode 0 the lt CR gt character is removed and EFGH lt CR3 gt is sent to COM2 where CrLfmode 0 the CR character is added So the PC receives the string EFGH lt CR gt Command transformation 01ABCD CR5 PC gt ABCD com2
108. ta1 from the buffer of the Response datat CrLf port that is addressed 01 Command 01U CrLf Retrieves another data data2 from the Response data2 buffer of the port that is addressed 01 Command 02U CrLf No data in the buffer of the port that is Response addressed 02 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 108 e Note 1 If the messages from the RS 232 device includes an End Character refer to Sec 5 3 12 set the fit CrLf mode for the RS 232 port before sending the AAU command If the CrLf mode of the RS 232 port is 4 all messages in the buffer can be read at one time regardless of the End Character of the messages If the fit CrLf mode is set to either 0 1 2 or 3 the messages Will be read individually 2 If the End Character of the message from the RS 232 device is 0x0D only CrLf mode 0 or CrLf mode 4 can be set Changing to other CrLf modes will corrupt the integrity of the unread data in the buffer 3 Repeat this command several times to ensure that the buffer is empty CrLf mode 0 1 2 3 l 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 109 5 3 31 AAL data e Description This function will write data to the expansion board DO 0 1 2 3 Note Supported by the firmware version 3 01 and upward Syntax AALbbbb chk CrL f AALcb chk CrL f AALh chk CrL f Delimiter character AA 2 character module address in HEX
109. to 30 V DC non regulated Power consumption 2W without display 3W with display I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 23 For ODM User e SRAM can be 512K max e COM can be 3000V isolated e EEPROM can be 32K bytes I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 24 1 6 Wiring Diagrams for Application 1 6 1 Program download Host PC 1 7521 1 7522 1 7522 I 7523 1 7524 1 7527 l 7521 l 7521D l 7522 l 7522D l 7523 l 7523D Host PC Download Male 9 pin D sub Cable CA0910F Male 9 pin D sub Com 1 2 3 4 or UART port Connect INIT pin with GND pin to disable autoexec bat l 7522A l 7522AD GND l 7524 l 7524D 4VS I 7527 7527D 52 Host PC px INIT RXD1 TXD1 Ext GND Ext 24V Connect INIT pin with GND pin to disable autoexec bat Ext GND Ext 24V GND Male 9 pin D sub Com 1 2 3 4 or UART port Download Cable CA0910 I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 1 6 2 Using a 3 wire RS 232 port l 7521 1 7521D 1 7522 1 7522D 1 7523 1 7523D 1 7522 7522 1 7524 1 7524D l 7527 1 7527D RS 232 Device Th
110. trol The DO channels can directly drive either relay or an LED and can be used to control the local devices in the event of an emergency l 752N series modules can control these DO channels without the need for a Host PC 3000V isolation on the RS 485 side I 7521 1 7522 1 7522A 1 7523 1 7524 1 75277 User s Manual Ver2 3 Aug 2008 xxxx 5 of the l 7521 l 7522 l 7523 modules is an isolated RS 485 port with 3000V isolation which will protect the local RS 232 devices from transient noises coming from the RS 485 network Self Tuner ASIC inside The interned l 752N Self Tuner ASIC for the RS 485 port can auto detect and control the send receive direction of the RS 485 network meaning that there is no need for application programs to be concerned about direction control of the RS 485 network A Wide range available for selection RS 232 RS 422 FIS 32 J RS485 55 del meaa DI DO l 7521 D 1 1 2 3 F7522 D 1 1 1 2 1 7523 D 2 1 1 1 0 l 7522A D 1 1 1 5 5 752400 3 1 1 1 1 7527 D 6 1 1 1 1 Note l 752N means any one of six kinds of modules above Order Information Order item choice Order item Module name O S I 7521 D Intelligent communication controller MiniOS7 1 channel of RS 232 I 7522 D Intelligent communication controller MiniOS7 2 channel of RS 232 I 7523 D Intelligent communication controller MiniOS7 3 channel of RS 232 I 7522A D Int
111. twork All l 7522 modules will automatically monitor the analog signal connected to an HP34401A If an emergency event occurs the l 7522 module will send an emergency command to this RS485 network If multiple l 7522 modules send emergency commands to the Host PC at the same time the l 7522 modules will continue to send emergency commands to the Host PC until confirmation is received from the Host PC All analysis operations are performed in the l 7522 module The Host PC only reads the analog values as part of its system monitoring function Refer to the 7522ODM5 c file for the source code of the firmware p 5 232 l 7520 Host RS 485 Network COM1 LES ce s come RS 232 com nn Une Ta COMI 4 COM 5 T l 7520 m 2 l 7522 HP34401A le l 7522 Md don COM3 HP34401A Emergencv RS 485 Network I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 140 Appendix A MiniOS7 Utility The MiniOS7 Utility program provides three main functions e Allows the MiniOS7 image to be upgraded Allows program files to be downloaded to the Flash Memory Allows the COM port settings to be configured Location of the MiniOS7 utility The MiniOS7 utility is located in CD NAPDOSMMINIOS UTILITY MMiniOS7 utility minios7 utility v311 exe or http ftp icpdas com tw pub cd 8000cd napdos minios7 utility minios7 utility minios7 utility v311 exe I 7521 1 7
112. ughter board supports a single A D and a single D A and can be connected the l 7521 module The I 7521 X301 combination can read and analvze the A D in real time The D A output is controlled based on the A D value All A D and D A control operations are performed in the l 7521 module The Host PC oniv reads the A D and D A values as part of its svstem monitoring functions e Refer to the 75210DM2 c file for the source code of the firmware As Rui RS 485 eer ge 2 22 EF l 7521 l 7524 oi Po F6 deal Lal gt A D D A A D D A RS 232 Device RS 232 Device I 7521 1 7522 1 7522A 1 7523 1 7524 1 7527 User s Manual Ver2 3 Aug 2008 xxxx 137 Application 9 8 channel long term event counters Master type e Referto Applications 1 and 2 for more information e The X100 daughter supports 8 DI channels The 1 7521 100 combination can read and analyze the 8 event counters in real time The timing diagram of the event counter will be latched until a clear command is sent by the Host PC All analysis operations are performed in the l 7521 module The Host PC only reads the timing values of the event counter as past of its system monitoring functions e Refer to the 75210DM3 c file for the source code of the firmware l 7520 p RS 232 RS 485 Fl d A l 7521 1 l 7521 1 1 1 l 0 1T3 al 1 Es 1 8

Download Pdf Manuals

image

Related Search

Related Contents

COLONIA  Shure SLX4L Logic User Guide Supplement    Table des matières complète  (USFWS) Bird Fatality/Injury Reporting Program      ENDUS_Localizador de Apice  875HB4401 - ソーワテクニカ TOP  HDX EH-WSTHDUS-004Y Instructions / Assembly  

Copyright © All rights reserved.
Failed to retrieve file