stevesimmermaker
Member
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;
cstring maintank1;
portprint(2,"1i20101");
maintank1=portinput(2,1,2,300,41);
MainTanks.Tank1Level=maintank1;