Page 1
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 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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Using a 3-wire RS-232 port ........... 26 1.6.3. Using a 5-wire RS-232 port ........... 27 1.6.4. Using a RS-485 port ............... 28 1.6.5. Using DI/DO of I-7521(D) ............29 1.6.6. Using DI/DO of I-7522A(D) ........... 30 1.6.7. Using a RS-485 of I-7522A(D) ..........31 1.7.
Page 3
Connecting a single I-7523 modules and two HP34401A .. 131 6.1.6 Connecting multiple I-7523 modules and multiple HP34401A 6.2............... 135 YPICAL PPLICATIONS APPENDIX A MINIOS7 UTILITY ................. 142 APPENDIX B 7188XW.EXE ................... 143 APPENDIX C FIRMWARE VERSION INFORMATION ..........148 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
ICPADS I-752N series modules can prefix a response from an RS-232 device with a unique address and then pass 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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 5
LED, and can be used to control the local devices in the event of an emergency. I-752N series modules provide ODM and applicatin demos for a user to modify them to control these DO channels without the need for a Host PC. 3000V isolation on the RS-485 side I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 6
COM2 of the I-7521/I-7522/I-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 I-752N Self-Tuner ASIC for the RS-485 port can auto...
Page 7
One release note(Depend on situation) One software utility disk or CD One download cable CA0910F for I-7521, I-7522, I-7523 CA0910 for I-7522A, I-7524, I-7527 Note: If any of these items are missing or damaged, contact the local distributors for more information.
Page 12
Pin assignment of 13-pin screw terminal block(I-7521/I-7521D): Pin Name Description Connects to I/O expansion board Connects to I/O expansion board Connects to I/O expansion board Digital output, 150mA, 30V Digital output, 150mA, 30V Digital output, 150mA, 30V Digital input, 3.5V ~ 30V Digital input, 3.5V ~ 30V...
Page 14
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 & RS-485 at the same time. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 18
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-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
123 x 72 x 33 mm /I-7527(D) Power Protection Power reverse polarity protection Power requirement (non-regulated) 10 to 30 V/DC Power consumption 2W (without display) 3W (with display) For ODM User SRAM can be 512K max. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 24
COM2 can be 3000V isolated EEPROM can be 32K bytes I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
UART port Connect INIT* pin with GND pin to disable autoexec.bat I-7522A/I-7522AD Ext. GND I-7523A/I-7523AD Ext. 24V I-7524/I-7524D Host PC I-7527/I-7527D INIT* RS-232 RXD1 Signal COM1 TXD1 Male 9-pin D-sub Com 1/2/3/4 or UART port Download Cable:CA0910 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
I-7523/I-7523D I-7522A/I-7522AD I-7524/I-7524D I-7527/I-7527D RS-232 Device There are 3 wires as following: Connect RXD to TXD of RS-232 device Connect TXD to RXD of RS-232 device Connect GND to GND of RS-232 device I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
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 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Using a RS-485 port I-7521/I-7521D Ext. GND I-7522/I-7522D Ext. 24V I-7523/I-7523D I-7522A/I-7522AD I-7524/I-7524D I-7527/I-7527D 7000 module Ext. GND Ext. 24V Note: The RS-485 interface can directly drive 256 sets of 7000 modules without a repeater I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
1.6.5. Using DI/DO of I-7521(D) (valid for I-7521(D)/I-7522(D)/I-7523(D)) I-7521 Ext. GND Ext. 24V Data+ Inductive load or Conductive load INIT* Dry contact or TTL/CMOS or (3.5V to 30V D/I) Current Limit Resistor Data- Load current <= 125mA COM1 D/I Block Diagram...
Load current <= 125mA X507 D/I Block Diagram TO_CPU 19~22 74HCT08 7522A D/O Block Diagram PW R C OM D O0 TO_CPU D O1 74HCT08 D O2 7522A D O3 U LN 2003A SOI C 16 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
1.6.7. Using a RS-485 of I-7522A(D) TXD3+ I-7522A TXD3- Ext.GND 7000 module Ext.24V Note: The RS-485 interface can directly drive 256 sets of 7000 modules without a repeater I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
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 “i7188XC>” or “i7188xB>” will be displayed on the screen. Step 2: Type the “dir” command, then press “Enter.” The following screen will be displayed: I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 35
NOTE: the text shown in the ellipse region is “i7188XC>” and will be displayed for I-7521/I-7522 /I-7523 modules, but “i-7188XB>” will be displayed for I-7522A/I-7524/I-7527 modules. Step 3: Type “752n_c” (for I-7521/I-7522/I-7523) or “752n_b” (for I-7522A/I-7524/ I-7527) and press the Enter key to execute the 752n_c.exe or 752n_b.exe file (Note: the INIT* pin should be...
Click “View 752n Firmware” and the firmware can be obtained: Location: Companion CD: Napdos\752N\Firmware_V3 http://ftp.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 I-752N module. The I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
The 5 digits of the 7-segment LED will show the address, Baud Rate and CrLfmode for each COM port in turns when the I-752n firmware is executed. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
COM2 determines the end of a command string when it encounters the 0x0D (CR) character. When manually entering individual command characters using a PC terminal application, the 0x0D (CR) character must be sent as the final I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 39
Set the corresponding CrLfmode for all COM ports depending on the command and response. For example: I-7522A Device COM2 of I-7522A COM1of I-7522A Command: ":01ABCD<CR>" sent by PC Device response: "EFGH<CR>," when the command is "ABCD<CR>" Situation 1: I-7522A, COM2 CrLfmode=0, COM1 CrLfmode=4 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 40
The data received for COM1 is "EFGH<CR>" where CrLfmode=4 (nothing added) and "EFGH<CR>" is sent for COM2 where CrLfmode=4 (nothing added). So the PC receives the string "EFGH<CR>". Command transformation: ":01ABCD<CR>",PC -->"ABCD<CR>",com2 -->"ABCD<CR>",com1 --> "ABCD<CR>", device Response transformation: "EFGH<CR>",device --> "EFGH<CR>",com1 -->"EFGH<CR>",com2 --> "EFGH<CR>",PC I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 41
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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 42
Response time< timeout1? ON or OFF? RS-232 COM Ports Response time: The period of time between when the RS-232 RS-232 device device receives a command and sends a response. Ensure that the command arrives in position “3”. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Click “Manual” ---> Download 7188xc_manual_english.pdf http://www.icpdas.com/products/PAC/i-7188_7186/i-7188xb.htm ---> I-7522A/I-7524 Click “Manual” ---> Download 7188xb_manual_english.pdf /I-7527 7188xc_manual_english.pdf and 7188xb_manual_english.pdf will teach how to programming. User can write a program and execute it on I-752N hardware. Here I-752N is as an embedded controller. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
RS-485 Host PC I-7521/22/22A/23A/23/24/27 I-7520 Host-PC I-7520R RS-232 Signal Data- Male 9-pin D-sub Data+ Com 1/2/3/4 or UART port Ext. GND Ext. 24V Female 9-pin D-sub COM2 I-7521/I-7521D RS-485 I-7522/I-7522D Signal I-7523/I-7523D COM1 Male 9-pin D-sub I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 46
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. Step 4: Execute 7188xw.exe on the Host PC. Choose “7188XW” and press Enter Click the “Tools” icon I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 47
Step 7: Set the Parity bit of the 7188xw to N. Press ALT + C Type n Press ENTER to confirm Step 8: Set the Data bit of the 7188xw to 8. Press ALT + C I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 48
Step 11: Switch on the power to the I-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*) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 49
Check that the module returns !027521 (for example: I-7521) Type the command $01M Press ENTER to send the command to the I-752N module Check that the module returns No response (for example: I-7521) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 50
Type b115200 to change the Baud Rate of the PC side. Press ENTER to confirm the Baud Rate=115200. Type the command $02M Press ENTER to send the command to the I-752N module. Check that the module returns !027521 (for example I-7521). I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 51
$01A02 $02M !027521 $01M $02B0115200 7188xwCmd:b115200original baudrate = 9600! now baudrate = 115200! Current baud rate is 115200 $02M !027521 $02F !02A3.03 Note*: Refer to Sec. 5.3.2 for more details regarding short codes for Baud Rates. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Male 9-pin D-sub Date+ Female 9-pin D-sub Com 1/2/3/4 or UART port I-7521/I-7521D Ext. GND I-7522/I-7522D Ext. 24V I-7523/I-7523D Remote-PC RS-485 Signal COM2 RS-232 Signal COM1 Male 9-pin D-sub Male 9-pin D-sub Com 1/2/3/4 or UART port I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 53
Step 4: The Host PC sends “abcde” string to the Remote PC Type :01abcde Press ENTER to send the command string to the I-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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 54
= 1200! now baudrate = 115200! 7188xwCmd:b9600original baudrate = 115200! now baudrate = 9600! Current baud rate is 9600 abcde Step 5: Send “12345” string from the Host PC to the Remote PC I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 55
7188xwCmd:b9600original baudrate = 115200! now baudrate = 9600! Current baud rate is 9600 12345 Note: If no Remote PC is available, the test can be performed by connecting TxD and RxD to the same COM port. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 56
AutoRun: Autodownload files: None Current work directory="D:\vic\752n\others\ECR\061102" original baudrate = 9600! now baudrate = 115200! 7188xwCmd:b9600original baudrate = 115200! now baudrate = 9600! Current baud rate is 9600 {change to Line Mode} $01M !017521 :01NoRemotePC NoRemotePC I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 58
Current set: Use COM7 115200,N,8,1 AutoRun: Autodownload files: None Current work directory="D:\vic\752n\others\ECR\061102" 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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 59
Current set: Use COM7 115200,N,8,1 AutoRun: Autodownload files: None Current work directory="D:\vic\752n\others\ECR\061102" 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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Utility Ver 3.11/and locate the MiniOS7 Utility Ver 3.11. menu, select “New connection”. Select the Step 5: From the correct COM port and set the other parameters. Click the OK button and the utility will automatically search for the module. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 61
Step 6: Ensure that the MiniOS7 Utility is connected to the I-752N module. indicates it is connected. indicates that it is disconnected. See here to determine the connection status. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Drag the file to the right hand panel or click to load file into module. I-752N(D) file list Step 8: Power off I-752N and disconnect INIT* and GND pins. Note: I-7521/I-7522/I-7523 modules need 752N_C.exe and autoexec.bat. I-7522A/I-7524/I-7527 modules need 752N_B.exe and autoexec.bat. 3.4.2.
4.2 DI Operation Principles The I-752N series DI commands are as follows: synchronized sampling. All modules will sample the DI at the same time $AA4 reads the synchronized sampling data. $AAYN reads the current state of the DI I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
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 I-752N modules will automatically revert to its safe state to avoid I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 65
The flow chart for the host computer is as follows: Set Safe Value Enable host watchdog Send ~**(CrLf) reset the host watchdog timer before the time Function 1 out expires Function n I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
The flow chart for module hardware watchdog failure detection is as follows: Send “$AA5” and determine Send “$AA5” and determine All DO will now be in their start-value. Send a “$AAZNV” command to reset the DO modules to their desire states. Function 1 Function n I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
~AA2 !AASTT Read the host watchdog status and value Sec. 5.3.26 ~AA3ETT !AASTT Enable the host watchdog timer Sec. 5.3.27 ~AA4P/~AA4S !AAV Read the power-on/safe value Sec. 5.3.28 ~AA5P/~AA5S !AAV Set the power-on/safe value Sec. 5.3.29 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
(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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
!01(CrLf) command: $01B19600(CrLf) Changes the RS-232 (COM1) Baud Rate to 9600 response: !01(CrLf) command: $02B138400(CrLf) Changes the RS-232 (COM3) Baud Rate to 38400 response: !02(CrLf) command: $03B1(CrLf) Reads the RS-232 (COM4) Baud Rate. response: !0357600(CrLf) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 71
(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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
$02D17(CrLf) Changes the data bit to 7 for the RS-232 (COM3) response: !02(CrLf) command: $03D17(CrLf) Changes the data bit to 7 for the RS-232 (COM4) response: !03(CrLf) Notes: (1) Address mapping refers to Sec.5.2 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
$02O12(CrLf) Changes the stop bit to 2 for the RS-232 (COM3) response: !02(CrLf) command: $03O12(CrLf) Changes the stop bit to 2 of the RS-232 (COM4) response: !03(CrLf) Notes: (1) Address mapping refers to Sec.5.2 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 77
(3) COM3 of the I-7522A module is RS-422/485 (4) The stop bit for COM1 & COM2 is always 1 when data bit is 8. (5) COM (1/3/4/5/6/7/8) of the I-7521/I-7522/7523/7523A/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.
The ID for the RS-232 (COM1) is Temperature1 response: !01(CrLf) command: $026HP34401A-1(CrLf) The ID for the RS-232 (COM3) is HP34401A-1 response: !02(CrLf) command: $036HP34401A-2(CrLf) The ID for the RS-232 (COM4) is HP34401A-2 response: !03(CrLf) Note: Address mapping refers to Sec.5.2 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
The ID for the RS-232 (COM1) is Temperature1 response: !01Temperature1(CrLf) command: $027(CrLf) The ID for the RS-232 (COM3) is HP34401A-1 response: !02HP34401A-1(CrLf) command: $037(CrLf) The ID for the RS-232 (COM4) is HP34401A-2 response: !03HP34401A-2(CrLf) Note: Address mapping refers to Sec.5.2 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
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 : (5) The delimiter cannot be $, ~, #, @, %, CR & LF I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Reads the delimiter for the RS-232 (COM1) : response: !01:(CrLf) command: $02D(CrLf) Reads the delimiter for the RS-232 (COM3) : response: !02:(CrLf) command: $03D(CrLf) Reads the delimiter for the RS-232 (COM4) * response: !03*(CrLf) Note: Address mapping refers to Sec.5.2 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
COM1 response: Depends on the device command: ;02123456789(CrLf) 123456789 Send to COM3 response: Depends on the device command: *03test(CrLf) test Send to COM4 response: Depends on the device Note: Address mapping refers to Sec.5.2 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
$01K000(CrLf) Checksum=1. Disables the checksum response: !0182(CrLf) chk: 00,82 command: $04K1(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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Example: (Assume the AA address value of the I-7523 module is 01) command: $01T0(CrLf) The end char for COM2 is no end character response: !014(CrLf) command: $01T1(CrLf) The end char for COM1 is 0x0D+0x0A response: !011(CrLf) command: $02T1(CrLf) The end char for COM3 is 0x0A response: !022(CrLf) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 85
$03T1(CrLf) 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 ie.the default (CrLf)=NONE for all port. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
(RS-232) (RS-232) (RS-232) I-7521 I-7522 AA+1 I-7522A* I-7523 AA+1 I-7524 AA+1 AA+2 AA+3 I-7527 Note: (1) The CTS status is valid for COM1, COM3, COM4 and COM5 (2) *COM3 of the I-7522A module is RS-422/485 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
DO = on 2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example: (Assume the AA address value of the I-7521 module is 01) command: $01Z10(CrLf) Set DO1=OFF response: !01(CrLf) command: $01Z21(CrLf) Set DO2=ON...
Page 90
I-7522A I-7523 I-7524 I-7527 Note: If the host fails, the $AAZNY command will be ignored. And the response string will be ! (In normal situation, the response string will be !AA(S)) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 91
2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Response: no response Example: (Assume the AA address value of the I-7521 module is 01) command: #**(CrLf) Orders all modules to perform synchronized sampling response: no response...
2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example : (Assume the AA address value of the I-7521 module is 01) command: #**(CrLf) Orders all modules to perform synchronized response: no response sampling...
Page 93
#**[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 $AA4 to read the data separately. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example: (Assume the AA address value of the I-7521 module is 01) command: $015(CrLf) It is first time power-on reset response: !011(CrLf) command: $015(CrLf)
Page 95
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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example: (Assume one I-7521 module is addressed 01, another is 02) command: $01F(CrLf) The version number of module 01 version is response: !01A2.0(CrLf) command: $02F(CrLf) The version number of module 02 version is response: !02A3.0(CrLf)
2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example: The name of module 01 is 7521 command: $01M(CrLf) response: !017521(CrLf) command: $02M(CrLf) The name of module 02 is 7523 response: !027523(CrLf) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
9600 BPS, data bit 8, parity bit none, and the response: !00406800(CrLf) checksum is disabled The COM2 (RS-485) has a Baud Rate of command: $002(CrLf) 115200 BPS, data bit 8, parity bit none, and response: !0040A801(CrLf) the checksum is enabled I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 99
The host watchdog timer is reset and restarted. Syntax: ~**[chk](CrLf) Delimiter character 2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Response: no response Example: command: ~**(CrLf) response: No Response I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
The status of module 01 is OK response: !0100(CrLf) The status of module 02 is “host watchdog command: ~020(CrLf) failure” HOST is off-line now response: !0204(CrLf) The status of module 02 is ---host watchdog command: ~020(CrLf) is running response: !0280(CrLf) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
2-character module address in HEX format 2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example: (Assume the AA address value of the I-7521 module is 01) command: ~010(CrLf) The module status=0x04 host is off-line response: !0104(CrLf)
Page 102
Host software watchdog failure All DO values return to their saved values Module status=04 host watchdog failure Ignores all host DO commands until the module status is cleared to 0 using the ~AA1 command I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
End Character Example: The host watchdog timer of module 01 is command: ~012(CrLf) disabled response: !01000(CrLf) command: ~022(CrLf) The host watchdog timer of module 02 is enabled and is set to 0.1*10 =1 second. response: !0210A(CrLf) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 104
Host software watchdog failure All DO values return to their initial save values Module status=04 host watchdog failure Ignores all host DO commands until the module status is cleared to 0 using the ~AA1 command I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Example: command: ~013000(CrLf) Disables the host watchdog timer for module 01 response : !01000(CrLf) command: ~02310A(CrLf) The host watchdog timer of module 02 is enabled and is set to 0.1*10 =1 second. response : !0210A(CrLf) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example: (Assume the AA address value of the I-7521 module is 01) command: ~014P(CrLf) The power-on value is DO-1/2/3 all ON response: !017(CrLf) command: ~014S(CrLf)
2-character checksum. If the checksum is disabled no [chk] [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) command: ~025S(CrLf)
01 Response: data1(CrLf) Command: $01U(CrLf) Retrieves another data: “data2” from the buffer of the port that is addressed 01 Response: data2 Command: $02U(CrLf) No data in the buffer of the port that is addressed 02 Response: I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 109
PC sends command “$01U(CR)” will read one data one time. First time, send “$01U” Get the data “!01789(CR)” Second time, send “$01U” Get the data “!01qwe(CR)” Third time, send “$01U” Get the data “!01GHJ(CR)” I-7524 789(CR) qwe(CR) GHJ(CR) $01U(CR) Com2 Com1 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
!01 (CrLf) command: $01L21(CrLf) Sets DO2=ON, other DOn values are response: !01 (CrLf) unchanged. command: $01L30(CrLf) Sets DO3=OFF, other DOn values are response: !01 (CrLf) unchanged. command: $01LE(CrLf) Sets DO0=OFF, DO1, DO2, DO3=ON response: !01 (CrLf) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 111
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) DO0~3 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Sets the timeout value of the RS-232(COM 1) to 1500ms response: !01(CrLf) command: $01J1(CrLf) Reads the timeout1 value of COM1 The timeout1 value of COM1 is 1500ms. response: !011500(CrLf) The default timeout1 value for all RS-232 COM ports is 1000ms. Notes: RS-485: timeout0 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 114
COM3 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, N can be either "1," "4," "8" or "14." The timeout1must be greater than timeout2. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
!011(CrLf) command: $02G14(CrLf) Sets the trigger level of COM3 to 4 response: !02(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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
syntax error, communication error, or address error > Delimiter character indicating a valid command Delimiter character indicating an invalid command 2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 117
>(CrLf) DO5=OFF Reads DO1=OFF, DO2=OFF, DO3=OFF, command: DO4=ON, response: >02081F(CrLf) 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) DI1=high(1), command: @017 Sets DO1=ON, DO2=ON, DO3=ON response: >(CrLf) Note: If the host fails, the @AAh/hh command will be ignored and the response string will be“!.”...
Delimiter character indicating an invalid command 2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example: (Assume the AA address value of the I-7521 module is 01) command: #010003(CrLf) Sets DO1=ON, DO2=ON, DO3=OFF response: >(CrLf)
2-character module address in HEX format 2-character checksum. If the checksum is disabled no [chk] [chk] (CrLf) End Character Example: (Assume the AA address value of the I-7521 module is 01) command: #011201(CrLf) Sets DO3=ON response: >(CrLf) command:...
2-character checksum. If the checksum is disabled no [chk] [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: !010(CrLf) The prefixed address byte is disabled.
The mode is enabled. Note: 1. Example : Assume the mode of COM4 of I-7523 is enabled. I-7523 will bypass the data “ABCD(Cr)” to COM2 directly. I-7523 RS232 RS485 RS-232 device COM4 COM2 Bypass data: ABCD(Cr) Data: ABCD(Cr) I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 123
Set COM3: $02E1 Enable the mode of the prefixed address byte on the response. $02H1 Enable the mode of bypassing the data string to COM2. Assume the data “ABCD(Cr)” is quicker than data “1234”. Data: ABCD(Cr) I-7523 RS-232device COM1 COM2 RS-232device COM3 Bypass data: Data: 1234 !01ABCD(Cr) !021234 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Restore to factory default setting for all com ports. response: !02(CrLf) command: $01I1(CrLf) Restore to factory default setting for all com ports. response: !01(CrLf) Note: Please refer to the beginning of Sec.3 “Quick Start” for factory default setting. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
HP34401A (RS-232) Host PC Multimeter PC COM port TxD(3) TxD(3) RxD(2) RxD(2) DTR(4) DTR(4) DSR(6) DSR(6) GND(5) GND(5) The default settings of the HP34401A are as follows: Baud Rate=9600 Data-bit=7 Parity-bit=EVEN Stop-bit=2 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 126
Set the multimeter to remote-control mode Any key pressed? Ask for measuring Set the multimeter back to local mode Acquire reading Note: the PC COM port should be 16550 compatible. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
RS-232 signal from PC to an RS-485 signal. The I-7522 module is used as an “Addressable RS-232 converter” for the HP34401A since there is no address setting in the HP34401A. I-7520 RS-232 RS-485 Host PC I-7522 HP34401A (RS-232) HP34401A 7522 RS-232 port RS-485D+ RS-485D- I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 128
A flow chart illustrating the functionality of the hp22_1.c file is shown below: start Set the multimeter to remote-control mode Set the multimeter Any key back to local pressed? mode Ask for measuring Acquire reading Note: the PC COM port should be 16550 compatible. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
9600 (default) 9600 (default) Parity None (default) Even Data 8 (default) Stop-bit 1 (default) The RTS3 pin of the COM3 port on each module must first be set as active HIGH to enable the HP34401A. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 130
Set the Any key key ’q’or ’Q’ multimeter multimeters start pressed? pressed? back to local mode remote-contr ol mode Request Send the Receive a multimeter command to response from command multimeter the multimeter Execution examples: I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
RS-232 converter” for the HP34401A, since there is no address setting on theHP34401A. Two HP34401A can be connected to a single I-7523 module. I-7520 RS-232 RS-485 Host PC I-7523 HP34401A #1 (RS-232) HP34401A #2 (RS-232) 7523 HP34401A #1 HP34401A #2 RS-232 port RS-232 port I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 132
// #1 HP HPSendCommand(ComNo, ":03SYST:REM"); // #2 HP HPSendCommand(ComNo, ":03*CLS"); // #2 HP WaitClock(18); void CloseHP(int ComNo) HPSendCommand(ComNo, ":02*CLS"); // #1 HP HPSendCommand(ComNo, ":02SYST:LOC"); // #1 HP HPSendCommand(ComNo, ":03*CLS"); // #2 HP HPSendCommand(ComNo, ":03SYST:LOC"); // #2 HP CloseCOM(ComNo); I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
The key features of hp23_M.c are as follows: The RTS3 pin of the COM3 port on each module must first be set as active HIGH to enable the HP34401A. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 134
HPSendCommand(ComNo, ":05SYST:LOC"); // #3 HP HPSendCommand(ComNo, ":06*CLS"); // #4 HP HPSendCommand(ComNo, ":06SYST:LOC"); // #4 HP HPSendCommand(ComNo, ":08*CLS"); // #5 HP HPSendCommand(ComNo, ":08SYST:LOC"); // #5 HP HPSendCommand(ComNo, ":09*CLS"); // #6 HP HPSendCommand(ComNo, ":09SYST:LOC"); // #6 HP CloseCOM(ComNo); I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
The barcode-reader can scan a barcode at anytime, and the I-7521 module will store these barcodes in an internal buffer (1K bytes) The Host PC first sends $AAU command to all I-7521 modules. The destination I-7521 module will check its internal buffer. If there are any barcodes in the buffer, the I-7521 module will then send a single barcode back to the Host PC.
Page 136
(3) PC receives “!01ABCD” data. RS-232 ABCD I-7520 Adress: 01 I-7524 Com1 ring buffer1 RS-485 abcd Adress: 02 Com3 ring buffer1 Com2 Adress: 03 Com4 ring buffer1 1234 Adress: 04 Com5 ring buffer1 !01ABCD /!02abcd /!031234 A1B3 /!04A1B3 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 137
HP34401A. The RS-232 device can be used for command (Application 1) or null command (Application 2) type controller applications Refer to the 7523.c file for the source code of the firmware I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 138
Refer to Applications 1 and 2 for more information The I-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 ...
Page 139
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 I-7521 module. The Host PC only reads the timing values of the event counter as past of its system monitoring functions ...
Page 140
Application 8: Multiplex Control (Master type) Refer to Applications 1 and 2 for more information The onboard DO of the I-7521 module can directly drive a relay. The onboard DI can be linked to photo sensors to allow for event triggering.
Page 141
Refer to the 7522ODM5.c file for the source code of the firmware RS-232 I-7520 Host RS-485 Network COM1 COM2 COM2 COM2 RS-232 COM1 COM1 I-7520 I-7522 I-7522 COM3 COM3 (#01) (#AA) HP34401A HP34401A Emergency RS-485 Network I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
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: \NAPDOS\MINIOS7\UTILITY \MiniOS7_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/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
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 b) Go to Step 4 I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 144
Step 6: Type d: to change to the D:\> 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 I-7521/22/23: I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Page 145
If the I-752N module is connected to COM2 on the PC, then type 7188xw/c2 Press ENTER The following screen will be shown on the Host PC for I-7521/22/23: Microsoft Windows XP [版本 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\vic_tsai>d: D:\>cd 752n_c_060206...
Page 146
Step 9: Type dir Press ENTER The following screen will be shown on the Host PC for I-7521/22/23: ……………………… 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:\752n_c_060206"...
Page 147
Step 11: Type dir and press Enter to see the downloaded files. (752n_c.exe is for I-7521/22/23, 752n_b.exe is for I-7524/22A/27) i7188XC>dir 0)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 number is 2 Free space=157478 bytes i7188XC> Step 12: Disconnect the INIT* pin from the GND and power-off then power-on the I-7521/22/23/22A/24/27 module.
Appendix C Firmware Version information Download a description document about firmware version information: firmware_v3 http://ftp.icpdas.com/pub/cd/8000cd/napdos/752n/ folder readme.txt. The readme.txt illustrates some difference and improvement of firmware version. I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015...
Need help?
Do you have a question about the I-7521 and is the answer not in the manual?
Questions and answers