Hi Gene!

I just tried the lut5 component from the git repo (master) in the
core_sim.hal of the PyVCP demo:

------ 8< --------- 8< ----------

# More loadrts...

loadrt lut5 names=inv-1,inv-2,nand-1,nand-2

addf inv-1 servo-thread
addf inv-2 servo-thread
addf nand-1 servo-thread
addf nand-2 servo-thread

setp inv-1.function 0x00000001    # Single inverter
setp inv-2.function 0x00000001    # Single inverter
setp nand-1.function 0xfffffff7   # Two-input NAND
setp nand-2.function 0xfffffff7   # Two-input NAND

net j0-home => inv-1.in-0         # SET
net j1-home => inv-2.in-0         # RESET
net nset inv-1.out => nand-1.in-0
net nreset inv-2.out => nand-2.in-1
net ff-q nand-1.out => nand-2.in-0
net ff-qn nand-2.out => nand-1.in-1

# More addfs and wirings...

------ 8< --------- 8< ----------

That starts and works fine, the home buttons for joint 0 and 1 are the
RESET and SET of the modeled flipflop. I could've integrated the
inverters into the LUTs of course, but I wanted to use some more
components, just to test. Note that I never used any quotes for the names.

Cheers,
Philipp

On 15.08.2014 19:19, Gene Heskett wrote:
> I cannot get lcnc to run even to test the product of my attempted use of 5 
> of the lut5 modules.
> 
> The lut5 module apparently, and despite the man pages advertisement to the 
> contrary, cannot be loadrt'd using the names= option.  I have tried 
> lut5.fwd, lut5-fwd and "lut5-fwd,lut5-rvs,lut5-profwd,lut5,prorvs,lut5-
> protect" which is how it is at the instant.  Obvously that is a big enough 
> fail to get addf's attention.
> 
> But when hal gets ready to use it 235 lines on down in the file, it does 
> not exist.
> 
> If it doesn't exist, the addf statement assigning it to the servo-thread 
> should report/complain about it, but in what, close to 10 years now, I 
> have never seen a squawk from an addf statement.  But now I have because I 
> have dbl-quotes around all the names.
> 
> Starting LinuxCNC...
> HAL: ERROR: function 'lut5-fwd' not found
> my_LinuxCNC_machine2.hal:37: addf failed
> 
> That is I believe the first time I have seen the addf fail.
> 
> Is there another secret to using the names= option that I don't know 
> about?  Like a limited memory for the names array?
> 
> This is the latest 2.6.1.
> 
> Thanks for any clues, even if they look like a baseball bat. ;-)
> 
> Cheers, Gene Heskett
> 

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to