Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

function block output

anderson
2024-01-05
2024-01-12
  • anderson - 2024-01-05

    I'm trying to make a CNC machine, but I'm having problems because the drive I'm using only has the option of communicating through digital inputs. In this case, I should use the CLP's digital outputs to communicate with it, correct?
    However, in the function blocks it seems that they are already pre-programmed and I didn't find the pulse output options, for example, so that I could associate a digital output from the PLC to connect this to the drive's pulse input. My question is: is it possible to associate the pulse output of the function block with a digital output of the PLC? and how to do this?

     
  • eschwellinger

    eschwellinger - 2024-01-05

    I think you should use a piece of hardware in between your drive (pulse/direction) and the plc
    like for example Beckhoff EL2521 - so Ethercat might be to choice if you need CNC and SoftMotion.
    EK1100 and EL2521

     
    • anderson - 2024-01-09

      so it is not possible for me to use the function blocks and through them I can select the digital outputs of the PLC so that pulses and direction are output, or some function block that does this reading and in it I can program the pulse and direction outputs for the drive?

       
  • eschwellinger

    eschwellinger - 2024-01-09

    not sure on which plc you are - there might be the option with:
    https://forge.codesys.com/drv/sm3raspistepper/home/Home/
    but it is more or less Pi restricted and need additional hardware too I guess.

     
    πŸ‘
    1
    • anderson - 2024-01-12

      o meu plc Γ© o FCT640 CMZ

       
  • anderson - 2024-01-12

    eschwellinger consegui um bloco para pem na biblioteca oscat,mas nao consigo executar o bloco. o que esta errado? segue em anexo a imagem do bloco.

     

Log in to post a comment.