Nirtec Studio Forum

General Category => Machines Simulator => Topic started by: andrer1990 on February 14, 2023, 06:35:38 AM

Title: Make add 3 sensor to cilindre
Post by: andrer1990 on February 14, 2023, 06:35:38 AM
Hello. I need to know how i add 3 sensors to cilindre.
Im not sure if It is posible with machines simulator because in the real Life you can do It. Add It on the real cilindre.
Thx
Title: Re: Make add 3 sensor to cilindre
Post by: EasyPLC_Master on February 14, 2023, 09:17:31 AM
Yes of course!
Machines Simulator is a sandbox for automation, you can create 'almost' any component for automation simulation.

I assume you mean putting three detectors on the body of a cylinder to detect three positions. You can simulate this behavior by reading the position value of the cylinder piston and activating the PLC INPUTS signals based in their value.
Title: Re: Make add 3 sensor to cilindre
Post by: andrer1990 on February 14, 2023, 09:36:15 AM
Yes. I mean that.
How can i do It?
Using c# script?
Thxs
Title: Re: Make add 3 sensor to cilindre
Post by: EasyPLC_Master on February 14, 2023, 12:58:38 PM
You can do it in so many ways, controllers, graph code or script code.
Here I attach you an example using graph code in a UDC cilinder, there are three sensors that detect the start, medium and end positions, changing the nodes you can change the behaviour.
Title: Re: Make add 3 sensor to cilindre
Post by: andrer1990 on February 14, 2023, 02:05:48 PM
Quote from: EasyPLC_Master on February 14, 2023, 12:58:38 PMYou can do it in so many ways, controllers, graph code or script code.
Here I attach you an example using graph code in a UDC cilinder, there are three sensors that detect the start, medium and end positions, changing the nodes you can change the behaviour.
Thxs mate i Will test It. I am new with machine simulator. Nice software to learn aboout automation systens
Title: Re: Make add 3 sensor to cilindre
Post by: andrer1990 on February 15, 2023, 12:14:42 AM
hi.
I have test it, but I'm not sure because it never stops if I put something in front.
check the picture.
i'm trying to do a poke yoke machine.
thanks

(https://i.ibb.co/VDf7924/test-cilindro.jpg) (https://ibb.co/ftjhF4w)
Title: Re: Make add 3 sensor to cilindre
Post by: EasyPLC_Master on February 19, 2023, 09:47:48 AM
It depends the behaviour you want to replicate, in the case you want a realistic physics other type of moving functions must be used.