commands:builtin
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| commands:builtin [2026/08/31 23:17] – 바깥 편집 127.0.0.1 | commands:builtin [2026/09/15 11:47] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== ILOGICS 내장 명령어 설명서 ====== | ====== ILOGICS 내장 명령어 설명서 ====== | ||
| - | ILOGICS 보드에서는 ILOGICS에서 제작한 내장 명령어를 사용할 수 있습니다. | + | ILOGICS 보드를 |
| ===== 내장 명령어를 사용하는 방법 ===== | ===== 내장 명령어를 사용하는 방법 ===== | ||
| - [[https:// | - [[https:// | ||
| - | - Arduino IDE에서 | + | - Arduino IDE의 **도구 → 보드**에서 사용할 보드를 선택합니다. |
| - 내장 명령어를 사용합니다. | - 내장 명령어를 사용합니다. | ||
| ===== 내장 명령어 리스트 ===== | ===== 내장 명령어 리스트 ===== | ||
| + | |||
| + | 예제에 표시된 입출력 주소는 제품별로 다릅니다. 사용 중인 ILOGICS 제품의 보드 정의를 선택하고, | ||
| + | |||
| + | **카테고리별 보기** | ||
| + | |||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| ^ 카테고리 ^ 명령어 ^ 설명 ^ | ^ 카테고리 ^ 명령어 ^ 설명 ^ | ||
| - | | 디지털 입력 필터 | [[commands:digital_filter|IdigitalRead()]] | 입력을 여러 번 읽어 짧은 노이즈를 줄입니다. | | + | | 디지털 입력 필터 | [[commands:reference: |
| - | | 디지털 입력 필터 | + | | ::: | [[commands:ibounce|Ibounce()]] | 입력의 ON·OFF 양방향에 채터링 제거 시간을 적용합니다. | |
| - | | 디지털 입력 필터 | + | | ::: | [[commands:reference: |
| - | | 디지털 입력 필터 | + | | ::: | [[commands:reference: |
| - | | 디지털 출력 초기화 | [[commands: | + | | 에지 검출 | [[commands:reference: |
| - | | 에지 검출 | [[commands:edge_scale|Iup()]] | 입력이 OFF에서 ON으로 바뀌는 순간에만 '' | + | | ::: | [[commands:reference: |
| - | | 에지 검출 | + | | 상태 반전 | [[commands:reference: |
| - | | 상태 반전 | [[commands:edge_scale|Ialt()]] | 입력 상승 순간마다 지정한 상태를 ON·OFF로 반전합니다. | | + | | 범위 변환 | [[commands:reference: |
| - | | 범위 변환 | [[commands:analog_input|Iscale()]] | 정수 입력값을 지정한 정수 범위로 변환합니다. | | + | | ::: | [[commands:reference: |
| - | | 범위 변환 | + | | 타이머 | [[commands:reference: |
| - | | 타이머 | [[commands:plc_timer|Iton()]] | (On Delay Timer) 조건이 일정 시간 동안 ON이 되어야 | + | | ::: | [[commands:reference: |
| - | | 타이머 | + | | ::: | [[commands:reference: |
| - | | 타이머 | + | | ::: | [[commands:reference: |
| - | | 타이머 | + | | ::: | [[commands:reference: |
| - | | 타이머 | + | | 타이머 상태 | [[commands:reference: |
| - | | 타이머 상태 | [[commands:plc_timer|IgetTime()]] | 지정한 타이머의 현재 경과시간을 반환합니다. | | + | | ::: | [[commands:reference: |
| - | | 타이머 상태 | + | | 콜백 타이머 | [[commands:reference: |
| - | | 콜백 타이머 | [[commands:callback_timer|ItimerSet()]] | 주기와 콜백 함수 또는 사용할 하드웨어 타이머를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | 콜백 타이머 | + | | ::: | [[commands:reference: |
| - | | 콜백 타이머 | + | | ::: | [[commands:reference: |
| - | | 콜백 타이머 | + | | ::: | [[commands:reference: |
| - | | 콜백 타이머 | + | | 카운터 | [[commands:reference: |
| - | | 카운터 | [[commands:counter_buffer|Ictu()]] | 입력의 상승 횟수를 세고 설정값에 도달하면 '' | + | | ::: | [[commands:reference: |
| - | | 카운터 | + | | ::: | [[commands:reference: |
| - | | 카운터 | + | | ::: | [[commands:reference: |
| - | | 카운터 | + | | ::: | [[commands:reference: |
| - | | 카운터 | + | | ::: | [[commands:reference: |
| - | | 카운터 | + | | 데이터 버퍼 | [[commands:reference: |
| - | | 데이터 버퍼 | [[commands:counter_buffer|FIFO()]] | 먼저 | + | | ::: | [[commands:reference: |
| - | | 데이터 버퍼 | + | | 아날로그 입력 | [[commands:reference: |
| - | | 아날로그 입력 | [[commands:analog_input|analogReadInit()]] | 아날로그 입력 모듈의 샘플링 속도를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | 아날로그 입력 | + | | ::: | [[commands:reference: |
| - | | 아날로그 입력 | + | | ::: | [[commands:reference: |
| - | | 아날로그 입력 | + | | 아날로그 입력 필터 | [[commands:reference: |
| - | | 아날로그 입력 필터 | [[commands:analog_input|IanalogFilter()]] | 전달한 값을 이동평균 방식으로 처리합니다. | | + | | 아날로그 범위 변환 | [[commands:reference: |
| - | | 아날로그 범위 변환 | [[commands:analog_input|IanalogRead()]] | 아날로그 입력값을 지정한 정수 범위로 변환합니다. | | + | | ::: | [[commands:reference: |
| - | | 아날로그 범위 변환 | + | | 4~20mA 입력 | [[commands:reference: |
| - | | 4~20mA 입력 | [[commands:analog_input|analogRead2()]] | 지정한 채널의 4~20mA 보정 입력값을 읽습니다. | | + | | ::: | [[commands:reference: |
| - | | 4~20mA 입력 | + | | ::: | [[commands:reference: |
| - | | 4~20mA 입력 | + | | 4~20mA 범위 변환 | [[commands:reference: |
| - | | 4~20mA 범위 변환 | [[commands:analog_input|IanalogRead2()]] | 4~20mA 입력값을 지정한 정수 범위로 변환합니다. | | + | | ::: | [[commands:reference: |
| - | | 4~20mA 범위 변환 | + | | 온도 입력 | [[commands:reference: |
| - | | 온도 입력 | [[commands:temperature|ntcRead()]] | NTC 3950 10kΩ 센서의 온도를 0.1℃ 단위 정수로 반환합니다. | | + | | ::: | [[commands:reference: |
| - | | 온도 입력 | + | | ::: | [[commands:reference: |
| - | | 온도 입력 | + | | 아날로그 출력 | [[commands:reference: |
| - | | 아날로그 출력 | [[commands:analog_output_pwm|analogWriteInit()]] | 출력 타이머의 분해능과 분주비를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | 아날로그 출력 | + | | ::: | [[commands:reference: |
| - | | 아날로그 출력 | + | | ::: | [[commands:reference: |
| - | | 아날로그 출력 | + | | ::: | [[commands:reference: |
| - | | 아날로그 출력 | + | | ::: | [[commands:reference: |
| - | | 아날로그 출력 | + | | 4~20mA 출력 | [[commands:reference: |
| - | | 4~20mA 출력 | [[commands:analog_output_pwm|analogWrite2()]] | 지정한 채널에 4~20mA 변환용 원시값을 출력합니다. | | + | | ::: | [[commands:reference: |
| - | | 4~20mA 출력 | + | | ::: | [[commands:reference: |
| - | | 4~20mA 출력 | + | | PWM 출력 | [[commands:reference: |
| - | | PWM 출력 | [[commands:analog_output_pwm|PWM()]] | 지정한 핀에 8비트 또는 16비트 PWM을 출력합니다. | | + | | ::: | [[commands:reference: |
| - | | PWM 출력 | + | | ::: | [[commands:reference: |
| - | | 펄스 출력 | + | | ::: | [[commands:reference: |
| - | | 펄스 출력 | + | | 펄스 |
| - | | PWM 출력 | [[commands:analog_output_pwm|PWMOFF()]] | 지정한 핀의 PWM 출력을 | + | | ::: | [[commands:reference: |
| - | | PWM 출력 | + | | PID 제어 | [[commands:reference: |
| - | | PID 제어 | [[commands:pid|IpidSet()]] | PID 계수, 계산 주기와 출력 범위를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | PID 제어 | + | | ::: | [[commands:reference: |
| - | | PID 제어 | + | | ::: | [[commands:reference: |
| - | | PID 제어 | + | | ::: | [[commands:reference: |
| - | | PID 제어 | + | | ::: | [[commands:reference: |
| - | | PID 제어 | + | | TM1637 FND | [[commands:reference: |
| - | | TM1637 FND | [[commands:display_rtc|IsegBegin()]] | TM1637 FND의 CLK·DIO 핀과 장치 번호를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | TM1637 FND | [[commands:display_rtc|IsegBrightness()]] | 화면 밝기와 표시 상태를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | TM1637 FND | [[commands:display_rtc|IsegClear()]] | FND 화면을 지웁니다. | | + | | ::: | [[commands:reference: |
| - | | TM1637 FND | [[commands:display_rtc|IsegWrite()]] | 세그먼트 데이터를 지정 위치에 출력합니다. | | + | | ::: | [[commands:reference: |
| - | | TM1637 FND | [[commands:display_rtc|IsegDecimal()]] | 정수를 10진수 형식으로 표시합니다. | | + | | ::: | [[commands:reference: |
| - | | TM1637 FND | [[commands:display_rtc|IsegHex()]] | 정수를 16진수 형식으로 표시합니다. | | + | | ::: | [[commands:reference: |
| - | | TM1637 FND | [[commands:display_rtc|IsegEncodeDigit()]] | 숫자 한 자리를 세그먼트 데이터로 변환합니다. | | + | | 문자 LCD | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdBegin()]] | PCF8574 문자 LCD의 주소와 화면 크기를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdClear()]] | LCD 화면을 지웁니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdHome()]] | 커서를 첫 번째 위치로 이동합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdSetCursor()]] | 커서를 지정한 열과 행으로 이동합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdDisplay()]] | LCD 표시를 켜거나 끕니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdCursor()]] | 커서 표시를 켜거나 끕니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdBlink()]] | 커서 깜박임을 켜거나 끕니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdBacklight()]] | LCD 백라이트를 켜거나 끕니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdScrollLeft()]] | 표시 내용을 왼쪽으로 한 칸 이동합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdScrollRight()]] | 표시 내용을 오른쪽으로 한 칸 이동합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdTextDirection()]] | 문자가 입력되는 방향을 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdAutoscroll()]] | 자동 스크롤을 켜거나 끕니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdCreateChar()]] | 사용자 정의 문자를 등록합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdWrite()]] | 문자 코드 또는 사용자 정의 문자를 출력합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdCommand()]] | LCD 제어 명령을 직접 전송합니다. | | + | | ::: | [[commands:reference: |
| - | | 문자 LCD | [[commands:display_rtc|IclcdPrint()]] | 문자열 또는 숫자를 LCD에 출력합니다. | | + | | RTC | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcBegin()]] | DS3231 RTC 연결을 확인하고 사용을 시작합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcRead()]] | RTC의 날짜와 시간을 읽습니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcSet()]] | RTC의 날짜와 시간을 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcUnixTime()]] | 현재 시간을 Unix 시간으로 반환합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcGetTemperature()]] | RTC 내부 온도를 반환합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcTimeValid()]] | RTC 시간이 신뢰 가능한 상태인지 확인합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcClearOscillatorStopFlag()]] | 발진 정지 상태 표시를 초기화합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcSetAlarm1()]] | 초 단위를 포함하는 알람 1을 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcSetAlarm2()]] | 분 단위의 알람 2를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcAlarmEnable()]] | 지정한 알람을 켜거나 끕니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcAlarmEnabled()]] | 지정한 알람의 활성 상태를 확인합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcAlarmTriggered()]] | 알람 발생 여부를 확인하고 필요하면 상태를 지웁니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|IrtcSquareWave()]] | RTC의 사각파 출력을 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | RTC | [[commands:display_rtc|Irtc32kHz()]] | RTC의 32kHz 출력을 켜거나 끕니다. | | + | | 디버그 | [[commands:reference: |
| - | | 디버그 | [[commands:debug_watchdog|debugStart()]] | 디버그 출력에 사용할 포트와 보레이트를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | 디버그 | + | | ::: | [[commands:reference: |
| - | | 디버그 | + | | ::: | [[commands:reference: |
| - | | 디버그 | + | | ::: | [[commands:reference: |
| - | | 디버그 | + | | Watchdog | [[commands:reference: |
| - | | Watchdog | [[commands:debug_watchdog|WDT_ENABLE()]] | Watchdog 제한시간을 설정하고 동작을 시작합니다. | | + | | ::: | [[commands:reference: |
| - | | Watchdog | + | | ::: | [[commands:reference: |
| - | | Watchdog | + | | 고속카운터 | [[commands:reference: |
| - | | 고속카운터 | [[commands:high_speed_counter|TCNTSETUP()]] | 타이머 외부 클럭 입력과 32비트 확장 모드를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | 고속카운터 | + | | Modbus RTU Slave | [[commands:reference: |
| - | | Modbus RTU Slave | [[commands:communication|ImodbusRTUMem()]] | Slave가 사용할 M·D 메모리 크기를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | Modbus RTU Slave | [[commands:communication|ImodbusRTUAdr()]] | M·D 메모리의 시작 주소를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | Modbus RTU Slave | [[commands:communication|ImodbusRTUInit()]] | 통신 포트, 국번과 보레이트를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | Modbus RTU Slave | [[commands:communication|ImodbusRTU()]] | 수신 요청을 확인하고 Slave 응답을 처리합니다. | | + | | Modbus RTU Master | [[commands:reference: |
| - | | Modbus RTU Master | [[commands:communication|ImodbusRTUmasterInit()]] | Master 통신 포트와 보레이트를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | Modbus RTU Master | + | | ::: | [[commands:reference: |
| - | | Modbus RTU Master | + | | ::: | [[commands:reference: |
| - | | Modbus RTU Master | + | | LS산전 Cnet Slave | [[commands:reference: |
| - | | LS산전 Cnet Slave | [[commands:communication|ICnetMem()]] | Cnet Slave가 사용할 M·D·R 메모리 크기를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | LS산전 Cnet Slave | [[commands:communication|ICnetAdr()]] | M·D·R 메모리의 시작 주소를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | LS산전 Cnet Slave | [[commands:communication|ICnetInit()]] | 통신 포트, 국번과 보레이트를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | LS산전 Cnet Slave | [[commands:communication|ICnet()]] | 수신 요청을 확인하고 Cnet Slave 응답을 처리합니다. | | + | | Mitsubishi MC Protocol | [[commands:reference: |
| - | | Mitsubishi MC Protocol | [[commands:communication|IMcMem()]] | MC Protocol에서 사용할 X·Y·M·D 메모리 크기를 설정합니다. | | + | | ::: | [[commands:reference: |
| - | | Mitsubishi MC Protocol | + | | ::: | [[commands:reference: |
| - | | Mitsubishi MC Protocol | + | | ::: | [[commands:reference: |
| - | | Mitsubishi MC Protocol | + | |
| - | ===== 기본 제어 | + | ===== 디지털 입력 필터 ===== |
| + | |||
| + | ^ 명령어 | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | |||
| + | '' | ||
| + | |||
| + | ===== 에지 검출 | ||
| ^ 명령어 형식 ^ 반환값 ^ 설명 ^ | ^ 명령어 형식 ^ 반환값 ^ 설명 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | '' | + | '' |
| + | |||
| + | ===== 상태 반전 ===== | ||
| + | |||
| + | ^ 명령어 형식 ^ 반환값 ^ 설명 ^ | ||
| + | | [[commands: | ||
| + | |||
| + | 다음 예제는 MPAINO-8A8R(T)의 첫 입력 '' | ||
| <code cpp> | <code cpp> | ||
| bool lampState = false; | bool lampState = false; | ||
| + | |||
| + | void setup() {} | ||
| void loop() { | void loop() { | ||
| 줄 163: | 줄 187: | ||
| </ | </ | ||
| - | ===== 디지털 입력과 노이즈 필터 | + | ===== 범위 변환 |
| - | ^ 명령어 형식 ^ 반환값 ^ 사용 기준 | + | ^ 명령어 형식 ^ 반환값 ^ 설명 |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | '' | + | ===== 타이머 ===== |
| - | + | ||
| - | ===== PLC 스타일 | + | |
| ^ 명령어 형식 ^ 동작 ^ | ^ 명령어 형식 ^ 동작 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | |
| PLC 스타일 타이머는 '' | PLC 스타일 타이머는 '' | ||
| + | |||
| + | 다음 예제는 MPAINO-8A8R(T)의 첫 입력 '' | ||
| <code cpp> | <code cpp> | ||
| + | void setup() {} | ||
| + | |||
| void loop() { | void loop() { | ||
| bool run = Ibounce(0, 30); | bool run = Ibounce(0, 30); | ||
| 줄 194: | 줄 216: | ||
| </ | </ | ||
| - | ===== 주기 | + | ===== 타이머 상태 ===== |
| + | |||
| + | ^ 명령어 형식 ^ 반환값 ^ 설명 ^ | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | |||
| + | ===== 콜백 타이머 ===== | ||
| ^ 명령어 형식 ^ 설명 ^ | ^ 명령어 형식 ^ 설명 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| 콜백 함수는 인터럽트 안에서 실행됩니다. 콜백에서는 플래그나 짧은 카운트만 변경하고 '' | 콜백 함수는 인터럽트 안에서 실행됩니다. 콜백에서는 플래그나 짧은 카운트만 변경하고 '' | ||
| 줄 226: | 줄 254: | ||
| </ | </ | ||
| - | ===== 카운터와 데이터 버퍼 | + | ===== 카운터 ===== |
| ^ 명령어 형식 ^ 설명 ^ | ^ 명령어 형식 ^ 설명 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | |
| - | | '' | + | |
| 카운터 명령어는 '' | 카운터 명령어는 '' | ||
| - | ===== 아날로그 입력과 범위 변환 ===== | + | ===== 데이터 버퍼 ===== |
| + | |||
| + | ^ 명령어 형식 ^ 설명 ^ | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | |||
| + | ===== 아날로그 입력 | ||
| + | |||
| + | ^ 명령어 형식 ^ 반환값·용도 ^ | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | |||
| + | ===== 아날로그 입력 필터 ===== | ||
| + | |||
| + | ^ 명령어 형식 ^ 반환값·용도 ^ | ||
| + | | [[commands: | ||
| + | |||
| + | ===== 아날로그 범위 변환 ===== | ||
| + | |||
| + | ^ 명령어 형식 ^ 반환값·용도 ^ | ||
| + | | [[commands: | ||
| + | |||
| + | ===== 4~20mA 입력 ===== | ||
| + | |||
| + | ^ 명령어 형식 ^ 반환값·용도 ^ | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | |||
| + | ===== 4~20mA | ||
| ^ 명령어 형식 ^ 반환값·용도 ^ | ^ 명령어 형식 ^ 반환값·용도 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| MPAINO에서는 장착된 아날로그 입력 모듈과 딥스위치의 전압·전류 범위를 먼저 확인합니다. 샘플링 속도를 높이면 응답은 빨라지지만 노이즈와 측정 특성이 달라질 수 있습니다. | MPAINO에서는 장착된 아날로그 입력 모듈과 딥스위치의 전압·전류 범위를 먼저 확인합니다. 샘플링 속도를 높이면 응답은 빨라지지만 노이즈와 측정 특성이 달라질 수 있습니다. | ||
| 줄 268: | 줄 317: | ||
| ^ 명령어 형식 ^ 반환값 ^ 대상 ^ | ^ 명령어 형식 ^ 반환값 ^ 대상 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| NTC와 PT100은 센서 종류와 입력 회로가 다릅니다. 서로 바꾸어 사용하지 말고 선택 제품에 해당 입력 기능이 있는지 확인하십시오. | NTC와 PT100은 센서 종류와 입력 회로가 다릅니다. 서로 바꾸어 사용하지 말고 선택 제품에 해당 입력 기능이 있는지 확인하십시오. | ||
| - | ===== 아날로그 출력과 PWM ===== | + | ===== 아날로그 출력 ===== |
| ^ 명령어 형식 ^ 설명 ^ | ^ 명령어 형식 ^ 설명 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | |
| - | | '' | + | ===== 4~20mA 출력 ===== |
| - | | '' | + | |
| - | | '' | + | ^ 명령어 형식 ^ 설명 ^ |
| - | | '' | + | | [[commands: |
| + | | [[commands: | ||
| + | |||
| + | ===== PWM 출력 ===== | ||
| + | |||
| + | ^ 명령어 형식 ^ 설명 ^ | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| + | |||
| + | ===== 펄스 출력 ===== | ||
| + | |||
| + | ^ 명령어 형식 ^ 설명 ^ | ||
| + | | [[commands: | ||
| PWM, 고속펄스, | PWM, 고속펄스, | ||
| 줄 292: | 줄 354: | ||
| ^ 명령어 형식 ^ 설명 ^ | ^ 명령어 형식 ^ 설명 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| <code cpp> | <code cpp> | ||
| 줄 313: | 줄 375: | ||
| PID 출력은 계산값일 뿐 안전장치가 아닙니다. 센서 단선, 과온, 출력 고착과 비상정지는 별도의 안전회로로 처리하십시오. | PID 출력은 계산값일 뿐 안전장치가 아닙니다. 센서 단선, 과온, 출력 고착과 비상정지는 별도의 안전회로로 처리하십시오. | ||
| - | ===== 표시 장치와 RTC ===== | + | ===== TM1637 FND ===== |
| - | ^ 기능 | + | ^ 대상 |
| - | | TM1637 4자리 FND | '' | + | | TM1637 4자리 FND | [[commands: |
| - | | PCF8574 문자 LCD | '' | + | |
| - | | DS3231 RTC | '' | + | ===== 문자 LCD ===== |
| + | |||
| + | ^ 대상 ^ 주요 명령어 ^ 설명 ^ | ||
| + | | PCF8574 문자 LCD | [[commands: | ||
| + | |||
| + | ===== RTC ===== | ||
| + | |||
| + | ^ 대상 ^ 주요 명령어 ^ 설명 ^ | ||
| + | | DS3231 RTC | [[commands: | ||
| 표시 장치와 RTC는 각각의 '' | 표시 장치와 RTC는 각각의 '' | ||
| - | ===== Debug와 Watchdog | + | ===== 디버그 |
| ^ 명령어 형식 ^ 설명 ^ | ^ 명령어 형식 ^ 설명 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| - | | '' | + | |
| - | | '' | + | ===== Watchdog ===== |
| + | |||
| + | ^ 명령어 형식 ^ 설명 ^ | ||
| + | | [[commands: | ||
| + | | [[commands: | ||
| Watchdog를 활성화한 뒤 '' | Watchdog를 활성화한 뒤 '' | ||
| 줄 336: | 줄 410: | ||
| ^ 명령어 형식 ^ 설명 ^ | ^ 명령어 형식 ^ 설명 ^ | ||
| - | | '' | + | | [[commands: |
| - | | '' | + | | [[commands: |
| 현재 타이머 외부 클럭 방식의 전용 고속카운터 지원 제품은 MPINO-8A8R과 MPINO-16A8R8T입니다. 다른 제품은 제품별 인터럽트 입력을 확인해 '' | 현재 타이머 외부 클럭 방식의 전용 고속카운터 지원 제품은 MPINO-8A8R과 MPINO-16A8R8T입니다. 다른 제품은 제품별 인터럽트 입력을 확인해 '' | ||
| - | ===== 산업용 통신 | + | ===== Modbus RTU Slave ===== |
| - | ^ 프로토콜 | + | ^ 초기 설정 ^ '' |
| - | | Modbus RTU Slave | '' | + | | [[commands: |
| - | | Modbus RTU Master | '' | + | |
| - | | LS산전 Cnet Slave | '' | + | |
| - | | Mitsubishi MC Protocol Slave | '' | + | |
| <code cpp> | <code cpp> | ||
| 줄 360: | 줄 431: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | ===== Modbus RTU Master ===== | ||
| + | |||
| + | ^ 초기 설정 ^ 실행 명령어 ^ | ||
| + | | [[commands: | ||
| + | |||
| + | ===== LS산전 Cnet Slave ===== | ||
| + | |||
| + | ^ 초기 설정 ^ '' | ||
| + | | [[commands: | ||
| + | |||
| + | ===== Mitsubishi MC Protocol ===== | ||
| + | |||
| + | ^ 초기 설정 ^ '' | ||
| + | | [[commands: | ||
| 제품별 RS-232, RS-485와 UART의 '' | 제품별 RS-232, RS-485와 UART의 '' | ||
| 줄 371: | 줄 457: | ||
| const uint8_t outputChannel = 64; | const uint8_t outputChannel = 64; | ||
| - | void setup() { | + | void setup() {} |
| - | pinMode(inputChannel, | + | |
| - | pinMode(outputChannel, | + | |
| - | } | + | |
| void loop() { | void loop() { | ||
| 줄 404: | 줄 487: | ||
| * [[products: | * [[products: | ||
| - | * [[products:mpino|MPINO 제품 특징과 사용 흐름]] | + | * [[products:mpino_series|MPINO 제품 특징과 사용 흐름]] |
| * [[products: | * [[products: | ||
| * [[guide: | * [[guide: | ||
| - | * [[guide: | + | * [[guide: |
| - | * [[safety|안전 및 설치 주의사항]] | + | * [[:safety|안전 및 설치 주의사항]] |
commands/builtin.1788185842.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
