02-09-2015 03:10 PM - edited 02-09-2015 03:14 PM
I found more time to experiment VISA. I am still not getting a response from the Watlow controllers. Attached is a screenshot and vi of the vi that I am playing with. I think I have all the settings (posted above) correct.
Also attached is the "snooped" serial commands sent by the Watlow DLL.
What I don't understand from snooping the serial commads is that after the write Request, the data is read back 1 byte at a time...
000884: Write Request (DOWN), 02.02.2015 13:30:42.713 +0.0 (1. Device: RS-485 Port (COM4)) Buffer size: 0x10 bytes 55 FF 05 10 00 00 06 E8 01 03 01 04 01 01 E3 99 U�.....�......�� 000917: Read Request (UP), 02.02.2015 13:30:42.715 +0.0 (1. Device: RS-485 Port (COM4)) Buffer size: 0x1 bytes Status: 0x00000000 55 U 000925: I/O Request (UP), 02.02.2015 13:30:42.730 +0.0 (1. Device: RS-485 Port (COM4)) IOCTL_SERIAL_GET_WAIT_MASK: Retrieve current event mask WaitMask=None 000927: Read Request (UP), 02.02.2015 13:30:42.730 +0.0 (1. Device: RS-485 Port (COM4)) Buffer size: 0x1 bytes Status: 0x00000000 FF �
Any ideas?
02-17-2015 10:02 AM
I got the communication working. Turned out there was an issue with the wiring:
1) missing 120 ohm resistor
2) TX- needed to be connected to RX-
3) TX+ needed to be connected to RX+
As shown here (RS-485 topologies, 2 wire multi-drop network): http://www.ni.com/pdf/manuals/371253e.pdf
Now that I got it communicating, I need to work on reverse engineering the serial. This is what I have so far:
To read zone 1, parameter 4001, instance 1, the following hex needs to be written:
55 FF 05 10 00 00 06 E8 01 03 01 04 01 01 E3 99 || || |---| || |---| Zone Check? | | Check? Parameter | Instance
The controller responds with a value of -34.4565 (thermocouple disconnected) stored as an IEEE 754 float:
55 FF 06 00 00 00 0B 88 02 03 01 04 01 01 08 C2 09 D3 75 AA 85 |---------| IEEE 754
It seems like there are data checks in the hex strings. Does anyone know how these checks work?
Attached is a spreadsheet with the commands I used to identify the hex.
02-18-2015 12:33 PM
onlyjus,
It looks like these "checks" are specific to the commands and data returned from the Watlow EZ-Zone PM.
The format for commands and returned data may be better explained in the manual for the device. Have you seen any mention of the checks in the Watlow User Manual?
Regards
02-20-2015 03:52 PM - edited 02-20-2015 03:54 PM
There is no documentation for the RS-485 Standard Bus Protocol from Watlow. I tried talking to the tech support and they wouldn't give me any details...
FYI, I posted on the Reverse Engineering Stack Exchange to see if anyone over there has any ideas:
02-23-2015 04:12 PM
Thanks to the awesome response from Jason Geffner over at RE stack exchange, I managed to create a set of vis to read and write to the Watlow EZ-Zone PM controllers:
It works well at reading. I only tested limited writing mainly to parameter 7001, the process set point.
03-21-2019 06:43 AM
Your topic is old, but you can try https://www.com-port-monitoring.com/ I also used it in my work to "sniff" the serial commands over the serial port.
12-05-2024 07:28 PM
Thanks for posting these. Our setup has 2 zones. Zone 1 works without a problem with your vis, but zone 2 returns bad values and errors. Do you have any idea what the issue might be?