Wiki source code of KEYENCE

Last modified by Wecon on 2025/09/03 21:04

Show last authors
1 = KV-5000 Ethernet =
2
3 Supported Series: KEYENCE KV-5000, KV-5500 models
4
5 **V-Box Settings**
6
7 |=**Item**|=**Settings**|=**Note**
8 |Protocol|KEYENCE KV-5000(Ethernet)|
9 |Connection|Ethernet|
10 |Port No.|8501|Need to be the same as PLC settings
11 |PLC station No.|0|
12
13 (% style="text-align:center" %)
14 [[image:基恩士1.1.png]]
15
16 **Address List**
17
18 |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
19 |(% colspan="1" rowspan="4" %)Bit|R|RDDDDD.dd|0~~59915.15|Relay
20 |CR|CRDDDDD.dd|0~~3915.15|Control Relay
21 |MR|MRDDDDD.dd|0~~99915.15|Internal Auxiliary Relay
22 |LR|LRDDDDD.dd|0~~99915.15|Latch Relay
23 |(% colspan="1" rowspan="15" %)Word|DM|DMDDDDD|0~~65534|Data Memory
24 |CM|CMDDDDD|0~~11998|Control Memory
25 |TM|TMDDD|0~~511|Temporary Data Memory
26 |EM|EMDDDDD|0~~65534|Extension Data Memory
27 |FM|FMDDDDD|0~~32766|Extension Data Memory
28 |Z|ZDD|1~~12|Index Register
29 |VB|VBHHH|0~~F9F|Work Relay
30 |ZF|ZFDDDDD|0~~524287|File Register Serial Number System
31 |VM|VMDDDDD|0~~65535|Work Memory
32 |W|WHHHH|0~~7FFF|Link Register
33 |B|BHHH|0~~7FF|Link Relay
34 |R|RDDD|0~~999|Input Relay/Output Relay/Internal Auxiliary Relay
35 |CR|CRDDD|0~~999|Control Relay
36 |LR|LRDDD|0~~999|Latch Relay
37 |MR|MRDDDD|0~~3999|Internal Auxiliary Relay
38 |(% colspan="1" rowspan="9" %)Double Word|T|TDDDD|0~~9999|Timer
39 |C|CDDDD|0~~9999|Counter
40 |CTH|CTHD|0~~3|High-speed Counter Comparator(Current Value)
41 |CTC|CTCD|0~~7|High-speed Counter Comparator(Setting Value)
42 |TRM|TRMD|0~~7|Digital Trimmer
43 |C_Preset|C_PresetDDDD|0~~9999|Counter(Setting Value)
44 |C_Curr|C_CurrDDDD|0~~9999|Counter(Current Value)
45 |T_Preset|T_PresetDDDD|0~~9999|Timer(Setting Value)
46 |T_Curr|T_CurrDDDD|0~~9999|Timer(Current Value)
47
48 **PLC Settings**
49
50 Create the project according to the PLC specific model.
51
52 (% style="text-align:center" %)
53 [[image:KVsetup01.png]]
54
55 Enter the EtherNet/IP setting configuration window to check the PLC IP settings
56
57 (% style="text-align:center" %)
58 [[image:KVstep02.png]]
59
60 Double click the PLC unit icon on the main interface, then the settings would pop up on the right side.
61
62 (% style="text-align:center" %)
63 [[image:KVSetup03.png]]
64
65 So right now the PLC IP is 192.168.40.120
66
67 {{info}}
68 ✎Note: PLC uses port 8500 to communicate with the PC, and uses port 8501 to communicate with the HMI.
69 {{/info}}
70
71 (% style="text-align:center" %)
72 [[image:KVSetup04.png]]
73
74 Programming the PLC project
75
76 (% style="text-align:center" %)
77 [[image:PrgramKVStudio.png]]
78
79 Connect with PLC through known IP address.
80
81 (% style="text-align:center" %)
82 [[image:KVSetup05.png]]
83
84 Download the program into PLC
85
86 (% style="text-align:center" %)
87 [[image:KVSetup06.png]]
88
89 If shows like below, which means download is success
90
91 (% style="text-align:center" %)
92 [[image:KVSetup07.png]]
93
94 **Cable Wiring**
95
96 (% style="text-align:center" %)
97 [[image:12.PLC Protocol_html_2297240b57346b2a (1).png]]