#garfield Logs

Oct 30 2020

#garfield Calendar

02:17 AM rue_mohr: polprog, something is wrong with the way galler is compiling
02:23 AM rue_mohr: Assembler Phase 1 for "main.pld"
02:23 AM rue_mohr: Error in line 14: this pin can't be used as output
02:23 AM rue_mohr: Assembling failed.
02:23 AM rue_mohr: 14 is clearly an output
02:55 AM rue_mohr: polprog, something is wrong with galasm
02:56 AM rue_mohr: I mean, I AM saying that at 1am, but W T F
02:56 AM rue_mohr: GAL16V8
02:56 AM rue_mohr: main
02:56 AM rue_mohr: P L T NC NC NC NC NC NC GND
02:56 AM rue_mohr: NC NC NC NC NC NC DA AL OK VCC
02:56 AM rue_mohr: DA = P * L * T
02:56 AM rue_mohr: AL = /P * L * T + P * /L * T + P * L * /T
02:56 AM rue_mohr: OK = /P * /L * /T + /P * /L * T + /P * L * /T + P * /L * /T
02:56 AM rue_mohr: its not doing AL or OK properly
02:57 AM rue_mohr: the main code is 1 function thats 77kB long....
02:59 AM rue_mohr: the syntax isn't really documented
02:59 AM rue_mohr: did you know / and ! are inversion?
03:00 AM rue_mohr: it supports OR ( + or #)
03:00 AM rue_mohr: and (* or &)
03:00 AM rue_mohr: invert (/ or !)
03:04 AM rue_mohr: ... extension for the main source "should be" ,pld
03:06 AM rue_mohr: polprog, I think you can translate better
03:06 AM rue_mohr: Dabei werden die Boolean-Equations zweimal untersucht. Beim ersten
03:06 AM rue_mohr: Durchlauf werden die OLMC-Pins ausgewertet und die OLMC-Struktur ge-
03:06 AM rue_mohr: füllt. Mit Hilfe dieser Struktur läßt sich auf dem notwendigen Modus
03:06 AM rue_mohr: (1, 2 oder 3) schließen. Beim zweiten Durchlauf wird dann die
03:06 AM rue_mohr: Fuse-Matrix erstellt.
03:06 AM rue_mohr: */
03:12 AM rue_mohr: postfixes of T R and E mean something special
03:16 AM rue_mohr: its funny, if I do this using table2ihex and a ROM, it'll work
03:17 AM rue_mohr: I'm going cross-eyed trying to work out whats wrong with galasm
03:17 AM rue_mohr: its not putting the equations togethor right
03:17 AM rue_mohr: and there is no debug
03:18 AM rue_mohr: Y = /A * B * C + A * /B * C + A * B * /C
03:18 AM rue_mohr: it looks like it cant compile equations like that
04:52 AM polprog: weird, im pretty sure it can do this kind of equations
04:54 AM polprog: the german comment says it parses the eqn list twice, first time it assigns olmc pins and chooses the operation mode, second time it compiles the fuse matrix
05:02 AM polprog: i am looking into 16v8 datasheet and see that in most modes (i dont really understand all the modes) pin #1 is wired differently
05:03 AM polprog: so id make your pinout NC P L T NC NC NC NC NC GND
05:04 AM polprog: hmm no it looks to be wired fine
05:05 AM polprog: weird..
05:18 AM polprog: https://polprog.net/rozne1/ircjunk/gal/pll/phasecomp.gal
05:18 AM polprog: https://polprog.net/rozne1/ircjunk/gal/automaton.gal
05:19 AM polprog: i have not tried using three at once, ill have to check in practice
08:37 AM rue_mohr: I'd like to fix the program as I'm pretty sure its not compiling those equations right
08:37 AM rue_mohr: I'm sure that the gal should be able to do it
08:37 AM rue_mohr: there does not seem to be a provision for that lookup table stuff I saw in this gal assemberl
09:19 AM rue_mohr: heh ok, table2ihex cant do !A right
09:19 AM rue_mohr: ok I know why
09:20 AM rue_mohr: hmm I just want a bool not
12:36 PM Tom_L: sunday delivery!
12:36 PM Tom_L: we'll see...
12:48 PM rue_mohr: ok, "lab" that was strange, screen sharing and whiteboards and all
12:49 PM Tom_L: :)
12:52 PM Tom_L: rue_mohr, you ever done a modbus interface?
12:52 PM rue_mohr: no
12:52 PM Tom_L: RS485? i think
12:52 PM rue_mohr: I think so
12:54 PM Tom_L: RS485 & RS422 vary in software only i think, not wiring
04:15 PM rue_mohr: ok, well this is an interesting problem
04:15 PM Tom_L: school or play?
04:15 PM rue_mohr: my math libarary, up till now, assumes you have # op #
04:15 PM Tom_L: play i'm guessing...
04:15 PM rue_mohr: school over for the week
04:15 PM rue_mohr: my math libarary, up till now, assumes you have # op #
04:16 PM rue_mohr: but in the case of !C its just op #
04:16 PM Tom_L: guess you got a lib to fix
04:17 PM rue_mohr: the problem is I'm expanding it
04:20 PM Tom_L: how would you calculate linear thrust on 570 in/oz with a 5mm pitch screw?
04:21 PM rue_mohr: I'd definitly use a calculator
04:21 PM rue_mohr: :)
04:21 PM rue_mohr: so, if I assume no friction
04:22 PM rue_mohr: I think your units are wrong
04:22 PM rue_mohr: ox-in
04:22 PM rue_mohr: oz -in
04:23 PM Tom_L: ?
04:23 PM rue_mohr: zippo:/files/programming/src/galer/kitchen# units 570in*oz cm*kg
04:23 PM rue_mohr: * 41.04444
04:23 PM rue_mohr: so, uh
04:24 PM rue_mohr: 5mm/rev
04:24 PM rue_mohr: my brain isn't doing that thing that leads to an answer
04:25 PM Tom_L: mine either, been looking at pulleys all afternoon
04:26 PM rue_mohr: polprog, your brain workin?
04:27 PM rue_mohr: he's been doing physics stuff, I'm having a hangup cause it goes from rotary to linear motio
04:27 PM rue_mohr: n
04:27 PM rue_mohr: its like a wedge
04:27 PM Tom_L: it's no big deal
04:27 PM rue_mohr: and the motor moves the wedge
04:28 PM Tom_L: more a curiosity
04:28 PM rue_mohr: the wedge has a slope that gives it mechanical advantage like a lever
04:28 PM Tom_L: i know it's plenty :)
04:28 PM rue_mohr: but my brain cant draw the rest of the connections
04:29 PM Tom_L: https://www.linearmotiontips.com/calculate-motor-drive-torque-ball-screws/
04:31 PM rue_mohr: too many factors
04:32 PM rue_mohr: there should be something about torque in, pitch and force out
04:59 PM polprog: rue_mohr: somehow yes
05:00 PM rue_mohr: ./eq '((!P&!L&!T)|(!P&!L&!T)|(!P&L&!T)|(P&!L&!T))(((P=0)(L=0)(T=0)))'
05:00 PM rue_mohr: Unable to perform calculation, No match
05:00 PM rue_mohr: ((!P&!L&!T)|(!P&!L&!T)|(!P&L&!T)|(P&!L&!T))(((P=0)(L=0)(T=0))) -->> 42
05:00 PM rue_mohr: grrrr
05:00 PM rue_mohr: don't know what it cant find, sounds like a paren error
05:01 PM rue_mohr: ooh
05:01 PM rue_mohr: oh
05:01 PM polprog: what goes from rotary to linear
05:01 PM rue_mohr: the parser cant handle operators squished togethor
05:01 PM rue_mohr: polprog, toms lead screw drive
05:02 PM rue_mohr: ./eq '((!P& !L& !T)|(!P& !L& !T)|(!P&L& !T)|(P& !L& !T))(((P=0)(L=0)(T=0)))'
05:02 PM rue_mohr: ((!P& !L& !T)|(!P& !L& !T)|(!P&L& !T)|(P& !L& !T))(((P=0)(L=0)(T=0))) -->> 1
05:02 PM polprog: ive no idea how should i interpret in*oz cm*kg
05:02 PM polprog: s/cm*kg//
05:03 PM polprog: hmm
05:03 PM rue_mohr: its just unit math, but I cant work out how the units go
05:03 PM polprog: id have to see the device :v
05:03 PM polprog: ok.. 1 hour left hnnng
05:03 PM polprog: bbl
05:06 PM rue_mohr: bbl
07:38 PM rue_mohr: ok
07:38 PM rue_mohr: i had a hair cut and got groceries
07:41 PM Tom_L: and it wasn't closing time yet...
07:43 PM Tom_L: so hopefully sunday i can get the center distance measured so i know the belt lengths then i can order the pullies etc
07:44 PM Tom_L: after that, i'll test fire the motor hopefully
07:49 PM rue_mohr: k
10:05 PM Tom_L: get your lib sorted out?