How to compose CIP to write ControlLogix BOOL tag

tinger

Member
Join Date
Aug 2012
Location
Australia
Posts
2
Hello Guys,

I've got a problem of using RSLogix Data Table Object to write BOOLEAN type of value.

For SINT, INT, DINT, I can use following format respectively:
C2 00 01 00 XX
C3 00 01 00 XX XX
C4 00 01 00 XX XX XX XX
Here the "XX" is the actual value I want to write.

For BOOLEAN value, I tried following format to set the value to "1", non of them works
C1 00 01 00 01
C1 00 01 00 FF

I do can read the BOOL value, the returned buffer is:

  • If value in processor is "0", then return "C1 00 00";
  • if value in processor is "1", then return "C1 00 FF".
I've got stuck on writing to boolean value.

I've also referred to this document:
http://literature.rockwellautomation.com/idc/groups/literature/documents/pm/1756-pm020_-en-p.pdf
Page 13,
The BOOL value includes an additional field (n) for specifying the bit position within the SINT (n = 0-7).

So I tried following combination, non of them works:
C1 00 01 00 01
C1 01 01 00 01
C1 02 01 00 01
C1 03 01 00 01
C1 04 01 00 01
C1 05 01 00 01
C1 06 01 00 01
C1 07 01 00 01

Actually How can know which bit is this Boolean Tag referring to? The bit position in SINT? what is the "n" value (0~7) as described in the document?

Anyone can give me a hand or offer a reference would be highly appreciated.

Thank you in advance
 
Last edited:

Similar Topics

Hi all, Given a variable VAR1 at an address of %R101 is it possible within the PLC program to decompose this so that you can say the address is of...
Replies
12
Views
3,560
I am transferring data ASCII Modbus though an Allen Bradley Point I/O Rs232 module. I can query the data and load my data tables with the...
Replies
6
Views
6,600
Hi, First time poster, long time reader. I've got a mass flow controller device for controlling the flow of gas. It has a flowmeter and an...
Replies
4
Views
275
Hi Folks! Could I use the Studio 5000 to read/monitoring Stratix 5700 parameters? Like switch temperature for example
Replies
11
Views
371
Hola chicos. Tengo un problema con el driver de comucicacion dasabcip 5, y un plc controllogix v34, ya realice la comunicacion pero en ciertos...
Replies
2
Views
157
Back
Top Bottom