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, 08:31:39 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
Out-put control word to sequential range of coils (Danfoss VFD)
Pages:
1
Go Down
« previous
next »
Author
Topic: Out-put control word to sequential range of coils (Danfoss VFD) (Read 474 times)
0 Members and 1 Guest are viewing this topic.
majorstrain
Active Member
Offline
Posts: 27
Out-put control word to sequential range of coils (Danfoss VFD)
«
on:
April 22, 2011, 06:48:53 AM »
HI Guys,
Iv'e watched the tutorials and read the Popper Bears brain guide but I still can't work out how to send to or read from multiple coils (16) in a brain.
It's got to be something easy that I am missing.
My Danfoss VFD has the control bits in coils 0-15 and the spindle speed setting bits in coils 16-31 (speed range 0h - 4000h). Coils 32-47 are the VFD status bits and then coils 48-63 are the spindle speed feed back bits.
Words are sent LSB first
I can control and read from the VFD in the Modbus test screen. The VFD can be stopped by addressing just one bit in the control word but will not start using that method. I have to write to the full 16 coils of the control word.
Each coil only accepts a 0 or 1.
I imagine the value in the brain would be a decimal representation of the binary word, but I don't know how to break that up for sending to the individual coils in one action.
Any pointers on reading 16 consecutive coils and processing them as a 16bit word, and/or sending a 16bit word to 16 coils?
Cheers,
Phil
Setup Images
Ports_Pins-phil.jpg
(142.3 KB, 664x320 - viewed 47 times.)
Modbus Config-phil.jpg
(129.63 KB, 859x272 - viewed 49 times.)
test-phil.jpg
(108.51 KB, 527x458 - viewed 56 times.)
Speed-phil.jpg
(69.67 KB, 402x362 - viewed 50 times.)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Out-put control word to sequential range of coils (Danfoss VFD)
«
Reply #1 on:
April 26, 2011, 07:33:54 AM »
basically, your set up the manufacture burns up an entire register for just one On/Off bit. Instead of bit packing that register, and that is ok.
What your going to end up having to do, is look at the Local var addresses of each config, that correspond with that command or other funciton. and get that group,
and AND them to read their state. To Set commands, is going to be a different issue at least in Brains. Depending on the status you read, you will need to set Local Vars as your congtorl vars, and then depending on their states and mach3's state (i.e. M3/4, M5 spindle %dro etc.), you will need to set individual output rungs to your control coils going back out to your VFD. It is going to be a Stone-Cold PIA to do what you want via Brains........ it can be done, but your sanity may be in question when/if you get it done........
In this case, I would do a combo Brains/VB (run the VB in the macropump). Since all your spindle stuff is Bits, (except stuff like rpm and load and a few others), I would read/write to User LEDs, and User Dros, and do ALL your complex interlocking logic in VB, then I would just have Brains look at the ULEDs and UDROs and map that into or outof the modbus addresses. Not a real elegant solution, but MUCH easier to do.......... You will have to do some kind of Brains/VBmacropump to handle all the stuff your brining in, making decision on, and sending out. NOTE: If you just want the most basic spindle control, then you DON'T need all that stuff you listed!!! All that stuff is really only useful if your going to do a "High End" interface with complex controls and diagnostics.
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/
majorstrain
Active Member
Offline
Posts: 27
Re: Out-put control word to sequential range of coils (Danfoss VFD)
«
Reply #2 on:
April 26, 2011, 08:27:01 AM »
Thanks Scott,
I'll report back with what I end up using. A bit more research on Mach variables to do and then hit the issue head on.
Thanks for the pointers.
Cheers,
Phil
Logged
Pages:
1
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...