SPLat Logo

InputMK ii+

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

InputMK ii+

Pushes the latched edge state of a selection of 8 input points ii through ii+7 to X in individual bits of X. A '1' signals an input has changed from off to on at any time since the last InputMK (or InputK) was executed on the particular input.

The X register is the mask of which of the 8 inputs should be read.  Only inputs whose corresponding bit in X is '1' will be read and have their edge latch cleared.  Any input whose X bit is '0' will not be read and will not have its edge latched cleared.

For example

   LoadX      %01000011
InputMK 2

This will read the latches for inputs 2, 3 and 8 and push the result into X.  Unread inputs will all be set to 0 in X.

See also InputK.