PLC Oefeningen

Laddertaal

Simulator website
Surf naar https://app2.codingplc.com/ en bekijk/speel met het demoprogramma.
Oefening
  1. Gebruik de bovenstaande website.
  2. Er zijn twee LEDs (coils) een en on/off knop (relais).
  3. De LEDs knipperen afwisselend met 2 seconden wanneer een knop aan is.
  4. Wanneer de knop uit is, werken de LEDs niet.

Siemens Simatic S7-1200 oefeningen

created by Mourad Ben Moussa and Eren Sagir
The station distributes from the stack magazine module and sorts the work pieces according to material. The filling level of the stack magazine is monitored by means of a (through-beam) sensor. A double acting cylinder pushes out the workpieces individually. A sensor detects if the workpiecesare pushed to the displacement position. At this position the workpiece material characteristics (metal,non-metal) are detected by a sensor. A second double acting cylinder (sorting cases) will move according to the material of the workpiece. The changer module grips the pushed-out workpiece using a suction cup. A vacuum switch checks whether a workpiece has been picked up. The arm of the transfer unit, which is driven by a rotary drive, conveys the workpiece to the sorting cases.
Initial state
Magazine is filled up, ejecting cylinderis retracted, rotary driveis in downstream stations position, vacuum is off,sorting cylinder is retracted
Basic sequence
  1. If there are workpieces in the magazine, the ejecting cylinder pushes out a workpiece.
  2. The vacuum is switched on. When the workpiece is securely held, a vacuum switch activates
  3. The sorting cylinder moves according to the material of the workpiece.
  4. The rotary drive conveys the workpiece to the sorting cases.
  5. The vacuum is switched off.
Actuators to be identified
suction (vacuum) generator, ejecting cylinder, rotary drive, sorting cylinder
Sensors to be identified
Through-beam sensor, vacuum switch, left position switch, right position switch, ejecting cylinder positions, inductive sensor, displacement position switch
created by Moussa Bettioui and Mohammad Mustafizur Rahman
The sorting station will sort the workpieces according to material and color. We sort them out by branching off the conveyer belt. There are 3 workpieces, the first one is a simple black plastic cylinder, the second one is a colored (red) plastic cylinder and the last one is a silver colored metalcylinder. The way the station will sort them is by switching between the branches depending on which sensors have detected the piece. Those sensors are placed at the beginning of the conveyer belt behind a compact pneumatic cylinder which is used as the stopper. The way we branch off the conveyer belt is by using pneumatic cylinders that will protract when a certain sensor combination has detected a workpiece. In short, when a workpiece is detected, the motor of the conveyer belt will activate and the stopper will retract to let the workpiece pass by. The needed branch cylinder will protract to let the workpiece slide into his slide. Once the retro-reflective sensor detects that the cylinder passed on to the slide it will retract the cylinder, stop the motor and protract the stopper.
Initial state
Stopper protracted, Branch 1 retracted, Branch 2 retracted, Conveyer belt motor off, Workpiece at the start of the conveyor behind the stopper.
Basic sequence
  1. Workpiece detected, conveyer belt motor activated.
  2. Color and material identification.
  3. Stopper retracted and corresponding branch protracted.
  4. Workpiece detected by the retro-reflective sensor in the slide.
  5. Motor stops, branch retracted, stopper protracted, back to initial state.
Actuators to be identified
24V motor, Stopper, Branch 1 and Branch 2
Sensors to be identified
Proximity sensor (piece detection), infrared sensor (color identification), induction sensor (metal detection), and Slide retro-reflective sensor
created by Mattis Bogaerts and Bryan Thiltges
The station’s function is to distinguish three different parts and sort them accordingly. The operation starts by detecting if a part is present in the starting position, this is monitored by an infrared sensor. If a part is present, the first piston will move the part to the identification area. The position of this piston is monitored by a magnetic sensor. Once the part in the identification area, three sensors are present, an infrared sensor, a proximity sensor and a inductive proximity sensor. They allow the system to distinguish if the part is metallic, black or red. Once the part has been identified, the vertical piston will drop and the grabber will grab the part. Afterword, the vertical piston will go back up. A rodless pneumatic cylinder, on which the vertical piston and grabber are attached, will perform the horizontal movement to the corresponding slot, which is detected by a magnetic sensor above the rodless pneumatic cylinder. Once grabber is above the correct slot, the vertical piston will drop down and the grabber will release the part. The three slots share an infrared sensor, which monitors if a part has reached the slots, meaning the sequence is over and the next part can be handled. It also indicates if a slot is full.
Initial state
The tube above the starting position is filled with parts. The horizontal and vertical pistons are pulled in, the grabber is open and the rodless pneumatic cylinder is above the identification area.
Basic sequence
  1. The first piston moves the part, if one is detected.
  2. The vertical piston lowers and the grabber closes, once the part is identified.
  3. The vertical piston goes back up and the rodless pneumatic cylinder moves horizontally.
  4. The rodless pneumatic cylinder stops above the corresponding slot, indicated by a magnetic sensor.
  5. The vertical piston drops down and the grabber releases the part.
  6. The part has activated the infrared sensor in the slots.
  7. The sequence is over and the system goes back to its initial state.
Actuators to be identified
A horizontal and vertical piston, a rodless pneumatic cylinder and a grabber.
Sensors to be identified
Three infrared sensors, five magnetic sensors, a proximity sensor and an inductive proximity sensor.
Siemens TIA portal download-site
Let op: De opstellingen werken niet met de LOGO! software samen! Je moet de TIA Portal vooraf installeren. Installatie duurt heel lang! Gelieve eerst de hele sectie door te lezen voor je met de installatie begint!
  • Voor installatie activeer .Net 3.5 zoals hier staat indien je een probleem hebt tijdens de installatie.
  • Activatie: bij de eerste opstart vraagt de software voor activatie, doe zoals hier
  • Licentie informatie: Péter kan je een gratis licentie op alle TIA portal producten geven indien je aanvraag gemotiveerd is (na volledige installatie, in persoon). Deze software kost normaal gezien honderden euro's (ook met studentenkorting).
  • Bij aansluiting PLC kies => firmware versie 3 zoals hier. Bij vragen 'assign ip address', 'default interface', etc, kies 'yes', ook voor alle andere bla-bla-bla vragen 'ýes','ok'.
  • Gebruik 'names' en 'comments' in je programma: zoals hier
  • Je kan ook memory variables of analog input definieren zoals definieren
  • Bij uploaden PLC programma bij stop modules kies: stop all  zoals hier.
  • Real-time debugging: upload je programma, kies 'go online' en in de code-editor kies 'monitoring on/off',zoals hier
  • Bij problemen kan je je PLC programma starten/stopen zoals hier
  • Tia portal ondersteunt naast klassieke coils (), en (/), ook coils met latching (S) en (R). Een latched coil (s) behouwdt de waarde tot je reseteert (R).
  • SIMATIC S7-1200 behoudt de waarden van de relais, ook na herstarten. Het bewaart ook de waarden van de 'geheugen/interne' flags en om deze variabelen te resetten moet je ofwel power-down en up, of in de online modus, klik op 'stop' en 'run', .