Skip to content

Stream 7 - Process Program Management

Overview

Stream 7 messages handle process program (recipe) management including upload, download, and deletion.

Supported Messages

Message Name Direction Description
S7F1 Process Program Load Inquire H→E Inquire before download
S7F2 Process Program Load Grant E→H Grant download permission
S7F3 Process Program Send H→E Download recipe
S7F4 Process Program Acknowledge E→H Download response
S7F5 Process Program Request H→E Request upload
S7F6 Process Program Data E→H Upload recipe
S7F17 Delete Process Program Send H→E Delete recipe
S7F18 Delete Process Program Acknowledge E→H Delete response
S7F19 Current EPPD Request H→E Request recipe list
S7F20 Current EPPD Data E→H Return recipe list
S7F23 Formatted PP Send H→E Download formatted recipe
S7F24 Formatted PP Acknowledge E→H Formatted download response
S7F25 Formatted PP Request H→E Request formatted recipe
S7F26 Formatted PP Data E→H Return formatted recipe

S7F1 - Process Program Load Inquire

Direction: H→E Reply: S7F2 W-Bit: Yes

Structure

S7F1 W
<L[2]
  <PPID A>           // Process program ID
  <LENGTH U4>        // Expected length in bytes
>

Example

S7F1 W
<L[2]
  <A "RECIPE001">
  <U4 102400>        // 100 KB
>

S7F2 - Process Program Load Grant

Direction: E→H Reply Required: No

Structure

S7F2
<PPGNT B[1]>

PPGNT Values

Value Description
0x00 OK, ready to receive
0x01 Already have
0x02 No space
0x03 Invalid PPID
0x04 Busy, try later
0x05 Will not accept

S7F3 - Process Program Send

Direction: H→E Reply: S7F4 W-Bit: Yes

Structure

S7F3 W
<L[2]
  <PPID A>           // Process program ID
  <PPBODY B>         // Recipe binary data
>

Example

S7F3 W
<L[2]
  <A "RECIPE001">
  <B 0x1A2B3C4D...>  // Recipe content
>

S7F4 - Process Program Acknowledge

Direction: E→H Reply Required: No

Structure

S7F4
<ACKC7 B[1]>

ACKC7 Values

Value Description
0x00 Accepted
0x01 Permission not granted
0x02 Length error
0x03 Matrix overflow
0x04 PPID not found
0x05 Mode unsupported
0x06 Async completion

S7F5 - Process Program Request

Direction: H→E Reply: S7F6 W-Bit: Yes

Structure

S7F5 W
<PPID A>

Example

S7F5 W
<A "RECIPE001">

S7F6 - Process Program Data

Direction: E→H Reply Required: No

Structure - Recipe Found

S7F6
<L[2]
  <PPID A>
  <PPBODY B>
>

Structure - Recipe Not Found

S7F6
<L[0]>

S7F17 - Delete Process Program Send

Direction: H→E Reply: S7F18 W-Bit: Yes

Structure - Delete Specific

S7F17 W
<L[n]
  <PPID A>
  ...
>

Structure - Delete All

S7F17 W
<L[0]>

Example - Delete Specific

S7F17 W
<L[2]
  <A "RECIPE001">
  <A "RECIPE002">
>

S7F18 - Delete Process Program Acknowledge

Direction: E→H Reply Required: No

Structure

S7F18
<ACKC7 B[1]>

S7F19 - Current EPPD Request

Direction: H→E Reply: S7F20 W-Bit: Yes

Structure

S7F19 W
<L[0]>

S7F20 - Current EPPD Data

Direction: E→H Reply Required: No

Structure

S7F20
<L[n]
  <PPID A>
  ...
>

Example

S7F20
<L[5]
  <A "RECIPE001">
  <A "RECIPE002">
  <A "RECIPE003">
  <A "DEFAULT">
  <A "TEST">
>

S7F23 - Formatted Process Program Send

Direction: H→E Reply: S7F24 W-Bit: Yes

Structure

S7F23 W
<L[3]
  <PPID A>
  <MDLN A>           // Equipment model
  <L[n]              // Recipe commands/parameters
    <CCODE>          // Command code
    ...
  >
>

S7F24 - Formatted Process Program Acknowledge

Direction: E→H Reply Required: No

Structure

S7F24
<ACKC7 B[1]>

S7F25 - Formatted Process Program Request

Direction: H→E Reply: S7F26 W-Bit: Yes

Structure

S7F25 W
<PPID A>

S7F26 - Formatted Process Program Data

Direction: E→H Reply Required: No

Structure - Recipe Found

S7F26
<L[3]
  <PPID A>
  <MDLN A>
  <L[n]
    <CCODE>
    ...
  >
>

Structure - Recipe Not Found

S7F26
<L[0]>

Recipe Transfer Sequences

Download Sequence

Host                     Equipment
  |                          |
  | S7F1 (PPID, LENGTH)      |
  |------------------------->|
  |                          |
  |       S7F2 (PPGNT=0)     |
  |<-------------------------|
  |                          |
  | S7F3 (PPID, PPBODY)      |
  |------------------------->|
  |                          |
  |       S7F4 (ACKC7=0)     |
  |<-------------------------|

Upload Sequence

Host                     Equipment
  |                          |
  | S7F5 (PPID)              |
  |------------------------->|
  |                          |
  | S7F6 (PPID, PPBODY)      |
  |<-------------------------|

List and Delete Sequence

Host                     Equipment
  |                          |
  | S7F19 (List request)     |
  |------------------------->|
  |                          |
  | S7F20 (PPID list)        |
  |<-------------------------|
  |                          |
  | S7F17 (Delete PPID)      |
  |------------------------->|
  |                          |
  |     S7F18 (ACKC7=0)      |
  |<-------------------------|