Created
April 10, 2023 22:53
-
-
Save goncalossilva/ba2ecdbfcc5b74a8313d2eeb9c0a54ea to your computer and use it in GitHub Desktop.
Modbus script for SAGEM CX1000-6S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>D | |
>BS | |
smlj=0 | |
tper=60 | |
=>sensor53 r | |
>S | |
if upsecs==55 | |
then | |
smlj=1 | |
endif | |
>M 1 | |
+1,3,m,1,9600,EB,1,50,0104006C,01040079,0104007A,0104007F,01040026,01040027,01040028,0104000B,01040084 | |
1,=hVALORES TÉCNICOS | |
1,010404UUuuxxxx@i0:10,Tensão,V,Voltage_P1,17 | |
1,010404xxxxUUuu@i0:10,Corrente,A,Current_P1,17 | |
1,010408UUuuUUuuxxxxxxxxxxxx@i1:1,Potência ativa,W,Power_P1,16 | |
1,010406xxxxxxxxUUuu@i2:1000,Fator de potência,pu,PFactor_P1,19 | |
1,01040aUUuuxxxx@i3:10,Frequência,Hz,Frequency_P1,17 | |
1,=h | |
1,=hTOTALIZADORES DE ENERGIA | |
1,010408UUuuUUuuxxxxxxxxxxxx@i4:1000,Vazio (1),kWh,Energy_P1_R1,17 | |
1,010408UUuuUUuuxxxxxxxxxxxx@i5:1000,Ponta (2),kWh,Energy_P1_R2,17 | |
1,010408UUuuUUuuxxxxxxxxxxxx@i6:1000,Cheia (3),kWh,Energy_P1_R3,17 | |
1,=h | |
1,=hESTADOS | |
1,010406uuxxxxxxxx@i7:1,Tarifa,,Tariff_P1,16 | |
1,010406uuxxxxxxxx@i8:1,DCP,,DCP_P1,16 | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For ZIV, just swap
m
withmN2
in line 19.