S7 - Strange goings on in S7GRAPH

RMA

Member
Join Date
Sep 2004
Location
North of Hamburg, Germany
Posts
2,052
I've solved my problem, so this is not really critical any more, but I'd sure as heck like to know what's going on here, so that I don't get bitten some time in the future.

I've got a very simple S7GRAPH program that I use to set all my motor-driven switches back to a safe state when I do a RESET. In the RESET program a bit is set to call the S7GRAPH program ("M_DO_LTS_RESET"). After the sitches have been set-up the last two instructions clear the "M_DO_LTS_RESET" bit and set the "M_LTS_RESET_OK" bit.

If I do both of these together as in this screen dump, it works.

FB502_1.jpg


However, initially I only cleared the "DO" bit in this step and set the OK bit in the last step. I tried it both with a transition after 100ms and also with the transition controlled by the "OK" bit being set, as shown here. In both cases, the program would appear to run correctly through and shut down, but the "OK" bit wasn't set.

FB502_2.jpg


Anybody any ideas what's going on here?
 
It's reset in the RESET program, before the "DO" bit is set to cause the LTS_RESET FB to run, called from OB1.

I've checked and double checked in X-Ref, including MB/MW & MD all around M101.3. When the fault was present, I could set the "OK" bit in a VAT and it would stay set. As I said, the only difference is that I added the setting of the "OK" bit to the second-last, Step in the program (without removing the "SET" command in the last Step).
 

Similar Topics

First things first. I've applied the rockwell recommended fix: Shut down FTVS / Shut down RSL enterprise service / Delete the RDMDATA folder (tech...
Replies
1
Views
1,461
First off, apologies for forgetting to switch to English before making the screen dumps! For those (few) who don't know: U = A SPB = JC...
Replies
14
Views
5,107
Hello all, I am facing an issue with my Commander SK that I cannot solve on my own, I am struggling on it since several days :confused: The...
Replies
9
Views
1,035
Hi. I'm doing an upgrade of an old 1400e to a new panel view plus 7 standard using ftv studio v 12,which will be communicating to a slc 5/04 via...
Replies
15
Views
2,610
Can someone explain the jumper between the elements? Does it do anything? See attached jpeg.
Replies
4
Views
683
Back
Top Bottom