《变量声明问题请教.docx》由会员分享,可在线阅读,更多相关《变量声明问题请教.docx(1页珍藏版)》请在第一文库网上搜索。
1、FbRJSingIeBOardCtrI(BoardIdnexHomeIoAxisStRtPBoardStatusRtBoardiP1usQuantityOutIo:=1t:=g_RtBoard1HomeIo,:=gRtBOrd1AXis,:g_StRtBoard1Status,g_RtBoard1iP1usQuantity,g_RtBoard1OutIo);|其中:RJSingIeBOardetr1指令定义如下Inputs0utputsGraphica1DocumentatiFUNCTION_B1OCKRtsSingkBoardCtrINameTypeInheritedfromAddressI
2、nitia1MAxisST_RT_P_BOARD_AXISBoardIdnexBYTE,HomeIoARRAY1.6OFBOO1StRtPBoardStatusST_RT_P_BOARD_STATUS,RtBoardiPIusQuantityARRAY1.6OFDINT“OutIoARRAY1,.32OFBOO1全局变量定义如下:g_RtBordIAxis:ARRAY1.OFPOINTERTOAXIS_REF_SM3;ST_RT_P_BOARD_AXIS结构如下:NameTypeInheritedfromAddressInitia1CommentAxisARRAY1.6OFPOINTERTOAXIS_REF_SM3STRUCTSKSKBOARDAXIS编译后报错:OC32:CamotcverttypeARRAY1.6OFPOINTBiTOAXIS,REF-SM3,totypeSTRTPBOARDAXIS(rtmotion,2.0.0.7.Compi1ecomp1ete-1errors,Owarnings请问这个该如何决绝?或者说,AXiS的变量该如何定义?