Skip to content

Instruction Blobs

This page documents the variable-length instruction data that follows the cell header in instruction cells. The blob starts at cell offset +0x25.

For field layouts, func code tables, and tag constants for each known instruction type, see the source in src/laddercodec/instructions/ — each module (contact.py, comparison.py, coil.py, timer.py) is the authoritative reference.

Generic blob structure

All instruction blobs follow the same pattern:

[UTF-16LE class name, null-terminated]
[type marker: uint32 LE, high byte always 0x27]
[part count: uint16 LE (0x01 for contacts/coils, 0x02 for timers)]
[extra bytes: (part_count - 1) bytes, if part_count > 1 — each later part's row]
[field count: uint32 LE]
[tagged fields...]

Part rows

A tall instruction's extra bytes give the row, below the main row, of each later part: 01 for a timer's reset, 01 02 for a counter (down, reset) or shift (clock, reset), 01 02 03 for a drum (reset, jump, jog). OR legs under an input (the main one included) push the later parts down, and CLICK grows the box: a drum with one leg under reset is 01 03 04. A count_down's main part is its unused Up input, so its Down input is the first extra byte. The AF cell's +0x09 becomes the last part's row + 1; +0x0A keeps the base height (tests/fixtures/v4_captures/pins.bin, count_down_or.bin).

Tagged fields

Each field is:

[2-byte tag]
[FF FF FF FF sentinel]
[UTF-16LE null-terminated value]

Field values are string-encoded even for numeric data (e.g. "1000" for a timer preset). Timer fields 6–7 use a variant format with a 4-byte sub-marker instead of the FF FF FF FF sentinel.

Known binary class names

Class name Type markers Instruction Source
ContactNO 0x2711 (NO), 0x2712 (NC) NO/NC contacts contact.py
Edge 0x2713 Rising/falling edge contacts contact.py
Compare 0x2714 Comparison contacts (==, !=, >, <, >=, <=) comparison.py
Out 0x2715, 0x2716, 0x2717 All coil types (out, latch, reset) coil.py
Tmr 0x2718 Timers (on_delay, off_delay) timer.py

The encoder uses Out as the class name for all coil types; the type marker and func code determine the variant. The decoder also recognizes Latch and Reset class names from native Click captures.

Out variants (CLICK v4)

CLICK v4's toggle, debounce, flasher and timed coils are Out blobs with type marker 0x2715, the same as a plain out. They carry 15 fields, and only the func code separates them from plain coils. An Out blob whose func code is in neither table decodes as raw(Out,...). Source: out_variant.py.

Tag Field
0x6066 target
0x6067 range end (always empty)
0x60B3 / 0x60B4 on preset / on accumulator (TD)
0x60B5 / 0x60B6 off preset / off accumulator (debounce, flasher)
0x11F8 oneshot (always 0)
0x11F5 immediate (toggle)
0x1246 1 for toggle
0x1247 maintained (timed)
0x21F9 time unit: 0 ms, 1 s, 2 min
0x2248 variant: 0 toggle, 1 debounce, 2 flasher, 3 timed
0x3218 func code
0x20CA always 2

A debounce saved with one phase stores the empty phase's preset and accumulator (0x60B3/0x60B4 or 0x60B5/0x60B6) as empty strings.

Variant Func codes Units Rows (+0x09 / +0x0A)
toggle 8224, immediate 8225 — 1 / 1
debounce 8226 ms, 8227 s ms, s 3 / 3
flasher 8228 ms, 8229 s ms, s 3 / 3
timed 8230–8232 ms/s/min, maintained 8233–8235 ms, s, min 2 / 3

Each phase stores only its accumulator; Click claims the T of the same number with it. Timed is the one AF instruction whose cell header has more visual sub-rows (+0x0A) than rows spanned (+0x09).

Time & Event drum (CLICK v4)

A drum's base is tag 0x2200: 0 time, 1 event, 2 time & event. Any other value decodes as raw(Drum,...). Source: drum.py.

CLICK v4 copies every drum back with 82 fields: the 63 v3 fields, then 16 preset slots (0x6891), 0x428A, 0x6068 and the terminator. The encoder writes the 82-field layout for the v4-only drums: time & event, and a time drum with a register preset. Other time drums and event drums keep the 64-field v3 layout, which CLICK v4 still accepts.

Tag Time & event drum
0x6872 ×16 events (blank for a step without one)
0x6891 ×16 presets (blank for a step without one)
0x6068 done bit of the accumulator's timer (TD101 → T101)
0x428A constant-preset mask; see below
0x3A05 ×4 func codes; no-jog base Tms 10503, Ts 10510, Tm 10517, Th 10524, Td 10532

The func codes have the same block shape as the time drum: base, reset, jump, then the jog group at +3..+6. Th's jog group is at +4..+7 (time 8480–8483, time & event 10528–10531), so 8479 and 10527 are the unused codes and the Th block is 8 codes long (v4_captures/sweep_drum.bin).

In every drum the codes run consecutively over the enabled pins. With Jump off, Jog takes Jump's code: event 8494, 8495, 0, 8496, not 8497. CLICK v3 accepts the skipped code. CLICK v4 pastes it, then fails the syntax check with C000A ("All inputs of the box instruction must originate from the same branch") until the drum is reopened and OK'd (v4_captures/drum_jog.bin).

0x428A marks which presets are constants. Bit n is cleared when step n's preset is a register, so all-constant is -1 and presets=[DS1,DS2] is -4. CLICK v4 computes it on OK. A time drum with any register preset then takes the func code series 1792 codes up (Tms 10247/10248, Th jog 10272…). Time & event drums keep the 10503 series either way. A paste keeps the field as written and treats a missing one as -1. So a 64-field time drum with a register preset would paste as an 8455-series drum, a state that the dialog never writes. The encoder gives such drums the 82-field layout.

Break and Continue (CLICK v4)

Break and Continue are class Next (type 0x2726), told apart by the func code in tag 0x3218. Source: forloop.py.

0x3218 Instruction
absent next(): v3 writes Next with the terminator field only
9220 next(): CLICK v4 writes the func code
9232 continue()
9233 break()

Any other func code decodes as raw(Next,...). Break and Continue are encoded with the two fields Click writes; next() keeps the one-field v3 form. Each version accepts either Next on paste and copies back its own: v3 drops 9220, v4 adds it.

Single Copy conversion type

A single Copy (class Copy, type 0x2721, 0x2223 = 0) holds its conversion in tag 0x2227. If the source is quoted text or a number constant of two or more characters, and the destination is a TXT address, tag 0x6077 holds the last TXT that CLICK counts for the source. Source file: copy.py.

0x2227 Copy
0 a plain copy
1, 2 an integer, hex or register source to text, zeros suppressed (1) or not (2)
3, 4 a DF address or pointer, or a real constant, to text, real (3) or exponential (4) numbering
5, 6 TXT to a number, by value (5) or as character codes (6)
7 a value converted between a real and a 32-bit integer
8 a binary copy

CLICK saves type 7 in these cases:

  • a copy between DF and DD or CTD, either way. This holds for addresses, and for a DF, DD or CTD pointer source such as DF[DS1] into DD1.
  • a real constant into DD or CTD (an address or a pointer)
  • an integer constant outside int16 into DF (an address or a pointer: 32768, -32769, 65535, 65536, 2147483647)

These keep type 0: a real into DS, DH, TD, YD or DF, an integer into DD, and 5, -5, 32767, -32768, FFh, FFFFh or 0FFFFh into DF. The hex source is kept as typed.

The type follows the bank pair, with a pointer on either side. CLICK saves DF1 into CTD[DS1] as type 7. The encoder writes the same. CLICK refuses 10000h into DF1 (OBJ-024), as laddercodec does.

For each pair that CLICK saves as type 7, its dialog also offers Copy Binary. CLICK saves it as type 8 with 0x2206 = 1, with a pointer on either side too (DF[DS1] into CTD1, CTD1 into DF[DS1]). The encoder writes that for convert=to_binary.

CLICK keeps 7 significant digits of a real constant: 3.4028235E+38 is saved as 3.402823E+38, into DF1 and into TXT1 alike. CLICK keeps 7 significant digits of a Fill's value too. It saves fill(1234567.8,TXT1..TXT2) as 1234568.0. laddercodec rejects a real typed with more, in a single Copy and in a Fill. The message names the constant of 7 digits to write.

A number constant or register copied into TXT needs a converter. CLICK's dialog saves Copy Value as text, or Copy Binary. It never saves type 0 here. Copy Value as text is by default with suppress zero (type 1), or, for a real or DF source, with real numbering (type 3). laddercodec rejects a plain copy. The dialog offers Copy Binary for an integer source only. For a real or DF source it offers real or exponential numbering. laddercodec rejects to_binary for such a source.

A number constant copied into a TXT address is written as its text, one TXT register for each character. CLICK saves the end that the text fills. It counts the constant as stored, so an h and a + count. Into TXT1:

  • -5, 1h and +5 end in TXT2
  • 10h and 1.5 end in TXT3
  • 0FFh ends in TXT4
  • FFFFh ends in TXT5
  • 2147483647 ends in TXT10

One character (5) and a pointer (TXT[DS1]) have no end, as for quoted text. An end past TXT1000 is refused (OBJ-003), as for quoted text. For example, -5 into TXT1000 would end in TXT1001.

CLICK saves the same end for a Copy Binary (type 8, 0x2206 = 2) of an integer or hex constant: 15 and Fh into TXT1 end in TXT2. A termination code adds nothing to the end. CLICK refuses an end past TXT1000 here too (OBJ-003): 10h into TXT1000 would end in TXT1002. Decode reads a Copy Binary with its end or with none. Captures: tests/fixtures/v4_captures/copy_number_txt/.

As text, the type is 1 or 2 for an integer or hex constant. It is 3 (real numbering) or 4 (exponential numbering, with 0x2206 = 1) for a real. 1.5 into TXT1 ends in TXT3 either way, and 3.402823E+38 ends in TXT12. 123 into TXT1 with zeros kept saves type 2, 0x2206 = 1 and end TXT3. The encoder writes the same. Decode reads a number with its end or with none.

For text, CLICK's Copy dialog offers:

  • real or exponential numbering, and no suppress zero, for a DF address, a DF pointer (DF[DS1]) or a real constant
  • suppress zero or not, for any other source, including a DD or DS pointer

A pointer source saves no end. Decode reads type 4 only for a DF address, a DF pointer or a real constant.

For a TXT register or pointer copied to a number register, CLICK's dialog asks for the character's value (type 5, 0x2206 = 0) or its ASCII code (type 6, 0x2206 = 1). It offers no suppress zero. For TXT into DF it offers neither, and CLICK saves type 0.

For TXT copied to TXT, the dialog offers a termination code alone. Tag 0x1221 is its flag, and 0x3216 is the code in decimal ($0D is 13). The clipboard holds 0x3216 = 0 for $00. The program file leaves 0x3216 out, and decode reads a set flag with no 0x3216 as $00. A Block Copy (0x2223 = 1) of TXT into TXT holds its code in the same two tags. So does a single Copy of quoted text or a number constant into TXT (0x1221 = -1, 0x3216 = 13 for $0D). Its end 0x6077 counts only the constant's characters.

CLICK v4 sets the text flag 0x1201 on every Copy it saves, and ignores it on load. The encoder sets it for a termination code and for a single Copy of a text constant. The encoder writes 0 in every Fill. CLICK v4's clipboard holds -1 in a Fill of text. A Fill with the flag 0x1221 set stays raw, because Fill has no termination code. Captures: tests/fixtures/v4_captures/copy_txt/ and tests/fixtures/v4_captures/text_fill_euro.bin.

Quoted text keeps its characters as typed. It can be any 16-bit character except NUL and a surrogate ("é", a tab, "€", U+0001). It is stored in UTF-16LE and ended by a NUL. Write NUL as $00.

A quoted text or $hh source has no conversion type. A source that is not a real or DF has no real numbering (type 3 or 4). Decode leaves such a save raw.

CLICK's dialog saves the end that the text fills ("HALLO" into TXT1 ends in TXT5). When CLICK pastes the Copy, it keeps 0x6077 if the end's address is in the project, and drops it if it is not. addresses() lists the end with the other addresses. Decode reads quoted text with its end or with none, and keeps the OBJ-003 refusal for text past TXT1000. The encoder writes the end. Captures: tests/fixtures/v4_captures/copy_forms/.

A decoded single Copy writes the blob it was decoded from while you leave it unchanged, if either of these holds:

  • its 0x2227 and 0x6077 differ from what the encoder writes for its fields
  • its save is a type 7 or 8 other than DD to or from DF, or a number with an end

When a Copy from decode_program() keeps a blob, that blob is the clipboard form of the program file's entry (From a program file to the clipboard).

Math formulas

A Math blob (class Math, type 0x271A) has 1010 tagged fields: 9 header fields, 500 operand slots (tag 0x6888), 500 reserved slots (tag 0x688C) and a terminator. Source: math.py; the formula reader and its printers are math_formula.py.

The formula appears four times in the header:

Tag Field Example for SUM ( DS1 : DS3 ) + 5
0x61FF template, display SUM ( @ : @ ) + 5
0x6228 formula, display SUM ( DS1 : DS3 ) + 5
0x6229 template, internal SUM#(#@#:#@#)#+#H5
0x61FD formula, internal SUM#(#DS1#:#DS3#)#+#H5
  • Display form is spaced the way Click's formula editor spaces it: one space on each side of every operator, paren, comma and range colon (ABS ( x ), RAND ( 1 , 100 )). The encoder normalizes ABS(x)*2 to this form. In a decimal formula a sign at the start, after ( or after , stays on its constant (( -5 ), ( +5 )) and is spaced from an address (- DS401); in a hex formula it is its own token (( - Ah )).
  • Internal form is the display form with spaces replaced by # and each bare decimal literal prefixed with H (W outside int16, F for a real: H+5, F-2.5) and each hex constant written UH and its decimal value. An integer keeps its typed text; a real is the value CLICK prints back, in both forms (1.50 is stored 1.5 and F1.5, 1e3 is 1000.0 and F1000.0, 1.2345E-04 is 0.00012345 and F0.00012345). A decode reads a stored real that CLICK keeps only when it is typed with an E in that form, so 0.00012345 decodes as 1.2345E-04. Click splits it on #, so an unspaced ABS( becomes a single unknown token. In CLICK v4 that pastes but raises a Math instruction error.
  • Comma functions (RAND, LSH, RSH, LRO, RRO) are stored infix in the internal form: F ( a , b ) becomes a#F#b, followed by a trailing # when the call ends the formula (H1#RAND#H100#, H1#RAND#H10#+#DS1, DH5#LSH#UH1#). The display form keeps the function call. Range functions (SUM, MAX, MIN, MDN, AVG) and one-argument functions keep the call form (SUM#(#DS1#:#DS3#)).
  • Each argument of a comma function must be one operand or constant. CLICK's editor refuses LSH ( DH401 + 1h , 2h ), RAND ( ABS ( DD616 ) , 20 ) and any other expression or call as an argument, and the encoder refuses them too. Written in its call form (LSH#(#DH401#+#UH1#,#UH2#)), such a call passes Check Program when pasted; written infix, it fails with C0114.
  • Cell header byte +0x0A is 03 on a Math that went through CLICK's editor. A pasted Math keeps the encoder's 01, even in a copy-back, so only 03 blobs show CLICK's own internal form.

Math formula grammar

CLICK v4's Math dialog checks a formula on OK in these steps (math_formula.py follows them, and tests/ladder/test_math_grammar.py has a test per rule):

  1. Tokenizer. Tokens are split by spaces and tabs (no other white space) and by + - * / ^ ( ) , : [ ]. A run of digits followed by ., E or e is cut at the end of the longest real number that it starts. So 1.5E+10 is one token, and hex 1Eh is 1 then Eh. A hex constant typed 1e3 is stored 1E3h (UH483). This rule would cut it as 1E3 then h. laddercodec reads a word cut before a lone h as hex, so the stored formula decodes.
  2. Keywords. The names on the two keypads (SIN ... RRO, PI, MOD, AND, OR, XOR); everything else is an address, a constant or a word.
  3. Parentheses balance and nest at most 8 deep.
  4. Exponent rejoin (decimal): .5E + 3 becomes .5E+3. The tokenizer rule of step 1 already keeps such a real whole.
  5. Sign merge (decimal only): at the start, after ( and after ,, a - or + joins the number after it (( + 5 ) is +5, stored H+5, v4_captures/math_unary_plus_pi.bin). Nowhere else, and never in hex.
  6. Constants.
  7. Decimal: an integer whose low 32 bits print back with %d (a typed + kept) at the typed length, or a real whose value, read as a double, is at most float32's largest, 3.402823466E+38, in size. 3.4028235E+38, which float32 rounds to that value, is refused with OBJ-1009. CLICK saves a real in positional form when its exponent is from -4 to 6, and in exponent form otherwise, with trailing zeros cut. A real typed without an E keeps 6 digits after the point (0.00012345 is saved as 0.000123, 12345678.9 as 1.234568E+07, 1234567.0 as 1234567). One typed with an E keeps 7 significant digits (1.2345E-04 is saved as 0.00012345, 1.2345678E+15 as 1.234568E+15, 3.0E+38 as 3E+38). The form of a real typed with a lowercase e and more digits is not known. laddercodec rejects a real that CLICK may save as another value, and names the text that CLICK saves and the constant to write (3.402823E+38 for float32's largest).
  8. Hex: CLICK uppercases the word and deletes its first H, wherever it is. Then it takes 1 to 4 hex digits. So it stores 7 as 7h, 1e3 as 1E3h and 7H7 as 77h. laddercodec takes only 1 to 4 hex digits followed by h or H. It rejects 7 and 1e3 and names the h form to write. It also rejects 7H7.
  9. Words are refused (FOO), and so is a bracket. CLICK takes a pointer here; laddercodec refuses one.
  10. Mode. A hex formula refuses the decimal keypad's keys (SIN ... DEG, PI, ABS, ^) and a decimal one the hex keypad's (AND, OR, XOR, LSH ... RRO).
  11. Grammar. Each token limits the next:
token may not be followed by
( * / ^ MOD AND OR XOR , : )
) (, a function, PI, a constant or an address
operator ), an operator (a sign included), , or :
constant, address (, a function, PI, a constant or an address
PI a function, PI, a constant, an address, , or :
function anything but (
,, : ), an operator, ,, :, LSH ... RRO

The formula starts with (, a function, PI, a sign, a constant or an address, and ends with ), PI, a constant or an address. The call forms:

  • RAND, LSH, RSH, LRO, RRO: F ( a , b ), one token each; a shift or rotate takes an address as a.
  • SUM, MAX, MIN, MDN, AVG: F ( a : b ), two addresses (math_unary_plus_pi.bin: SUM ( DS1 + DS2 ) is refused).
  • A trig function, SQRT, LOG, LN, RAD or DEG holds a , or : only in a SUM.
  • A , outside a two-argument call is a decimal comma (OBJ-037, DS1 , DS2 in math_unary_plus_pi.bin). laddercodec also refuses a : outside a range function.

These limits apply:

  • Each address must lie inside its bank's range (DS1 + DS0 is refused).
  • The internal template (0x6229) holds at most 270 characters.
  • A RAND bound is a DS or DD register or an integer in a decimal formula, and a DH register or a hex constant in a hex one (OBJ-1002 for another bank, OBJ-1001 for a real). Its two bounds differ (OBJ-1001).
  • A range a : b stays in one bank (OBJ-1015) and runs low to high (OBJ-1014). CLICK refuses those before an address in a bank the mode does not take (OBJ-1002). So SUM ( DH2 : DH1 ) in a decimal formula is OBJ-1014.

Operand and reserved slots

Each slot is [2B tag][4B index LE][UTF-16LE value], and an empty slot is just a null terminator. Operand slots hold every address in the formula, in order, duplicates included. Reserved slots hold the interior addresses of each A : B range, ranges in order. The endpoints are ordinary operands, so SUM ( DS201 : DS300 ) stores DS201 and DS300 as operands and DS202..DS299 in the reserved slots.

An XD or YD range also lists the upper half of address 0: MAX ( XD0 : XD3 ) stores XD0u, XD1 and XD2.

An X or Y range lists only points that exist (1-16, 21-36, 101-116 ... 801-816). An end in the CPU's option slot (21-36) counts as numbered right after the CPU slot, which is 4 less than its number. The range lists each point whose number lies strictly between the two counted ends:

Range Counted ends Reserved slots
X001 : X036 1, 32 X002..X016, X021..X031
X001 : X101 1, 101 X002..X016, X021..X036
X021 : X116 17, 116 X021..X036, X101..X115
X025 : X027 21, 23 X022
X025 : X101 21, 101 X022..X036
X001 : X021 1, 17 X002..X016

This rule is fitted to the thirteen X and Y ranges of v4_captures/math_ranges_x_t.bin, math_ranges_xy_slots.bin, math_ranges_xy_slots2.bin and math_ranges_x25_x101.bin. They were typed in a C2-03CPU project with no I/O modules. The rule is not read from CLICK's code. The ranges include:

  • ranges with both ends in the option slot (X025 : X026, X025 : X027)
  • a range ending at X021
  • one between two expansion slots (X101 : X201, which lists X102..X116)
  • two Y ranges, which follow the same rule as X
  • one that starts in the option slot past X021 and ends in another slot (X025 : X101)

None spans more than two expansion slots, and no Y range starts in the option slot.

The list for X001 : X036 leaves out X032..X035. The list for X021 : X116 holds X021, an endpoint. The list for X025 : X027 holds X022 in place of X026.

laddercodec rejects a Math with an X or Y range that has an end in the option slot. It accepts three exceptions: a range from the CPU slot to X021, a range of one point, and a range of two points numbered one apart (X025 : X026; X036 : X101 is rejected). The rejected ranges are the ones whose list by this rule is not every point strictly between their ends. A stored Math with a rejected range, CLICK's own included, decodes as that Math with a RefusedFieldWarning. It encodes as its stored bytes while you leave it unchanged.

CLICK v4 copies Math back with 5000 reserved slots, not 500, for 5510 fields. A 500-slot blob still pastes into both v3 and v4, so the encoder writes 500 unless the ranges have more than 500 interiors. CLICK's editor stops listing at 5000 without an error, even though the formula keeps the full range, and the encoder does the same.

Math nickname flag

Math blobs contain a nickname_flag field (tag 0x2224). When set to "1", Click displays project-level tag names instead of raw addresses in the math formula. The flag is purely a display hint — the expression itself always stores concrete addresses. When a nickname is typed in the dialog, the display text holds <Nickname> and the internal formula holds its address (DS3#+#H1). laddercodec has no nickname table, so it refuses a <nickname> in a Math expression and decodes a native one to its address form.

The encode() API exposes this via show_nicknames=True, which sets the flag on all math instructions in the buffer.

Blob boundary detection

For unknown instruction types, the blob boundary can be detected using the generic multi-part formula:

  1. Read the class name (UTF-16LE, null-terminated)
  2. Read the type marker (uint32 LE)
  3. Read part count (uint16 LE), skip (part_count - 1) extra bytes
  4. Read field count (uint32 LE)
  5. Walk through tagged fields (each: 2B tag + 4B sentinel/marker + UTF-16LE value)
  6. The blob ends after all fields are consumed

The RawInstruction fallback uses this formula to capture the complete blob as opaque bytes, enabling round-trip for unsupported instruction types via raw(ClassName,0xTTTT,N,rows=R,sub=S,pins=P,fields...) CSV tokens (or the older raw(ClassName,hex)). pins is the extra part bytes (see Part rows), joined by /; a token without it takes 01 02 .... A box whose part bytes are no ascending rows 1 to 31, or whose stored row span is not its last part's row + 1, writes the hex form, which holds them.

The blob does not hold the box's height: the cell header does (+0x09 row span, +0x0A sub-rows). A decoded RawInstruction keeps the native cell's two bytes as rows and sub, the same names the CSV token holds them under (rows=, sub=). One read from a token without them takes them from its class: the typed family's height when the blob alone gives it (Copy family 2 rows, Search 2, Send/Receive 3, Email/Home/Position/Velocity 3, an Out variant by its func code), otherwise the last part's row + 1 (1 row for a 1-part box).

For a Math, Search, Tmr, SR or Drum box, CLICK keeps the height laddercodec writes through paste and through its dialog's OK (v4_captures/box_height_pasted.bin, box_height_dialog_ok.bin). Boxes the editor creates store other sub-rows: Math 01 03, some Search 02 03, Tmr 02 03, Drum 04 05 and SR 03 02. Both forms paste.

Email, Home, Position and Velocity boxes span 3 rows; the editor stores 03 03. A pasted 1-row box of one of these classes shows 1 row until its dialog is saved, which rewrites +0x09 to 3 and grows the rung by 2 rows (03 01).

A box whose stored row span (+0x09) is not the height of the typed instruction decodes as raw(...) and keeps its stored bytes, in both decoders. In the native captures only the 1-row Email, Home, Position and Velocity copy-backs do this. Its CSV token holds the stored height (rows=1,sub=1), so it reads back as stored.

Email, Home, PositionMove and VelocityMove keep each field as the text that its tag stores. Their CSV form is a raw(...) token. An Email with a filled entry in an indexed array (0x68B0 or 0x68B1) decodes as a RawInstruction, because Email has no field for it.