Red Lion CSMSTR Raw Serial Port>>Veeder Root

Join Date
Sep 2013
Location
AL
Posts
1
Hi, I am trying to write a program to read Tank Inventory from an Incon TS-750 fuel system that has an RS-232 output with Veeder Root. I have attached the page that details this parameter. This is my first time programming serial and I'm lost. I've read some of the other posts about programming the raw serial port. Below is the code I have come up with so far to read the tank volume and write to a tag:

cstring maintank1;
portprint(2,"1i20101");
maintank1=portinput(2,1,2,300,41);
MainTanks.Tank1Level=maintank1;
 
My first suggestion is to put this code into two separate programs. One program to request the data and another to read the data in. The reason for this is that the program which reads the data needs to be run OnUpdate of the comms port so that we dont' miss any incoming data.

You will also want to run an if statement which checks to make sure the string is not null before displaying. This will keep an empty read from blanking out your real value.

Thanks
Jeremy
 

Similar Topics

Hi all! Thank you for the opportunity to be in this forum. I’m hoping for some feedback on programming a Red Lion CSMSTR that’s connected to a...
Replies
13
Views
3,675
While they came up quickly with a fix for the alarm date issue quickly I will have to drive around for a week or so, burning up a lot of fuel...
Replies
4
Views
241
From the Red Lion website, after some customer enquiries in the last week or so... Rev. March 25, 2024 [18:30] Just thought it might help a...
Replies
9
Views
274
How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
104
Hello All, I need the ability to remotely reboot a Red Lion CR3000 HMI. Due to some graphics issues when the database is updated the HMI must be...
Replies
4
Views
217
Back
Top Bottom