《变量声明问题请教.docx》由会员分享,可在线阅读,更多相关《变量声明问题请教.docx(1页珍藏版)》请在第一文库网上搜索。
1、FbRt_SingleBoardCtrl(BoardldnexHomeloAxisStRtPBoardStatus=1, g_RtBoardlHomeIor=g RtBordlAxis,=g StRtBoardlStatua rRtBoardiPlusQuantity = g_RtBoardliPlusQuantityrOutlo= g_RtBoardlOutIo ) ;|其中:RJSingleBoardCE指令定义如下InputsOutputs Graphical DocumentationFUNCTION_BLOCK Rt.SingleBoardCtrlName节 AxisTypeST_R
2、T_P_BOARD_AXISInherited fromAddressInitial专 BoardldnexBYTEHomeloARRAY 1.6OFBOOL StRtPBoardStatusST RT P BOARD STATUSMM,RtBoardiPlusQuantityARRAY 1.16 OF DINT,OutloARRAY 1.32OFBOOL全局变量定义如下:g_RtBordlAxis: ARRAYL OF POINTER TO AXIS_REF_SM3;ST_RT_P_BOARD_AXIS 结构如下:NameTypeInheritedfromAddress InitialCommentAxisARRAY 1.6 OF POINTER TOAXB_REF_SM3STRUCT HlRT P BOARD AXIS编译后报错: C0032: Cannot convert type ,ARRAY 1.6 OF POINTER TO AXIS-RB=SM3, to type ,ST-RT-PBOARD-AXIS(rtmotionz 2.0.0.7.Compile complete - 1 errors, 0 warnings请问这个该如何决绝?或者说,Axis的变量该如何定义?