mmartinezb

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mmartinezb

  • Rank
    Newbie
  1. It is possible read DNP 3 TCP/IP protocol directly DAQFactory, or is necessary create the driver ?? thank you very much Mauricio Martinez Santiago, Chile
  2. mmartinezb

    SNMP

    It is possible to generate Traps SNMP? Mauricio
  3. mmartinezb

    Problem Modbus Serial

    An important point, is necessary to add device.RGAM_42_Modbus.UnlockPort() For the continuous reading of the registries, it modifies the "If" by an "While" and device.RGAM_42_Modbus.UnlockPort() private string datain // lock port so regular driver doesn't interfere While (device.RGAM_42_MODBUS.lockport()) try // clear buffer device.RGAM_42_MODBUS.purge() // write output string device.RGAM_42_MODBUS.write(chra({1,7,0x2A,0x30,0x00,0x01,0x7D,0xDD})) // read 5 char response datain = device.RGAM_42_MODBUS.read(5) // confirm valid response if (mid(datain,1,1) == chr(7)) // put result into channel Mydata.AddValue(asc(mid(datain,2,1))) endif device.RGAM_42_Modbus.UnlockPort() catch() endcatch endwhile A new question, as I can transform this result to binary? Thank you very much Mauricio
  4. mmartinezb

    Problem Modbus Serial

    Ok thank you very much by the information, already I could read function 7: RGAM_42_MODBUS = my device 1 = address instrument 7= Funtion read exception status 0X2A and 0X30 =address of the required register 0x00 and 0x01 = number of the register to read 0x7D,0xDD = CRC Checksum (SimplyModbus6.3.2 it calculates the CRC very well ) Mydata = my chanel CODE private string datain // lock port so regular driver doesn't interfere if (device.RGAM_42_MODBUS.lockport()) try // clear buffer device.RGAM_42_MODBUS.purge() // write output string device.RGAM_42_MODBUS.write(chra({1,7,0x2A,0x30,0x00,0x01,0x7D,0xDD})) // read 5 char response datain = device.RGAM_42_MODBUS.read(5) // confirm valid response if (mid(datain,1,1) == chr(7)) // put result into channel Mydata.AddValue(asc(mid(datain,2,1))) endif catch() endcatch endif I use comm monitor of DAQFactory TX: \x01\x07\x2A\x30\x00\x01\x07\xDD "read(5) " "Mydata.AddValue(asc(mid(datain,2,1))) " RX: \x01\x07\x91\xE3\x9C Thank you very much Mauricio
  5. mmartinezb

    Problem Modbus Serial

    it is necessary to create a new protocol ? Quick -> Device configuration -> my device -> NEW PROTOCOL? you can help me I am starting off with DACFActory. Thank you very much Mauricio
  6. mmartinezb

    Problem Modbus Serial

    I need to read function 07 (Read Exception status), of the Modbus serial, tries with all the functions by defect, but it is not possible. Please help Mauricio