bernie_carlton
Lifetime Supporting Member + Moderator
Can a timer which has been set up in the data table be operated merely by using its ENable bit as an output (OTE) instruction? The software accepts this but I haven't tried it on an actual CPU (where I suspect it will generate a runtime error).
As to the obvious question "Why would you want to do that?" I have multiple sections of the machine which are identical except for data which I am keeping in seperate data tables. I have a common processing file set up and I call it multiple times with the number of the controlling data table set. Within the file I use Indirect addressing. This works fine except for the rung actuating the timers. The timer box (TON) won't accept the indirect address. So I'm actually implementing these rungs outside of the common file. I am able to test the DoNe bits with indirect addressing.
It would be really convenient if I could activate the timers by turning on the ENable bit but I suspect that it's read-only, though the documentation doesn't specifically say so.
As to the obvious question "Why would you want to do that?" I have multiple sections of the machine which are identical except for data which I am keeping in seperate data tables. I have a common processing file set up and I call it multiple times with the number of the controlling data table set. Within the file I use Indirect addressing. This works fine except for the rung actuating the timers. The timer box (TON) won't accept the indirect address. So I'm actually implementing these rungs outside of the common file. I am able to test the DoNe bits with indirect addressing.
It would be really convenient if I could activate the timers by turning on the ENable bit but I suspect that it's read-only, though the documentation doesn't specifically say so.