← Articles
SECS/GEM/9 min read/— views

S1F11 Gives You the SVID List; S1F23 Might Give You Nothing

One session, two namelist requests: S1F11 returns the full SVID catalogue, S1F23 comes back as S1F0, and the tool's CEIDs stay hidden.

SECS/GEMMESTroubleshooting

Defining a report with S2F33 means having a CEID first. Ask where that number comes from when you are writing host code with no equipment to test against, and the answer is that CEIDs have an S1F23 in the same slot SVIDs have an S1F11 — Collection Event Namelist Request. Send both on one session and the results split. S1F11 returns a catalogue with three fields per entry, SVID, SVNAME and UNITS. S1F23 ends in an S1F0 whose body is zero bytes long. The COMMACK 0 in the S1F14 answering S1F13 had already arrived, so this is not the E30 communication gate sitting closed. The two requests differ by one header byte. And this tool holds six collection events while telling you about none of them.

On one session, S1F13 draws a COMMACK 0 that opens the gate, then S1F11 returns an S1F12 carrying SVID, SVNAME and UNITS while S1F23 — carrying the same empty list — ends in an S1F0 with no body HostEquipment S1F13 — MDLN, SOFTREV S1F14 — COMMACK 0 S1F11 — L,0 S1F12 — SVID, SVNAME, UNITS S1F23 — L,0 S1F0 body ofzero bytes

Every frame below was exchanged over a socket against the EQ1 passive listener of the SECS/GEM simulator (127.0.0.1:5501, SessionID 11, no faults set), driven by a Python socket client. All four frames were logged RX on the equipment side. The client encodes and decodes the SECS-II items itself. The raw export is committed at content/demos/s1f23-s1f24-collection-event-namelist.json.

Open the gate first

The comparison only holds if E30 communication is open, so the session follows the order: Select.req, then S1F13, then check the COMMACK.

TX S1F13 W  00 00 00 17 00 0B 81 0D 00 00 00 00 30 02  01 02 41 04 48 4F 53 54 41 03 31 2E 30
RX S1F14    00 00 00 37 00 0B 01 0E 00 00 00 00 30 02  01 02 21 01 00 01 02 41 15 56 58 2D 39
                                                        30 30 30 20 50 6C 61 73 6D 61 20 45 74
                                                        63 68 65 72 41 0D 53 45 43 53 47 45 4D
                                                        2D 31 2E 34 2E 31

The body sent is L,2 { A "HOST", A "1.0" }, the MDLN and SOFTREV slots. The first three bytes of the reply body, 21 01 00, are COMMACK 0: 21 is format code 8 (binary) with one length byte, 01 is one byte of payload, and the value is 00. After it comes L,2 { A "VX-9000 Plasma Etcher", A "SECSGEM-1.4.1" }, the equipment's own MDLN and SOFTREV. 41 15 is 21 ASCII characters and 41 0D is 13.

That one byte carries the rest of this article. It closes off reading the S1F0 further down as "communication isn't open yet."

The same empty list twice, two different answers

Both S1F11 and S1F23 take a list of IDs as their body, and zero elements means "describe everything you have." So the same two bytes, 01 00, went out twice.

TX S1F11 W  00 00 00 0C 00 0B 81 0B 00 00 00 00 30 03  01 00
RX S1F12    00 00 00 79 00 0B 01 0C 00 00 00 00 30 03  01 04
                                                        01 03 B1 04 00 00 00 64 41 12 53 56 31
                                                        30 30 5F 50 72 6F 63 65 73 73 53 74 61
                                                        74 65 41 00
                                                        01 03 B1 04 00 00 00 65 41 11 53 56 31
                                                        30 31 5F 54 65 6D 70 65 72 61 74 75 72
                                                        65 41 00
                                                        01 03 B1 04 00 00 00 66 41 0E 53 56 31
                                                        30 32 5F 50 72 65 73 73 75 72 65 41 00
                                                        01 03 B1 04 00 00 00 67 41 0C 53 56 31
                                                        30 33 5F 52 65 63 69 70 65 41 00

01 04 is a list of four elements — a list's length field counts elements, not bytes. Each element opens 01 03 again: SVID, SVNAME, UNITS. B1 is format code 54 octal (U4) with one length byte, so B1 04 00 00 00 64 is SVID 100. Then 41 12, 18 ASCII characters, SV100_ProcessState. The trailing 41 00 is ASCII of length zero — an empty UNITS. This tool does not fill the units in. Read all four and you get SVIDs 100, 101, 102 and 103, named SV100_ProcessState, SV101_Temperature, SV102_Pressure and SV103_Recipe.

The length checks out too: 00 00 00 79 is 121, ten bytes of header and 111 of body.

Now the same empty list, sent as S1F23.

TX S1F23 W  00 00 00 0C 00 0B 81 17 00 00 00 00 30 04  01 00
RX S1F0     00 00 00 0A 00 0B 01 00 00 00 00 00 30 04
BytesFieldValue
00 00 00 0ALength10 — header only, no body
00 0BSessionID11
01Header byte 2W-bit 0, Stream 1
00Header byte 3Function 0
00 00PType, SType0, 0 — data message
00 00 30 04SystemBytesexactly what was sent

Put the two requests one above the other and header byte 3 is the difference: 0B (11) against 17 (23). Discount the SystemBytes and one byte decides whether you get a catalogue or nothing at all. From the host side the two code paths are indistinguishable. Same function encoding an empty list, same socket write, same T3 armed.

An S1F0 here means "never," not "not yet"

Hold an S1F0 on its own and there are two causes. Either the equipment does not implement that function, or E30 communication has not opened and the gate is refusing everything. No field in the reply separates them — an S2F0 returned for two different reasons is that problem on its own.

This capture closes the fork by how the session was built. COMMACK 0 arrived first, and after it, on the same socket, S1F11 returned a 121-byte S1F12. The evidence that the gate is open sits one line above the S1F0. So this S1F0 is an unimplemented function.

Nor is it that the tool has no collection events. The simulator's Events panel holds CEIDs 1001, 1002, 1101, 1102, 1201 and 9001, and its S6F11 goes out carrying those numbers. The numbers exist. The route for asking about them does not.

So where do CEIDs come from

A host obtains SVIDs and CEIDs by asymmetric routes, and the design has to admit that.

  • Transcribed from the interface spec. Realistically this is the primary source: someone copies the CEID table out of the vendor's GEM interface document. Which means the CEIDs in your host configuration are not a protocol-confirmed fact but a document transcription. The protocol will not catch a typo in it.
  • Validate each number at connect. Linking a report holding exactly one CEID with S2F33/S2F35 and reading the ack finishes much faster than assuming the number is right and waiting for an S6F11. Get the S2F33, S2F35 and S2F37 order straight first, or the ack stops meaning anything.
  • Send S1F23 anyway. Some tools answer it. Just do not treat an S1F0 as a connection failure — branch to abandoning discovery and falling back to configured values. I have seen a host drop the session over this, and there is no reason to drop it.
  • Discovery by observation needs equipment. Run the tool, collect the CEIDs arriving in S6F11, and you learn the numbers actually in use. Accurate, and useless to someone writing host code with no tool. That is exactly why the asymmetry hurts.

Keep the CEID table in configuration rather than hardcoded. Equipment software gets upgraded, the table changes with it, and no message tells you it did.

What I did not verify

The body layout of S1F24 is not something this run established, because no S1F24 ever arrived. SEMI E5 defines S1F23/S1F24 as Collection Event Namelist Request and its reply, with the reply carrying each CEID, its name, and the list of variables that event's report can contain. That is a citation from the standard, not a value I measured. Check the vendor document before you commit nesting depth and per-field format codes to your decoder.

Whether SEMI E30 requires S1F23 as a mandatory capability or leaves it optional is a clause I did not re-read this run. Keeping "this listener does not implement it" from spreading into "GEM equipment generally does not" is where this capture's reach ends.

S2F35's LRACK and S2F37's CEACK each have a value meaning the CEID does not exist, and those numbers are unverified here as well. This listener returns a plain ACK 0 to S2F35 and never checks the CEID. The "validate at connect" point above is about the mechanism; which value carries which meaning is for your own equipment document.

Using Function 0 as an abort is E5's own rule, and handling SxF0 in one place as "that transaction is over" works — there is no need for a per-stream branch.

Every frame above came off a socket opened against the public SECS/GEM simulator's passive listener. Throw S1F11 and S1F23 at it back to back with your own host stack and you will see immediately how it records two replies that differ by one byte. Whether it raises the S1F0 as a connection failure is decided right there.