novaqui1

MrPLC Member
  • Content count

    3
  • Joined

  • Last visited

Everything posted by novaqui1

  1.   Hi All.I hope you are all doing excellent and also, hope you can help me.Today I contact you as I am having some issue when programming a PLC.I need to create a piece of software that:1) Can control a random number of machines at any given time.2) Each machine is a slave 3) They are exactly the same, do exactly the same thing.--------------So far I have managed to create a piece of code that allows me to control a fixed number of machines but things get complicated when one job does not need 10 machines but 20 and the next one needs 15, and the next need 5 and so on.I have thought to use arrays to do this job but this is an area I have not touched at all and I would like to ask for your advice in this area.I hope everything is understood.Thank you very much for your help in advance.
  2. Sorry for the vagueness it is just there is some info I can give.   However, I have applied that method you mentioned, created a function block per machine/station, which is great and everything work beautifully however, everything starts to get complicated when you want to apply things like E-Stops that work with an ever changing amount of units.   Does it make sense?   Thanks.
  3. Thank you for your answer. I am new here, I thought the tags were more than enough, sorry for that.  The software: Unity Pro.  Master PLC: M340. Slave: M221 BUS: Modbus TCP/IP.   We do have an HMI, the thing is that if the amount of machines needed changes per job. So if one job tomorrow needs 10, instead of 400 that are stored in the master PLC (M340) then the master must be smart enough to recognize how many machines are being used on that day and give the commands required to the slaves. Thanks