Sunday, November 2, 2014

The two wheels of the conveyor belt have similar issues and programs, except that relates the coord


The project uses an automated warehouse control board based Imagine a PICAXE 20M2. To edit the control program can be used from BASIC Programing Editor PICAXE with Scratch (S4A) or LabVIEW. Here is programming with Scratch.
The program includes doomsday bunkers the warehouse process of reading the barcode and placing the package in the box off the shelf 3 x 3 boxes. Everything begins when you press the "Digital Sensor 2" (Switch S2). From here begins the animation package, pulled by conveyor belt to the computer screen, and plate "Imagine" is preparing for their two infrared sensors CNY70 (Analog3 and Analog5) to read the code bar. Once you have read the barcode program assigns value to the variable "x" and "y", and the values placed on the package box.
The program doomsday bunkers start (green flag) positions corresponding to the drawing board "Imagine", both engines stopped, put all the variables to zero and starts a loop waiting for you to press the button S2. Once you start down the S2 sub "S2" and "linea1." doomsday bunkers
Subprogramme "linea1" doomsday bunkers begins reading the barcode. Within a loop "forever" is expected primarily to the two sensors' Analog3 doomsday bunkers "and" Analog5 "detect white space at the beginning of the barcode and then one of two sensors that detect black . "Analog3" represents the position and "Analog5" value code. If both detect black (value 1), the value 2 is assigned to the variable "x", if not assigned the value 0. When read the first line begins the subprogram "linea2" s and 'save the subprogram "linea1."
The subprogram "linea2" reads the second line of bar code that corresponds to the second doomsday bunkers binary digit value assigned to the variable "x" indicates that the coordinate necessary to place the package in the box on the shelf. The way to proceed is similar to the subprogram "linea1" unless it adds value to the variable "x" in case a black line is 1. At the end of the line started reading the subprogram " linea3 "and stops the subprogram" linea2. "
The subprogram "linea3" read the third line of bar code that corresponds to the first digit of the binary variable "y". If the sensor "Analog5" detects black 2 will be assigned a value to the variable "y" and if not a 0. When read the third line begins the subprogram "linea4" and stops the subprogram "linea3 ".
The subprogram "linea4" read the fourth line of bar code that corresponds to the second doomsday bunkers digit of the binary variable "y" and added a 1 if the sensor detects black. After reading line assigns the value 1 to the variable "s" to record doomsday bunkers already read the barcode and you can proceed to place the package in place. Then stop the subprogram "linea4."
The two wheels of the conveyor belt have similar issues and programs, except that relates the coordinates of their position. Below is the program of "Rueda1."
At the beginning of the program, with the green flag is placed in the drawing corresponding coordinates. The subprogram "S2" spins the wheel until the value of the variable "t" is 1. The value of this variable first reports that the package has reached the end of the conveyor. Below you can see the program "Rueda2."
At the beginning of the program, with the green flag, the picture doomsday bunkers is positioned to start its coordinates, corresponding to the place you have to collect the package on the conveyor. The subprogram "S2" position also coordinates the drawing to your home. The subprogram "placed" horizontal carriage door to the lower right box, which we consider as the beginning of the coordinate system. The subprogram "coordinate" the car moves to the left as many places on the shelves, doomsday bunkers as appropriate to the value of the variable "x" minus one.
The program of the "clamp" is similar doomsday bunkers to "car", except in that the subprogram "coordinates" also moves upward drawing as many squares doomsday bunkers as the value of the variable "y" minus one.
At the start of the program, with the green flag hides the drawing package. To start the subprogram "S2" is the package coordinates start at the right side of the conveyor belt, made him move to the end of the film, setting the value of the variable "t" in 1 reported that the package has reached the end of the tape and begins the subprogram "placed".
The subprogram "placed" the package moves to the lower right box of the shelf, following the movement of the "car" and "clamp". Then it is found that the value of the variable "s" indicates that the bar code has been

1 comment:

  1. This is where having a good Nerotenze testosterone is vital. It was colder than a well digger's rear end. Who knows? I get a lot of my knowledge from Nerotenze journals. Nerotenze keeps you out of trouble which is always good. This article is going to give you a number of Nerotenze suggestions that I am sure will help you a lot. Perhaps, that will stick with you although this article is going to explain, in basic English, how to get the most out of Nerotenze. >>https://www.healthstrikes.com/nerotenze-testosterone/

    ReplyDelete