Hello everbody out there.
I have 2 topics actually I wanted to share and get your opinions about but since they are related I sum up in one thread.
1) We are going to change a S7 414-2DP 6ES7 414-2GX03-0AB0 V3.1 to a S7 319F CPU, The reason is we want to use fail-safe functions of new CPU and we have some S7-319Fs here so we want to make them standart. We want to keep at the beginning old program from S7-400 which is mixed in STL and FDB and add new Fail Safe Program and run the plant. We do not want to worry about old program which is running actually and try to understand it in short time and so on just copy paste if possible. Then we will do the research about program, explore it and add some more functionality that we want later.
The question is could there be any difference for STL program in S7 300 and 400 families? Is STL language totally standart and same for S7-300 and S7-400s? I want to make sure of this before touching the PLC and I know that S7 400 have 4 registers and S7 300 have only 2 but I am not sure if this makes a point to be careful during engineering phase?
2) Some time ago I programmed a SCL function block for a S7-300 for some device and commissioned it successfully. I am sure that this code runs good and later on I wanted to use the same block for another machine which had S7-400. I copied SCL Source code and complied it, the same SCL code had a different outcome for S7-400..... So the SCL compiler output STL code reacts differently in S7-300 and S7-400 PLCs. Which brings me to the question 1 above now! I had not so much time by then so instead of doing research about topic I rewrite the code totally in STL and it went good. But since in the future I can and will have the same case and doubts, I wanted to learn details from Siemens Pros.
Any documents maybe about STL SCL programming differences (if there are) or point to care about between 300 and 400 families about STL/SCL? I did some search in internet but nothing useful came up.
The Software I use are:
Simatic Manager V5.5 SP2 HF1
S7 SCL V5.3 + SP6
I wish everybody nice day and looking forward to hearing your ideas.
Thanks.
I have 2 topics actually I wanted to share and get your opinions about but since they are related I sum up in one thread.
1) We are going to change a S7 414-2DP 6ES7 414-2GX03-0AB0 V3.1 to a S7 319F CPU, The reason is we want to use fail-safe functions of new CPU and we have some S7-319Fs here so we want to make them standart. We want to keep at the beginning old program from S7-400 which is mixed in STL and FDB and add new Fail Safe Program and run the plant. We do not want to worry about old program which is running actually and try to understand it in short time and so on just copy paste if possible. Then we will do the research about program, explore it and add some more functionality that we want later.
The question is could there be any difference for STL program in S7 300 and 400 families? Is STL language totally standart and same for S7-300 and S7-400s? I want to make sure of this before touching the PLC and I know that S7 400 have 4 registers and S7 300 have only 2 but I am not sure if this makes a point to be careful during engineering phase?
2) Some time ago I programmed a SCL function block for a S7-300 for some device and commissioned it successfully. I am sure that this code runs good and later on I wanted to use the same block for another machine which had S7-400. I copied SCL Source code and complied it, the same SCL code had a different outcome for S7-400..... So the SCL compiler output STL code reacts differently in S7-300 and S7-400 PLCs. Which brings me to the question 1 above now! I had not so much time by then so instead of doing research about topic I rewrite the code totally in STL and it went good. But since in the future I can and will have the same case and doubts, I wanted to learn details from Siemens Pros.
Any documents maybe about STL SCL programming differences (if there are) or point to care about between 300 and 400 families about STL/SCL? I did some search in internet but nothing useful came up.
The Software I use are:
Simatic Manager V5.5 SP2 HF1
S7 SCL V5.3 + SP6
I wish everybody nice day and looking forward to hearing your ideas.
Thanks.
Last edited: