Sensoray 2600 User Manual
Page 71

2600 Family Instruction Manual
66
Chapter 11 : Model 2652 SSR Module
11.6.3 SetOutputs
Function
Programs the output driver states of all channels
that are configured for the Standard operating
mode.
Opcode
0x02
Command
(States)
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 2652 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.
11.6.4 SetModes
Function
Programs the operating modes for all channels.
Opcode
0x03
Command
(ModeFlags)
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.
11.6.5 GetModes
Function
Returns the operating modes for all channels.
Opcode
0x04
Command none
Response
(ModeFlags)
Notes
GetModes
returns the current operating modes
of all SSR channels. The operating modes may
be changed under program control (e.g., in
response to a SetModes action) or
unexpectedly (e.g., all channel operating modes
revert to the default when a module reset occurs).
11.6.6 SetPwmRatio
Function
Programs the PWM timing attributes for one SSR
channel.
Opcode
0x05
Parameter
Function
States
Bit flags. 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
ModeFlags
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
ModeFlags
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.