ˇ@

ISaGRAF 028

back

  Q: How to use multi-port Modbus Master in the WinCon-8037/8337/8737 & WinCon-8036/8336/8736 ?


   W-8x37 :           driver ver. 3.20 or later


   I-7188EG/XG & I-8417/8817/8437/8837 support only one Modbus Master port. (can be Modbus RTU Master or Modbus ASCII
   Master)

  

   WinCon-8037/8337/8737/8036/8336/8736 support Multi-ports of Modbus Master. (can be Modbus RTU Master or Modbus  
    ASCII Master)

   To use multi-ports of Modbus RTU or ASCII Master in WinCon, please connect ˇ§mbusˇ¨ or ˇ§mbus_ascˇ¨ in the ISaGRAF I/O
   connection windows as below.

 

   If you can not find ˇ§mbus_ascˇ¨ in your ISaGRAF, please visit
   http://www.icpdas.com/products/PAC/I-8000/isagraf.htm to download
   ˇ§ICP DAS Utilities For ISaGRAF.zipˇ¨.
   For new driver please click ˇ§New Driver for I-8xx7, 7188EG/XG & W-8x 37ˇ¨


  

 

   Then using below function blocks in your ISaGRAF Ladder or Function block program.

  

   Note:

  1. The ˇ§SLAVE_ˇ¨ setting in the below function blocks means Port No. & slave No.
    Port No. = SLAVE / 1000
    slave No. = SLAVE mod 1000
    For example,
    if SLAVE = 2001, Port No. = COM2 & slave No. = 1
    if SLAVE = 9002, Port No. = COM9 & slave No. = 2
    if SLAVE = 10002, Port No. = COM10 (MSP1:) & slave No. = 2;

  2. If you are using I-8112/8114/8142/ 8144 in WinCon, please plug these boards in WinCon first and then run ˇ§Startˇ¨ ˇV ˇ§Programsˇ¨ - "WinCon utility" - "Com" - "New Card Wizard" - "Slot Scan" , then click on "Save New Module" to properly set each extra COM port.
 Mbus_R Read max. 12 word-value (-32768 ~ +32767) using Modbus function code 3 or 4
Read max.192 bit-value using Modbus function code 1 or 2
 Mbus_R1 Same as Mbus_R but with one extra setting ˇV Period.
Read words or bits with a specified period time (unit is second)
 Mbus_N_R Read 8 word-value (-32768 ~ +32767) using Modbus function code 3
 Mbus_NR1 Same as Mbus_N_R but with one extra setting ˇV Period.
Read 8 words with a specified period time (unit is second)
 MBUS_B_R Read 8 bit-value using Modbus function code 1
 MBUS_BR1 Same as Mbus_B_R but with one extra setting ˇV Period.
Read 8 bits with a specified period time (unit is second)
 MBUS_N_W
Write max. 4 word-value (-32768 ~ +32767) using Modbus function code 6 or 16
 MBUS_B_W Write max. 4 bit-value using Modbus function code 5 or 15
 MBUS_WB Write max. 16 bit-value using Modbus function code 15

            Then follow below Ladder or Function block program.             

  For example:

  

 

 

back

Written by Chun Tsai 

Date:2005/11/01