6/16/2017 9:01 AM | |
Posts: 3 Rating:
|
Good day all Could someone help with the conversion of this part of a code? I am struggling to convert a S5 program to S7 1200.. I could migrate the S5 to S7 300. And from there, manually convert line by line to S7 1200. But now I am stuck at this part where they are using accumulators. I have been reading around and find out that S7 1200 doesn't support accumulators. How can I go about it? Is there a way to convert this part of the code to be used on a S 1200? Please assist What is the best way around it? Below is the code: L 255 T #CONV_AKKU1 TAK T #CONV_AKKU2 L STW T #CONV_STW L #CONV_AKKU1 SLW 1 T #CONV_NUMBER_OF_DBB L 2 T #CONV_CREATE_DB L #CONV_STW T STW L #CONV_AKKU2 L #CONV_AKKU1 CALL SFC 22 LOW_LIMIT:=#CONV_CREATE_DB UP_LIMIT :=#CONV_CREATE_DB COUNT :=#CONV_NUMBER_OF_DBB RET_VAL :=#CONV_RET_VAL DB_NUMBER:=#CONV_RETURN_DB T #CONV_AKKU1 TAK T #CONV_AKKU2 L STW T #CONV_STW L #CONV_AKKU1 SLW 1 T #CONV_NUMBER_OF_DBB L 3 T #CONV_CREATE_DB L #CONV_STW T STW L #CONV_AKKU2 L #CONV_AKKU1 CALL SFC 22 LOW_LIMIT:=#CONV_CREATE_DB UP_LIMIT :=#CONV_CREATE_DB COUNT :=#CONV_NUMBER_OF_DBB RET_VAL :=#CONV_RET_VAL DB_NUMBER:=#CONV_RETURN_DB T #CONV_AKKU1 TAK T #CONV_AKKU2 L STW T #CONV_STW L #CONV_AKKU1 SLW 1 T #CONV_NUMBER_OF_DBB L 12 T #CONV_CREATE_DB L #CONV_STW T STW L #CONV_AKKU2 L #CONV_AKKU1 CALL SFC 22 LOW_LIMIT:=#CONV_CREATE_DB UP_LIMIT :=#CONV_CREATE_DB COUNT :=#CONV_NUMBER_OF_DBB RET_VAL :=#CONV_RET_VAL DB_NUMBER:=#CONV_RETURN_DB T #CONV_AKKU1 TAK T #CONV_AKKU2 L STW T #CONV_STW L #CONV_AKKU1 SLW 1 T #CONV_NUMBER_OF_DBB L 14 T #CONV_CREATE_DB L #CONV_STW T STW L #CONV_AKKU2 L #CONV_AKKU1 CALL SFC 22 LOW_LIMIT:=#CONV_CREATE_DB UP_LIMIT :=#CONV_CREATE_DB COUNT :=#CONV_NUMBER_OF_DBB RET_VAL :=#CONV_RET_VAL DB_NUMBER:=#CONV_RETURN_DB T #CONV_AKKU1 TAK T #CONV_AKKU2 L STW T #CONV_STW L #CONV_AKKU1 SLW 1 T #CONV_NUMBER_OF_DBB L 21 T #CONV_CREATE_DB L #CONV_STW T STW L #CONV_AKKU2 L #CONV_AKKU1 CALL SFC 22 LOW_LIMIT:=#CONV_CREATE_DB UP_LIMIT :=#CONV_CREATE_DB COUNT :=#CONV_NUMBER_OF_DBB RET_VAL :=#CONV_RET_VAL DB_NUMBER:=#CONV_RETURN_DB That is the first part... and the second part: AN M 126.1 JC M014 OPN DB 254 T #CONV_AKKU1 TAK T #CONV_AKKU2 L STW T #CONV_STW L MB 125 SLW 4 LAR1 L #CONV_STW T STW L #CONV_AKKU2 L #CONV_AKKU1 L DBW [AR1,P#0.0] T DB3.DBW 510 BEU M014: L MW 124 L 97 <I JC M01F L W#16#0 T MW 124 BEU M01F: A M 126.5 JC M02A OPN DB 255 T #CONV_AKKU1 TAK T #CONV_AKKU2 L STW T #CONV_STW L MB 125 SLW 4 LAR1 L #CONV_STW T STW L #CONV_AKKU2 L #CONV_AKKU1 L DBW [AR1,P#0.0] T MW 122 T #CONV_AKKU1 TAK T #CONV_AKKU2 L STW T #CONV_STW L MB 122 SLW 5 SRW 5 L MB 123 SLW 3 OW LAR1 L #CONV_STW T STW L #CONV_AKKU2 L #CONV_AKKU1 A M [AR1,P#0.0] S M 126.1
Attachmentteste221313331.txt (109 Downloads) |
6/16/2017 1:57 PM | |
Posts: 1529 Rating:
|
I charge about $1000/day to do work like this. I'll forward my banking information if you are interested. |
This contribution was helpful to
2 thankful Users |
6/16/2017 3:18 PM |
|
Posts: 8946 Rating:
|
I agree, Jeff! |
Follow us on