Wiki source code of Allen-Bradley
Last modified by Wecon on 2025/09/03 21:04
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = **DF1 Advanced Serial** = | ||
| 2 | |||
| 3 | MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05; PLC-5 | ||
| 4 | |||
| 5 | **1) V-Box Settings** | ||
| 6 | |||
| 7 | |=Item|=Recommended |=Note | ||
| 8 | |=Protocol|Allen Bradley DF1 Advanced| | ||
| 9 | |=Connection|RS232| | ||
| 10 | |=Baud rate|19200| | ||
| 11 | |=Stop bits|1| | ||
| 12 | |=Data bits|8| | ||
| 13 | |=Parity|None| | ||
| 14 | |=PLC Station No.|1| | ||
| 15 | |=HMI Station No.|0| | ||
| 16 | |||
| 17 | **2) Address List** | ||
| 18 | |||
| 19 | |=**Type**|=**Device registers**|=**Format**|=**Range**|=Note | ||
| 20 | |(% rowspan="7" %)Bit|I1|I1ddd.dd|0.0~~255.15|Only able to communicate with file number I1 | ||
| 21 | |O0|O0ddd.dd|0.0~~255.15|Only able to communicate with file number O0 | ||
| 22 | |S2|S2ddd.dd|0.0~~255.15|Only able to communicate with file number S2 | ||
| 23 | |B3|B3ddd.dd|0.0~~255.15|Only able to communicate with file number B3 | ||
| 24 | |BN|BNddddd.dd|0.0~~99255.15|((( | ||
| 25 | Bit data file B0~~B99 | ||
| 26 | |||
| 27 | First two digits is for file number | ||
| 28 | |||
| 29 | For example, BN13001.00 represents file number B13, address 001, the 0th bit. | ||
| 30 | ))) | ||
| 31 | |N7|N7ddd.dd|0.0~~255.15|Only able to communicate with file number N7 | ||
| 32 | |NN|NNddddd.dd|0.0~~99255.15|((( | ||
| 33 | Integer data file bit format N0~~N99 | ||
| 34 | |||
| 35 | First two digits is for file number | ||
| 36 | |||
| 37 | For example, NN13001.00 represents file number N13, address 001, the 0th bit. | ||
| 38 | ))) | ||
| 39 | |(% rowspan="11" %)Word|S2|S2ddd|0~~255|Only able to communicate with file number S2 | ||
| 40 | |T4S|T4Sddd|0~~255|Only able to communicate with file number T4 (Timer Preset Value) | ||
| 41 | |T4P|T4Pddd|0~~255|Only able to communicate with file number T4 (Timer Accumulator Value) | ||
| 42 | |TNS|TNSddddd|0~~99255|((( | ||
| 43 | Timer Preset Value | ||
| 44 | |||
| 45 | First two digits is for file number | ||
| 46 | |||
| 47 | For example, TNS99255 represents file number T99, address 255. | ||
| 48 | ))) | ||
| 49 | |TNP|TNPddddd|0~~99255|((( | ||
| 50 | Timer Accumulator Value | ||
| 51 | |||
| 52 | First two digits is for file number | ||
| 53 | |||
| 54 | For example, TNP99255 represents file number T99, address 255. | ||
| 55 | ))) | ||
| 56 | |C5S|C5Sddd|0~~255|Only able to communicate with file number C5 (Counter Preset Value) | ||
| 57 | |C5P|C5Pddd|0~~255|Only able to communicate with file number C5 (Counter Accumulator Value) | ||
| 58 | |CNS|CNSddddd|0~~99255|((( | ||
| 59 | Counter Preset Value | ||
| 60 | |||
| 61 | First two digits is for file number | ||
| 62 | |||
| 63 | For example, CNS99255 represents file number C99, address 255. | ||
| 64 | ))) | ||
| 65 | |CNP|CNPddddd|0~~99255|((( | ||
| 66 | Counter Accumulator Value | ||
| 67 | |||
| 68 | First two digits is for file number | ||
| 69 | |||
| 70 | For example, CNP99255 represents file number C99, address 255. | ||
| 71 | ))) | ||
| 72 | |N7|N7ddd|0~~255|Only able to communicate with file number N7 | ||
| 73 | |NN|NNddd|0~~99255|((( | ||
| 74 | Integer data file | ||
| 75 | |||
| 76 | First two digits is for file number | ||
| 77 | |||
| 78 | For example, NN99255 represents file number N99, address 255. | ||
| 79 | ))) | ||
| 80 | |(% rowspan="3" %)Double Word|F8|F8ddd|0~~255|Only able to communicate with file number N7 | ||
| 81 | |FN|FNddddd|0~~99255|((( | ||
| 82 | Floating point data file | ||
| 83 | |||
| 84 | First two digits is for file number | ||
| 85 | |||
| 86 | For example, FN99255 represents file number F99, address 255. | ||
| 87 | ))) | ||
| 88 | |LN|LNddddd|0~~99255|Long | ||
| 89 | |||
| 90 | **3) Cable Wiring** | ||
| 91 | |||
| 92 | {{id name="IABRS232.gif"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_25f468ac2575918b.gif||alt="ABRS232.gif" height="247" width="400"]] | ||
| 93 | |||
| 94 | {{id name="cke_bm_5621S"/}}{{id name="HMicroLogixA0Protocol"/}}** ** | ||
| 95 | |||
| 96 | == {{id name="HMicroLogixA0Serial"/}}**MicroLogix Serial** == | ||
| 97 | |||
| 98 | MicroLogix 1000/1100/1200/1400/1500; SLC 5/03 5/04 5/05 PLC-5 | ||
| 99 | |||
| 100 | **1)V-BOX setting** | ||
| 101 | |||
| 102 | |**Item**|**Settings**|**Note** | ||
| 103 | |Protocol|Allen-Bradley DF1 Advanced| | ||
| 104 | |Connection|RS232| | ||
| 105 | |Baud rate|19200| | ||
| 106 | |Data bit|8| | ||
| 107 | |Parity|None| | ||
| 108 | |Stop bit|1| | ||
| 109 | |PLC station No.|1| | ||
| 110 | |||
| 111 | **2)Address List** | ||
| 112 | |||
| 113 | |**Type**|**Device registers**|**Format**|**Range**|**Note** | ||
| 114 | |(% rowspan="5" %)Bit|I|I d.d|0.0~~255.15| | ||
| 115 | |O|O d.d|0.0~~255.15| | ||
| 116 | |B|B nnhh.dd|0.0~~ffff.15|nn: block number (hex) | ||
| 117 | |S|S d.d|0.0~~255.15| | ||
| 118 | |N|N nnhh.dd|0.0~~ffff.15|nn: block number (hex) | ||
| 119 | |(% rowspan="9" %)Word|S|S d|0~~255| | ||
| 120 | |TS|TS nnhh|0~~ffff|(% rowspan="8" %)nn: block number (hex) | ||
| 121 | |TP|TP nnhh|0~~ffff | ||
| 122 | |CS|CS nnhh|0~~ffff | ||
| 123 | |CP|CP nnhh|0~~ffff | ||
| 124 | |N|N nnhh|0~~ffff | ||
| 125 | |C|C nnhh|0~~ffff | ||
| 126 | |T|T nnhh|0~~ffff | ||
| 127 | |R|R nnhh|0~~ffff | ||
| 128 | |||
| 129 | **{{id name="Iimage-20220824152928-1.png"/}}3)Configure the communication protocol**[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_3e790cb11779d822.png||alt="image-20220824152928-1.png" height="1010" width="1920"]] | ||
| 130 | |||
| 131 | **4)Configure the communication protocol** | ||
| 132 | |||
| 133 | {{id name="Iimage-20220824110724-1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_faf98d75129f59e9.png||alt="image-20220824110724-1.png" height="326" width="548"]] | ||
| 134 | |||
| 135 | == {{id name="HMicro850_FreeTagEthernet"/}}**Micro850_FreeTag Ethernet** == | ||
| 136 | |||
| 137 | This example introduces the establishment of Ethernet communication between Wecon V-box and CompactLogix L1769. It is introduced through three parts: PLC software configuration, V-box software configuration, and hardware wiring. | ||
| 138 | |||
| 139 | **Software configuration of PLC** | ||
| 140 | |||
| 141 | **1)PLC programming software** | ||
| 142 | |||
| 143 | {{id name="Iimage-20220714162600-1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_dba9ec452ee41c5.png||alt="image-20220714162600-1.png" height="527" width="437"]] | ||
| 144 | |||
| 145 | **2)New PLC project** | ||
| 146 | |||
| 147 | Click New Project and select the PLC model. | ||
| 148 | |||
| 149 | {{id name="Iimage-20220714162617-2.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_54a31bd52186c53c.png||alt="image-20220714162617-2.png" height="434" width="803"]] | ||
| 150 | |||
| 151 | |||
| 152 | {{id name="Iimage-20220714162652-4.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_5d52824614585e13.png||alt="image-20220714162652-4.png" height="591" width="732"]] | ||
| 153 | |||
| 154 | **3)Set Ethernet parameters** | ||
| 155 | |||
| 156 | Follow the steps below to configure Ethernet parameters | ||
| 157 | |||
| 158 | PLC IP address:192.168.40.101 | ||
| 159 | |||
| 160 | default gateway:192.168.40.1 | ||
| 161 | |||
| 162 | subnet mask:255.255.255.0 | ||
| 163 | |||
| 164 | {{id name="Iimage-20220714162713-5.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_cea23d115ccaaa63.png||alt="image-20220714162713-5.png" height="868" width="1919"]] | ||
| 165 | |||
| 166 | |||
| 167 | **V-box software configuration** | ||
| 168 | |||
| 169 | **1)V-box programming software** | ||
| 170 | |||
| 171 | {{id name="Iimage-20220714162725-6.png"/}} [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_65a3ecdb93694966.png||alt="image-20220714162725-6.png" height="441" width="731"]] | ||
| 172 | |||
| 173 | **2)Configure device network** | ||
| 174 | |||
| 175 | {{id name="Iimage-20220714115308-8.png"/}}Click the Configuration Download button[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ad012010777dc078.png||alt="image-20220714115308-8.png" height="22" width="15"]] , It is used to configure the device network, update the device time, obtain the device machine code, check the device network, etc. | ||
| 176 | |||
| 177 | In the example below, the IP address of V-Box is configured as 192.168.40.66, and the networking method is 4G connection | ||
| 178 | |||
| 179 | {{id name="Iimage-20220714162737-7.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_a2b83bb70af39146.png||alt="image-20220714162737-7.png" height="736" width="1370"]] | ||
| 180 | |||
| 181 | |||
| 182 | **3)V-net add device** | ||
| 183 | |||
| 184 | {{id name="Iimage-20220714162752-8.png"/}}Open VNET client software → add device. As shown in the figure below, click "+" in the order of steps, and the Add Device window will pop up, enter the device machine code/product code, device password, and device alias to add the device. [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_bff671605e8a8f53.png||alt="image-20220714162752-8.png" height="793" width="1470"]] | ||
| 185 | |||
| 186 | |||
| 187 | **4)Set communication port parameters** | ||
| 188 | |||
| 189 | In the device list on the left, find the Vbox that communicates with the L1769, click it and select configuration,communication port configuration in the main interface to add a communication protocol. | ||
| 190 | |||
| 191 | {{id name="Iimage-20220714162805-9.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_acc2b9d2e75a2791.png||alt="image-20220714162805-9.png" height="792" width="1471"]] | ||
| 192 | |||
| 193 | The communication port is selected as Ethernet, the device type is selected as Allen-Bradley, the protocol is Allen-BradleyMicro850_FreeTag EthemetIP, and the IP is the internal IP address of the L1769 PLC. The port number is 44818. | ||
| 194 | |||
| 195 | {{id name="Iimage-20220824164346-1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_68274e3dec90a425.png||alt="image-20220824164346-1.png" height="553" width="991"]] | ||
| 196 | |||
| 197 | {{id name="Iimage-20220714143838-2.png"/}}{{id name="Iimage-20220714162827-11.png"/}}After adding the protocol Allen-BradleyMicro850_FreeTag, click[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_bff5c072d145b8c.png||alt="image-20220714143838-2.png" height="27" width="30"]] icon add label.[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_c8c6550cf2a1e96b.png||alt="image-20220714162827-11.png" height="574" width="1054"]] | ||
| 198 | |||
| 199 | **5)Engineering production** | ||
| 200 | |||
| 201 | According to your own needs, use the V-NET client software to edit the required data monitoring points. | ||
| 202 | |||
| 203 | {{id name="Iimage-20220714162841-12.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ce5d38d21d89c3e3.png||alt="image-20220714162841-12.png" height="478" width="1614"]] | ||
| 204 | |||
| 205 | **hardware connection** | ||
| 206 | |||
| 207 | **1)Hardware wiring diagram** | ||
| 208 | |||
| 209 | This example introduces Wecon V-box with Allen-Bradley L1769 PLC to establish communication through Ethernet. The connection diagram is as follows: | ||
| 210 | |||
| 211 | {{id name="Iimage-20220714162856-13.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_43bb560ec0411230.png||alt="image-20220714162856-13.png" height="322" width="693"]] | ||
| 212 | |||
| 213 | The above are all the steps for establishing Ethernet communication between Wecon V-box with CompactLogix L1769 PLC. | ||
| 214 | |||
| 215 | == {{id name="HMicro850_FreeTagEthernetFF08newFF09"/}}**Micro850_FreeTag Ethernet(new)** == | ||
| 216 | |||
| 217 | This example introduces the establishment of Ethernet communication between Wecon V-box and 2080-LC50-48QWB,Micro850. It is introduced through three parts: PLC software configuration, V-box software configuration. | ||
| 218 | |||
| 219 | **Software configuration of PLC** | ||
| 220 | |||
| 221 | **1)PLC programming software:Connected Components Workbench™** | ||
| 222 | |||
| 223 | {{id name="Isoftware.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_3711a5e1c2a7f00f.png||alt="software.png" height="485" width="378"]] | ||
| 224 | |||
| 225 | **2)New PLC project** | ||
| 226 | |||
| 227 | Click New Project and select the PLC model. | ||
| 228 | |||
| 229 | {{id name="Iprojectcreate.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_6c0da8fb6efff6c5.png||alt="project create.png" height="806" width="901"]] | ||
| 230 | |||
| 231 | **3)Set Ethernet parameters** | ||
| 232 | |||
| 233 | Follow the steps below to configure Ethernet parameters | ||
| 234 | |||
| 235 | PLC IP address:192.168.39.56 | ||
| 236 | |||
| 237 | default gateway:192.168.39.1 | ||
| 238 | |||
| 239 | subnet mask:255.255.255.0 | ||
| 240 | |||
| 241 | {{id name="IEthernet.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_c79ec9884ea8fe28.png||alt="Ethernet.png" height="656" width="935"]] | ||
| 242 | |||
| 243 | **4)connect PLC** | ||
| 244 | |||
| 245 | **When downloading the setting, need to change the status of the PLC to PRG** | ||
| 246 | |||
| 247 | {{id name="Iconneabplc.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_85b0c5a416b2a77d.png||alt="conne ab plc.png" height="765" width="696"]] | ||
| 248 | |||
| 249 | **V-box software configuration** | ||
| 250 | |||
| 251 | **1)V-box programming software** | ||
| 252 | |||
| 253 | {{id name="Iv-netclientvers.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ac791772fd34e1a0.png||alt="v-net client vers.png" height="277" width="281"]] | ||
| 254 | |||
| 255 | **2)Set communication port parameters** | ||
| 256 | |||
| 257 | In the device list on the left, find the Vbox that communicates with the L1769, click it and select configuration,communication port configuration in the main interface to add a communication protocol. | ||
| 258 | |||
| 259 | {{id name="IV-NET_Client_t2Rg2wpSoY.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_6af9507fa57e3f6e.png||alt="V-NET_Client_t2Rg2wpSoY.png" height="791" width="1086"]] | ||
| 260 | |||
| 261 | The communication port is selected as Ethernet, the device type is selected as Allen-Bradley, the protocol is Allen-BradleyMicro850_FreeTag EthemetIP, and the IP is the internal IP address of the L1769 PLC. The port number is 44818. | ||
| 262 | |||
| 263 | {{id name="IV-NET_Client_communication.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ecdfe646ccfb5f9f.png||alt="V-NET_Client_communication.png" height="601" width="894"]] | ||
| 264 | |||
| 265 | {{id name="cke_bm_1950S"/}}Export variables from PLC, select CSV file, comma delimited. | ||
| 266 | |||
| 267 | {{id name="Iexport1.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_306bf46ce1a5a0d3.png||alt="export1.png" height="613" width="604"]] | ||
| 268 | |||
| 269 | {{id name="ICCW.Shell_E5Cwj4tUL3.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_c9e367a57c3e9201.png||alt="CCW.Shell_E5Cwj4tUL3.png" height="278" width="915"]] | ||
| 270 | |||
| 271 | {{id name="Ihttps:2F2Fdocs.we-con.com.cn2Fbin2Fdownload2FV-BOX2FV-Net2FTraining2F12520Communication2FWebHome2Fimage-20220714143838-2.png3Frev3D1.1"/}}After adding the protocol Allen-BradleyMicro850_FreeTag, click[[image:https://docs.we-con.com.cn/bin/download/V-BOX/V-Net/Training/1%20Communication/WebHome/image-20220714143838-2.png?rev=1.1||alt="image-20220714143838-2.png" height="38" width="76"]] icon add label. | ||
| 272 | |||
| 273 | {{id name="IV-NET_Client_TNBuqy7T5r.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_820dbb012d8d584d.png||alt="V-NET_Client_TNBuqy7T5r.png" height="449" width="952"]] | ||
| 274 | |||
| 275 | **3)Engineering production** | ||
| 276 | |||
| 277 | According to your own needs, use the V-NET client software to edit the required data monitoring points. | ||
| 278 | |||
| 279 | {{id name="IV-NET_Client_KOR0AHEA4M.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_32fe301a04258d72.png||alt="V-NET_Client_KOR0AHEA4M.png" height="182" width="825"]] | ||
| 280 | |||
| 281 | |||
| 282 | == {{id name="HEthernetDF1"/}}**Ethernet DF1** == | ||
| 283 | |||
| 284 | [[download link>>url:https://ftp.we-con.com.cn/Download/WIKI/V-BOX/Demo/%E9%80%9A%E8%AE%AF%E6%A1%88%E4%BE%8B/Allen-Bradley%20Ethernet%20DF1.zip]] |