CRC checksum from a PLC serial port

Pierre

Lifetime Supporting Member
Join Date
Apr 2002
Location
Montreal
Posts
1,669
I need to implement a communication packets in a PLC program (LG PLC).

I intend to use a serie of ASCII text blocks and just drive them through the PLC's own serial port. These block will initiate a comunication link, imbed some data into it and then command an external device to do its thing.

What bugs me is that this device uses as CRC the CCITT-16 Reversed (0x8408) algorithm and it cannot be disable nor modified. (starting with FFFH)

Now I know that its a reverse XOR mask but its implementation in my PLC seem a bit painfull. And you know I'm not an advocate of pain. My moto is no pain... no pain :)

It will be much easyer when I will migrate to a microcontroler next year but now this must be done.

Any suggestion before I end up creating tons of lookup tables and get hooked on coffe and Dr Peper :( ???

This is similar to programming ones own feildbuss function block. Any one have done it in the past?
 
Last edited:

Similar Topics

Hi, I'm setting up a new cell with a Fanuc R30iB and Compact Guardlogix 5380 PLC. I have gone through my robot setup as usual, but have not...
Replies
2
Views
727
Hello, i am connected l&t energy meter to PLC through RS485 in tia portal v15. i was reading values in plc. my problem is how to check crc 16 in...
Replies
2
Views
1,697
Wondering if any of you old timers have seen a case where you can download to the processor no problem, but on power cycle: fault, and no program...
Replies
8
Views
2,121
Hi All, I'm currently working on a project with some fuji drives (frenic mini) and a micro850. Communication is through Modbus RTU. I don't...
Replies
2
Views
1,768
Hi, I need to activate PUT/GET acces in a TIA PLC. But the CPU has safety onboard. If I activate PUT/GET mechanism, will this change the CRC...
Replies
3
Views
1,177
Back
Top Bottom