Data transfer via network
800
Part III FP Instructions
Input Data type Size of Input Comment
INT, WORD 16-bit
DINT, WORD, REAL, TIME 32-bit
Array[0..0,0..3] of INT
Array[0..0,0..3] of WORD
64-bit 2-dimensional array;
size of second
dimension = 4
Array[a ..b] of INT/Array[a ..b] of WORD Array of 16-bit
Size = b-a+1
1-dimensional array
Array[a ..b] of DINT/Array[a ..b] of
DWORD/
Array[a ..b] of REAL/Array[a ..b] of TIME
Array of 32-bit
Size = b-a+1
1-dimensional array
Array[0..x,0..3] of INT
Array[0..x,0..3] of WORD
Array of 64-bit
Size = x+1
2-dimensional array;
size of second
dimension = 4
For Relay T/C Register Constant
ProcessDataTable - - - - - - DT FL - -
ConfigDataTable - - - - - - DT FL - -
The size of the variable ConfigDataTable has to correspond to the number of entries of the input
variable ProcessData.
In this example, the variable ProcessData is a DUT of the type ProcessDataStructure with the
following structure:
As the DUT has three entries, the output variable ConfigData has to be an array of WORD with a
size of three (e.g.: Array [0..2] of WORD).
ProcessData
Table
The following syntax table shows how to declare 16-bit, 32-bit and 64-bit variables and arrays
thereof when using them as ProcessDataTable input for the FNS_InitConfigDataTable function.
Operands
Example
In this example, the same POU header is used for all programming languages.
GVL
In the global variable list, you define variables that can be accessed by all POUs in the project.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When sys_bIsFirstScan is TRUE, i.e. in the first cycle, the function is executed. The value of the
variable ConfigData corresponds to the structure of the input variable ProcessData, its number
and type of elements.