11/3/2006 11:14 PM | |
Joined: 1/7/2006 Last visit: 11/17/2023 Posts: 2705 Rating: (318)
|
Hi Charran, Are you sure you have read all information..... The "x" by the Status Word have to be interpreted as a "0" or a "1" and is influencet by the commando that is described. I have checked the information in the folowing handbook and find also your "x"-es Statement List (STL) for S7-300 and S7-400 Programming |
I hope that the answer will help, if you have still questions, don't hesitate to ask me. |
|
11/4/2006 6:46 PM | |
Joined: 1/7/2006 Last visit: 11/17/2023 Posts: 2705 Rating: (318)
|
Hi Charran, Format L STW Description L STW (instruction L with the address STW) loads ACCU 1 with the contents of the status word. The instruction is executed without regard to, and without affecting, the status bits. Note For the S7-300 series CPUs, the statement L STW does not load the FC, STA, and OR bits of the status word. Only bits 1, 4, 5, 6, 7, and 8 are loaded into the corresponding bit positions of the low word of accumulator 1. Status word BRCC 1CC 0OVOSORSTARLO/FC Example STLExplanation The contents of ACCU 1 after the execution of L STW is: Bit31-9 8 7 6 5 4 3 2 1 0 So when a 'x' is standing somewhere then that status bit is influenced by the command thats directly before it. In this example is the RLO made by the Inputs and this one could be "0" or "1"....... A I 0.0 The first command is the one that makes the RLO (RLO = A I0.0), after that in the RLO is the status from I0.0, with that RLO is the"A I0.1" taken together, which is given a new RLO from the RLO before with A I0.1. Then the first use of the RLO is made with "= Q1.0" where the RLO is set to the output. |
I hope that the answer will help, if you have still questions, don't hesitate to ask me. |
|
Follow us on