FC 228 - Foreign Device Definition

The foreign device definition function code is required for all foreign devices. Function code 228 is used to make appropriate assignments of function codes 222, 223, 224, 225, and 229 to foreign device channels. Each foreign device incorporates a specific combination of channel data types (digital input, digital output, analog input, analog output, and pulse input).

 

NOTES:

  1. Function code 228 tunable specifications are not adaptable.

  2. All HSOE points (HSOE enabled with S10=1 of function code 224) must be constrained to the first sixteen channels of the associated foreign device definition function code 228.

  3. This function code is not supported by IMMFP11/12 and HAC01 controllers.

  4. Function code 228 must reside in the same segment as the gateway function code 227 to which it is mapped.

 

 

 

 

 

Outputs:

Blk

Type

Description

N

B

Primary communication block status with quality.

N+1

R4

Detailed status and communication quality of primary and backup redundant I/O modules.

 

 

 

Specifications:

Spec

Tune

Default

Type

Range

Description

S1

N

Null

String

0 - 32

32-character device label

S2

N

Null

String

0 - 255

Foreign device configuration parameters

S3

N

2

I

Note1

Block address of the next foreign device

S4

N

2

I

Note1

Block address of first channel

S52

Y

0

B

0 or 1

Device status error inhibit

S6

N

2

I

Note 1

Spare

S7

Y

Null

String

0 - 255

Spare

 

NOTES:

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

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

 

 

228.1   Explanation

 

228.1.1  Specifications

 

S1

(Device label) Device label of string data type used as a logical address of the foreign device. This label must match the device label configured in the foreign device. The device label can be up to 32 characters long. For proper operation, the label cannot be null and cannot be a duplicate of any other foreign device or channel label configured for the same communication port of its gateway function code 227.

 

For S800 I/O modules, the device label specifies the Modulebus address. The Modulebus address consists of a cluster number (1 to 7) and a module position (1 to 12) with a single delimiter character in between. A valid delimiter can be any non-numeric character. For example, the label 1.12 specifies cluster number 1, module position 12. The module address must start at the beginning of the label. Any text then can follow the address as long as it is delimited from the address.

 

For example, 3.1: Cluster #3, Module #1 is a valid label for the S800 module at cluster number 3, module position 1.

 

S2

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

 

Example 1 : TYPE=AI835 GRID=50 FJT=12.34 specifies an AI835 analog input module with a power grid frequency of 50 Hz and a fixed junction temperature of 12.34 degrees Celsius.

 

Example 2 : TYPE=DI840 REDUNDANT=1 SUPERVISE=0 specifies a redundant pair of DI840 Digital Input Modules with sensor voltage supervise disabled.

 

Example 3 : TYPE=DO840 REDUNDANT=1 TIMEOUT=512 specifies a redundant pair of DO840 Digital Output Modules with OSP time-out set to 512 milliseconds.

 

Example 4 : TYPE=DP840 REDUNDANT=1 EXTSHUNT=1 XDRTYPE=1 specifies a redundant pair of DP840 Pulse Counter Modules, external shunt configured, 12 volt inputs configured.

 

Example 5 : TYPE=AI843 REDUNDANT=1 GRID=60 FJT=25 specifies a redundant pair of AI843 Analog Input Modules, Grid frequency is 60 Hz, Fixed Junction Temperature is 25 degree C.

 

Example 6 : TYPE=DI810 FILTER=16 specifies a DI810 Digital Input Module with input debounce filter time set to 16 milliseconds.

 

The parameters are module specific (refer to the following tables).

 

NOTE: The debounce/filter parameter is not determined by this specification for S800 modules DI825, DI830, DI831, DI840, and DI885. It is instead determined by specification 3 of function code 224.

 

NOTE:

1. Default if parameter not specified.

2. Default is enabled, only allowed to specify disabled.

 

 

 

S3

(Block address of the next foreign device) Links the foreign device function code 228 to the next foreign device definition function code 228 in the list of foreign devices for the communication port of the gateway function code 227. The default value indicates the end of the list.

 

S4

(Block address of the first channel) Links the foreign device function code 228 to the first channel function code 222, 223, 224, 225, or 229 of the foreign device. The default value indicates that there are no channels configured for this foreign device.

 

For S800 I/O modules, the channel function code blocks are assigned to the channels of the S800 module in the order that they are specified in the linked list. That is, the first channel function code block in the linked list is assigned to the first channel of the module, the second channel function code block to the second channel, and so on up to the last used channel of the module. In order to skip an unused channel of a module, configure a channel function code block with its Normal/Undefined specification set to undefined.

 

S5

(Device status error inhibit) If set to one, inhibits all status errors originating from the foreign device from being included in the gateway function code 227 status. The default value causes all foreign device and channel errors to be included in the gateway's status if not otherwise inhibited at the channel level.

 

S6 through S7

Spare.

 

 

228.1.2  Outputs

 

N

Foreign device status (0 = good, 1 = bad). The foreign device status output is the error summary of all of its configured channels. The output value will be set bad if any problem is detected with a module or any channel of the module. For redundant modules, the output value will be set bad if there is a problem detected with either of the modules. Quality is set bad when FC 228 can not communicate with the foreign device. For redundant module pairs, quality will be bad only if communications with both modules is bad.

 

N+1

Foreign device status details. Quality is always set to good. Refer to the following table for N+1 values.

 

 

228.2   Application

 

Refer to the function code 227 description for an example of assigning function code 228 to a gateway function code 227 and the I/O channel function codes 222 through 225.