<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to array codesys 2.39 &gt; 3.5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7912ab3500/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7912ab3500/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/7912ab3500/</id><updated>2020-02-27T15:13:28.797000Z</updated><subtitle>Recent posts to array codesys 2.39 &gt; 3.5</subtitle><entry><title>array codesys 2.39 &gt; 3.5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7912ab3500/?limit=25#f5d7" rel="alternate"/><published>2020-02-27T15:13:28.797000Z</published><updated>2020-02-27T15:13:28.797000Z</updated><author><name>camferti</name><uri>https://forge.codesys.com/u/camferti/</uri></author><id>https://forge.codesys.comf77a8b6e63e2ed4119b242668ac9a22acbd28bba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;jessejamescox hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
You have a syntax error.  Need to use the [ ] and only a single set of () per intance.. like: arrai:ARRAY&lt;span&gt;[0..4]&lt;/span&gt; OF POINT:=&lt;span&gt;[(X:=0,Y:=0),(X:=250,Y:=50),(X:=500,Y:=150),(X:=750,Y:=400),(X:=1000,Y:=1000)]&lt;/span&gt;;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you very much, that works&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>array codesys 2.39 &gt; 3.5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7912ab3500/?limit=25#6ee4" rel="alternate"/><published>2020-02-27T15:13:28.172000Z</published><updated>2020-02-27T15:13:28.172000Z</updated><author><name>camferti</name><uri>https://forge.codesys.com/u/camferti/</uri></author><id>https://forge.codesys.combbf50d815cef4582c1785744259d9eec8f2f9aea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes changed from codesys2.x to codesys3.x...&lt;/p&gt;
&lt;p&gt;in codesys2.x work properly&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;wollvieh hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Maybee wrong syntax ? &lt;br/&gt;
it changed from codesys2.x to codesys3.x...&lt;br/&gt;
(other brackets...)&lt;br/&gt;
juhuuuu.&lt;br/&gt;
array.jpg&lt;br/&gt;
Wollvieh. &lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>array codesys 2.39 &gt; 3.5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7912ab3500/?limit=25#044c" rel="alternate"/><published>2020-02-27T15:13:26.410000Z</published><updated>2020-02-27T15:13:26.410000Z</updated><author><name>jessejamescox</name><uri>https://forge.codesys.com/u/jessejamescox/</uri></author><id>https://forge.codesys.comf27893c148e2e8059cb16eef3bc9fa47cf409d74</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You have a syntax error.  Need to use the [ ] and only a single set of () per intance.. like: arrai:ARRAY&lt;span&gt;[0..4]&lt;/span&gt; OF POINT:=&lt;span&gt;[(X:=0,Y:=0),(X:=250,Y:=50),(X:=500,Y:=150),(X:=750,Y:=400),(X:=1000,Y:=1000)]&lt;/span&gt;;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>array codesys 2.39 &gt; 3.5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7912ab3500/?limit=25#0eb7" rel="alternate"/><published>2020-02-27T15:13:25.783000Z</published><updated>2020-02-27T15:13:25.783000Z</updated><author><name>wollvieh</name><uri>https://forge.codesys.com/u/wollvieh/</uri></author><id>https://forge.codesys.comafefc5d860e94676e21237cdbb45a52119a35651</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Maybee wrong syntax ? &lt;br/&gt;
it changed from codesys2.x to codesys3.x...&lt;br/&gt;
(other brackets...)&lt;br/&gt;
juhuuuu.&lt;/p&gt;
&lt;p&gt;Wollvieh. &lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: array.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2394"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>array codesys 2.39 &gt; 3.5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7912ab3500/?limit=25#d05a" rel="alternate"/><published>2020-02-27T15:13:25.097000Z</published><updated>2020-02-27T15:13:25.097000Z</updated><author><name>camferti</name><uri>https://forge.codesys.com/u/camferti/</uri></author><id>https://forge.codesys.com8575de1e4beebe2963c54859c8c15d373969488f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;TYPE point :&lt;br/&gt;
STRUCT&lt;br/&gt;
    x:INT;&lt;br/&gt;
    y:INT;&lt;br/&gt;
END_STRUCT&lt;br/&gt;
END_TYPE&lt;/p&gt;
&lt;p&gt;arrai:ARRAY&lt;span&gt;[0..4]&lt;/span&gt; OF POINT:=((X:=0,Y:=0)),((X:=250,Y:=50)),(X:=500,Y:=150),(X:=750,Y:=400),(X:=1000,Y:=1000);&lt;/p&gt;
&lt;p&gt;This decalacion in codesys 2.3.9 works correctly and in codesys 3.5 sp9 pach 5 does not work&lt;br/&gt;
you have any thoughts&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;            &lt;span class="c1"&gt;------ Build started: Application: Device.Sim.Device.Application -------&lt;/span&gt;
            &lt;span class="n"&gt;typify&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;span&gt;[ERROR]&lt;/span&gt;         charcurve: POU &lt;a class="" href="../Línea%208%20(Decl)"&gt;Device: Lógica PLC: Application&lt;/a&gt;: C0006:  Se esperaba ;' en lugar de ','&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         charcurve: POU &lt;a class="" href="../Línea%208%20(Decl)"&gt;Device: Lógica PLC: Application&lt;/a&gt;: C0006:  Se esperaba )' en lugar de ','&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         charcurve: POU &lt;a class="" href="../Línea%208%20(Decl)"&gt;Device: Lógica PLC: Application&lt;/a&gt;: C0032:  El tipo 'Tipo desconocido: 'X := 0'' no puede convertirse en el tipo 'ARRAY &lt;span&gt;[0..4]&lt;/span&gt; OF POINT'&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         charcurve: POU &lt;a class="" href="../Línea%208%20(Decl)"&gt;Device: Lógica PLC: Application&lt;/a&gt;: C0046:  Identificador 'X' sin definir&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         charcurve: POU &lt;a class="" href="../Línea%208%20(Decl)"&gt;Device: Lógica PLC: Application&lt;/a&gt;: C0018:  'X' no es un destino de asignación válido&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         charcurve: POU &lt;a class="" href="../Network%201%20/%20Operando%20'arrai'%20(Impl)"&gt;Device: Lógica PLC: Application&lt;/a&gt;: C0201:  El tipo 'ARRAY &lt;span&gt;[0..4]&lt;/span&gt; OF POINT' no corresponde al tipo Typ 'ARRAY &lt;span&gt;[0..10]&lt;/span&gt; OF POINT' de VAR_IN_OUT 'P'&lt;br/&gt;
                Compilación terminada -- 6 errores, 0 advertencias&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>