Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

pressure sensor RS232 no response


vk Dec 11, 2023 04:06 PM

Hello,
I have a Honeywell pressure transducer that takes poll command [*00P1<cr> ] and provides a response [?01CP=18.321]. Data is received through a serial port (RS-232). The communication protocol is BR 9600, start bit 1, stop bit 1, data bit 8, and parity none. The following part of the code was written to test it, but the sensor does not respond. I would appreciate and be thankful if anybody could help me.

BeginProg
Scan(60,Sec,1,0)
SerialOpen (Com1,9600,0,0,100)
SerialFlush(Com1)
command = CHR(&H2A0050010D)                 ' poll command*00P1
SerialOutBlock(Com1,(command),1)
'Delay(2,10,mSec)
SerialInRecord (Com1,Instring,&H3F0143503D,0,0,NBytesReturned,1000)
NBytesReturned=SerialInBlock(Com1,Instring,100)
CallTable(Press)
NextScan
EndProg


smile Dec 16, 2023 10:33 AM

see what happens, staying in the middle between logger and sensor. Use the W option in the logger terminal menu. First verify that the query string is transmitted correctly.

Smile


MattyOWWW Dec 22, 2023 10:24 PM

This post is under review.

Log in or register to post/reply in the forum.