Palassembler, WINCUPL

Jeg trenger hjelp til palassembler. Jeg bruker WinCUPL 5.30.4

Ved kompilering av følgende fil gir siste siste linje feil som kræsjer programmet. Linjen beskriver en RS-flipflop. Jeg tror det er makrosellen for PIN 12 som ikke er satt rett, dersom det i det heletatt er mulig. Der går mange år mellom hver gang jeg designer en GAL.

Jeg trenger hjelp til å finne og rette feilen, dersom det er mulig.

GAL_en skal styre en steppermotor, tri stk, en pal for hver

HM

----------- Name CNC-3Gals ; PartNo 00 ; Date 24.05.2009 ; Revision 01 ; Designer Harald Mossige ; Company Privat ; Assembly None ; Location ; Device g16v8;

/* INPUT PINS */ PIN 1 = strobe; /* fra LTP */ PIN 2 = n_step_in; /* fra LTP */ PIN 3 = n_CW_in; /* Clock Wisr, fra LPT */ PIN 17 = n_lim_min_S; PIN 16 = n_lim_min_R; /* RS-FF */ PIN 12 = n_lim_max_S; PIN 11 = n_lim_max_R;

PIN 7 = auto; /* valg fra panel */ PIN 8 = man_CW; /* manuellt retningvalg */ PIN 9 = man_step_n; /* manuell bevegelse */

/* OUTPUT PINS */ PIN 19 = n_step_out; /* Til controller */ PIN 18 = n_CW_out;

PIN 14 = n_min; /* UT fra RS-FF */ PIN 13 = n_max;

step_out = ((n_CW_in & !n_max) # (!n_CW_in & ! n_min)) & strobe & auto & n_step_in # ((n_CW_in & !n_max) # (!n_CW_in & ! n_min)) & (!auto & man_CW);

n_CW_out = strobe & auto & n_CW_in # !auto & man_CW;

n_min = !(!n_lim_min_S & !(n_min & n_lim_min_R));

n_max = !(!n_lim_max_S & !(n_max & n_lim_max_R));

Reply to
Harald Mossige
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.