beautypg.com

Relay control command, Tc command – Maxim Integrated 6613_OMU_2+2S_URT_V100 User Manual

Page 16

background image

6613_OMU_2+2S_URT_V1_00 Firmware Description Document

UG_6613_060

16

Rev. 1.1

4.6 Relay Control Command

Relay control is supported by the TC command. The TC command can be used to open (0) or close (1)
circuit of all 2 channels. All necessary Sequence (time between each channel), Energized (for closing
circuit), and De-Energized (for opening circuit) delay times are set up and used by the library using the
following default values:

Energized delay time =

0ms

De-Energized delay time =

0ms

Sequence delay time =

100ms

4.6.1 TC Command

The format of the TC command is as follows (where it is not a case sensitive):

>tc is the same as >TC or >Tc or >tC.

>TCxx where xx is a hex value with each bit represents the setting of each channel. The value of each bit
is determined as 1 = closing and 0 = opening 0. Both channels will be processed sequentially starting
from the highest channel number first with a sequence delay time in between. It is important to note that if
the polarity for each Channel is inverted, bit 1 of the Relay Config register (0xF0) will be set accordingly in
order for the Relay Control to work properly.

The TC commands are summarized in the following table:

TCx

Relay Control Commands

Description

Allows the user to control the relay of all channels in one command.

Usage







TC1 or TC01
TC2 or TC02
TC3 or TC03
TC0 or TC00

The TC command can be used to turn
on/off relay of both channels. Each bit
represents the control (1=on, 0=off) for
each channel where the LSB represents
the lowest channel number.
Examples:

Relay ON for Outlet 1, OFF all others.
Relay ON for Outlet 2, OFF all others.
Relay ON for both channels.
Relay OFF for both channels.