ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#21032 - 04/13/09 05:36 AM Polling PLM21 Lamp Modules?
jwilson56 Offline
journeyman


Registered: 04/09/04
Posts: 53
I have a few PLM21 2 Way Lamp Modules and was wondering if there was a way to have the Ocelot poll for their status? These lamp modules support polling.

John

Top
#21033 - 04/13/09 07:01 AM Re: Polling PLM21 Lamp Modules? [Re: jwilson56]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6401
Loc: Montreal, QC, Canada
If the modules support the regular X10 Status Request command then yes, you could do that. You would use the Transmit Single X10 command to send a module address command followed by a status request commmand, and start a timer to look for a response of Status On or Off response within a 3 second interval. You need to use the timer because the response does not have a unit number, just the house code and the status. This makes it impossible to know which unit code is responding if you have several pollable ones on the same house code. Instead, you need to poll them at seperate times.

IF (whatever)
THEN Transmit Single X10 A/1
THEN Transmit Single X10 A/Status Request
THEN Timer #1 = 1

IF Receive X10 A/Status ON
AND Timer #1 > 0
THEN (status was on...)
THEN Timer #1 = 0

IF Receive X10 A/Status OFF
AND Timer #1 > 0
THEN (status was off...)
THEN Timer #1 = 0

IF Timer #1 becomes > 3
THEN Timer #1 = 0
_________________________
"If you don't know what you're doing, do it neatly..."

Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
1 registered (kuro) and 21 anonymous users online.
Recent Posts
Basic Ocelot/IR-100 Question
by kuro
02/09/12 04:16 PM
SECU16IR Output Connecting To A Xantech Connecting Block
by Jean-Marie
02/09/12 08:36 AM
SECU16IR Output Connecting To A Xantech Connecting Block
by Jean-Marie
02/09/12 08:34 AM
how to post an icon
by manu
02/03/12 03:40 AM
Command Pair
by kuro
02/01/12 12:49 AM
Shout Box

Newest Members
feshh, manu, kuro, chuck214, Funkhauser
2747 Registered Users
Forum Stats
2747 Members
19 Forums
3837 Topics
22714 Posts

Max Online: 67 @ 08/16/11 03:08 PM
February
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29