Panasonic FP Series Programming Manual page 801

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data transfer via network
The following syntax table shows how to declare 16-bit, 32-bit and 64-bit variables and arrays
ProcessData
thereof when using them as ProcessDataTable input for the FNS_InitConfigDataTable function.
Table
Input Data type
INT, WORD
DINT, WORD, REAL, TIME
Array[0..0,0..3] of INT
Array[0..0,0..3] of WORD
Array[a ..b] of INT/Array[a ..b] of WORD
Array[a ..b] of DINT/Array[a ..b] of
DWORD/
Array[a ..b] of REAL/Array[a ..b] of TIME
Array[0..x,0..3] of INT
Array[0..x,0..3] of WORD
Operands
For
ProcessDataTable
ConfigDataTable
In this example, the same POU header is used for all programming languages.
Example
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.
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).
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.
800
Size of Input
16-bit
32-bit
64-bit
Array of 16-bit
Size = b-a+1
Array of 32-bit
Size = b-a+1
Array of 64-bit
Size = x+1
Relay
T/C
-
-
-
-
-
-
-
-
-
-
-
-
Comment
2-dimensional array;
size of second
dimension = 4
1-dimensional array
1-dimensional array
2-dimensional array;
size of second
dimension = 4
Register
Constant
DT
FL
-
-
DT
FL
-
-

Advertisement

Table of Contents
loading

Table of Contents