Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 06:10:42 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
VB and the development of wizards
modbus
Pages:
«
1
2
Go Down
« previous
next »
Author
Topic: modbus (Read 849 times)
0 Members and 2 Guests are viewing this topic.
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: modbus
«
Reply #10 on:
October 22, 2010, 05:43:52 PM »
Stirling, you can write to/from the mod bus, using the OLD style modbus, not the new plugin modbus, for the new on you haev to do indirect via, Brians....
the Wiki, under modbus has the calls for OLD style serial MB to send/receive data....
scott
Logged
Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: modbus
«
Reply #11 on:
October 23, 2010, 10:58:17 AM »
Hi Scott
I've not been able to find anywhere in the wiki where you can WRITE to a modbus slave from Mach OTHER than via autopolling. The wiki promises you can use direct access but gives you no clue as to how. I don't really want to use autopolling because all I want to do is send the reference voltage the THC should use for any particular cut setup. I just need to do that once per run when the cycle start is hit. The THC has enough to do without continually being polled unneccessarily so hence my desire to use direct access.
Terry
The THC is my own design - hardware and software and so I can make it use any protocol I like. I thought I'd try modbus because it seemed the obvious way to communicate with a bespoke device via serial from Mach - BUT I guess not. Like I said earlier, I'll just re-jig the serial hardware interface and use Mach's sendSerial. All other comms between the THC and Mach are done conventionally via Torch On/Up/Down etc. it's just that one serial tx I need to send the required voltage.
Thanks both
Ian
Logged
BR549
Active Member
Offline
Posts: 2,555
Re: modbus
«
Reply #12 on:
October 23, 2010, 11:55:51 AM »
Ian keep us up to date (;-) There IS a need for a good simple thc .Now I am sure it is NOT simple but you get the idea.
(;-) TP
Logged
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: modbus
«
Reply #13 on:
October 24, 2010, 05:22:12 AM »
Would that life was so simple. At the moment my THC is designed to work only with the hypertherm range as they're the only systems I've come accross that have a ready built in interface. I may look at a more generalized system at some point but here in Europe a system that requires the user to insert a custom interface into a plasma unit presents quite a challange from a H&S/legal/warranty perspective so I'm not sure there's any milage in it sadly - unless someone can tell me otherwise.
Ian
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: modbus
«
Reply #14 on:
October 24, 2010, 08:09:38 AM »
oh, ok......
Here is two other possilbe simple solutions, one you do the other buy off the shelf stuff.......
1). since you only need a voltage to send, at start up of m3, (or on changes?)
convert your voltage to a BYTE format, and send each BIT if it is a 1, to one
of m3's 8 OUTPUTs, this could be an standard piece of CAT5 cable wiht RJ's on each end.
in your hardware, you look at the pattern of on/off on the 8 wires, and rebuild the byte,
and convert it back to a number, that represents you voltage.
You could put an "Init" macro in mach that would pull the starting voltage from a DRO,
on your screen, converts it to a BYTE, sends it as 8 output lines each line representing one BIT.
Your hardware reads the value, converts it to a number, and sets the voltage with it.
1A). If you did need to make a run time change of the voltage, just put a screen button,
that has the "sending code" discussed above, your hardware could note that the value
in its register has changed, and set to volt to a new level.
2). Off the shelf solutions, use PLC with analog card (I have used ADC DL05 with analog card for THC, you can ajdust the PID
loop as well, so that you can elimitate "Dive" and get intellegent control), cost of that is about 300.00 US funds.
2A). Since you might want other intellegent IO, try a MESA board. The stuff like the PK, MODIO, Modbus board, are tied to some kind of continual update loop, for there analog outputs. The PK, I could put a "run once" in it on an analog or IO pattern for you. BUT, I think fx issolation would be an ongoing issue with the Plazma.
3). As a side note: Brian released a "General Serial" plugin template, you could download and modify that for your needs.
or pay some poor sap like me, or Steve, or Ed to do it for you, or yourself.....hehehhee.
scott
Logged
Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: modbus
«
Reply #15 on:
October 24, 2010, 10:41:51 AM »
hmmmmm - I think I'll do as I said earlier to Terry and re-jig my hardware. I'll disconnect the DTR which I use to signal a THC CPU reset when uploading the firmware to my board and then I can use sendSerial to send my required ref voltage. I'll just need to re-connect it to do the firmware updates as and when. Might even stick a gate in there and then I can control whether DTR is acted on or not via another input to the board.
Ian
Logged
Pages:
«
1
2
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...