Delta ISPSoft — 7.2.3 Input/ Output Pins of a Function Block

Chapter 7 Function Block and Library ㄨ Example 5: The data type of P_Var (in the caller) is LINT, and the data type of FB_Var (in the function block) is DINT.  The data type of P_Var is not the same as the data type of FB_Var. As a result, the data types are illegal. four elements. The array type of FB_Var (in the function block) is INT, and the size of the array for FB_Var (in  Example 6: The array type of P_Var (in the caller) is INT, and the size of the array for P_Var (in the caller) is the function block) is three elements.  The basic principles for the symbols whose data types are ARRAY are satisfied. As a result, the array types are legal.  Example 7:

The array type of P_Var is WORD, and the size of the array for P_Var is two elements. The data type of FB_Var is WORD (not ARRAY).  The second special principle for the symbols whose data types are ARRAY is satisfied. As a result, the array type and the data type are legal.  Example 8: The array type of P_Var is WORD, and the size of the array for P_Var is four elements. The data type of FB_Var is DWORD (not ARRAY).  The third special principle for the symbols whose data types are ARRAY is satisfied. As a result, the array type and the data type are legal. ㄨ Example 9: The array type of P_Var is DINT, and the size of the array for P_Var is four elements.

The array type of FB_Var is INT, and the size of the array for FB_Var is two elements.  The array type of P_Var is not the same as the array type of FB_Var. As a result, the array types are illegal.  Example 10: The data type of P_Var is DWORD (not ARRAY). The array type of FB_Var is WORD, and the size of the array for FB_Var is two elements.  The third special principle for the symbols whose data types are ARRAY is satisfied. As a result, the data type and the array type are legal. Principles of Data Types for DVPxxMC/ AS5xx Example 1 7-11