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 a issue with communication between two different PLCs. So here is the facts, The Master PLC is Guard Logix 5069 with IP...
Replies
2
Views
26
Hi Siemens guys! I am experiencing SF fault on our S7-300 (6ES7 315-2AH14-0AB0) CPU from time to time. I've checked the diagnostic buffer and...
Replies
13
Views
162
Hello..I am new to Plc.I have Mitsubishi Melsec Fx3Ga-40MR PLC controlling a machine for packing powder.Currently the Plc has issue which power...
Replies
3
Views
128
hello, I'm a student and for my final grade I have to repare a sepro robot. the only problem I have for now is that i have an error code 3...
Replies
0
Views
35
Dear All, i am trying to connect Danfoss inverter with s7 200 cpu 226.but microwin shows following error at DATA Ptr.i assigned different VB...
Replies
1
Views
45
Back
Top Bottom