PLC Oefeningen

Siemens Simatic S7-1200 oefeningen

The station distributes workpieces from the stack magazine module. 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. 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 transfer point of the downstream station. To swivel the rotary drive, one must first de-active the current position actuator relay, before activating the target side.
Initial state
magazine is filled up, ejecting cylinder is retracted, rotary drive is in downstream stations position, vacuum is off
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 rotary drive swivels to the downstream station position
  4. The vacuum is switched off
  5. Back to initial state
Actuators to be identified
suction (vacuum) generator, ejecting cylinder, rotary drive to left position, rotary drive to right position
Sensors to be identified
Through-beam sensor, vacuum switch, left position switch, right position switch, ejecting cylinder positions
In this station workpieces are sorted according to material and color. The conveyor section can be branched off for sorting, whereby the different sorting branches are switched depending on the workpiece. The workpieces must proceed individually. A sensor detects the workpieces inserted at the start of the conveyor. Workpiece characteristics (black, red, silver) are detected by sensors in front of the stopper and the workpieces are sorted onto the appropriate slides via branches. The branches are moved by means of short-stroke cylinders using a reversing mechanism. A retro-reflective sensor monitors the filling level of the slides.
Initial state
workpiece at start of conveyor, stopper advanced, branch 1 retracted, branch 2 retracted, conveyor motor off
Basic sequence
  1. If workpiece detected, then conveyor motor is activated
  2. Color/material identification
  3. Stopper retracts and the corresponding branch advanced
  4. When the workpiece passes the slide, then back to initial state
Actuators to be identified
stopper, conveyor band, branch 1, branch 2
Sensors to be identified
slide sensor, infrared sensor (color identification), induction sensor (metal detection), proximity sensor (piece detection)
The testing station determines the characteristics of the inserted workpieces. The color and the material are detected in workpiece retainer. The black workpieces are not detected by the diffuse sensor. A retroreflective sensor monitors whether the working area above the workpiece retainer is free before the workpiece is lifted (as a safety check-up). The analog sensor of the measuring module determines the height of the workpiece. A linear cylinder guides the correct workpieces to the downstream station via the upper air cushioned slide. Other workpieces are sorted on the lower slide.
Initial state
workpiece in retainer, working area free, lifting cylinder is lowered, ejecting cylinder is retracted, air cushioned slide is off
Basic sequence
  1. Determine the color and material of the workpiece
  2. Lifting cylinder is raised to measure the workpiece height
  3. Sort the pieces
  4. Back to initial state
Actuators to be identified
Air cushioned slide, ejecting cylinder, lift to up position, lift to down position, analog height measurement
Sensors to be identified
metal sensor, color sensor, proximity sensor, vertical positions (2x), ejector cylinder position, analog sensor
The handling station is equipped with a flexible two-axis handling device. Inserted workpieces are detected in the retaining device by an optical reflex light sensor. The handling device fetches the workpieces from the retaining device with the help of a pneumatic gripper, which is fitted with an optical sensor. The sensor in the gripper differentiates between 'black' and 'non-black' workpieces. To move the handling device horizontally, one must first de-active the current position actuator, before activating the actuator of the target side. To reach the inner slide, one must de-activate the position actuator with the help of the position switch.
Initial state
Workpiece in the receptacle, gripper is raised and open in upstream (base) station position
Basic sequence
  1. The lifting cylinder advances, if a workpiece is detected in the receptacle
  2. The gripper is closed. The color identification is executed
  3. The lifting cylinder is retracted
  4. Depositing on the correct slide
  5. Back to initial state.
Actuators to be identified
Handling to slide position, handing to base position, grip release, grip down
Sensors to be identified
color sensor (in the grip), receptacle detector (base tray), horizontal positions (3x), grip vertical positions (2x), grip activated
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 (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 hier 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', .