Panasonic FP Series Programming Manual page 804

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

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.
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
ConfigNameTable
In this example the function is programmed in ladder diagram (LD).
Example
POU header
All input and output variables used for programming this function have been declared in the POU
header.
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).
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
configNames1:=FNS_InitConfigNameTable(myDUT60);
end_if;
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
-
-
-
-
-
-
-
-
-
-
-
-
then
Data transfer via network
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
-
-
803

Advertisement

Table of Contents
loading

Table of Contents