Skip to content

Commit 9e32184

Browse files
committed
document iQ-R device range limits
1 parent 10cf9bb commit 9e32184

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

internal_docs/maintainer/PROTOCOL_SPEC.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,40 @@ Long timer / long retentive timer handling:
210210
Device code table is implemented in `slmp/constants.py` as `DEVICE_CODES`.
211211
It includes standard codes and long-timer/long-counter related codes defined in the source manual.
212212

213+
## 4.3 iQ-R SD Device Range Maximums
214+
215+
For iQ-R-series device range catalogs, the family-specific `SD` register value
216+
is the PLC-configured current point count. Treat the manual maximum below as a
217+
protocol-side cap and derive the displayed upper bound from the capped point
218+
count:
219+
220+
1. read the configured point count from the row's `SD` register pair
221+
2. calculate `point_count = min(SD point count, max_point_count)`
222+
3. calculate `upper_bound = point_count - 1`
223+
224+
The iQ-R `0002/0003` device access format uses a 4-byte device number, so all
225+
of these maximum addresses fit the iQ-R-series request payload.
226+
227+
| Item | SLMP device codes | Max address | max_point_count | Setting unit |
228+
|---|---|---|---|---|
229+
| `X` | `X` | `X2FFF` | `12288` (`0x3000`) | n/a |
230+
| `Y` | `Y` | `Y2FFF` | `12288` (`0x3000`) | n/a |
231+
| `M` | `M` | `M94674943` | `94674944` (`0x5A4A000`) | 64 points |
232+
| `B` | `B` | `B5A49FFF` | `94674944` (`0x5A4A000`) | 64 points |
233+
| `F` | `F` | `F32767` | `32768` | 64 points |
234+
| `SB` | `SB` | `SB5A49FFF` | `94674944` (`0x5A4A000`) | 64 points |
235+
| `V` | `V` | `V32767` | `32768` | 64 points |
236+
| `L` | `L` | `L32767` | `32768` | 64 points |
237+
| `T` | `TS`, `TC`, `TN` | `T5259711` | `5259712` | 32 points |
238+
| `ST` | `STS`, `STC`, `STN` | `ST5259711` | `5259712` | 32 points |
239+
| `LT` | `LTS`, `LTC`, `LTN` | `LT1479295` | `1479296` | 1 point |
240+
| `LST` | `LSTS`, `LSTC`, `LSTN` | `LST1479295` | `1479296` | 1 point |
241+
| `C` | `CS`, `CC`, `CN` | `C5259711` | `5259712` | 32 points |
242+
| `LC` | `LCS`, `LCC`, `LCN` | `LC2784543` | `2784544` | 32 points |
243+
| `D` | `D` | `D5917183` | `5917184` (`0x5A4A00`) | 4 points |
244+
| `W` | `W` | `W5A49FF` | `5917184` (`0x5A4A00`) | 4 points |
245+
| `SW` | `SW` | `SW5A49FF` | `5917184` (`0x5A4A00`) | 4 points |
246+
213247
## 5. protocol extension Specification (0080..0083)
214248

215249
## 5.1 Extension Fields

0 commit comments

Comments
 (0)