The GC-32 controls 32 individual GPOs (relay contact closure outputs) and monitors 32
individual GPIs (opto isolated inputs).
Upon receipt of a GPO control command the GC-32 will turn on or off the specified GPO,
or turn all GPOs on or off as specified within the command. The GPO command also
details the time that the GPO will stay on. A time of zero (0) will latch the GPO on. Any
other time 1 – 255 (x 10ms) will cause the GPO to turn off when the specified time in the
command elapses.
A GPI change of state notification will be sent automatically when a GPI change of state
is detected. The notification may include one or more GPIs and will contain the affected
GPI and its current state. The GPI state is communicated by an incrementing count. An
even count indicates that the GPI is off. An odd count indicates that t GPI is on. The
count will wrap from its maximum value to zero. If a client is not connected, GPI
notifications for that connection will be discarded.
The GC-32 is configured as a server and the 3
will establish a TCP/IP connection to port 50001 or 50002 to control and monitor the GC-
rd
party application is the client. The client
Page 1 of 14
32 GPOs and GPIs. The client is responsible for establishing and maintaining the
connection. In the event of a loss of connection, the client is responsible for reestablishing the connection and re-configuring the GC-32, if required.
The GC-32 has two programmable operating modes. In Mode 1, all GPIs and GPOs are
allocated to the port 50001 connection and identified as GPI 1 to GPI 32, and GPO 1 to
GPO 32. In Mode 2, GPIs 1 – 16 and GPOs 1 – 16 are allocated to the port 50001
connection and GPIs 17 – 32 and GPOs 17 – 32 are allocated to the port 50002
connection. The operating mode of the GC-32 may be changed at any time. Changing
the operating mode will clear any pending GPI change of state notifications.
The GC-32 can be configured to accept a connection from any IP address on port 50001
or 50002. Or, it can be configured to accept a connection from only the specific IP
address for each port indicated on the GC-32’s Remote Device Assignment web page.
FRONT VIEW
REAR VIEW
DEFAULT SETTINGS
DEFAULT ETHERNET CONFIGURATION
IP Address: 192.168.10.217
Subnet Mask: 255.255.255.0
Gateway: 192.168.10.1
Use the GC-32’s System Configuration web page to change the IP address, subnet, and
gateway. See section at the end of this document.
DEFAULT OPERATING MODE
The default operating mode is Mode 1. Use the Set Operating Mode command
described below to change the operating mode.
Page 2 of 14
PROTOCOL DESCRIPTION
The GC-32 command consists of the following components:
Header + command + data
NOTE- The “+” is used for readability only and should not be used in the
command
The Header is hexadecimal value 0x44 0x4E 0x46
Dot notation is used in this document to describe concatenated hexadecimal values.
The header is referenced below as 44.4E.46
The command is an 8 bit value and is described below.
Data is one or more 8 bit values, and is specific to each command as described below.
All multi-byte values are formatted as big endian (MSB…LSB).
The GC-32 responds to all commands with an ACK, NAK, or the requested data. If a
complete command is not received within 2 seconds, the GC-32 will respond with a
timeout error message.
GC-32 RESPONSES
ACK= 0x04
GC-32 response: 44.4E.46.04
NAK= 0x05
GC-32 response: 44.4E.46.05.ee where ee is one of the following error codes.
0x10= Invalid command format
0x11= Invalid command
0x12= Invalid data
0x13= Command timeout error
Page 3 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
Page 4 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
Page 5 of 14
Loading...
+ 9 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.