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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
1 is a number, only TRUE and FALSE are allowed to be assigned to a BIT.