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!

RSlogix 5000 address mapping to read in a PLC-5

Status
Not open for further replies.

derama2

Industrial
Joined
Feb 10, 2010
Messages
1
Location
US
Hi,

I have a program that has data that needs to be mapped to be read as if a PLC-5 was reading from a controllogix controller. I'm trying to create the arrays for mapping, but I'm having an issue moving boolean data types into the arrays. I'm getting this error "Invalid data type. Argument must match parameter data type." I cannot see which instruction to use to move boolean data types. Almost all of the addresses are DIs. I tried using a User-defined data type as well but I was still getting the same error. Is there something I need to do to change the data types of these inputs before I move them into an array? Any suggestions?
 
You can use RLL to move a 1 into each register for each boolean bit or use bit of word(ie boolean bit1 to word.bit). There is not a direct way to write multiple boolean into DI registers.

Hope this helps.
 
Or instead of using the boolean data type in the Control Logix, use an integer and alias to the individual bits within the integer. More efficient both at the ControlLogix end and also at the PLC 5 end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top