RMA
Member
I had this problem a few months ago when I first started playing around with S7-GRAPH, but I eventually got rid of, without really knowing how.
Now it's back again - I've got two S7-GRAPH FBs which are called cyclically in OB1. The actual run-control is done using the "OFF_SQ" and "INIT_SQ" signals using M-Bits. The first FB is launched by a Button in ProTool and it launches the second one by resetting the OFF_SQ Bit and setting the INIT_SQ Bit in the program (originally this should have been all one FB, but it got too big and had to be split).
On occasion, (and I haven't yet been able to determine why), the lauch of the second FB will work correctly, but usually it doesn't start, although in OB1 Online and in the VAT the Bits are set correctly. In that case, if I go Online in S7-GRAPH and use the "Test" facilities to re-initialise it, then the program always runs normally.
Unfortunately, I can't go back to the system and test further, because the hall's been shut down for the night.
The only thing I can think of, is that the control Bits, "OFF_SQ" and "INIT_SQ" are Bits in the same Byte. I thought the problem might be that the time between the OFF Bit going OFF and the INIT Bit switching ON, so I moved them so that clearing OFF is the first action and setting INIT, the third action, but that didn't have any effect.
According to the S7-GRAPH description, the actions are executed in sequence, but now I'm wondering, could it be that S7-GRAPH is a little too clever for its own (and my!) good and if it notices that actions in one Step are accessing the same Byte (or Word, etc.), that it bundles these operations and outputs the Byte, Word, whatever, all in one go.
Anybody any ideas?
Now it's back again - I've got two S7-GRAPH FBs which are called cyclically in OB1. The actual run-control is done using the "OFF_SQ" and "INIT_SQ" signals using M-Bits. The first FB is launched by a Button in ProTool and it launches the second one by resetting the OFF_SQ Bit and setting the INIT_SQ Bit in the program (originally this should have been all one FB, but it got too big and had to be split).
On occasion, (and I haven't yet been able to determine why), the lauch of the second FB will work correctly, but usually it doesn't start, although in OB1 Online and in the VAT the Bits are set correctly. In that case, if I go Online in S7-GRAPH and use the "Test" facilities to re-initialise it, then the program always runs normally.
Unfortunately, I can't go back to the system and test further, because the hall's been shut down for the night.
The only thing I can think of, is that the control Bits, "OFF_SQ" and "INIT_SQ" are Bits in the same Byte. I thought the problem might be that the time between the OFF Bit going OFF and the INIT Bit switching ON, so I moved them so that clearing OFF is the first action and setting INIT, the third action, but that didn't have any effect.
According to the S7-GRAPH description, the actions are executed in sequence, but now I'm wondering, could it be that S7-GRAPH is a little too clever for its own (and my!) good and if it notices that actions in one Step are accessing the same Byte (or Word, etc.), that it bundles these operations and outputs the Byte, Word, whatever, all in one go.
Anybody any ideas?
Last edited: