CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Feb 18, 2019 3:15 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 

CoDeSys Version cannot implement all the functions of IEC 61131-3
Yes, it can. 0%  0%  [ 0 ]
No, it cannot. 100%  100%  [ 1 ]
Total votes: 1
Author Message
PostPosted: Thu Sep 21, 2017 4:00 am 

Joined: Wed Sep 20, 2017 8:51 am
Posts: 2
Software: CoDeSys V2.3
Function to achieve: control the traffic lights
Problem: The POU PLC_PRG is written in SFC using IEC-Steps. There are three compiling errors which I cannot eliminate even though the help documents contain corresponding explainations.

at Transition T002,
Error 4355: A transition may not have any side effects (Assignments, FB-Calls etc.)

in line 3 at Transition T002,
Error 4370: PLC_PRG (3): Superfluous lines found after correct IL-transition.

in line 1 at Transition T001,
Error 4371: Transition T001 (1): Invalid characters following valid expression: 'T001 := START;"

T001 := START;

LD  T#8S
ST  T002

Some clues:
In the help docs of CoDeSys V2.3,
A transition condition must have the value TRUE or FALSE. Thus it can consist of either a boolean variable, a boolean address or a boolean constant. It can also contain a series of instructions having a boolean result, either in ST syntax (e.g. (i<= 100) AND b) or in any language desired (see 'Extras' '_ Action/Transition'). But a transition may not contain programs, function blocks or assignments!
In the help docs of CoDeSys V3.5,
CODESYS Development System > Reference, Programming > Programming Languages and their Editors > . Sequential Function Chart (SFC) > Elements > SFC Elements 'Step' and 'Transition'
As opposed to CoDeSys V2.3, now CODESYS treats a transition condition like a method call. The entry has the following syntax:
<transition name>:=<transition condition>
(for example trans1:= a=100)
or only
<transition condition>
(for example a=100)

You do not have the required permissions to view the files attached to this post.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00

Who is online

Users browsing this forum: Andreas Kehrer and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited