
FNS_InitConfigDataTable Function
49
5.2 FNS_InitConfigDataTable Function
The FNS_InitConfigDataTable function creates a ConfigDataTable from the variable
ProcessDataTable
. This ConfigDataTable is necessary to configure the FP-FNS block.
Make sure that the size of the variable
ConfigDataTable
corresponds to the
structure of the ProcessDataTable, e.g. if the ProcessDataTable consists of
three entries, then the
ConfigDataTable
variable should be an "Array[0..2] of
WORD", whose size matches the number of entries. If the
ProcessDataTable
variable has only one entry (e.g. WORD), then the
ConfigDataTable
variable
should be an "Array[0..0] of WORD" (with size 1).
Allowed data types for the input of the FNS_InitConfigDataTable are all 16-bit
(INT, WORD), 32-bit (DINT, DWORD, TIME (32 bits), REAL) and 64-bit
variables or arrays of them. 64-bit variables are defined as 2-dimensional
arrays, e.g. "Array[0..0,0..3] of INT" is a 64-bit variable, while "Array[0..3] of
INT" represents an array with four elements of 16-bit variables.
The data types BOOL, STRING and arrays of these types are NOT allowed at
the input of the function FNS_InitConfigDataTable.
The output
ConfigDataTable
of the function must be an array of WORD.
In the programming example, both variables
ConfigIn
and
ConfigOut
must have a size of
three to accommodate the three elements of the DUT's inputs and outputs.
If no inputs or no outputs are used, just omit the corresponding network when creating the
configuration data.
Содержание FPSIGMA
Страница 1: ...programmable controller FPS FP2 Fieldbus Slave Units Technical Manual ...
Страница 7: ......
Страница 8: ...Chapter 1 Features and Restrictions ...
Страница 11: ......
Страница 12: ...Chapter 2 Parts and Functions ...
Страница 14: ...FP2 FNS Unit 13 2 2 FP2 FNS Unit ...
Страница 25: ......
Страница 26: ...Chapter 3 Specifications ...
Страница 32: ...Chapter 4 Installation and Wiring ...
Страница 48: ...Chapter 5 Programming Examples for FPWIN Pro ...
Страница 84: ...Chapter 6 Outline Dimensions ...
Страница 85: ...Outline Dimensions 84 6 1 Outline Dimensions of FP2 FNS Unit ...
Страница 86: ...Outline Dimensions of FPΣ FNS Unit 85 6 2 Outline Dimensions of FPΣ FNS Unit ...
Страница 87: ...Outline Dimensions 86 6 3 Dimensions of the FP FNS Blocks ...