Video není dostupné.
Omlouváme se.
Siemens PLC Basic Training. What is a OB, FC, FB?
Vložit
- čas přidán 15. 08. 2024
- Siemens PLC training on what the difference between Organizational Blocks, Function Calls, and Function Blocks and some tips on how to use them effectively.
0:00 Intro
0:30 Organizational Blocks (OBs)
1:57 Object Oriented?
2:38 Function Calls (FCs)
3:50 Function Blocks(FBs)
5:32 Tips For Writing Great FCs and FBs
#plc #plctraining #siemens #training #gettingstarted
good lecture Mr Jason, I appreciate the very focused view to control engineering issues.
I appreciate it! I'm glad it was helpful! Try to catch a livestream and join the conversation!
Worth watching video. Full of deep engineering knowledge
thanks a lot, but would please re-discuss the "InOut" memory type within the FCs or FBs?
Yes! I have a block I just wrote that uses them. There is a very specific reason why you would have to use them and out of the hundreds of blocks I have written this is the only one that uses an InOut. I will spend some time in the next livestream to discuss it. Thank you for your support!
Hii...if possible can you make series on motion control programming examples...
I have most of the basic blocks detailed out on my channel and I have a couple other videos on how to sePlaylist! I still have a few I am going to add as well. Check out my playlists!
Also, I am going to be doing some livestreams in the near future this might come up. If you can tune in I will be addressing questions from chat!
Hey we showed a few examples of programming in our first AlphaCast check it out!
Please explain inout parameter
Sure thing!
Where it is used
An INOUT is more efficient as you are not making a copy of the data inside your instance data block (IDB). It also allows you to modify the actual data inside your block. Here is an example of how I have used INOUT:
I have a DataBlock ( Call it "PumpData") that stores some information about a local pump system such as Pressure, Speed, Faults etc. I have made a FB called "RemotePumpControl" that has an INOUT of a type "DB_ANY" that I connect "PumpData" to. Inside this block I have all my logic that I like using this data block. Now, I actually have 6 of these stations in the field with 6 copies of this block being used. I also have a central PLC that coordinates all 6 of these other PLCs. The reason I use an INOUT is so that I can freely access the data inside the FB while still being able to modify the data from the central PLC as well.
INOUT makes it to where you don't have duplicates of the data in your memory. If this was in C++ it would be called "Pass By Reference" and it makes for very efficient code.
Last, INPUTS cannot be written to inside your FB (like a coil assignment) but an INOUT can be.
This is what I need to learn as a fresh PLC programmer. But where and how can I start? Please give some advice.
Try here first.
czcams.com/video/xmSo-yXu4o8/video.html
Then watch some livestreams! The one about Intro to digital logic is a great start and this week's livestream was a beginner's guide to drives!