Wiki source code of Omron

Version 14.1 by Theodore Xu on 2023/09/12 14:08

Show last authors
1 = **Omron** =
2
3 == **CP1 Series** ==
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
7 == **CP2M Series** ==
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
11 == **CJ2M Ethemet** ==
12
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
27 **Address List **
28
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|
79
80 (% class="wikigeneratedid" %)
81 **PLC setting**
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
87 (% style="text-align:center" %)
88 [[image:1.3.1.png]]
89
90 ②[PLC]→[Work Online]→USB connection between PC and PLC→The connection prompt appears→[Yes]
91
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
114 **Cable Wiring**
115
116 Pin Definition Diagram
117
118 (% style="text-align:center" %)
119 [[image:12.PLC Protocol_html_2297240b57346b2a.png]]
120
121 == **CJ2M Serial** ==
122
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
138 |=Type|=**Device type**|=**Format**|=**Range**|=**Note**
139 |(% colspan="1" rowspan="23" %)Bit|CIO|DDDDDdd|0 ~~65535.15|I/O and Internal Relay
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 connect
206
207 (% style="text-align:center" %)
208 [[image:欧姆龙串口连接.png||height="620" width="1163"]]
209
210 [PLC]→[Work Online]→USB connection between PC and PLC→The connection prompt appears→[Yes]
211
212 (% style="text-align:center" %)
213 [[image:欧姆龙串口在线.png||height="623" width="1070"]]
214
215 [PLC]→[Transfer]→[To PLC]→Select the corresponding download item[OK]→[Yes]→[Yes]
216
217 (% style="text-align:center" %)
218 [[image:欧姆龙串口下载1.png]]
219
220 **Cable Wiring**
221
222 (% style="text-align:center" %)
223 [[image:欧姆龙串口485.png||height="357" width="519"]]
224
225 **RS-232**
226
227 CPU Port (CPM2A,CQM1/1H,C200H/HS/ALPHA series)
228
229 Communication Module:
230
231 CPM1-CIF01 adapter (for CPM1/CPM1A/CPM2A series, CQM1/CQM1H series) CPM1H-SCB41 communication module (for CQM1H-CPU51/61)
232
233 The serial port pin assignments may vary between HMI models, please click the following link for more information.
234
235 (% style="text-align:center" %)
236 [[image:欧姆龙串口422.jpg]]
237
238 == **EC55 Series ** ==
239
240 Supported device: EC55 temperature instrument
241
242 **1)V-BOX Settings**
243
244 |**Items**|**Settings**|**Note**
245 |Protocol|Omron EC55|
246 |Connection|RS485 (9600, 2, 7, EVEN)|
247 |Port No.|None|
248 |PLC station No.|0|
249
250 **2)Address List**
251
252 |**Type**|**Register**|**Device range**|**HMI range**|**Function**
253 |(% rowspan="3" %)Double word|C0|0-13 (Hex)|0-19|Set read only parameter for area 0
254 |C1|0-4D(Hex)|0-77|Set Read/Write parameter for area 0
255 |C3|0-CD(Hex)|0-205|Set Read/Write parameter for area 1
256 |(% rowspan="6" %)Word|80|0-13(Hex)|0-19|Set read only parameter in area 0
257 |81|0-4D(Hex)|0-77|Set Read/Write parameter in area 0
258 |83|0-CD(Hex)|0-205|Set Read/Write parameter in area 1
259 |CP|-|0-6|Read controller intrinsic property
260 |CS|-|0-2|Read controller states
261 |CA|-|0-17|Action command
262
263 **3)Device Settings**
264
265 Omron E5CC PLC configuration
266
267 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.
268
269 {{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"]]
270
271 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
272
273 {{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"]]
274
275 **✎Note:** The communication settings for HMI should be consistent with this setting.
276
277 **4)Configure the communication protocol**
278
279 {{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"]]
280
281 **5)Cable Wiring**
282
283 {{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"]]
284
285 {{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"]]
286
287 **✎Note:**
288
289 * COM3 only available in PI8000/PI9000 series.
290 * CA address could not support continuous writing function;
291 * 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
292 * 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.
293 * 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.
294 * Because of the mechanism problem, this protocol could not support CompoWay/F function that is read-write function of variables in protocol document.
295 * When using double-word address, set the data format to 32 bits, otherwise the read/write function is unable.
296 * 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.
297 * {{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.