Got a machine running Siemens S5, that has issues. I'm struggling with the STL logic.
This is just a portion, just wanting to clear some things up, and make sure I'm reading it right before I get too deep in this 3" binder of code we have for the machine.
segment 1...My Interpretation
0000 :C DB 123...Call Data Block 123
0001 :L DW 10 ...Load Data Word 10 from DB 123, put into Accu 1
0002 :L KF + 10..Load constant KF(what is kf?) + 0 into Accu2 ................ (Or does that write over the previous Accu1?)
0004 :!=F .......Compare accu1 and accu2 if equal RLO = 1
0005 := F 151.0..F151.0 is set to 1. Is this just a memory address? Flag? Whats the Diff?
0006 :
0007 :A I 31.7...Input 31.7
0008 :S F 151.1..Set F 151.0 to 1 when I 31.7 is pressed.
0009 :*** end of segment.
I'm mainly unsure of the loading of Accu1 and Accu2. And what exactly is going on with the calling of DBs and loading of DWs.
This is just a portion, just wanting to clear some things up, and make sure I'm reading it right before I get too deep in this 3" binder of code we have for the machine.
segment 1...My Interpretation
0000 :C DB 123...Call Data Block 123
0001 :L DW 10 ...Load Data Word 10 from DB 123, put into Accu 1
0002 :L KF + 10..Load constant KF(what is kf?) + 0 into Accu2 ................ (Or does that write over the previous Accu1?)
0004 :!=F .......Compare accu1 and accu2 if equal RLO = 1
0005 := F 151.0..F151.0 is set to 1. Is this just a memory address? Flag? Whats the Diff?
0006 :
0007 :A I 31.7...Input 31.7
0008 :S F 151.1..Set F 151.0 to 1 when I 31.7 is pressed.
0009 :*** end of segment.
I'm mainly unsure of the loading of Accu1 and Accu2. And what exactly is going on with the calling of DBs and loading of DWs.
Last edited: