Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 05:25:23 AM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  ABB Robot Forum (Moderators: Werner Hampel, Sven Weyer, Jim Tyrer, Napierian)
| | |-+  Reading DI as binary
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Reading DI as binary  (Read 525 times)
loppie
Guest
« on: February 25, 2010, 03:29:18 PM »

Hi guys,

i have a problem, i want to read my DI signals as  binary, it is 5 DI signals, and my DI1 signal should be given the bin nr 1 and my
DI2 should be given nr 2 and som on!!
Is this posible to do!?!?

Iv'e been looking into the manuals and havent found anything that i think could help me! 

BR
Logged
Robocop
Newbie
*
Offline Offline

Posts: 27


« Reply #1 on: February 25, 2010, 03:31:46 PM »

You can make inputs as group in EIO-parameters, then you can handle them as binarycode.
Logged
Fabian Munoz
Global Moderator
*****
Offline Offline

Gender: Male
Posts: 917


Uruguay Campeon de America 2011 !!!!!!!!!!


« Reply #2 on: February 25, 2010, 05:38:11 PM »

Hi lopie:

The DI are binary, they are on or off.
Are you looking for a group of inputs   GI   ?

Can you re phrase your question ?
Logged

somar
ciscox
Guest
« Reply #3 on: May 06, 2010, 12:18:08 PM »

Maybe something like this:

PERS num nVal1:=1;
   PERS num nVal2:=2;
   PERS num nVal3:=4;
   PERS num nVal4:=8;
   PERS num nVal5:=16;
....
IF di_1=1 THEN
   Add nX, nVal1;
   ENDIF
   IF di_2=1 THEN
   Add nX, nVal2;
   ENDIF
   IF di_3=1 THEN
   Add nX, nVal3;
   ENDIF
   IF di_4=1 THEN
   Add nX, nVal4;
   ENDIF
   IF di_5=1 THEN
   Add nX, nVal5;
   ENDIF
« Last Edit: May 06, 2010, 12:20:08 PM by ciscox » Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!