Seite 1 von 1

Use of TSI with Profilab

Verfasst: Freitag 3. Juli 2015, 10:55
von Nick Twyford
Guten Tag
Apologies dieser Text ist in Englisch, es ist lange her, seit ich zuletzt gesprochen Deutsch

Hello my name is Nick and currently I am working on a test system using profialb to control and obtain readings from 2 Gems pressure sensors and operate a burkert solenoid valve. So far I have been successful in operating these three components by using a DLP-IOR4 and a ABACOM ADC converter.

Now I want to encorperate a TSI mass flowemter (4040) into the system to obtain readings from this also, the TSI comes with two cables; currently we use a mini-DIN to 9-pin D-sub connection to transmit data, and use specifically designed software to configure the flowmeter however, there is also a analogue cable with leads as shown below:
1. Power Input (+)
2. Power Groung(-)
3. Analogue Output (+)
4. Analogue Ground (-)
5. No Connection
6. RS232 Receive (in)
7. RS232 Transmitt (out)

I have been advised that the RS232 connection would probably be the best way to obtain data from the flowmeter and simply use a USB com port to link this into profialb.
I wondered if anyone had any advice on what to do with this setup? Am I best using the analogue signal and running this through the ADC converter or am I best attempting to utilise the RS232 connection in some way.

Any help would be much appreciated,
Many thanks, Nick

Re: Use of TSI with Profilab

Verfasst: Freitag 3. Juli 2015, 12:09
von IKT
@Nick,

in the TSI4040-Manual it states:
- analoge: to obtain the measurment (depending on setup of device)
- RS232: you'll be able to fully control the device, which means in detail:
1) you are able to set the device up (as needed), as well as
2) to read the obtained values from it ...
This is the more versatile option. (No external setup utility required.)

The Abacom ADC is not directly compatible with the output of the TSI:
- ADC range = 0.0 - 4.095 VDC
- TSI A-range = 0.0 - 10.0 VDC
(I didn't read about the other device your've mentioned in your post.)

Therefore I'd use the RS232 option, by employing a suitable USB / RS232 converter.
IMPORTANT: it has to support VCP (virtual COM port)

Re: Use of TSI with Profilab

Verfasst: Freitag 3. Juli 2015, 12:31
von abacom
I have been advised that the RS232 connection would probably be the best way to obtain data from the flowmeter.
Yes, that´s what I wrote in my email. I´m still convinced this is the right way. This is the protocol you gave me...
Serial Interface Protocol
Data Format
The RS232 port settings are fixed in the Series 4000 / 4100 flowmeters as follows:
Baud Rate ........ 38,400
Data Bits .......... 8
Parity ................ None
Stop Bits ........... 1
Flow Control ..... None
Buffering
The flowmeters have an internal software buffer for both transmit and receive operations. Both buffers are 50 bytes long.
Command Format
The serial interface commands in this manual are designated by the bold font (ex. DmFTPnnnn). The commands are case sensitive. Upper case letters are used throughout the command set except as designated.
The TSI Series 4000 / 4100 flowmeters use ASCII characters as the input command set. Each command sent to the flowmeter must be terminated by a carriage return (CR = 0x0d). Line feeds (LF = 0x0a ) are ignored.
Select commands allow you to choose either ASCII or binary format for the returned data.


Command Set
Command Set Summary
Commands for Flow Rate, Temperature, Pressure and Volume
DmFTPnnnn Returns flow rate, temperature, and pressure data at an interval equal to the sample rate.

(...)

Re: Use of TSI with Profilab

Verfasst: Montag 9. März 2020, 16:25
von Elektronoob
Guten Tag,
ist es Ihnen gelungen die Werte aus dem TSI mittels RS232 auszulesen? Könnten Sie mir das Projekt zuschicken?
Gruß

Re: Use of TSI with Profilab

Verfasst: Mittwoch 11. März 2020, 10:38
von abacom
Dies scheint das Protokoll zu sein (ab PDF-Seite 31). Wenn´s doch immer so einfach wäre. :-)
http://www.sal.wisc.edu/PFIS/docs/rss-v ... manual.pdf

Baud Rate...............38,400
Data Bits.................8
Parity ......................None
Stop Bits.................1
Flow Control ...........None


Buffering
The flowmeter has an internal software buffer for both transmit and receive operations. Both buffers are 50 bytes long.

Command Format
The serial interface commands in this appendix are designated by the larger bold font (ex. DmFTPnnnn). The commands are case sensitive. Upper case letters are used throughout the command set except as designated.

These flowmeters use ASCII characters as the input command set. Each command sent to the flowmeter must be terminated by a carriage return (CR = 0x0d). Line feeds (LF = 0x0a ) are ignored.

Some commands allow you to choose either ASCII or binary format for the returned data. Binary data transfers allow for faster operation.

Some operating parameters can be stored in nonvolatile memory to serve as the new power-on defaults (example: sample rate, gas calibration, etc). After selecting the new operating parameter value, initiate the SAVE command to permanently store this new value. If the SAVE command is not initiated, the change to the operating parameter will be lost when the flowmeter is turned off. The factory default operating parameters can always be reset by initiating the DEFAULT command.

The meter send an acknowledge sequence to confirm that the command was received. For ASCII commands, the acknowledge sequence is “OK” <CR> <LF>. For binary commands, a single byte, 0x00 is returned.
TSI.jpg
TSI.jpg (91.29 KiB) 4307 mal betrachtet

Re: Use of TSI with Profilab

Verfasst: Mittwoch 11. März 2020, 10:57
von abacom
This should do the job in ProfiLab:
COM - Request / Response

This component allows to send a request and read the response afterwards with a single unit. A falling clock (/CK) sends out the request string ($REQ). While the component waits for the response BSY (busy) becomes HIGH. The incoming answer (response data) is made available at $RES output and BSY returns to LOW. In case of a missing answer a falling clock at BRK (break) can be used to chancel the wait. Final SYNC characters are used to recognize a completed answer. Instead of using SYNC characters, a fixed number of characters can be read as well. For that purpose feed the number of bytes to be read to the RLEN (read length) input, which must be valid with falling clock (/CK) trigger. Take care that the given length fits to the real response length, otherwise characters will remain in the serial input buffer. A falling edge at /FLSH (flush) can be used to empty serial input and output buffers.

All COM components may be used several times in any order and combination. You have to make sure that the inputs /SND and /CK are controlled in a way that is compatible with the protocol of your serial device. Only prepare a component for receive, when no other component is waiting for data (check BSY!).

Re: Use of TSI with Profilab

Verfasst: Samstag 28. März 2020, 12:59
von Elektronoob
hab´s geschafft. Danke

Re: Use of TSI with Profilab

Verfasst: Dienstag 21. April 2020, 09:26
von abacom
Vielleicht könnten Sie ein Beispiel-Projekt hochladen?