Function 103 Coding Example

Sending the relay parameter structures to Node 1. (All 8 structures will always be expected by a node)


For M880 transducers, the write functions require the General Pass Code to be valid if enabled.

Format-
[node number][67h][register start(2 bytes)][number of registers(2 bytes)][number of bytes]
[<-8 structures + 1 relay actions + 1 padding byte (130 (82h) bytes of data)->][crc(2 bytes)]
[01][67][00][00][00][41][82]
Ch1:setpnt = 50%:Diff =5%:0=Not Energy:0=Under:0:0:0:0:0:Delay=1sec:1=Any1:Volts:Ch=Enabled:Relay=1:N/A:N/A
[32 05 00 00 00 00 00 00 00 19 01 01 fe 01 00 0a] 
Ch2:setpnt = 100%:Diff =5%:0=Not Energy:1=Over:0:0:0:0:0:Delay=1sec:1=Any1:Amps:Ch=Enabled:Relay=1:N/A:N/A
[64 05 01 00 00 00 00 00 00 19 01 02 fe 01 00 0a]    
Ch3:setpnt = 80%:Diff =5%:0=Not Energy:2=Window:0:0:0:0:0:Delay=5sec:80=Sum:Watts:Ch=Enabled:Relay=1:N/A:N/A
[50 05 02 00 00 00 00 00 00 7d 80 04 fe 01 00 0a]    
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]   
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]   
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]   
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]   
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]   
Relay energise on exception:backlight colour off
[01 00 CRC CRC]

Return packet
Format-
[node address][2Ah][register start(2 bytes)][number of registers(2 bytes)][crc(2 bytes)]
[01][67][0000][00][41][F432]

Sending the relay parameter structures to Node 1. (All 8 structures will always be expected by a node)

Format-
[node number][67h][register start(2 bytes)][number of registers(2 bytes)][number of bytes]
[<-8 structures + 1 relay actions + 1 padding byte (130 (82h) bytes of data)->][crc(2 bytes)]

[01][67][00][00][00][41][82]
Ch1:N/A:N/A:0xfe=Energy:N/A:0:0:0:0:0:N/A:N/A:WHr Import:Ch=Enabled:Relay=1:Relay Divisor = 1:Pulse Width=200ms

[32 05 fe 00 00 00 00 00 00 19 01 0e fe 01 00 0a]
Ch2: This channel and all other channels will be disabled when channel 1 is an energy relay

[64 05 00 01 00 00 00 00 00 19 01 02 fe 01 00 0a] 
[50 05 00 02 00 00 00 00 00 7d 80 04 fe 01 00 0a]
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]
[64 05 00 00 00 00 00 00 00 00 80 00 00 01 00 0a]
Relay energise on exception:backlight colour Red
[01 02 CRC CRC]


Return packett
Format-
[node address][2Ah][register start(2 bytes)][number of registers(2 bytes)][crc(2 bytes)]
[01][67][0000][00][41][F432]