06-03-2013 12:05 PM
PCCC is not supported by the Labview toolkit. PCCC is DF1 inside a TCP packet (aka CSPv4).
06-03-2013 04:04 PM
That's not what the Labview documentation says...
Tag Read/Write and SLC500 Read/Write allow direct access into data fields stored on a PLC. The target must support Messaging class communications using either Logix tag names or PCCC communication to register files. Supported targets of these message formats include PLCs such as Rockwell's SLC 500, MicroLogix, ControlLogix and CompactLogix series.
Plus,the document that I attached previously calls it 'PCCC-style'.
06-04-2013 10:30 AM
Ah yes my misunderstanding... The PCCC is does support is for SLC500 style messages. Sorry I was thinking about PLC5 which the toolkit can not communicate with.
06-04-2013 01:13 PM
Ran a test here with a ControlLogix PLC using the Labview SLC500 read and write VIs to access N: (integer) data. The SLC500 Read VI is using PCCC and the DF1 command inside is a Protected Typed Logical Read with 3-Address Fields (Cmd=0x0F, SubFnc=0xA2). The SLC500 Write was using the DF1 command "Protected Typed Logical Write with 3-Address Fields" (Cmd=0x0F, SubFnc=0xAA).
06-04-2013 01:15 PM
Great job! Do you know where I could find a document that describes the message structures? I will look myself of course, but if you could save me some time...
06-04-2013 01:43 PM
For decoding the DF1 commands inside the packet I use this:
Allen Bradley DF1 Protocol and Command Set Reference Manual
But for decoding the Ethernet IP and CIP stuff gets a bit more tricky.
06-04-2013 01:51 PM
Here is some more info about CSP here for more decoding:
http://iatips.wikispaces.com/Rockwell-CSP-Header
and here:
http://iatips.wikispaces.com/Rockwell-CSP-Local-Remote-Header
06-04-2013 01:54 PM
dwisti,
Thanks very much for your help. I believe I can do this now.
I have to get some documentation done over the next couple of days so won't be able to look at it right away.
I'll post my code when it's working.
Cheers, PJ
06-04-2013 01:59 PM
And this post on Lava has some interesting Ethernet IP code that may be helpful too: