Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

GE Fanuc 90-70's 1

Status
Not open for further replies.

buzzp

Electrical
Joined
Nov 21, 2001
Messages
2,032
Location
US
I am trying to map a discrete input into a 16 bit register so I can pass the information off to EGD (8bit minimum registers). EGD does not work with bits (discrete inputs) and I don't want to convert it to an array because then my receiving device will have to use a whole register to store one bit of data.

Is there a way to map my I/O's into a register? From what I see, I can't unless I am using one of GE's PACSystems (which 90-70 is not). I am fairly new to these and what I am asking seems simple enough but can't seem to figure out how to do it or if it is possible.

Thanks in advance.
 
You can map any BOOL into any WORD with a 90-70. The easy way is to use the MOVE_BOOL function block. IN=%I3, Q=%R2, Length=4 will copy %I3,4,5&6 into the first 4 bits of %R2
For more versatility learn the Array_MOV Functions to put any bit anywhere.
To learn these functions select the one you are interested in, either within the 'Toolchest' or in Logic and Press F1 for detailed online help.
 
Thanks for the info. Believe this is exactly what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top