Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Nathan_MerlinIC

  1. Carlos, did you get this figured out? For some reason I don't always get notified by Lava.
  2. Porter, you were right I needed to change the address to hex. Now everything seems to be working. I can read and set the temperature. Thanks again!
  3. I found my wires were switched. Apparently Omron calls out A- B+ and my adapter uses A+ B- and I wired it using the letters instead of the +/-. Using Smithd's advice I went to a simple VISA chain and was able to read the hold register. Seems like the E5CC is using 2-byte mode. My command was 0103 2000 0001 8FCA and it responded 0103 0200 A4B9 FF, I parsed out 00A4 (164 deg C). Even though I was able to read the register I got error -1073676294 The number of bytes transferred is equal to the requested input count. More data might be available. I'm not too worried about the error at the
  4. I think I've narrowed down the timeout to the open serial session during the Acquire VISA Lock.vi. Not sure what this means or what to do about it, since it is embedded in the API's, which doesn't seem like something I should start altering.
  5. Another note in regards to the Comm Spec's. I re-read the manual and saw if I'm using modbus I need, the communications data length must be 8 bits, and the communications stop bits must be 1 bit by setting the communications parity to Even/Odd or it must be 2 bits by setting the parity to None. I'm running data length 8 bits and stop bit 1 bit with Even parity. I still get the timeout error during the VISA Read...still tracking it down. I also figured out how to see the full Write Command. I can now see how the Write Command is broken down into 01-Device, 03-Function Code, 07CF- Start
  6. I agree, according to the manual it uses modbus RTU. However when I switched over I still get an error from LabVIEW and nothing reported from the register. I can't decipher the write command line 27 and it look like the data length was changed from 7 bits to 8 (ASCII line 14 vs RTU line 14). I found in the data bits parameter and changed it to 7, but there wasn't any change to the results or trace (except that attribute). The labview error is a timeout issue so I changed the devices response time to 10 ms from 20 ms, but still get the error. The serial port configuration timeout is s
  7. I think we're making progress, but I still haven't been able to read the PV (temperature). I switched to your recommended Porter's implementation. I attached a screenshot of the block diagram and error that occurs when I run the vi. I also attached my latest I/O Trace. I think I'm reading line 28 from the trace correctly. 01-device ID, 03-read function, 07D1-starting address (2001), 0001-quantity of registers to read, 23-CRC-16 not sure what this means though. I would anticipate a response in a similar format, but I'm not sure how to interpret line 29 and I assume since it is red there i
  8. I also ran a NI I/O Trace to catch the exact string that was being sent to the device. I attached a screenshot of the I/O Trace. From what I can tell the read address status "0x3FFF0006" doesn't resemble the string I thought it would send. Not sure if this helps.
  9. Thanks for the response. I'm using what I believe is an updated free NI API module https://forums.ni.com/t5/NI-Labs-Toolkits/LabVIEW-Modbus-API/ta-p/3524019 (Link starts to download the Module http://forums.ni.com/ni/attachments/ni/7324/526/6/ni_lib_modbus_library- However I tried to get help from the NI forums and got a NI response that they don't support this module..thanks. They only support the modules that cost money. Regardless I tried your advice, but haven't been able to read a hold register. I think I'm still doing something wrong. I'm not getting any respo
  10. I'm trying to read (PV process value) and write (SP set point) the temperature on a Omron E5CC temperature controller using LabVIEW, Modbus, RS-485. I'm new to Modbus and have installed the free LabVIEW modbus library. LabVIEW "Create Serial Slave" seems straight forward, but I'm having issues with "Read Holding Registers". I'm not sure what to input for "starting address" and "number of inputs". I attached the E5CC communications manual, I just can't make sense of the addresses and commands and where/ how I use them in the LabVIEW code. Also is there a easy command or operation I can exec
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.