News:

SMF - Just Installed!

Main Menu

Issues with Classification System

Started by Mahkizmo, February 09, 2015, 02:03:42 PM

Previous topic - Next topic

Mahkizmo

For the moment i go through all machines in the machine simulator using ladder and afterwards continue to FB.

The issue i have at the moment is how to store input signals.

The easiest thing to solve this would be to change the position of the 2 sensors I.0.3 and I.0.4 and place them above the cylinder using the machine editor. But that doesnt solve the issue of storing input signals.

I have tried to use flags (int) and set the conditions needed for each box and adding =1 to == 1 and = 2 to == 2 etc depending on the box size. It does do part of the job but sadly not the complete thing. The flags seems to work but as soon as I.0.1 is triggered it sends all boxes to the next conveyor ignoring the condition set on the flags.

Do i have to create a Datablock or a Register Transfer on this part to be able to solve this? IF so i would prefer to get some information on how to do this.

Appreciate all help i can get.

Sincerely/ Mahkizmo

Mahkizmo

Got it working now with the flags, had to change around a bit with the box type.

Still got 1 problem remaining, when the cylinder is suppose to push the box/boxes.

The boxes only gets halfway on the conveyor towards then next conveyorbelt.

The boxes wont go to the next conveyor. Looks like the pusher goes halfway through the boxes.

Anyone know how to solve this?

/Mahkizmo

Mahkizmo

Got it working using a timer on the pusher.

Was some struggeling since all other machines in the simulator have a premade program to look at if you. Or I in this case get stuck.

For those of you struggeling with this one.

Use flags (memory) and use of timer is needed if only programming in ladder. Not sure how it would be in FB since i havent started that yet.

/Mahkizmo

EasyPLC_Master

About the behaviour with the conveyor & boxes I have improved the system, please try this installation unzipping & replacing the previous one.
I do not understand very well your question about how to store the input variables, what you mean???, normally if you want to memorize and input value from a sensor in ladder language you should use variables and set/reset coils in order to set the memory with the conditions you need, later use it the variable at your convenience.

[attachment deleted by admin]

Mahkizmo

What i ment was to store the sensor signals which are D.I.

They are only active when triggered and inactive when nothing is there blocking them.

I was struggeling with this for a few hours trying to solve it. Thought that i had to use the RT function (Register Transfer) or the Datablock function to be able to program this exercise. Which i've never done before.

Since there is 3 different sizes of the boxes i needed to set the right conditions for when the cylinder/pusher was allowed to move.

I solved it basically by telling the PLC:

      I.0.3      I.0.4       Flag = 1
-----|  |--------|/|--------( )--                    Medium sized box

And then working my way from there changing conditions and flag values.

Mahkizmo

I have managed to solve this now. (Of course there's always room for improvement)

I also managed the conveyors to be more energy efficient, meaning that the conveyors only move for a certain time or when a box is on. This is only for conveyor 2 and 3 since conveyor 1 must be on all the time to get new material (boxes).

I add my solution here, which is in ladder.

IF you got a better solution or that i have added to much unnecessary stuff i would appreciate if you tell me since im quite new with programming PLC's (Only did the basics at university)

Finished my education back in 2011 and havent done any jobs at all with PLC after i graduated the mechatronics course.

[attachment deleted by admin]

Mahkizmo

Update about the new classificationsystem.maq

Now the boxes wont flip over when changing conveyor.

Only part now is to change the position of sensor (I.0.1, I.0.2) since the boxes are not centered towards the next conveyor when these inputs are triggered.

Of course it can be solved using an additional timer =)

/Mahkizmo

EasyPLC_Master

Hello, I have not found problems in these detectors, anyway I have modified a little bit the angle of photocell I.0.1 in order to dectect a little bit after.
Remember that is very easy to modify the virtual machines with the Editor, customizing the machines for your needs, could be that for systems with different speeds the signals go faster/slower and need to be ajusted.

[attachment deleted by admin]

Mahkizmo

Works perfectly now with the modified .maq file.

Thanks for the help.


/Mahkizmo