xPL Monkey - Home Automation - xPLExec



NOTICE

My involvement with xPL has come to an end. Automation has moved on considerably over the past few years, and it is now possible to buy a stand-alone controller off the shelf for a reasonable price, without having to spend hours writing your own code.

This website is being maintained as a record of my xPL development work up until 2011.

I have released the full source code of all my xPL projects into the public domain. You can download the archive from here.

Mal



  xPL K8055
Description
Velleman K8055

The Velleman K8055 interface board has 5 digital input channels and 8 digital output channels. In addition, there are two analogue inputs and two analogue outputs with 8 bit resolution. The number of inputs/outputs can be further expanded by connecting more (up to a maximum of four) cards to the PC's USB connectors.

The xPL K8055 application allows the Velleman K8055 to be included in an xPL network.

Download




Platforms: Win98 / 2000 / XP / MCE / Vista / Win7
Author: Tim Walls
Version: 1.0.0.3
Filesize: 1.6Mb
Updated: 11th July 2007

Download

Installation

1. Start the setup.exe file included with the installation archive.
2. Run through the prompts to select the folder and start menu for the application.
3. Cick Finish to finish.

Configuration

The first time you run this application it will run in unconfigured mode. From here you will be required to launch your xPLHAL configuration software (e.g. xPLHAL Manager) and configure the options for this device.

You need to set the instance name of the device and any filters.

You will also find the configuration option “CARDPORT”. Here you may select a port number from 0-3 depending on which port you have configured the K8055 Card to use.

The application will create a file called config.ini after the first run which will save the source name of your device and the status of the digital and analogue outputs when you close the application.

Support

Support is provided through the xPL Forums.

Usage

The application uses two xPL schemas, control.basic for setting outputs, and sensor.basic for reporting the value of inputs.

For Digital Outputs:


xpl-cmnd
control.basic
{
device=# (the output to use, a number between 1 and 8)
type=output
current=high|low|toggle|pulse (state that the output should be set to)
}

 

For Analog Outputs:


xpl-cmnd
control.basic
{
device=# (the output to use, either 1 or 2)
type=slider
current=nn|+nn|-nn|nn% (indicates how the data1 value will be used to modifiy the output)
data1=# (analog output value between 0 and 255)
}

 

For Digital Inputs:


xpl-trig
sensor.basic
{
device=# (the input to use, a number between 1 and 5)
type=input
current=high|low (current digital input level)
}

 

For Analog Inputs:


xpl-trig
sensor.basic
{
device=# (the input to use, either 1 or 2)
type=generic
current=# (current analog value of input)
}

 

Examples

Set Digital Output 4 to “on”


xpl-cmnd
control.basic
{
device=4
type=output
current=high
}

 

Set Analogue Output 2 to “132”


xpl-cmnd
control.basic
{
device=2
type=slider
current=nn
data1=132
}

 

Set Analogue Output 1 to 37%


xpl-cmnd
control.basic
{
device=1
type=slider
current=nn%
data1=37
}

 

Decrement Analogue Output 1 by 65


xpl-cmnd
control.basic
{
device=1
type=slider
current=-nn
data1=65
}

 

Increment Analogue Output 1 by 234


xpl-cmnd
control.basic
{
device=1
type=slider
current=+nn
data1=234
}

 

Message generated when digital input 4 goes high


xpl-trig
sensor.basic
{
device=4
type=input
current=high
}

 

Message generated when the level of analog input 2 changes to 132


xpl-trig
sensor.basic
{
device=2
type=generic
current=132
}