Ron Beaufort
Lifetime Supporting Member
at this point, I think that I've answered Peter's question:
but there's more to the story ...
look back at Example F – and suppose that Paul leaves the "problem" NON-retentive code there ... but ... suppose that Paul deletes the "unused" JSR rung shown in Example D ... in that case the fan would have the RETENTIVE operation that Paul desires ...
in simplest terms, in an Allen-Bradley ControlLogix or CompactLogix system, PRESCAN will not "find" a file which has absolutely nothing to "call" it into operation ... it doesn't matter that the "calling" mechanism is made "false" (as with an AFI) – but as long as the mechanism exists, PRESCAN will operate on the file ...
now for the PLC-5 platform (preview: this is slightly different) ...
in simplest terms, in an Allen-Bradley PLC-5 system, prescan WILL indeed "find" a file even if it has absolutely nothing to "call" it into operation ... specifically, if Paul had completely deleted the "unused" JSR rung in a PLC-5 program, then the fan still would NOT have regained the desired RETENTIVE operation ...
hopefully this will be helpful to someone who passes this way in the future ...
DISCLAIMER: I'm swamped with work right now – and have written this in "fits and starts" – mostly when I should have been sleeping ... I apologize for the inevitable typographical errors – and any other similar mistakes ...
What if a variable is assigned using a [:=] in one place and := in another?
but there's more to the story ...
look back at Example F – and suppose that Paul leaves the "problem" NON-retentive code there ... but ... suppose that Paul deletes the "unused" JSR rung shown in Example D ... in that case the fan would have the RETENTIVE operation that Paul desires ...
in simplest terms, in an Allen-Bradley ControlLogix or CompactLogix system, PRESCAN will not "find" a file which has absolutely nothing to "call" it into operation ... it doesn't matter that the "calling" mechanism is made "false" (as with an AFI) – but as long as the mechanism exists, PRESCAN will operate on the file ...
now for the PLC-5 platform (preview: this is slightly different) ...
in simplest terms, in an Allen-Bradley PLC-5 system, prescan WILL indeed "find" a file even if it has absolutely nothing to "call" it into operation ... specifically, if Paul had completely deleted the "unused" JSR rung in a PLC-5 program, then the fan still would NOT have regained the desired RETENTIVE operation ...
hopefully this will be helpful to someone who passes this way in the future ...
DISCLAIMER: I'm swamped with work right now – and have written this in "fits and starts" – mostly when I should have been sleeping ... I apologize for the inevitable typographical errors – and any other similar mistakes ...
Last edited: