<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to No valid assignment problem</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8423303aa1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8423303aa1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/8423303aa1/</id><updated>2023-01-05T12:12:59.775000Z</updated><subtitle>Recent posts to No valid assignment problem</subtitle><entry><title>No valid assignment problem</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8423303aa1/?limit=25#66ff" rel="alternate"/><published>2023-01-05T12:12:59.775000Z</published><updated>2023-01-05T12:12:59.775000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com87da3a92eb00bd6b1979b94bfc11951bea21b45a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;1 is a number, only TRUE and FALSE are allowed to be assigned to a BIT.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>No valid assignment problem</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8423303aa1/?limit=25#25f6" rel="alternate"/><published>2023-01-04T09:50:19.718000Z</published><updated>2023-01-04T09:50:19.718000Z</updated><author><name>docker</name><uri>https://forge.codesys.com/u/docker/</uri></author><id>https://forge.codesys.com99e2e11600c7e24cd2e16856856550d734903301</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;i am using codesys control win with a pcan driver to control a cat engine.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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? &lt;br/&gt;
i have even tried to individually assign the bits of the byte variable bit am greeted with the same fault.&lt;/p&gt;
&lt;p&gt;does anyone have a j1939 example using the tsc1 data to control engine speed available?&lt;/p&gt;
&lt;p&gt;any help is much appreciated .&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>