theColonel26
Lifetime Supporting Member
Is it possible to create User Defined Functions in CX-Programmer? You can do this in CODESYS no problem.
I would like to be able to do this, and have the function return a bool
This is the code that would be in the Function
I would like to be able to do this, and have the function return a bool
Code:
IF (PairMatcher(Left_ID, Right_ID, 1, 2)) THEN (* Test of pair Matcher*)
SequenceNumber := 1;
END_IF;
Code:
[B]IF((InA = CompA AND InB = CompB) OR (InA = CompB AND InB = CompA)) THEN
PairMatcher := True;
ELSE
PairMatcher := False;
END_IF;[/B]
Last edited: