![](/images/new-backgrounds/1264312/26431271x1.webp)
E6581373
7.5. Parameter access method
Parameter access is allowed by using nviParamCmd and nvoParamResp network variables. The structure format is shown in below table.
Field | Length | Description |
|
|
| Command |
|
learn | 1 byte | 2 (LN_LEARN_VALUE) | : Write |
|
| 3 (LN_REPORT_VALUE) | : Read |
selector | 2 bytes | Parameter address (unsigned value) | |
value[0] | 1 byte | 0 at successful |
|
0xFF at occurred error |
| ||
|
|
| |
value[1] | 1 byte | 0 |
|
value[2] | 1 byte | The most significant 2 hex bytes of data | |
value[3] | 1 byte | The least significant 2 hex bytes of data | |
day ,hour, minute, | Total | N/A |
|
second, millisecond | 7 bytes |
|
|
- Example 1: Read access
A controller node reads the value of Trip code (address FC90). Now, ol1 trip (trip code is 13 decimal) occurs. The value is 000D hex. The controller node sends/receives the following data.
Field | Send (nviParamCmd) | Receive (nviParamResp) | |
learn | LN_REPORT_VALUE | LN_REPORT_VALUE | |
selector | FC90 hex | FC90 hex | |
value[0] | N/A | 0 | |
value[1] | N/A | 0 | |
value[2] | N/A | 00 hex | |
value[3] | N/A | 0D hex | |
day ,hour, minute, | N/A | 0 | |
second, millisecond | |||
|
|
- Example 2: Write access
The controller node writes cumulative energy clear command (address FA20). The data value is 0002 hex. The controller node sends/receives the following data.
Field | Send (nviParamCmd) | Receive (nviParamResp) | |
learn | LN_LEARN_VALUE | LN_LEARN_VALUE | |
selector | FA20 hex | FA20 hex | |
value[0] | 00 hex | 00 hex | |
value[1] | 00 hex | 00 hex | |
value[2] | 00 hex | 00 hex | |
value[3] | 02 hex | 02 hex | |
day ,hour, minute, | N/A | 0 | |
second, millisecond | |||
|
| ||
|
|
|
N.B.: After sending cumulative energy clear command, 0000 hex should be
- 35 -