Random machine control

Discussion in 'Off-Topic' started by shadnov, Aug 17, 2016.

  1. shadnov

    Thread Starter New Member

    Aug 17, 2016
    0
    0
    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. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,513
    2,369
    What PLC and what is the nature of the machines? Do they all perform the same function? and do they all run simultaneously?
    Max.
     
  3. shadnov

    Thread Starter New Member

    Aug 17, 2016
    0
    0
    They are mobile stations, they move around depending of the needs.

    Yes

    Yes
     
    Last edited by a moderator: Aug 20, 2016
  4. shadnov

    Thread Starter New Member

    Aug 17, 2016
    0
    0
    We are using M340 from schneider.
     
  5. Marley

    Member

    Apr 4, 2016
    142
    40
    Does it allow you to use re-usable code (function blocks)? Can you write a function block that fully controls one machine?
    Call this function block as many times as necessary.
    It will be important that this function block does not have any waits or delays inside so that the PLC can spin through all the machines quickly.
     
  6. shadnov

    Thread Starter New Member

    Aug 17, 2016
    0
    0
    Do you guys understand so far?

    Thank you by the way.

    I am pulling my hair off for this.
     
  7. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,513
    2,369
    How many I/O needed for a single machine?
    Max.
     
  8. shadnov

    Thread Starter New Member

    Aug 17, 2016
    0
    0
    Any idea about what to do?
     
  9. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,513
    2,369
    How are you controlling the machines at present? You say you have several under control, do you have I/O for each machine?
    If so Then a MCR for each one could be switched in and out as needed, If the I/O's are the same for all machines then an output to external relay on each machine could be used to enable/diable the control circuitry as needed.
    I use mostly Mitsubishi and A.B. so not really familiar with Schneider.
    Max.
     
  10. shadnov

    Thread Starter New Member

    Aug 17, 2016
    0
    0
    Excuse my ignorance, but what does MRC stand for?
     
  11. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,513
    2,369
    Not MRC, but MCR (Master Control Relay) , many PLC's have this instruction to disable a whole block of code.
    Max.
     
Loading...