CODESYS: SHL and SHR instructions in structured text (ST)

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

ความคิดเห็น • 10

  • @alissonjesus88
    @alissonjesus88 ปีที่แล้ว

    Would it be possible to be performing the bit array displacement?

  • @anonimo-bj3qx
    @anonimo-bj3qx 8 ปีที่แล้ว +3

    Hi Tohid,
    Any way of doing similar video using ladder logic?
    Thank You

    • @TohidAlizadeh
      @TohidAlizadeh  8 ปีที่แล้ว +1

      Hi Ano,
      It is possible to use SHR and SHL in Ladder logic. I may prepare a short video on this soon. Stay tuned!
      Regards,
      Tohid

    • @preetparmar
      @preetparmar 5 ปีที่แล้ว

      @@TohidAlizadeh did you make a video on using ladder logic?

  •  7 ปีที่แล้ว +1

    Hi, I'm creating a 32x8 scrolling text display visualisation in codesys. So far I have done that I can scroll one letter on the screen but I reach a wall if I try to display a complete word. It's a bit complicated. On arduino, it seems really easy but on PLC and ST code i reach a wall. There is really not much information about this scrolling text on PLCs. Any hints or thoughts I might use? I'm using 8 dword variables and move them with SHL and SHR functions.

    • @TohidAlizadeh
      @TohidAlizadeh  7 ปีที่แล้ว

      If you can, send me the source code (with explanations/comments) and I will have a look at it.

    •  7 ปีที่แล้ว +1

      Tohid Alizadeh hi, any comments to that code I sent you? I haven't really been doing work on that.

    • @TohidAlizadeh
      @TohidAlizadeh  7 ปีที่แล้ว

      Hi. Just tried to have a look at your code, but could not run it because of issues with some libraries. I will try to solve this and update you soon.

  • @matikainai
    @matikainai 6 ปีที่แล้ว +1

    Any way of doing similar video using ladder logic?

    • @TohidAlizadeh
      @TohidAlizadeh  6 ปีที่แล้ว

      You need to use the SHR and SHL operators in ladder logic as a box. Similarly, TON could be used as a box.