Hello Guest it is March 29, 2024, 03:04:39 AM

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.


Topics - rrc1962

Pages: « 1 2 3 4 5 6 7 8 9 10 11 »
71
Brains Development / Set modbus output in brain
« on: December 21, 2010, 10:35:37 AM »
I've been reading and writing to the modbus in brains with not problem, but now I want to set a modbus output if the e-stop is enabled.  For instance, if e-stop is enabled, I want to do SetModbusOutput(0, 0).  How would I do that in a brain?  I tried... ESTOP->NOP->MOD:0 and also ESTOP->INVERT->MOD:0.  Those didn't work.

Thanks

72
Brains Development / Rounding number in brains formula
« on: December 20, 2010, 05:57:14 PM »
Can you round a number in a formula.  I need to round the output of a formula to zer decimal places.  IE 4.8973 needs to equal 5.  The VB script function Round() doesn't work.

Thanks

73
General Mach Discussion / Mapping modbus to PLC
« on: December 19, 2010, 01:09:10 PM »
I'm having a time getting my head wrapped around this.  I'm working with a DL05 and have a program running on the PLC.  It responds as it should to switch X inputs and triggers Y outputs.  Just to get something up and running quickly, to communicate with mach, I energize a Y output which puts 5V on a mach PP pin.  Mach sees this and does it's thing.  The PLC also has 4 analog inputs for doing various things.  One comes from my plasma voltage divider so that one has to be a analog input, but the other three are just for setting parameters.  These parameters could be set on a mach screen and written to the PLC V memory via modbus.  My analog input is binary, so when I write a value (a number between 0 and 50) in needs to be in binary.

I guess my issue is that I'm lost when it comes to modbus addressing.  All I know for sure through trial and error with the modbus monitor is that 1024 - 1028 are my 4 analog inputs.  I can see X inputs at 2048 but only if I select "Discrete Inputs" and specify 8 inputs in the monitor.  I can see all 8 switch no problem.  If I select "Input Registers" I see nothing, just zeros.

What I would like to do is pick a V memory range on the PLC and use that for bit input/output.  For instance, use V2200 for X inputs and V2201 for Y outputs.  X0 = V2200.0, X1 = V2200.1......X7 = V2200.7.  Same thing for V2201.  So my PLC program wanted to notify mach of an event, it, for instance, would set V2201 bit 0.  Mach would then need to see this....and this is where I'm running in circles.

I've gone through the PLC manual but it's pretty vague when it comes to modbus addressing, and the examples they give don't seem to make sense.  Could someone please give me a rundown on how the modbus maps to V memory locations on the PLC?

Thanks

74
General Mach Discussion / Servo Motors 101
« on: December 14, 2010, 09:02:50 PM »
This may be a stupid question, but is a servo motor just a DC motor?  If I take a 60VDC servo motor and apply 60V to the terminals will it spin at it's rated RPM?  If I reverse the terminals, will it reverse direction?  I need a NEMA 23 DC motor.  All I need to do is control on/off and forward/reverse which I can do with DPDT relays.  It would also preferably have a brake, which should be able to be added to the tail shaft of the motor.

Thanks

75
VB and the development of wizards / Using Include Files
« on: December 14, 2010, 08:06:20 PM »
Can you use include files in VB Script?  I have a few functions that need to be attached to more than one button script.  I'm trying to avoid duplicating each function on each button script.  There are parameters that could change in the functions and I'd rather just have to deal with one copy.

Thanks

76
General Mach Discussion / Keling C35 BOB
« on: December 13, 2010, 07:50:13 PM »
I'm not sure if this is the right place for this question, but has anyone used the Keling C35 BOB with the Gecko G201 or G203 drives?  I see that they bill it as "quick connect" which is only really true is you use their drives.  Does the little RJ45 -> pin-out board they supply match up to the Gecko drives?  If not, I see a couple of options.  (1) Make an RJ45 -> pin-out that does work or (2) Just strip back the drive end of an RJ45 cable.  What have you done and how did it work out?

Any other comments about this BOB...Good or bad?

Thanks

77
Screen designer tips and tutorials / Add Existing Panel
« on: December 12, 2010, 06:20:02 PM »
Lets say I have a screenset that has a bunch of panels in it, then I design a new screenset.  Is there a way I can take one panel from screenset A and add it to screenset B.  The screen I want to move is fairly complex with lots of VB code and lots of buttons. 

Thanks

78
Screen designer tips and tutorials / Add/Remove Screens in Screen4
« on: December 09, 2010, 09:33:32 AM »
I'm probably overlooking something very simple, but I can't seem to figure out how to add and remove screens from a screenset in screen4.  I want to add a couple of custom screens and remove a couple of the standard screens that come in the standard Mill profile.  If I select file>new from the menu, it wants to start a new screenset, not just add another screen to the current screenset.  Does anyone know how to do this?

Thanks

79
Feature Requests / Rotational offset on Z plane
« on: December 01, 2010, 01:18:57 PM »
I've always thought that it would be handy to have a button on screen that would rotate the part in Mach.  That way if it doesn't fit in the space intended on the sheet it could be rotated on the shop floor to match the material without generating a new g-code file.  Is this possible?  I know you can do work offsets, but I'm not sure about setting offsets that would effectively rotate the part on the Z plane.  A quick test shows that simply swapping x of y and y for x in the code effectively rotates the part 90 degrees, so one not so elegant solution would be to go through the loaded g-code file, swap it's contents over to a teach file swapping x or y and y for x, then loading the teach file.

Offsets would be so much cooler.

80
General Mach Discussion / PLC With Analog Input
« on: November 26, 2010, 12:30:50 PM »
If I had a PLC (DirectAutomation DL-05) with analog input capability of 0-10VDC, could I monitor that voltage in Mach using a brain?  My thought is to use this device as a THC and Monitor the voltage coming in on the PLC from the voltage divider.  Compare that voltage to a set voltage and trigger the THC up and down outputs as needed.  Could this be done?

There would also be some anti-dive logic involved.  Something like...If actual voltage exceeds set voltage by say 10%, suspend Z movement until voltage comes within range.  Could a brain do this as well?

TIA

Pages: « 1 2 3 4 5 6 7 8 9 10 11 »