Posted 27 Jun 2009 hiiii for normal timer we write tim 1 #2. how can write instruction set for binary timer Share this post Link to post Share on other sites
Posted 27 Jun 2009 Hi, In project workspace, right click on the PLC, then "Properties" Depending on the PLC you have, you have the option "execute timer/counter as binary" Share this post Link to post Share on other sites
Posted 27 Jun 2009 For CP1L / CP1H / CJ1 / CJ2 / CS1, you can change all timers and counters to work as binary. While offline, right click on your PLC (NewPLC1[CP1L]Offline an an example). Select Properties. Select Execute Timer/Counter as Binary. Then use TIMX, CNTX instructions. The 'X' indicates binary format. Share this post Link to post Share on other sites
Posted 27 Jun 2009 NOTE:- You will still have to enter a prefix before each timer or counter preset value after changing PLC properties to "Select Execute Timer/Counter as Binary". The preset value can be specified in either HEX or Binary. For ALL timer/counter instructions with 'X' [except TIMLX(553)] set the preset value as follows:- HEX with '#' prefix, range is #0 and #FFFF. Binary '&' prefix, range is &0 and &65535. For TIMLX(553) only:- HEX with '#' prefix, range is #0 and #FFFFFFFF. Binary '&' prefix, range is &0 &4294967294. Share this post Link to post Share on other sites