Industrial Automation
Industrial Automation
  • Видео 46
  • Просмотров 269 201
Codesys #23: Traffic light using IF statement
In this video you will learn the basics of IF statement in Codesys and structured text programming language. At the end the code of a traffic light control will be written using IF statement.
=============================
⌚Timestamps:
00:00 - Intro
00:25 - IF in Codesys
01:10 - Else
01:35 - ELSEIF
03:03 - Traffic light
04:02 - Programming Traffic light in Codesys
=============================
Просмотров: 202

Видео

Codesys #22: Program Organization Unit (POU)
Просмотров 5982 месяца назад
In this video you will learn the basics of Program Organization Unit (POU) in Codesys including: -Program -Function -Function block You will learn how to create and use these types of POUs in your Codesys program. ⌚Timestamps: 00:00 - Intro 00:44 - Program 04:42 - Task Configuration 08:26 - Function 12:30 - Function block
Codesys #21: Retain & Persistent variables
Просмотров 1 тыс.4 месяца назад
In this video you will learn the basics of remanent variables in Codesys. You will learn how to make a variable retain or persistent, when you want to keep the value of a variable in case of a uncontrolled termination such as poer loss of a PLC or when you want to do some changes in your program. At the end you will also get information about constant variables in codesys programming. ⌚Timestam...
Codesys #20: Shift and Rotate | Bottle filling using shift register
Просмотров 7204 месяца назад
In this video you will learn the basics of shift and rotate operations in Codesys and how to use them in a program. In the end we will create a project using shift register to track bottles and fill them acording to the size. ⌚Timestamps: 00:00 - Intro 00:35- what is shift to right and left 01:32 - Rotate to right and left 02:06 - Shift and rotate in Codesys 06:54 - Bottle filling with ST
TIA Portal #23: Array, Structure and UDT in TIA Portal
Просмотров 4204 месяца назад
In this video I will talk about advanced data types in TIA portal including: - Array - Structure - User defined type (UDT) ⌚Timestamps: 00:00 - Intro 00:44- Array 07:48- Structure 12:30- User Defined Type (UDT)
TIA Portal #22: Jump in TIA Portal
Просмотров 1885 месяцев назад
In this video I will talk about program control instruction in TIA portal including: -Jump -Jump Negated - Label - Jump List - Switch - Return ⌚Timestamps: 00:00 - Intro 01:40 - Jump 06:15 - Jump Negative 07:12 - Jump List 10:16 - Switch 12:48- Return
TIA Portal #21: PLC Simulation using PLCSim V18 & PLCSim Advanced V5.0
Просмотров 2,9 тыс.8 месяцев назад
In this video you will learn how to simulate a program in TIA Portal V18 using PLCSim V18 and PLCsim Advanced ⌚Timestamps: 00:00 - Intro 00:40- Create a program 02:53 - Simulation using PLCSim V18 09:02 - Simulation using PLCSim Advanced V5.0 16:24- PLCSim V18 in TCP/IP Mode
Codesys #19: Enumeration
Просмотров 2,4 тыс.10 месяцев назад
In this video, you will learn how to declare, initialize and use an Enumeration variable in Codesys with Structured Text as the programming language. ⌚Timestamps: 00:00 - Intro 01:33 - Enumeration in Codesys 06:40- Attributtes of an Enumeration 11:57- Initializing of an Enumeration
Codesys #18 Structure
Просмотров 2,1 тыс.10 месяцев назад
In this video, you will learn how to declare, initialize and use a structure variable in Codesys with Structured Text as the programming language. ⌚Timestamps: 00:00 - Intro 02:35 - Structure in Codesys 05:21- Access to Structure 06:21- Array of Structure 08:39- Extended Structure
Codesys #17: Arrays
Просмотров 3 тыс.11 месяцев назад
In this video, you will learn how to declare, initialize and use an array variable in Codesys with Structured Text as the programming language. ⌚Timestamps: 00:00 - Intro 01:35 - Array in Codesys 02:19 - Access to an array 03:35 - Initialization of an array 04:50 - Multidimension array 06:40 - Array of array 09:30 - Array of function block
Codesys #16: Timers & Counters with Structured Text
Просмотров 3,3 тыс.Год назад
In this video, you will learn how to use a TP (Pulse Timer), TON (On-Delay Timer) and TOF (Off Delay Timer ) function block in CODESYS and also Counters up and down , with Structured Text as the programming language. ⌚Timestamps: 00:00 - Intro 00:38 - TP - Pulse Timer 04:45 - TON & TOF - On delay & Off delay Timer 06:25- Counters
TIA Portal #19: Move instruction (Part 2)
Просмотров 1,5 тыс.Год назад
In the previous video we learned together simple move, deserialize and serialize, move block, move block variant and uninterrupted move block. In this video, other Move Instruction will be investigated. In this part, we will discuss the Fill block, Uninterruptible Fill block , Scatter, Scatter block, Gather, Gather block and Swap. ⌚Timestamps: 00:00 - Intro 00:28 - Fill_BLK 02:49 - UFill_BLK 03...
TIA Portal #18: Move instruction (Part 1)
Просмотров 2,7 тыс.Год назад
In this video, the PLC Move Instruction will be investigated. In this part, we will discuss the simple move, deserialize and serialize, move block, move block variant and uninterrupted move block. And in the next video we will learn together other move operators. ⌚Timestamps: 00:00 - Intro 00:35 - Simple Move 06:49 - Serialize 11:37 - Desrialize 15:11 - Move_BLK 17:55 - Move_BLK_Variant 21:00 -...
TIA Portal #17: How to create PLC tag and tag table
Просмотров 1,9 тыс.Год назад
In this video you will learn the basics of tags and tag table in tia portal. You will learn how to create a plc tag and user constant, add a new tag table, and make a plc tag retentive with Simatic STEP 7 in TIA Portal. ⌚Timestamps: 00:00 - Intro 00:25- What is absolute and symbolic address 01:05 - What is tag 01:32 - Define a tag in Tia Portal 07:52 - Import and export Excel file from tags 09:...
TIA Portal #16: Shift and Rotate in Tia Portal | Bottle filling using shift register
Просмотров 2,3 тыс.Год назад
In this video you will learn the basics of shift and rotate operations in Tia Portal and how to use them in a program. In the end we have created a project using shift register to track bottles and fill them acording to the size. ⌚Timestamps: 00:00 - Intro 00:35- what is shift to right and left 01:32 - Rotate to right and left 02:00 - Shift and rotate in Tia Portal 05:45 - Shift and rotate of a...
Codesys #15: Self-holding circuit, set reset coil and SR RS functions with structured text
Просмотров 1,8 тыс.Год назад
Codesys #15: Self-holding circuit, set reset coil and SR RS functions with structured text
Codesys #14: Basics of Structured text (ST) programming, Assignment in ST
Просмотров 2,5 тыс.Год назад
Codesys #14: Basics of Structured text (ST) programming, Assignment in ST
Codesys #13: How to read and write date and time of a PLC using Systime.
Просмотров 11 тыс.Год назад
Codesys #13: How to read and write date and time of a PLC using Systime.
Codesys #12: Data types in Codesys: Bool, Integer, Real and String and how to use string functions
Просмотров 4,5 тыс.Год назад
Codesys #12: Data types in Codesys: Bool, Integer, Real and String and how to use string functions
TIA Portal #15: Data types in TIA Portal
Просмотров 3,4 тыс.Год назад
TIA Portal #15: Data types in TIA Portal
TIA Portal #14: How to use Comparator Operations in TIA Portal
Просмотров 1,4 тыс.Год назад
TIA Portal #14: How to use Comparator Operations in TIA Portal
TIA Portal #13: How to use counters (CTU / CTD / CTUD) in TIA Portal Ladder Logic
Просмотров 932Год назад
TIA Portal #13: How to use counters (CTU / CTD / CTUD) in TIA Portal Ladder Logic
Codesys #11: Move & Jump instructions in Codesys
Просмотров 5 тыс.2 года назад
Codesys #11: Move & Jump instructions in Codesys
Codesys #10: Local & Global Variable in Codesys
Просмотров 6 тыс.2 года назад
Codesys #10: Local & Global Variable in Codesys
Codesys #9: Flashing a lamp using timer in Codesys
Просмотров 6 тыс.2 года назад
Codesys #9: Flashing a lamp using timer in Codesys
TIA Portal #12: Flashing a lamp using timer or clock memory in TIA Portal
Просмотров 9 тыс.2 года назад
TIA Portal #12: Flashing a lamp using timer or clock memory in TIA Portal
TIA Portal #11: How to Use S5 Timers in Tia Portal
Просмотров 2,1 тыс.2 года назад
TIA Portal #11: How to Use S5 Timers in Tia Portal
Codesys #8: Identifier & Comment in Codesys
Просмотров 3,8 тыс.2 года назад
Codesys #8: Identifier & Comment in Codesys
Codesys #7: F-Trigger & R-Trigger (Falling & Rising Trigger) in Codesys
Просмотров 10 тыс.2 года назад
Codesys #7: F-Trigger & R-Trigger (Falling & Rising Trigger) in Codesys
Codesys #6: How to use counters (CTU / CTD / CTUD) in Codesys using Ladder Logic
Просмотров 11 тыс.2 года назад
Codesys #6: How to use counters (CTU / CTD / CTUD) in Codesys using Ladder Logic

Комментарии

  • @user-by5ir9cm5g
    @user-by5ir9cm5g 7 дней назад

    I am trying to do array of BOOL, but I don't know

  • @mohammedrezk8072
    @mohammedrezk8072 12 дней назад

    Very good start for Codesys understanding, please keep it up with the other application objects.

  • @vatsalthaker2122
    @vatsalthaker2122 15 дней назад

    Dear sir can you please make videos on shift register in Tia portal please 🙏

    • @industrial_automation
      @industrial_automation 15 дней назад

      @@vatsalthaker2122 look at the Tia playlist. I've already made a video about it. ruclips.net/video/XvRjnn5FIFY/видео.htmlsi=TMP-WA1by3WKFVOZ

    • @vatsalthaker2122
      @vatsalthaker2122 15 дней назад

      @@industrial_automation actually i am asking more examples....that tutorial was very good..I am working in beverages industry so here they told me that filling operation is done with help of shift registers that's why I am looking for more insight for how to use shift registers thanks for your reply

  • @gusamolvallonila
    @gusamolvallonila 20 дней назад

    thanks, god bless you

  • @DavidSanchez-gb6dd
    @DavidSanchez-gb6dd 27 дней назад

    Great codesys course

  • @carlosgallego1076
    @carlosgallego1076 Месяц назад

    Thanks for the video

  • @regarajendra
    @regarajendra Месяц назад

    innocent people have cheating leaders

  • @user-cd4kp5cy4g
    @user-cd4kp5cy4g Месяц назад

    good job _many thanks

  • @oumaimasahir753
    @oumaimasahir753 Месяц назад

    i have probleme in the S7_400 i can't find it in the PLCSIM

    • @industrial_automation
      @industrial_automation Месяц назад

      In PLCSIM V18 do you mean? Yes you can't find it because if you want to simulate 300 or 400 series old version of PLC SIM will open. I think V5.4 V18 is just for 1200, 1500 and ET200 CPUs. V5.x supports 300 and 400 series.

    • @oumaimasahir753
      @oumaimasahir753 Месяц назад

      @@industrial_automation nah doesn't work for me i don't what s the probleme they show me a message that (((some information may have been lost. This should not have happened........)) and the Tia portal restarted

    • @oumaimasahir753
      @oumaimasahir753 Месяц назад

      @@industrial_automation also when i want to charge the program i can't because there is no advice to connect with i don't know how to use the virtual one

    • @industrial_automation
      @industrial_automation Месяц назад

      ​@@oumaimasahir753 Which version are you using? if 18, have you completely uninstall previous version befor installing this version? Have you updated some part of TIA? Maybe some incompatible versions of other parts you have installed. It can have many reasons.

    • @oumaimasahir753
      @oumaimasahir753 Месяц назад

      @@industrial_automation now im using V18. But i have installed V17 where i did my project for the first time

  • @vatsalthaker2122
    @vatsalthaker2122 Месяц назад

    Dear sir it is my humble request can you make more videos on how to use the shift register in Tia portal for part tracing like an application. it would be great thanks

  • @PACETVM
    @PACETVM Месяц назад

    please we need more video for scada hmi vfd waiting...

    • @industrial_automation
      @industrial_automation Месяц назад

      Sure. These topics are for advanced level so we need a little bit time to complete all the basic videos.

    • @PACETVM
      @PACETVM Месяц назад

      @@industrial_automation Thank you

  • @PACETVM
    @PACETVM Месяц назад

    add more videos we are waiting...

  • @Mrtakudzwaz
    @Mrtakudzwaz 2 месяца назад

    Hi, could you please provide a link to download the virtual plc please thanks

    • @industrial_automation
      @industrial_automation 2 месяца назад

      If you mean what I used in the video, it is installed when you want to install the codesys. Don't you have it?

  • @user-vb4ff7wr3n
    @user-vb4ff7wr3n 2 месяца назад

    Thanks for the video! Interesting lessons. Please show me how to turn on the pump on the desired day from the visualization.

    • @industrial_automation
      @industrial_automation 2 месяца назад

      You're welcome. For the program you can get an Idea from my video of Codesys for date and time. For visualization I will start the tutorial in few month.

  • @parshwabhavsar7855
    @parshwabhavsar7855 2 месяца назад

    i have to use wago plc for controlling heat pump and i also have to use codesyes and my background is from mechanical so i dont have exerience of PLC so should i learn all codesyes language all should i have to focus only one language from codesyes .

    • @industrial_automation
      @industrial_automation 2 месяца назад

      In my opinion just focus on the language that you want and you need. I personlly prefer ST because if you have experience with other programming language like C or C++ it easier to learn ST.

    • @parshwabhavsar7855
      @parshwabhavsar7855 2 месяца назад

      @@industrial_automation i dont have experience

    • @industrial_automation
      @industrial_automation 2 месяца назад

      @@parshwabhavsar7855 Then you can start with ladder logic diagram.

  • @Lumpyspaceranger
    @Lumpyspaceranger 2 месяца назад

    EXACTLY WHAT I NEEDED

  • @tims1289
    @tims1289 3 месяца назад

    'promo sm' 😬

  • @WNAZ-WALA
    @WNAZ-WALA 3 месяца назад

    Thanks for deep explain...

  • @user-ew9pi5lf6t
    @user-ew9pi5lf6t 4 месяца назад

    Can you verify what happens with the persistent variables when you upload your CODESYS configuration via a Boot Application (not a simulation or direct download)? From my experience, when uploading with a Boot Application, the variables do not retain.

    • @industrial_automation
      @industrial_automation 4 месяца назад

      Hi, No it should work with boot application because a copy of the application will be stored in the target device (PLC or any controller like Raspberry Pi). I tested this with a Festo PLC. What I've done: Create a project and the persistent variable like in my Video. Create a boot application. Change the values. Power on and off. (Even I closed the codesys and then restarted it). --> The values are retained.

    • @user-ew9pi5lf6t
      @user-ew9pi5lf6t 4 месяца назад

      @@industrial_automation thanks for replying! When you uploaded with a boot application, you didn't download the project to the PLC/Device before that? You only used the Boot Application to send the project across? I'm away on holiday at the moment, but when I'm back in front of my demo rigs, I'll try it with your method and see if it resolved the issue I have with persistence variables not retaining when using Boot Applications. Hopefully it does!

    • @industrial_automation
      @industrial_automation 4 месяца назад

      @@user-ew9pi5lf6t I did the download. Even I changed some part of code and downloaded the changes. It works. (Be carefull just not to change the persistent variables. If you change them the values will be lost)

    • @user-ew9pi5lf6t
      @user-ew9pi5lf6t 4 месяца назад

      @@industrial_automation if you tried this by directly downloading the program into the device via ethernet, then that's masking the problem I'm talking about. Try a brand new program, brand new device with no program installed. Create a new codesys project with persistence variables, and then create a boot application. Add the program to your device via the boot application (not ethernet). You may find the problem I'm talking about with the presence channel files not being transferred across within the .app and .crc files.

    • @user-ew9pi5lf6t
      @user-ew9pi5lf6t Месяц назад

      @@industrial_automation yeah, this method doesn't work if you only use the Boot Application method to transfer your project across (i.e. laptop NOT connected to PLC). You'll notice within the PlcLogic folder that the ac_persistence folder is missing. It only transfers across when you perform a direct download (i.e. laptop connected to PLC).

  • @carlosgallego1076
    @carlosgallego1076 4 месяца назад

    Thanks for the video

  • @ramonfdezfdez7474
    @ramonfdezfdez7474 4 месяца назад

    Perfecto me ha enseñado mucho se lo agradezo enormemente. Gracias.

  • @shabbirahmad6524
    @shabbirahmad6524 4 месяца назад

    Another good video to learn advanced data types. Dear instructor can you make videos on FC and FB their difference and their variables like inout, static, return and others. I have completed some courses on udemy in which these variables are not explained.

    • @industrial_automation
      @industrial_automation 4 месяца назад

      for sure. After some video about Codesys we will have this topic.

    • @Time4yes
      @Time4yes 4 месяца назад

      ​@@industrial_automationare you saying, you will start with codesys tutorials that includes such topics before working on Siemens tutorials?

    • @industrial_automation
      @industrial_automation 4 месяца назад

      @@Time4yes No. Next weeks we will have some videos about codesys, then we will have videos about FC, FB in TIA.

    • @PACETVM
      @PACETVM Месяц назад

      @@industrial_automation please add the videos waiting for a too much time as a genuine subscriber...

  • @aounmouloud9417
    @aounmouloud9417 4 месяца назад

    good luck

  • @ramonfdezfdez7474
    @ramonfdezfdez7474 4 месяца назад

    Fantastic.

  • @pedro8234
    @pedro8234 4 месяца назад

    Your video is very good. I have a problem in the SplitDateTime function block, it is giving an error in the minute and hour, it says the following, C0136: Ambiguous use of name 'HOUR' I don't know what to do

    • @industrial_automation
      @industrial_automation 4 месяца назад

      Hi. Thanks. This error happens when you have used a variable incorrectly. Have you used or defied HOUR in several GVL?

    • @pedro8234
      @pedro8234 4 месяца назад

      @@industrial_automation Even when I create a program and put the function block with hour and minute, I get the same error. Secondly, the date is correct, do I have to download it from the library?

    • @pedro8234
      @pedro8234 4 месяца назад

      @@industrial_automation I'm Brazilian from São Paulo and I'm starting to study Codesys, and their videos about date and time are better. I will put the date and time in the ihm

  • @hetanhawke1695
    @hetanhawke1695 5 месяцев назад

    Big hi from Algeria mr ,thanks

  • @badrd9328
    @badrd9328 5 месяцев назад

    Thanks for videos but I cantcommunicate with the local plc. I always have a message "the user is locke. If you can helpe.

    • @industrial_automation
      @industrial_automation 5 месяцев назад

      Hi Can codesys find your plc? Does it happen when you want to login? Have you already tried to enter 3 times a wrong password? If yes, after 3 incorrect attempts, the controller is locked for a defined period of time. Which kind of PLC are you using? I need more infos when it exactly happens.

  • @vatsalthaker2122
    @vatsalthaker2122 5 месяцев назад

    It would be nice if you add more complex examples like this one sir thanks

    • @industrial_automation
      @industrial_automation 5 месяцев назад

      Sure. I just need some time to finish the videos for basic level then we will have advanced videos.

  • @parshwabhavsar7855
    @parshwabhavsar7855 5 месяцев назад

    when will you upload further video of codesyes

    • @industrial_automation
      @industrial_automation 5 месяцев назад

      Sorry for the delay. Next week I will do. This week we will have a video of TIA.

    • @parshwabhavsar7855
      @parshwabhavsar7855 4 месяца назад

      thanks for replay , i want to know that i have heat pump project with WAGO hardware and i have to use codesyes so what is wago hardwere relation with codesyes and what i have to learned for that,eventhough i am following your playlist for codesyes learning @@industrial_automation

  • @cosmincristea3927
    @cosmincristea3927 5 месяцев назад

    i can't download plc sim !

  • @30RMFC1980
    @30RMFC1980 6 месяцев назад

    hello, good video how to use two shif register DWord, in cascate mode?

  • @parshwabhavsar7855
    @parshwabhavsar7855 6 месяцев назад

    are uploading video related to structure text?

  • @thornee04
    @thornee04 6 месяцев назад

    Why would you need to use the extended struct? Why not just add the variable to the Motor struct? LOVE these vids.

    • @thornee04
      @thornee04 6 месяцев назад

      Brief description of a use case would be greatly beneficial in this series 🙂

  • @parshwabhavsar2283
    @parshwabhavsar2283 6 месяцев назад

    In my toolbox I can only show ladder not other like function block diagram,ton ,tof and others so what should I do

  • @mousytom1332
    @mousytom1332 7 месяцев назад

    why so much breath out after sentence

  • @vatsalthaker2122
    @vatsalthaker2122 7 месяцев назад

    Can you tell again why in network 7 you add 1 to msb for big bottle I can't get it thanks

    • @industrial_automation
      @industrial_automation 7 месяцев назад

      This network is to detect the big bottles (Using edge detection at the left side of the network). In our program big bottle is known as 1 and small one as 0. So I used this network to add a 1 to the left of our shift register, when a big bottle is detected. If you don't use this network it will be just 0 added with each bottle.

  • @RajeshYadav-be7ds
    @RajeshYadav-be7ds 8 месяцев назад

    cheeting you are not showing all button setting

  • @alicewandler
    @alicewandler 8 месяцев назад

    This was very well done, and i appreciate the detail and multiple methods you went over. Thank you very much.

  • @teresagimenez8061
    @teresagimenez8061 8 месяцев назад

    Great tutorial, I'm starting in Codesys and your tutorial is the best on RUclips !! One question for you. I'm working in a industrial Chinese machine. The source archive is not available in the PLC and I have multiple different offline projects. Is there a way to compare the offline projects with the runtime project that is inside PLC to know which one I should use? Thank you very much!

    • @industrial_automation
      @industrial_automation 8 месяцев назад

      You can compare the programs using compare option from the tab Project. But for that you need to download the project from your source (PLC) if it's possiable and then compare with your offline program.

  • @bizerbalpesh
    @bizerbalpesh 8 месяцев назад

    can you make video on hardware configuraton please?

  • @tadeoaceves768
    @tadeoaceves768 9 месяцев назад

    Wich codesys version and patch are you using?

  • @tadeoaceves768
    @tadeoaceves768 9 месяцев назад

    Hello, do you know why i cant see my full list of my struct? i would like to see all of the variables thats make uo my DUT. I am trying to use a DUT in a global variable list and then use them in the PRG, but i cannot see the full list of the variables, only the name of the DUT. Thanks

    • @industrial_automation
      @industrial_automation 9 месяцев назад

      Hi. Honestly, I could not understand your question. Did you creat a DUt and you want to use the variables inside the GVL? or you have created a UDT then ypu have used this members again inside the GVL? Why then? The members of a structure are globally usable. You don't need to creat a GVL. Maybe I could help you more if you explain what you did.

  • @TepidTurtle4
    @TepidTurtle4 9 месяцев назад

    Could you use a timer and/or counter to make the LED stop blinking after 10 seconds?

    • @industrial_automation
      @industrial_automation 9 месяцев назад

      Use Start button (same as the Start before first timer in the video) as input IN of a TON Timer with PT=10s. when you start the flashing, this timer will also start and after 10s the timer output will be turned on. now use the output of this new timer with a negated contact before start. After 10s this contact will open and flashing will stop. you need to reset the start to restart the flashing.

  • @doditshionza2827
    @doditshionza2827 10 месяцев назад

    hi i cant see to find my CTUD even in libraries

    • @industrial_automation
      @industrial_automation 9 месяцев назад

      Hi, Sorry for my late answer. There isn't any CTUD inside counter folder??? I realy don't have any Idea, why you don't have CTUD in your Codesys. Try to repair your Codesys. Or install it again.

  • @asv5769
    @asv5769 10 месяцев назад

    This is really good presentation of using timers. Very clear and concise. I wonder one more thing. Does Codesys have option to collapse/show networks like Step7 and TiA has? Is there a button or shortcut key to collapse all LAD networks, to improve navigation through program?

    • @industrial_automation
      @industrial_automation 10 месяцев назад

      Thanks. Unfortunately no. But to improve navigation you can use "GO TO" (Right click on networks) to go to a specific network, if you have lots of networks.

    • @asv5769
      @asv5769 10 месяцев назад

      @@industrial_automation Thank you for the explanation. I hope Codesys will introduce this feature in near future. This is one of the features very often used in TIA.

  • @gunerackgoz3568
    @gunerackgoz3568 10 месяцев назад

    Your explanation is very nice. What I want to ask is, I want to go to a date and time in the past and know how many hours the output there gives, can I do this using the real time and date function block?

    • @industrial_automation
      @industrial_automation 10 месяцев назад

      Hi, Thanks :). If I understood your question correctly, you want to go to the past and find the number of hours? You can use split date time function and assign a variable to the hour output. or you mean for example you start an output at the time "t" and after a while you want to go back to the past to see how many hours the output was on? then you need to save the date and time in a variable (mostly used array) starting when the output is on and then you can find the hours of being on. If it's not what you mean please explain your question.

  • @RS_83
    @RS_83 10 месяцев назад

    Thank you. Very interesting videos about ST. Learned a lot of new things)

  • @visaliram5437
    @visaliram5437 10 месяцев назад

    Can we generate a random number in codesys ladder logic. Please help asap. Thank you in advance.

    • @industrial_automation
      @industrial_automation 10 месяцев назад

      Not like rand function in matlab. But you can use cmpcrypto library or oscat library and some codes to generate it. Google it you will find the libraries and how to use them.

    • @visaliram5437
      @visaliram5437 10 месяцев назад

      @@industrial_automation Thank You. I want to generate a random value from 1 to 2 in ladder logic itself. Is it possible?? Will cmpcrypto or oscar library help me?

    • @industrial_automation
      @industrial_automation 10 месяцев назад

      @@visaliram5437 I tried Oscat library and it works. Download the library. There is function with the name RDM, gives you random number between 0 and 1. Use an add function. The output of the RDM will be +1. So you will have random numbers between 1 and 2. It can be also with LD.

    • @visaliram5437
      @visaliram5437 10 месяцев назад

      @@industrial_automation Thank You very much...👍

  • @visaliram5437
    @visaliram5437 10 месяцев назад

    I want to do after 5 seconds I have to change a string value. Say String is "Value". Initially, it is 50. After 5sec it should become 30 then after 5sec it should become 20. How to do it in Ladder logic or structured text. Please help ASAP

    • @industrial_automation
      @industrial_automation 10 месяцев назад

      Use my video flashing with timer (video num.9) with each on and off after 5 second write your value to the output. You can use a counter to count the number of onn and off and write first time 30, then 20 and so on.

    • @visaliram5437
      @visaliram5437 10 месяцев назад

      @@industrial_automation Thank you 😊 🙏

  • @cadaixa
    @cadaixa 10 месяцев назад

    Thanks you so much on your videos. Just got a new job as an Automation Engineer and your videos are really helping me out. PLEASE keep it coming :D !

    • @industrial_automation
      @industrial_automation 10 месяцев назад

      Congratulations for your new job 👏👏and I'm so happy that my videos could help you.