Am Mo., 13. Juni 2022 um 08:16 Uhr schrieb gene heskett <
[email protected]>:

> Greetings all;
>
> Trying to setup a lut5 to block false errors. setup with 3 inputs.
>
>
> I already have a oneshot setup to ignore the power up momentary false as
> the
>
> drivers are powered up only when F2 is active on most of my machines.
>
> But that also gives a true when in-2 is false
>
> normal operation should have a true output only when in-2 is true, and
> either in-0 or in-1 goes false.
>
> The lut5.function= 0x80 doesn't seem to be correct.
>

> I need a true only for in-2 = true, and either in-0 or in-1 goes false.
> All other conditions s/b false.
>
> What should the function param be be set to?
>
>
>
If you set function=0x80, out is only true when in-0=1, in-1=1 and in2=1.
I think you need function=0xE0 with one 'edge' on in-0 and in-1 to detect
'goes false' if I understand your problem correctly.
Furthermore I think that would better fit into the forum in the HAL section.

/Hans

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

Reply via email to