4DIAC-RTE: have I misunderstood data type architecture? [message #1790021] |
Sun, 03 June 2018 10:04 |
Luca Hollkosse 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03062 seconds