06.01.2015 Views

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 13 - DIO Namespace<br />

dio.out.<br />

This variable contains the digital IO output pin value. Writing this variable<br />

triggers event.dio.out if the value is different than the current<br />

value. = 1 to 4.<br />

The following example sets digital outut pin 1 to high, generating<br />

event.dio.out.1 value=1.<br />

>>> dio.out.1 = 1<br />

ok<br />

Type<br />

Permissions<br />

Data Type<br />

var<br />

guest=r,admin=rw<br />

int<br />

Default 0<br />

Min 0<br />

Max 1<br />

dio.out.all<br />

This variable contains all the digital IO output pin values. Writing this<br />

variable triggers event.dio.out. and event.dio.all if the value is<br />

different than the current value.<br />

The following example sets digital output pins 1, 2 and 3 to high, pin 4 to<br />

low. This generates event.dio.out.n value=x for any pin that changes<br />

value and generates event.dio.all (in=0x5 out=0x07).<br />

>>> dio.out.all = 0x7<br />

ok<br />

Type<br />

Permissions<br />

Data Type<br />

var<br />

guest=r,admin=rw<br />

int<br />

Default 0<br />

Min 0<br />

Max 15<br />

148 <strong>INfinity</strong> <strong>510</strong> <strong>Protocol</strong> <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!