Ecreso Helios FM 20/100 W User Manual - page 64
Helios FM 20/100 W, user manual– 12/2011
Page 64
Head Office : Parc d’activites Kennedy - 20, avenue Neil Armstrong – F-33700 Bordeaux-Merignac (France)
Tel +33 (0)5 57 928 928 – Fax +33 (0)5 57 928 929 –
www.ecreso.com – contact@ecreso.com
However, the format of values returned by serial commands is hexadecimal.
You must then convert each 4 digit set as per the following table:
Hexadecimal Binary
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
A 1010
B 1011
C 1100
D 1101
E 1110
F 1111
Examples:
If the command
SYS.GPIO.IN.ACT
returns
8A
You must convert the hexadecimal value in binary, ie 8A=
1
000
1
0
1
0, which indicates that RC
2
,
4
and
8
are
activated.
To control RM
3
and
5
, convert the binary value 000
1
0
1
00: you get 14 as per the above table. You must
then send the command:
SYS.GPIO.OUT.MASK=14