Hello Guest it is April 18, 2024, 07:26:07 AM

Author Topic: [CSMIO-IP/S + MACH3] using an analogue output to control an external device  (Read 7710 times)

0 Members and 1 Guest are viewing this topic.

Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #30 on: December 07, 2020, 08:19:15 AM »
Hi Tom,

Thank you very much. Please see the attached profile xml file.
Any advice will be really appreciated.

Best Regards,
Eric.

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #31 on: December 07, 2020, 09:59:39 AM »
hello Eric,
in the XML you sent B-Axis is not enabled?
if enabled do not forget the Motor Tuning

i would set 10 steps/per 10000 velocity and 10000 accel, to make sure
b-axis will not slow down the other axis.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #32 on: December 07, 2020, 10:28:24 AM »
Hi Tom,

It is strange... I enabled the B-axis.
There are a few options for B-axis. I'm not sure which option was turned off.
I went to Plugin Control > CSMIOS (Config), and then tick the box for B-axis.
Is there anything else I should do?

Strangely, the Step Pin# and Dir Pin# for all axes were set to zero. Is it normal?

Best Regards,
Eric.

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #33 on: December 07, 2020, 03:28:56 PM »
hello Eric,

Config -> Ports&Pins -> Motor Outputs -> enable B-axis

Pins will not matter because this is handled by the plugin.

Regards Tom
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #34 on: December 09, 2020, 05:21:03 AM »
Hi Tom,

Yes, that was exactly how I activated the B-axis. Sorry for my confusion.
But, even when the B-axis was ticked in the Motor Outputs setting, in the xlm file the value for Motor 4 was still zero in the xlm file.
<Motor4Active>0</Motor4Active>
Interestingly, I could get the analog output well. However, the all motion stopped.

I'm trying to change the motor speed and acceleration values in the Motor Tuning menu.
I will let you know how it works.

Best Regards,
Eric.
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #35 on: December 09, 2020, 10:02:40 AM »
Hi Tom,

B-axis still rotates very low. Here are the motor settings and G-code used.

X axis: steps per 101.823, velocity 4000.2, acceleration 200
Y axis: steps per 101.795, velocity 4000.2, acceleration 750
B axis: steps per 100, velocity 10002, acceleration 10000

G90
G0 X0 Y0 B0
M7
M9
G1
X 26.0 Y 0 B 19.5 F 300
X 27.0 Y 0 B 39.0 F 300
X 28.0 Y 0 B 58.5 F 300
X 29.0 Y 0 B 78.0 F 300
X 30.0 Y 0 B 97.5 F 300

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #36 on: December 09, 2020, 10:14:22 AM »
hi,
if i run your test here with all axis in Zero it takes about 21s.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #37 on: December 09, 2020, 10:23:05 AM »
That is a really slow speed.
The linear speed (F300) should be 5 mm/sec.
Since the linear distance along X is only 4 mm, it should take only 1 sec?

I've removed the B... command and ran the code again.
The movement is much faster.
I don't quite understand what B-axis setting is wrong.

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #38 on: December 09, 2020, 10:30:39 AM »
in G1 move all axis start and stop together

B-Axis has 97mm to go, so it is about 20s.

and the x-move is 30mm, you start from X0
« Last Edit: December 09, 2020, 10:38:06 AM by TPS »
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: [CSMIO-IP/S + MACH3] using an analogue output to control an external device
« Reply #39 on: December 14, 2020, 08:32:05 PM »
Hi Tom,

Finally, I managed to solve the problem.
The critical thing was to use G93 command, which let the machine finish all axes movement in a specific time.
All working now... Thanks a lot for your help so far!!

Best Regards,
Eric.