5/22/2014 5:09 PM | |
Joined: 1/21/2013 Last visit: 3/19/2024 Posts: 4618 Rating: (705) |
Hello Dadoui FB 2 P_RCV? In this block is not present the data type BYTE, however if you want to transfer the data type BYTE write L DB5.DBB0 T DB6.DBB0 Make sure you have created the data block DB5 and DB6. |
Last edited by: Ste39 at: 5/22/2014 5:11 PM |
|
5/22/2014 6:42 PM | |
Posts: 25 Rating: (0) |
I have this when runing CPU : attachment
Attachmentcapture.pdf (232 Downloads) |
5/22/2014 6:53 PM | |
Joined: 1/28/2009 Last visit: 4/1/2024 Posts: 6836 Rating: (1359) |
Initially DB5.DBX 0.0 is TRUE and DB6.DBX 0.0 is False After running CPU, DB6.DBX 0.0 should be True but it 's not. Any suggestions ? I have this when runing CPU : attachment Attachment:capture.pdf (2 Downloads) So , there is a solution the first puzzle.You have used wrong operation based on language selection in SIMATIC Manager.To have more option for future go to Options-->Customize-->Language.Select English/English that is much easier for us to trace. As the attachment shows, as you are using check and assignment, your codes working perfectly.Content of RLO (VKE) is TRUE in first line and it is copied to target "DB6.DBX 0.0" in the 2nd line.Try use watch tables for more clarity.Also you can switch to LAD by using CTRL+1 for an easier view to interpret.
|
Last edited by: hdhosseini at: 5/22/2014 6:56 PM |
|
5/22/2014 7:46 PM | |
Posts: 25 Rating: (0) |
When I try to write DB5 or DB5.DBX 0.0 in VAT Table it's written in red color: Operand not correct How can I enter a DB in VAT Table ?
|
5/22/2014 8:18 PM | |||||
Joined: 1/28/2009 Last visit: 4/1/2024 Posts: 6836 Rating: (1359) |
QUOTE: /////////////////////////////////////////////////////////////////////////// But here I couldn't find wrong operand or address. And the point was only left for DB exists or not. So that I cleared that point. But problem was totally different. It was language problem.
/////////////////////////////////////////////////////////////////////////// "U I0.0" is a wrong operand if we are working in English/English selection. "A DB1.DBB0" is also a wrong combination of operand and address. I still think that it a wrong opeand issue.In case of non-existing DB, you can download the project to PLC but with an error (even you download error OBs). QUOTE: /////////////////////////////////////////////////////////////////////////// Thank you for this information. But even if : U DB5.DBX 0.0 = "Destination".DB6_VAR1 is executed without error when I run CPU DB6.DBX 0.0 maintain the same value !!! /////////////////////////////////////////////////////////////////////////// Dear Dadoui, I also suggest the starters' Guide for STEP 7 here.This will help you to learn STEP 7 in a more strong way: HD_STEP7 Starting Point Check the following manual: 1-Working with STEP 7 V5.4 Getting Started 2-SIMATIC Programming with STEP 7 V5.5 and these demos: 3-The SIMATIC Manager 4-The Basic Languages LAD, FBD, STL 5-The SIMATIC S7 Architecture and these 2 books:
|
||||
Last edited by: hdhosseini at: 5/22/2014 8:23 PM |
|||||
5/22/2014 8:32 PM | |
Posts: 559 Rating: (87) |
Let's close the thread now. |
Follow us on