PLC PLC RS 232485 RS 232485 R RT

  • Slides: 13
Download presentation

PLC 설정 -. PLC와 RS 232/485 컨버터 연결 RS 232/485 컨버터 R+ RT+ T-

PLC 설정 -. PLC와 RS 232/485 컨버터 연결 RS 232/485 컨버터 R+ RT+ T- PLC SDA(+ ) SDB(-) RDA(+ ) RDB(-) RS 232/485 컨버터 -. PLC 통신카드스위치 설정 01 02 0 0 03 04 0 0 05 0 06 0 07 0 08 0 09 0 10 0 11 0 12 0 X 10 0 X 1 0 MODE 5

uno PC : PLC통신프로그램 - 이벤트 폼(mainplc) Private Sub Msg. Sock_Connect() : POP서버와 winsock통신

uno PC : PLC통신프로그램 - 이벤트 폼(mainplc) Private Sub Msg. Sock_Connect() : POP서버와 winsock통신 연결 설정 Private Sub PLC_COMConnect() : plc com통신 연결 Private Sub chk. Open_Click() : 연결체크박스 클릭 시 Private Sub Form_Load() : 폼 open 시 Private Sub Form_Unload(Cancel As Integer) : 폼 종료 시 Private Sub PLCCom_On. Comm() : plc com 연결 설정 Public Sub Read. Check() : plc에서 read한 데이터 값 체크 및 pop서버로 전송 Public Sub Set. Log(By. Val arg. LOG As String) : log파일로 저장 Public Function Set. Fill. String(By. Val n. DATA As String, By. Val LR As String, By. Val Fill. Str As String, By. Val d. Len As Integer) As String : plc명령어 자리수만큼 0값으로 채움 Private Function Dec 2 Text$(A As String) : 십진수값을 hea값으로 변경 Private Sub tbx. TM_Key. Down(Key. Code As Integer, Shift As Integer) : plc에 명령어 전송 timer값 변경 할 때 Private Sub tmr. Read_Timer() : plc값 read timer Private Sub tmr. Send_Timer() : plc 명령어 전송 timer Private Sub Winsock 1_Connect() : POP서버 winsock통신 연결되었을 때 모듈(modul 1) Sub Main() : Application 처을 실행 시 Public Sub Read. INI() : ini파일 read

POP서버 : Winsock통신프로그램 - 이벤트 폼(tcpserver) Private Sub Form_Load() : 폼 open Private Sub

POP서버 : Winsock통신프로그램 - 이벤트 폼(tcpserver) Private Sub Form_Load() : 폼 open Private Sub Service. Socket_Close(Index As Integer) : winsock close 될 때 Private Sub Service. Socket_Connection. Request(Index As Integer, By. Val request. ID As Long) : winsock 연결을 요청 받을 때 Private Sub Service. Socket_Data. Arrival(Index As Integer, By. Val bytes. Total As Long) : winsock으로 데이터가 들오돌 때 Private Sub Timer 1_Timer() : timer 호출 Public Sub Set. Log(By. Val arg. LOG As String) : Log파일로 저장 모듈(module 1) Sub Main() : Application 처을 실행 시