Communication Setup: Xpanel
Create a new Device
| To configure the communication device of YOKOGAWA PLC, select [Tools] - [I/O Devices] or click on the I/O Device Name: Give a device name. This name will be used in the Tag configuration window of the database accompanied by the ‘Station Name’. |
Select a device type
| After selecting the [Ok] button on the previous step, the ‘Serial Communication Configuration’ dialog box will popup. In this window, select ‘YOKOGAWA Computer Link Protocol’ as the ‘Device Type’ and configure the proper serial communication parameters. Comm.Port: COM1 Select a communication port to communicate. If you use RS-422/485, you must select “COM1”. When the RS-232C communication type of COM1 port is used, the 9P DSUB connector is used. When the RS-422/485 communication type of COM1 port is used, the 5P plug connector is used. If you use the COM1 port, you cannot use RS-232 and RS-422/485 at the same time. Only one type can be used per COM port. Baud rate: 9,600 Select the communication speed for the equipment. The configuration of the communication speed of Xpanel must be the same as the configuration of the equipment. If the speed of the configurations of the two sides is different, they will not communicate with each other. Parity bit: None Data bits: 8 bits Stop bits: 1 bit RTS/CTS: OFF RTS/CTS control is used for half-duplex communication. This example does not use RTS-CTS control. Retry No.: 3 If communication failed with the devices, it will try to reconnect 3 times. Time Out: 30 The time out count will be 30 seconds. Using Dial Up Modem: Not Select This item can be chosen only when you use the Dial Up modem. |
Create a station | Move to the [Station] tab of the ‘Serial Communication Configuration’ dialog box and click the [Add Station] button. The ‘Station’ dialog box will pop up. Configure the contents and press [OK]. Station Name: ST When the field equipment number exceeds two, the station name is used for the division of field equipment at the internal Xpanel. It is expressed as “Device.Station”. This example shows you as “DEV.ST”. Station Type: YOKOGAWA (no other type can be selected). Network ID: This field has no effect. Station No: 1 When the field equipment number exceeds two, it assigns a different Station No. to divide. The station number must be the same as configured in the field equipment. If the station numbers are different, the devices will not communicate with each other. 16Bit Data Swap: This field has no effect. 32Bit Data Swap: This field has no effect. Using Checksum: This field has no effect. Comm. Error Message Pop Up: When this item is checked, Xpanel displays a communication error message box for every Rx and Tx error. Otherwise (unchecked), Xpanel does not display a message for communication errors. This message box will close automatically after a few seconds. |
Module Configuration
Transmission Speed Switch: SW1 | Remove the side tab of the Personal Computer Link Module and then configure Baud Rate with SW1. The baud rate must be the same as the speed configured in the ‘Serial Communication Configuration’ dialog box. The baud rate is set as 9600 bps by selecting Mode 5 in the configuration for this example. |
Data Format Switch: SW2 | You can configure the communication in this switch. This configuration must be the same as configured in the 'Serial Communication Configuration' dialog box. Data Length: 8 bits Parity: None Stop Bit: 1bit CheckSum: Yes The checksum will be used to protect communication data safely from the transmission error. Termination Char: Yes Attach <CR> at the end of the frame. Protection: None |
Wiring Diagram
You can wire the communication cable as shown below.
RS-232C: Null Modem |
Xpanel connects three lines to the PLC. If these lines are not connected, the PLC will receive data, but cannot transmit to other field equipment, therefore the communication fails |
RS-422 |
The wiring in the terminal resistance must be 330 Ω. To improve the stability of communication, devices should connect through SG, using STP cables. Shielded cables must be earthed. |
RS-485 | The wiring in the terminal resistance must be 120 Ω. When using RS-485, connect SDA and SDB, but disconnect RDA and RDB. To improve the stability of communication, devices should connect through SG, using STP cables. Shielded cables must be earthed. |
Device Memory Range
Refer to the table below for the device memory ranges.
Device | Sym | F3SP20 / F3SA20 | F3SP30 / F3SA30 | F3SP21 | F3SP25 | F3SP35 |
Input | X | X00201–X61364 | X00201–X61364 | X00201–X71364 | X00201–X71364 | X00201–X71364 |
Output | Y | Y00201–Y61364 | Y00201–Y61364 | Y00201–Y71364 | Y00201–Y71364 | Y00201–Y71364 |
Internal | I | I00001–I04096 | I00001–I08192 | I00001–I04096 | I00001–I08192 | I00001–I16384 |
Common | E | E00001–E02048 | E00001–E02048 | E00001–E02048 | E00001–E04096 | E00001–E04096 |
Link | L | L00001–L01024 | L00001–L01024 | L00001–L11024 | L00001–L71024 | L00001–L71024 |
Special | M | M00001–M00512 | M00001–M00512 | M00001–M02048 | M00001–M09984 | M00001–M09984 |
Data | D | D00001–D05120 | D00001–D08192 | D00001–D05120 | D00001–D08192 | D00001–D08192 |
File | B | - | - | - | B00001–B32768 | B00001–B32768 |
Link | W | W00001–W01024 | W00001–W01024 | W00001–W11024 | W00001–W71024 | W00001–W71024 |
Special | Z | Z00001–Z00256 | Z00001–Z00256 | Z00001–Z00512 | Z00001–Z00512 | Z00001–Z00512 |
Index | V | V00001–V00016 | V00001–V00016 | V00001–V00032 | V00001–V00032 | V00001–V00032 |
Common | R | R00001–R01024 | R00001–R01024 | R00001–R01024 | R00001–R04096 | R00001–R04096 |
Timer | T | TU0001–TU0256 | TU0001–TU1024 | TU0001–TU0256 | TU0001–TU1024 | TU0001–TU2048 |
TP0001–TP0256 | TP0001–TP1024 | TP0001–TP0256 | TP0001–TP1024 | TP0001–TP2048 | ||
TI0001–TI0256 | TI0001–TI1024 | TI0001–TI0256 | TI0001–TI1024 | TI0001–TI2048 | ||
TS0001–TS0256 | TS0001–TS1024 | TS0001–TS0256 | TS0001–TS1024 | TS0001–TS2048 | ||
Counter | C | CU0001–CU0256 | CU0001–CU1024 | CU0001–CU0256 | CU0001–CU1024 | CU0001–CU1024 |
CP0001–CP0256 | CP0001–CP1024 | CP0001–CP0256 | CP0001–CP1024 | CP0001–CP1024 | ||
CI0001–CI0256 | CI0001–CI1024 | CI0001–CI0256 | CI0001–CI1024 | CI0001–CI1024 | ||
CS0001–CS0256 | CS0001–CS1024 | CS0001–CS0256 | CS0001–CS1024 | CS0001–CS1024 |
Error Code
When Xpanel communicates with the PLC, it can receive a NAK error code.
Reference the error code contents in the following table.
Error Code (EC1) | Semantics | Probable Causes |
01 | CPU Number Error | CPU number is not within the allowable range (1-4). |
02 | Command Error | No command. It cannot execute the command. |
03 | Device Specification Error | No device. Inadequate use of WORD in the bit device. |
04 | Value outside the setting range | When you write a Bit value, use only 0 or 1. When you write Word, it must be between 0000-FFFF. |
05 | Data count out of range | The number of Bit/Word exceeded the permitted range. The number of data or device parameters is not the same. |
06 | Monitor Error | Monitor operates without BRS/WRS. |
07 | CPU Type Error | It is not a Basic CPU. |
08 | Parameter Error | If the parameter is not specified, it will be invalid. |
41 | Communication Error | An error occurred during communication. |
42 | Checksum Error | Checksum dislike each other. |
43 | Internal Buffer Overflow | Receiving data is over the allowable number. |
44 | Timeout while receiving characters | ETX data receiving fail. The timeout is 5 seconds. |