Skip to main content
Skip table of contents

CDRFLEx.get_modbus_input

기능

로봇 제어기에서 Modbus I/O 신호 접점의 신호를 확인하기 위한 함수이다.

인수

인수명자료형기본값설명

strSymbol

string

-

modbus 이름

리턴

설명

unsigned short

  • Modbus Digital I/O 인 경우: 0 or 1
  • Modbus Analog 모듈인 경우: 데이터

예제

PY
//Modbus digital I/O가 연결되어 있고, 신호가 “di1”, “di2” 로 등록되어 있는 경우  
unsigned short siganl1 = drfl.get_modbus_input("di1");
unsigned short signal2 = drfl.get_modbus_input("di2");
if ( signal1 == 1 && signal2 == 1) {

    // do something…
}
JavaScript errors detected

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

If this problem persists, please contact our support.