koadrobot/logic@0.1.5

License: GPL 3.0

Logic nodes. 0.0.1 [01.02.2019]: if - (cond/ cond-else/ equal/ pulse/ pulse-else/ cond-pulse/ brunch), 0.0.2 [02.02.2019]: is - (equal/ greater/ greater-eq/ less/ less-eq/ between/ between-eq), 0.0.3 [03.02.2019]: logic - (not/ and/ or/ nand/ nor/ xor), 0.0.4 [09.02.2019]: nth-input -(number), nth-output(number/bool/pulse), 0.0.5 [10.02.2019]: selection - (number), 0.0.6: [11.02.2019]: Counter - (avg/for/loop/step), 0.1.1 [12.02.2019]: toggle - (bool/pulse) 0.1.0 [13.02.2019]: First Released. 0.1.3: [01.05.2019]: Logics and progress projects are merged. 0.1.4: [28.10.2019]: Counter - (step-side) 0.1.5: [02.11.2019]: Counter - add (max/start-stop) remove (step-side/loop/for)
NodeDescription
aall-logicsNo description
aall-loopsNo description
counter(avg)
Stores a number which gets incremented on each `INC` pulse. AVG=SUM/IDX When RST pulse, SUM reset to zero. If STEP is neagtive then Decrease. Dont Set outputs differ from zero.
counter(idx)
Stores a number which gets incremented on each `INC` pulse. When RST pulse, SUM reset to zero. If STEP is neagtive then Decrease. Dont Set outputs differ from zero.
counter(max)
Count with step at each INC pulse. When RST pulse is received counting start (again). When IDX reach MAX counting is ended and END pulse transmit.
counter(step)
Stores a number which gets incremented on each `INC` pulse. When RST pulse, SUM reset to zero. If STEP is neagtive then Decrease.
if(brunch)
IF - BRUNCH TRIG ? (COND ? T : F ) : - Routes an incoming pulse to either of outputs depending on condition
if(cond)
IF - GATE R=COND ? T : - Allows values to pass through only if COND pin is set to true.
if(cond-else)
IF - GATE R=COND ? T : F Allows values to pass through COND pin.
if(cond-pulse)
IF - GATE COND ? (T ? R : - ) :- Allows pulse to pass through only if COND pin is set to true.
if(equal)
IF - R=(IN1==IN2) ? (T ? R : - ) :- Allows values to pass through only if IN1 equal IN2 pin is set to true.
if(equal-bool)No description
if(equal-pulse)No description
if(error)No description
if(pulse)
IF - GATE R=TRIG? T : - Allows value to pass through only if TRIG pulse.
if(pulse-else)
IF - GATE R=TRIG? T : F Allows values to pass through only if TRIG pulse.
is(between)
OUT=( X > MIN && X < MAX)?T:F
is(between-eq)
OUT=( X >= MIN && X <= MAX)?T:F
is(equal)
OUT=( L == R)?T:F
is(greater)
OUT=( L > R)?T:F
is(greater-eq)
OUT=( L >= R)?T:F
is(less)
OUT=( L < R)?T:F
is(less-eq)
OUT=( L <= R)?T:F
logic(and)
IN1 IN2 OUT true true true true false false false true false false false false
logic(nand)
IN1 IN2 OUT true true false true false true false true true false false true
logic(nor)
IN1 IN2 OUT true true false true false false false true false false false true
logic(not)
Inverses a boolean value
logic(or)
IN1 IN2 OUT true true true true false true false true true false false false
logic(xor)
IN1 IN2 OUT true true false true false true false true true false false false
nth-input(number)
Selects either `X0` or `X1` based on `IDX` index value.
nth-output(boolean)
Selection 1..6 on UPD. Zero is none. Outputs are boolean. Selected one is "True" others are "False." If valid IDX selected ANY pulse transmit.
nth-output(number)
Selection 1..6 on UPD. Zero is none. Outputs are Numbers. Selected one is "emit VAL" others are "Zero." If valid IDX selected ANY pulse transmit.
nth-output(pulse)
Selection 1..6 on UPD. VAL or UPD pulse received. Selected one is "emit pulse" others are "Not isDirty." If valid IDX selected ANY pulse transmit.
selection(number)No description
toggle(bool)No description
toggle(pulse)No description
counter(start-stop)
Count with step at each INC pulse from start to stop. When RST pulse is received counting start (again). When IDX reach MAX ((STOP-START)/STEP) counting is ended and END pulse transmit.
counter(max-tsec)
Count with step at each Tsec second When RST pulse is received counting start (again). When IDX reach MAX counting reset clock and start (again) and END pulse transmit.
counter(start-stop-tsec)
Count with step at each Tsec pulse from start to stop. When RST pulse is received counting start (again). When IDX reach MAX ((STOP-START)/STEP) counting is ended and END pulse transmit.
To use the nodes in your project you should have the koadrobot/logic library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.