发布于 2011-04-08 23:10:52
7楼
FUNCTION_BLOCK FB20
VAR_TEMP
// Temporary Variables
END_VAR
VAR
Index1,Index2,Index3:INT;
// Static Variables
END_VAR
WORD_TO_BLOCK_DB(INT_TO_WORD(Index1)).DX[Index2,Index3] :=q0.0;
// Statement Section
;
END_FUNCTION_BLOCK