- Posts: 22
- Thank you received: 240
[solved]Unable to WRITE float pin OUT
- ArcEye
- Offline
- Junior Member
-
Less
More
11 years 10 months ago #54076
by ArcEye
The obvious difference is that the x values are set and always the same, so they will work.
You transfer the value to cx but never use it?
I would be debugging by printing out the contents of 'value' and cx, even though it will soon fill the terminal, just to see what is happening and if there is some way of printing the encoder output to compare do that too.
regards
Replied by ArcEye on topic Y[#40 + #<_hal[mycomp.newyvalue]>]
problem2: tcomp.vx1/2 is OK AND WORK PERFECT
tcomp.vy2/1 never updated ... why??????
The obvious difference is that the x values are set and always the same, so they will work.
You transfer the value to cx but never use it?
I would be debugging by printing out the contents of 'value' and cx, even though it will soon fill the terminal, just to see what is happening and if there is some way of printing the encoder output to compare do that too.
regards
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
- bkt
- Offline
- Platinum Member
-
Less
More
- Posts: 1111
- Thank you received: 114
11 years 10 months ago - 11 years 10 months ago #54077
by bkt
ok ... I had it figured out I also .... but I not undesrtand why .... how cat printf to terminal the result?? I use rtapi_print ... but how terminal call??
Replied by bkt on topic Y[#40 + #<_hal[mycomp.newyvalue]>]
The obvious difference is that the x values are set and always the same, so they will work.
ok ... I had it figured out I also .... but I not undesrtand why .... how cat printf to terminal the result?? I use rtapi_print ... but how terminal call??
Last edit: 11 years 10 months ago by bkt.
Please Log in or Create an account to join the conversation.
- bkt
- Offline
- Platinum Member
-
Less
More
- Posts: 1111
- Thank you received: 114
11 years 10 months ago - 11 years 10 months ago #54085
by bkt
Replied by bkt on topic Y[#40 + #<_hal[mycomp.newyvalue]>]
ok I run linuxcnc from terminal whit "linuxcnc mydir/mymachine.ini" ...... after some row I have an error:
no other .... but in my tcomp I have already insert
at this point I think the tcomp work without realtime.
I don't know the origin of this error..... :blush: :blush:
OK OK my mystache .... i have not cancel loadrt halsampler that not use yet.
But not print value in my terminal ....
Code:
........
........
Sratting Linuxcnc ....
ERROR: channel 0 realtime part is not loaded
no other .... but in my tcomp I have already insert
Code:
rtapi_print("cx, %3.2f", cx);
I don't know the origin of this error..... :blush: :blush:
OK OK my mystache .... i have not cancel loadrt halsampler that not use yet.
But not print value in my terminal ....
Last edit: 11 years 10 months ago by bkt.
Please Log in or Create an account to join the conversation.
- bkt
- Offline
- Platinum Member
-
Less
More
- Posts: 1111
- Thank you received: 114
11 years 10 months ago #54086
by bkt
Replied by bkt on topic Y[#40 + #<_hal[mycomp.newyvalue]>]
I find debug set ......
Ok the terminal fills up early ... but if I see all EMC_TRAJ_LINEAR_MOVE .... i see only GCode coordinate or coordinates that originate from the numbers and not by the variablexample:
Ok the terminal fills up early ... but if I see all EMC_TRAJ_LINEAR_MOVE .... i see only GCode coordinate or coordinates that originate from the numbers and not by the variablexample:
Code:
FUNCTION(_){
float cx = 0;
cx = valy;
vx1 = 40.0; <----real x value
vy1 = cx - 40.0; <----real y value
vx2 = -200.0; <----real x value
vy2 = cx - 300.0; <----real y value CX value seems to be always 0
}
Please Log in or Create an account to join the conversation.
- bkt
- Offline
- Platinum Member
-
Less
More
- Posts: 1111
- Thank you received: 114
11 years 10 months ago #54087
by bkt
Replied by bkt on topic Y[#40 + #<_hal[mycomp.newyvalue]>]
debug terminal ....
Please Log in or Create an account to join the conversation.
- bkt
- Offline
- Platinum Member
-
Less
More
- Posts: 1111
- Thank you received: 114
11 years 10 months ago #54091
by bkt
Replied by bkt on topic Y[#40 + #<_hal[mycomp.newyvalue]>]
ok I close the discussion ... the component works well ... that's what I try to do that's not good
Please Log in or Create an account to join the conversation.
Time to create page: 0.211 seconds