RMA
Member
Having spent the best part of a day chasing an intermittent fault which turned out to be that the Bit I was using to provide the edge to start some Timers very occasionally was getting set on the first run through the Block, so I had to move the command setting the Bit down behind the Timer Networks and finished up with the following:
Am I right in thinking that if I don't use the CLR here, because the ROL is set when the ORs are executed, the conditional Block end will always be executed?
This reminds me of another thing that I've wondered about a few times. I reckon the above string of ORs would be functionally identical if the first one (and only the first one) was replaced by an AND.
Am I correct in my thoughts, or do I still not really understand how this stuff works?
Code:
SET //These 2 lines
S #Trigger_LTS //were moved
CLR //and this was added
O #RM_HVR_NEG //previously the Block started here
O #RM_HVR_POS
ON #RM_LTS_NEG_AUF
ON #RM_LTS_POS_AUF
BEB
SET
R #DUMP_Relais
Am I right in thinking that if I don't use the CLR here, because the ROL is set when the ORs are executed, the conditional Block end will always be executed?
This reminds me of another thing that I've wondered about a few times. I reckon the above string of ORs would be functionally identical if the first one (and only the first one) was replaced by an AND.
Am I correct in my thoughts, or do I still not really understand how this stuff works?
Last edited: