This will prevent a fault in our next section of this tutorial. When you are sure you understand how Indirect Addressing works, remove the MOV statement we just placed into your logic. With a pointer value of 3, you will see a 9 in MyTag. Try this with a pointer having the values 2 through 6 watching the Controller tags until you are sure that you understand how the Indirect addressing is working. If we change the value of the Pointer tag to 1, then the month is moved. We will use this array in the example below. In this tutorial, we copied the time into an array of 7 elements.
#Rslogix 500 addressing how to
If you have not yet done so, follow the tutorial on how to access the system time. I will assume that you are working on a test station with a new project in this example. Then, we will build a fault log for the purpose of troubleshooting. In this tutorial, we will start off with a simple demonstration of how indirect addressing works in the ControlLogix processor. This would tell us how many faults occurred, and the exact time of each fault. The next day, we would then look back at the fault log. Each time a fault occurs, we want to log the system time to a different memory location. This index would tell the logic which tank to perform the calculations on.Īnother example would be a fault log. Indirect Addressing allows us to write the logic one time, and feed a different index into the logic. We would have the exact same logic for each tank, but a different address to access for volume calculations.
This is an address that changes on the fly. ControlLogix Indirect Addressing allows you to have a variable address.