I am quite troubled by the jump at 15:45. The video shows it as an error (red underline) and by typing exactly what is found there I could not get the program to compile. As an actual beginner it would have been very useful to see the complete process for creating that function call.
Tern Bartolovic you have to define the function in the static area first, data type has to be the fb name. Sorry for the confusion. First define -> then call
Very good video. I am new to Siemens PLC's, this is an excellent introduction. Followed your tutorials (but also hacked forward alone) - downloaded the simulator - worked first time!!! I will be completing all of your tutorials - THANK YOU!
Mike, I been programming for a while, but this one is helping me get into writing more SCL code. I'm really trying to sink my teeth into it for 2020 cause I know it can be very powerful when compared to writing everything in ladder logic. I really appreciate this video, great job!
Alex Yousefian I hear you. It’s extremely powerful for data processing functions where trouble shooting actual tasks is not an issue. The reason ladder logic is used in the first place is to make it easier, more visual for the maintenance techs. We can do so much more in SCL and with less code than in ladder logic.
@@SiemensPLCTraining2021 Definitely! I just started a new project that's partly based off an older machine written mostly in ladder, but I'm forcing myself to write it in mostly SCL (that is if I can make the deadline of course!) I also just picked up "PLC Controls with Structured Text" by Tom Mejer Antonsen and am using it for examples. If you know anywhere else I can get some SCL examples please let me know! -Alex
Alex Yousefian keep is useful though. Use ladder where people have to troubleshoot. Use scl where it does make sense. I’m not a fan of STL. I wish it would go away. Most people can’t read or write it and it’s very confusing at times.
I am still hard stuck at 15:45 as user in pinned comment. I still don't get the call function to work. The explanation you gave: "you have to define the function in the static area first, data type has to be the fb name. Sorry for the confusion. First define -> then call" Could you explain this more step by step? Love the videos - complete beginner here
if anybody has a problem with calling the "Operating hours" function here what you gonna do. The function block where you are calling the operating hours, open the instance dB of same FB where you are calling the "operating hours".(Instance dB will open when you drop down the menu). Now define operating hours under the static interface and set the data type as of FB of which variables are define beyond the calling of operating hours (e.g in this case i_sec, i_min etc function name is SCLOperatinghours counter define this as data type. I hope this will help.
Hey it is awesome to learn from you, cleared my imagination a lot. But here is a small request for you, please make advanced programming for Siemens in tia. We will be waiting for the next level you take us. And language should be ladder also.
dont understand how this is suposed to be "Better" then fbd. Can make this program in less then 5 min in FBD. But it took me about 15 in SCL with your help that is
There is no “better”. This is just to show you the concept of the different languages. SCL as all other have their place. Depends on the problem you want to solve. Thx for watching.
Mike, I have a question relating to Ladder and SCL. In ladder I created a memory bit on the input side and a discrete output on the output side of ladder. In SCL, when I write the code with memory bit first and discrete output following, the output instruction will not work. If I flip the two instructions it works correctly. Why does it work just the opposite of ladder? Thanks, Glen
Mike, I continue to get invalid data type errors in the OperatinghoursdevicesSCL function block. In the second line of code, if #"Operating hours" is called, shouldn't the data in the parenthesis be listed in the "Operating hours" function data list as well? Glen
Glen Lammers you have to create an instance of the #”operatinghours” Block in the static of the block where you call it, the data type has to be operatinghours
Hello Maik, please I'm a rookie to PLC & your video tutorial happens to be my very first. I've been able to follow with your earlier videos but I'm still struggling with the OperatingHoursDevices FB
Gilmar Jesus hard to tell from here. Check for typos etc. try also deleting the call and call again. The scl language is not as forgiving as LAD for example.
@@SiemensPLCTraining2021 I just fixed it. Everything is working! Thanks again! .... I'm from Brazil. Think about creating an PLC online course for us. Me and others would buy it.
i have a problem, this is text from (FB3) in your video its on time 16:43 Regard Bart B from Belgium OperatingHoursDevicesSCL (FB3),,7,0,8:59:52 PM Network 2,Semicolon missing.,,,8:59:53 PM Network 2,The formal parameter 'b_device_active' is invalid.,,,8:59:53 PM Network 2,Invalid expression 'i_sec => "Times" device 5 sec'.,,,8:59:53 PM Network 2,Invalid expression 'i_min => "Times" device 5 min'.,,,8:59:53 PM Network 2,Invalid expression 'i_hours => "Times" device 5 hours'.,,,8:59:53 PM Network 2,Invalid expression 'i_days => "Times" device 5 days'.,,,8:59:53 PM Network 2,Parameters of the function or the function block do not match the transferred formal parameters. ,,,8:59:53 PM ,Compiling finished (errors: 7; warnings: 0),,,8:59:54 PM
Looks like you didn't declare the data in the first place. This is a full course and I declared some of the data in previous videos. Please watch the full course on my channel.
i do watch all your video's, i work with the PLC 1200 TIA V14 and sometimes its the program different. for example function Call don't exists for the siemens 1200
Bart Brondeel just put an empty box in the network where you want to call the FB or FC and type in the name or FB/FC number and it will call the corespondents
Mike, your intentions are laudable , i.e. creating all these videos to help people to learn to programme using STEP 7. However, your videos are unbearable for me, due to those awful pauses you make when speaking. You sound as if English were not your first language, which I am sure it is, but it should take you half the time to convey your messages to your audience if you could speak without those awful pauses and hesitations. Make your speech more fluent, that will make a heck of a difference. Don't get me wrong, I think that what you are doing is great, but for God sake, it can be a lot better.
OK, that explains those pauses and hesitations and my hunch that you did not sound as an English native speaker, however your good pronunciation deceived me. Anyhow, you don't sound German, more like an American accent. Keep making this sort of videos, but improve your fluency to make them shorter and more pleasant to your audience.
Edmond, think about all non English native speakers.For me (Swiss) and many others, his way to speak is perfectly fine.Otherwise, I wouldn't understand as much as I do now.Vielen Dank Mike für diesen grossartigen Kurs!!
I am quite troubled by the jump at 15:45. The video shows it as an error (red underline) and by typing exactly what is found there I could not get the program to compile. As an actual beginner it would have been very useful to see the complete process for creating that function call.
Tern Bartolovic you have to define the function in the static area first, data type has to be the fb name. Sorry for the confusion. First define -> then call
Very good video. I am new to Siemens PLC's, this is an excellent introduction. Followed your tutorials (but also hacked forward alone) - downloaded the simulator - worked first time!!! I will be completing all of your tutorials - THANK YOU!
Great to hear!
Mike, I been programming for a while, but this one is helping me get into writing more SCL code. I'm really trying to sink my teeth into it for 2020 cause I know it can be very powerful when compared to writing everything in ladder logic. I really appreciate this video, great job!
Alex Yousefian I hear you. It’s extremely powerful for data processing functions where trouble shooting actual tasks is not an issue. The reason ladder logic is used in the first place is to make it easier, more visual for the maintenance techs. We can do so much more in SCL and with less code than in ladder logic.
@@SiemensPLCTraining2021 Definitely! I just started a new project that's partly based off an older machine written mostly in ladder, but I'm forcing myself to write it in mostly SCL (that is if I can make the deadline of course!) I also just picked up "PLC Controls with Structured Text" by Tom Mejer Antonsen and am using it for examples. If you know anywhere else I can get some SCL examples please let me know! -Alex
Alex Yousefian keep is useful though. Use ladder where people have to troubleshoot. Use scl where it does make sense. I’m not a fan of STL. I wish it would go away. Most people can’t read or write it and it’s very confusing at times.
Many thanks. Excellent presentation.
Glad it was helpful!
I am still hard stuck at 15:45 as user in pinned comment. I still don't get the call function to work. The explanation you gave: "you have to define the function in the static area first, data type has to be the fb name. Sorry for the confusion. First define -> then call"
Could you explain this more step by step? Love the videos - complete beginner here
Great presentation. Very very helpful. Thanks!
if anybody has a problem with calling the "Operating hours" function here what you gonna do.
The function block where you are calling the operating hours, open the instance dB of same FB where you are calling the "operating hours".(Instance dB will open when you drop down the menu). Now define operating hours under the static interface and set the data type as of FB of which variables are define beyond the calling of operating hours (e.g in this case i_sec, i_min etc function name is SCLOperatinghours counter define this as data type.
I hope this will help.
Hey it is awesome to learn from you, cleared my imagination a lot. But here is a small request for you, please make advanced programming for Siemens in tia. We will be waiting for the next level you take us. And language should be ladder also.
thank you for the video great job
Thx for watching
Hey Mike,
How are you?
We met at Team Technik GmbH for Valeo
Do you remember?😀
I sure do. I hope all is well.
@@SiemensPLCTraining2021 going 👍... Thanks for asking 😊
See you soon somewhere?
@@SiemensPLCTraining2021 No not now and I left from Blue Automation GmbH... Searching for new opportunity
dont understand how this is suposed to be "Better" then fbd. Can make this program in less then 5 min in FBD. But it took me about 15 in SCL with your help that is
There is no “better”. This is just to show you the concept of the different languages. SCL as all other have their place. Depends on the problem you want to solve. Thx for watching.
Mike, I have a question relating to Ladder and SCL. In ladder I created a memory bit on the input side and a discrete output on the output side of ladder. In SCL, when I write the code with memory bit first and discrete output following, the output instruction will not work. If I flip the two instructions it works correctly. Why does it work just the opposite of ladder?
Thanks,
Glen
Glen Lammers if you write input := output it actually means move output into input. So the right way would be output:= input
Hi im new to PLC programming kindly guide about the operatinghours FB defining as I am stuck at this
What exactly is the question?
Mike,
The Call function in Main OB1 is not recognized when i compile the program. Is there a setup issue?
Glen
Glen Lammers might be, hard to tell without seeing the program. Please watch the whole course to make sure you didn’t forget something.
Will you have any videos up of using the TIA Portal Brewing Template?
Not sure what you are talking about in the first place
Mike,
Are Videos 7 and 8 available to view?
Glen Lammers Video no 7 is online now, video 8 will follow this week. Thanks for watching.
Please send any link . because here not clear on video please
👍🏻
Hi sir thank you
I want plc software
You can download it for free on Siemens.com
Mike,
I continue to get invalid data type errors in the OperatinghoursdevicesSCL function block. In the second line of code, if #"Operating hours" is called, shouldn't the data in the parenthesis be listed in the "Operating hours" function data list as well?
Glen
Glen Lammers you have to create an instance of the #”operatinghours” Block in the static of the block where you call it, the data type has to be operatinghours
could you explain this a little bit further?I don't get what you exactly mean .
If you open the drop down menu in the to of the fb, you have to define a static with the data type of the name of the fb you want to call.
Ben Lee
1秒前
hi,do you have some tutorials about SCL in V14? tks
Hello Maik, please I'm a rookie to PLC & your video tutorial happens to be my very first. I've been able to follow with your earlier videos but I'm still struggling with the OperatingHoursDevices FB
please share some advance PLC topics
What are you thinking about?
@@SiemensPLCTraining2021 about VFD commisioing with TIA portal
Hi. Where did you define #"Operating hours" function block? (16:00)
See it now in Static. This is a function made from SCL_OperatingHoursCounter function block. I am a little bit rusty in programming... Best
Mike,
why that red line under #"Operating Hours"? I instantiate SCL_OperatingHoursCounter in static area of FB yet.
Gilmar Jesus hard to tell from here. Check for typos etc. try also deleting the call and call again. The scl language is not as forgiving as LAD for example.
@@SiemensPLCTraining2021 I just fixed it. Everything is working! Thanks again! .... I'm from Brazil. Think about creating an PLC online course for us. Me and others would buy it.
@@gost3907 thank you for saying that. I'm always happy to help. I am in fact working on an online course. I hope I can finish it before summer.
if place #countersecscl in temp then no need to initalize
This is just a concept. In real life, you would user a timer function.
if you use instantiate SCL_OperatingHoursCounter multiple times you will have a problem with R_TRIG_DB_1
Ciprian Florin Constantin you’re right about that. You have to rewire it as a local static
Can somebody explain how to do it!? Tnx
hi,do you have some tutorials about SCL in V14? tks
i have a problem, this is text from (FB3)
in your video its on time 16:43
Regard Bart B from Belgium
OperatingHoursDevicesSCL (FB3),,7,0,8:59:52 PM
Network 2,Semicolon missing.,,,8:59:53 PM
Network 2,The formal parameter 'b_device_active' is invalid.,,,8:59:53 PM
Network 2,Invalid expression 'i_sec => "Times" device 5 sec'.,,,8:59:53 PM
Network 2,Invalid expression 'i_min => "Times" device 5 min'.,,,8:59:53 PM
Network 2,Invalid expression 'i_hours => "Times" device 5 hours'.,,,8:59:53 PM
Network 2,Invalid expression 'i_days => "Times" device 5 days'.,,,8:59:53 PM
Network 2,Parameters of the function or the function block do not match the transferred formal parameters. ,,,8:59:53 PM
,Compiling finished (errors: 7; warnings: 0),,,8:59:54 PM
Looks like you didn't declare the data in the first place. This is a full course and I declared some of the data in previous videos. Please watch the full course on my channel.
i do watch all your video's, i work with the PLC 1200 TIA V14
and sometimes its the program different. for example function Call don't exists for the siemens 1200
Bart Brondeel just put an empty box in the network where you want to call the FB or FC and type in the name or FB/FC number and it will call the corespondents
Thank you for the information, its ok now. i really like your video's
absolute beginners ? And you already created FB and DB before start of the lessons ??
This is a whole series. Please start with Video 1 or 2
Video not clear
👍🏻
Uhmm...
Mike, your intentions are laudable , i.e. creating all these videos to help people to learn to programme using STEP 7. However, your videos are unbearable for me, due to those awful pauses you make when speaking. You sound as if English were not your first language, which I am sure it is, but it should take you half the time to convey your messages to your audience if you could speak without those awful pauses and hesitations. Make your speech more fluent, that will make a heck of a difference.
Don't get me wrong, I think that what you are doing is great, but for God sake, it can be a lot better.
I'm sorry listening to me is so awful for you. I'll do my best to improve that, and no, you're wrong, English is not my first language. Its German ;)
OK, that explains those pauses and hesitations and my hunch that you did not sound as an English native speaker, however your good pronunciation deceived me. Anyhow, you don't sound German, more like an American accent. Keep making this sort of videos, but improve your fluency to make them shorter and more pleasant to your audience.
This is the least problem, your pronunciation is more than enough. Why you people focus on so minor issues is to wonder. Nice job Mike, and thanks.
Edmond, think about all non English native speakers.For me (Swiss) and many others, his way to speak is perfectly fine.Otherwise, I wouldn't understand as much as I do now.Vielen Dank Mike für diesen grossartigen Kurs!!
I couldn’t even watch 5mins. Sorry mike. I just don’t find the use of many “likes”..attractive 🙊, hope this doesn’t stop you from uploading more
The use of too much “Like Like Like Like..”..put me off
Naja man kann nicht alles haben.