From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

CAL9500 Temperature Controllers and Lookout

I am trying to make CAL9500 temperature controllers work properly with Lookout. I can send and receive data via modbus to and from the device. The problem lies within the device. Values can be read from the device without problem. Sending values causes the problem. The device accepts the changes into a command buffer but will not exit the command mode and activate the new values. I am told that sending a string with an ASCII object might help. Suggestions on how to send raw ASCII characters with the ASCII object would be appreciated. Anyone with any similar experience or insight please contact Dave Bruce
0 Kudos
Message 1 of 2
(3,168 Views)
.



Hi Dave,

I would recommend that you make efforts in getting the device itself to work properly, if at all possible; for the ASCII Object approach requires quite some work.

Anyway, if you want to use the ASCII Object to send the Modbus commands, you will have to first set it up so that the Requests (you send) and the Responses (you receive) are correctly formatted. This is done by using appropriate "format specifiers" in the RequestFormat and ResponseFormat datamembers. E.g., %s for string, %d for number, etc. Online help lists these and gives some examples.

Setting these RequestFormat and ResponseFormat is the toughest part. Once you've done this, you will use the RQVx datamebers to build your "message" and use the RSVx datamembers to receive t
he incoming response. Each RQVx corresponds to one format specifier in your RequestFormat. Similarly, each RSVx corresponds to one format specifier in your ResponseFormat. Then, you may want to build the final response by putting these RSVxs together.

During the testing, you can loop-back from one of your COM port to another using a null-modem cable. This is a great help in debugging. You will be able to see what message is being sent and can also simulate a response so that you can parse it out correctly.

Finally, when you're done with the message construction, and parsing the responses, you may want to use a DataTable with suitable Timers/Counters to automate the sending of the messages. More sophistication means more work, obviously.

Hope this helps,

Khalid 🙂



.
Message 2 of 2
(3,168 Views)