Joan M

MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

3 Neutral

About Joan M

  • Rank

Profile Information

  • Gender Not Telling
  • Country Spain

    I don't know if it is the best or not, but whatever soft-plc out there should be OK: CodeSys, TwinCAT...   TwinCAT is free, it installs the runtime in your PC and meanwhile you are using windows and "version 3" or "version 2 with a 32 bits OS" you'll be able to simulate everything, in fact you will have a software based PLC running in your computer.   Notice that except Allen Bradley and Siemens, mostly all the others are using a Codesys flavor.  Anyway if you stay standard then everything should be the same.   Hope this helps.
  2. Beckhoff 2.11 simulation mode

    I don't know if I understand you (sorry, my English is not my best)... But in CodeSys (and of course in TwinCAT), when you want to change the value of a bool/bit variable, you click it with the mouse and you can see how the prepared value gets changed. In order to get the value written or forced to the input this is not enough so you will have to write or force the value. Keep in mind that if you only write it, at the next scan cycle the value (if it depends on an input) it will be overwritten again, so the recommendation in those cases is usually forcing the variable... Notice that even if you force a variable, if during your code you change it's value the force will be lost until the next scan cycle happens. Hope this helps.  
  3. Beckhoff 2.11 simulation mode

    You have to program that in the PLCControl... once you have it programmed then it will work.   Could you explain that a little bit more?
  4. It looks like your EL6751 card can't go to OP mode. If this is happening then it is quite normal that no communication is happening. Remove everything and do the configuration again, search for elements in the EtherCAT bus automatically and then start configuring them via the EDS files. Change addresses, ensure all the speeds are equal and ensure the resistors are correctly placed. Hope this helps (even it is a really short answer).
  5. please help me

    If you want to receive any help, shouldn't you try to make your needs clear? You should tell us the device brand, what you want to do, what you've tried till now, where are you stuck... The more you clarify the easier you'll get an answer. Good luck!
  6. Twincat PLC control

    I've just tested this implementation methodology... Just compiled it and I've seen that the function block can't receive parameters if you work that way... Probably that was their intention but it differs a little bit from what the function blocks are designed... this looks like a "static class" in C++... Of course it has it's reasons, but it is too much constraining: If you don't want to be able to pass parameters to your FB simply don't add INPUT variables. If you want more than one instance of that function block, naming it different than it's own definition name it's mandatory. Can't understand why they've chosen this architecture... they will have their own reasons...
  7. Twincat PLC control

    Didn't know that would even compile... If I've seen it right, you are declaring variables using the same name for the variable itself than for the variable type... What I would recommend you is to use a different name in the variable name than in the variable type e.g.: fb_Verw_P760_TRR : Verw_P760_TRR; PS: If you are declaring variables that way in order to get a special behavior, could you please describe what you get doing that? thanks. Hope this helps.
  8. Twincat PLC control

    Never seen this message in TC2 so I guess you are working in TWinCAT 3. Anyway, I've suffered what this message explains several times: when you change a function block and there are pointers involved the best you can do is rebuilding the project and LOAD ALL in order to start from 0 avoiding misaligned pointers. a problem in your pointers can put your PLC in an invalid state as it can go to a PAGE FAULT. if you face this situation then you can only restart the PLC to continue working. Pointers are extremely powerful, but they have their own problems and you need to be careful when using them. Hope this helps.
  9. Pro-Face problem

    See: Has this made it?
  10. Pro-Face problem

    Years ago it was possible to access the "internal" mode by pressing on three corners at the same time while the display was starting. Don't know if they still keep that method. You could try to do it. Good luck!
  11. connecting c# with TwinCAT

    Hi Nielske, Take a look at this links: Information about connecting TC3 to different high level languages: How to link the ADS library to your C# program: And a nice list of sample code: I hope this will help you. I've still not done that with TC3... only with TC2 and it is a little different so... I'm afraid this is the best I can give you.
  12. OK, that was important... :) Check this help page: Click on Switch Frame variable (red link on the third column of the table under the first image). See the new methodology there. Hope this helps.
  13. If you are using the VISU package from Beckhoff, then you should do this: CurrentVisu := 'NameOfTheVisualization'; CurrentVisu is a string that is declared globally once you enable the visualization in your PLC project. Good luck!
  14. Codesys PID and PWM...?

    Temperature PID have also the negative part just in case you would have a refrigeration system attached to your heating plant. If that is not the case you should be able to parameterize the PID to forget about the negative part. If the PID block you are working with doesn't have this parameter type, take a look at the OSCAT library (WWW.OSCAT.DE), wh¡ch should help you find the right one for you. Adjusting a PID is always the same: P at the beginning until it starts to oscillate, remove a little of P and then start with I and D to fine tune it. In a temperature case you could probably make it with P and I only or even with P only, it will all depend on the desired results. Hope this helps.
  15. learning plcs

    Probably a good starting point would be getting a software that would allow you to simulate things easily inside your own PC. Then testing code and making small programs that you could handle at the beginning. Of course making trainings on how to program, studying a little bit more... could be interesting. Regarding the first point, I'd recommend you to start with something like TWinCAT from Beckhoff (version 2.x unless you come from the IT world and feel ultra-comfortable with Visual Studio). That software will allow you to program with all the programming languages used out there so you will find one that will be easier for you. See examples, put yourself in situations like how would I... and follow the explanations in the help systems and in the sample programs. Of course the best is to test and to program, but you would find it easier if you would have help from an experienced programmer... Good luck!