Nirtec Studio Forum

General Category => Machines Simulator => Topic started by: james.pierrot on May 15, 2023, 12:47:49 PM

Title: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 15, 2023, 12:47:49 PM
I have a new project where I need to add a new object to be replicated onto the conveyor via the makeworkcreator, I also have a need to add an encoder to my project conveyor. I've seen the conveyor encoder project, but still do not know how to add these functions to mymachine project.

Thank you
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 15, 2023, 01:33:10 PM
Quote from: james.pierrot on May 15, 2023, 12:47:49 PMI have a new project where I need to add a new object to be replicated onto the conveyor via the makeworkcreator, I also have a need to add an encoder to my project conveyor. I've seen the conveyor encoder project, but still do not know how to add these functions to mymachine project.

Thank you
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: EasyPLC_Master on May 15, 2023, 01:55:10 PM
Encoders can not be added, if you need to use an encoder, you must use the ConveyorBelt that includes an encoder to control position.

Regarding to add new object, I suppose you mean a 3D model, correct? 3D models can be imported into MS, you must use a 3D model in .obj format, then following the instructions explained in the MS manual (Annex section) you can assing the 3D model to the following component types: Static, Dynamic, 3D Model and WorkParts.
Here you can see an example:
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 15, 2023, 07:04:09 PM
yes I am trying to add a new package that my company produces. I'll watch the video now ... sorry I couldn't find any of these before now.

Thank you
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 16, 2023, 07:55:26 PM
I'm having a problem, when I configure the ladder after importing the machine profile, the ladder logix is not connecting with the machine when I open the machine file. I can't figure it out, any solutions as to why my ladder logix is not connecting to my mymachine?

THank you in advance
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: EasyPLC_Master on May 17, 2023, 07:50:35 AM
James, to help you is necessary you provide more information, with what system are you making the connection, Siemens, Allan Bradley, Codesys,...? What drivers are you using?
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 18, 2023, 03:44:56 PM
I created the coveyor in the machine sim using the edit feature. In my logix Im using the MachineSimulator3 driver. I am trying to create a simulation project without connecting to an Rockwell or Siemens product. Trying to use the built in simulator for this project.

thank you,

James
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 18, 2023, 04:38:19 PM
I used the Machine Simulator, selected the factory 1 editor. I created the coveyor system I wanted to use and tested it successfully using the start animation. I then created a new project and imported the My Machine Ontop2 file successfully. I created a main routine and downloaded it successfully to the virtual cpu, when I go back to the created conveyor there is not plc or plc functions at the bottom of the page. I can manual use the IO functions and they work, I'm just not able to attach the ladder logix I created to the virual machine. I'm missing a driver step here I'm unable to set up. How do I build a conveyor in the Factory editor and then connect it to the ladder logix I created in the easy plc. I'm not using a Rockwell or Siemans PLC, I'm trying to use this inside the virual cpu with the machine3 driver, what am I don't wrong?

THank you
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: EasyPLC_Master on May 18, 2023, 05:37:10 PM
The editor is used to create the machines, in the editor there is no connection to the PLCs. If you want to connect with PLC systems, you must start the simulation from the Machines Menu on the Machine Simulator start menu screen, once you select the desired machine press the start button to start the simulation.
This is explained step by step in the Machine Simulator Quick Guide available on the Machine Simulator main screen (see attached pict)
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 18, 2023, 08:08:16 PM
Rafael, I went to access and to reinstall the easy plc software on to my computer after it was rebooted for a windows issue. I get a message that I no longer have access to those files when I go to install the easy plc suite, can you provide the help I need to get this fixed?

I did read the document you pointed too and am now able to connect my conveyor to my logix, now I just have to get my software reloaded and my thumb drive fixed.

Thank you,
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: EasyPLC_Master on May 18, 2023, 08:58:51 PM
I will contact you to solve the problem.
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 19, 2023, 09:13:44 PM
Thank you for the assistance today, as it turns out the usb stick works fine when I plugged it into another computer, apparently the windows glitch I suffered screwed up my access privilages to my usb port. I'll have to have IT fix that.

One last thing and I'm good to go, how do I create a new workpart to come out of the creator. Is there a file location where I can get items that are not in the file set that I received?

Again, thank you

Jim
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: EasyPLC_Master on May 21, 2023, 07:51:00 PM
NO, you have to place any workpart in the machine you're creating, then add a WorkPartCreator.
Then assign a PLC digital input or output to the WorkPart creator and when active, will create a new WorkPart.
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 23, 2023, 04:45:55 PM
I have Four seperator conveyors in a line, can I write directly to the control panels of eacy conveyor and start stop them and change speeds individually. Right now they all start at the same time when I start the initial conveyor?

Thank you
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: EasyPLC_Master on May 23, 2023, 05:10:36 PM
Yes, of course, you should assign it different I/O addresses.
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 24, 2023, 09:44:10 PM
Hi Rafael, I moved the obj file into the Machines Simulator 3\SteamingAssets. Went to creat the new work part and it's not showing up to create it, any thoughts that would help me get this into a new workpart?

My file is an pipingBag.obj file
Thank you,

Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: EasyPLC_Master on May 25, 2023, 08:36:33 AM
Your model loads correct (see pic.)
Have you followed the instructions explained in the Machines Simulator Instruction Guide.pdf (section Appendix)?

One thing, the mtl file must to contain relative paths for the textures not absolute:

Instead of
        map_Ka F:\Freelance\Open Projects\26Made\Richs\OBJ\bag_diffuse.jpg
   map_Kd F:\Freelance\Open Projects\26Made\Richs\OBJ\bag_diffuse.jpg
You must set:
   map_Ka bag_diffuse.jpg
   map_Kd bag_diffuse.jpg
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 25, 2023, 12:48:13 PM
I'll re-read the book to see where I'm messing up, I did set everything according to your email, I don't at this time know how to do the steps in the email you just sent, but I'll try.

Thank you,

Jim
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 25, 2023, 01:56:12 PM
I'm still not getting it, I reviewed both of Shane's videos, read the book and still cannot get the file to show up in the C:\Nirtec\Machines Simulator 3\ms3bin_Data\StreamingAssets\

I'm missing something, what I don't know?

I read the installation guide, is there another book I should be reading? I asked Shane if he knew how to use the UDC tools and he didn't, so I'm kinda left with my limited knowledge. Any help is deeply appreciated!

Jim
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: EasyPLC_Master on May 25, 2023, 03:08:57 PM
Send me by mail your machine file (.maq) and I will include the WorkPart with the indicated model.
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 25, 2023, 06:13:36 PM
Thank you for all your support, unfortunately I can't seem to get the texture to change to the piping bag, still coming out as a small box workpart33. This is clearly over my head, can you send me the property screen shot of the file so I can see if that's setup correctly. Im able to access the workpart33 but cant seem to chang the texture to the piping bag. I don't have the files you initally told me to place in the C:\Nirtec\Machines Simulator 3\ms3bin_Data\StreamingAssets folder. My disability is definitely part of the issue. But I'll get through it, I have everything else working, just need to get this file fixed correctly.

Thank you for putting up with this and my lack of computer skills
Title: Re: Adding New Objects & Encoders to Easy PLC
Post by: james.pierrot on May 25, 2023, 07:03:14 PM
Quote from: james.pierrot on May 25, 2023, 06:13:36 PMThank you for all your support, unfortunately I can't seem to get the texture to change to the piping bag, still coming out as a small box workpart33. This is clearly over my head, can you send me the property screen shot of the file so I can see if that's setup correctly. Im able to access the workpart33 but cant seem to chang the texture to the piping bag. I don't have the files you initally told me to place in the C:\Nirtec\Machines Simulator 3\ms3bin_Data\StreamingAssets folder. My disability is definitely part of the issue. But I'll get through it, I have everything else working, just need to get this file fixed correctly.

Actually it's coming out as a workpart1 as a box. I'm completely lost here

Thank you for putting up with this and my lack of computer skills