![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Lifetime Supporting Member
|
S5 code to write to DB data
Hi,
As an S7 programmer I do miss some S5 knowledge. Especially in german. S5DB.jpg I need to write value 50 or 150 to DB101 var 11. As you can see the value is now 50, I guess that this can be overwritten with S5 code ? This is what I want to write: U E6.0 JCN =NEXT A DB101 L 75 T DW 11 JU =END NEXT: A DB101 L 150 T DW 11 END: But offcourse, some instructions are faulty. Can anyone help with this ? Thanks. Kind Regards, Gerry |
|
|
|
#2 |
|
Member
![]() Join Date: Feb 2007
Location: Leuven
Posts: 807
|
Code:
U E6.0
JCN =NEXT
A DB101
L KF +75
T DW 11
JU =END
NEXT: Something missing here. Either NOP 0 or you start directly with A DB101
A DB101
L KF +150
T DW 11
END: If this is the end of the block, then in stead of JU =END, use BEU. If you use JU, then you need to add NOP 0
|
|
|
|
#3 |
|
Lifetime Supporting Member
|
...
I'm not sure, but I think I have installed S5 für Windows (german).
Found some code that illustrated a jump (SPB) I think this will be better, but I'm not sure (BEU = BEB in german I think): ;A DB101 U E6.0 SPB =M001 L KF +75 T DW 11 BEB M001: L KF +150 T DW 11 BE Last edited by Combo; May 19th, 2010 at 08:21 AM. |
|
|
|
#4 |
|
Member
![]() Join Date: Feb 2007
Location: Leuven
Posts: 807
|
Code:
:A DB101
:
:U E6.0
:SPB =M001
:L KF +75
:T DW 11
:BEA
M001:L KF +150
:T DW 11
:BE
|
|
|
|
#5 |
|
Lifetime Supporting Member
|
Thanks
|
|
|
|
#6 |
|
Lifetime Supporting Member
|
Uploading OB251
|
|
|
|
#7 |
|
Supporting Member
![]() Join Date: Nov 2006
Location: UK
Posts: 4,561
|
Which CPU are you using ? OB251 is usually an in-built function.
|
|
|
|
#8 |
|
Lifetime Supporting Member
|
95u
And what does that mean ?
There must be some PID blocks in the program, but I cannot find them. OB251 is the only block that I can't upload, that's why I think the PID is processed in there ... ? Don't know S5 very well.. |
|
|
|
#9 |
|
Lifetime Supporting Member
|
OB251 is the PID Algorithm OB for S5-95U.
Look here - http://support.automation.siemens.co...iew/en/1091648 |
|
|
|
#10 |
|
Member
![]() Join Date: Jan 2010
Location: Caracas
Posts: 42
|
Combo,
In the page 250 of the Manual moggie posted you will find the info about the OB251, which is the PID Control block for the S595U. You can't upload the block, you just call it cyclically to make it work. DW11 is the control word for the PID. Before calling the OB251, what you have to do is open (OPN in english, AUF in german) the DB you want as the parameter DB and change the corresponding values, based on the Table of the page 254. Regards. |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Topics
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extracting Tag Values from ControlLogix | MajorFault | LIVE PLC Questions And Answers | 8 | July 9th, 2009 10:22 AM |
| Confused "again" S7 indirect | Thim | LIVE PLC Questions And Answers | 17 | July 22nd, 2008 04:47 PM |
| between s5 c db and s7 opn db | teh | LIVE PLC Questions And Answers | 3 | July 4th, 2008 07:59 AM |
| between s5 c db and s7 opn db | teh | LIVE PLC Questions And Answers | 15 | July 3rd, 2008 08:11 PM |
| transfer data code from pc to omron plc | ahmed yousri | LIVE PLC Questions And Answers | 0 | March 13th, 2008 06:43 AM |