Author Topic: Accessing alarm bits through COM port?  (Read 5138 times)

chuck-wright

  • Newbie
  • *
  • Posts: 8
Accessing alarm bits through COM port?
« on: April 02, 2019, 05:45:57 pm »
Hi All,

I would like to read the states of the alarm bits through the COM port, but do not see a way to do this.

Is it possible?

Thanks,
Chuck Wright
KLDK-LP
DIxon, NM USA

Jan

  • Hero Member
  • *****
  • Posts: 1057
Re: Accessing alarm bits through COM port?
« Reply #1 on: April 02, 2019, 08:34:03 pm »
That's a good question. The alarm outputs are accessible for example using the command

Code: [Select]
49C,001?h
The value returned is HEX coded byte. It's a sum of following values:

0x80 - Alarm pin 2 active
0x40 - Alarm pin 3 active
0x20 - Alarm pin 4 active
0x10 - Alarm pin 5 active

The lower portion of the byte must be ignored.

So for example if you read 50, it means that pins 3 and 5 are high.

This information is currently valid for the P275 only.

chuck-wright

  • Newbie
  • *
  • Posts: 8
Re: Accessing alarm bits through COM port?
« Reply #2 on: April 03, 2019, 01:21:24 am »
Thank you!

I am actually currently using the P175, so suppose I will implement the alarms in software, using other values I can read from the serial interface.

- C

Jan

  • Hero Member
  • *****
  • Posts: 1057
Re: Accessing alarm bits through COM port?
« Reply #3 on: April 03, 2019, 06:10:11 am »
In the P175 the solution may be similar, the value is accessible at address 4C6.

chuck-wright

  • Newbie
  • *
  • Posts: 8
Re: Accessing alarm bits through COM port?
« Reply #4 on: April 04, 2019, 02:10:37 am »
I'll give it a try, let you know.
Thanks!
- C

chuck-wright

  • Newbie
  • *
  • Posts: 8
Re: Accessing alarm bits through COM port?
« Reply #5 on: April 04, 2019, 05:24:50 pm »
Works great, thanks! Tested loss of signal and silence detect.

Did notice that the hex characters on input must be in caps.

- C