Sensoray 2600 User Manual

Page 78

Advertising
background image

2600 Family Instruction Manual

73

Chapter 12 : Model 2653 SSR Module

Command

none

Response

(S<7:0>),(S<15:8>)

12.6.3 SetOutputs

Function

Programs the output driver states of all channels
that are configured for the Standard operating
mode.

Opcode

0x02

Command

(S<7:0>),(S<15:8>)

Response

none

Notes

SetOutputs

programs the output driver states

of channels that are configured for the Standard
operating mode; it has no effect on channels that
are configured for the PWM operating mode.

In order to optimize the network response time,
SetOutputs

invokes a deferred processing

function on the 2653 module. When the
SetOutputs

action executes, it immediately

generates a response to acknowledge receipt of
the action, but the physical driver states may not
change immediately. Instead, the output drivers
will change to their target values within two
milliseconds of executing this action.

All modified outputs will change state
synchronously so that arbitrary groups of SSR
channels can be used in applications that require
“state machine” type behavior.

12.6.4 SetModes

Function

Programs the operating modes for all channels.

Opcode

0x03

Command (M<7:0>),(M<15:8>)

Response

none

Notes

Each channel may operate in either the Standard
mode or the PWM mode. Following a reset, all
channels default to the Standard operating mode.

When a channel’s operating mode is first
changed to the PWM mode, its output driver duty
cycle is reset to zero; this prevents the output
from going active until the duty cycle is explicitly
set by a SetPwmRatio action.

Similarly, when a channel’s operating mode is
changed to the Standard mode, its output driver is
reset to the inactive state to prevent its output
from going active until explicitly set by a
SetOutputs

action.

12.6.5 GetModes

Function

Returns the operating modes for all channels.

Opcode

0x04

Command none

Response

(M<7:0>),(M<15:8>)

Notes

GetModes

returns the current operating modes

of all SSR channels. The operating modes may
be changed under program control (e.g., in

Parameter

Function

S[]

Byte array containing 16 bit flags that
represent the programmed output driver
states of all SSR channels. Each bit is
associated with one SSR channel. For
example, bit 14 is associated with SSR
channel 14. Any bit set to one indicates
the associated channel is programmed
to the active state; any bit set to zero
indicates the channel is programmed to
the inactive state.

Parameter

Function

S[]

Byte array containing 16 bit flags that
specify the desired output driver states
for all channels. Each flag represents
the target output state for one SSR
channel. For example, bit 7 is
associated with SSR channel 7. Set a
bit to one to program the associated
channel to the active state, or to zero to
program the channel to the inactive
state.

Parameter

Function

M[]

Byte array containing 16 bit flags
that specify the operating modes for
all channels. Each bit is associated
with a channel number. For
example, bit 4 is associated with
channel 4. Set a bit to one to select
the PWM mode, or to zero to select
the Standard mode.

Parameter

Function

M[]

Byte array containing 16 bit flags
that indicate the operating modes for
all channels. Each bit is associated
with a channel number. For
example, bit 4 is associated with
channel 4. Logic one indicates
PWM mode, and zero indicates
Standard mode.

Advertising