FC 193 - User Defined Data Import

The user defined data import function code acquires user data input from another module in a different node via the Cnet communication network. The user data can then be read by user defined function (UDF), batch or C language programs within the module, or it can be exported by a user defined data export (function code 194) block.

 

For more information refer to the C Utility Program product instruction, the Batch 90 and User Defined Function (UDF) Programming Language Reference instruction.

 

NOTES:

  1. This function code can import user defined data from a source module in another node or from a block within the same module. This function code cannot import user defined data from another module within the same node. To import user defined data locally, import a file rather than using this function code.

  2. A module cannot utilize more than one user defined data import (function code 193) block to import data from the same user defined data export block (function code 194) that is in a module in a different Cnet node. This restriction does not apply to user defined data import blocks that import from user defined data export blocks which reside within the same module.

 

 

 

 

Outputs:

Blk

Type

Description

N

User

Defined

User defined data and status with quality

N+1

R

Block status

 

 

 

Specifications:

Spec

Tune

Default

Type

Range

Description

S1

N

0

I

0 - 31

Source module address

S2

N

0

I

Note 1

Source block number

S3

N

0

I

0 - 250

Source node address

S4

N

0

I

0 - 250

Source loop number

S5

N

0

I

0 - 80

Maximum user data length

S6

N

0

I

0 - 255

Engineering units

S7

Y

0

I

0 or 1

Startup control and force quality control:

0 = block quality on startup is bad

1 = block quality on startup is good

S8

N

0

R

Full

Spare

S9

N

0

I

Full

Spare

S10

Y

0

R

Full

Spare

S11

Y

0

I

Full

Spare

 

NOTES:

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

 

193.1   Explanation

 

The defined specifications of function code 193 include the source module address, block number, node address, loop address, maximum data length, engineering units and startup control. The module, block, node and loop specifications must reference a user defined data export function block (function code 194). The maximum data length specification sets the maximum allowable user data length. If an input to the block exceeds this length, truncation occurs and the count fields (included in the user data block output) will be set. The engineering units  specification can be used to describe the content of the user data (e.g., ASCII strings). The startup control specification can be used to force the block to output good quality on startup. The specifications, except for startup control, are not tunable.

 

193.1.1  Specifications

 

S1

Source module address.

 

S2

Source block number.

 

S3

Source node address.

 

S4

Source loop number.

 

S5

Defines the maximum user data length. The maximum user data length is a nontunable integer specification. If an input to the block exceeds this length, truncation occurs and the count fields (included in output block N) are set.

 

S6

Defines the engineering units.

 

S7

Defines the startup control. The startup control can be used to force the block to output good quality on startup.

0 = block quality on startup is bad

1 = block quality on startup is good

 

S8 - S11

Spare.

 

 

193.1.2  Outputs

 

N

Contains the user data and its alarm with quality status. The maximum output data length is 82 bytes (80 bytes of data plus two count bytes). Updates to this user data from the source user data export function block occur on an exception report basis.

 

N+1

Block status output multiplexed as a real value. Refer to function code 194, block output N+1 for more information.

 

 

193.2  Applications

 

Refer to Application Programs in function code 194.