Hello everyone,
I am presenting STL code and I want to clarify the statements shown in red color. For example IF DB300.DBW34=22, then #p_rec_db =222....Does OPN DB [#p_rec_db] opens DB 222?? if that is the case I am not finding DB 222 in the blocks folder of the S7 program...
OPN DB 300 //create recipe pointer
L DBW 34
L 200
+I
T #p_rec_db //Temporary variable INT
OPN DB [#p_rec_db] //get sp values
A DBX 0.3
= #br_mode_conti_field17
L DBW 42 //temperature
ITD
DTR
T #sp_temp_field17
T #sp_temp_conti
L DBW 2 //which DB? Is it DB 300 or DB 222
T #rec_no_field17
L DBW 58 //oil pressure
T #oil_press
L DBW 72 //combAir pressure min
T #combAir_press_min
L DBW 74 //combAir pressure max
T #combAir_press_max
L DBW 50 //lambda
T #la
I am presenting STL code and I want to clarify the statements shown in red color. For example IF DB300.DBW34=22, then #p_rec_db =222....Does OPN DB [#p_rec_db] opens DB 222?? if that is the case I am not finding DB 222 in the blocks folder of the S7 program...
OPN DB 300 //create recipe pointer
L DBW 34
L 200
+I
T #p_rec_db //Temporary variable INT
OPN DB [#p_rec_db] //get sp values
A DBX 0.3
= #br_mode_conti_field17
L DBW 42 //temperature
ITD
DTR
T #sp_temp_field17
T #sp_temp_conti
L DBW 2 //which DB? Is it DB 300 or DB 222
T #rec_no_field17
L DBW 58 //oil pressure
T #oil_press
L DBW 72 //combAir pressure min
T #combAir_press_min
L DBW 74 //combAir pressure max
T #combAir_press_max
L DBW 50 //lambda
T #la