Data transfer via network
803
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 - -
ConfigNameTable - - - - - - DT FL - -
The size of the variable configNames1 has to correspond to the number of entries of the input
variable myDUT60.
As the DUT has three entries, the output variable configNames1 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.
Operands
Example
In this example the function is programmed in ladder diagram (LD).
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 configNames1 corresponds to the structure of the input variable myDUT60, its number
and type of elements.
LD
ST
When programming with structured text, enter the following:
If sys_bIsFirstScan then
configNames1:=FNS_InitConfigNameTable(myDUT60);
end_if;