derickloo

MrPLC Member
  • Content count

    4
  • Joined

  • Last visited

Posts posted by derickloo


  1. I face an issue with Beckhoff CX5020 controller. The controller attached with EL3403. I load the plc code into the controller and use my C# program to read the value. It's work fine but when I restart the CX5020, my C# program can't read any value and complain the symbol not found. I need to re-run the plc code by login -> Run then my C# program can get the value. Every time restart the controller, I need to re-run the PLC code. I have create a boot project and set it run mode but it's still the same. Any one have an idea what setting I have miss out? Please guide me, thanks


  2. 16 hours ago, Aurelien_TT said:

    Hi !

    Hope you've already found a solution, if not, or if somebody as the same question, in TwinCAT you have to declare a input or output like that:
     

    
    temp0 AT %I*: INT;
    
    myOutput AT %Q*: BOOL;

    And once you've build your solution you will be able to link those virtual IOs with your reel IOs in the "IO" module of TwinCAT

    Means I no need declare one by one, just declare temp0 AT %I*: INT, then during linked time, all my IOs can link to same variable?


  3. I'm new in PLC programming.  I have a small project which have 15 temperature sensor.  How I should declare the variable for this 15 sensor.  

    I try code below

    temp0 AT %IW10: INT;
        temp1 AT %IW12:INT;

    I also have 15 controller which use to control the temperature.  How I should declare this 15 controller also?