5 status flags, 6 actions – Sensoray 2600 User Manual

Page 70

Advertising
background image

2600 Family Instruction Manual

65

Chapter 11 : Model 2652 SSR Module

• Communication time-out, which will occur if the client

fails to communicate with the 2652 module within a
programmable communication watchdog interval.

11.5 Status Flags

In addition to the standard flag bits that are common to all
IOMs (see Section 3.4.1), the status byte returned by a 2652
module includes one fault flag that is specific to 2652 module
types. The 2652 status byte is structured as shown in Figure
61.

Figure 61: 2652 Status Byte

STRM

- Active-high bit flag that indicates an error was detected

in the serial data stream that is used to control the SSR output
drivers. This flag can be cleared by invoking a ResetFlags
action.

11.6 Actions

This section describes the programmable actions that are
supported exclusively by the 2652 module. These actions may
be employed, in any sequence or combination, in MCmd action
lists.

2652 modules support all of the common actions that are
universally recognized by all IOMs, such as HardReset,
SoftReset

, etc. Refer to Chapter 5 for details.

Note: Model 2610 has a maximum MRsp size of eleven bytes.

11.6.1 GetInputs

Function

Returns the debounced, physical channel states of
all SSR channels.

Opcode

0x00

Command none

Response

(States)

Notes

The returned state values represent the
debounced, physical states of all SSR channels.
Because the inputs are sampled every 2
milliseconds, and the debounce period is 10
milliseconds, the returned state values will all
have an age ranging from 10 to 12 milliseconds,
plus any network communication latency.

Note that the physical states of all SSR channels
are returned, regardless of their respective
operating modes.

11.6.2 GetOutputs

Function

Returns the programmed output driver states of
all SSR channels. Note that the programmed
output driver states may not be identical to the
physical channel states (that would be returned
by GetInputs) as some channels may be
driven by external signal sources. In the case of
channels that have been configured for the PWM
mode, this function returns indeterminate state
values.

Opcode

0x01

Command none

Response

(States)

Table 36: Summary of 2652 Module Actions

Command

Opcode

Function

GetInputs

0x00

Return all physical channel states.

GetOutputs

0x01

Return all programmed output states.

SetOutputs

0x02

Program all output driver states.

SetModes

0x03

Set operating modes.

GetModes

0x04

Return operating modes.

SetPwmRatio

0x05

Program PWM duty cycle and period.

GetPwmRatio

0x06

Return PWM duty cycle and period.

7

RST

6

CERR

5

4

HRST

3

0

2

1

0

0

0

2652-specific

Standard

STRM

0

Parameter

Function

States

Bit flags that represent the debounced,
physical states of all SSR channels.
Each bit is associated with one channel.
For example, bit 7 is associated with
SSR channel 7. Any bit set to one
indicates the associated channel is set
to the active state; any bit set to zero
indicates the channel is set to the
inactive state.

Parameter

Function

States

Bit flags that represent the programmed
output driver states of all SSR
channels. Each bit is associated with
one SSR channel. For example, bit 7 is
associated with SSR channel 7. Logic
one indicates the associated channel is
set to the active state; logic zero
indicates the inactive state.

Advertising