Jan Steen Nielsen FB121 won't work...

with MAN_ON = 1
and MAN at 50.0
do you get a 50.0 at LMN ?
also do you get a 1 at QC_ACT ?


Sometimes:
First time: high value at LMN
Second time: 50 at LMN
Third time: 0 at LMN

It has run for a while, when I changed the PV, the LMN act's like it should, but after a while it stopped, and won't run anymore...

I don't know if it matters, but Com_RST is also high...
 
Last edited:
Here you go
Its very basic- but it works


JRW, I've tried your program, and it seems to work fine.
Next Monday I'll try to import your program in the machine program.
I need 3- PID loops for this machine, can I simple copy the FB / DB 3 times, and rename the variables?

@Kalle, it needs REAL's so I created REAL's....or...
 
JRW, I've tried your program, and it seems to work fine.
Next Monday I'll try to import your program in the machine program.
I need 3- PID loops for this machine, can I simple copy the FB / DB 3 times, and rename the variables?

@Kalle, it needs REAL's so I created REAL's....or...

DB100.DBD70 is connected to DB58.PV_IN, but according to the DB58 online snapshot it cannot be interpreted as a real number. How do you treat the DB100.DBD70? (How is the code behind?)



Kalle
 
Last edited:
One FB58 and 3 instance data blocks
Are you using step outputs (bool) or a continuous output (analog)?

We're using analog output.

DB100.DBD70 is connected to DB58.PV_IN, but according to the DB58 online snapshot it cannot be interpreted as a real number. How do you treat the DB100.DBD70? (How is the code behind?)



Kalle

I'm sorry, but I've no idea what mean..
 
JRW, I've dropped your program in the machine program, and it works.
But I see no Feed Forward, is there more to program? As you said, you're program is very basic. What can I do to make it more fancy?
 
Well, I've programmed everything in the machine, and.... it won't work again.
But after some phone calls with the Siemens Tech Support, we found out what Kalle allready mentioned, the value's are wrong displayed.
So what was done in the machine PLC, the analog input was moved to an integer, and the integer to a real....And this will not work in Siemens....!!! So I had to convert the integer to a double integer, and this one to a real.
And now everything is running...

Thanks for the support guys!
 
Hello, I'm Jan Steen Nielsen
I know why you FB121 for Simatic S7-300/400 does not work.
If you change an input BOOL from e.g. default=FALSE to TRUE and then
delete your BOOL-bit hereafter so the input is now empty, then
the datablock will still remember the input as = TRUE.
This means, that all inputs to a datablock are retentive!.

I have improved my FB121 so now it makes an reset to default
if and only if the inputs are left behind as empty "pins".

You may get this updated version by mailing to me

Regards
Jan Steen Nielsen
[email protected]
Denmark
 

Similar Topics

I just noticed this.... http://arstechnica.com/security/2014/06/attackers-poison-legitimate-apps-to-infect-sensitive-industrial-control-systems/ rix
Replies
3
Views
1,761
I don't get a lot of geek chatter - but I found this "FBI shutting down my computer" news report to be somewhat interesting ... a quick forum...
Replies
2
Views
1,448
The following Step 7 project has been run using PLCSIM and contains code that flashes Q0.0 The Project is based on a UK board game called Cluedo...
Replies
8
Views
4,589
http://www.theregister.co.uk/2010/07/20/win_shortcut_vuln_exploit_code/ Somebody is definitely reading our discussions about shop floor...
Replies
13
Views
5,102
Back
Top Bottom