Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » 4DIAC-RTE: have I misunderstood data type architecture?
4DIAC-RTE: have I misunderstood data type architecture? [message #1790021] Sun, 03 June 2018 10:04 Go to next message
Luca Hollkosse is currently offline Luca HollkosseFriend
Messages: 10
Registered: March 2018
Junior Member
Hi,

I used the code of forte (http://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git/tree/src/core/datatypes) to build this hierarchical data structure:

Any
-AnyDerived
--Array
--Struct
-AnyElementary
--AnyMagnitude
---Time
---AnyNum
----AnyReal
-----LReal
-----Real
----AnyInt
-----Int
-----DInt
-----LInt
-----SInt
-----UDInt
-----UInt
-----ULInt
-----USInt
--AnyBit
---Bool
---Byte
---DWord
---LWord
---Word
--AnyString
---String
---WString
--AnyDate
---TimeOfDay
---DateAndTime
---Date


For port IN1 of function block F_ADD, the tooltip contains the data type "ANY_MAGNITUDE".
Am I correct in assuming that I should be able to pass either a "TIME" (for example T#1234ms) or an "ANY_NUM" (for example INT#42) to this port?


Is there an overview that shows which fb supports which input types?

Output of Deployment Console:
<Request Action="WRITE" ID="147">
  <Connection Destination="F_ADD.IN1" Source="T#1234s"/>
</Request>

<Response ID="147" Reason="BAD_PARAMS">
  
</Response>


Best regards

[Updated on: Sun, 03 June 2018 10:33]

Report message to a moderator

Re: 4DIAC-RTE: have I misunderstood data type architecture? [message #1790038 is a reply to message #1790021] Sun, 03 June 2018 20:18 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Hi no you haven't misunderstood the data type architecture. The date type hierarchy is defined in IEC 61131-3 [1].

Also you are assuming right that if you have ANY_MAGNITUDE that you can pass an according typed IEC 61131-3 literal. The only point is that we currently haven't implemented for typing the short name literals (i.e., T, TOD, DT). You have to use the long name. In your eample TIME#1234ms.



[1] https://en.wikipedia.org/wiki/IEC_61131-3
Previous Topic:FORTE Monitoring: no error message after giving invalid force value?
Next Topic:How to customize devices?
Goto Forum:
  


Current Time: Thu Apr 25 20:12:35 GMT 2024

Powered by FUDForum. Page generated in 0.03062 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top