Wiki source code of Omron

Version 13.1 by Theodore Xu on 2023/09/12 11:45

Hide last authors
Theodore Xu 5.1 1 = **Omron** =
Leo Wei 2.1 2
Theodore Xu 5.1 3 == **CP1 Series** ==
Leo Wei 2.1 4
5 [[Download>>url:https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Communication%20with%20ORMON%20CP1%20Series.zip]]
6
Theodore Xu 5.1 7 == **CP2M Series** ==
Leo Wei 2.1 8
9 [[Download>>url:https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Communication%20with%20ORMON%20CJ2M.zip]]
10
Theodore Xu 10.1 11 == **CJ2M Ethemet** ==
Leo Wei 2.1 12
Theodore Xu 5.1 13 Supported device:CJ series, CJ1W-EIP21,CJ2M-EIP21
14
15 **V-Box Settings**
16
17 |=**Items**|=**Settings**
18 |Protocol|OMRON CJ TCP FINS Ethemet
19 |Connection|Ethernet
20 |Port No.|9600
21 |Device No.|0
22 |V-Box No.|0
23
24 (% style="text-align:center" %)
25 [[image:欧姆龙创建.png]]
26
Theodore Xu 9.1 27 **Address List **
Theodore Xu 5.1 28
Theodore Xu 6.1 29 |=**Type**|=**Device registers**|=**HMI registers**|=**Format**|=**Range**|=**Note**
30 |(% colspan="1" rowspan="23" %)Bit
31 |CIO|CIO|CIO d|0~~99999|
32 |W|W|W d|0~~99999|
33 |D|D|D d|0~~99999|
34 |H|H|H d|0~~99999|
35 |A|A|A d|0~~99999|
36 |T|T|T h|0~~99999|
37 |CF|CF|CF d|0~~99999|
38 |FF|FF|FF d|0~~99999|
39 |C|C|C d|0~~99999|
40 |EM0|EM0|EM0 d|0~~99999|
41 |EM1|EM1|EM1 d|0~~99999|
42 |EM2|EM2|EM2 d|0~~99999|
43 |EM3|EM3|EM3 d|0~~99999|
44 |EM4|EM4|EM4 d|0~~99999|
45 |EM5|EM5|EM5 h|0~~99999|
46 |EM6|EM6|EM6 d|0~~99999|
47 |EM7|EM7|EM7 d|0~~99999|
48 |EM8|EM8|EM8 d|0~~99999|
49 |EM9|EM9|EM9 d|0~~99999|
50 |EMA|EMA|EMA d|0~~99999|
51 |EMB|EMB|EMB d|0~~99999|
52 |EMC|EMC|EMC d|0~~99999|
53 |Lamp|Lamp|Lamp d|0~~0|
54 |(% colspan="1" rowspan="24" %)Word
55 |CIO|CIO|CIO d|0~~99999|
56 |W|W|W d|0~~99999|
57 |D|D|D d|0~~99999|
58 |H|H|H d|0~~99999|
59 |A|A|A d|0~~99999|
60 |T|T|T h|0~~99999|
61 |CF|CF|CF d|0~~99999|
62 |FF|FF|FF d|0~~99999|
63 |C|C|C d|0~~99999|
64 |EM0|EM0|EM0 d|0~~99999|
65 |EM1|EM1|EM1 d|0~~99999|
66 |EM2|EM2|EM2 d|0~~99999|
67 |EM3|EM3|EM3 d|0~~99999|
68 |EM4|EM4|EM4 d|0~~99999|
69 |EM5|EM5|EM5 h|0~~99999|
70 |EM6|EM6|EM6 d|0~~99999|
71 |EM7|EM7|EM7 d|0~~99999|
72 |EM8|EM8|EM8 d|0~~99999|
73 |EM9|EM9|EM9 d|0~~99999|
74 |EMA|EMA|EMA d|0~~99999|
75 |EMB|EMB|EMB d|0~~99999|
76 |EMC|EMC|EMC d|0~~99999|
77 |IR|IR|IR d|0~~99999|
78 |DR|DR|DR d|0~~99999|
Theodore Xu 5.1 79
80 (% class="wikigeneratedid" %)
Theodore Xu 9.1 81 **PLC setting**
Theodore Xu 5.1 82
83 (% class="wikigeneratedid" %)
84 ①[PLC]→[Change Communication Settings]→[Network Type] Ethernet→[setting…]→[Derive]→[IPaddress]set the IP address as PLC’s ,192.168.40.99→[Port Number]9600→[OK]→[OK]
85 Note:The IP address of the PLC is displayed on the LED when the PLC is powered up
86
Theodore Xu 8.1 87 (% style="text-align:center" %)
88 [[image:1.3.1.png]]
Theodore Xu 7.1 89
Theodore Xu 8.1 90 ②[PLC]→[Work Online]→USB connection between PC and PLC→The connection prompt appears→[Yes]
Theodore Xu 7.1 91
Theodore Xu 8.1 92 (% style="text-align:center" %)
93 [[image:1.3.2.png]]
94
95 ③PLC default parameters: [IO Table and Unit Settings] → [Built-in Port/Inner Board] [1500] CJ2M-EIP21→[TCP/IP] → [Transfer [Unit to PC]] → Transfer successfully, click [Close]
96
97 [IP Address] Use the following address → [IP Address] 192.168.40.99, [Subnet Mask] 255.255.255.0.
98 Note: Please configure the IP parameters of PLC according to the field needs
99
100 (% style="text-align:center" %)
101 [[image:1694161978199-503.4.png]]
102
103 ④Two rotary coding switches should be set depanding on the program paremeter:
104 a) rotary coding switch for unit No. :For example, [Built-in Port/Inner Board] [1500] CJ2M-EIP21(Built In EtherNet/IP Port for CJ2M)(Unit: 0),the rotary coding switch should be dialed to 0
105
106 (% style="text-align:center" %)
107 [[image:WeCom Screenshot_20230828090604.png]]
108
109 **b) rotary coding switch for node No. :The high byte 4 of the IP address should be the same as theone configured by the software. such as [IP address] 192.168.40.99. The IP address high byte 4 is 99,rotary coding switch is to use hexadecimal 63 corresponds to decimal 99, node number dialling code 161 corresponds to: 6, 160 corresponds to: 3.Address List**
110
111 (% style="text-align:center" %)
112 [[image:WeCom.png]]
113
Theodore Xu 9.1 114 **Cable Wiring**
Theodore Xu 8.1 115
Theodore Xu 7.1 116 Pin Definition Diagram
117
Theodore Xu 8.1 118 (% style="text-align:center" %)
119 [[image:12.PLC Protocol_html_2297240b57346b2a.png]]
120
Theodore Xu 11.1 121 == **CJ2M Serial** ==
122
Theodore Xu 12.1 123 **V-BOX setting**
124
125 |**Items**|(((
126 **Settings**
127 )))
128 |Protocol|OMRON CV/CJ1M/CS1H
129 |Connection|RS232/RS485
130 |Baud rate|9600
131 |Data bit|7
132 |Parity|EVEN
133 |2|2
134 |PLC station No.|0
135
136 **Device Address:**
137
Theodore Xu 13.1 138 |=Type|=**Device type**|=**Format**|=**Range**|=**Note**
139 |(% colspan="1" rowspan="23" %)Bit|CIO|DDDDDdd|0 ~~65535.15|I/O and Internal Relay
Theodore Xu 12.1 140 |W|DDDDDdd|0 ~~65535.15|Hold Relay
141 |D|DDDDDdd|0 ~~65535.15|Link Relay
142 |H|DDDDDdd|0 ~~65535.15|
143 |A|DDDDDdd|0 ~~65535.15|
144 |TF|DDDDD|0 ~~ 99999|
145 |CF|DDDDD|0 ~~ 99999|Auxiliary Relay
146 |T|DDDDDdd|0 ~~65535.15|
147 |C|DDDDDdd|0 ~~65535.15|
148 |EM0|DDDDDdd|0 ~~ 99999.15|
149 |EM1|DDDDDdd|0 ~~ 99999.15|
150 |EM2|DDDDDdd|0 ~~ 99999.15|
151 |EM3|DDDDDdd|0 ~~ 99999.15|
152 |EM4|DDDDDdd|0 ~~ 99999.15|
153 |EM5|DDDDDdd|0 ~~ 99999.15|
154 |EM6|DDDDDdd|0 ~~ 99999.15|
155 |EM7|DDDDDdd|0 ~~ 99999.15|
156 |EM8|DDDDDdd|0 ~~ 99999.15|
157 |EM9|DDDDDdd|0 ~~ 99999.15|
158 |EMA|DDDDDdd|0 ~~ 99999.15|
159 |EMB|DDDDDdd|0 ~~ 99999.15|
160 |EMC|DDDDDdd|0 ~~ 99999.15|
161 |Lamp|D|0~~0|
162 |(% colspan="1" rowspan="22" %)Word|W|DDDDD|0 ~~ 99999|
163 |D|DDDDD|0 ~~ 99999|
164 |H|DDDDD|0 ~~ 99999|
165 |A|DDDDD|0 ~~ 99999|
166 |T|DDDDD|0 ~~ 99999|
167 |C|DDDDD|0 ~~ 99999|
168 |CIO|DDDDD|0 ~~ 99999|
169 |EM0|DDDDD|0 ~~ 99999|
170 |EM1|DDDDD|0 ~~ 99999|
171 |EM2|DDDDD|0 ~~ 99999|
172 |EM3|DDDDD|0 ~~ 99999|
173 |EM4|DDDDD|0 ~~ 99999|
174 |EM5|DDDDD|0 ~~ 99999|
175 |EM6|DDDDD|0 ~~ 99999|
176 |EM7|DDDDD|0 ~~ 99999|
177 |EM8|DDDDD|0 ~~ 99999|
178 |EM9|DDDDD|0 ~~ 99999|
179 |EMA|DDDDD|0 ~~ 99999|
180 |EMB|DDDDD|0 ~~ 99999|
181 |EMC|DDDDD|0 ~~ 99999|
182 |IR|DDDDD|0 ~~ 99999|
183 |DR|DDDDD|0 ~~ 99999|
184
185 (% style="text-align:center" %)
186 [[image:CJ2M串口协议配置.png]]
187
188 **PLC Setting:**
189
190 Open cx-programmer, create a new PLC project or open the project that has been created.
191 Create new project: [File]→[New]→[Device Type]CJ2M→[settings]→[General]→[CPU Type]CPU31→[OK]→[OK].
192
193 (% style="text-align:center" %)
194 [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_1edc9bf9e8c98170.png]]
195
196 PLC Default Parameters:[Settings]→[Serial Port]→[Communication Settings]→[Standard]9600,1,7,2,E means:[Baud rate] 9600, [Data bits]7, [Stop bits] 2,[Parity] EVEN→[Unit Number]0 →[Mode]Host Link.
197
198 {{info}}
199 ✎Note:The serial port parameters should be set depending on field requirements
200 {{/info}}
201
202 (% style="text-align:center" %)
203 [[image:xwiki_PIStudio_12.PLC2.png]]
204
205
206
Theodore Xu 5.1 207 == **EC55 Series ** ==
208
Leo Wei 2.1 209 Supported device: EC55 temperature instrument
210
211 **1)V-BOX Settings**
212
213 |**Items**|**Settings**|**Note**
214 |Protocol|Omron EC55|
215 |Connection|RS485 (9600, 2, 7, EVEN)|
216 |Port No.|None|
217 |PLC station No.|0|
218
219 **2)Address List**
220
221 |**Type**|**Register**|**Device range**|**HMI range**|**Function**
222 |(% rowspan="3" %)Double word|C0|0-13 (Hex)|0-19|Set read only parameter for area 0
223 |C1|0-4D(Hex)|0-77|Set Read/Write parameter for area 0
224 |C3|0-CD(Hex)|0-205|Set Read/Write parameter for area 1
225 |(% rowspan="6" %)Word|80|0-13(Hex)|0-19|Set read only parameter in area 0
226 |81|0-4D(Hex)|0-77|Set Read/Write parameter in area 0
227 |83|0-CD(Hex)|0-205|Set Read/Write parameter in area 1
228 |CP|-|0-6|Read controller intrinsic property
229 |CS|-|0-2|Read controller states
230 |CA|-|0-17|Action command
231
232 **3)Device Settings**
233
234 Omron E5CC PLC configuration
235
236 After entering the Communication Settings menu, please set the parameters to the default values for the following table. Press the cycle key of the instrument to enter the next setting.
237
238 {{id name="Ihttps:2F2Fdocs.we-con.com.cn2Fbin2Fdownload2FPIStudio2F12.PLC2520protocols2FWebHome2F12.PLC2520Protocol_html_3d95e093792ba98a.png3Fwidth3D55026height3D22926rev3D1.1"/}}[[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_3d95e093792ba98a.png?width=550&height=229&rev=1.1||alt="12.PLC Protocol_html_3d95e093792ba98a.png" height="229" width="550"]]
239
240 According to PLC configuration and communication port configuration information of the HMI, provide the corresponding steps and configuration screenshots. This configuration needs to communicate properly with the above PLC configuration. The project settings are as follows
241
242 {{id name="Ihttps:2F2Fdocs.we-con.com.cn2Fbin2Fdownload2FPIStudio2F12.PLC2520protocols2FWebHome2F12.PLC2520Protocol_html_be583aa69dd6cf4c.png3Fwidth3D55026height3D24226rev3D1.1"/}}[[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_be583aa69dd6cf4c.png?width=550&height=242&rev=1.1||alt="12.PLC Protocol_html_be583aa69dd6cf4c.png" height="242" width="550"]]
243
244 **✎Note:** The communication settings for HMI should be consistent with this setting.
245
246 **4)Configure the communication protocol**
247
248 {{id name="Iimage-20220831161041-1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_24bd1420f057cde5.png||alt="image-20220831161041-1.png" height="712" width="1671"]]
249
250 **5)Cable Wiring**
251
252 {{id name="Ihttps:2F2Fdocs.we-con.com.cn2Fbin2Fdownload2FPIStudio2F12.PLC2520protocols2FWebHome2F12.PLC2520Protocol_html_5e9a81a14106da9e.png3Fwidth3D39226height3D22326rev3D1.1"/}}[[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_5e9a81a14106da9e.png?width=392&height=223&rev=1.1||alt="12.PLC Protocol_html_5e9a81a14106da9e.png" height="223" width="392"]]
253
254 {{id name="Ihttps:2F2Fdocs.we-con.com.cn2Fbin2Fdownload2FPIStudio2F12.PLC2520protocols2FWebHome2F12.PLC2520Protocol_html_1897d92be6948d58.png3Fwidth3D39326height3D22326rev3D1.1"/}}[[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_1897d92be6948d58.png?width=393&height=223&rev=1.1||alt="12.PLC Protocol_html_1897d92be6948d58.png" height="223" width="393"]]
255
256 **✎Note:**
257
258 * COM3 only available in PI8000/PI9000 series.
259 * CA address could not support continuous writing function;
260 * Because of CP address intrinsic property: read control intrinsic property, so please place the character input part in use. Set address with CP0 and character length 10, used to display controller type. And place a number input part, set address with CP5 (cache size). Do not place other CP type address without CP0 in screen, otherwise CP type address is invalid
261 * When set value into read & write address, it is necessary to switch the temperature instrument meter to the corresponding interface according to the menu of the instrument where the address locates, so that the value could be written, otherwise, the value could not be written; When the communication write setting of the instrument is turned off, the writing function is invalid. Writing function could be opened by using the 00 address of the CA register, which write 01 value.
262 * When continuous writing of a value to a read-write address, please make sure all continuous writing address could be written. Otherwise, if one of these addresses could not be written, then all continuous writing commands will fail.
263 * Because of the mechanism problem, this protocol could not support CompoWay/F function that is read-write function of variables in protocol document.
264 * When using double-word address, set the data format to 32 bits, otherwise the read/write function is unable.
265 * Please set the communication delay time of 10ms in setting, to avoid that the instrument may not be able to communicate in a short time due to too fast data access and too much connection requests.
266 * {{id name="Iimage-20220831161356-1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_26911ab93ca27dc7.png||alt="image-20220831161356-1.png" height="456" width="772"]] Because of the particularity of the instrument, it is necessary to write the value of the address in the menu interface corresponding to the address, and to enter the menu where the address locates, so that the value could be written.