Skip to Content
On this page

SECS-I serial

SECS-I serial exchanges SECS-I half-duplex transactions, reassembles multi-block messages, and receives active device messages.

Compatible devices and models

Device series / model examplesConnection requirements
Semiconductor equipment exposing SECS-I serial interfacesMatch serial settings, device ID, host role and timers. Configure S/F and items for the equipment message dictionary; use SECS/GEM for HSMS.

SECS-I wiring and line roles

  1. Select SECS-I on the equipment and match electrical interface, wiring and character settings. RS-232 and RS-485 need the appropriate hardware. Serial servers must forward bytes rather than convert to HSMS.
  2. Record Device ID and the agreed contention priority. Priority resolves simultaneous ENQ; it is neither a TCP role nor a device number.
  3. Create serial or transparent TCP client transport. Select SECS-I serial and send an equipment-supported read query such as s=1;f=3;w;<List Length="0" />. Compare S1F4 and its Item tree.
  4. For an incoming variable such as s=6;f=11;, configure reports and events through the equipment GEM flow first. Compare the complete reassembled message, event IDs and variable order.

Distinguish the timers

T1 limits interbyte gaps within a block; T2 waits for line responses; T4 waits for the next block; T3 waits for the business secondary. Identify the failing stage before changing its timer.

NAK retries resend the current block, not an arbitrary complete remote command. A block carries at most 244 body bytes and a message at most 32767 blocks. Increasing T4 does not change these limits. HSMS Select, Linktest and T6/T7/T8 do not apply to this serial line.

Open the plugin

Enter “Development Configuration → Collection Configuration”, create a device and select “SECS-I serial” in “Device Plugin”.

Supported channels and data types

Channel typePre-configuration check
Serial PortConfirm that the serial port is not occupied by other programs and maintains the same baud rate, data bits, stop bits and parity bits as the device.
TCP ClientConfirm network reachability of the device IP, port, and gateway to the device.

Optional data types: Boolean, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float, Double, String

This list describes types allowed by the plugin editor. Address width, arrays, string length and read/write restrictions still follow this page; it does not mean that every address supports every type.

Plugin properties

Protocol parameters

SettingDescription
Device IDDefault 0; range 0–32767. Match the target SECS-I device ID.
Byte Interval T1 (ms)Default 10000; range 1–2147483647. Maximum interval between bytes while receiving one block.
Line Response T2 (ms)Default 5000; range 1–2147483647. Maximum wait for a line-control response.
Multiblock Interval T4 (ms)Default 10000; range 1–2147483647. Maximum wait for the next block of one message.
Collision PriorityDefault Host Priority; Equipment Priority is also available. Determines which side has priority when both send ENQ simultaneously.

Running parameters

SettingDescription
Primary Transaction T3 (ms)Default 45000; range 1–65535. Maximum wait for a primary transaction reply.
NAK RetriesDefault 3; range 0–10. Number of times the current block may be retransmitted after NAK.

GEM profile and recipe directory

SettingValue and purpose
GEM device profileEmpty by default, maximum 262144 characters. Empty uses raw S/F exchange. For GEM states, reports, remote commands or recipes, enter JSON from the equipment model/version interface manual, including source, revision, variable types, state codes, report order and allowed operations. A mismatch can reject initialization or messages; changing T3 does not correct it. Follow the HSMS profile structure linked below.
Recipe directoryDefault ProtocolFiles/SECS/Devices/{DeviceId}, maximum 1024 characters. Relative to the gateway backend runtime root, with device ID substituted. Upload sources and downloaded files belong here. File methods accept relative filenames inside this directory, not absolute paths on the browser computer. The gateway service needs read/write access; uploads and deletes also need their respective profile permissions.

Address rules

  • Address Description
  • s=1;f=3;w; send main message and wait for S1F4
  • s=6;f=11; Subscription device active S6F11
  • s=1;f=13;w;<List Length="0" /> carries SECS-II XML data

Special methods

MethodPurposeParameters
ExchangeMessageAsyncExchange SECS-I messagesaddress=s=1;f=3;w;

Finite GEM and recipe operations

SECS-I uses the same GEM device profile and business methods as the HSMS master, including state, reports, remote commands and backend recipe files. An empty profile enables raw exchange. A configured profile must match the equipment’s actual types and control codes. Confirm communication, control state and report relationships again after a disconnect.

Transport settings remain this plugin’s T1, T2, T3, T4, NAK retry count and collision priority. Agree on priority with the peer. Equipment primary messages and their acknowledgements can interleave with a host transaction awaiting its secondary message. Duplicate blocks are acknowledged again without publishing twice. A message is limited to 32767 blocks, each carrying at most 244 body bytes.

An invalid protocol connection stops exchange and reconnects. Transparent TCP preserves the SECS-I byte protocol; match wiring, baud, character gaps and line timing on both sides of a serial server. This is finite GEM support and excludes GEM300.

Device debug

Enter “Development Configuration → Collection Configuration”, select the current device then open “Protocol Debug” at the top of the workspace.

Dedicated debugging page

The protocol debug page accepts one complete SECS-I address and message description and performs one exchange.

SECS-I serial: Operations

Debugging notes

Verify the exchange first with test SECS-I text or hexadecimal content; message sending requires write permission and secondary confirmation.

Functions

FunctionPurpose
Message inputEnter s=, f=, optional w, and optional SECS-II XML data.
Message exchangeSend a primary message and wait for its secondary message when w is present.
ResultShow the returned message, transaction result, or line error.

Verify the configuration

  1. Ask the equipment supplier for one read-only test message, such as the supported s=1;f=3;w; query.
  2. Run the exchange and confirm the expected secondary message, for example S1F4. Check the device ID and returned structure.
  3. When sending SECS-II XML, validate the item types and nesting on a test device first.
  4. For active-message variables, use the actual S/F address and trigger one test event to confirm the variable update.
  5. Do not send an S/F message with unconfirmed meaning to a production device.

Use Edit fields beside the message to maintain S/F, wait-for-reply, and SECS-II data, then confirm and fill back before exchange. Cancelling sends nothing. GEM command fields follow the equipment profile; see message and GEM command field editing for the workflow and screenshot.

Troubleshooting

  • Message exchange times out: Check device ID, S/F, w, and T1, T2, T3, and T4 timers.
  • NAK is frequent: Check serial settings, parity, block boundaries, retry count, and line quality.
  • Multi-block message cannot be reassembled: Check T4 and link stability, then inspect block sequence and checksum errors.
  • Simultaneous sends fail: Make the collision-priority setting match the equipment agreement.
  • SECS-II parsing fails: Check item type, length, and nesting; reduce the message to the smallest valid form.
  • The serial port device does not respond: Confirm that the port is not occupied and that baud rate, data bits, stop bits, and parity match.