configuration and simple test
- Arro
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 0
28 Jan 2020 16:53 - 28 Jan 2020 17:22 #156019
by Arro
configuration and simple test was created by Arro
Hallo,
I'm using LinuxCNC combined with MESA7i76e and JK-HSD57 (servo drive) to run a JK57HS112 step motor.
Wiring is so far ok, stepper motor has reaction if I give impulses disconnecting wiring PULSE+ and reconnecting it.
I can also run the X,Y,Z position from LinuxCNC but I cannot transfer this to the motor side (I expect a rotation by changing coordinate position). Practically the PULSE+ signal is constantly at +5 VDC, instead pulsing from 5V to zero (what is necessary for the stepper motor to turn).
Something wrong with the PncConf configuration ?
P.S.: just tried a new test (smply restarted everything) and now the STEP+ (PUL+ on servo drive) is constantly at -5 VDC. So also trying giving pulses with "cable connection/disconnection" is obviously not working
I'm using LinuxCNC combined with MESA7i76e and JK-HSD57 (servo drive) to run a JK57HS112 step motor.
Wiring is so far ok, stepper motor has reaction if I give impulses disconnecting wiring PULSE+ and reconnecting it.
I can also run the X,Y,Z position from LinuxCNC but I cannot transfer this to the motor side (I expect a rotation by changing coordinate position). Practically the PULSE+ signal is constantly at +5 VDC, instead pulsing from 5V to zero (what is necessary for the stepper motor to turn).
Something wrong with the PncConf configuration ?
P.S.: just tried a new test (smply restarted everything) and now the STEP+ (PUL+ on servo drive) is constantly at -5 VDC. So also trying giving pulses with "cable connection/disconnection" is obviously not working
Last edit: 28 Jan 2020 17:22 by Arro.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17869
- Thank you received: 4776
28 Jan 2020 16:56 #156021
by PCW
Replied by PCW on topic configuration and simple test
The STEP+ pin should idle at GND potential, if its stuck high, this suggests that the watchdog has triggered
Please Log in or Create an account to join the conversation.
- Arro
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 0
28 Jan 2020 17:25 #156024
by Arro
Replied by Arro on topic configuration and simple test
ok, did not think about the watchdog... (maybe the same problem that gives negative voltage)
how to reset it ?
how to reset it ?
Please Log in or Create an account to join the conversation.
- Arro
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 0
28 Jan 2020 17:29 #156025
by Arro
Replied by Arro on topic configuration and simple test
in fact the hm2 watchdog .has_bit circle (HAL config) is red
is that a sign it is triggered
is that a sign it is triggered
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17869
- Thank you received: 4776
28 Jan 2020 17:34 - 28 Jan 2020 17:43 #156027
by PCW
Replied by PCW on topic configuration and simple test
Its reset by LinuxCNC when LinuxCNC starts, it can be set because of real time issues
with the host or because the timeout is set too short. You can check by looking at the
has_bit pin
in Hal watch red = false yellow = true
I should also note that by far the most common reason for lack of motion (assuming the wiring is correct)
is that the step pulse length is set too low.
(people often use the drive minimum widths which are almost guaranteed to not work)
step lengths of 5000 are a reasonable starting point for most drives
with the host or because the timeout is set too short. You can check by looking at the
has_bit pin
in Hal watch red = false yellow = true
I should also note that by far the most common reason for lack of motion (assuming the wiring is correct)
is that the step pulse length is set too low.
(people often use the drive minimum widths which are almost guaranteed to not work)
step lengths of 5000 are a reasonable starting point for most drives
Last edit: 28 Jan 2020 17:43 by PCW.
Please Log in or Create an account to join the conversation.
- Arro
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 0
28 Jan 2020 17:48 #156029
by Arro
Replied by Arro on topic configuration and simple test
I found the Watchdog has.bit pin in the HAL-Meter, however it's saying the value is FALSE. Hope it's the right pin we are discussing.
Thanks PCW for help!
Thanks PCW for help!
Please Log in or Create an account to join the conversation.
- Arro
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 0
30 Jan 2020 12:51 #156174
by Arro
Replied by Arro on topic configuration and simple test
Hallo Peter,
I tried to increase the watchdog-timeout-time setting it at 50 ms (100 times more than originally set).
Here below the configuration explained, for better understanding...
1) Eth-Card: MESA_7176e (communication with PC is ok)
2) Servo-Drive: JK-HSD57
3) Stepper-Motor: JK57HS112
Situation:
- Stepper 0 from MESA to Servo-Drive connected (TB2-PINS 2-5): DIR+/DIR-/STEP+/STEP- (GND and +5V not connected)
- Stepgen set to Type=0 (=STEP/DIR)
- whatchdog.has_bit (HAL config) = red (FALSE)
Measured (after switch-on):
- DIR-/STEP- vs GND -> +5V
- DIR+/STEP+ vs GND -> 0V
I expect the contrary, DIR+/STEP+ to be at +5V
Test:
giving the command for X-axis movement I expect the signal changing on STEP+ PIN, in fact it does not change (remains at 0V)
Any idea of what's wrong or some other test?
I tried to increase the watchdog-timeout-time setting it at 50 ms (100 times more than originally set).
Here below the configuration explained, for better understanding...
1) Eth-Card: MESA_7176e (communication with PC is ok)
2) Servo-Drive: JK-HSD57
3) Stepper-Motor: JK57HS112
Situation:
- Stepper 0 from MESA to Servo-Drive connected (TB2-PINS 2-5): DIR+/DIR-/STEP+/STEP- (GND and +5V not connected)
- Stepgen set to Type=0 (=STEP/DIR)
- whatchdog.has_bit (HAL config) = red (FALSE)
Measured (after switch-on):
- DIR-/STEP- vs GND -> +5V
- DIR+/STEP+ vs GND -> 0V
I expect the contrary, DIR+/STEP+ to be at +5V
Test:
giving the command for X-axis movement I expect the signal changing on STEP+ PIN, in fact it does not change (remains at 0V)
Any idea of what's wrong or some other test?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17869
- Thank you received: 4776
30 Jan 2020 13:02 - 30 Jan 2020 13:17 #156175
by PCW
Replied by PCW on topic configuration and simple test
Those static values are correct, that is, the static step + level should be 0 V
This is because the +step output has a positive pulse for the step output so the idle state is low or 0V
You would not expect to see the step voltage change unless the step rate was high relative to the step width
The most common reasons for lack of motion on step/dir setups are:
1. Wiring (how is this wired?)
2. Too short step timings, the following starting values are suggested:
steplen 5000
stepspace 5000
dirsetup 20000
dirhold 20000
This is because the +step output has a positive pulse for the step output so the idle state is low or 0V
You would not expect to see the step voltage change unless the step rate was high relative to the step width
The most common reasons for lack of motion on step/dir setups are:
1. Wiring (how is this wired?)
2. Too short step timings, the following starting values are suggested:
steplen 5000
stepspace 5000
dirsetup 20000
dirhold 20000
Last edit: 30 Jan 2020 13:17 by PCW.
Please Log in or Create an account to join the conversation.
- Arro
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 0
30 Jan 2020 13:18 #156176
by Arro
Replied by Arro on topic configuration and simple test
Got it
I have all those values set at 1000 (Hex 3E8), I'll try to set them as u suggested
Furthermore, the DIR signal is toggling correctly when I drive towards neg X-direction. that's good
Keep you posted...
I have all those values set at 1000 (Hex 3E8), I'll try to set them as u suggested
Furthermore, the DIR signal is toggling correctly when I drive towards neg X-direction. that's good
Keep you posted...
Please Log in or Create an account to join the conversation.
- Arro
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 0
30 Jan 2020 13:42 #156178
by Arro
Replied by Arro on topic configuration and simple test
Looks good
I could set steplen and stepspace at 5000
however dirsetup and dirhold not more than 10000 according stepper info parameters
Result: motor is moving but just a little, probably need to verify the parameters about turns/impulses or similar
You're right, even with motor moving I do not see any STEP voltage change
Great job for now, thanks Peter !
I could set steplen and stepspace at 5000
however dirsetup and dirhold not more than 10000 according stepper info parameters
Result: motor is moving but just a little, probably need to verify the parameters about turns/impulses or similar
You're right, even with motor moving I do not see any STEP voltage change
Great job for now, thanks Peter !
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.062 seconds