Paul_M Posted October 10, 2016 Report Posted October 10, 2016 (edited) Software version: TIA Portal V13 SP1 Update 5 PLC: S7-1515 Currently monitoring two Double words within seperate DB's to trigger an an output. On compilation I get the error "The address is not occupied by a tag" The code works, and downloads fine. My OCD isn't liking the fact I've got errors though. Is there another way of doing this that won't cause the error? (Please ignore the glaring spelling error haha) Edited October 10, 2016 by Paul_M
Bryll Posted October 10, 2016 Report Posted October 10, 2016 You don't have any label for the double words, hence the warning.
Paul_M Posted October 10, 2016 Author Report Posted October 10, 2016 There doesn't seem to be anywhere I can assign a label. Unless I am over looking it.
Bryll Posted October 11, 2016 Report Posted October 11, 2016 There will be no warning if you do the same in Step 7 Classic. I have had the same issue myself, but I didn't do anything about it since it works. You could use the ordinary memory area and declare a double word for let's say MD400 Then you declare your alarm bits starting at M400.0 and upwards to M404.7. Alarm byte 1 to 4 at MB400, MB401, MB402, MB404. Alarm word at MW400, MW402. Do the same with your ack bits and there should not be a problem. That's my simple and cheap work around, but I am far from an expert in Siemens, just a beginner.
Paul_M Posted October 11, 2016 Author Report Posted October 11, 2016 Yes Step 7 classic relied more on direct addressing rather than tag based addressing like TIA. I had thought about doing that, was just wondering if I had missed something glaringly obvious. TIA seems to have that many tick box's hidden here there and everywhere.
Bryll Posted October 12, 2016 Report Posted October 12, 2016 Please post if you find the tick box to enable direct addressing in the PLC, I have looked for it several times now. Found it for the panel project, but not for the PLC.
Paul_M Posted October 12, 2016 Author Report Posted October 12, 2016 4 hours ago, Bryll said: Please post if you find the tick box to enable direct addressing in the PLC, I have looked for it several times now. Found it for the panel project, but not for the PLC. I haven't found one myself, was hoping someone had stumbled across one.
TravisPedley Posted October 15, 2016 Report Posted October 15, 2016 What you're getting is more of a warning than an error. You can still compile and download with no issues, its just a nag message to let you know you aren't using a symbolic tag. It drove me crazy for a year before I just retrained myself to accept that TIA is flawed :) I hate HATE compiling and seeing anything but 0 errors, 0 warnings. If you want it to go away, you need to use a symbol. Or you just ignore the warning and say four letter words about Portal like I do. Good luck.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now