rjjong1 (Customer) asked a question.

Project compiles but cannot upload to PLC

In the latest version (4.7.0), I'm trying to upload my program that compiles to my P2000. But it fails doing so. I'm using the new ST functionality in my program.

 

imageimage


  • rjjong1 (Customer)

    I've pinned down what causes the error. This piece of code in one of my ST tasks:

    1. SendMessageQueue[${p*SendMessageQueue}].Checksum := STASM(SendMessageQueue[${p*SendMessageQueue}].Payload, 1, SendMessageQueue[${p*SendMessageQueue}].PayloadLength);

    SendMessageQueue = UDS 1D Array (20 cols)

    .Checksum = INT32

    .Payload = UINT8 1D Array (98 cols)

    .PayloadLength = INT32

     

    p*SendMessageQueue = INT32 and is a number between 1 and 20.

     

    But that doesn't explain why it fails.

    Expand Post
  • ADC Community_02 (Automationdirect.com)

    I recreated the rung from your ST code on my end. It compiled without errors and downloaded to the CPU successfully with no issues. Since I'm unable to reproduce the problem in this environment, having the system report will help further investigate the root cause.

    image