Replies: 1 comment 4 replies
-
This is related to #860 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
in my program i am defining my variable as follows,
nullConst : dint := 16#FFFFFFFF;
when i tried to compile the program, i am getting compiler error as,
This will overflow for type DINT
even though declaration is valid.
program myprogram
var_temp
asign1 : dint ;
asign2 : dint ;
asign3 : dint ;
nullConst : dint := 16#FFFFFFFF;
end_var
if gnExternalIf = 0 then
asign1 := gnExternalIf + 0;
elsif gnExternalIf = 1 then
asign1 := gnExternalIf + 3;
else
asign1 := gnExternalIf + 6;
end_if;
gnExternalIf := gnExternalIf * 100;
end_program
Beta Was this translation helpful? Give feedback.
All reactions