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, 11:44:50 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
Third party software and hardware support forums.
dspMC/IP Motion Controller
(Moderator:
vitalsystem
)
Output Issue
Pages:
1
Go Down
« previous
next »
Author
Topic: Output Issue (Read 750 times)
0 Members and 1 Guest are viewing this topic.
pofo
Active Member
Offline
Posts: 27
Output Issue
«
on:
June 26, 2011, 11:25:04 AM »
I posted a similar thread in the general forum. But now I'm wondering if this is a DSPMC issue.
I have 4 buttons defined for outputs. I have VB code written (thanks Hood) to control the output. I execute the script. The output toggles High-Low-High for about 100ms. It does not stay in the low state as desired. Any ideas why it is doing this?
Output 3, Mach3 port 1-6, DSPMC J4-17
Output 4, Mach3 port 1-1, DSPMC J4-2
Output 5, Mach3 port 1-0, DSPMC J4-14
Output 6, Mach3 port 1-4, DSPMC J4-16
Logged
vitalsystem
Active Member
Offline
Posts: 80
Re: Output Issue
«
Reply #1 on:
June 26, 2011, 01:53:01 PM »
mach3 update rate is 10Hz (100ms period), so the outputs cannot toggle faster than that. if you want more precise timing control of I/O, you can use the dspMacro feature.
e.g. the following dspMacro code turns on output 17 for 25 millisec
SetDSPData( 40+17, 1 ) :REM turn on output 17
StartTimer(0, 25) :REM Start Timer 0 for 25 mSec
2010
if TimerDone(0) = 0 then goto 2010 :Rem Wait for Timer 0 to get Done
SetDSPData( 40+17, 0 ) :REM turn off output 17
the dspMacro runs inside the DSPMC controller. there are some DROs and LED that are shared between mach3 and DSPMC, and are used to command the dspMacro and move information back and forth. If you like to explore this option, let me know your email and I will send you more info and other files needed.
rgds
Rufi
Logged
pofo
Active Member
Offline
Posts: 27
Re: Output Issue
«
Reply #2 on:
June 26, 2011, 02:34:09 PM »
Thanks Rufi,
I don't want finer control. I want the output to change state and remain there, rather than toggle. Perhaps I don't understand how outputs work. I put this line in the Mach3 VB script for the button:
ActivateSignal(OutPutx) - where x is the number of the output. I see the output toggle Low-high-low. I just want it to go from low to high and remain there until I hit a different button that sends DeActiveSignal(OutPutx). What do I need to do?
Logged
vitalsystem
Active Member
Offline
Posts: 80
Re: Output Issue
«
Reply #3 on:
June 26, 2011, 03:35:28 PM »
are you sure this output is not controlled by mach3 also? you can look at the debug window and see a message like: Outputs Changed to xyz, where xyz is the 32 bit hex value for the 32 outputs on the DSPMC. it will tell you what mach3 is trying to do on the outputs. hope this will help.
-rufi
Logged
pofo
Active Member
Offline
Posts: 27
Re: Output Issue
«
Reply #4 on:
June 27, 2011, 11:55:09 PM »
Ok, thanks. I will look further into this.
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...