9/8/2014 6:15 PM | |
Joined: 11/21/2007 Last visit: 8/12/2024 Posts: 2325 Rating:
|
Hello zakariabachiri
Here are the comments with minor corrections : C DB 10 //Open the DB10 L KF +12 // load Fixed value Integer +12 T FW 10 // transfer the loaded data toFW10 ( MW 10 in S7 ) L KF +1 // load Fixed value Integer +1 T FW 12 // transfer the loaded data toFW12 ( MW 12 in S7 ) L KF +1 T FW 24 JU FB 88 NAME: AJUST. JU FB 89 NAME: TEMPO C DB 10 //Open the DB10 L FW 20 // Load the value of FW 20( MW 20 in S7 ) T DW 0 // Transfer the value to First DW ( DW 0 ) of DB 10 ( DBW 0 in S7 ) L FW 30 // Load the value of FW 20( MW 30 in S7 ) T DW 2 // Transfer the value to Third Word ( DW2 ) of DB 10 ( DBW4 in S7 ) PS : Be Careful with DB address conversion from S5 to S7 since S5 DBs use Word addressing and S7 DBs use Byte addressing. why there is no (+ ) in the buttom of the code -> The code is just loading and transferring values. there are no calculations involved Hope this helps Cheers Navnag |
There is no such thing as the last bug in a program |
|
This contribution was helpful to
1 thankful Users |
9/8/2014 6:24 PM | |
Posts: 19 Rating:
|
Sorry i dont understand when you say that we load a fixed value integer +12 or +1 what's +1 or +12 stand for ? thank exuse my english :)
|
9/8/2014 7:11 PM | |
Posts: 19 Rating:
|
thank you for your help |
This contribution was helpful to
1 thankful Users |
Follow us on