# ReplyFormattedProcProgramUpload

### int ReplyFormattedProcProgramUpload(int lMsgId, string sMDLN, string sSoftRev, int nNameValueListFormat)

호스트의 Formatted Process Program 업로드 요청(S7F25)에 대응하여, 장비 모델 정보(`sMDLN`), 소프트웨어 버전(`sSoftRev`) 등 헤더 정보와 함께 미리 구성된 공정 데이터를 S7F26 메시지로 전송합니다.

이 함수를 호출하기 전, 해당 `lMsgId`에 대해 `AddFormattedProcProgramData` 호출이 선행되어야 공정 데이터 내용이 포함된 완전한 응답이 가능합니다.

Parameters

<table data-header-hidden><thead><tr><th width="202"></th><th width="123"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>lMsgId</td><td>int</td><td>응답을 보낼 대상 원본 메시지(S7F25)의 고유 ID</td></tr><tr><td>sMDLN</td><td>string</td><td>장비 모델 번호 (Model Number)</td></tr><tr><td>sSoftRev</td><td>string</td><td>소프트웨어 개정 레벨 (Software Revision Level)</td></tr><tr><td>nNameValueListFormat</td><td>int</td><td>Name-Value 리스트 형식 사용 여부 (보통 0 또는 1)</td></tr></tbody></table>

```csharp
private void OnEventReceived(IntPtr lpParam, short nEventId, int lParam)                
{
      case 725:              //S7F25
      HostWantFormattedPP(lParam);
      break;
}



void HostWantFormattedPP(int lMsgId)
{
    // 첫 번째 스텝 추가
    string[] names1 = { "TEMP", "TIME" };
    string[] values1 = { "100", "30" };
    m_gem.AddFormattedProcProgramData(lMsgId, "HEAT_STEP", names1, values1);

    // 두 번째 스텝 추가
    string[] names2 = { "PRESSURE", "GAS" };
    string[] values2 = { "10.5", "Ar" };
    m_gem.AddFormattedProcProgramData(lMsgId, "GAS_STEP", names2, values2);
    
    // 이후 ReplyFormattedProcProgramUpload 를 호출하여 최종 전송
    m_gem.ReplyFormattedProcProgramUpload(lMsgId,"MDLN","SOFTREV",1);
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nviasoft.gitbook.io/nviasoft-docs/api-reference/undefined-3/replyformattedprocprogramupload.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
