Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 03:49:29 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Integer conversion to binary PLC DL250-1 Programming Help  (Read 353 times)
RDBL
Newbie
*
Posts: 1


« on: October 28, 2010, 03:54:30 pm »

Is there a simpler way to convert an integer to binary form in terms of outputs.
Here is an example; I input the number 3 and Y0 and Y1 turn on or the number 6 and Y1 and Y2 turn on. I need to control a byte (8 bits) of outputs.
I have an example tha may works for 4 bits of outputs. If I enlarge it for 8 bits, the ladder would be very large. I need it to be manageable. Fanuc and Siemens has a function that does this. I wish the Directsoft software did the same.
« Last Edit: October 28, 2010, 04:01:13 pm by RDBL » Logged
franji1
Bit Weenie
Host Moderator
*****
Posts: 1035



WWW
« Reply #1 on: October 28, 2010, 04:35:02 pm »

Look at LDF and OUTF instructions.  I'm guessing you can get away with just the OUTF with a normal LD before it.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM