beautypg.com

DNF Controls GC-32 GPIO Controller User Manual

Page 4

background image

Page 4 of 14

GC-32 COMMAND SET

Set Operating Mode (Supported on port 50001 and 50002)

Command= 0x30

Data:

0= Select Mode 1

GPOs 1 – 32 and GPIs 1- 32 are allocated to port 50001. All commands on port 50002
that attempt to control or monitor will result in a NAK response

1= Select Mode 2
GPOs 1 - 16 and GPIs 1- 16 are allocated to port 50001.
GPOs 17 - 32 and GPIs 17- 32 are allocated to port 50002.

NOTE- On port 50002, the GPIs and GPOs are numbered 1 – 16 in Mode 2. Use

numbers 1 – 16 in all commands. Use of numbers 17 – 32 in commands will
result in an Invalid Data error message.

GC-32 will respond with ACK

Read Operating Mode (Supported on port 50001 and 50002)

Command= 0x31

Data:

No data is required

The GC-32 will respond with 44.4E.46.31.ss, where ss is the current operating mode. See
Set Operating Mode command for mode values.



GPO Control, Single GPO

Command= 0x60

Data:

GPO#

0x01 through 0x20


GPO State 0x00= OFF
0x01= ON

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

Send 44.4E.46.60.01.03.00 to latch on GPO #3

Send 44.4E.46.60.01.03.64 to turn on GPO #3 and then automatically turn them off
after 1 second.

GC-32 will respond with ACK