PLC Programming Lab

Jun 28, 2024

PLC Programming Lab Instructions

Equipment and Components

  • PLC: Siemens Logo
  • Main switch: Currently in off position
  • Input switches: 4 switches
  • Output devices:
    • Lamp
    • Buzzer
    • Fan

Steps for Setting Up and Connecting Devices

  1. Connecting Power Supply
    • Connect your power plug to the main supply.
  2. Connecting PLC to Laptop
    • Use an Ethernet cable to connect the PLC to the laptop.
  3. Turning On the PLC
    • Push the main switch up to turn on the PLC.
    • The PLC screen will display the date and time once it’s on.
  4. Configuring the PLC Network
    • Open the menu selection by pressing the escape button.
    • Navigate to 'Network' using the arrow buttons and press OK.
    • Note down the IP address, subnet mask, and gateway displayed.
  5. Configuring Network on PC/Laptop
    • Go to the network icon and open network settings.
    • Go to Ethernet settings and click 'Change Adapter Options'.
    • Right-click on Ethernet, select 'Properties', and find 'Internet Protocol Version 4 (TCP/IPv4)'.
    • Click on 'Properties' and choose 'Use the following IP address'.
    • Enter the IP address, subnet mask, and gateway:
      • IP Address: First three numbers should match PLC’s IP (e.g., 192.168.000.XXX).
      • Subnet Mask: Auto-filled
      • Gateway: Same as the PLC gateway
    • Click OK and then Close.

Using Logo Soft Comfort Software

  1. Launching the Software
    • Double-click the Logo Soft Comfort icon on your desktop.
  2. Creating Ladder Diagram
    • Go to File -> New -> Ladder Diagram.
    • Follow ladder diagram instructions to construct your circuit.
    • Example components:
      • Start Button: Make contact (I1 input)
      • Normally Closed Contact: Great contact (I2 input)
      • Internal Relay: Relay coil (M1 flag)
      • Normally Open Contact: Make contact (M1 relay coil)
      • Timer: On-delay timer (set to 5 seconds)
      • Output: Relay coil (Q1 - real output)
    • Connect all components accordingly.
  3. Saving and Transferring the Program
    • Save the diagram.
    • Go to Tools -> Transfer -> PC to Logo.
    • Refresh to see accessible logos and connect to the device.
    • Follow prompts to change device mode (Stop/Run) as needed.

Testing and Simulation

  1. Testing the PLC Circuit
    • Turn On Lamp: Press and release I1, lamp turns on after 5 seconds.
    • Turn Off Lamp: Press and release I2.
  2. Using Simulation
    • Click the simulation icon (SIM) on the taskbar.
    • Test functionality using I1, I2, and observe M1 and Q1 indicators.
    • Verify timed operations and relay status changes.