Wiki source code of Omron
Version 19.1 by Theodore Xu on 2023/09/16 10:46
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
19.1 | 1 | == **CP1 Series** == |
![]() |
2.1 | 2 | |
3 | [[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]] | ||
4 | |||
![]() |
5.1 | 5 | == **CP2M Series** == |
![]() |
2.1 | 6 | |
7 | [[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]] | ||
8 | |||
![]() |
10.1 | 9 | == **CJ2M Ethemet** == |
![]() |
2.1 | 10 | |
![]() |
5.1 | 11 | Supported device:CJ series, CJ1W-EIP21,CJ2M-EIP21 |
12 | |||
13 | **V-Box Settings** | ||
14 | |||
15 | |=**Items**|=**Settings** | ||
16 | |Protocol|OMRON CJ TCP FINS Ethemet | ||
17 | |Connection|Ethernet | ||
18 | |Port No.|9600 | ||
19 | |Device No.|0 | ||
20 | |V-Box No.|0 | ||
21 | |||
22 | (% style="text-align:center" %) | ||
23 | [[image:欧姆龙创建.png]] | ||
24 | |||
![]() |
9.1 | 25 | **Address List ** |
![]() |
5.1 | 26 | |
![]() |
6.1 | 27 | |=**Type**|=**Device registers**|=**HMI registers**|=**Format**|=**Range**|=**Note** |
28 | |(% colspan="1" rowspan="23" %)Bit | ||
29 | |CIO|CIO|CIO d|0~~99999| | ||
30 | |W|W|W d|0~~99999| | ||
31 | |D|D|D d|0~~99999| | ||
32 | |H|H|H d|0~~99999| | ||
33 | |A|A|A d|0~~99999| | ||
34 | |T|T|T h|0~~99999| | ||
35 | |CF|CF|CF d|0~~99999| | ||
36 | |FF|FF|FF d|0~~99999| | ||
37 | |C|C|C d|0~~99999| | ||
38 | |EM0|EM0|EM0 d|0~~99999| | ||
39 | |EM1|EM1|EM1 d|0~~99999| | ||
40 | |EM2|EM2|EM2 d|0~~99999| | ||
41 | |EM3|EM3|EM3 d|0~~99999| | ||
42 | |EM4|EM4|EM4 d|0~~99999| | ||
43 | |EM5|EM5|EM5 h|0~~99999| | ||
44 | |EM6|EM6|EM6 d|0~~99999| | ||
45 | |EM7|EM7|EM7 d|0~~99999| | ||
46 | |EM8|EM8|EM8 d|0~~99999| | ||
47 | |EM9|EM9|EM9 d|0~~99999| | ||
48 | |EMA|EMA|EMA d|0~~99999| | ||
49 | |EMB|EMB|EMB d|0~~99999| | ||
50 | |EMC|EMC|EMC d|0~~99999| | ||
51 | |Lamp|Lamp|Lamp d|0~~0| | ||
52 | |(% colspan="1" rowspan="24" %)Word | ||
53 | |CIO|CIO|CIO d|0~~99999| | ||
54 | |W|W|W d|0~~99999| | ||
55 | |D|D|D d|0~~99999| | ||
56 | |H|H|H d|0~~99999| | ||
57 | |A|A|A d|0~~99999| | ||
58 | |T|T|T h|0~~99999| | ||
59 | |CF|CF|CF d|0~~99999| | ||
60 | |FF|FF|FF d|0~~99999| | ||
61 | |C|C|C d|0~~99999| | ||
62 | |EM0|EM0|EM0 d|0~~99999| | ||
63 | |EM1|EM1|EM1 d|0~~99999| | ||
64 | |EM2|EM2|EM2 d|0~~99999| | ||
65 | |EM3|EM3|EM3 d|0~~99999| | ||
66 | |EM4|EM4|EM4 d|0~~99999| | ||
67 | |EM5|EM5|EM5 h|0~~99999| | ||
68 | |EM6|EM6|EM6 d|0~~99999| | ||
69 | |EM7|EM7|EM7 d|0~~99999| | ||
70 | |EM8|EM8|EM8 d|0~~99999| | ||
71 | |EM9|EM9|EM9 d|0~~99999| | ||
72 | |EMA|EMA|EMA d|0~~99999| | ||
73 | |EMB|EMB|EMB d|0~~99999| | ||
74 | |EMC|EMC|EMC d|0~~99999| | ||
75 | |IR|IR|IR d|0~~99999| | ||
76 | |DR|DR|DR d|0~~99999| | ||
![]() |
5.1 | 77 | |
78 | (% class="wikigeneratedid" %) | ||
![]() |
9.1 | 79 | **PLC setting** |
![]() |
5.1 | 80 | |
81 | (% class="wikigeneratedid" %) | ||
![]() |
17.1 | 82 | [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] |
![]() |
5.1 | 83 | Note:The IP address of the PLC is displayed on the LED when the PLC is powered up |
84 | |||
![]() |
8.1 | 85 | (% style="text-align:center" %) |
86 | [[image:1.3.1.png]] | ||
![]() |
7.1 | 87 | |
![]() |
17.1 | 88 | [PLC]→[Work Online]→USB connection between PC and PLC→The connection prompt appears→[Yes] |
![]() |
7.1 | 89 | |
![]() |
8.1 | 90 | (% style="text-align:center" %) |
91 | [[image:1.3.2.png]] | ||
92 | |||
![]() |
17.1 | 93 | 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] |
![]() |
8.1 | 94 | |
95 | [IP Address] Use the following address → [IP Address] 192.168.40.99, [Subnet Mask] 255.255.255.0. | ||
96 | Note: Please configure the IP parameters of PLC according to the field needs | ||
97 | |||
98 | (% style="text-align:center" %) | ||
99 | [[image:1694161978199-503.4.png]] | ||
100 | |||
![]() |
17.1 | 101 | Two rotary coding switches should be set depanding on the program paremeter: |
![]() |
8.1 | 102 | 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 |
103 | |||
104 | (% style="text-align:center" %) | ||
105 | [[image:WeCom Screenshot_20230828090604.png]] | ||
106 | |||
![]() |
17.1 | 107 | 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 |
![]() |
8.1 | 108 | |
109 | (% style="text-align:center" %) | ||
110 | [[image:WeCom.png]] | ||
111 | |||
![]() |
9.1 | 112 | **Cable Wiring** |
![]() |
8.1 | 113 | |
114 | (% style="text-align:center" %) | ||
115 | [[image:12.PLC Protocol_html_2297240b57346b2a.png]] | ||
116 | |||
![]() |
11.1 | 117 | == **CJ2M Serial** == |
118 | |||
![]() |
12.1 | 119 | **V-BOX setting** |
120 | |||
121 | |**Items**|((( | ||
122 | **Settings** | ||
123 | ))) | ||
124 | |Protocol|OMRON CV/CJ1M/CS1H | ||
125 | |Connection|RS232/RS485 | ||
126 | |Baud rate|9600 | ||
127 | |Data bit|7 | ||
128 | |Parity|EVEN | ||
129 | |2|2 | ||
130 | |PLC station No.|0 | ||
131 | |||
132 | **Device Address:** | ||
133 | |||
![]() |
13.1 | 134 | |=Type|=**Device type**|=**Format**|=**Range**|=**Note** |
135 | |(% colspan="1" rowspan="23" %)Bit|CIO|DDDDDdd|0 ~~65535.15|I/O and Internal Relay | ||
![]() |
12.1 | 136 | |W|DDDDDdd|0 ~~65535.15|Hold Relay |
137 | |D|DDDDDdd|0 ~~65535.15|Link Relay | ||
138 | |H|DDDDDdd|0 ~~65535.15| | ||
139 | |A|DDDDDdd|0 ~~65535.15| | ||
140 | |TF|DDDDD|0 ~~ 99999| | ||
141 | |CF|DDDDD|0 ~~ 99999|Auxiliary Relay | ||
142 | |T|DDDDDdd|0 ~~65535.15| | ||
143 | |C|DDDDDdd|0 ~~65535.15| | ||
144 | |EM0|DDDDDdd|0 ~~ 99999.15| | ||
145 | |EM1|DDDDDdd|0 ~~ 99999.15| | ||
146 | |EM2|DDDDDdd|0 ~~ 99999.15| | ||
147 | |EM3|DDDDDdd|0 ~~ 99999.15| | ||
148 | |EM4|DDDDDdd|0 ~~ 99999.15| | ||
149 | |EM5|DDDDDdd|0 ~~ 99999.15| | ||
150 | |EM6|DDDDDdd|0 ~~ 99999.15| | ||
151 | |EM7|DDDDDdd|0 ~~ 99999.15| | ||
152 | |EM8|DDDDDdd|0 ~~ 99999.15| | ||
153 | |EM9|DDDDDdd|0 ~~ 99999.15| | ||
154 | |EMA|DDDDDdd|0 ~~ 99999.15| | ||
155 | |EMB|DDDDDdd|0 ~~ 99999.15| | ||
156 | |EMC|DDDDDdd|0 ~~ 99999.15| | ||
157 | |Lamp|D|0~~0| | ||
158 | |(% colspan="1" rowspan="22" %)Word|W|DDDDD|0 ~~ 99999| | ||
159 | |D|DDDDD|0 ~~ 99999| | ||
160 | |H|DDDDD|0 ~~ 99999| | ||
161 | |A|DDDDD|0 ~~ 99999| | ||
162 | |T|DDDDD|0 ~~ 99999| | ||
163 | |C|DDDDD|0 ~~ 99999| | ||
164 | |CIO|DDDDD|0 ~~ 99999| | ||
165 | |EM0|DDDDD|0 ~~ 99999| | ||
166 | |EM1|DDDDD|0 ~~ 99999| | ||
167 | |EM2|DDDDD|0 ~~ 99999| | ||
168 | |EM3|DDDDD|0 ~~ 99999| | ||
169 | |EM4|DDDDD|0 ~~ 99999| | ||
170 | |EM5|DDDDD|0 ~~ 99999| | ||
171 | |EM6|DDDDD|0 ~~ 99999| | ||
172 | |EM7|DDDDD|0 ~~ 99999| | ||
173 | |EM8|DDDDD|0 ~~ 99999| | ||
174 | |EM9|DDDDD|0 ~~ 99999| | ||
175 | |EMA|DDDDD|0 ~~ 99999| | ||
176 | |EMB|DDDDD|0 ~~ 99999| | ||
177 | |EMC|DDDDD|0 ~~ 99999| | ||
178 | |IR|DDDDD|0 ~~ 99999| | ||
179 | |DR|DDDDD|0 ~~ 99999| | ||
180 | |||
181 | (% style="text-align:center" %) | ||
182 | [[image:CJ2M串口协议配置.png]] | ||
183 | |||
184 | **PLC Setting:** | ||
185 | |||
186 | Open cx-programmer, create a new PLC project or open the project that has been created. | ||
![]() |
14.1 | 187 | Create new project: [File]→[New]→[Device Type]CJ2M→[settings]→[General]→[CPU Type]CPU31→[OK]→[OK]. |
![]() |
12.1 | 188 | |
189 | (% style="text-align:center" %) | ||
190 | [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_1edc9bf9e8c98170.png]] | ||
191 | |||
192 | 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. | ||
193 | |||
194 | {{info}} | ||
195 | ✎Note:The serial port parameters should be set depending on field requirements | ||
196 | {{/info}} | ||
197 | |||
198 | (% style="text-align:center" %) | ||
199 | [[image:xwiki_PIStudio_12.PLC2.png]] | ||
200 | |||
![]() |
15.1 | 201 | [PLC]→[Change Communication Settings]→[Network Type]: PC and PLC are connected by USB cable,choose[USB]→[setting…]→[Network]→[Direct Connection]→[OK]→[OK] |
![]() |
12.1 | 202 | |
![]() |
14.1 | 203 | (% style="text-align:center" %) |
204 | [[image:欧姆龙串口连接.png||height="620" width="1163"]] | ||
205 | |||
206 | [PLC]→[Work Online]→USB connection between PC and PLC→The connection prompt appears→[Yes] | ||
207 | |||
208 | (% style="text-align:center" %) | ||
209 | [[image:欧姆龙串口在线.png||height="623" width="1070"]] | ||
210 | |||
211 | [PLC]→[Transfer]→[To PLC]→Select the corresponding download item[OK]→[Yes]→[Yes] | ||
212 | |||
213 | (% style="text-align:center" %) | ||
214 | [[image:欧姆龙串口下载1.png]] | ||
215 | |||
216 | **Cable Wiring** | ||
217 | |||
![]() |
16.1 | 218 | **RS-485** |
219 | |||
![]() |
14.1 | 220 | (% style="text-align:center" %) |
221 | [[image:欧姆龙串口485.png||height="357" width="519"]] | ||
222 | |||
223 | **RS-232** | ||
224 | |||
225 | CPU Port (CPM2A,CQM1/1H,C200H/HS/ALPHA series) | ||
226 | |||
227 | Communication Module: | ||
228 | |||
229 | CPM1-CIF01 adapter (for CPM1/CPM1A/CPM2A series, CQM1/CQM1H series) CPM1H-SCB41 communication module (for CQM1H-CPU51/61) | ||
230 | |||
231 | The serial port pin assignments may vary between HMI models, please click the following link for more information. | ||
232 | |||
233 | (% style="text-align:center" %) | ||
234 | [[image:欧姆龙串口422.jpg]] | ||
235 | |||
![]() |
5.1 | 236 | == **EC55 Series ** == |
237 | |||
![]() |
2.1 | 238 | Supported device: EC55 temperature instrument |
239 | |||
240 | **1)V-BOX Settings** | ||
241 | |||
242 | |**Items**|**Settings**|**Note** | ||
243 | |Protocol|Omron EC55| | ||
244 | |Connection|RS485 (9600, 2, 7, EVEN)| | ||
245 | |Port No.|None| | ||
246 | |PLC station No.|0| | ||
247 | |||
248 | **2)Address List** | ||
249 | |||
250 | |**Type**|**Register**|**Device range**|**HMI range**|**Function** | ||
251 | |(% rowspan="3" %)Double word|C0|0-13 (Hex)|0-19|Set read only parameter for area 0 | ||
252 | |C1|0-4D(Hex)|0-77|Set Read/Write parameter for area 0 | ||
253 | |C3|0-CD(Hex)|0-205|Set Read/Write parameter for area 1 | ||
254 | |(% rowspan="6" %)Word|80|0-13(Hex)|0-19|Set read only parameter in area 0 | ||
255 | |81|0-4D(Hex)|0-77|Set Read/Write parameter in area 0 | ||
256 | |83|0-CD(Hex)|0-205|Set Read/Write parameter in area 1 | ||
257 | |CP|-|0-6|Read controller intrinsic property | ||
258 | |CS|-|0-2|Read controller states | ||
259 | |CA|-|0-17|Action command | ||
260 | |||
261 | **3)Device Settings** | ||
262 | |||
263 | Omron E5CC PLC configuration | ||
264 | |||
265 | 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. | ||
266 | |||
267 | {{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"]] | ||
268 | |||
269 | 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 | ||
270 | |||
271 | {{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"]] | ||
272 | |||
273 | **✎Note:** The communication settings for HMI should be consistent with this setting. | ||
274 | |||
275 | **4)Configure the communication protocol** | ||
276 | |||
277 | {{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"]] | ||
278 | |||
279 | **5)Cable Wiring** | ||
280 | |||
281 | {{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"]] | ||
282 | |||
283 | {{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"]] | ||
284 | |||
285 | **✎Note:** | ||
286 | |||
287 | * COM3 only available in PI8000/PI9000 series. | ||
288 | * CA address could not support continuous writing function; | ||
289 | * 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 | ||
290 | * 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. | ||
291 | * 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. | ||
292 | * Because of the mechanism problem, this protocol could not support CompoWay/F function that is read-write function of variables in protocol document. | ||
293 | * When using double-word address, set the data format to 32 bits, otherwise the read/write function is unable. | ||
294 | * 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. | ||
295 | * {{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. |