SPLat Logo

FixToMem16S mm* [D>=21]

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

FixToMem16S mm* [D>=21]

Converts a floating point number in W, in the range -32,768 to +32,767, to a signed 16-bit integer in two bytes of RAM. The byte order in RAM is most significant byte in the lowest RAM address.

If W is outside the range -32,768 to +32,767 this will generate a fatal error and reset the controller.

Dialect restriction 1: Available only in boards with dialect 21 or greater.

Dialect restriction 2: jndexes/indexes correctly in dialect 22 or greater. No indexing/jndexing in dialect 21.

See also fIEEEtoW, fIEEEtoWR, fWtoIEEE, fWtoIEEER, FixToMem16U, FloatMem16U, FloatMem16S