@@ -165,20 +165,20 @@ type.
165165
166166TCP
167167^^^
168- The following is how to open and initialize a TCP Device, where the slave ID is set to 1, the IP address of the TCP
168+ The following is how to open and initialize a TCP Device, where the Unit ID is set to 1, the IP address of the TCP
169169device is
170170127.0.0.1, and the port is 8502::
171171
172172 >>> import sunspec2.modbus.client as client
173- >>> d = client.SunSpecModbusClientDeviceTCP(slave_id =1, ipaddr='127.0.0.1', ipport=8502)
173+ >>> d = client.SunSpecModbusClientDeviceTCP(unit_id =1, ipaddr='127.0.0.1', ipport=8502)
174174
175175RTU
176176^^^
177- The following to open and initialize a RTU Device, where the slave ID is set to 1, and the name of the serial port is
177+ The following to open and initialize a RTU Device, where the Unit ID is set to 1, and the name of the serial port is
178178COM2::
179179
180180 >>> import sunspec2.modbus.client as client
181- >>> d = client.SunSpecModbusClientDeviceRTU(slave_id =1, name="COM2")
181+ >>> d = client.SunSpecModbusClientDeviceRTU(unit_id =1, name="COM2")
182182
183183Device Image
184184^^^^^^^^^^^^
@@ -209,7 +209,7 @@ model ID. The first key is the model ID as an int, the second key is the model n
209209that a device may contain more than one model with the same model ID, the dictionary keys refer to a list of model
210210objects with that ID. Both keys refer to the same model list for a model ID.
211211
212- >>> d = client.SunSpecModbusClientDeviceTCP(slave_id = 1 , ipaddr = ' 127.0.0.1' , ipport = 8502 )
212+ >>> d = client.SunSpecModbusClientDeviceTCP(unit_id = 1 , ipaddr = ' 127.0.0.1' , ipport = 8502 )
213213 >>> d.scan()
214214
215215
@@ -296,7 +296,7 @@ This section will go over the full steps on how to set a volt-var curve.
296296
297297Initialize device, and run device discovery with scan(): ::
298298
299- >>> d = client.SunSpecModbusClientDeviceRTU(slave_id =1, name="COM2")
299+ >>> d = client.SunSpecModbusClientDeviceRTU(unit_id =1, name="COM2")
300300 >>> d.scan()
301301
302302Confirm that model 705 (DERVoltVar) is on the device: ::
0 commit comments