# SetECRange

### int SetECRange(int ECID, string strMinValue, string strMaxValue)

라이브러리에 등록된 특정 \*\*ECID(Equipment Constant ID)\*\*에 대해 허용 가능한 \*\*최솟값(Min)\*\*과 \*\*최댓값(Max)\*\*을 설정합니다. 이 값이 설정되면 향후 호스트가 범위를 벗어나는 값을 설정하려고 할 때 유효성 검사 기준으로 활용됩니다.

Parameters

<table data-header-hidden><thead><tr><th width="252" valign="top"></th><th width="103" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Name</td><td valign="top">Type</td><td valign="top">Description</td></tr><tr><td valign="top">ECID</td><td valign="top">int</td><td valign="top">Min/Max 값을 설정하기 위한 대상 ECID</td></tr><tr><td valign="top">strMinValue</td><td valign="top">string</td><td valign="top">Minimum 값</td></tr><tr><td valign="top">strMaxValue</td><td valign="top">string</td><td valign="top">Maximum 값</td></tr></tbody></table>

```csharp
int targetEcid = 5001; // 예: 가열 온도 설정값
string minTemp = "0";
string maxTemp = "300";

// ECID 5001번에 대해 0~300 사이의 값만 허용하도록 설정
int result = m_gem.SetECRange(targetEcid, minTemp, maxTemp);

if (result >= 0)
{
    Console.WriteLine($"Range for ECID {targetEcid} set to {minTemp} ~ {maxTemp}.");
}
else
{
    Console.WriteLine($"Failed to set EC range. Error Code: {result}");
}
```


---

# 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-6/setecrange.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.
