Skip to main content
Skip table of contents

get_modbus_input_multi (iobus)

기능

Modbus Slave 장치에서 신호를 읽어오기 위한 명령어입니다.

인수

인수명자료형기본값설명

iobus

string

-

modbus 다중신호 이름(TP에서 설정)

리턴

설명

res

성공여부 : 성공 0, 실패 음수 값

list

해당 신호의 cnt에 해당하는 입력 값 list

예외

예외설명

DR_Error (DR_ERROR_TYPE)

인수들의 데이터형 오류 시

DR_Error (DR_ERROR_VALUE)

인수의 값이 유효하지 않을 시

DR_Error (DR_ERROR_RUNTIME)

C Extension 모듈 에러 발생 시

DR_Error (DR_ERROR_STOP)

프로그램 강제 종료 시

예제

PY
#다중신호 신호이름: “multi”(cnt=2)가 등록되어 있는 경우
#“multi[0]”, “multi[1]” 사용가능
get_modbus_input_multi("multi1")   # return = [10, 101]
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.