恭喜,你发布的帖子
发布于 2017-02-11 09:12:05
4楼
希望各位大神指教!!
L P##P_Sync_P //这里是p#DB351.DBX140.0 BYTE 32 //Read parameter DB to the temporary memory
LAR1
L W [AR1,P#0.0]
T #V_Temp1
L D [AR1,P#2.0]
T #V_Temp2
L D [AR1,P#6.0]
LAR1 P##V_DB_Address_Pointer//这里是应该是什么?
T D [AR1,P#6.0]
L #V_Temp2
T D [AR1,P#2.0]
L #V_Temp1
T W [AR1,P#0.0]
CALL "BLKMOV" //Save parameter DB content to the temporary memory
SRCBLK :=#V_DB_Address_Pointer
RET_VAL:=#V_SFC_RetVal
DSTBLK :=#V_Sync_P
L P##P_Sync_V //这里是p#DB351.DBX174.0 BYTE 58 //Read variable DB to the temporary memory
LAR1
L W [AR1,P#0.0]
T #V_Temp1
L D [AR1,P#2.0]
T #V_Temp2
L D [AR1,P#6.0]
LAR1 P##V_DB_Address_Pointer//这里是应该是什么?
T D [AR1,P#6.0]
L #V_Temp2
T D [AR1,P#2.0]
L #V_Temp1
T W [AR1,P#0.0]
CALL "BLKMOV" //Save variable DB content to the temporary memory
SRCBLK :=#V_DB_Address_Pointer
RET_VAL:=#V_SFC_RetVal
DSTBLK :=#V_Sync_V
://逻辑代码
:逻辑代码
:逻辑代码
:
:
CALL "BLKMOV" //Write variables from the temporay memory back to the variable DB
SRCBLK :=#V_Sync_V
RET_VAL:=#V_SFC_RetVal
DSTBLK :=#V_DB_Address_Pointer//这里是应该是什么?
SET
SAVE //RLO = 1
BE
@RENHQ
请填写推广理由:
分享
只看
楼主