SPLat Logo

Literal formatting function L(item {,item ...})

NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

Literal formatting function L(item {,item ...})

The Literal formatting function is a catch-all that lets you send any arbitrary character to the display. Its arguments consist of one or more items, separated by commas.

Items can be:

Form Description Example

"string"

Any text string in quotes

#HMI Print(L("Hello World") ;Legal, but probably pointless

Number

An 8-bit number (0 to 255) in SPLat format. This defines the ASCII character that will be sent to the display.

#HMI Print(L('0D, '0A)) ;Send CR/LF to the display

You cannot have other formatting functions inside L()

Note that while the syntax is case-insensitive, it makes sense to use upper case L to avoid confusion with a numeral 1.