9/8/2015 10:44 AM | |
Joined: 6/24/2013 Last visit: 11/11/2024 Posts: 1652 Rating: (426) |
Hi
1. Q_Energy_kWh output is not written anywhere, I suggest to add a MOVE block in NW3 to copy "Energy_kWh_DInt" to the output. Corrected - added the MOVE after conversion to dint 2. Is the code in NW10 only for testing? I don't see the need for it else. Personally I don't like when memory bits are used inside FCs or FBs. Yes. Network removed. I use Markers strictly for testing only (in my programs global variables are in data block called globla which is divided into structures). this way at the end of commissioning I can search for any M bits and take them out (any Ms are for test only) 3. If the energy is negative decimals won't work, due to NW6. Changed the fractions to be always positive. otherwise it would display incorrectly i.e. when energy is negative kWhs are negative but Whs are positive. display xxxxxxx.yyy for positive; -xxxxxx.yyy for negative (it would show -xxxxxx.-yyy when negative given) in the above example xxxxxxx is linked to kWhs and yyy to wh. the dot is a fixed text and yyy is disoplayed with leading 0s Attached - corrected project. Many thanks for sugestions Piotr AttachmentIS0034_LONGREAL.zip (531 Downloads) |
This contribution was helpful to2 thankful Users |
5/1/2016 2:11 PM |
|
Joined: 1/27/2012 Last visit: 6/20/2024 Posts: 84 Rating: (1) |
Great...I was searching for exactly the same information. From PAC 3200 to PLC double real to real. Thank you. |
Follow us on