4/8/2020 5:36 AM | |
Posts: 4 Rating: (0) |
hola al grupo, Tengo una dificultad para volver a juntar los registros dobles enteros de tarifa de energía del Sentron PAC. Actualmente la información está siendo registrada por la librería del PCS7 y a su vez pero requiere llevar la información al PI System para su registro. Probé en concatenar, sumar, los registros sin que de la información correcta. Alguna sugerencia. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 04/08/2020 06:53:21New subject after splitting |
|
4/8/2020 2:10 PM | |
Posts: 4 Rating: (0) |
Thank you very much for the quick answer |
4/8/2020 2:32 PM | |
Joined: 9/27/2006 Last visit: 11/7/2024 Posts: 12293 Rating: (2691) |
Hello Jaime; Are you working with PAC4200 units? In the system manual for the PAC4200 power meters it is stated that tariff registers are in floating-point format. https://support.industry.siemens.com/cs/ww/en/view/34261595 So instead of working with these values as DInt or DWord values, try using them as REAL registers in your PLC. If the resulting value looks good, perfect. If the resulting value is completely wrong (for example 1.0 10^E-32) then you are facing a Big/Little Endian problem, and you should swap the bytes in your register so it matches your CPU microcontroller floating-point math format. Hope this helps, |
Last edited by: dchartier at: 04/08/2020 14:33:31 |
|
4/14/2020 7:12 AM | |
Posts: 4 Rating: (0) |
script attachment |
Last edited by: Jaime_Velasquez_Alguedas at: 04/14/2020 07:13:18 |
|
Follow us on