Hello Guest it is April 19, 2024, 08:20:20 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 - stirling

1101
General Mach Discussion / Re: CNC Dictionary
« on: January 02, 2012, 02:00:44 PM »
Maybe this could be the impetus for an attempt at rationalising Mach documentation. Currently we have stuff all over the place:

Mach videos - a link under the support item above
Mach documentation - a link under the support item above
Mach Wiki - a link under the support item above
Members docs - a sub forum here
Downloads/tutorials and downloads/documents - two sub forums here
http://groups.yahoo.com/group/mach1mach2cnc/files/ a kind of allsorts archive

and probably loads of others

How about ONE place for all - maybe under the Wiki

Just my two penneth

Ian

1102
I have a question, is the use of the parenthesis  invalid or redundant? (IsMoving()) <-> IsMoving()
It's a moot point - I'm not aware of the formal syntax diagrams being published for CB so I can only assume that CB's syntax is similar to other dialects of BASIC. With that assumption, it shouldn't actually matter because if the parentheses arn't formally part of the while syntax (as they are in C for example) then they would be parsed as a part of the expression syntax (in most BASIC dialects an expression can have an arbitrary number of balanced parentheses around it)

This is not to be confused with the fact that some dialects of BASIC have a peculiar syntax with regards to actual parameter lists. Function calls use parenthesis whereas procedure calls don't UNLESS preceded by the CALL keyword. CB doesn't appear to care!

Meanwhile...

I don't see the syntax error nor does the editor. I see the funny looking ' but can't explane it.
The funny looking ` as you put it IS the syntax error. The comment char in CB is '. You can ignore it if you like but I find it interesting that this is the second time in a week where W7 has been reported to have failed to catch a syntax error that XP succeeds in catching. If an interpreter fails to catch a syntax error then personally I would not trust it after that. Your problem may have more to do with this anomaly than you might think.

1103
where are you putting this code? button? macro file? other? and what actually calls it?
In general what is it you're trying to do?

Also your code has syntax errors as you've presented it, so it doesn't even run. hint: comment syntax.


1104
maybe post the code?

1105
General Mach Discussion / Re: Happy Holidays!!!
« on: December 24, 2011, 01:06:46 PM »
Merry Christmas all

Cheers

Ian

1106
Tangent Corner / Re: My Blackberry is not working.
« on: December 24, 2011, 01:05:50 PM »
Nice one Tweakie - have to say I reckon the 2R's takes some beating - no offence to Harry.

Meanwhile - Merry Christmas all.

Ian

1107
I think that's perhaps the point. As well as perhaps being more stable XP seems less forgiving of incorrect syntax. Your code SHOULD have failed on W7 and the fact that it didn't is W7's shortcoming NOT XP's.

1108
The cypress man is pretty cr@p but I reckon the syntax of your textboxes is incorrect and should be:

TextBox X, Y, DX, DY, .Field$[, Options]

which means (if I understand what you're trying to do):

textBox 50,10,30,10, .width,0

and then later:

Dlg1.width = settings(2)

Certainly if I mod your code as per...

Code: [Select]
Begin Dialog UserDialog1 20,40,240,110,"Enter Circle Parameters", .enable
  OKButton 190,20,40,14
  CancelButton 190,40,40,14
  text 10,10,40,10, "Width"
  text 10,25,40,10, "Height"
  text 10,40,40,10, "Kerf Width"
  text 10,55,40,10, "Feed Rate"
  text 10,70,40,10, "Num Points"
  text 10,85,40,10, "Inner Offset"
  textBox 50,10,30,10, .width,0
  textBox 50,25,30,10, .height,0
  textBox 50,40,30,10, .kerfWidth,0
  textBox 50,55,30,10, .feedrate,0
  textBox 50,70,30,10, .numPoints,0
  textBox 50,85,30,10, .InnerOffset,0
  GroupBox 95,10,80,45, "Kerf Compensation", .groupBox1
  OptionGroup .grp1
    OptionButton 105,20,54,10,"None"
    OptionButton 105,30,54,10,"Inside"
    OptionButton 105,40,54,10,"Outside"
End Dialog

Dim Dlg1 As UserDialog1

Dlg1.width = 1000
Dlg1.height = 500
Dlg1.kerfWidth = 1
Dlg1.feedrate = 6000
Dlg1.numPoints = 50
Dlg1.innerOffset = 50

button = Dialog( Dlg1 )

then I get this under XP (see attached pic) - is this what you intended?

Not sure why it worked under W7 because I reckon it shouldn't have. Local conditions of course may vary.

Cheers

Ian

1109
Modbus / Re: multiple serial modbus slaves
« on: December 22, 2011, 08:31:27 AM »
Just a thought. In your opinion, if for example you had a system with just two modbus slaves, would it make more/any sense to use two serial - RS232 - ports rather than add the "complexity" of an RS485 bus?
OK - answered my own question - you can't do this because Mach can only access 1 port at a time. looks like RS485 it is.

Ian

1110
Modbus / Re: multiple serial modbus slaves
« on: December 21, 2011, 04:12:16 AM »
Hi Peter

It's my own DTHC which I've been developing/testing for a while which I'm hoping to put on sale very soon. It's designed to work exclusively (at the moment) with certain Hypertherm models - Powermax45 for example.

Just a thought. In your opinion, if for example you had a system with just two modbus slaves, would it make more/any sense to use two serial - RS232 - ports rather than add the "complexity" of an RS485 bus?

Cheers

Ian