Help~This error comes up after I download my program.

Thanks, I found the problem. The reason is I used a variable to open a DB indirectly like this:

OPN DB [#AlarmDB]

on the top of a FB. However, I have to repeat it more times in between of the program, otherwise, the program will create errors if I use DBWxxx . Seems like it doesn't know which DB it belongs to.

Have you experienced that?
 
Are you accessing any other global db variables ?

After

OPN DB [#AlarmDB]

the global DB open is specified by AlarmDB

If you now have some processing as follows

A DB1.DBX0.0
= M0.0

The global DB open is now DB1
 
No, I don't have any other global DB opened in the same FB.
If there is a Network that doesn't contain any data fron the DB[#AlarmDB], before the next Network with DBXxxx, I have to do "OPN DB [#AlarmDB] again, otherwise, it won't work.
 
The internal variable in FB belongs to it's own instance DB, is it affecting the global DB? shouldn't , right?
 
Post your code.

Here's an example showing the global DB changing from 200 to 5

dbdbdb.JPG
 
Last edited:
No. Look at the column heading - you are displaying the accumulator (standard). Right click in the RH pane and you can make the DB1 resgister visible.
 
OH, OK, it shows 1 from top to the bottom.

I know how to troubleshoot now. Thanks a lot. You are so diligent, alway available to help me. That's so nice. What is your time now?
 
Actually, I have more questions, I don't know how to ask. I already struggled for a long time.

I have an FC to create a "one shot" signal every time the input change the status. It works fine if I call it in OB1. However, if I call it an an FB, it doesn't work, it works but the "one shot" signal doesn't show in the FB. I don't know why.
 
You are probably using a temp variable to store the rising edge status in the FC- temps are not remembered between calls.(although it can happen depending on what other blocks are called and what they do to their allocated temp data).

When you have a problem post your code.
 

Similar Topics

Hello everyone I have the next issue with FactoryTalk Linx, when i configure the Ethernet driver and try to find the IP Address of the PLC Device...
Replies
0
Views
31
Hi, First time user of S5 Siemens. Is there any solution on how to solve this kind of error. HMI OP7 $613 DB-error No. 11 (0: 15) Siemens PLC...
Replies
9
Views
160
I am kind of new to GE products, but we have several in my area. I made a minor logic change and it verified good, but when I tried to download I...
Replies
5
Views
50
Hi, I'm currently having issued with a PowerFlex 252. It was working fine last week, and suddenly decided to stop working. When I go into...
Replies
2
Views
137
Hi there, I'm new to plc programming and was wondering why I get this error code when I run my simulation for these temperature sensors? What I'm...
Replies
2
Views
106
Back
Top Bottom