Hi,
I have following problem with Step7 - I wanted to try how SFB4 and SFB5 works co I used following code in OB1 and loaded ot into S7Simulator:
CALL "TON" , DB100
IN:=M333.0
PT:=T#10S
Q :=M333.7
ET:=MD3000
CALL "TOF" , DB200
IN:=M333.1
PT:=T#10S
Q :=M333.6
ET:=MD3010
While SFB5(TOF) seems to work ok, SFB4 (TON) is not working at all. I get output Q(M333.7) at the same moment as input IN(M333.0) gets high.
Is it a problem of Simulator or I'm doing something wrong?
I have following problem with Step7 - I wanted to try how SFB4 and SFB5 works co I used following code in OB1 and loaded ot into S7Simulator:
CALL "TON" , DB100
IN:=M333.0
PT:=T#10S
Q :=M333.7
ET:=MD3000
CALL "TOF" , DB200
IN:=M333.1
PT:=T#10S
Q :=M333.6
ET:=MD3010
While SFB5(TOF) seems to work ok, SFB4 (TON) is not working at all. I get output Q(M333.7) at the same moment as input IN(M333.0) gets high.
Is it a problem of Simulator or I'm doing something wrong?
Last edited: