4/22/2014 1:56 PM | |
Joined: 11/21/2007 Last visit: 9/25/2024 Posts: 2325 Rating: (308) |
Hello thomas.alfa Which S5 CPU is being used in this program ? Data blocks DB 0, DB 1, DX 0, DX 1 and DX 2 are reserved for special functions. e.g. in CPU 948 - Data block DB 0 contains the address list with the start addresses of all blocks that are located in the data block RAM of the CPU. The Blocks can be indirectly addressed using this list. I have attached an Extract from the CPU 948 manual explaining the functionality of DB 0 , DB 1, DX 0, DX 1 and DX 2 . Hope this helps Cheers Navnag AttachmentCPU948_DB0.pdf (361 Downloads) |
Last edited by: Navnag at: 4/22/2014 1:57 PMAttachment added There is no such thing as the last bug in a program |
|
This contribution was helpful to1 thankful Users |
4/23/2014 9:36 AM | |
Posts: 6 Rating: (0) |
thanks Marcjan yes i have know that the db address is started from 1 but as i wrote above, that is the code written in S5 and i am confuse how to replace that DB0 in step 7
Hi Navnag thanks for your explanations i am using s5 100u CPU 103 and i want to upgrade it to s7 300 but when i convert the program using the s5 to s7 converter there is an error about DB0 as i wrote it before, how can i replace it?? am i replace it with normal DB such as DB 1 or 2 or else?? thanks |
4/23/2014 9:49 AM | |
Joined: 4/5/2006 Last visit: 8/13/2023 Posts: 642 Rating: (131) |
Hello, you should send the code of FB230. Regards André Räppel --------------------------------------------------------------------------------- www.raeppel.de
work faster withinnovative PLC-Tools |
4/23/2014 9:55 AM | |
Joined: 11/21/2007 Last visit: 9/25/2024 Posts: 2325 Rating: (308) |
Hello thomas.alfa Is it possible to share the S5 Code ? It would be possible to have a better idea in we see this in proper context Cheers Navnag |
There is no such thing as the last bug in a program |
|
4/23/2014 11:06 AM | |
Posts: 6 Rating: (0) |
hello André and Navnag here i share the s5 code i know you can make it master cheers AttachmentCUTERDST.zip (270 Downloads) |
4/23/2014 2:45 PM | |
Joined: 11/21/2007 Last visit: 9/25/2024 Posts: 2325 Rating: (308) |
Hello thomas.alfa This is quite unusual to say the least .... if fact I am surprised that the STEP5 Editor is not giving any error in FB 230. The Formal Operands "ZWDB" and "ARDB" have been used as Data Blocks inside FB 230 ( As they should be ) using a "DO" Command However "MBDB" has been used like a value ( With "LW=" command ) as for "MBVB" I have one theory ( Just a long shot ) that maybe someone by mistake changed the parameter type "MBVB" from Type Data "D" to "B" ... unless someone comes up with a better explaination. I Just tried toEdit the FB 230 and changed the parameter type of "MBDB" from "B" to HexWord ( "D" "KH" ). When we do this, the Assigned value to FB 230 "MBDB" parameter in FB 45 is displayed as 2000hex You can try this and see what happens. In any case, a lot of the programming has been done using indirect addressing. You need to be careful about the same during S5 to S7 conversion ( More so because S5 uses Word addressing while S7 uses Byte addressing ) Hope this helps Good Luck. Cheers Navnag |
Last edited by: Navnag at: 4/23/2014 2:45 PMThere is no such thing as the last bug in a program |
|
This contribution was helpful to1 thankful Users |
4/24/2014 3:15 AM | |
Joined: 10/7/2005 Last visit: 10/8/2024 Posts: 3024 Rating: (1054)
|
Hello thomas.alfa There’s nothing out of the ordinary happening here as far as I’m concerned. |
Cheers |
|
This contribution was helpful to2 thankful Users |
4/24/2014 4:41 AM | |
Posts: 6 Rating: (0) |
hi Navnag that's why i am confused in fact i am not casually using Step5 because i am Step7 generation but thanks for your explaination and your hardwork to understand my program i will try your suggestion hopefully i can finish this conversion thanks a lot Navnag have a nice day
hello fritz thanks a lot for your explanation i will try your suggestion above for my converted file yesterday i have tried change the DB number of MDDB to any and there is no error but i have not tried it in the actual machine because of the preparation isn't finish thanks a lot to you guys you are very helpfull Regards thomas.alfa |
This contribution was helpful to2 thankful Users |
Follow us on