No valid assignment problem

docker
2023-01-04
2023-01-05
  • docker - 2023-01-04

    hello,

    i am using codesys control win with a pcan driver to control a cat engine.

    i am currently having problems assigning a byte value to the tsc1 engine override variable to initiate the requested engine speed control of the engine.

    i assign the variable from the j1939 i/o mapping as a 1 in a pou and it faults with the error code "no valid assignment 1" (cannot convert byte to bit) why is this?
    i have even tried to individually assign the bits of the byte variable bit am greeted with the same fault.

    does anyone have a j1939 example using the tsc1 data to control engine speed available?

    any help is much appreciated .

    thanks

     
  • sgronchi - 2023-01-05

    1 is a number, only TRUE and FALSE are allowed to be assigned to a BIT.

     

Log in to post a comment.