Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = **Schneider** Modicon **MODBUS RTU** = | ||
| 2 | |||
| 3 | **HMI Setting** | ||
| 4 | |||
| 5 | |=**Parameters**|=**Recommended**|=**Notes** | ||
| 6 | |=**Protocol**|Schneider MODBUS RTU| | ||
| 7 | |=Connection|RS485| | ||
| 8 | |=**Baud rate**|19200| | ||
| 9 | |=**Data bit**|8| | ||
| 10 | |=**Parity**|Even| | ||
| 11 | |=**Stop bit**|1| | ||
| 12 | |=**PLC station No.**|1| | ||
| 13 | |||
| 14 | **PLC Setting** | ||
| 15 | |||
| 16 | |=**Communication mode**|Modbus RTU protocol | ||
| 17 | |||
| 18 | **Device Address** | ||
| 19 | |||
| 20 | |=**Bit/Word**|=**Device type**|=**Format**|=**Range**|=**Memo** | ||
| 21 | |B|IX|DDDDDo|0 ~~ 655357|Input bit (read only) | ||
| 22 | |B|QX|DDDDDo|0 ~~ 655357|Write multiple coils | ||
| 23 | |B|MX|DDDDDDo|0 ~~ 9999997|Output register bit (octal) | ||
| 24 | |W|MW|DDDDDD|0 ~~ 999999|Output register | ||
| 25 | |DW|MD|DDDDDD|0 ~~ 999999|Output register | ||
| 26 | |||
| 27 | **Wiring Diagram** | ||
| 28 | |||
| 29 | **RS-485 2W **(RJ45 Connector): The following is the view from the soldering point of a connector. | ||
| 30 | |||
| 31 | [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c74587d16cc7ee2.jpg||alt="image-20220817154212-1.jpeg" height="315" width="554"]] | ||
| 32 | |||
| 33 | = **TM218 Series** = | ||
| 34 | |||
| 35 | **HMI Setting** | ||
| 36 | |||
| 37 | |=**Parameters**|=**Recommended**|=**Notes** | ||
| 38 | |=**Protocol**|Schneider Modicon MODBUS RTU| | ||
| 39 | |=Connection|RS485| | ||
| 40 | |=**Baud rate**|19200| | ||
| 41 | |=**Data bit**|8| | ||
| 42 | |=**Parity**|Even| | ||
| 43 | |=**Stop bit**|1| | ||
| 44 | |=**PLC station No.**|1 | ||
| 45 | |||
| 46 | **Device Address** | ||
| 47 | |||
| 48 | |=**Bit/Word**|=**Device type**|=**Format**|=**Range** | ||
| 49 | |B|IX|IX dddd.d|0 to 65535 | ||
| 50 | |B|QX|QX dddd.d|0 to 65535 | ||
| 51 | |B|MX|MX dddd.dd|0 to 999999 | ||
| 52 | |W|MW|MW dddd|0 to 999999 | ||
| 53 | |||
| 54 | **Configure the communication protocol** | ||
| 55 | |||
| 56 | (% style="text-align:center" %) | ||
| 57 | [[image:11.png]] | ||
| 58 | |||
| 59 | (% style="text-align:center" %) | ||
| 60 | [[image:12.png]] | ||
| 61 | |||
| 62 | **PLC Setting:** | ||
| 63 | |||
| 64 | Open SoMachine Central, create a new project or open the project that has been created. | ||
| 65 | |||
| 66 | Create new project: [Create a new project]→[Empty Project]→[OK]→[Open Configuration] | ||
| 67 | |||
| 68 | (% style="text-align:center" %) | ||
| 69 | [[image:2.png]] | ||
| 70 | |||
| 71 | (% style="text-align:center" %) | ||
| 72 | [[image:3.png]] | ||
| 73 | |||
| 74 | Into the [Open Configuration]. | ||
| 75 | |||
| 76 | [Untitled]→[Add Device]→[Logic Controller]→[M218]→[TM218LDA16DRN] | ||
| 77 | |||
| 78 | (% style="text-align:center" %) | ||
| 79 | [[image:4.png]] | ||
| 80 | |||
| 81 | PLC Default Parameters: | ||
| 82 | |||
| 83 | In the Devices tree [MyController]→[Serial Line 2]→[Modbus_Manager] | ||
| 84 | |||
| 85 | Modbus: | ||
| 86 | |||
| 87 | [Transmission Mode] RTU→[Addressing] Slave | ||
| 88 | |||
| 89 | Serial Line Settings: | ||
| 90 | |||
| 91 | [Baud rate] 19200, [Data bits] 8, [Stop bits] 1, [Parity] EVEN, [Physical Medium] RS485 | ||
| 92 | |||
| 93 | (% style="text-align:center" %) | ||
| 94 | [[image:5.png]] | ||
| 95 | |||
| 96 | **Cable Wiring** | ||
| 97 | |||
| 98 | (% style="text-align:center" %) | ||
| 99 | [[image:1711078732764-435.png]] | ||
| 100 | |||
| 101 | = Schneider TM221 Ethernet = | ||
| 102 | |||
| 103 | **Supported Series**: Modicon M221 Series | ||
| 104 | |||
| 105 | **HMI Setting** | ||
| 106 | |||
| 107 | |**Items**|(% style="width:440px" %)**Settings**|(% style="width:359px" %)**Note** | ||
| 108 | |Protocol|(% style="width:440px" %)Schneider TM221|(% style="width:359px" %) | ||
| 109 | |Connection|(% style="width:440px" %)Ethernet|(% style="width:359px" %) | ||
| 110 | |Port No.|(% style="width:440px" %)502|(% style="width:359px" %) | ||
| 111 | |Device No.|(% style="width:440px" %)1|(% style="width:359px" %) | ||
| 112 | |HMI No.|(% style="width:440px" %)0|(% style="width:359px" %) | ||
| 113 | |||
| 114 | **Address List** | ||
| 115 | |||
| 116 | |||
| 117 | |=(% style="width: 316px;" %)**Type**|=(% style="width: 240px;" %)**Address Type**|=(% style="width: 208px;" %)**Format**|=(% style="width: 132px;" %)**Range**|=(% style="width: 305px;" %)**Note** | ||
| 118 | |(% colspan="1" rowspan="8" style="width:316px" %)Bit|(% style="width:240px" %)IWMB|(% style="width:208px" %)IWMB DD.dd|(% style="width:132px" %)0~~20.15|(% style="width:305px" %)Output Register(Bit type) | ||
| 119 | |(% style="width:240px" %)QWMB|(% style="width:208px" %)QWMB DD.dd|(% style="width:132px" %)0~~20.15|(% style="width:305px" %)Input Register(Bit type) | ||
| 120 | |(% style="width:240px" %)MWB|(% style="width:208px" %)MWB DDDD.dd|(% style="width:132px" %)0~~8000.15|(% style="width:305px" %)Internal memory word(Bit type) | ||
| 121 | |(% style="width:240px" %)M|(% style="width:208px" %)M DDDD|(% style="width:132px" %)0~~1024|(% style="width:305px" %)Internal memory bit | ||
| 122 | |(% style="width:240px" %)IWB|(% style="width:208px" %)IWB DDDDDD.dd|(% style="width:132px" %)0~~255255.15|(% style="width:305px" %)Analog Input(Bit type) | ||
| 123 | |(% style="width:240px" %)I|(% style="width:208px" %)I DDD.dd|(% style="width:132px" %)0~~255.13|(% style="width:305px" %)Digital Input | ||
| 124 | |(% style="width:240px" %)Q|(% style="width:208px" %)Q DDD.d|(% style="width:132px" %)0~~255.9|(% style="width:305px" %)Digital Output | ||
| 125 | |(% style="width:240px" %)S|(% style="width:208px" %)S DDD|(% style="width:132px" %)0~~159|(% style="width:305px" %)System Bit | ||
| 126 | |(% colspan="1" rowspan="12" style="width:316px" %)Word|(% style="width:240px" %)IWM|(% style="width:208px" %)IWM DD|(% style="width:132px" %)0~~20|(% style="width:305px" %)Output Register | ||
| 127 | |(% style="width:240px" %)QWM|(% style="width:208px" %)QWM DD|(% style="width:132px" %)0~~20|(% style="width:305px" %)Input Register | ||
| 128 | |(% style="width:240px" %)MW|(% style="width:208px" %)MW DDDD|(% style="width:132px" %)0~~7999|(% style="width:305px" %)Internal memory word | ||
| 129 | |(% style="width:240px" %)MD|(% style="width:208px" %)MD DDDD|(% style="width:132px" %)0~~7998|(% style="width:305px" %)Internal memory double word | ||
| 130 | |(% style="width:240px" %)MF|(% style="width:208px" %)MF DDDD|(% style="width:132px" %)0~~7998|(% style="width:305px" %)Internal memory floating point | ||
| 131 | |(% style="width:240px" %)IW|(% style="width:208px" %)IW DDDDDD|(% style="width:132px" %)0~~255255|(% style="width:305px" %)Analog Input | ||
| 132 | |(% style="width:240px" %)SW|(% style="width:208px" %)SW DDD|(% style="width:132px" %)0~~233|(% style="width:305px" %)System word | ||
| 133 | |(% style="width:240px" %)KW|(% style="width:208px" %)KW DDD|(% style="width:132px" %)0~~511|(% style="width:305px" %)Constant word | ||
| 134 | |(% style="width:240px" %)KD|(% style="width:208px" %)KD DDD|(% style="width:132px" %)0~~510|(% style="width:305px" %)Internal constant double word | ||
| 135 | |(% style="width:240px" %)KF|(% style="width:208px" %)KF DDD|(% style="width:132px" %)0~~510|(% style="width:305px" %)Internal constant floating point | ||
| 136 | |(% style="width:240px" %)TM_V|(% style="width:208px" %)TM_V DDD|(% style="width:132px" %)0~~254|(% style="width:305px" %)Timer | ||
| 137 | |(% style="width:240px" %)TM_P|(% style="width:208px" %)TM_P DDD|(% style="width:132px" %)0~~254|(% style="width:305px" %)Timer | ||
| 138 | |||
| 139 | **PLC Settings** | ||
| 140 | |||
| 141 | 1.Open the software EcoStruxure Machine Expert - Basic, drag the corresponding model from M221 Logic Controller list into the [Configuration] tab. | ||
| 142 | |||
| 143 | [[image:SchneiderModelMark.png]] | ||
| 144 | |||
| 145 | 2.Click [Yes] to replace the model in current project. | ||
| 146 | |||
| 147 | [[image:SchneiderModelConfirm.png]] | ||
| 148 | |||
| 149 | 3.Program the PLC project in [Programming] tab. | ||
| 150 | |||
| 151 | [[image:SchneiderProgrm.png]] | ||
| 152 | |||
| 153 | 4. Click [Save] to save the project file. | ||
| 154 | |||
| 155 | [[image:Schneidersave2.png]] | ||
| 156 | |||
| 157 | 5. Go to the Commissioning tab to log in the PLC. Choose either Local Devices(USB or COM) or Ethernet Devices. Example here uses USB(mini USB port) to log in the PLC. | ||
| 158 | |||
| 159 | [[image:Schneiderlogin.png]] | ||
| 160 | |||
| 161 | 6. Click [PC to Controller (download)], then click OK. | ||
| 162 | |||
| 163 | [[image:Schneiderdownload2.png]] | ||
| 164 | |||
| 165 | 7. Click [Start controller] to run the program. | ||
| 166 | |||
| 167 | [[image:Schneiderrun2.png]] | ||
| 168 | |||
| 169 | **PIStudio Setting** | ||
| 170 | |||
| 171 | ~1. Create new project | ||
| 172 | |||
| 173 | (% style="text-align:center" %) | ||
| 174 | [[image:SchneiderPIcreateprj.png]] | ||
| 175 | |||
| 176 | 2. Select the protocol as Schneider TM221 Ethernet | ||
| 177 | |||
| 178 | (% style="text-align:center" %) | ||
| 179 | [[image:SchneiderPIselectprotocol.png]] | ||
| 180 | |||
| 181 | 3. Change the Device IP according to the PLC actual IP settings. | ||
| 182 | |||
| 183 | (% style="text-align:center" %) | ||
| 184 | [[image:SchneiderchgIP.png]] | ||
| 185 | |||
| 186 | 4. Click OK to save the communication settings. | ||
| 187 | |||
| 188 | (% style="text-align:center" %) | ||
| 189 | [[image:SchneiderPIsaveset.png]] | ||
| 190 | |||
| 191 | 5. Add the communication address according to the PLC program, then download into the HMI. | ||
| 192 | |||
| 193 | (% style="text-align:center" %) | ||
| 194 | [[image:SchneiderHMIscren.png]] | ||
| 195 | |||
| 196 |