Attached is a S7-300 project that flashes Q0.0 and has been run using PLC-SIM.
Which block would I need to modify and what would be the required changes to flash Q0.1 instead ?
Answer:In all the FC except FC1 do the following:
AN [AR1,P#0.1]
= [AR1,P#0.1]
Analysis:Fishy all the way.Lots of doubts.To explain if I will write first line of OB as BE. Now all the FC's from 1 to 20 has same code.All the FC's are being called through OB121 one after another except FC1.
So in OB121 I can change from existing
UC FC [#iJ] to
UC FC 3
and Q0.1 will still blink.
OB121 is called since first line of FB1 says: opn DB2
which does not exist hence OB121 is called upon with error
H#16#3A decimal equivalent of which is 58.
The manual of OB121 says H#16#3A means Access to a DB that has not been loaded!!
If we remove the instruction OPN DB2 from FB1 then we have to replace the 58 with 56 and q0.1 will still blink.Hexadecimal equivalent of which is 38 explanation of which in OB121 is not available.
So there is a another instruction which is calling Ob121 and that is CDB.
Is it right L D[AR2,P#0.0]??