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
learn
selector
value[0]
value[1]
value[2]
value[3]
day ,hour, minute,
second, millisecond
- 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
learn
selector
value[0]
value[1]
value[2]
value[3]
day ,hour, minute,
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
learn
selector
value[0]
value[1]
value[2]
value[3]
day ,hour, minute,
second, millisecond
N.B.: After sending cumulative energy clear command, 0000 hex should be re-written into FA20.
Length
Command
2 (LN_LEARN_VALUE)
1 byte
3 (LN_REPORT_VALUE)
Parameter address (unsigned value)
2 bytes
0 at successful
1 byte
0xFF at occurred error
0
1 byte
The most significant 2 hex bytes of data
1 byte
The least significant 2 hex bytes of data
1 byte
N/A
Total
7 bytes
Send (nviParamCmd)
LN_REPORT_VALUE
FC90 hex
N/A
N/A
N/A
N/A
N/A
Send (nviParamCmd)
LN_LEARN_VALUE
FA20 hex
00 hex
00 hex
00 hex
02 hex
N/A
- 35 -
Description
: Write
: Read
Receive (nviParamResp)
LN_REPORT_VALUE
FC90 hex
0
0
00 hex
0D hex
0
Receive (nviParamResp)
LN_LEARN_VALUE
FA20 hex
00 hex
00 hex
00 hex
02 hex
0
E6581373