<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to "Is no input of" error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2359851fa/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2359851fa/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a2359851fa/</id><updated>2020-02-27T13:48:56.630000Z</updated><subtitle>Recent posts to "Is no input of" error</subtitle><entry><title>"Is no input of" error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2359851fa/?limit=25#d002" rel="alternate"/><published>2020-02-27T13:48:56.630000Z</published><updated>2020-02-27T13:48:56.630000Z</updated><author><name>arunrf</name><uri>https://forge.codesys.com/u/arunrf/</uri></author><id>https://forge.codesys.com77e966a2e395b6ac83787314d7903a038a94248c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the comment Rick, I'll try it the way you suggest as well....&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Is no input of" error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2359851fa/?limit=25#40a1" rel="alternate"/><published>2020-02-27T13:48:56.518000Z</published><updated>2020-02-27T13:48:56.518000Z</updated><author><name>arunrf</name><uri>https://forge.codesys.com/u/arunrf/</uri></author><id>https://forge.codesys.com44dc06b019cb72b6cbc1f9458eb107044a8b32b0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your help Kim .... am still fairly new to Codesys  You were correct......&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Is no input of" error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2359851fa/?limit=25#fb10" rel="alternate"/><published>2020-02-27T13:48:56.437000Z</published><updated>2020-02-27T13:48:56.437000Z</updated><author><name>rickj</name><uri>https://forge.codesys.com/u/rickj/</uri></author><id>https://forge.codesys.comb0e789023b63df53ecb02fee0d83e8e15fe29ffb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If I understand correctly the code you list is part of a FB and it is attempting to access a bool defined in a program.  If this is the case, it's generally considered bad practice to access external variables in this manner.  It's preferred to define FB input and out parameters instead.  &lt;/p&gt;
&lt;p&gt;You are probably getting the error because Blocked is defined in a VAR section, which is not externally accessible, instead of a VAR_INPUT section which is externally accessible.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Is no input of" error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2359851fa/?limit=25#0402" rel="alternate"/><published>2020-02-27T13:48:56.353000Z</published><updated>2020-02-27T13:48:56.353000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.com4107dd845644988e302b606a80d57f1788be9242</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think the error is very descriptive!&lt;br/&gt;
It tells you that the compiler can't "see" the variable Blocked in your prg SCREEN.&lt;br/&gt;
Most probably you have declared it as a VAR instead of a VAR_INPUT in the header of SCREEN.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Is no input of" error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a2359851fa/?limit=25#40dc" rel="alternate"/><published>2020-02-27T13:48:56.219000Z</published><updated>2020-02-27T13:48:56.219000Z</updated><author><name>arunrf</name><uri>https://forge.codesys.com/u/arunrf/</uri></author><id>https://forge.codesys.com1503321c670ce7a6a2a459cb34dec56811dcc326</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;I have a Function Block defined as follows. This refers to a BOOL in PRG SCREEN ( Ladder ) called “Blocked” – SCREEN.Blocked – and I inserted that using the input assistant. When I build the code I get an error:  “Blocked “is no input of “SCREEN”. Its not a very descriptive error – and cant find any info about it – What could be wrong? Thanks for your help &lt;/p&gt;
&lt;p&gt;iattempnumber := 0;&lt;br/&gt;
SCREEN.Blocked:= 0;&lt;br/&gt;
IF Current &amp;gt;= SCREEN.HMI_Current_Blockage_Setpoint THEN iattempnumber := 10;&lt;br/&gt;
CASE iattempnumber OF&lt;br/&gt;
10:&lt;br/&gt;
IF Current &amp;gt;= SCREEN.HMI_Current_Blockage_Setpoint THEN SCREEN.Blocked := 1;&lt;br/&gt;
MotorSetpointHz := MOVE(-500); &lt;br/&gt;
Blocked_Reverse_Running := 1;&lt;br/&gt;
TONRunReverseTime.IN := Blocked_Reverse_Running;&lt;br/&gt;
TONRunReverseTime.PT := T#2S;&lt;br/&gt;
TONRunReverseTime.Q := Blocked_Reverse_Stopped;&lt;br/&gt;
SCREEN.Blocked := 0;&lt;br/&gt;
END_IF ;&lt;br/&gt;
iattempnumber := 20;&lt;br/&gt;
20:&lt;br/&gt;
IF Current &amp;gt;= SCREEN.HMI_Current_Blockage_Setpoint THEN SCREEN.Blocked := 1;&lt;br/&gt;
MotorSetpointHz := MOVE(-500); &lt;br/&gt;
Blocked_Reverse_Running := 1;&lt;br/&gt;
TONRunReverseTime.IN := Blocked_Reverse_Running;&lt;br/&gt;
TONRunReverseTime.PT := T#4S;&lt;br/&gt;
TONRunReverseTime.Q := Blocked_Reverse_Stopped;&lt;br/&gt;
SCREEN.Blocked := 0;&lt;br/&gt;
END_IF ;&lt;br/&gt;
iattempnumber := 30;&lt;br/&gt;
30:&lt;br/&gt;
IF Current &amp;gt;= SCREEN.HMI_Current_Blockage_Setpoint THEN SCREEN.Blocked := 1;&lt;br/&gt;
MotorSetpointHz := MOVE(-500); &lt;br/&gt;
Blocked_Reverse_Running := 1;&lt;br/&gt;
TONRunReverseTime.IN := Blocked_Reverse_Running;&lt;br/&gt;
TONRunReverseTime.PT := T#8S;&lt;br/&gt;
TONRunReverseTime.Q := Blocked_Reverse_Stopped;&lt;br/&gt;
SCREEN.Blocked := 0;&lt;br/&gt;
END_IF ;&lt;br/&gt;
iattempnumber := 40;&lt;br/&gt;
40:&lt;br/&gt;
IF Current &amp;gt;= SCREEN.HMI_Current_Blockage_Setpoint THEN SCREEN.Blocked := 1;&lt;br/&gt;
MotorSetpointHz := MOVE(-500); &lt;br/&gt;
Blocked_Reverse_Running := 1;&lt;br/&gt;
TONRunReverseTime.IN := Blocked_Reverse_Running;&lt;br/&gt;
TONRunReverseTime.PT := T#16S;&lt;br/&gt;
TONRunReverseTime.Q := Blocked_Reverse_Stopped;&lt;br/&gt;
SCREEN.Blocked := 0;&lt;br/&gt;
END_IF ;&lt;br/&gt;
iattempnumber := 50;&lt;br/&gt;
50:&lt;br/&gt;
IF Current &amp;gt;= SCREEN.HMI_Current_Blockage_Setpoint THEN SCREEN.Blocked := 1;&lt;br/&gt;
MotorSetpointHz := MOVE(-500); &lt;br/&gt;
Blocked_Reverse_Running := 1;&lt;br/&gt;
TONRunReverseTime.IN := Blocked_Reverse_Running;&lt;br/&gt;
TONRunReverseTime.PT := T#32S;&lt;br/&gt;
TONRunReverseTime.Q := Blocked_Reverse_Stopped;&lt;br/&gt;
SCREEN.Blocked := 0;&lt;br/&gt;
END_IF ;&lt;br/&gt;
iattempnumber := 60;&lt;br/&gt;
60:&lt;br/&gt;
IF Current &amp;gt;= SCREEN.HMI_Current_Blockage_Setpoint THEN &lt;br/&gt;
SCREEN.Blocked_Alarm := 1;&lt;br/&gt;
SCREEN.Blocked := 1;&lt;br/&gt;
SCREEN.Blocked_Shutdown := 1;&lt;br/&gt;
END_IF ;&lt;br/&gt;
iattempnumber := 0;&lt;br/&gt;
END_CASE&lt;br/&gt;
END_IF&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>