Hi,
I've not come across this SFC before and the S7 Help file has left me confused also, In the code snippet below SFC36,37,38 are called every scan and i was wondering how it is applied, ie does it mask the value in the accumulator, DB??
I've attached the network in question below, a OPN DB statement is on the network before this.
The DB referenced is 1136 bytes long offline could this be the cause of this work around?
Any advice on this would greatly be appreiciated
Thanks
STL
I've not come across this SFC before and the S7 Help file has left me confused also, In the code snippet below SFC36,37,38 are called every scan and i was wondering how it is applied, ie does it mask the value in the accumulator, DB??
I've attached the network in question below, a OPN DB statement is on the network before this.
AN "TRANS-BEGINN"
S "TRANS-BEGINN"
A "TRANS-ENDE"
R "TRANS-ENDE"
AN #Stat_Approval
JC M004
L "SBNR"
T DBW 24
T #TEMP36
CALL "MSK_FLT"
PRGFLT_SET_MASK:=DW#16#10000000
ACCFLT_SET_MASK:=DW#16#0
RET_VAL :=#TEMP37
PRGFLT_MASKED :=#TEMP38
ACCFLT_MASKED :=#TEMP39
UC FC [#TEMP36] // 101 or 102
CALL "READ_ERR"
PRGFLT_QUERY:=DW#16#10000000
ACCFLT_QUERY:=DW#16#0
RET_VAL :=#TEMP43
PRGFLT_CLR :=#TEMP44
ACCFLT_CLR :=#TEMP45
L #TEMP44
L DW#16#10000000
==D
S #IO32
CALL "DMSK_FLT"
PRGFLT_RESET_MASK:=DW#16#10000000
ACCFLT_RESET_MASK:=DW#16#0
RET_VAL :=#TEMP40
PRGFLT_MASKED :=#TEMP41
ACCFLT_MASKED :=#TEMP42
M004: NOP 0
AN #IO32
A #Stat_Approval
= #OUT24
A "TRANS-ENDE"
CC "SEQ STEP GENERATION"
NOP 0
The DB referenced is 1136 bytes long offline could this be the cause of this work around?
Any advice on this would greatly be appreiciated
Thanks
STL