beautypg.com

DNF Controls GC-32 GPIO Controller User Manual

Page 5

background image

Page 5 of 14

GPO Control, All GPOs

Command= 0x61

Data:

0x01

GPO State 0x00= OFF
0x01= ON

GPO On Time 0x01 through 0xFF (Internally, the On Time is multiplied by 10ms)

Send 44.4E.46.61.01.01.00 to latch on all GPOs

Send 44.4E.46.61.01.01.64 to turn on all GPOs and then automatically turn them off
after 1 second.

GC-32 will respond with ACK


GPO Status, Single GPO

Command= 0x70

Data:

GPO#

0x01 through 0x20

The GC-32 will respond with 44.4E.46.70.gg.ss, where gg= the specified GPO
number and ss= the GPO’s current state.


GPO Status, All GPOs

Command= 0x71

Data:

0x01

The GC-32 will respond with 44.4E.46.71.cc.gg1.ss1.gg2.ss2…..ggN, ssN
where cc is the number of GPOs included in the response

gg1 is the GPO number and ss1 is its current status
gg2 is the next GPO number and ss2 is its status
ggN is the last GPO number and ssN is its status

For Mode 1, the GC returns GPO numbers 1 – 32
For Mode 2, on port 50001 and port 50002, the GC return GPO number 1 – 16
On port 50002, GPOs 1 – 16 are physical GPOs 17 – 32