10/29/2013 3:26 PM | |
Posts: 57 Rating: (8) |
So... I have an alarm structure based on two DBs. In DB_ALARMS (bit structured) I call alarms by name, and I set/reset them individually. then I copy them in DB_HMI, that is word structured, and works as interface to the HMI panel. When I copy alarms from DB_ALARMS to DB_HMI I have to PEEK bytes from DB_ALARMS and POKE byte to DB_HMI. Why I don't PEEK/POKE by words? Because in the meanwhile I swap HIGH/LOW bytes, as required by HMI. Attached you'll find the HMI alarm SCL module. Sorry about italian Language, I have no time to translate. But SCL code is international. BTW, I have to PEEK and POKE using absolute DB addressing. What a pity that I can't use symbolic addressing. Recently I changed DB number (DB_HMI was DB16 and now it's DB171), and I forgot to update the PEEK/POKE addressing. Imagine the result.... AttachmentHMI_1.zip (432 Downloads) |
Follow us on