Skip to content

Navigation Menu

Sign in
Sign up

IEC 61131-3 Overloaded Functions #2788

franz-hoepfinger-4diac started this conversation in General
Discussion options

Hi,

IEC 61131-3 defines overloaded Functions.

like ADD.

myUInt1 is implicitly converted to a UDINT, the multiplication has a UDINT result
myUDInt := myUInt1 * myUDInt2;

as i see it currently 4diac does only Support a ADD of same Types right ?
implicit Conversion is not there ?

Thanks,
Franz

You must be logged in to vote

Replies: 1 comment

Comment options

Calling ADD(IN1, IN2) with an UINT and UDINT argument works for me in 4diac IDE, the interpreter, and when running on FORTE. Why do you think this does not work?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /