Hello Guest it is March 28, 2024, 10:16:30 PM

Author Topic: Reviving old machine using mach  (Read 31043 times)

0 Members and 1 Guest are viewing this topic.

Re: Reviving old machine using mach
« Reply #50 on: April 07, 2014, 09:32:21 AM »
also i want to know - do i need any hardware board, or i can just wire directly to PLC?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Reviving old machine using mach
« Reply #51 on: April 07, 2014, 02:29:07 PM »
You have to have the start registers that corresponds to your PLC I dont know anything about the Siemens PLC you are using but examples below show what I need for my Koyo PLC.
If you look at the below example of a part on one of my ladders you will see that the inputs to the PLC via Modbus are starting at 4000.0, so In Mach the outputs start register would be the decimal equivalent of  that, ie 4000 Octal is 2048 decimal so my start register for Mach outputs would be 2048.
In the second pic that is showing the Outputs from my PLC via Modbus, they start at 2001.0 which in decimal is 1025 and that is the value I would enter for the start register for the Mach outputs.
Hood
Re: Reviving old machine using mach
« Reply #52 on: April 08, 2014, 12:05:53 PM »
BINGO... I GOT IT WORKING NOW

I WAS LOOKING AT OEM CODE FILES. MY INTENTION IS TO HOLD FEED OR TO STOP FEED. I FOUND CODE 111 IN OEM LED FUNCTION. HOW CAN I USE THAT FOR PROGRAM?

ONE INPUT ASSIGNED TO PLC - WHEN THIS INPUT IS HIGH, IT WILL BE LINKED TO OEM TRIGGER 1 AND I WILL INSERT CODE 111 FOR IT

IS IT CORRECT PROCEDURE??

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Reviving old machine using mach
« Reply #53 on: April 08, 2014, 02:39:00 PM »
Ok I think I am understanding what you are asking, is it that you want to have an output from the PLC via Modbus to signal Mach to Feed Hold?
If so then you do not use the LED in Mach.
You could do it several ways, via OEM triggers as you mentioned, via the macropump or via Brains or a combination of them.

With the OEM Trigger what you would do is set the port and pin number next to the OEM trigger you wish to use. Then in System HotKeys you would enter the OEM code for the function you wish in the box next to the OEM Trigger you are using.

Ok so for port and pin number, Port is 0 for Non-Plugin Serial Modbus and the pin number will be whatever the output from the PLC is, for example in my pic above you see B2001.1,B2001.2, B2001.3, B2001.4, so they would represent Pin 1, 2, 3 and 4 respectively. So if you were using B2001.3 then the OEM trigger would be set to Port 0 Pin 3

Now onto the OEM code for the trigger in SystemHotkeys. You are wanting FeedHold so you look to see what the OEM code is for the FeedHold button, it is 1001 so that is the number you would enter.

Hood
Re: Reviving old machine using mach
« Reply #54 on: April 08, 2014, 09:25:11 PM »
So this means i will not required any hard wiring right??

If my PLC address start from zero, i will have to set B0.1 or like that for pin

And what will b port no for plugin enabled serial modbus? I succeded with plugin enabled - not tried with non plugin option

I have OEM code list but i think its not updated - what i found is excel uploaded by you in 2008
Can you attach latest list you have?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Reviving old machine using mach
« Reply #55 on: April 09, 2014, 02:57:32 AM »
If I recall correctly, if using the plugin  you can not use OEM Triggers or I/O via Ports and Pins, you need to use Brains.

The OEM list I am using is that one you mention, I copied it from the Mach Wiki at the time so there may be some updates there, you will have to check and compare.
Hood
Re: Reviving old machine using mach
« Reply #56 on: April 09, 2014, 03:38:29 AM »
How can i do that witg brain? Because i couldnt found anything for feedhold in brain

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Reviving old machine using mach
« Reply #57 on: April 09, 2014, 03:48:13 AM »
see pic.

Hood
Re: Reviving old machine using mach
« Reply #58 on: April 12, 2014, 01:04:35 AM »
does Flood/Mist control works as auto or i have to control it?
Re: Reviving old machine using mach
« Reply #59 on: April 12, 2014, 01:14:31 AM »
what this user LED does? Can i consider those as Output ? I mean for example 86- x enabled - can i take this as feedback when x axis is enabled in mach?