Bachelor of Engineering Technology (Electrical) ENGGMG6019: PLC2 Assignment: PLC Hardware Part A This assignment examines fundamental input output driver interfacing circuitry. Circuit diagrams and printed circuit board (PCB) layouts, which were created by students themselves during the class exercises, can be copied and pasted to this assignment. The mark system can be referred at Bachelor of Applied Technology Student Manual. This assignment has full score of 100. This assignment should be submitted by TBA This assignment should match all requirements as described as below: Part one: (30 points) Model and construct input and output driver interfacing circuits, interfacing a ATMEL ATMega 328 MCU with a Zelio PLC. The Arduino Uno PLC must use the ATMega 328 and must have the following IO’s assigned as inputs of outputs Input pins Output pins Pin 2 (X1_0) Pin 12 (Y1_0) Pin 3 (X1_1) Pin 13 (Y1_1) Pin 4 (X1_2) The output driver circuit for RC2 must use 3 wire sourcing output drivers that incorporate a PNP transistor The connections to the micro-controller will be X1_0 is connected to an input interface driver circuit (denoted I1) that is in turn connected to NO start push button PB1 (I1 connected to PB1). The supply voltage to the push button is 12V. X1_1 is connected to an input interface driver circuit (denoted I2) that is in turn connected to a NC stop push button PB2 (I2 connected to PB2) The supply voltage to the push button is 12V. X1_2 is connected to an input interface driver circuit (denoted I3) that is in turn connected a N0 push button simulating sensor 1 (I3 connected to sensor 1 PB3). The supply voltage to the push button is 12V. System testing schedule In order to complete this lab you will need to develop the following program for your PLC Step 1: Write the following program using the Arduino Uno version of LDMicro and download this to an Arduino Uno. Figure 1: First LDmicro ladder program for Uno PLC. Step 2: The program starts when the seal circuit starter program (internal program inside the Arduino UNO Programmed with LDmicro (Arduino version of ladder compiler)) detects an input from the start button (normally open start Push Button 1 is pressed activating the input interface driver circuit connected Pin2). Step3: When normally open push button sensor1 (connected to input interface driver circuit connected to pin Pin 4) is pressed a high signal is sent to the Zelio inputs I1, I2, (via the UNO output pins – Pin 12 and Pin 13). If the Zelio detects this signal, the Zelio LCD should display the message ‘success’ (if program1.zm2 is downloaded into the Zelio PLC). Step 4: If the stop push button is pressed (activating the input interface driver connected Uno Pin 3) then the signal sent to the zelio inputs I1 and I2 (via the Uno PLC outputs O1, O2 (Uno’s Pin 12 and Pin 13) must cease (UNO PLC outputs O1, O2 are controlled by UNO Pin 12 and Pin 13 - GO LOW). Vdd Atmel328 Vcc Pseudo UNO PLC Pin 2 Input interface driver circuit (I1) Start Push Button Pin 3 Input interface driver circuit (I2) Stop Push Button Pin 4 Input interface driver circuit (I3) Push Button Sensor 1 Pin 12 Output interface driver circuit (O1) I1 Zelio PLC Pin 13 Output interface driver circuit (O2) I2 LCD Figure 2: Pseudo circuit configuration for system in part 1 of the assessment All input and output interfacing circuits must be opto-isolated, for the Uno PLC to be IEC61131-2 compliant. Program the ATmega328 UNO Board with the above seal in circuit and program the zelio with program1.zm2 The program1.zm2 are contained in the moodle assessment 1 PLC hardware folder. Input driver circuits to Uno Pin2, Pin3, Pin4 must be PNP sourcing type driver circuits. Present the system to the examiner for testing on TBA. Part two: (40 points) Model and construct input and output driver interfacing circuits, interfacing a Uno board with an Atmel 328 MCU with a Zelio PLC. The Uno PLC must use the Atmel328 chip and must have the following IO’s assigned as inputs or outputs Input pins Output pins Pin 2 (X1_0) Pin 12 (Y1_0) Pin 3 (X1_1) Pin 13 (Y1_1) Pin 4 (X1_2) The output driver circuit for Pin 12 and Pin 13 must use a 3 wire sourcing output drivers that incorporate a PNP transistor The connections to the micro-controller will be Q1 in the PLC is connected to I1 on the Uno PLC (note PB1 is now removed now removed as the input to I1 of the Uno PLC) Q2 on the PLC is connected to I2 on the Uno PLC (note PB2 is now removed as the input to I2 of the Uno PLC) Q3 on the PLC is connected to I3 on the Uno PLC (note sensor 1 is now removed as the input to I3 of the Uno PLC) Pin 12 is connected to a sourcing output driver (O1) that is in turn connected to a zelio PLC input I1 Pin 13 is connected to a sourcing output driver (O2) that is in turn connected to a zelio PLC input I2 All input and output interfacing circuits must be opto-isolated on the Uno so that the Uno PLC is IEC61131-2 compliant. Program the Zelio PLC with program2.zm2. Write the following program using the Arduino Uno version of LDMicro and download this to an Arduino Uno. Figure 3: Second LDmicro program for Uno PLC. Program the Zeio PLC with program2.zm2 which is contained in the moodle assessment 1 PLC hardware folder. Input driver circuits to Pin 2, Pin 3, Pin 4 must be PNP driver circuits. Press the Z1 button on the PLC, if the PLC is wired correctly, the word success should appear. Pressing the Z2 button on the PLC should clear the word success. Present the system to the examiner for testing on TBA. Vdd Atmel328 Vcc Pseudo PIC Pin2 Input interface driver circuit (I1) MICROCONTROLLER Pin3 Input interface driver circuit (I2) Based PLC or Pin4 Input interface driver circuit (I3) Pin12 Output interface driver circuit (O1) I1 Zelio PLC Q1 Pin13 Output interface driver circuit (O2) I2 MCU microPLC Q2 Q3 LCD Figure 4: Pseudo circuit configuration for system in part 2 of the assessment Part three: (30 points) Write a report documenting the system; include all circuit diagrams and simulations using multisim and design calculations used in creating this system. A bonus of up to 10 points are available if a high quality PCB design is presented (generated using UTILBOARD or another PCB design package). Submit the report on TBA. F690 PLC