|
Post by alexfish on Sept 19, 2023 3:12:55 GMT 1
Hi Peter
Latest Fossil beta
SYSTEM("ls -l")
reports
Syntax error could not parse line 1
BR Alex
|
|
|
Post by vovchik on Sept 19, 2023 11:50:52 GMT 1
Dear Alex,
Try SYSTEM "ls -l"
That works...
With kind regards, vovchik
|
|
|
Post by alexfish on Sept 19, 2023 15:48:22 GMT 1
Hi vovchik SYSTEM "ls -l" my dumb: that is in the Docs suppose a bit fu-zzzzzy at that time in the morning I was trying to get latest wiringpi working, this was a mind blower: hence also tried the gpio.bin that did not work, found that Docs give wrong pin names also SYSTEM can work with () so is one of the odd bits, since SYSTEM ("ls -l")
works:: Thanks again + BR Alex For future reference anyone have problems with the wiringpi , I have seen plenty of them as of late :: Re Raspberry (PI4) at A Piky will see Pi4j Attachments:
|
|
|
Post by alexfish on Sept 19, 2023 16:09:12 GMT 1
As regards SYSTEM
wiringpi may be a bit off topic, yes is part of the story
hence to close the story , and also a reminder as to what can happen if given the wrong info esp, the raspberry pi gpio pins
a bit of code that worked and a indication of what I am connecting to
BR Alex
The test code + sources related to the above , interesting reading , spot the difference
'https://github.com/WiringPi/WiringPi 'pins see https://pi4j.com/1.2/pins/model-3b-rev1.html 'stepper driver 4988 pins ' X Y Z '0 2 3 | 4 5 6 | 25 26 27 | 'en st dir | en st dir | en st dir | ' to ramps1.4 '============================================='
PRAGMA INCLUDE <wiringPi.h>
OPTION PARSE FALSE PRAGMA OPTIONS -I/usr/include PRAGMA LDFLAGS -L/usr/lib/ -lwiringPi
wiringPiSetup()
pinMode (26, OUTPUT) FOR t = 1 TO 100 digitalWrite (26, HIGH) delay (100) digitalWrite (26, LOW) delay (100) PRINT t NEXT
|
|
|
Post by alexfish on Sept 21, 2023 12:36:28 GMT 1
TESTING GPIO Timings for axis control
gpio is constant 2147....
gpio then real world
real word stepper time milisec to rpmsec lead8
2147483647 timer 2147483647 timer 2147483647 timer 2147483647 timer 2147483647 timer 2147483647 timer 2147483647
real timer -0.021 timer -0.02 timer -0.02 timer -0.02 timer -0.021 timer -0.02 timer -0.02 timer -0.02 timer -0.021 timer -0.02 timer -0.02 timer -0.021 timer -0.02 timer -0.02
real world result Maximum. 1 Axis Interpolation will be slightly less , in real world curves not really notable
'timepulse stepper step 0.02 = 25rev second lead8mm = 200 mm per second
terminal 500 steps
real 0m10.150s user 0m0.015s sys 0m0.077s
ADDED above = 10 units delay IE the testing code base on 1(min value) :: hence delay(10) on/of here/ the bit of code
wiringPiSetup() LOCAL time1 TYPE float pinMode (26, OUTPUT) FOR t = 1 TO 500 time1 = TIMER digitalWrite (26, HIGH) delay (10) digitalWrite (26, LOW) delay (10) PRINT "timer " , (time1 - TIMER)/1000 NEXT digitalWrite (26, LOW)
time to connect
End Of Thread
Further updates see (HUG gcode) thread
BR Alex
|
|