I suggest you also search for and download the manual for your specific 135U CPU from this Siemens site. This information is missing from your code snippet and the BR Register is typically loaded with an absolute memory address via the MAB instruction so have a look for that instruction. In order to work out how to replace this S5 instruction in an S7, you need to first determine what the contents of the BR register is. LRD adds the specified constant to the value in the BR register and then loads the doubleword from the absolute memory location addressed in this way into ACCU 1 (LRW works in the same way but loads words instead of doublewords).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |