6/21/2015 9:28 PM | |
Posts: 50 Rating: (7) |
Hi I can't preset (load) a ACT_CNTV with a value , say 500. then begin to start to count up from this value. In HW-CONFIG for the modul I setup to use CMP_V mode. It works well when I use this code when it counts from 0. _____________________________________ A Preset_bit //Bool L 0 OPN #DB_NO // The counter's DB: CNT_CNAN1 T DBD 14 // LOAD_VAL = #L_DIRECT ________________________________________ Can I use the follow code: to preset the ACT_CNTV to 500? _____________________________________ A Preset_bit //Bool L 500 OPN #DB_NO // The counter's DB: CNT_CNAN1 T DBD 14 // LOAD_VAL = #L_DIRECT ________________________________________ Or can I directly MOVE 500 to ACT_CNTV instead? Regards Thien
---------------------------------------------------------------------------------------------------- |
Last edited by: Min_Moderator at: 6/22/2015 4:59:06 PMNew subject after splitting |
|
6/22/2015 5:01 PM | |
Joined: 9/3/2014 Last visit: 3/13/2019 Posts: 4767 Rating: (123) |
|
Follow us on