FC 224 - Digital In / Channel

The exception reporting digital in/channel function code provides addressing, startup, run-time, Harmony sequence of events (HSOE), and failure mode specifications for an individual or redundant pair of digital input channels on a Harmony I/O block or an S800 I/O module. The digital in/channel function code must reside in the same segment as the I/O device definition function code 221 or foreign device function code 228 to which it is mapped. This function is required for all configured digital input I/O block channels.

 

NOTES:

  1. This function code is used to support Harmony I/O blocks and S800 I/O modules only. Refer to the IOR-800 Gateway instruction for specific differences between Harmony I/O and S800 I/O.

  2. Function code 224 tunable specifications are not adaptable.

  3. All HSOE points (HSOE enabled with S10=1) must be constrained to the first sixteen channels (configured in S2 through S17) of the associated I/O device definition function code 221, or the first sixteen channels of the associated foreign device definition function code 228 (first channel configured in S4).

 

 

 

 

Outputs:

Blk

Type

Description

N

B

Input value with quality

 

 

 

Specifications:

Spec

Tune

Default

Type

Range

Description

S1

N

Null

String

0 - 32

32-character channel label

S2

Y

2

I

0, 1 or 2

Alarm state

S3

Y

0004

I

0000 to

0255

0xxx = debounce period in msec

S4

N

0

B

0 or 1

Normal input/undefined

S5

Y

0

B

0 or 1

Override value

S62

Y

0

B

0 or 1

Override enable

S7

N

2

I

Note 1

Block address of simulation value

S82

Y

0

I

0 or 1

Simulation enable

S92

Y

0

B

0 or 1

Status error inhibit

S10

N

0

B

0 or 1

HSOE enable

S11

N

5

I

5 - 50

HSOE buffer size

S12

N

0

I

0 - 255

HSOE maximum events

S13

N

0

I

0 - 60

HSOE event time interval

S14

N

0

I

0 - 60

HSOE off-scan time interval

S15

N

Null

String

0 - 32

Foreign device configuration parameters.

S16

N

0

I

Full

Reserved for future use

S17

N

2

I

Full

Block address of the next element of the foreign device

S18

N

0

I

Full

Spare

S19

N

0.000

R

Full

Spare

S20

Y

0.000

R

Full

Spare

 

NOTES:

  1. Maximum values are:9,998 for the BRC-100, BRC-200, BRC-300, and IMMFP11/12,  31,998 for the BRC-400 and HAC

  2. The specification value active state is permitted to operate only when S26 of the device definition function code 221 or S11 of the gateway function code 227 is enabled.

 

 

224.1   Explanation

 

224.1.1  Specifications

 

S1

(Channel label) Optional channel identifier. It is not required to be configured and can be null. The channel label can be up to 32 characters long.

 

S2

(Alarm state) Non-normal state.

0 = logic 0 alarm

1 = logic 1 alarm

2 = no alarm

 

S3

(Debounce period) Time allowed for stabilization of contacts (in milliseconds). The valid range is 0000 - 0255, with 0000  meaning no debounce. Not used for foreign device definition (function code 228) channels except by modules DI825, DI830, DI831, DI840, and DI885.

 

S4

(Normal input/undefined) A value of 0 selects normal input from standard I/O. A value of 1 puts the channel into an undefined state which will not affect the channel status. Specifications S6 and S8 take precedence when S4 = 0, but not when S4 = 1.

0 = normal

1 = undefined

 

S5

(Override value) The channel input value is overridden with this value if override enable (S6) is set to 1.

 

S6

(Override enable) A value of 0 disables override for this channel. A value of 1 enables override in this channel. Override, if enabled, will take precedence over normal input and simulation. Specification S26 of the I/O device definition function code 221 must reference a boolean output that is set to a 1 to permit this operation. Otherwise, it is ignored.

0 = disabled

1 = enabled

 

NOTE: A channel for which override is enabled will still be displayed on the HSOE log if the channel is HSOE enabled (S10=1).

 

S7

(Block address of simulation value) The channel input value is simulated with this block input when simulation is enabled (S8 = 1).

 

S8

(Simulation enable) A value of 0 disables simulation for this channel. A value of 1 enables simulation for this channel and receives its input from S7. Simulation has precedence over specification S4 normal input, but not S6 override. Specification S26 of the I/O device definition function code 221 must reference a boolean output that is set to a 1 to permit this operation.

Otherwise, it is ignored.

0 = disabled

1 = enabled

 

NOTE: A channel for which simulation is enabled will be displayed on the HSOE log if the channel is HSOE enabled (S10=1).

 

S9

(Status error inhibit) Inhibits this channel’s I/O error contribution to the BRC controller status. Specification S26 of function code 221 or specification S5 of the foreign device function code 228 must reference a Boolean output with a value of 1 to permit this operation. Otherwise, it is ignored.

0 = no

1 = yes

 

S10

(HSOE enable) Sequence-of-events (0 = No, 1 = Yes). Enables sequence of events processing and allocates buffer space.

 

NOTE: The only way to eliminate a point from an HSOE log is to disable HSOE.

 

S11

(HSOE buffer size) Number of events that will fit in buffer (5 - 50). Sequence-of-events queue size = 8 x (S11 + 1). The maximum number of event records that is possible to store before a buffer overflow occurs.

 

S12

(HSOE maximum events) Maximum events (0 - 255). The maximum number of digital input events that are recorded within the specified time interval (spec 13). Used for filtering in sequence of events. A value of 0 disables this feature.

 

S13

(HSOE event time interval) Event time interval (0 - 60). The time period (in seconds) in which events would be limited. Used for filtering in sequence of events. A value of 0 disables this feature.

 

S14

(HSOE off-scan time interval) Off-scan time interval (0 - 60 in seconds). This value specifies the time interval the digital input will be off-scan with respect to the events history buffer. Used for filtering in sequence of events. A value of 0 disables this feature.

 

S15

(Foreign device configuration parameters) A string data type containing configuration information specific to the digital input channel of a foreign device. The configuration parameters can be up to 32 characters long. No spaces are allowed within an individual parameter specification, and a blank character must separate each successive parameter specification.

For example: NORM=1 specifies the normal position for a channel of the S800 digital input module. The parameters are module specific. They are valid only for sequence of events (SOE) supporting S800 modules (DI825, DI830, DI831, DI840, and DI885).

 

NOTE: To avoid configuration mismatch module problem reports, enter a blank string in specification S15 for DI810 applications. The DI810 does not support the SOE function.

 

Parameter

Meaning

NORM=(0...1)

Normal position. NORM=0 (default) or NORM=1. Specifies the normal signal input value. This specification is used in first event determination. For example, if the parameter NORM=0 is specified, and the S800 module is powered-up or reset and the SOE channels input state is a 1, an initial SOE event will be reported. However, if the parameter NORM=1 is specified and the S800 module is powered-up or reset and the SOE channel’ input state is a 1, an initial SOE event will not be reported. This parameter applies only to the first event reported by the module. All subsequent input state changes will be reported by the module.

 

BLOCK=(0...1)

Block SOE events for this channel. BLOCK=0 (default) or BLOCK=1. This specification is used to control whether state changes on this channel are included in the SOE reporting. If the parameter BLOCK=0 is used, state changes will be reported for SOE. If the parameter BLOCK=1 is used, state changes will be blocked and will not contribute to the SOE report.

 

 

 

S16

Reserved for future use.

 

S17

(Block address of next element of the foreign device) Link to the next element of the foreign device definition function code 228. The default value indicates that this block is the last element. S17 must be set to the default value if function code 224 is configured as a channel of an I/O device definition function code 221.

 

S18 through S20

Spare

 

NOTE: S12, S13, and S14 act as an event filter to prevent a chattering digital input from filling a block (or controller) event history buffer. The specifications will temporarily place the digital input channel off-scan after the maximum number of events occur (S12) for the specified time interval (S13). The input channel would be placed back on-scan after the off-scan time interval (S14) had elapsed. This feature allows the channel to discard subsequent events when an excessive number of events occur during a defined time interval.

 

Example:

The maximum events specification (S12) is set to four, the event time interval (S13) is set to one second, and the off-scan time interval (S14) is set to one, and the digital input detected twenty events within one second. Only the first four events would be entered into the event history buffer, the remaining events would be discarded, and the scan would be restarted after one second.

 

 

 

224.1.2  Outputs

 

The digital in/channel (function code 224) has one block output.

 

N

Boolean input value with quality.

 

 

 

224.2   Application

 

 

 

The following notes apply to the function code operation in NORMAL, OVERRIDE, and SIMULATION modes:

 

In NORMAL mode (S4=0, S6=0, S8=0) with both inputs having quality good but the states do not match, the input channel will be considered in error (SUSP set in the exception report and an LIO error set in the BRC controller status).

 

In OVERRIDE mode (S4=0, S6=1, S8=X), the primary input state and override state (S6) are compared, and if they do not match, the input channel is considered suspect (SUSP flag set in the exception report, but no LIO error set in the Harmony controller status) since a bump in the block output value will occur upon exiting the OVERRIDE mode.

 

In SIMULATION mode (S4=0, S6-0, S8=1), the primary input state and the simulated state (<S7>) are compared and if they do not match, will cause a suspect condition for this channel (SUSP flag set in the exception report, but no LIO error set in the Harmony controller status).