Hello Guest it is March 28, 2024, 04:17:38 PM

Author Topic: CS w/Brains & Triggers  (Read 13746 times)

0 Members and 1 Guest are viewing this topic.

CS w/Brains & Triggers
« on: November 16, 2013, 10:31:49 AM »
Hi folks,
  Setting up CS with the macro call, Brain and Triggers set to 301 to respond to PLC outputs.
The led's on both units indicate the plc out and the CS in, but nothing executes.
Macropump is running, Brain enabled and working ( a separate lobe turns on an output when axis is at 0.000 working fine).
R3.043.057 licensed.
I can emulate the Triggers and they work fine.

Is the CS compatible to use this way ?

I'm at a loss.
Thanks for any help,
Russ :)
 
Re: CS w/Brains & Triggers
« Reply #1 on: November 16, 2013, 10:40:49 AM »

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: CS w/Brains & Triggers
« Reply #2 on: November 16, 2013, 11:29:53 AM »
Not really following what you are trying to do.
CS I presume is shorthand for CSMIO/IP-M?
PLC outputs are from  a PLC? Going to ?

What is the macropump doing?
Whats in the Brains?


Hood
Re: CS w/Brains & Triggers
« Reply #3 on: November 16, 2013, 06:03:55 PM »
Hi Hood,
   Here is another post on the topic:
http://www.machsupport.com/forum/index.php/topic,16607.0.html

My setup is almost identical.
Only thing is, I'm doing the button press with the plc, then Mach sends a pulse back to the plc and the plc resumes.

Scripts for OEM Triggers 1,2,3 & 4 are all in one macro. M915
M999 is in the initialization string and sets the trigger macro (915)
Under hotkeys, all 4 triggers are set to 301
.... just like in the example post above.

The plc runs some cylinders and monitors several inputs. It uses 4 outputs tied to 4 inputs on the CSMIO, 1 for each of the 4 triggers.
When conditions dictate, one of the 4 plc outputs will fire.( tried a 1 scan pulse and a 500ms pulse to assure that it's seen by the CSMIO and I can see the leds)
At the end of the 4 trigger scripts, Mach sends a 500ms pulse back to the plc and the plc resumes. (this part works)

As said, I can see the plc output led light up and the CSMIO input led light up simultaneously but none of the triggers (macro) will execute.

I had this method working well before installing the CSMIO .... but don't know if that's my problem or not.
Maybe the plugin affects something ? ? ?

Please let me know if you need more info.
Thanks for your attention Hood,
Russ

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: CS w/Brains & Triggers
« Reply #4 on: November 17, 2013, 08:16:38 AM »
Ok so do the OemTrigger LEDs light in Mach?
If not are you sure you have the correct port and pins assigned to the triggers in Ports and Pins?
Hood
Re: CS w/Brains & Triggers
« Reply #5 on: November 17, 2013, 09:05:25 AM »
Where do I monitor the OemTrigger LEDs light in Mach ? Do I need to add them to a screen ?
Emulating w/ the keyboard works, so I'm assuming Mach sees it.

Ports and pins all match.
Thanks Hood

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: CS w/Brains & Triggers
« Reply #6 on: November 17, 2013, 09:10:32 AM »
Sorry Russ, talking out my arse, no OEMs for trigger LEDs now I think about it.

Ok so need to get my head round this, you have your macro in your profiles folder, you also have the set trigger macro there, you also have that in the init line. You have the OEM Triggers set in ports and pins and then in system hotkeys they are set to 301.
So where do the Brains come into the equation?

Hood
Re: CS w/Brains & Triggers
« Reply #7 on: November 17, 2013, 09:30:13 AM »
The Brain watches for the button press (input), then executes the script.

I know the brain is enabled and running because the last lobe is working perfectly. Whenever the X axis is at 0.000, output 2 is on.

Thanks again Hood,
Russ

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: CS w/Brains & Triggers
« Reply #8 on: November 17, 2013, 09:35:00 AM »
Ok will have to read a bit more of the posts linked above as I am still not seeing why the brain is needed, I was thinking the OEM trigger was all that would be required.

Ok so until then, if you are monitoring the Brain do you see the trigger go green when the appropriate input is active?
Hood
Re: CS w/Brains & Triggers
« Reply #9 on: November 17, 2013, 09:44:17 AM »
The trigger pulse is pretty quick, might have to make it a full second or more to see it graphically.
Will go and try it.
Back soon,
Russ