Hello Guest it is April 25, 2024, 04:48:15 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rrc1962

121
Mach4 General Discussion / Mach4/ESS sort of working
« on: May 15, 2015, 02:10:29 PM »
When I say sort of, I mean inputs and outputs work, but I have no jog movement.  The DRO's do not move, so I know it's something in M4.  With M3, if there is something going on on the breakout board preventing motion, the M3 DRO's still show motion.  There are no limits or estop triggered.  Everything looks normal.  What would cause M4 to process inputs and outputs correctly, but not move any of the axes?

Thanks

122
Mach4 General Discussion / Re: Output Control
« on: May 06, 2015, 11:50:53 PM »
Thanks guys....

On the following line....

hsig, rc = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT2); 

What is the significance of hsig, rc? I see examples that do not include the ,rc. 

123
Mach4 General Discussion / Re: Output Control
« on: May 06, 2015, 01:17:01 PM »
I ran this in debug mode inside the IDE and I get the following.....

Lua: Error while running chunk.

What does that mean?

124
Mach4 General Discussion / Output Control
« on: May 05, 2015, 01:27:48 PM »
I have a script that I expected to trigger an output, but it doesn't.  Here is the script...

local inst = mc.mcGetInstance();
local osig = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1)
local oState = mc.mcSignalGetState(osig)
if (oState == 0) then
    mc.SignalSetState(oSig, 1)
else
    mc.SignalSetState(oSig, 0)
end   

There is an LED that is mapped to OUTPUT1 and the outputs are enabled.  My expectation was that when the button is pressed, the LED for the output should come on.  This is on an un-licensed version.  Would that cause outputs not to trigger?  There is also no motion controller connected or installed.  The plan is to use ESS but for now, I'm just working on the screenset.  Would the lack of a motion controller be an issue?  I've also noticed that jog buttons are grayed out.

Thanks

125
Mach4 General Discussion / Re: Basic scripting question
« on: April 22, 2015, 10:10:54 PM »
I knew it had to be something simple.   Thanks.

126
Mach4 General Discussion / Basic scripting question
« on: April 21, 2015, 11:09:34 PM »
I've stared the process of porting all of my macros over to Lua.  I'm familiar with the language, but not the mach4 API.  What I'm trying to do is create a macro that pulls data from DRO's on the screen.  I added the DRO's but so far have not been able access them.  I used the examples in the scripting manual with no success.

If I had a DRO named "test1", how would I read that into a local variable?

Thanks

127
General Mach Discussion / Re: Modbus Serial Plugin Issue
« on: June 16, 2014, 08:16:36 PM »
Thanks Peter.  For some reason when I went back in to take some screenshots, it was working, which I can't explain.

I have something else related though that you may be able to help with.  The slave is a DL06 PLC.  It is doing some calculations with the real data type.  It is producing anything from 0 to 2.6 out to 3 decimal places.  I need to bring that into Mach3 over the Modbus.  I think the problem is that Mach3 doesn't recognize the real numbers.  Would you know either get the real numbers into mach3 or what to do with them on the PLC side?

If I format the numbers in the PLC to BCD, they come across coreectly in Mach.  I don't think I can convert a real, which is a DWORD, to a BCD, which is a WORD. 

Thanks

128
General Mach Discussion / Modbus Serial Plugin Issue
« on: June 15, 2014, 07:34:13 PM »
I've been using modbus for a few years but now have the need to read a DWORD (16 bit).  I've always ued the non-plugin setup which always worked great.  I recently tried the plugin version because it seems like it may be easier to deal with a 16 bit number.  Here's the issue.  When I disable the plugin and bring up the standard modbus setup screen, I can go to the test screen, enter addresses and such, hit read and it works.  When I enable the plugin and go to the test page all I get is a timeout.  The port is connecting properly, just timing out.  If I disable the plugin and go back to the standard setup, it all works again.

Does anyone have any ideas?  Or possibly an in-depth explanation of how to set up modbus using the plugin?  I've been through the videos and everything else I could google to no avail.

Thanks

129
General Mach Discussion / Optimizing Win XP
« on: April 17, 2014, 09:37:03 AM »
Hi All....I know there is a document that covers this, but I can't find it.  A search yields all sorts of threads talking about it, but no clues as to where it is.  I thought it was in member docs.  Can anyone point me towards this document?

Thanks

130
General Mach Discussion / Re: Version .066 Arc Issue
« on: November 01, 2013, 10:41:26 AM »
M1101 just toggles an output...1 line of code.  I've stripped the code right down to nothing but motion code and it still does it.  I modified the post to produce modal arc codes.  Everything works fine with modal arc codes.