[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Possible bug in xPLHVision
- Subject: Re: Possible bug in xPLHVision
- From: "gmotichka" <gmotichka@xxxxxxxxxxxxx>
- Date: Fri, 31 Dec 2004 15:12:20 -0000
As a follow up on this. I redid the terminator to again try the
timer. The action consists of this
Message type = command
Target = GSHED-HVISION.HOMEVISION
Schema = contol.basic
Device=13
Type=Timer
Current=Set
data1=00300000 (As bob said ssssmmhh)
In the four boxes of the GSHED-HVISION.HOMEVISION view I get this:
,=0d0400300000 (not 0b like Bob) conrtol.confirm
DEVICE=13TYPE=TIMERCURRENT OUTPUT:13
the rest is cut off
And then I get an error box from xPLDEV
Run-time error "9":
Subscrip out of range
Can the control.basic schema take extended (data1) paramaters?
By the way Bob, this did not reset all my timers. That may be
because it shut down with the error.
George M
--- In ukha_xpl@xxxxxxx, "gmotichka" <gmotichka@h...>
wrote:
>
> Bob, I'm glad you found this.
>
> I have been struggling all week trying to get a determinator to
work
> that involves a timer.
>
> I have an IR detector at the drive. when motion is sensed it
> triggers a macro that checks a timer and if it is stopped to then
> announce someone is arriving. The determinator is then to start a
> timer with 30 secs so that I dont here the announcement
contunually
> on every "on" action received. Once the timer is stopped
then it
can
> announce again. When it seeemed the timer wasn't working I tried
to
> disable the macro, but it seems that executing a macro from xPL is
> like manually executing it in HV -- it will run even if disabled.
>
> George M
>
>
>
>
>
>
>
> --- In ukha_xpl@xxxxxxx, "Bob Gardner"
<gardner.bob@g...>
> wrote:
> >
> > Steve,
> >
> > I think I may have found a timer problem. I defined an action
in
> a
> > determinator that was supposed to load and start a timer in HV
> with
> > one hour and 30 minutes. The parameters I used were:
> >
> > device=11
> > type=timer
> > current=start
> > data1=01300000
> >
> > I think this is correct according to your docs. The problem is
> that
> > the corresponding dde command sent is:
> >
> > ,=0B0401300000
> >
> > Two problems - the 04 is the command in HV to reset all timers,
> this
> > should be 00 to load and start a timer. Second, although some
of
> the
> > docs from HV are a little confusing, the time values need to be
in
> > reverse order i.e. SSSSMMHH and they need to be in hex. Thus for
> an
> > hour and a half, which is what I wanted, the time string should
be
> > 00001E01. While entering the values in reverse into data1 is no
> real
> > problem, the 1E caused problems and resulted in an incorrect dde
> > command.
> >
> > I tried the other three timer commands - HALT, RESUME, and STOP -
> and
> > they appeared to be correct.
> >
> > I have gotten around this by firing a macro which does the timer
> > stuff so there is no need to do anything but put it on your list
> for
> > a future fix. I just thought you might want it documented.
> >
> > As always, thanks for everything.
> >
> > Bob
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|