Help - Search - Members - Calendar
Full Version: binary timer
Forums.MrPLC.com > PLCs and Supporting Devices > Omron > CX-Programmer
new_man
hiiii
for normal timer we write tim 1 #2. how can write instruction set for binary timer
pfort
QUOTE (new_man @ Jun 27 2009, 07:57 AM) *
hiiii
for normal timer we write tim 1 #2. how can write instruction set for binary timer


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"
PMCR
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.
BITS N BYTES
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.
new_man
thaaaaaaanks thumbsupsmileyanim.gif thumbsupsmileyanim.gif thumbsupsmileyanim.gif yes.gif yes.gif yes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.