block tester project

Upload: gottt727

Post on 05-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Block Tester Project

    1/9

    Block TesterDescription of project (worth 10% towards final grade)

    The objective of this project is to test a variety of round objects and sort them according to the type

    of construction material and colour.

    One reflective sensor is used to determine that block is in position, three other proximity sensors

    determine whether block is made of plastic, Aluminum or a Ferris material.

    The smart sensor is programmed to operate one of three outputs depending on the colour of the

    object. These are wired to three separate PLC inputs (details below).

  • 7/31/2019 Block Tester Project

    2/9

    Project 1 - Block Testing

    Requirements

    (a) Prepare either a written description of the program operation, or a diagram illustrating the program operation.

    (b) Prepare an I/O listing for each block type: Black Plastic, Orange Plastic, White Plastic,Aluminium, Steel. (See template below)

    All sensors are wired NO, except the Block in Place sensor which is NC.Program requirements:

    (c) Create a program to read the PLC inputs and produce unique binary value for each block inthe data register [D000] memory of the PLC.

    Assign one internal memory bit (M..) for each block type; show this in your tablefor part b. These memory bits should be within a continuous set of 16 internal

    relays; eg M0020 M0037 (28,29 are not included because of Octal numbering).

    Use the appropriate sensor inputs to PLC to control the memory bits (refer to yourtable, part b)

    Include basic error protection; ie Black and White sensors shouldnt be onsimultaneously.

    Use the Move function in your ladder to transfer the data from memory bits to dataregister. (see example on next page)

    The complete data register can be transferred via a network to another machine(not in the scope of this project)

  • 7/31/2019 Block Tester Project

    3/9

    Project 1 - Block Testing

    Example ofMove function:

    16 bits of data are copied:

    M0020 D000 .00

    21 .01

    22 .02

    23 .03

    24 .04

    25 .05

    26 .06

    27 Copy .07

    30 Data .10

    31 .11

    32 .12

    33 .13

    34 .14

    35 .15

    36 .16

    37 .17

  • 7/31/2019 Block Tester Project

    4/9

    Project 1 - Block Testing

  • 7/31/2019 Block Tester Project

    5/9

    Project 1 - Block Testing

  • 7/31/2019 Block Tester Project

    6/9

    Project 1 - Block Testing

  • 7/31/2019 Block Tester Project

    7/9

    Project 1 - Block Testing

  • 7/31/2019 Block Tester Project

    8/9

    Project 1 - Block Testing

  • 7/31/2019 Block Tester Project

    9/9

    Project 1 - Block Testing