Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
German Forum
Italian Forum
Portugese Forum
Resources
Links
User Reviews
User Videos
Contact Us
CNCZone
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
December 01, 2008, 09:31:59 PM
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
Brains Development
Cubloc, brains and ModIO
Pages:
1
2
3
»
Go Down
« previous
next »
Author
Topic: Cubloc, brains and ModIO (Read 2207 times)
0 Members and 2 Guests are viewing this topic.
Vince Endter
Active Member
Offline
Posts: 19
Cubloc, brains and ModIO
«
on:
April 05, 2008, 11:06:25 AM »
I am going to try to use a Cubloc to control the tool turret on a CHNC lathe. I would like to know how I can sent the tool requested information from Mach to the Cubloc via ModIO. I guess a brain would work, but how does one get the tool number from mach to modio?
Thanks
Vince
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 770
Briceville, TN, USA
Re: Cubloc, brains and ModIO
«
Reply #1 on:
April 07, 2008, 09:38:31 AM »
If you want to send Tool infomation via brains, then one option is to use a "User DRO", put the tool number into the
DRO and drop that number into Cubelogic. Have your ladder or Basic program look at the number and then equate that number to a rotation degree that represents where that tool is in your caracell.
scott
Logged
All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
Vince Endter
Active Member
Offline
Posts: 19
Re: Cubloc, brains and ModIO
«
Reply #2 on:
April 07, 2008, 10:03:37 AM »
OK, the questions should be, how do I get the tool number to a user DRO? and How can I send that to the Cubloc? I know how to comunicate with the Cubloc through ModIO.
Vince
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 770
Briceville, TN, USA
Re: Cubloc, brains and ModIO
«
Reply #3 on:
April 07, 2008, 11:07:29 AM »
Ok,
I have attached a Brain as an example. What it assumes is your using the Serial Plugin enabled, and using configuration 0 as your output config, and that your passing your tool number through Modbus address 0.
It will need to map Modbus Output 0, through the Serial plugin modbus config to the address you want to drop that DRO's information in your Cublogic.
scott
PassToolNumber.brn
(1.71 KB - downloaded 81 times.)
Logged
All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
Vince Endter
Active Member
Offline
Posts: 19
Re: Cubloc, brains and ModIO
«
Reply #4 on:
April 07, 2008, 02:13:52 PM »
Thanks Scott, I will work on it over the next couple of days. Your example should be enough for me to modify to fit my application.
Vince
Logged
Vince Endter
Active Member
Offline
Posts: 19
Re: Cubloc, brains and ModIO
«
Reply #5 on:
April 17, 2008, 09:22:21 PM »
I am just trying to get the brain to talk to my Cubloc. I can communicate with the cubloc when I am in the Test Modbus screen. I can turn on and off outputs and read inputs. Below is my serial modbus set up and the brain file. When I either click on the coolant button in Mach Lathe or send an M8 code via the MDI screen, I am not getting any output on my address 32 on my Cubloc. On the cubloc, the address are P1 though P65.
Any suggestion would be helpful.
Vince
modbus.jpg
(42.91 KB, 700x459 - viewed 385 times.)
brain.jpg
(16.63 KB, 700x347 - viewed 379 times.)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Online
Posts: 770
Briceville, TN, USA
Re: Cubloc, brains and ModIO
«
Reply #6 on:
April 18, 2008, 08:13:48 AM »
Vince,
I dont use a Cubelogic, BUT, I notice a few things:
1). first the serial protocol in mach is 8-N-2
2). Your Delay time outs are way high, is that due to your serial to USB converter?
3). I noticed you have several config files, is there any way to have sequential Block of input, and Block of output registers in the cubelogic.
4). Change your output type and input type to Input and Output holding repectivley and when that register comes into the cubelogic use Bit of Word or what ever your equivelent is to get the discreate bit. You can pass your holding registers as your control registers in the Cubelogic.
5). Your Modbus Run box is not checked, perhaps you need to, or forgot about it.
6). Make sure your Flood LED actually Turns ON, when you hit the M code.
Scott
Logged
All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
Vince Endter
Active Member
Offline
Posts: 19
Re: Cubloc, brains and ModIO
«
Reply #7 on:
April 18, 2008, 05:57:50 PM »
Thanks for the help.
"1). first the serial protocol in mach is 8-N-2"
I changed the protocol to 8-N-2, still did not work
"2). Your Delay time outs are way high, is that due to your serial to USB converter?"
No converter, I was just copying someone else’s code. I set them for 25ms
"3). I noticed you have several config files, is there any way to have sequential Block of input, and Block of output registers in the cubelogic."
Yes, the Cubloc can have sequential block of inputs, but not with the board I am using.
"4). Change your output type and input type to Input and Output holding respectively and when that register comes into the cubelogic use Bit of Word or what ever your equivalent is to get the discrete bit. You can pass your holding registers as your control registers in the Cubelogic."
I don't know how to do that in the Cubloc. I have sent them an email asking how.
"5). Your Modbus Run box is not checked, perhaps you need to, or forgot about it."
Oops, I forgot that.
"6). Make sure your Flood LED actually Turns ON, when you hit the M code."
Another Oops, they were not enabled. I changed that and verified that they are working. In the Cubloc, the IO has to be set up in Basic to allow communications for either Basic programs, or Ladder programs. I am missing something in the Basic program setup. Hopefully they will get back to me soon and I can get this running. Once this simple communication thing is fixed, I think I can get most of what I want to do finished.
Thanks again, I'll post when I get the answers from Cubloc.
Vince
Logged
jimmybondi
Active Member
Offline
Posts: 27
Re: Cubloc, brains and ModIO
«
Reply #8 on:
April 18, 2008, 06:18:19 PM »
Hi Vince,
everything you have to know you find in CubLoc-Manual.
I'm running 3 of them (CB280) and everything works fine
show me your code and maybe i can help you
Regards Frank
Logged
Vince Endter
Active Member
Offline
Posts: 19
Re: Cubloc, brains and ModIO
«
Reply #9 on:
April 18, 2008, 06:28:59 PM »
Quote from: jimmybondi on April 18, 2008, 06:18:19 PM
Hi Vince,
everything you have to know you find in CubLoc-Manual.
I'm running 3 of them (CB280) and everything works fine
show me your code and maybe i can help you
Regards Frank
If you mean the cubloctoughmanual.pdf, I have read through that and am completely lost. What I have been able to do I just cut and pasted from someone else's program. I don't have much code and that is on my work computer which I will not have access to until Monday. For now, all I want to do is turn on an output on the Cubloc from a Brain. The second thing I want to do is pass a tool number from 1 to 8 from Mach to the Cubloc. I will then have a ladder program get the tool based on that number. I am using the 405 module. Is that enough information?
Thanks
Vince
Logged
Pages:
1
2
3
»
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.
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*e*i*n*g
=> Mach Screens
=> Feature Requests
=> Non English Forums
=> FAQs
===> Finished Plugins for Download
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
-----------------------------
*****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
=> Lazy Cam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Promote and discuss your product .
=> Sieg Machines
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
=> One on one phone support.
=> Forum suggestions and report forum problems.
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
Loading...