Why Polling a DVVAL With S1F3 Always Returns Nothing
A VID from the vendor table polled with S1F3 reads zero forever. Real S1F21, S1F11, S1F3 and S2F13 bytes separating SV, DVVAL and ECV.
Page 3 of the vendor's variable table lists VID 5003. Name WaferCount, description "wafers processed by the equipment". It goes on the host screen, so the code polls it with S1F3 every 30 seconds. It reads 0 every time. The number on the equipment screen is clearly moving.
Digging through the HSMS log here wastes an afternoon. The link is fine. The problem is that this VID is not the kind of variable you can read. GEM splits variables into three classes, and each class has a different message that carries its value. When the vendor table mixes all three into one sheet, the host developer never learns that and puts every row into S1F3.
Three classes, three different messages
The split SEMI E30 makes. Message names are SEMI E5's own.
| Class | How the host gets the value | Writable |
|---|---|---|
| SV (Status Variable) | request with S1F3 Selected Equipment Status Request at any time, receive S1F4 | no |
| DVVAL (Data Variable) | arrives inside an S6F11 report when its collection event fires | no |
| ECV (Equipment Constant) | request with S2F13 Equipment Constant Request, receive S2F14 | S2F15 New Equipment Constant Send |
What fixes those routes is E30's GEM fundamental capabilities. Status Data Collection requires S1F3/S1F4 and S1F11/S1F12; Equipment Constants requires S2F13/S2F14 and S2F15/S2F16. There is no polling capability for DVVAL at all. One of the three rows being pollable is the standard's design, not an accident of this tool.
DVVAL is where it breaks. A DVVAL has a meaningful value only at the instant of the collection event it belongs to — the wafer count as the lot ended, the chamber pressure as that alarm went off. Asking for it outside the event is not a question the equipment can answer. So the only route to a DVVAL is defining a report with S2F33, linking it to a CEID with S2F35, and waiting for S6F11. Polling is not a substitute for any part of that.
All three classes share one VID number space, so the number alone will not tell you whether VID 5003 is an SV, a DVVAL or an ECV — the class column of the vendor table is the authority. When that column is empty or the translation looks doubtful, asking the equipment in the order the diagram shows is faster than asking the vendor.
Socket capture — asking the equipment directly
Every frame below went over a socket to the SECS/GEM simulator's EQ1 passive listener (127.0.0.1:5501, SessionID 11, no fault modes set), from a Python client that encodes and decodes the SECS-II items itself. Select.req and S1F13 are already done.
First ask for the DV namelist. S1F21 is that message.
TX S1F21 W 00 00 00 0C 00 0B 81 15 00 00 00 00 00 21 01 00
RX S1F0 00 00 00 0A 00 0B 01 00 00 00 00 00 00 21
Ten bytes back, no body, Function 0. E5 defines Function 0 in every stream as a transaction abort — "I am not processing that transaction". The other answer E5 allows for an unsupported function is Stream 9's S9F5 Unrecognized Function Type; this listener chose SxF0. Either way, S1F21 Data Variable Namelist Request is not on this equipment. A tool that answers S1F13 normally still cannot hand over a DV list, and that is the common case. Any design that assumes the DVVAL list can be pulled off the wire stops here.
The SVID namelist does exist — S1F11 Status Variable Namelist Request. E5 defines a zero-length list as "all of them" for S1F11, S1F3 and S2F13 alike. That is why all three TX frames below end in 01 00.
TX S1F11 W 00 00 00 0C 00 0B 81 0B 00 00 00 00 00 22 01 00
RX S1F12 00 00 00 79 00 0B 01 0C 00 00 00 00 00 22
01 04
01 03 B1 04 00 00 00 64 41 12 "SV100_ProcessState" 41 00
01 03 B1 04 00 00 00 65 41 11 "SV101_Temperature" 41 00
01 03 B1 04 00 00 00 66 41 0E "SV102_Pressure" 41 00
01 03 B1 04 00 00 00 67 41 0C "SV103_Recipe" 41 00
The counting rule at the front of the frame is SEMI E37's. The 4-byte Message Length does not count itself: it is the 10-byte header plus the body. 00 00 00 0C on the S1F21 TX above is 12 — header 10 plus body 2. Those ten bytes run SessionID (2), the byte carrying the W-bit and Stream, the Function byte, PType, SType, then SystemBytes (4). Every frame here is PType 0 (SECS-II encoding) and SType 0 (Data Message).
The body is E5. 01 04 is an L with four elements. Each element is an L,3 holding VID, SVNAME and UNITS in that order. B1 has 44 in its top six bits — format U4 — and 1 in the low two, so one length byte, which is 04, so four data bytes. 44 is a value from E5's item format code table, where 0 is L, 16 is A (ASCII), 32 is F8, 36 is F4, 41 is U1 and 42 is U2. There is no other basis for reading a format out of one byte. 00 00 00 64 is 100. There are exactly four VIDs, 100 through 103. UNITS is 41 00 every time: format A, length zero. No unit string at all.
That namelist is the tool's entire SV inventory. Here is what happens when you put a number that is not in it into S1F3 — one request element, VID 1, which the table does not list.
TX S1F3 W 00 00 00 12 00 0B 81 03 00 00 00 00 00 23 01 01 B1 04 00 00 00 01
RX S1F4 00 00 00 31 00 0B 01 04 00 00 00 00 00 23
01 04
41 04 "Idle"
81 08 40 37 C5 1E B8 51 EB 85 → 23.77
81 08 3F F2 45 A1 CA C0 83 12 → 1.142
41 09 "ETCH_BASE"
One element requested, four returned. This listener never reads the request list; it returns every SV it has. An S1F4 body carries no VIDs, so nothing in the message tells the host which of those four values is VID 1. Without a comparison of request element count against reply element count, the code takes the first value, "Idle", as the value of VID 1. 81 has 32 in its top six bits — E5's F8, an eight-byte double. Read 40 37 C5 1E B8 51 EB 85 as IEEE 754 binary64 and it is 23.77.
ECVs are a different message. A zero-length list in S2F13:
TX S2F13 W 00 00 00 0C 00 0B 82 0D 00 00 00 00 00 24 01 00
RX S2F14 00 00 00 53 00 0B 02 0E 00 00 00 00 00 24
01 02
01 02 41 17 "EC300_TargetTemperature" 81 08 40 50 40 00 00 00 00 00 → 65.0
01 02 41 14 "EC301_TargetPressure" 81 08 40 1E 00 00 00 00 00 00 → 7.5
Same tool, same socket, an entirely different set of values — values that were absent from the SV namelist. That is why guessing the class wrong makes a value that exists look like a value that does not.
What host code has to separate
- Make the class column a required field when you import the variable table. A row with an empty class does not go into the polling set; it goes onto the list of questions for the vendor. Cheaper than writing the "it reads zero" mail later.
- A DVVAL belongs in a report definition, not a polling table. Put it in an S2F33 report and link that report to a CEID with S2F35. Report definition and link order are in the S2F35 LRACK article.
- S1F3 results are only unpacked after request count and reply count match. If they differ, discard the whole reply. The capture above answered one request with four values.
- An S1F0 settles it — that function is absent, so stop retrying. The tool that sent S1F0 for S1F21 sends the same thing next time. Reading SxF0 itself is covered in the S2F0 article.
What this did not verify
The S1F4 Selected Equipment Status Data body E5 defines is an L of values with no VIDs in it — the capture shows exactly that. A separate E5 rule says the equipment returns a zero-length item in the slot of an SVID it does not know. This capture never showed that behaviour — the listener ignores the request list entirely, so no slot for an unknown VID is ever built. Host code that converts a zero-length item into 0.0 can still break against real equipment, and that branch went unverified here.
What the equipment returns when a DVVAL is requested with S1F3 is also unverified. This listener has no DVVALs.
To reproduce it, start the EQ1 listener in the SECS/GEM simulator and send the TX bytes above as they stand.