Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

SLC 500/Micrologix Ethernet/IP simulator emulator

PCCC is not supported by the Labview toolkit.  PCCC is DF1 inside a TCP packet (aka CSPv4).

0 Kudos
Message 11 of 19
(6,370 Views)

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'.

 

 

 

0 Kudos
Message 12 of 19
(6,358 Views)

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.

0 Kudos
Message 13 of 19
(6,350 Views)

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).

0 Kudos
Message 14 of 19
(6,341 Views)

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...

0 Kudos
Message 15 of 19
(6,339 Views)

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.

0 Kudos
Message 16 of 19
(6,336 Views)

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

Message 17 of 19
(6,333 Views)

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

0 Kudos
Message 18 of 19
(6,331 Views)

And this post on Lava has some interesting Ethernet IP code that may be helpful too:

 

http://lavag.org/topic/6104-industrial-ethernet-ethernetip/

0 Kudos
Message 19 of 19
(6,330 Views)