The management parameters are grouped together in a array of four integers. The values contained in this array are used to control the communication functions.
NOTE: In the technical documentation, these parameters are also known as a management table or report.
The table below describes the data structure of the communication management table:
Word Order
|
Most Significant Byte
|
Least Significant Byte
|
1
|
Reserved
|
Activity bit
|
2
|
operation report
|
communication report
|
3
|
Reserved
|
4
|
Length
|
This bit signals the execution status of the communication function.
It is set to 1 when launched and falls back to 0 when execution is complete.
This is the first bit of the first element in the table.
Example: If the management table has been declared in the following way:
Tab_Gest ARRAY [1..4] OF INT, the activity bit is the bit with the notation Tab_Gest[1].0.
NOTE: The notation used above requires Control Expert to be used in non-IEC mode. If this is not the case Tab_Gest[1].0 cannot be accessed in this manner.
The length parameter is used with the
FCT_SEND and
FCT_RECEIVE functions. The length parameter is also used with the
FCT_SELECT function. With
FCT_SELECT the length field is not used when the high byte of the INTE parameter is set to 00. You should set the length to 8 when the high byte of the INTE parameter is set to 01. A setting of 8 allows you to see the data associated with all 64 connections. If you set the value lower, say to 4, you will see only the data associated with the first 32 connections.