Keyence KV - Instance & Item Setup
The Keyence KV SIA connector is compatible with the KV PLC series from Keyence via Ethernet.
Parameters
When using the Keyence KV mode SIA connector both the instance and the item have specific parameters. These parameters are required as they are needed to establish connection, and to identify which memory area to read from.
Instance
The instance needs the following parameters to establish a connection to the PLC:
Parameter | Description | Value |
---|---|---|
Address (instance default) | The IP address of the PLC | Valid IP v4 address |
Read / Write timeout | Connection timeout in milliseconds | Min. 10 |
Port | Port number to use for communication | 8501 (default) |
Item
The item parameters that are needed to read the PLC memory:
Parameter | Description |
---|---|
Memory address | Memory address of the tag in the MELSEC PLC. Check memory areas for more information of the various addressable areas |
Type | Data type used for determining the length of the tag in bytes and formatting it properly after a reading. Check data types for more information on each data type. |
Data Types
The following table shows how to address the various types of data. In the examples it uses a compound syntax formed by a letter, or a group of letters representing the memory area followed by a number representing the targeted memory location. The memory area from the addressing syntax examples can be replaced with any of the values given in memory areas table.
Data type | Addressing syntax | Return value | Size |
---|---|---|---|
BIT | D10.3 |
0 or 1 |
1 bit |
Short | D201 | -32768 to 32767 | 1 word |
Long | D278 | -2147483648 to 2147483647 | 2 words |
Word | D201 | 0 to 65535 | 1 word |
Hexadecimal 16bit |
W322 | 0 to FFFF | 2 words |
Hexadecimal 32bit |
W120 | 0 to FFFFFFFF | 1 word |
Float | W322 | 32 bit floating point in IEEE 754 format |
2 words |
Double | D322 | 64 bit floating point in IEEE 754 format | 4 words |
ASCII |
D200 |
All ASCII characters |
A word for each second character (Ex: "abc" = 2 words) |
Short - batch |
D201-4 |
[1, 2, 45, 74] |
Batch size in words |
Long - batch |
W322-3 |
[1854899, 74, 2121] |
Double the batch size in words |
Word - batch |
W120-6 |
[31, 26, 45, 74, 234, 33] |
Batch size in words |
Hexadecimal 16bit - batch |
D322-5 |
[12, 5, 95, 64, 654] |
Batch size in words |
Hexadecimal 32bit - batch |
W322-2 |
[45, 74] |
Double the batch size in words |
Float - batch |
D278-1 |
[74.73] |
Double the batch size in words |
Double - batch |
D322-3 |
[1.2, 45.0, 74.6] |
Four times the batch size in words |
Memory Areas
The most used memory areas are listed in the table below. The "Symbol" column represents the code letters needed to access a memory location. For the full description of each memory area available of different KV models refer to the manufacturer's documentation. The "N/A" cells in the table denote unavailable areas for the model in the columns.
Area |
Symbols and range |
|||||
---|---|---|---|---|---|---|
700 |
1000 |
3000 5000 5500 |
7000 |
Nano | ||
Input Relay |
00000 - 59915 |
R00000 - R99915 |
||||
Output Relay | ||||||
Internal Auxiliary Relay | ||||||
Link Relay |
N/A |
B0000 - B3FFF |
B0000 - B1FFF |
|||
Internal Auxiliary Relay |
N/A |
MR00000 - MR99915 |
MR00000 - MR59915 |
|||
Latch Relay |
N/A |
LR00000 - LR99915 |
LR00000 - LR19915 |
|||
Control Relay |
CR0000 - CR3915 |
CR0000 - CR7915 |
CR0000 - CR8915 |
|||
Work Relay |
N/A |
VB0000 - VBF9FF |
VB0000 - VB1FFF |
|||
Timer (Contact) |
T000 - T511 |
T0000 - T3999 |
T000 - T511 |
|||
Counter (Contact) |
C000 - C511 |
C0000 - C3999 |
C000 - C255 |
|||
High-speed Counter Comparator (Contact) |
CTC0 - CTC3 |
N/A |
CTC0 - CTC7 |
|||
Timer (Setting Value) |
TS000 - TS511 |
TS0000 - TS3999 |
TS000 - TS511 |
|||
Counter (Setting Value) |
CS000 - CS511 |
CS0000 - CS3999 |
CS000 - CS255 |
|||
Timer (Current Value) |
TC000 - TC511 |
TC0000 - TC3999 |
TC000 - TC511 |
|||
Counter (Current Value) |
CC000 - CC511 |
CC0000 - CC3999 |
CC000 - CC255 |
|||
Data Memory |
DM00000 - DM39999 |
DM00000 - DM65534 |
DM00000 - DM32767 |
|||
Extension Data Memory EM |
N/A |
EM00000 - EM65534 |
N/A |
|||
Extension Data Memory FM |
N/A |
FM00000 - FM32766 |
N/A |
|||
File Register |
Current Bank |
N/A |
FM00000 - FM32767 |
N/A |
||
Serial Number System |
ZF000000 - ZF131071 |
|||||
Temporary Data Memory |
TM000 - TM511 |
TM000 - TM511 |
||||
Control Memory |
CM0000 - CM3999 |
CM00000 - CM11998 |
CM00000 - CM05999 |
CM0000 - CM8999 |
||
Link Register |
N/A |
W0000 - W3FFF |
||||
Work Memory |
N/A |
VM00000 - VM59999 |
VM00000 - VM50999 |
VM0000 - VM9499 |
||
Index Register |
N/A |
Z01 - Z12 |
||||
Digital Trimmer |
TRM0 - TRM7 |
N/A |
||||
High-speed Counter (Current Value) |
CTH0 - CTH1 |
N/A |
CTH0 - CTH3 |
|||
High-speed Counter Comparator (Setting Value) |
CTC0 - CTC3 |
N/A |
CTC0 - CTC7 |