This driver provides a software interface and communication protocol between Xpanel and Keyence KV series PLCs. The driver supports the following families of Keyence PLCs:
KV-10, KV-16, KV-24, KV-40
KV-300 with KV-L2 in KV mode
Communication Setup: Xpanel
Create a new device | To create a new device, select ‘Tools’->’I/O Devices’ or click the I/O Device Name: Give a device name. This name will be used in the TAG configuration window of database accompanied by the ‘Station Name’. |
Select a network type | After selecting the ‘OK’ button in the previous step, the ‘Serial Communication Configuration’ dialog box will appear as shown in following picture: In this window, set the ‘Device Type’ to ‘KEYENCE PLC (KV mode)’ and configure the remaining serial communication parameters. The parity is fixed as 'Even' for the KV-10, KV-16, and KV-40 PLC modules. |
Create a station | Move to the ‘Station’ tab of the ‘Serial Communication Configuration’ dialog box. In this dialog box, connected PLC stations can be configured and registered to the Xpanel. Each field can be configured with the following rules. Station Name: Give a name to the PLC. This name will be used in the tag database, accompanied by the ‘Device Name’. Station Type: Choose the station type based on the model of PLC and desired connection method. Options include “KV-300 Multi-Drop (1:n)“, “KV-300 P2P (1:1)“, “KV-5/3000 Multi-Drop (1:n)“, and “KV-5/3000 Peer to Peer (1:n)“. See the Keyence PLC documentation for more information. Network ID: N/A Station No: Specify a decimal number between 0 and 9. 16-Bit Data Swap: N/A 32-Bit Data Swap: N/A Using Checksum: N/A 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. |
Address Notation
Within Xpanel, Keyence device tags should be addressed using the following format:
Tag Type | Format | Example |
Analog | [Symbol][Address] | DM0012 |
Digital | [Symbol][Address] | R0215 |
TODO: Complete section