I/O
...
디바이스
다음은 Xpanel과 대상 장비간의 통신 설정 방법입니다.
1. Select [Tools도구] → - [I/O Devices], or click on the icon in the main toolbar to pop up the ‘I/O Device Configuration’ dialog box.
...
2. Select [New Device] in the ‘I/O Device Configuration’ dialog box. Enter the ‘I/O Device Name’, then select the ‘I/O Device Type’ (Ethernet or Serial).
...
Serial Communication Configuration
After selecting [Serial Device] on the ‘I/O Device Selection’ dialog box, the ‘Serial Communication Configuration’ dialog box will pop up as shown below.
...
Configure the proper communication parameters.
1. Communication Port
Device Type: Select the communication protocol.
Comm. Port: Select a serial communication port for the Xpanel. The port will vary depending on the Xpanel model디바이스]를 선택하거나 아이콘을 선택하여 ‘I/O 디바이스 설정’ 화면으로 진입합니다.
...
2. [새 디바이스]를 선택하여 ‘I/O 디바이스 종류 선택’ 창을 엽니다. ‘디바이스 이름’을 입력한 다음 ‘디바이스 종류’를 선택하여 주시기 바랍니다. (Ethernet 또는 Serial)
...
Serial 통신 설정
[Serial Device]를 선택하고 [확인] 버튼을 누르면 [Serial 통신 설정] 화면이 표시됩니다.
...
통신 파라미터를 설정하는 화면입니다.
1. 통신포트
디바이스 종류: 통신 프로토콜을 선택합니다.
통신포트: Xpanel 측에서 사용할 Serial 통신 포트를 선택합니다. 각 포트는 Xpanel 모델에 따라 다르므로 다음 표를 참고하여 주시기 바랍니다.
XT04 | XT07 | XT10 | XT12 | XT15 | |
---|---|---|---|---|---|
COM1 | RS-232C | RS-232C | RS-422/485 | RS-422/485 | RS-422/485 |
COM2 | RS-422/485 | RS-422/485 | RS-232C | RS-232C | RS-232C |
COM3 | NONE | NONE | RS-232C | RS-232C | RS-232C |
Baud Rate전송속도: 300-115200 bps is supported.
Parity: Select the same parity 통신 대상 장비와 동일한 Parity를 선택합니다. (None, Even, Odd) as the device.
Data Bits: Select the same 통신 대상 장비와 동일한 data bit setting 설정을 선택합니다. (5 Bits, 6 Bits, 7 Bits, 8 Bits) as the device.
Stop Bit(s): Select the same 통신 대상 장비와 동일한 stop bit setting 설정을 선택합니다. (1 Bit or 또는 2 Bit) as the device.
RTS/CTS: Select the proper signal control type 통신 제어에 사용할 옵션을 선택합니다. (OFF, ON, Control제어) for the device. Comm. Type: Select the same communication type
통신 방식: 통신 대상 장비와 동일한 통신 방식 옵션을 선택합니다. (RS-232C or 또는 RS-422/485) as the device.Retry No.: Set the number of retries for sending a frame when communication fails
재시도 횟수: 통신 실패 시 프레임을 다시 보낼 횟수를 지정합니다.
Time Out: The maximum time to wait with no response before assuming a communication failure.
Using Dial-Up Modem: This option can be selected when using a Dial-Up modem.
Using Transmission Delay: Set a delay time before sending data.
Initialize the Tx Frame When Timeout Occurs: Initialize the sending frame when a Time Out occurs.
2. Station
Move to the [Station] tab of the ‘Serial Communication Configuration’ dialog box, and configure the proper parameters.
...
Station Name: Enter the station name for the I/O device.
Station Type: Select the device model or CPU which will be connected to the Xpanel.
Station Number: Set the station number. It must match the device’s station number.
Options:
...
16Bit Data Swap: This option swaps bytes for all word- or double-word-sized data. The following diagram shows an example of byte-swapping:
...
Almost all data types will be influenced by this option except INT8 / UINT8 / BCD8 / UBCD8.
32Bit Data Swap: This option swaps words of all double-word-sized data. The following diagram shows an example of word swapping:
...
통신 실패로 판단하기까지 걸리는 최대 대기 시간을 설정합니다.
Dial Up 모뎀 사용: Dial Up 모뎀 사용 시 해당 옵션을 선택합니다.
송신 지연 사용: 데이터 송신 전 지연 시간을 설정합니다.
Timeout 발생시 송신 프레임 초기화: 해당 옵션을 선택하면 Timeout 발생 시 송신 프레임을 초기화시킵니다.
2. 스테이션
[스테이션] 탭으로 이동하여 파라미터를 설정합니다.
...
스테이션 이름: I/O 디바이스를 구분지을 스테이션 이름을 설정합니다.
스테이션 종류: Xpanel과 통신할 디바이스의 모델 또는 CPU를 선택합니다.
네트워크ID/통신보드 국번: 스테이션 번호를 설정합니다. 통신 대상의 장비와 동일한 값을 설정해야 합니다.
옵션:
16비트 데이터 Swap: 해당 옵션은 모든 WORD 또는 DWORD 데이터의 BYTE를 SWAP 합니다. 다음 표를 참고하여 주시기 바랍니다.
INT8 / UINT8 / BCD8 / UBCD8를 제외한 모든 데이터 타입이 영향을 받습니다.
32비트 데이터 Swap: 해당 옵션은 모든 DWORD 데이터의 BYTE를 SWAP 합니다. 다음 표를 참고하여 주시기 바랍니다.
INT32 / UINT32 / BCD32 / UBDC32 / FLOAT will be influenced by this option.
String Data Swap: Swaps the upper and lower bytes of string word data.
Using CheckSum: Use a CheckSum in the communication protocol.
Comm. Error Message Pop Up: Use a pop-up message when a communication error occurs타입의 데이터가 해당 옵션에 영향을 받습니다.
문자열 데이터 Swap: 문자열 WORD 데이터의 상/하위 BYTE를 SWAP 합니다.
CheckSum 사용: 통신 프로토콜에서 CheckSum 을 사용하도록 설정합니다.
통신에러 메시지 보임: 통신에러 발생 시 Xpanel에서 에러 메시지 팝업이 표시되도록 설정합니다.
...
Ethernet
...
통신 설정
After selecting [Ethernet Device] on the ‘I/O Device Selection’ dialog box, the ‘Ethernet Communication Configuration’ dialog box will pop up as shown below.
...
Configure the proper communication parameters]를 선택하고 [확인] 버튼을 누르면 [Ethernet 통신 설정] 화면이 표시됩니다.
...
Ethernet 통신에 사용될 통신 파라미터를 설정합니다.
1.
...
통신포트
디바이스 종류: 통신 프로토콜을 선택합니다.
IP Address: Type the IP address of the device.
Protocol: Select UDP or TCP.
Network ID: Enter the Network ID if required어드레스: 통신에 사용할 Xpanel의 IP 어드레스를 입력합니다. 특정 경우에만 활성화됩니다.
통신방식: UDP 또는 TCP를 선택합니다.
네트워크 ID: 필요한 경우 네트워크 ID를 입력합니다.
Node ID: Enter the Node ID, if required필요한 경우 Node ID를 입력합니다.
통신 Time Out: The maximum time to wait with no response before assuming a communication failure. This does not apply if you set the communication mode as TCP.
Retry Number: Set the number of retries for sending a frame when communication fails.
Initialize the Tx Frame When Timeout Occurs: Initialize the sending frame when a Time Out occurs.
2. Station
Move to the [Station] tab of the ‘Ethernet Communication Configuration’ dialog box, and configure the proper parameters.
...
Station Name: Enter the station name for the I/O device.
Station Type: Select the device model or CPU which will be connected to the Xpanel.
Network ID: Enter the Network ID, if required.
Node ID: Enter the Node ID, if required.
Unit ID: Enter the Unit ID, if required.
IP Address: Enter the IP address for connecting to the Xpanel.
Socket Port No.: Enter the socket port number of the device which will be connected to the Xpanel.
Options:
...
16Bit Data Swap: This option swaps bytes for all word- or double-word-sized data. The following diagram shows an example of byte-swapping:
...
Almost all data types will be influenced by this option except INT8 / UINT8 / BCD8 / UBCD8.
32Bit Data Swap: This option swaps words of all double-word-sized data. The following diagram shows an example of word swapping:
...
통신 실패로 간주하기 까지 걸리는 최대 대기 시간을 설정합니다. 해당 옵션은 TCP로 설정한 경우 반영되지 않습니다.
재시도 횟수: 통신 실패 시 프레임을 송신할 재시도 횟수를 지정합니다.
Timeout 발생시 송신 프레임 초기화: Timeout 발생시 송신 프레임을 초기화하는 옵션입니다.
2. 스테이션
[스테이션] 탭으로 이동하여 [스테이션 추가]버튼을 누르면 [스테이션 설정]화면이 표시됩니다.
...
스테이션 이름: I/O 디바이스를 구분지을 스테이션 이름을 지정합니다.
스테이션 종류: Xpanel과 통신할 대상 장비의 모델 또는 CPU를 선택합니다.
네트워크 ID: 필요한 경우 네트워크 ID를 입력합니다.
Node ID: 필요한 경우 Node ID를 입력합니다.
Unit ID: 필요한 경우 Unit ID를 입력합니다.
IP 어드레스: 통신 대상 장비의 IP 어드레스를 입력합니다.
소켓 포트 번호: 통신 대상 장비의 통신 소켓 포트 번호를 입력합니다.
옵션:
16비트 데이터 Swap: 해당 옵션은 모든 WORD 또는 DWORD 데이터의 BYTE를 SWAP 합니다. 다음 표를 참고하여 주시기 바랍니다.
INT8 / UINT8 / BCD8 / UBCD8를 제외한 모든 데이터 타입이 영향을 받습니다.
32비트 데이터 Swap: 해당 옵션은 모든 DWORD 데이터의 BYTE를 SWAP 합니다. 다음 표를 참고하여 주시기 바랍니다.
INT32 / UINT32 / BCD32 / UBDC32 / FLOAT will be influenced by this option.
String Data Swap: Swaps the upper and lower bytes of string word data.
Comm. Error Message Pop Up: Use a pop-up message when a communication error occurs.
Fixed XPANEL Socket Port: Use a fixed socket port for Xpanel.
Xpanel Socket Port Number: If the ‘Fixed XPANEL Socked Port’ is checked, select the socket port number for the Xpanel.
I/O Device Write Enable: Enables writing to the I/O device.
Data Request Size Limit: When selected, allows maximum data sizes that may be requested by the I/O device.
...
타입의 데이터가 해당 옵션에 영향을 받습니다.
문자열 데이터 Swap: 문자열 WORD 데이터의 상/하위 BYTE를 SWAP 합니다.
CheckSum 사용: 통신 프로토콜에서 CheckSum 을 사용하도록 설정합니다.
통신에러 메시지 보임: 통신에러 발생 시 Xpanel에서 에러 메시지 팝업이 표시되도록 설정합니다.
XPANEL 고정 소켓 포트 사용: Xpanel에서 사용할 고정 소켓 포트 번호를 지정합니다.
XPANEL 소켓 포트 번호: ‘XPANEL 고정 소켓 포트 사용' 옵션이 선택되면 활성화 되며, 통신에 사용할 Xpanel의 포트 번호를 설정해야 합니다.
입출력 디바이스 Write 허용: I/O 디바이스 영역에 쓰기를 가능하게 합니다.
데이터 요청 크기 제한 설정: 해당 옵션이 설정되면 I/O 디바이스가 요청한 데이터의 사이즈 최대치를 설정할 수 있습니다.