This documentation is no longer maintained. For documentation of the current version of emc2, please see http://www.linuxcnc.org/docview/html

LOGIC

NAME
SYNOPSIS
DESCRIPTION
FUNCTIONS
PINS
LICENSE

NAME

logic

SYNOPSIS

loadrt logic [count=N] [personality=P,P,...]

DESCRIPTION

Experimental general ‘logic function’ component. Can perform ‘and’, ‘or’ and ‘xor’ of up to 16 inputs. Determine the proper value for ‘personality’ by adding:

The number of input pins, usually from 2 to 16

256 (0x100) if the ‘and’ output is desired

512 (0x200) if the ‘or’ output is desired

1024 (0x400) if the ‘xor’ (exclusive or) output is desired

FUNCTIONS

logic.N

PINS

logic.N.in-MM bit in (MM=00..personality & 0xff)

logic.N.and bit out [if personality & 0x100]

logic.N.or bit out [if personality & 0x200]

logic.N.xor bit out [if personality & 0x400]

LICENSE

GPL